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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public RichLinkMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public RichLinkMetadata build()
public RichLinkMetadata buildPartial()
public RichLinkMetadata.Builder clear()
Overrides
public RichLinkMetadata.Builder clearData()
public RichLinkMetadata.Builder clearDriveLinkData()
Data for a drive link.
.google.chat.v1.DriveLinkData drive_link_data = 3;
public RichLinkMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public RichLinkMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public RichLinkMetadata.Builder clearRichLinkType()
The rich link type.
.google.chat.v1.RichLinkMetadata.RichLinkType rich_link_type = 2;
public RichLinkMetadata.Builder clearUri()
The URI of this link.
string uri = 1;
public RichLinkMetadata.Builder clone()
Overrides
public RichLinkMetadata.DataCase getDataCase()
public RichLinkMetadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public DriveLinkData getDriveLinkData()
Data for a drive link.
.google.chat.v1.DriveLinkData drive_link_data = 3;
public DriveLinkData.Builder getDriveLinkDataBuilder()
Data for a drive link.
.google.chat.v1.DriveLinkData drive_link_data = 3;
public DriveLinkDataOrBuilder getDriveLinkDataOrBuilder()
Data for a drive link.
.google.chat.v1.DriveLinkData drive_link_data = 3;
public RichLinkMetadata.RichLinkType getRichLinkType()
The rich link type.
.google.chat.v1.RichLinkMetadata.RichLinkType rich_link_type = 2;
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.
|
The URI of this link.
string uri = 1;
Returns |
Type |
Description |
String |
The uri.
|
public ByteString getUriBytes()
The URI of this link.
string uri = 1;
Returns |
Type |
Description |
ByteString |
The bytes for uri.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public RichLinkMetadata.Builder mergeDriveLinkData(DriveLinkData value)
Data for a drive link.
.google.chat.v1.DriveLinkData drive_link_data = 3;
public RichLinkMetadata.Builder mergeFrom(RichLinkMetadata other)
public RichLinkMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public RichLinkMetadata.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final RichLinkMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public RichLinkMetadata.Builder setDriveLinkData(DriveLinkData value)
Data for a drive link.
.google.chat.v1.DriveLinkData drive_link_data = 3;
public RichLinkMetadata.Builder setDriveLinkData(DriveLinkData.Builder builderForValue)
Data for a drive link.
.google.chat.v1.DriveLinkData drive_link_data = 3;
public RichLinkMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public RichLinkMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public RichLinkMetadata.Builder setRichLinkType(RichLinkMetadata.RichLinkType value)
The rich link type.
.google.chat.v1.RichLinkMetadata.RichLinkType rich_link_type = 2;
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.
|
public final RichLinkMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
public RichLinkMetadata.Builder setUri(String value)
The URI of this link.
string uri = 1;
Parameter |
Name |
Description |
value |
String
The uri to set.
|
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.
|