Class QuotedMessageMetadata.Builder (0.4.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QuotedMessageMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
QuotedMessageMetadata.Builder
Overrides

build()

public QuotedMessageMetadata build()
Returns
TypeDescription
QuotedMessageMetadata

buildPartial()

public QuotedMessageMetadata buildPartial()
Returns
TypeDescription
QuotedMessageMetadata

clear()

public QuotedMessageMetadata.Builder clear()
Returns
TypeDescription
QuotedMessageMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public QuotedMessageMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
QuotedMessageMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public QuotedMessageMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
QuotedMessageMetadata.Builder
Overrides

clone()

public QuotedMessageMetadata.Builder clone()
Returns
TypeDescription
QuotedMessageMetadata.Builder
Overrides

getDefaultInstanceForType()

public QuotedMessageMetadata getDefaultInstanceForType()
Returns
TypeDescription
QuotedMessageMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the lastUpdateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(QuotedMessageMetadata other)

public QuotedMessageMetadata.Builder mergeFrom(QuotedMessageMetadata other)
Parameter
NameDescription
otherQuotedMessageMetadata
Returns
TypeDescription
QuotedMessageMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QuotedMessageMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QuotedMessageMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public QuotedMessageMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
QuotedMessageMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QuotedMessageMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QuotedMessageMetadata.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public QuotedMessageMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
QuotedMessageMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final QuotedMessageMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QuotedMessageMetadata.Builder
Overrides