Class AdaptMessageRequest.Builder

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

public static final class AdaptMessageRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<AdaptMessageRequest.Builder> implements AdaptMessageRequestOrBuilder
 Message sent by the client to the adapter.
 
Protobuf type google.spanner.adapter.v1.AdaptMessageRequest
  • 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<AdaptMessageRequest.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

      public AdaptMessageRequest.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<AdaptMessageRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The database session in which the adapter request is processed.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface AdaptMessageRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The database session in which the adapter request is processed.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface AdaptMessageRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public AdaptMessageRequest.Builder setName(String value)
       Required. The database session in which the adapter request is processed.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public AdaptMessageRequest.Builder clearName()
       Required. The database session in which the adapter request is processed.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public AdaptMessageRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The database session in which the adapter request is processed.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getProtocol

      public String getProtocol()
       Required. Identifier for the underlying wire protocol.
       
      string protocol = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProtocol in interface AdaptMessageRequestOrBuilder
      Returns:
      The protocol.
    • getProtocolBytes

      public com.google.protobuf.ByteString getProtocolBytes()
       Required. Identifier for the underlying wire protocol.
       
      string protocol = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProtocolBytes in interface AdaptMessageRequestOrBuilder
      Returns:
      The bytes for protocol.
    • setProtocol

      public AdaptMessageRequest.Builder setProtocol(String value)
       Required. Identifier for the underlying wire protocol.
       
      string protocol = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The protocol to set.
      Returns:
      This builder for chaining.
    • clearProtocol

      public AdaptMessageRequest.Builder clearProtocol()
       Required. Identifier for the underlying wire protocol.
       
      string protocol = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setProtocolBytes

      public AdaptMessageRequest.Builder setProtocolBytes(com.google.protobuf.ByteString value)
       Required. Identifier for the underlying wire protocol.
       
      string protocol = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for protocol to set.
      Returns:
      This builder for chaining.
    • getPayload

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

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

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

      public int getAttachmentsCount()
      Description copied from interface: AdaptMessageRequestOrBuilder
       Optional. Opaque request state passed by the client to the server.
       
      map<string, string> attachments = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttachmentsCount in interface AdaptMessageRequestOrBuilder
    • containsAttachments

      public boolean containsAttachments(String key)
       Optional. Opaque request state passed by the client to the server.
       
      map<string, string> attachments = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsAttachments in interface AdaptMessageRequestOrBuilder
    • getAttachments

      @Deprecated public Map<String,String> getAttachments()
      Deprecated.
      Use getAttachmentsMap() instead.
      Specified by:
      getAttachments in interface AdaptMessageRequestOrBuilder
    • getAttachmentsMap

      public Map<String,String> getAttachmentsMap()
       Optional. Opaque request state passed by the client to the server.
       
      map<string, string> attachments = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttachmentsMap in interface AdaptMessageRequestOrBuilder
    • getAttachmentsOrDefault

      public String getAttachmentsOrDefault(String key, String defaultValue)
       Optional. Opaque request state passed by the client to the server.
       
      map<string, string> attachments = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttachmentsOrDefault in interface AdaptMessageRequestOrBuilder
    • getAttachmentsOrThrow

      public String getAttachmentsOrThrow(String key)
       Optional. Opaque request state passed by the client to the server.
       
      map<string, string> attachments = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttachmentsOrThrow in interface AdaptMessageRequestOrBuilder
    • clearAttachments

      public AdaptMessageRequest.Builder clearAttachments()
    • removeAttachments

      public AdaptMessageRequest.Builder removeAttachments(String key)
       Optional. Opaque request state passed by the client to the server.
       
      map<string, string> attachments = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableAttachments

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

      public AdaptMessageRequest.Builder putAttachments(String key, String value)
       Optional. Opaque request state passed by the client to the server.
       
      map<string, string> attachments = 4 [(.google.api.field_behavior) = OPTIONAL];
    • putAllAttachments

      public AdaptMessageRequest.Builder putAllAttachments(Map<String,String> values)
       Optional. Opaque request state passed by the client to the server.
       
      map<string, string> attachments = 4 [(.google.api.field_behavior) = OPTIONAL];