Class Card.CardHeader (2.37.1)

public static final class Card.CardHeader extends GeneratedMessageV3 implements Card.CardHeaderOrBuilder

Represents a card header. For an example in Google Chat apps, see Card header.

Google Workspace Add-ons and Chat apps:

Protobuf type google.apps.card.v1.Card.CardHeader

Static Fields

IMAGE_ALT_TEXT_FIELD_NUMBER

public static final int IMAGE_ALT_TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

IMAGE_TYPE_FIELD_NUMBER

public static final int IMAGE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

IMAGE_URL_FIELD_NUMBER

public static final int IMAGE_URL_FIELD_NUMBER
Field Value
TypeDescription
int

SUBTITLE_FIELD_NUMBER

public static final int SUBTITLE_FIELD_NUMBER
Field Value
TypeDescription
int

TITLE_FIELD_NUMBER

public static final int TITLE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Card.CardHeader getDefaultInstance()
Returns
TypeDescription
Card.CardHeader

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Card.CardHeader.Builder newBuilder()
Returns
TypeDescription
Card.CardHeader.Builder

newBuilder(Card.CardHeader prototype)

public static Card.CardHeader.Builder newBuilder(Card.CardHeader prototype)
Parameter
NameDescription
prototypeCard.CardHeader
Returns
TypeDescription
Card.CardHeader.Builder

parseDelimitedFrom(InputStream input)

public static Card.CardHeader parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Card.CardHeader
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Card.CardHeader parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Card.CardHeader
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Card.CardHeader parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Card.CardHeader
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Card.CardHeader parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Card.CardHeader
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Card.CardHeader parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Card.CardHeader
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Card.CardHeader parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Card.CardHeader
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Card.CardHeader parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Card.CardHeader
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Card.CardHeader parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Card.CardHeader
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Card.CardHeader parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Card.CardHeader
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Card.CardHeader parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Card.CardHeader
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Card.CardHeader parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Card.CardHeader
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Card.CardHeader parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Card.CardHeader
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Card.CardHeader> parser()
Returns
TypeDescription
Parser<CardHeader>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

getImageAltText()

public String getImageAltText()

The alternative text of this image that's used for accessibility.

string image_alt_text = 5;

Returns
TypeDescription
String

The imageAltText.

getImageAltTextBytes()

public ByteString getImageAltTextBytes()

The alternative text of this image that's used for accessibility.

string image_alt_text = 5;

Returns
TypeDescription
ByteString

The bytes for imageAltText.

getImageType()

public Widget.ImageType getImageType()

The shape used to crop the image.

Google Workspace Add-ons and Chat apps:

.google.apps.card.v1.Widget.ImageType image_type = 3;

Returns
TypeDescription
Widget.ImageType

The imageType.

getImageTypeValue()

public int getImageTypeValue()

The shape used to crop the image.

Google Workspace Add-ons and Chat apps:

.google.apps.card.v1.Widget.ImageType image_type = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for imageType.

getImageUrl()

public String getImageUrl()

The HTTPS URL of the image in the card header.

string image_url = 4;

Returns
TypeDescription
String

The imageUrl.

getImageUrlBytes()

public ByteString getImageUrlBytes()

The HTTPS URL of the image in the card header.

string image_url = 4;

Returns
TypeDescription
ByteString

The bytes for imageUrl.

getParserForType()

public Parser<Card.CardHeader> getParserForType()
Returns
TypeDescription
Parser<CardHeader>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSubtitle()

public String getSubtitle()

The subtitle of the card header. If specified, appears on its own line below the title.

string subtitle = 2;

Returns
TypeDescription
String

The subtitle.

getSubtitleBytes()

public ByteString getSubtitleBytes()

The subtitle of the card header. If specified, appears on its own line below the title.

string subtitle = 2;

Returns
TypeDescription
ByteString

The bytes for subtitle.

getTitle()

public String getTitle()

Required. The title of the card header. The header has a fixed height: if both a title and subtitle are 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()

Required. The title of the card header. The header has a fixed height: if both a title and subtitle are 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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Card.CardHeader.Builder newBuilderForType()
Returns
TypeDescription
Card.CardHeader.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Card.CardHeader.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Card.CardHeader.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Card.CardHeader.Builder toBuilder()
Returns
TypeDescription
Card.CardHeader.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException