Class Mutation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
com.google.datastore.v1.Mutation.Builder
All Implemented Interfaces:
MutationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Mutation

public static final class Mutation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder> implements MutationOrBuilder
 A mutation to apply to an entity.
 
Protobuf type google.datastore.v1.Mutation
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
    • clear

      public Mutation.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
    • getDefaultInstanceForType

      public Mutation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Mutation build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Mutation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Mutation.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
    • setField

      public Mutation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
    • clearField

      public Mutation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
    • clearOneof

      public Mutation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
    • setRepeatedField

      public Mutation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
    • addRepeatedField

      public Mutation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
    • mergeFrom

      public Mutation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Mutation.Builder>
    • mergeFrom

      public Mutation.Builder mergeFrom(Mutation other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
    • mergeFrom

      public Mutation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Mutation.Builder>
      Throws:
      IOException
    • getOperationCase

      public Mutation.OperationCase getOperationCase()
      Specified by:
      getOperationCase in interface MutationOrBuilder
    • clearOperation

      public Mutation.Builder clearOperation()
    • getConflictDetectionStrategyCase

      public Mutation.ConflictDetectionStrategyCase getConflictDetectionStrategyCase()
      Specified by:
      getConflictDetectionStrategyCase in interface MutationOrBuilder
    • clearConflictDetectionStrategy

      public Mutation.Builder clearConflictDetectionStrategy()
    • hasInsert

      public boolean hasInsert()
       The entity to insert. The entity must not already exist.
       The entity key's final path element may be incomplete.
       
      .google.datastore.v1.Entity insert = 4;
      Specified by:
      hasInsert in interface MutationOrBuilder
      Returns:
      Whether the insert field is set.
    • getInsert

      public Entity getInsert()
       The entity to insert. The entity must not already exist.
       The entity key's final path element may be incomplete.
       
      .google.datastore.v1.Entity insert = 4;
      Specified by:
      getInsert in interface MutationOrBuilder
      Returns:
      The insert.
    • setInsert

      public Mutation.Builder setInsert(Entity value)
       The entity to insert. The entity must not already exist.
       The entity key's final path element may be incomplete.
       
      .google.datastore.v1.Entity insert = 4;
    • setInsert

      public Mutation.Builder setInsert(Entity.Builder builderForValue)
       The entity to insert. The entity must not already exist.
       The entity key's final path element may be incomplete.
       
      .google.datastore.v1.Entity insert = 4;
    • mergeInsert

      public Mutation.Builder mergeInsert(Entity value)
       The entity to insert. The entity must not already exist.
       The entity key's final path element may be incomplete.
       
      .google.datastore.v1.Entity insert = 4;
    • clearInsert

      public Mutation.Builder clearInsert()
       The entity to insert. The entity must not already exist.
       The entity key's final path element may be incomplete.
       
      .google.datastore.v1.Entity insert = 4;
    • getInsertBuilder

      public Entity.Builder getInsertBuilder()
       The entity to insert. The entity must not already exist.
       The entity key's final path element may be incomplete.
       
      .google.datastore.v1.Entity insert = 4;
    • getInsertOrBuilder

      public EntityOrBuilder getInsertOrBuilder()
       The entity to insert. The entity must not already exist.
       The entity key's final path element may be incomplete.
       
      .google.datastore.v1.Entity insert = 4;
      Specified by:
      getInsertOrBuilder in interface MutationOrBuilder
    • hasUpdate

      public boolean hasUpdate()
       The entity to update. The entity must already exist.
       Must have a complete key path.
       
      .google.datastore.v1.Entity update = 5;
      Specified by:
      hasUpdate in interface MutationOrBuilder
      Returns:
      Whether the update field is set.
    • getUpdate

      public Entity getUpdate()
       The entity to update. The entity must already exist.
       Must have a complete key path.
       
      .google.datastore.v1.Entity update = 5;
      Specified by:
      getUpdate in interface MutationOrBuilder
      Returns:
      The update.
    • setUpdate

      public Mutation.Builder setUpdate(Entity value)
       The entity to update. The entity must already exist.
       Must have a complete key path.
       
      .google.datastore.v1.Entity update = 5;
    • setUpdate

      public Mutation.Builder setUpdate(Entity.Builder builderForValue)
       The entity to update. The entity must already exist.
       Must have a complete key path.
       
      .google.datastore.v1.Entity update = 5;
    • mergeUpdate

      public Mutation.Builder mergeUpdate(Entity value)
       The entity to update. The entity must already exist.
       Must have a complete key path.
       
      .google.datastore.v1.Entity update = 5;
    • clearUpdate

      public Mutation.Builder clearUpdate()
       The entity to update. The entity must already exist.
       Must have a complete key path.
       
      .google.datastore.v1.Entity update = 5;
    • getUpdateBuilder

      public Entity.Builder getUpdateBuilder()
       The entity to update. The entity must already exist.
       Must have a complete key path.
       
      .google.datastore.v1.Entity update = 5;
    • getUpdateOrBuilder

      public EntityOrBuilder getUpdateOrBuilder()
       The entity to update. The entity must already exist.
       Must have a complete key path.
       
      .google.datastore.v1.Entity update = 5;
      Specified by:
      getUpdateOrBuilder in interface MutationOrBuilder
    • hasUpsert

      public boolean hasUpsert()
       The entity to upsert. The entity may or may not already exist.
       The entity key's final path element may be incomplete.
       
      .google.datastore.v1.Entity upsert = 6;
      Specified by:
      hasUpsert in interface MutationOrBuilder
      Returns:
      Whether the upsert field is set.
    • getUpsert

      public Entity getUpsert()
       The entity to upsert. The entity may or may not already exist.
       The entity key's final path element may be incomplete.
       
      .google.datastore.v1.Entity upsert = 6;
      Specified by:
      getUpsert in interface MutationOrBuilder
      Returns:
      The upsert.
    • setUpsert

      public Mutation.Builder setUpsert(Entity value)
       The entity to upsert. The entity may or may not already exist.
       The entity key's final path element may be incomplete.
       
      .google.datastore.v1.Entity upsert = 6;
    • setUpsert

      public Mutation.Builder setUpsert(Entity.Builder builderForValue)
       The entity to upsert. The entity may or may not already exist.
       The entity key's final path element may be incomplete.
       
      .google.datastore.v1.Entity upsert = 6;
    • mergeUpsert

      public Mutation.Builder mergeUpsert(Entity value)
       The entity to upsert. The entity may or may not already exist.
       The entity key's final path element may be incomplete.
       
      .google.datastore.v1.Entity upsert = 6;
    • clearUpsert

      public Mutation.Builder clearUpsert()
       The entity to upsert. The entity may or may not already exist.
       The entity key's final path element may be incomplete.
       
      .google.datastore.v1.Entity upsert = 6;
    • getUpsertBuilder

      public Entity.Builder getUpsertBuilder()
       The entity to upsert. The entity may or may not already exist.
       The entity key's final path element may be incomplete.
       
      .google.datastore.v1.Entity upsert = 6;
    • getUpsertOrBuilder

      public EntityOrBuilder getUpsertOrBuilder()
       The entity to upsert. The entity may or may not already exist.
       The entity key's final path element may be incomplete.
       
      .google.datastore.v1.Entity upsert = 6;
      Specified by:
      getUpsertOrBuilder in interface MutationOrBuilder
    • hasDelete

      public boolean hasDelete()
       The key of the entity to delete. The entity may or may not already exist.
       Must have a complete key path and must not be reserved/read-only.
       
      .google.datastore.v1.Key delete = 7;
      Specified by:
      hasDelete in interface MutationOrBuilder
      Returns:
      Whether the delete field is set.
    • getDelete

      public Key getDelete()
       The key of the entity to delete. The entity may or may not already exist.
       Must have a complete key path and must not be reserved/read-only.
       
      .google.datastore.v1.Key delete = 7;
      Specified by:
      getDelete in interface MutationOrBuilder
      Returns:
      The delete.
    • setDelete

      public Mutation.Builder setDelete(Key value)
       The key of the entity to delete. The entity may or may not already exist.
       Must have a complete key path and must not be reserved/read-only.
       
      .google.datastore.v1.Key delete = 7;
    • setDelete

      public Mutation.Builder setDelete(Key.Builder builderForValue)
       The key of the entity to delete. The entity may or may not already exist.
       Must have a complete key path and must not be reserved/read-only.
       
      .google.datastore.v1.Key delete = 7;
    • mergeDelete

      public Mutation.Builder mergeDelete(Key value)
       The key of the entity to delete. The entity may or may not already exist.
       Must have a complete key path and must not be reserved/read-only.
       
      .google.datastore.v1.Key delete = 7;
    • clearDelete

      public Mutation.Builder clearDelete()
       The key of the entity to delete. The entity may or may not already exist.
       Must have a complete key path and must not be reserved/read-only.
       
      .google.datastore.v1.Key delete = 7;
    • getDeleteBuilder

      public Key.Builder getDeleteBuilder()
       The key of the entity to delete. The entity may or may not already exist.
       Must have a complete key path and must not be reserved/read-only.
       
      .google.datastore.v1.Key delete = 7;
    • getDeleteOrBuilder

      public KeyOrBuilder getDeleteOrBuilder()
       The key of the entity to delete. The entity may or may not already exist.
       Must have a complete key path and must not be reserved/read-only.
       
      .google.datastore.v1.Key delete = 7;
      Specified by:
      getDeleteOrBuilder in interface MutationOrBuilder
    • hasBaseVersion

      public boolean hasBaseVersion()
       The version of the entity that this mutation is being applied
       to. If this does not match the current version on the server, the
       mutation conflicts.
       
      int64 base_version = 8;
      Specified by:
      hasBaseVersion in interface MutationOrBuilder
      Returns:
      Whether the baseVersion field is set.
    • getBaseVersion

      public long getBaseVersion()
       The version of the entity that this mutation is being applied
       to. If this does not match the current version on the server, the
       mutation conflicts.
       
      int64 base_version = 8;
      Specified by:
      getBaseVersion in interface MutationOrBuilder
      Returns:
      The baseVersion.
    • setBaseVersion

      public Mutation.Builder setBaseVersion(long value)
       The version of the entity that this mutation is being applied
       to. If this does not match the current version on the server, the
       mutation conflicts.
       
      int64 base_version = 8;
      Parameters:
      value - The baseVersion to set.
      Returns:
      This builder for chaining.
    • clearBaseVersion

      public Mutation.Builder clearBaseVersion()
       The version of the entity that this mutation is being applied
       to. If this does not match the current version on the server, the
       mutation conflicts.
       
      int64 base_version = 8;
      Returns:
      This builder for chaining.
    • hasUpdateTime

      public boolean hasUpdateTime()
       The update time of the entity that this mutation is being applied
       to. If this does not match the current update time on the server, the
       mutation conflicts.
       
      .google.protobuf.Timestamp update_time = 11;
      Specified by:
      hasUpdateTime in interface MutationOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       The update time of the entity that this mutation is being applied
       to. If this does not match the current update time on the server, the
       mutation conflicts.
       
      .google.protobuf.Timestamp update_time = 11;
      Specified by:
      getUpdateTime in interface MutationOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Mutation.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       The update time of the entity that this mutation is being applied
       to. If this does not match the current update time on the server, the
       mutation conflicts.
       
      .google.protobuf.Timestamp update_time = 11;
    • setUpdateTime

      public Mutation.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The update time of the entity that this mutation is being applied
       to. If this does not match the current update time on the server, the
       mutation conflicts.
       
      .google.protobuf.Timestamp update_time = 11;
    • mergeUpdateTime

      public Mutation.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       The update time of the entity that this mutation is being applied
       to. If this does not match the current update time on the server, the
       mutation conflicts.
       
      .google.protobuf.Timestamp update_time = 11;
    • clearUpdateTime

      public Mutation.Builder clearUpdateTime()
       The update time of the entity that this mutation is being applied
       to. If this does not match the current update time on the server, the
       mutation conflicts.
       
      .google.protobuf.Timestamp update_time = 11;
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       The update time of the entity that this mutation is being applied
       to. If this does not match the current update time on the server, the
       mutation conflicts.
       
      .google.protobuf.Timestamp update_time = 11;
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       The update time of the entity that this mutation is being applied
       to. If this does not match the current update time on the server, the
       mutation conflicts.
       
      .google.protobuf.Timestamp update_time = 11;
      Specified by:
      getUpdateTimeOrBuilder in interface MutationOrBuilder
    • setUnknownFields

      public final Mutation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
    • mergeUnknownFields

      public final Mutation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>