Class CardWithId.Builder (0.22.0)

publicstaticfinalclass CardWithId.BuilderextendsGeneratedMessageV3.Builder<CardWithId.Builder>implementsCardWithIdOrBuilder

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicCardWithId.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CardWithId.Builder
Overrides

build()

publicCardWithIdbuild()
Returns
Type Description
CardWithId

buildPartial()

publicCardWithIdbuildPartial()
Returns
Type Description
CardWithId

clear()

publicCardWithId.Builderclear()
Returns
Type Description
CardWithId.Builder
Overrides

clearCard()

publicCardWithId.BuilderclearCard()

A card. Maximum size is 32 KB.

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

Returns
Type Description
CardWithId.Builder

clearCardId()

publicCardWithId.BuilderclearCardId()

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

string card_id = 1;

Returns
Type Description
CardWithId.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicCardWithId.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CardWithId.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicCardWithId.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CardWithId.Builder
Overrides

clone()

publicCardWithId.Builderclone()
Returns
Type Description
CardWithId.Builder
Overrides

getCard()

publicCardgetCard()

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.

getCardBuilder()

publicCard.BuildergetCardBuilder()

A card. Maximum size is 32 KB.

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

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

getCardId()

publicStringgetCardId()

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()

publicByteStringgetCardIdBytes()

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()

publicCardOrBuildergetCardOrBuilder()

A card. Maximum size is 32 KB.

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

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

getDefaultInstanceForType()

publicCardWithIdgetDefaultInstanceForType()
Returns
Type Description
CardWithId

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

hasCard()

publicbooleanhasCard()

A card. Maximum size is 32 KB.

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

Returns
Type Description
boolean

Whether the card field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeCard(Card value)

publicCardWithId.BuildermergeCard(Cardvalue)

A card. Maximum size is 32 KB.

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

Parameter
Name Description
value com.google.apps.card.v1.Card
Returns
Type Description
CardWithId.Builder

mergeFrom(CardWithId other)

publicCardWithId.BuildermergeFrom(CardWithIdother)
Parameter
Name Description
other CardWithId
Returns
Type Description
CardWithId.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicCardWithId.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CardWithId.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicCardWithId.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
CardWithId.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalCardWithId.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CardWithId.Builder
Overrides

setCard(Card value)

publicCardWithId.BuildersetCard(Cardvalue)

A card. Maximum size is 32 KB.

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

Parameter
Name Description
value com.google.apps.card.v1.Card
Returns
Type Description
CardWithId.Builder

setCard(Card.Builder builderForValue)

publicCardWithId.BuildersetCard(Card.BuilderbuilderForValue)

A card. Maximum size is 32 KB.

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

Parameter
Name Description
builderForValue com.google.apps.card.v1.Card.Builder
Returns
Type Description
CardWithId.Builder

setCardId(String value)

publicCardWithId.BuildersetCardId(Stringvalue)

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

string card_id = 1;

Parameter
Name Description
value String

The cardId to set.

Returns
Type Description
CardWithId.Builder

This builder for chaining.

setCardIdBytes(ByteString value)

publicCardWithId.BuildersetCardIdBytes(ByteStringvalue)

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

string card_id = 1;

Parameter
Name Description
value ByteString

The bytes for cardId to set.

Returns
Type Description
CardWithId.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicCardWithId.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CardWithId.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicCardWithId.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CardWithId.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCardWithId.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CardWithId.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.