public static final class AdaptMessageRequest.Builder extends GeneratedMessage.Builder<AdaptMessageRequest.Builder> implements AdaptMessageRequestOrBuilderMessage sent by the client to the adapter.
Protobuf type google.spanner.adapter.v1.AdaptMessageRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AdaptMessageRequest.BuilderImplements
AdaptMessageRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AdaptMessageRequest build()| Returns | |
|---|---|
| Type | Description |
AdaptMessageRequest |
|
buildPartial()
public AdaptMessageRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
AdaptMessageRequest |
|
clear()
public AdaptMessageRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
AdaptMessageRequest.Builder |
|
clearAttachments()
public AdaptMessageRequest.Builder clearAttachments()| Returns | |
|---|---|
| Type | Description |
AdaptMessageRequest.Builder |
|
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 | |
|---|---|
| Type | Description |
AdaptMessageRequest.Builder |
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 | |
|---|---|
| Type | Description |
AdaptMessageRequest.Builder |
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 | |
|---|---|
| Type | Description |
AdaptMessageRequest.Builder |
This builder for chaining. |
containsAttachments(String key)
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];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAttachments() (deprecated)
public Map<String,String> getAttachments()Use #getAttachmentsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getAttachmentsCount()
public int getAttachmentsCount()Optional. Opaque request state passed by the client to the server.
map<string, string> attachments = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
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];
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getAttachmentsOrDefault(String key, String defaultValue)
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];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getAttachmentsOrThrow(String key)
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];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getDefaultInstanceForType()
public AdaptMessageRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AdaptMessageRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMutableAttachments() (deprecated)
public Map<String,String> getMutableAttachments()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
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) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public 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) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getPayload()
public ByteString getPayload()Optional. Uninterpreted bytes from the underlying wire protocol.
bytes payload = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The payload. |
getProtocol()
public String getProtocol()Required. Identifier for the underlying wire protocol.
string protocol = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The protocol. |
getProtocolBytes()
public ByteString getProtocolBytes()Required. Identifier for the underlying wire protocol.
string protocol = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for protocol. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AdaptMessageRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdaptMessageRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AdaptMessageRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AdaptMessageRequest.Builder |
|
mergeFrom(AdaptMessageRequest other)
public AdaptMessageRequest.Builder mergeFrom(AdaptMessageRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
AdaptMessageRequest |
| Returns | |
|---|---|
| Type | Description |
AdaptMessageRequest.Builder |
|
putAllAttachments(Map<String,String> values)
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];
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
AdaptMessageRequest.Builder |
|
putAttachments(String key, String value)
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];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
AdaptMessageRequest.Builder |
|
removeAttachments(String key)
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];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
AdaptMessageRequest.Builder |
|
setName(String value)
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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptMessageRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public AdaptMessageRequest.Builder setNameBytes(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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptMessageRequest.Builder |
This builder for chaining. |
setPayload(ByteString value)
public AdaptMessageRequest.Builder setPayload(ByteString value)Optional. Uninterpreted bytes from the underlying wire protocol.
bytes payload = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe payload to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptMessageRequest.Builder |
This builder for chaining. |
setProtocol(String value)
public AdaptMessageRequest.Builder setProtocol(String value)Required. Identifier for the underlying wire protocol.
string protocol = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe protocol to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptMessageRequest.Builder |
This builder for chaining. |
setProtocolBytes(ByteString value)
public AdaptMessageRequest.Builder setProtocolBytes(ByteString value)Required. Identifier for the underlying wire protocol.
string protocol = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for protocol to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptMessageRequest.Builder |
This builder for chaining. |