Class CitedSource.Builder (0.67.0)

public static final class CitedSource.Builder extends GeneratedMessage.Builder<CitedSource.Builder> implements CitedSourceOrBuilder

A reference to a source of information.

Protobuf type google.chat.v1.CitedSource

Static Methods

getDescriptor()

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

Methods

build()

public CitedSource build()
Returns
Type Description
CitedSource

buildPartial()

public CitedSource buildPartial()
Returns
Type Description
CitedSource

clear()

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

clearFooter()

public CitedSource.Builder clearFooter()

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.Builder

clearSnippet()

public CitedSource.Builder clearSnippet()

Optional. Snippet containing information directly from the source.

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

Returns
Type Description
CitedSource.Builder

clearTitle()

public CitedSource.Builder clearTitle()

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

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

Returns
Type Description
CitedSource.Builder

This builder for chaining.

clearUri()

public CitedSource.Builder clearUri()

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

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

Returns
Type Description
CitedSource.Builder

This builder for chaining.

getDefaultInstanceForType()

public CitedSource getDefaultInstanceForType()
Returns
Type Description
CitedSource

getDescriptorForType()

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

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.

getFooterBuilder()

public CitedSource.Footer.Builder getFooterBuilder()

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.Builder

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

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.

getSnippetBuilder()

public CitedSource.Snippet.Builder getSnippetBuilder()

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.Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public CitedSource.Builder mergeFooter(CitedSource.Footer value)

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];

Parameter
Name Description
value CitedSource.Footer
Returns
Type Description
CitedSource.Builder

mergeFrom(CitedSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSnippet(CitedSource.Snippet value)

public CitedSource.Builder mergeSnippet(CitedSource.Snippet value)

Optional. Snippet containing information directly from the source.

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

Parameter
Name Description
value CitedSource.Snippet
Returns
Type Description
CitedSource.Builder
public CitedSource.Builder setFooter(CitedSource.Footer value)

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];

Parameter
Name Description
value CitedSource.Footer
Returns
Type Description
CitedSource.Builder
public CitedSource.Builder setFooter(CitedSource.Footer.Builder builderForValue)

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];

Parameter
Name Description
builderForValue CitedSource.Footer.Builder
Returns
Type Description
CitedSource.Builder

setSnippet(CitedSource.Snippet value)

public CitedSource.Builder setSnippet(CitedSource.Snippet value)

Optional. Snippet containing information directly from the source.

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

Parameter
Name Description
value CitedSource.Snippet
Returns
Type Description
CitedSource.Builder

setSnippet(CitedSource.Snippet.Builder builderForValue)

public CitedSource.Builder setSnippet(CitedSource.Snippet.Builder builderForValue)

Optional. Snippet containing information directly from the source.

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

Parameter
Name Description
builderForValue CitedSource.Snippet.Builder
Returns
Type Description
CitedSource.Builder

setTitle(String value)

public CitedSource.Builder setTitle(String value)

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

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

Parameter
Name Description
value String

The title to set.

Returns
Type Description
CitedSource.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public CitedSource.Builder setTitleBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
CitedSource.Builder

This builder for chaining.

setUri(String value)

public CitedSource.Builder setUri(String value)

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

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

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
CitedSource.Builder

This builder for chaining.

setUriBytes(ByteString value)

public CitedSource.Builder setUriBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
CitedSource.Builder

This builder for chaining.