Class ForwardedMetadata.Builder (0.49.0)

public static final class ForwardedMetadata.Builder extends GeneratedMessage.Builder<ForwardedMetadata.Builder> implements ForwardedMetadataOrBuilder

Metadata about the source space from which a message was forwarded.

Protobuf type google.chat.v1.ForwardedMetadata

Static Methods

getDescriptor()

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

Methods

build()

public ForwardedMetadata build()
Returns
Type Description
ForwardedMetadata

buildPartial()

public ForwardedMetadata buildPartial()
Returns
Type Description
ForwardedMetadata

clear()

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

clearSpace()

public ForwardedMetadata.Builder clearSpace()

Output only. The resource name of the source space. Format: spaces/{space}

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

Returns
Type Description
ForwardedMetadata.Builder

This builder for chaining.

clearSpaceDisplayName()

public ForwardedMetadata.Builder clearSpaceDisplayName()

Output only. The display name of the source space or DM at the time of forwarding. For SPACE, this is the space name. For DIRECT_MESSAGE, this is the other participant's name (e.g., "User A"). For GROUP_CHAT, this is a generated name based on members' first names, limited to 5 including the creator (e.g., "User A, User B").

string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ForwardedMetadata.Builder

This builder for chaining.

getDefaultInstanceForType()

public ForwardedMetadata getDefaultInstanceForType()
Returns
Type Description
ForwardedMetadata

getDescriptorForType()

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

getSpace()

public String getSpace()

Output only. The resource name of the source space. Format: spaces/{space}

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

Returns
Type Description
String

The space.

getSpaceBytes()

public ByteString getSpaceBytes()

Output only. The resource name of the source space. Format: spaces/{space}

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

Returns
Type Description
ByteString

The bytes for space.

getSpaceDisplayName()

public String getSpaceDisplayName()

Output only. The display name of the source space or DM at the time of forwarding. For SPACE, this is the space name. For DIRECT_MESSAGE, this is the other participant's name (e.g., "User A"). For GROUP_CHAT, this is a generated name based on members' first names, limited to 5 including the creator (e.g., "User A, User B").

string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The spaceDisplayName.

getSpaceDisplayNameBytes()

public ByteString getSpaceDisplayNameBytes()

Output only. The display name of the source space or DM at the time of forwarding. For SPACE, this is the space name. For DIRECT_MESSAGE, this is the other participant's name (e.g., "User A"). For GROUP_CHAT, this is a generated name based on members' first names, limited to 5 including the creator (e.g., "User A, User B").

string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for spaceDisplayName.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ForwardedMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setSpace(String value)

public ForwardedMetadata.Builder setSpace(String value)

Output only. The resource name of the source space. Format: spaces/{space}

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

Parameter
Name Description
value String

The space to set.

Returns
Type Description
ForwardedMetadata.Builder

This builder for chaining.

setSpaceBytes(ByteString value)

public ForwardedMetadata.Builder setSpaceBytes(ByteString value)

Output only. The resource name of the source space. Format: spaces/{space}

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

Parameter
Name Description
value ByteString

The bytes for space to set.

Returns
Type Description
ForwardedMetadata.Builder

This builder for chaining.

setSpaceDisplayName(String value)

public ForwardedMetadata.Builder setSpaceDisplayName(String value)

Output only. The display name of the source space or DM at the time of forwarding. For SPACE, this is the space name. For DIRECT_MESSAGE, this is the other participant's name (e.g., "User A"). For GROUP_CHAT, this is a generated name based on members' first names, limited to 5 including the creator (e.g., "User A, User B").

string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The spaceDisplayName to set.

Returns
Type Description
ForwardedMetadata.Builder

This builder for chaining.

setSpaceDisplayNameBytes(ByteString value)

public ForwardedMetadata.Builder setSpaceDisplayNameBytes(ByteString value)

Output only. The display name of the source space or DM at the time of forwarding. For SPACE, this is the space name. For DIRECT_MESSAGE, this is the other participant's name (e.g., "User A"). For GROUP_CHAT, this is a generated name based on members' first names, limited to 5 including the creator (e.g., "User A, User B").

string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for spaceDisplayName to set.

Returns
Type Description
ForwardedMetadata.Builder

This builder for chaining.