Class ContextualAddOnMarkup.Card.CardHeader.Builder (0.4.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ContextualAddOnMarkup.Card.CardHeader.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ContextualAddOnMarkup.Card.CardHeader.Builder
Overrides

build()

public ContextualAddOnMarkup.Card.CardHeader build()
Returns
TypeDescription
ContextualAddOnMarkup.Card.CardHeader

buildPartial()

public ContextualAddOnMarkup.Card.CardHeader buildPartial()
Returns
TypeDescription
ContextualAddOnMarkup.Card.CardHeader

clear()

public ContextualAddOnMarkup.Card.CardHeader.Builder clear()
Returns
TypeDescription
ContextualAddOnMarkup.Card.CardHeader.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ContextualAddOnMarkup.Card.CardHeader.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ContextualAddOnMarkup.Card.CardHeader.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ContextualAddOnMarkup.Card.CardHeader.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ContextualAddOnMarkup.Card.CardHeader.Builder
Overrides

clearSubtitle()

public ContextualAddOnMarkup.Card.CardHeader.Builder clearSubtitle()

The subtitle of the card header.

string subtitle = 2;

Returns
TypeDescription
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
TypeDescription
ContextualAddOnMarkup.Card.CardHeader.Builder

This builder for chaining.

clone()

public ContextualAddOnMarkup.Card.CardHeader.Builder clone()
Returns
TypeDescription
ContextualAddOnMarkup.Card.CardHeader.Builder
Overrides

getDefaultInstanceForType()

public ContextualAddOnMarkup.Card.CardHeader getDefaultInstanceForType()
Returns
TypeDescription
ContextualAddOnMarkup.Card.CardHeader

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The imageUrl.

getImageUrlBytes()

public ByteString getImageUrlBytes()

The URL of the image in the card header.

string image_url = 4;

Returns
TypeDescription
ByteString

The bytes for imageUrl.

getSubtitle()

public String getSubtitle()

The subtitle of the card header.

string subtitle = 2;

Returns
TypeDescription
String

The subtitle.

getSubtitleBytes()

public ByteString getSubtitleBytes()

The subtitle of the card header.

string subtitle = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for title.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ContextualAddOnMarkup.Card.CardHeader other)

public ContextualAddOnMarkup.Card.CardHeader.Builder mergeFrom(ContextualAddOnMarkup.Card.CardHeader other)
Parameter
NameDescription
otherContextualAddOnMarkup.Card.CardHeader
Returns
TypeDescription
ContextualAddOnMarkup.Card.CardHeader.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ContextualAddOnMarkup.Card.CardHeader.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContextualAddOnMarkup.Card.CardHeader.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ContextualAddOnMarkup.Card.CardHeader.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ContextualAddOnMarkup.Card.CardHeader.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ContextualAddOnMarkup.Card.CardHeader.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ContextualAddOnMarkup.Card.CardHeader.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ContextualAddOnMarkup.Card.CardHeader.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueContextualAddOnMarkup.Card.CardHeader.ImageStyle

The imageStyle to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The imageUrl to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for imageUrl to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The subtitle to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for subtitle to set.

Returns
TypeDescription
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
NameDescription
valueString

The title to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for title to set.

Returns
TypeDescription
ContextualAddOnMarkup.Card.CardHeader.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ContextualAddOnMarkup.Card.CardHeader.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ContextualAddOnMarkup.Card.CardHeader.Builder
Overrides