Class Mutation.Ack.Builder

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

public static final class Mutation.Ack.Builder extends com.google.protobuf.GeneratedMessage.Builder<Mutation.Ack.Builder> implements Mutation.AckOrBuilder
 Arguments to [ack][google.spanner.v1.Mutation.ack] operations.
 
Protobuf type google.spanner.v1.Mutation.Ack
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    By default, an attempt to ack a message that does not exist will fail with a `NOT_FOUND` error.
    Required.
    Required.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    boolean
    By default, an attempt to ack a message that does not exist will fail with a `NOT_FOUND` error.
    com.google.protobuf.ListValue
    Required.
    com.google.protobuf.ListValue.Builder
    Required.
    com.google.protobuf.ListValueOrBuilder
    Required.
    Required.
    com.google.protobuf.ByteString
    Required.
    boolean
    Required.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    mergeKey(com.google.protobuf.ListValue value)
    Required.
    setIgnoreNotFound(boolean value)
    By default, an attempt to ack a message that does not exist will fail with a `NOT_FOUND` error.
    setKey(com.google.protobuf.ListValue value)
    Required.
    setKey(com.google.protobuf.ListValue.Builder builderForValue)
    Required.
    Required.
    setQueueBytes(com.google.protobuf.ByteString value)
    Required.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<Mutation.Ack.Builder>
    • clear

      public Mutation.Ack.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<Mutation.Ack.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<Mutation.Ack.Builder>
    • getDefaultInstanceForType

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

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

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

      public Mutation.Ack.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.Ack.Builder>
    • mergeFrom

      public Mutation.Ack.Builder mergeFrom(Mutation.Ack other)
    • isInitialized

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

      public Mutation.Ack.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.Ack.Builder>
      Throws:
      IOException
    • getQueue

      public String getQueue()
       Required. The queue where the message to be acked is stored.
       
      string queue = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQueue in interface Mutation.AckOrBuilder
      Returns:
      The queue.
    • getQueueBytes

      public com.google.protobuf.ByteString getQueueBytes()
       Required. The queue where the message to be acked is stored.
       
      string queue = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQueueBytes in interface Mutation.AckOrBuilder
      Returns:
      The bytes for queue.
    • setQueue

      public Mutation.Ack.Builder setQueue(String value)
       Required. The queue where the message to be acked is stored.
       
      string queue = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The queue to set.
      Returns:
      This builder for chaining.
    • clearQueue

      public Mutation.Ack.Builder clearQueue()
       Required. The queue where the message to be acked is stored.
       
      string queue = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setQueueBytes

      public Mutation.Ack.Builder setQueueBytes(com.google.protobuf.ByteString value)
       Required. The queue where the message to be acked is stored.
       
      string queue = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for queue to set.
      Returns:
      This builder for chaining.
    • hasKey

      public boolean hasKey()
       Required. The primary key of the message to be acked.
       
      .google.protobuf.ListValue key = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasKey in interface Mutation.AckOrBuilder
      Returns:
      Whether the key field is set.
    • getKey

      public com.google.protobuf.ListValue getKey()
       Required. The primary key of the message to be acked.
       
      .google.protobuf.ListValue key = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKey in interface Mutation.AckOrBuilder
      Returns:
      The key.
    • setKey

      public Mutation.Ack.Builder setKey(com.google.protobuf.ListValue value)
       Required. The primary key of the message to be acked.
       
      .google.protobuf.ListValue key = 2 [(.google.api.field_behavior) = REQUIRED];
    • setKey

      public Mutation.Ack.Builder setKey(com.google.protobuf.ListValue.Builder builderForValue)
       Required. The primary key of the message to be acked.
       
      .google.protobuf.ListValue key = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeKey

      public Mutation.Ack.Builder mergeKey(com.google.protobuf.ListValue value)
       Required. The primary key of the message to be acked.
       
      .google.protobuf.ListValue key = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearKey

      public Mutation.Ack.Builder clearKey()
       Required. The primary key of the message to be acked.
       
      .google.protobuf.ListValue key = 2 [(.google.api.field_behavior) = REQUIRED];
    • getKeyBuilder

      public com.google.protobuf.ListValue.Builder getKeyBuilder()
       Required. The primary key of the message to be acked.
       
      .google.protobuf.ListValue key = 2 [(.google.api.field_behavior) = REQUIRED];
    • getKeyOrBuilder

      public com.google.protobuf.ListValueOrBuilder getKeyOrBuilder()
       Required. The primary key of the message to be acked.
       
      .google.protobuf.ListValue key = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKeyOrBuilder in interface Mutation.AckOrBuilder
    • getIgnoreNotFound

      public boolean getIgnoreNotFound()
       By default, an attempt to ack a message that does not exist will fail
       with a `NOT_FOUND` error. With `ignore_not_found` set to true, the ack
       will succeed even if the message does not exist. This is useful for
       unconditionally acking a message, even if it is missing or has already
       been acked.
       
      bool ignore_not_found = 3;
      Specified by:
      getIgnoreNotFound in interface Mutation.AckOrBuilder
      Returns:
      The ignoreNotFound.
    • setIgnoreNotFound

      public Mutation.Ack.Builder setIgnoreNotFound(boolean value)
       By default, an attempt to ack a message that does not exist will fail
       with a `NOT_FOUND` error. With `ignore_not_found` set to true, the ack
       will succeed even if the message does not exist. This is useful for
       unconditionally acking a message, even if it is missing or has already
       been acked.
       
      bool ignore_not_found = 3;
      Parameters:
      value - The ignoreNotFound to set.
      Returns:
      This builder for chaining.
    • clearIgnoreNotFound

      public Mutation.Ack.Builder clearIgnoreNotFound()
       By default, an attempt to ack a message that does not exist will fail
       with a `NOT_FOUND` error. With `ignore_not_found` set to true, the ack
       will succeed even if the message does not exist. This is useful for
       unconditionally acking a message, even if it is missing or has already
       been acked.
       
      bool ignore_not_found = 3;
      Returns:
      This builder for chaining.