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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RichLinkMetadata.BuilderImplements
RichLinkMetadataOrBuilderStatic 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 |
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 |
clearChatSpaceLinkData()
public RichLinkMetadata.Builder clearChatSpaceLinkData()
Data for a chat space link.
.google.chat.v1.ChatSpaceLinkData chat_space_link_data = 4;
Returns | |
---|---|
Type | Description |
RichLinkMetadata.Builder |
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 |
clearOneof(Descriptors.OneofDescriptor oneof)
public RichLinkMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
RichLinkMetadata.Builder |
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 |
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. |
getChatSpaceLinkDataBuilder()
public ChatSpaceLinkData.Builder getChatSpaceLinkDataBuilder()
Data for a chat space link.
.google.chat.v1.ChatSpaceLinkData chat_space_link_data = 4;
Returns | |
---|---|
Type | Description |
ChatSpaceLinkData.Builder |
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 |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeChatSpaceLinkData(ChatSpaceLinkData value)
public RichLinkMetadata.Builder mergeChatSpaceLinkData(ChatSpaceLinkData value)
Data for a chat space link.
.google.chat.v1.ChatSpaceLinkData chat_space_link_data = 4;
Parameter | |
---|---|
Name | Description |
value |
ChatSpaceLinkData |
Returns | |
---|---|
Type | Description |
RichLinkMetadata.Builder |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public RichLinkMetadata.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
RichLinkMetadata.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RichLinkMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
RichLinkMetadata.Builder |
setChatSpaceLinkData(ChatSpaceLinkData value)
public RichLinkMetadata.Builder setChatSpaceLinkData(ChatSpaceLinkData value)
Data for a chat space link.
.google.chat.v1.ChatSpaceLinkData chat_space_link_data = 4;
Parameter | |
---|---|
Name | Description |
value |
ChatSpaceLinkData |
Returns | |
---|---|
Type | Description |
RichLinkMetadata.Builder |
setChatSpaceLinkData(ChatSpaceLinkData.Builder builderForValue)
public RichLinkMetadata.Builder setChatSpaceLinkData(ChatSpaceLinkData.Builder builderForValue)
Data for a chat space link.
.google.chat.v1.ChatSpaceLinkData chat_space_link_data = 4;
Parameter | |
---|---|
Name | Description |
builderForValue |
ChatSpaceLinkData.Builder |
Returns | |
---|---|
Type | Description |
RichLinkMetadata.Builder |
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 |
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 |
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 |
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. |