Class AdaptMessageResponse.Builder

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

public static final class AdaptMessageResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<AdaptMessageResponse.Builder> implements AdaptMessageResponseOrBuilder
 Message sent by the adapter to the client.
 
Protobuf type google.spanner.adapter.v1.AdaptMessageResponse
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AdaptMessageResponse.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AdaptMessageResponse.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

      public AdaptMessageResponse.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<AdaptMessageResponse.Builder>
      Throws:
      IOException
    • getPayload

      public com.google.protobuf.ByteString getPayload()
       Optional. Uninterpreted bytes from the underlying wire protocol.
       
      bytes payload = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPayload in interface AdaptMessageResponseOrBuilder
      Returns:
      The payload.
    • setPayload

      public AdaptMessageResponse.Builder setPayload(com.google.protobuf.ByteString value)
       Optional. Uninterpreted bytes from the underlying wire protocol.
       
      bytes payload = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The payload to set.
      Returns:
      This builder for chaining.
    • clearPayload

      public AdaptMessageResponse.Builder clearPayload()
       Optional. Uninterpreted bytes from the underlying wire protocol.
       
      bytes payload = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getStateUpdatesCount

      public int getStateUpdatesCount()
      Description copied from interface: AdaptMessageResponseOrBuilder
       Optional. Opaque state updates to be applied by the client.
       
      map<string, string> state_updates = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStateUpdatesCount in interface AdaptMessageResponseOrBuilder
    • containsStateUpdates

      public boolean containsStateUpdates(String key)
       Optional. Opaque state updates to be applied by the client.
       
      map<string, string> state_updates = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsStateUpdates in interface AdaptMessageResponseOrBuilder
    • getStateUpdates

      @Deprecated public Map<String,String> getStateUpdates()
      Deprecated.
      Specified by:
      getStateUpdates in interface AdaptMessageResponseOrBuilder
    • getStateUpdatesMap

      public Map<String,String> getStateUpdatesMap()
       Optional. Opaque state updates to be applied by the client.
       
      map<string, string> state_updates = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStateUpdatesMap in interface AdaptMessageResponseOrBuilder
    • getStateUpdatesOrDefault

      public String getStateUpdatesOrDefault(String key, String defaultValue)
       Optional. Opaque state updates to be applied by the client.
       
      map<string, string> state_updates = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStateUpdatesOrDefault in interface AdaptMessageResponseOrBuilder
    • getStateUpdatesOrThrow

      public String getStateUpdatesOrThrow(String key)
       Optional. Opaque state updates to be applied by the client.
       
      map<string, string> state_updates = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStateUpdatesOrThrow in interface AdaptMessageResponseOrBuilder
    • clearStateUpdates

      public AdaptMessageResponse.Builder clearStateUpdates()
    • removeStateUpdates

      public AdaptMessageResponse.Builder removeStateUpdates(String key)
       Optional. Opaque state updates to be applied by the client.
       
      map<string, string> state_updates = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableStateUpdates

      @Deprecated public Map<String,String> getMutableStateUpdates()
      Deprecated.
      Use alternate mutation accessors instead.
    • putStateUpdates

      public AdaptMessageResponse.Builder putStateUpdates(String key, String value)
       Optional. Opaque state updates to be applied by the client.
       
      map<string, string> state_updates = 2 [(.google.api.field_behavior) = OPTIONAL];
    • putAllStateUpdates

      public AdaptMessageResponse.Builder putAllStateUpdates(Map<String,String> values)
       Optional. Opaque state updates to be applied by the client.
       
      map<string, string> state_updates = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getLast

      public boolean getLast()
       Optional. Indicates whether this is the last
       [AdaptMessageResponse][google.spanner.adapter.v1.AdaptMessageResponse] in
       the stream. This field may be optionally set by the server. Clients should
       not rely on this field being set in all cases.
       
      bool last = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLast in interface AdaptMessageResponseOrBuilder
      Returns:
      The last.
    • setLast

      public AdaptMessageResponse.Builder setLast(boolean value)
       Optional. Indicates whether this is the last
       [AdaptMessageResponse][google.spanner.adapter.v1.AdaptMessageResponse] in
       the stream. This field may be optionally set by the server. Clients should
       not rely on this field being set in all cases.
       
      bool last = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The last to set.
      Returns:
      This builder for chaining.
    • clearLast

      public AdaptMessageResponse.Builder clearLast()
       Optional. Indicates whether this is the last
       [AdaptMessageResponse][google.spanner.adapter.v1.AdaptMessageResponse] in
       the stream. This field may be optionally set by the server. Clients should
       not rely on this field being set in all cases.
       
      bool last = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.