Class CitedSource.Footer.Builder (0.67.0)

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

A footer for a source, used for attribution.

Protobuf type google.chat.v1.CitedSource.Footer

Static Methods

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

Methods

public CitedSource.Footer build()
Returns
Type Description
CitedSource.Footer
public CitedSource.Footer buildPartial()
Returns
Type Description
CitedSource.Footer
public CitedSource.Footer.Builder clear()
Returns
Type Description
CitedSource.Footer.Builder
Overrides
public CitedSource.Footer.Builder clearText()

Optional. The plaintext to display in the footer. Does not support markdown format.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CitedSource.Footer.Builder

This builder for chaining.

public CitedSource.Footer getDefaultInstanceForType()
Returns
Type Description
CitedSource.Footer
public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides
public String getText()

Optional. The plaintext to display in the footer. Does not support markdown format.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The text.

public ByteString getTextBytes()

Optional. The plaintext to display in the footer. Does not support markdown format.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for text.

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public CitedSource.Footer.Builder mergeFrom(CitedSource.Footer other)
Parameter
Name Description
other CitedSource.Footer
Returns
Type Description
CitedSource.Footer.Builder
public CitedSource.Footer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CitedSource.Footer.Builder
Overrides
Exceptions
Type Description
IOException
public CitedSource.Footer.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CitedSource.Footer.Builder
Overrides
public CitedSource.Footer.Builder setText(String value)

Optional. The plaintext to display in the footer. Does not support markdown format.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The text to set.

Returns
Type Description
CitedSource.Footer.Builder

This builder for chaining.

public CitedSource.Footer.Builder setTextBytes(ByteString value)

Optional. The plaintext to display in the footer. Does not support markdown format.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
CitedSource.Footer.Builder

This builder for chaining.