Class RichLinkMetadata (0.15.0)

public final class RichLinkMetadata extends GeneratedMessageV3 implements RichLinkMetadataOrBuilder

A rich link to a resource.

Protobuf type google.chat.v1.RichLinkMetadata

Static Fields

public static final int CHAT_SPACE_LINK_DATA_FIELD_NUMBER
Field Value
Type Description
int
public static final int DRIVE_LINK_DATA_FIELD_NUMBER
Field Value
Type Description
int
public static final int RICH_LINK_TYPE_FIELD_NUMBER
Field Value
Type Description
int

URI_FIELD_NUMBER

public static final int URI_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RichLinkMetadata getDefaultInstance()
Returns
Type Description
RichLinkMetadata

getDescriptor()

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

newBuilder()

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

newBuilder(RichLinkMetadata prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getChatSpaceLinkData()

public ChatSpaceLinkData getChatSpaceLinkData()

Data for a chat space link.

.google.chat.v1.ChatSpaceLinkData chat_space_link_data = 4;

Returns
Type Description
ChatSpaceLinkData

The chatSpaceLinkData.

getChatSpaceLinkDataOrBuilder()

public ChatSpaceLinkDataOrBuilder getChatSpaceLinkDataOrBuilder()

Data for a chat space link.

.google.chat.v1.ChatSpaceLinkData chat_space_link_data = 4;

Returns
Type Description
ChatSpaceLinkDataOrBuilder

getDataCase()

public RichLinkMetadata.DataCase getDataCase()
Returns
Type Description
RichLinkMetadata.DataCase

getDefaultInstanceForType()

public RichLinkMetadata getDefaultInstanceForType()
Returns
Type Description
RichLinkMetadata

getDriveLinkData()

public DriveLinkData getDriveLinkData()

Data for a drive link.

.google.chat.v1.DriveLinkData drive_link_data = 3;

Returns
Type Description
DriveLinkData

The driveLinkData.

getDriveLinkDataOrBuilder()

public DriveLinkDataOrBuilder getDriveLinkDataOrBuilder()

Data for a drive link.

.google.chat.v1.DriveLinkData drive_link_data = 3;

Returns
Type Description
DriveLinkDataOrBuilder

getParserForType()

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

getRichLinkType()

public RichLinkMetadata.RichLinkType getRichLinkType()

The rich link type.

.google.chat.v1.RichLinkMetadata.RichLinkType rich_link_type = 2;

Returns
Type Description
RichLinkMetadata.RichLinkType

The richLinkType.

getRichLinkTypeValue()

public int getRichLinkTypeValue()

The rich link type.

.google.chat.v1.RichLinkMetadata.RichLinkType rich_link_type = 2;

Returns
Type Description
int

The enum numeric value on the wire for richLinkType.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUri()

public String getUri()

The URI of this link.

string uri = 1;

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

The URI of this link.

string uri = 1;

Returns
Type Description
ByteString

The bytes for uri.

hasChatSpaceLinkData()

public boolean hasChatSpaceLinkData()

Data for a chat space link.

.google.chat.v1.ChatSpaceLinkData chat_space_link_data = 4;

Returns
Type Description
boolean

Whether the chatSpaceLinkData field is set.

hasDriveLinkData()

public boolean hasDriveLinkData()

Data for a drive link.

.google.chat.v1.DriveLinkData drive_link_data = 3;

Returns
Type Description
boolean

Whether the driveLinkData field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RichLinkMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RichLinkMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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