Class BatchWriteRequest.MutationGroup.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchWriteRequest.MutationGroup.Builder>
com.google.spanner.v1.BatchWriteRequest.MutationGroup.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, BatchWriteRequest.MutationGroupOrBuilder, Cloneable
Enclosing class:
BatchWriteRequest.MutationGroup

public static final class BatchWriteRequest.MutationGroup.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchWriteRequest.MutationGroup.Builder> implements BatchWriteRequest.MutationGroupOrBuilder
 A group of mutations to be committed together. Related mutations should be
 placed in a group. For example, two mutations inserting rows with the same
 primary key prefix in both parent and child tables are related.
 
Protobuf type google.spanner.v1.BatchWriteRequest.MutationGroup
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BatchWriteRequest.MutationGroup.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.GeneratedMessage.Builder<BatchWriteRequest.MutationGroup.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.GeneratedMessage.Builder<BatchWriteRequest.MutationGroup.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public BatchWriteRequest.MutationGroup buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public BatchWriteRequest.MutationGroup.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<BatchWriteRequest.MutationGroup.Builder>
    • mergeFrom

    • isInitialized

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

      public BatchWriteRequest.MutationGroup.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<BatchWriteRequest.MutationGroup.Builder>
      Throws:
      IOException
    • getMutationsList

      public List<Mutation> getMutationsList()
       Required. The mutations in this group.
       
      repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMutationsList in interface BatchWriteRequest.MutationGroupOrBuilder
    • getMutationsCount

      public int getMutationsCount()
       Required. The mutations in this group.
       
      repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMutationsCount in interface BatchWriteRequest.MutationGroupOrBuilder
    • getMutations

      public Mutation getMutations(int index)
       Required. The mutations in this group.
       
      repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMutations in interface BatchWriteRequest.MutationGroupOrBuilder
    • setMutations

      public BatchWriteRequest.MutationGroup.Builder setMutations(int index, Mutation value)
       Required. The mutations in this group.
       
      repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
    • setMutations

      public BatchWriteRequest.MutationGroup.Builder setMutations(int index, Mutation.Builder builderForValue)
       Required. The mutations in this group.
       
      repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
    • addMutations

       Required. The mutations in this group.
       
      repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
    • addMutations

      public BatchWriteRequest.MutationGroup.Builder addMutations(int index, Mutation value)
       Required. The mutations in this group.
       
      repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
    • addMutations

      public BatchWriteRequest.MutationGroup.Builder addMutations(Mutation.Builder builderForValue)
       Required. The mutations in this group.
       
      repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
    • addMutations

      public BatchWriteRequest.MutationGroup.Builder addMutations(int index, Mutation.Builder builderForValue)
       Required. The mutations in this group.
       
      repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
    • addAllMutations

      public BatchWriteRequest.MutationGroup.Builder addAllMutations(Iterable<? extends Mutation> values)
       Required. The mutations in this group.
       
      repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearMutations

      public BatchWriteRequest.MutationGroup.Builder clearMutations()
       Required. The mutations in this group.
       
      repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
    • removeMutations

      public BatchWriteRequest.MutationGroup.Builder removeMutations(int index)
       Required. The mutations in this group.
       
      repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
    • getMutationsBuilder

      public Mutation.Builder getMutationsBuilder(int index)
       Required. The mutations in this group.
       
      repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
    • getMutationsOrBuilder

      public MutationOrBuilder getMutationsOrBuilder(int index)
       Required. The mutations in this group.
       
      repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMutationsOrBuilder in interface BatchWriteRequest.MutationGroupOrBuilder
    • getMutationsOrBuilderList

      public List<? extends MutationOrBuilder> getMutationsOrBuilderList()
       Required. The mutations in this group.
       
      repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMutationsOrBuilderList in interface BatchWriteRequest.MutationGroupOrBuilder
    • addMutationsBuilder

      public Mutation.Builder addMutationsBuilder()
       Required. The mutations in this group.
       
      repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
    • addMutationsBuilder

      public Mutation.Builder addMutationsBuilder(int index)
       Required. The mutations in this group.
       
      repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];
    • getMutationsBuilderList

      public List<Mutation.Builder> getMutationsBuilderList()
       Required. The mutations in this group.
       
      repeated .google.spanner.v1.Mutation mutations = 1 [(.google.api.field_behavior) = REQUIRED];