Class RichLinkMetadata.Builder (0.3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RichLinkMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RichLinkMetadata.Builder
Overrides

build()

public RichLinkMetadata build()
Returns
TypeDescription
RichLinkMetadata

buildPartial()

public RichLinkMetadata buildPartial()
Returns
TypeDescription
RichLinkMetadata

clear()

public RichLinkMetadata.Builder clear()
Returns
TypeDescription
RichLinkMetadata.Builder
Overrides

clearData()

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

clearDriveLinkData()

public RichLinkMetadata.Builder clearDriveLinkData()

Data for a drive link.

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

Returns
TypeDescription
RichLinkMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

public RichLinkMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RichLinkMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RichLinkMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RichLinkMetadata.Builder
Overrides

clearRichLinkType()

public RichLinkMetadata.Builder clearRichLinkType()

The rich link type.

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

Returns
TypeDescription
RichLinkMetadata.Builder

This builder for chaining.

clearUri()

public RichLinkMetadata.Builder clearUri()

The URI of this link.

string uri = 1;

Returns
TypeDescription
RichLinkMetadata.Builder

This builder for chaining.

clone()

public RichLinkMetadata.Builder clone()
Returns
TypeDescription
RichLinkMetadata.Builder
Overrides

getDataCase()

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

getDefaultInstanceForType()

public RichLinkMetadata getDefaultInstanceForType()
Returns
TypeDescription
RichLinkMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDriveLinkData()

public DriveLinkData getDriveLinkData()

Data for a drive link.

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

Returns
TypeDescription
DriveLinkData

The driveLinkData.

getDriveLinkDataBuilder()

public DriveLinkData.Builder getDriveLinkDataBuilder()

Data for a drive link.

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

Returns
TypeDescription
DriveLinkData.Builder

getDriveLinkDataOrBuilder()

public DriveLinkDataOrBuilder getDriveLinkDataOrBuilder()

Data for a drive link.

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

Returns
TypeDescription
DriveLinkDataOrBuilder

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDriveLinkData
Returns
TypeDescription
RichLinkMetadata.Builder

mergeFrom(RichLinkMetadata other)

public RichLinkMetadata.Builder mergeFrom(RichLinkMetadata other)
Parameter
NameDescription
otherRichLinkMetadata
Returns
TypeDescription
RichLinkMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RichLinkMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RichLinkMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RichLinkMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RichLinkMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RichLinkMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDriveLinkData
Returns
TypeDescription
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
NameDescription
builderForValueDriveLinkData.Builder
Returns
TypeDescription
RichLinkMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public RichLinkMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RichLinkMetadata.Builder
Overrides

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

public RichLinkMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueRichLinkMetadata.RichLinkType

The richLinkType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
RichLinkMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RichLinkMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RichLinkMetadata.Builder
Overrides

setUri(String value)

public RichLinkMetadata.Builder setUri(String value)

The URI of this link.

string uri = 1;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
RichLinkMetadata.Builder

This builder for chaining.

setUriBytes(ByteString value)

public RichLinkMetadata.Builder setUriBytes(ByteString value)

The URI of this link.

string uri = 1;

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
RichLinkMetadata.Builder

This builder for chaining.