Class ForwardedMetadata (0.49.0)

public final class ForwardedMetadata extends GeneratedMessage implements ForwardedMetadataOrBuilder

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

Protobuf type google.chat.v1.ForwardedMetadata

Static Fields

SPACE_DISPLAY_NAME_FIELD_NUMBER

public static final int SPACE_DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

SPACE_FIELD_NUMBER

public static final int SPACE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ForwardedMetadata getDefaultInstance()
Returns
Type Description
ForwardedMetadata

getDescriptor()

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

newBuilder()

public static ForwardedMetadata.Builder newBuilder()
Returns
Type Description
ForwardedMetadata.Builder

newBuilder(ForwardedMetadata prototype)

public static ForwardedMetadata.Builder newBuilder(ForwardedMetadata prototype)
Parameter
Name Description
prototype ForwardedMetadata
Returns
Type Description
ForwardedMetadata.Builder

parseDelimitedFrom(InputStream input)

public static ForwardedMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ForwardedMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ForwardedMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ForwardedMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ForwardedMetadata parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ForwardedMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ForwardedMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ForwardedMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ForwardedMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ForwardedMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ForwardedMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ForwardedMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ForwardedMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ForwardedMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ForwardedMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ForwardedMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ForwardedMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ForwardedMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ForwardedMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ForwardedMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ForwardedMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ForwardedMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ForwardedMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ForwardedMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ForwardedMetadata> parser()
Returns
Type Description
Parser<ForwardedMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ForwardedMetadata getDefaultInstanceForType()
Returns
Type Description
ForwardedMetadata

getParserForType()

public Parser<ForwardedMetadata> getParserForType()
Returns
Type Description
Parser<ForwardedMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ForwardedMetadata.Builder newBuilderForType()
Returns
Type Description
ForwardedMetadata.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ForwardedMetadata.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ForwardedMetadata.Builder
Overrides

toBuilder()

public ForwardedMetadata.Builder toBuilder()
Returns
Type Description
ForwardedMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException