Class RichLinkMetadata (0.3.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 DRIVE_LINK_DATA_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int RICH_LINK_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

URI_FIELD_NUMBER

public static final int URI_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RichLinkMetadata getDefaultInstance()
Returns
TypeDescription
RichLinkMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RichLinkMetadata.Builder newBuilder()
Returns
TypeDescription
RichLinkMetadata.Builder

newBuilder(RichLinkMetadata prototype)

public static RichLinkMetadata.Builder newBuilder(RichLinkMetadata prototype)
Parameter
NameDescription
prototypeRichLinkMetadata
Returns
TypeDescription
RichLinkMetadata.Builder

parseDelimitedFrom(InputStream input)

public static RichLinkMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RichLinkMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RichLinkMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RichLinkMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RichLinkMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RichLinkMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RichLinkMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RichLinkMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RichLinkMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RichLinkMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RichLinkMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RichLinkMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RichLinkMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RichLinkMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RichLinkMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RichLinkMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RichLinkMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RichLinkMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RichLinkMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RichLinkMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RichLinkMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RichLinkMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RichLinkMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RichLinkMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RichLinkMetadata> parser()
Returns
TypeDescription
Parser<RichLinkMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDataCase()

public RichLinkMetadata.DataCase getDataCase()
Returns
TypeDescription
RichLinkMetadata.DataCase

getDefaultInstanceForType()

public RichLinkMetadata getDefaultInstanceForType()
Returns
TypeDescription
RichLinkMetadata

getDriveLinkData()

public DriveLinkData getDriveLinkData()

Data for a drive link.

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

Returns
TypeDescription
DriveLinkData

The driveLinkData.

getDriveLinkDataOrBuilder()

public DriveLinkDataOrBuilder getDriveLinkDataOrBuilder()

Data for a drive link.

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

Returns
TypeDescription
DriveLinkDataOrBuilder

getParserForType()

public Parser<RichLinkMetadata> getParserForType()
Returns
TypeDescription
Parser<RichLinkMetadata>
Overrides

getRichLinkType()

public RichLinkMetadata.RichLinkType getRichLinkType()

The rich link type.

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

Returns
TypeDescription
RichLinkMetadata.RichLinkType

The richLinkType.

getRichLinkTypeValue()

public int getRichLinkTypeValue()

The rich link type.

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

Returns
TypeDescription
int

The enum numeric value on the wire for richLinkType.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUri()

public String getUri()

The URI of this link.

string uri = 1;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

The URI of this link.

string uri = 1;

Returns
TypeDescription
ByteString

The bytes for uri.

hasDriveLinkData()

public boolean hasDriveLinkData()

Data for a drive link.

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

Returns
TypeDescription
boolean

Whether the driveLinkData field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RichLinkMetadata.Builder newBuilderForType()
Returns
TypeDescription
RichLinkMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RichLinkMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RichLinkMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RichLinkMetadata.Builder toBuilder()
Returns
TypeDescription
RichLinkMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException