public final class CardWithId extends GeneratedMessage implements CardWithIdOrBuilderA 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.
Protobuf type google.chat.v1.CardWithId
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > CardWithIdImplements
CardWithIdOrBuilderStatic 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 |
|
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> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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 |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public CardWithId.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
CardWithId.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected CardWithId.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
CardWithId.Builder |
|
toBuilder()
public CardWithId.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
CardWithId.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|