Class CardWithId (0.7.0)

public final class CardWithId extends GeneratedMessageV3 implements CardWithIdOrBuilder

A card in a Google Chat message.

Only Chat apps can create cards. If your Chat app authenticates as a user, the message can't contain cards.

Card builder

Protobuf type google.chat.v1.CardWithId

Implements

CardWithIdOrBuilder

Static Fields

CARD_FIELD_NUMBER

public static final int CARD_FIELD_NUMBER
Field Value
Type Description
int

CARD_ID_FIELD_NUMBER

public static final int CARD_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CardWithId getDefaultInstance()
Returns
Type Description
CardWithId

getDescriptor()

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

newBuilder()

public static CardWithId.Builder newBuilder()
Returns
Type Description
CardWithId.Builder

newBuilder(CardWithId prototype)

public static CardWithId.Builder newBuilder(CardWithId prototype)
Parameter
Name Description
prototype CardWithId
Returns
Type Description
CardWithId.Builder

parseDelimitedFrom(InputStream input)

public static CardWithId parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CardWithId
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CardWithId parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CardWithId
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CardWithId parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CardWithId
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CardWithId parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CardWithId
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CardWithId parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CardWithId
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CardWithId parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CardWithId
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CardWithId parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CardWithId
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CardWithId parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CardWithId
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CardWithId parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CardWithId
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CardWithId parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CardWithId
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CardWithId parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CardWithId
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CardWithId parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CardWithId
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CardWithId> parser()
Returns
Type Description
Parser<CardWithId>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCard()

public Card getCard()

A card. Maximum size is 32 KB.

.google.apps.card.v1.Card card = 2;

Returns
Type Description
com.google.apps.card.v1.Card

The card.

getCardId()

public String getCardId()

Required if the message contains multiple cards. A unique identifier for a card in a message.

string card_id = 1;

Returns
Type Description
String

The cardId.

getCardIdBytes()

public ByteString getCardIdBytes()

Required if the message contains multiple cards. A unique identifier for a card in a message.

string card_id = 1;

Returns
Type Description
ByteString

The bytes for cardId.

getCardOrBuilder()

public CardOrBuilder getCardOrBuilder()

A card. Maximum size is 32 KB.

.google.apps.card.v1.Card card = 2;

Returns
Type Description
com.google.apps.card.v1.CardOrBuilder

getDefaultInstanceForType()

public CardWithId getDefaultInstanceForType()
Returns
Type Description
CardWithId

getParserForType()

public Parser<CardWithId> getParserForType()
Returns
Type Description
Parser<CardWithId>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCard()

public boolean hasCard()

A card. Maximum size is 32 KB.

.google.apps.card.v1.Card card = 2;

Returns
Type Description
boolean

Whether the card field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CardWithId.Builder newBuilderForType()
Returns
Type Description
CardWithId.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CardWithId.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CardWithId.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CardWithId.Builder toBuilder()
Returns
Type Description
CardWithId.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException