Class CardWithId (0.5.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
TypeDescription
int

CARD_ID_FIELD_NUMBER

public static final int CARD_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CardWithId getDefaultInstance()
Returns
TypeDescription
CardWithId

getDescriptor()

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

newBuilder()

public static CardWithId.Builder newBuilder()
Returns
TypeDescription
CardWithId.Builder

newBuilder(CardWithId prototype)

public static CardWithId.Builder newBuilder(CardWithId prototype)
Parameter
NameDescription
prototypeCardWithId
Returns
TypeDescription
CardWithId.Builder

parseDelimitedFrom(InputStream input)

public static CardWithId parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CardWithId
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static CardWithId parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CardWithId
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static CardWithId parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CardWithId
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static CardWithId parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CardWithId
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static CardWithId parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CardWithId
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<CardWithId> parser()
Returns
TypeDescription
Parser<CardWithId>

Methods

equals(Object obj)

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

getCard()

public Card getCard()

A card. Maximum size is 32 KB.

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

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

The bytes for cardId.

getCardOrBuilder()

public CardOrBuilder getCardOrBuilder()

A card. Maximum size is 32 KB.

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

Returns
TypeDescription
com.google.apps.card.v1.CardOrBuilder

getDefaultInstanceForType()

public CardWithId getDefaultInstanceForType()
Returns
TypeDescription
CardWithId

getParserForType()

public Parser<CardWithId> getParserForType()
Returns
TypeDescription
Parser<CardWithId>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasCard()

public boolean hasCard()

A card. Maximum size is 32 KB.

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

Returns
TypeDescription
boolean

Whether the card field is set.

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 CardWithId.Builder newBuilderForType()
Returns
TypeDescription
CardWithId.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public CardWithId.Builder toBuilder()
Returns
TypeDescription
CardWithId.Builder

writeTo(CodedOutputStream output)

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