Class MatchedUrl.Builder (0.12.0)

public static final class MatchedUrl.Builder extends GeneratedMessageV3.Builder<MatchedUrl.Builder> implements MatchedUrlOrBuilder

A matched URL in a Chat message. Chat apps can preview matched URLs. For more information, see Preview links.

Protobuf type google.chat.v1.MatchedUrl

Implements

MatchedUrlOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MatchedUrl build()
Returns
Type Description
MatchedUrl

buildPartial()

public MatchedUrl buildPartial()
Returns
Type Description
MatchedUrl

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUrl()

public MatchedUrl.Builder clearUrl()

Output only. The URL that was matched.

string url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MatchedUrl.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public MatchedUrl getDefaultInstanceForType()
Returns
Type Description
MatchedUrl

getDescriptorForType()

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

getUrl()

public String getUrl()

Output only. The URL that was matched.

string url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

Output only. The URL that was matched.

string url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for url.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MatchedUrl other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUrl(String value)

public MatchedUrl.Builder setUrl(String value)

Output only. The URL that was matched.

string url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The url to set.

Returns
Type Description
MatchedUrl.Builder

This builder for chaining.

setUrlBytes(ByteString value)

public MatchedUrl.Builder setUrlBytes(ByteString value)

Output only. The URL that was matched.

string url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for url to set.

Returns
Type Description
MatchedUrl.Builder

This builder for chaining.