Class ContextualAddOnMarkup.Card.CardHeader.Builder (0.11.0)

public static final class ContextualAddOnMarkup.Card.CardHeader.Builder extends GeneratedMessageV3.Builder<ContextualAddOnMarkup.Card.CardHeader.Builder> implements ContextualAddOnMarkup.Card.CardHeaderOrBuilder

Protobuf type google.chat.v1.ContextualAddOnMarkup.Card.CardHeader

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ContextualAddOnMarkup.Card.CardHeader.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder
Overrides

build()

public ContextualAddOnMarkup.Card.CardHeader build()
Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader

buildPartial()

public ContextualAddOnMarkup.Card.CardHeader buildPartial()
Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader

clear()

public ContextualAddOnMarkup.Card.CardHeader.Builder clear()
Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ContextualAddOnMarkup.Card.CardHeader.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder
Overrides

clearImageStyle()

public ContextualAddOnMarkup.Card.CardHeader.Builder clearImageStyle()

The image's type (for example, square border or circular border).

.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle image_style = 3;

Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder

This builder for chaining.

clearImageUrl()

public ContextualAddOnMarkup.Card.CardHeader.Builder clearImageUrl()

The URL of the image in the card header.

string image_url = 4;

Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ContextualAddOnMarkup.Card.CardHeader.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder
Overrides

clearSubtitle()

public ContextualAddOnMarkup.Card.CardHeader.Builder clearSubtitle()

The subtitle of the card header.

string subtitle = 2;

Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder

This builder for chaining.

clearTitle()

public ContextualAddOnMarkup.Card.CardHeader.Builder clearTitle()

The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each takes up one line. If only the title is specified, it takes up both lines.

string title = 1;

Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder

This builder for chaining.

clone()

public ContextualAddOnMarkup.Card.CardHeader.Builder clone()
Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder
Overrides

getDefaultInstanceForType()

public ContextualAddOnMarkup.Card.CardHeader getDefaultInstanceForType()
Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader

getDescriptorForType()

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

getImageStyle()

public ContextualAddOnMarkup.Card.CardHeader.ImageStyle getImageStyle()

The image's type (for example, square border or circular border).

.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle image_style = 3;

Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.ImageStyle

The imageStyle.

getImageStyleValue()

public int getImageStyleValue()

The image's type (for example, square border or circular border).

.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle image_style = 3;

Returns
Type Description
int

The enum numeric value on the wire for imageStyle.

getImageUrl()

public String getImageUrl()

The URL of the image in the card header.

string image_url = 4;

Returns
Type Description
String

The imageUrl.

getImageUrlBytes()

public ByteString getImageUrlBytes()

The URL of the image in the card header.

string image_url = 4;

Returns
Type Description
ByteString

The bytes for imageUrl.

getSubtitle()

public String getSubtitle()

The subtitle of the card header.

string subtitle = 2;

Returns
Type Description
String

The subtitle.

getSubtitleBytes()

public ByteString getSubtitleBytes()

The subtitle of the card header.

string subtitle = 2;

Returns
Type Description
ByteString

The bytes for subtitle.

getTitle()

public String getTitle()

The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each takes up one line. If only the title is specified, it takes up both lines.

string title = 1;

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each takes up one line. If only the title is specified, it takes up both lines.

string title = 1;

Returns
Type Description
ByteString

The bytes for title.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ContextualAddOnMarkup.Card.CardHeader other)

public ContextualAddOnMarkup.Card.CardHeader.Builder mergeFrom(ContextualAddOnMarkup.Card.CardHeader other)
Parameter
Name Description
other ContextualAddOnMarkup.Card.CardHeader
Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ContextualAddOnMarkup.Card.CardHeader.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ContextualAddOnMarkup.Card.CardHeader.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ContextualAddOnMarkup.Card.CardHeader.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder
Overrides

setImageStyle(ContextualAddOnMarkup.Card.CardHeader.ImageStyle value)

public ContextualAddOnMarkup.Card.CardHeader.Builder setImageStyle(ContextualAddOnMarkup.Card.CardHeader.ImageStyle value)

The image's type (for example, square border or circular border).

.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle image_style = 3;

Parameter
Name Description
value ContextualAddOnMarkup.Card.CardHeader.ImageStyle

The imageStyle to set.

Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder

This builder for chaining.

setImageStyleValue(int value)

public ContextualAddOnMarkup.Card.CardHeader.Builder setImageStyleValue(int value)

The image's type (for example, square border or circular border).

.google.chat.v1.ContextualAddOnMarkup.Card.CardHeader.ImageStyle image_style = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for imageStyle to set.

Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder

This builder for chaining.

setImageUrl(String value)

public ContextualAddOnMarkup.Card.CardHeader.Builder setImageUrl(String value)

The URL of the image in the card header.

string image_url = 4;

Parameter
Name Description
value String

The imageUrl to set.

Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder

This builder for chaining.

setImageUrlBytes(ByteString value)

public ContextualAddOnMarkup.Card.CardHeader.Builder setImageUrlBytes(ByteString value)

The URL of the image in the card header.

string image_url = 4;

Parameter
Name Description
value ByteString

The bytes for imageUrl to set.

Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ContextualAddOnMarkup.Card.CardHeader.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder
Overrides

setSubtitle(String value)

public ContextualAddOnMarkup.Card.CardHeader.Builder setSubtitle(String value)

The subtitle of the card header.

string subtitle = 2;

Parameter
Name Description
value String

The subtitle to set.

Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder

This builder for chaining.

setSubtitleBytes(ByteString value)

public ContextualAddOnMarkup.Card.CardHeader.Builder setSubtitleBytes(ByteString value)

The subtitle of the card header.

string subtitle = 2;

Parameter
Name Description
value ByteString

The bytes for subtitle to set.

Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder

This builder for chaining.

setTitle(String value)

public ContextualAddOnMarkup.Card.CardHeader.Builder setTitle(String value)

The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each takes up one line. If only the title is specified, it takes up both lines.

string title = 1;

Parameter
Name Description
value String

The title to set.

Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public ContextualAddOnMarkup.Card.CardHeader.Builder setTitleBytes(ByteString value)

The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each takes up one line. If only the title is specified, it takes up both lines.

string title = 1;

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ContextualAddOnMarkup.Card.CardHeader.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ContextualAddOnMarkup.Card.CardHeader.Builder
Overrides