Class CitedSource (0.67.0)

public final class CitedSource extends GeneratedMessage implements CitedSourceOrBuilder

A reference to a source of information.

Protobuf type google.chat.v1.CitedSource

Static Fields

public static final int FOOTER_FIELD_NUMBER
Field Value
Type Description
int

SNIPPET_FIELD_NUMBER

public static final int SNIPPET_FIELD_NUMBER
Field Value
Type Description
int

TITLE_FIELD_NUMBER

public static final int TITLE_FIELD_NUMBER
Field Value
Type Description
int

URI_FIELD_NUMBER

public static final int URI_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CitedSource getDefaultInstance()
Returns
Type Description
CitedSource

getDescriptor()

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

newBuilder()

public static CitedSource.Builder newBuilder()
Returns
Type Description
CitedSource.Builder

newBuilder(CitedSource prototype)

public static CitedSource.Builder newBuilder(CitedSource prototype)
Parameter
Name Description
prototype CitedSource
Returns
Type Description
CitedSource.Builder

parseDelimitedFrom(InputStream input)

public static CitedSource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CitedSource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CitedSource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CitedSource
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CitedSource parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CitedSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CitedSource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CitedSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CitedSource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CitedSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CitedSource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CitedSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CitedSource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CitedSource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CitedSource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CitedSource
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CitedSource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CitedSource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CitedSource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CitedSource
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CitedSource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CitedSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CitedSource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CitedSource
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CitedSource> parser()
Returns
Type Description
Parser<CitedSource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CitedSource getDefaultInstanceForType()
Returns
Type Description
CitedSource

getFooter()

public CitedSource.Footer getFooter()

Optional. Additional information to show alongside the snippet in the form of a footer.

.google.chat.v1.CitedSource.Footer footer = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CitedSource.Footer

The footer.

getFooterOrBuilder()

public CitedSource.FooterOrBuilder getFooterOrBuilder()

Optional. Additional information to show alongside the snippet in the form of a footer.

.google.chat.v1.CitedSource.Footer footer = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CitedSource.FooterOrBuilder

getParserForType()

public Parser<CitedSource> getParserForType()
Returns
Type Description
Parser<CitedSource>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSnippet()

public CitedSource.Snippet getSnippet()

Optional. Snippet containing information directly from the source.

.google.chat.v1.CitedSource.Snippet snippet = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CitedSource.Snippet

The snippet.

getSnippetOrBuilder()

public CitedSource.SnippetOrBuilder getSnippetOrBuilder()

Optional. Snippet containing information directly from the source.

.google.chat.v1.CitedSource.Snippet snippet = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CitedSource.SnippetOrBuilder

getTitle()

public String getTitle()

Required. The plaintext title of the CitedSource. Does not support markdown format.

string title = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Required. The plaintext title of the CitedSource. Does not support markdown format.

string title = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for title.

getUri()

public String getUri()

Required. The URI pointing to the resource referenced by this CitedSource.

string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Required. The URI pointing to the resource referenced by this CitedSource.

string uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for uri.

hasFooter()

public boolean hasFooter()

Optional. Additional information to show alongside the snippet in the form of a footer.

.google.chat.v1.CitedSource.Footer footer = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the footer field is set.

hasSnippet()

public boolean hasSnippet()

Optional. Snippet containing information directly from the source.

.google.chat.v1.CitedSource.Snippet snippet = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the snippet field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CitedSource.Builder newBuilderForType()
Returns
Type Description
CitedSource.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected CitedSource.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CitedSource.Builder
Overrides

toBuilder()

public CitedSource.Builder toBuilder()
Returns
Type Description
CitedSource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException