Class QuotedMessageMetadata.Builder (0.9.0)

public static final class QuotedMessageMetadata.Builder extends GeneratedMessageV3.Builder<QuotedMessageMetadata.Builder> implements QuotedMessageMetadataOrBuilder

Information about a quoted message.

Protobuf type google.chat.v1.QuotedMessageMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QuotedMessageMetadata build()
Returns
Type Description
QuotedMessageMetadata

buildPartial()

public QuotedMessageMetadata buildPartial()
Returns
Type Description
QuotedMessageMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLastUpdateTime()

public QuotedMessageMetadata.Builder clearLastUpdateTime()

Output only. The timestamp when the quoted message was created or when the quoted message was last updated.

.google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
QuotedMessageMetadata.Builder

clearName()

public QuotedMessageMetadata.Builder clearName()

Output only. Resource name of the quoted message.

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

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

Returns
Type Description
QuotedMessageMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public QuotedMessageMetadata getDefaultInstanceForType()
Returns
Type Description
QuotedMessageMetadata

getDescriptorForType()

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

getLastUpdateTime()

public Timestamp getLastUpdateTime()

Output only. The timestamp when the quoted message was created or when the quoted message was last updated.

.google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The lastUpdateTime.

getLastUpdateTimeBuilder()

public Timestamp.Builder getLastUpdateTimeBuilder()

Output only. The timestamp when the quoted message was created or when the quoted message was last updated.

.google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getLastUpdateTimeOrBuilder()

public TimestampOrBuilder getLastUpdateTimeOrBuilder()

Output only. The timestamp when the quoted message was created or when the quoted message was last updated.

.google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getName()

public String getName()

Output only. Resource name of the quoted message.

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

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Resource name of the quoted message.

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

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

Returns
Type Description
ByteString

The bytes for name.

hasLastUpdateTime()

public boolean hasLastUpdateTime()

Output only. The timestamp when the quoted message was created or when the quoted message was last updated.

.google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the lastUpdateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QuotedMessageMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLastUpdateTime(Timestamp value)

public QuotedMessageMetadata.Builder mergeLastUpdateTime(Timestamp value)

Output only. The timestamp when the quoted message was created or when the quoted message was last updated.

.google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
QuotedMessageMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLastUpdateTime(Timestamp value)

public QuotedMessageMetadata.Builder setLastUpdateTime(Timestamp value)

Output only. The timestamp when the quoted message was created or when the quoted message was last updated.

.google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
QuotedMessageMetadata.Builder

setLastUpdateTime(Timestamp.Builder builderForValue)

public QuotedMessageMetadata.Builder setLastUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the quoted message was created or when the quoted message was last updated.

.google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
QuotedMessageMetadata.Builder

setName(String value)

public QuotedMessageMetadata.Builder setName(String value)

Output only. Resource name of the quoted message.

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

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
QuotedMessageMetadata.Builder

This builder for chaining.

setNameBytes(ByteString value)

public QuotedMessageMetadata.Builder setNameBytes(ByteString value)

Output only. Resource name of the quoted message.

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

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
QuotedMessageMetadata.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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