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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MatchedUrl.BuilderImplements
MatchedUrlOrBuilderStatic 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 |
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 |
clearField(Descriptors.FieldDescriptor field)
public MatchedUrl.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
MatchedUrl.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public MatchedUrl.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
MatchedUrl.Builder |
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 |
getDefaultInstanceForType()
public MatchedUrl getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
MatchedUrl |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public MatchedUrl.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
MatchedUrl.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MatchedUrl.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MatchedUrl.Builder |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final MatchedUrl.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MatchedUrl.Builder |
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. |