Class RichLinkMetadata.Builder (0.10.0)

public static final class RichLinkMetadata.Builder extends GeneratedMessageV3.Builder<RichLinkMetadata.Builder> implements RichLinkMetadataOrBuilder

A rich link to a resource.

Protobuf type google.chat.v1.RichLinkMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RichLinkMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RichLinkMetadata.Builder
Overrides

build()

public RichLinkMetadata build()
Returns
Type Description
RichLinkMetadata

buildPartial()

public RichLinkMetadata buildPartial()
Returns
Type Description
RichLinkMetadata

clear()

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

clearData()

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

clearDriveLinkData()

public RichLinkMetadata.Builder clearDriveLinkData()

Data for a drive link.

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

Returns
Type Description
RichLinkMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

public RichLinkMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RichLinkMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RichLinkMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RichLinkMetadata.Builder
Overrides

clearRichLinkType()

public RichLinkMetadata.Builder clearRichLinkType()

The rich link type.

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

Returns
Type Description
RichLinkMetadata.Builder

This builder for chaining.

clearUri()

public RichLinkMetadata.Builder clearUri()

The URI of this link.

string uri = 1;

Returns
Type Description
RichLinkMetadata.Builder

This builder for chaining.

clone()

public RichLinkMetadata.Builder clone()
Returns
Type Description
RichLinkMetadata.Builder
Overrides

getDataCase()

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

getDefaultInstanceForType()

public RichLinkMetadata getDefaultInstanceForType()
Returns
Type Description
RichLinkMetadata

getDescriptorForType()

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

getDriveLinkData()

public DriveLinkData getDriveLinkData()

Data for a drive link.

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

Returns
Type Description
DriveLinkData

The driveLinkData.

getDriveLinkDataBuilder()

public DriveLinkData.Builder getDriveLinkDataBuilder()

Data for a drive link.

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

Returns
Type Description
DriveLinkData.Builder

getDriveLinkDataOrBuilder()

public DriveLinkDataOrBuilder getDriveLinkDataOrBuilder()

Data for a drive link.

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

Returns
Type Description
DriveLinkDataOrBuilder

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.

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDriveLinkData(DriveLinkData value)

public RichLinkMetadata.Builder mergeDriveLinkData(DriveLinkData value)

Data for a drive link.

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

Parameter
Name Description
value DriveLinkData
Returns
Type Description
RichLinkMetadata.Builder

mergeFrom(RichLinkMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RichLinkMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RichLinkMetadata.Builder
Overrides

setDriveLinkData(DriveLinkData value)

public RichLinkMetadata.Builder setDriveLinkData(DriveLinkData value)

Data for a drive link.

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

Parameter
Name Description
value DriveLinkData
Returns
Type Description
RichLinkMetadata.Builder

setDriveLinkData(DriveLinkData.Builder builderForValue)

public RichLinkMetadata.Builder setDriveLinkData(DriveLinkData.Builder builderForValue)

Data for a drive link.

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

Parameter
Name Description
builderForValue DriveLinkData.Builder
Returns
Type Description
RichLinkMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public RichLinkMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RichLinkMetadata.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RichLinkMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RichLinkMetadata.Builder
Overrides

setRichLinkType(RichLinkMetadata.RichLinkType value)

public RichLinkMetadata.Builder setRichLinkType(RichLinkMetadata.RichLinkType value)

The rich link type.

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

Parameter
Name Description
value RichLinkMetadata.RichLinkType

The richLinkType to set.

Returns
Type Description
RichLinkMetadata.Builder

This builder for chaining.

setRichLinkTypeValue(int value)

public RichLinkMetadata.Builder setRichLinkTypeValue(int value)

The rich link type.

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

Parameter
Name Description
value int

The enum numeric value on the wire for richLinkType to set.

Returns
Type Description
RichLinkMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RichLinkMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RichLinkMetadata.Builder
Overrides

setUri(String value)

public RichLinkMetadata.Builder setUri(String value)

The URI of this link.

string uri = 1;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
RichLinkMetadata.Builder

This builder for chaining.

setUriBytes(ByteString value)

public RichLinkMetadata.Builder setUriBytes(ByteString value)

The URI of this link.

string uri = 1;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
RichLinkMetadata.Builder

This builder for chaining.