Class MatchedUrl.Builder (0.5.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MatchedUrl build()
Returns
TypeDescription
MatchedUrl

buildPartial()

public MatchedUrl buildPartial()
Returns
TypeDescription
MatchedUrl

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public MatchedUrl.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
MatchedUrl.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public MatchedUrl getDefaultInstanceForType()
Returns
TypeDescription
MatchedUrl

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUrl()

public String getUrl()

Output only. The URL that was matched.

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

Returns
TypeDescription
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

Output only. The URL that was matched.

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

Returns
TypeDescription
ByteString

The bytes for url.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MatchedUrl other)

public MatchedUrl.Builder mergeFrom(MatchedUrl other)
Parameter
NameDescription
otherMatchedUrl
Returns
TypeDescription
MatchedUrl.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MatchedUrl.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MatchedUrl.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public MatchedUrl.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MatchedUrl.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MatchedUrl.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The url to set.

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

The bytes for url to set.

Returns
TypeDescription
MatchedUrl.Builder

This builder for chaining.