Class MatchedUrl (0.1.0)

public final class MatchedUrl extends GeneratedMessageV3 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 Fields

URL_FIELD_NUMBER

public static final int URL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MatchedUrl getDefaultInstance()
Returns
TypeDescription
MatchedUrl

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static MatchedUrl.Builder newBuilder()
Returns
TypeDescription
MatchedUrl.Builder

newBuilder(MatchedUrl prototype)

public static MatchedUrl.Builder newBuilder(MatchedUrl prototype)
Parameter
NameDescription
prototypeMatchedUrl
Returns
TypeDescription
MatchedUrl.Builder

parseDelimitedFrom(InputStream input)

public static MatchedUrl parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MatchedUrl
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MatchedUrl parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MatchedUrl
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MatchedUrl parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MatchedUrl
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MatchedUrl parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MatchedUrl
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MatchedUrl parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MatchedUrl
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MatchedUrl parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MatchedUrl
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MatchedUrl parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MatchedUrl
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MatchedUrl parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MatchedUrl
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MatchedUrl parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MatchedUrl
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MatchedUrl parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MatchedUrl
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MatchedUrl parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MatchedUrl
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MatchedUrl parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MatchedUrl
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MatchedUrl> parser()
Returns
TypeDescription
Parser<MatchedUrl>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public MatchedUrl getDefaultInstanceForType()
Returns
TypeDescription
MatchedUrl

getParserForType()

public Parser<MatchedUrl> getParserForType()
Returns
TypeDescription
Parser<MatchedUrl>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MatchedUrl.Builder newBuilderForType()
Returns
TypeDescription
MatchedUrl.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MatchedUrl.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MatchedUrl.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MatchedUrl.Builder toBuilder()
Returns
TypeDescription
MatchedUrl.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException