Class GetMessageRequest.Builder (0.9.0)

public static final class GetMessageRequest.Builder extends GeneratedMessageV3.Builder<GetMessageRequest.Builder> implements GetMessageRequestOrBuilder

Request to get a message.

Protobuf type google.chat.v1.GetMessageRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetMessageRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetMessageRequest.Builder
Overrides

build()

public GetMessageRequest build()
Returns
Type Description
GetMessageRequest

buildPartial()

public GetMessageRequest buildPartial()
Returns
Type Description
GetMessageRequest

clear()

public GetMessageRequest.Builder clear()
Returns
Type Description
GetMessageRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetMessageRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GetMessageRequest.Builder
Overrides

clearName()

public GetMessageRequest.Builder clearName()

Required. Resource name of the message.

Format: spaces/{space}/messages/{message}

If you've set a custom ID for your message, you can use the value from the clientAssignedMessageId field for {message}. For details, see Name a message.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GetMessageRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetMessageRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GetMessageRequest.Builder
Overrides

clone()

public GetMessageRequest.Builder clone()
Returns
Type Description
GetMessageRequest.Builder
Overrides

getDefaultInstanceForType()

public GetMessageRequest getDefaultInstanceForType()
Returns
Type Description
GetMessageRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Required. Resource name of the message.

Format: spaces/{space}/messages/{message}

If you've set a custom ID for your message, you can use the value from the clientAssignedMessageId field for {message}. For details, see Name a message.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Resource name of the message.

Format: spaces/{space}/messages/{message}

If you've set a custom ID for your message, you can use the value from the clientAssignedMessageId field for {message}. For details, see Name a message.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetMessageRequest other)

public GetMessageRequest.Builder mergeFrom(GetMessageRequest other)
Parameter
Name Description
other GetMessageRequest
Returns
Type Description
GetMessageRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetMessageRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetMessageRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GetMessageRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GetMessageRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetMessageRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetMessageRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetMessageRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetMessageRequest.Builder
Overrides

setName(String value)

public GetMessageRequest.Builder setName(String value)

Required. Resource name of the message.

Format: spaces/{space}/messages/{message}

If you've set a custom ID for your message, you can use the value from the clientAssignedMessageId field for {message}. For details, see Name a message.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetMessageRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetMessageRequest.Builder setNameBytes(ByteString value)

Required. Resource name of the message.

Format: spaces/{space}/messages/{message}

If you've set a custom ID for your message, you can use the value from the clientAssignedMessageId field for {message}. For details, see Name a message.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetMessageRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GetMessageRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GetMessageRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetMessageRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetMessageRequest.Builder
Overrides