Class ReplaceMessageCardsRequest.Builder (0.67.0)

public static final class ReplaceMessageCardsRequest.Builder extends GeneratedMessage.Builder<ReplaceMessageCardsRequest.Builder> implements ReplaceMessageCardsRequestOrBuilder

Request message for ReplaceMessageCards API method.

Protobuf type google.chat.v1.ReplaceMessageCardsRequest

Static Methods

getDescriptor()

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

Methods

addAllCardsV2(Iterable<? extends CardWithId> values)

public ReplaceMessageCardsRequest.Builder addAllCardsV2(Iterable<? extends CardWithId> values)

Optional. An array of cards to be included in the message. These cards will replace the existing cards of the message. If empty, the original cards included in the message will be cleared.

repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.chat.v1.CardWithId>
Returns
Type Description
ReplaceMessageCardsRequest.Builder

addCardsV2(CardWithId value)

public ReplaceMessageCardsRequest.Builder addCardsV2(CardWithId value)

Optional. An array of cards to be included in the message. These cards will replace the existing cards of the message. If empty, the original cards included in the message will be cleared.

repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CardWithId
Returns
Type Description
ReplaceMessageCardsRequest.Builder

addCardsV2(CardWithId.Builder builderForValue)

public ReplaceMessageCardsRequest.Builder addCardsV2(CardWithId.Builder builderForValue)

Optional. An array of cards to be included in the message. These cards will replace the existing cards of the message. If empty, the original cards included in the message will be cleared.

repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue CardWithId.Builder
Returns
Type Description
ReplaceMessageCardsRequest.Builder

addCardsV2(int index, CardWithId value)

public ReplaceMessageCardsRequest.Builder addCardsV2(int index, CardWithId value)

Optional. An array of cards to be included in the message. These cards will replace the existing cards of the message. If empty, the original cards included in the message will be cleared.

repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value CardWithId
Returns
Type Description
ReplaceMessageCardsRequest.Builder

addCardsV2(int index, CardWithId.Builder builderForValue)

public ReplaceMessageCardsRequest.Builder addCardsV2(int index, CardWithId.Builder builderForValue)

Optional. An array of cards to be included in the message. These cards will replace the existing cards of the message. If empty, the original cards included in the message will be cleared.

repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue CardWithId.Builder
Returns
Type Description
ReplaceMessageCardsRequest.Builder

addCardsV2Builder()

public CardWithId.Builder addCardsV2Builder()

Optional. An array of cards to be included in the message. These cards will replace the existing cards of the message. If empty, the original cards included in the message will be cleared.

repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CardWithId.Builder

addCardsV2Builder(int index)

public CardWithId.Builder addCardsV2Builder(int index)

Optional. An array of cards to be included in the message. These cards will replace the existing cards of the message. If empty, the original cards included in the message will be cleared.

repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CardWithId.Builder

build()

public ReplaceMessageCardsRequest build()
Returns
Type Description
ReplaceMessageCardsRequest

buildPartial()

public ReplaceMessageCardsRequest buildPartial()
Returns
Type Description
ReplaceMessageCardsRequest

clear()

public ReplaceMessageCardsRequest.Builder clear()
Returns
Type Description
ReplaceMessageCardsRequest.Builder
Overrides

clearCardsV2()

public ReplaceMessageCardsRequest.Builder clearCardsV2()

Optional. An array of cards to be included in the message. These cards will replace the existing cards of the message. If empty, the original cards included in the message will be cleared.

repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ReplaceMessageCardsRequest.Builder

clearName()

public ReplaceMessageCardsRequest.Builder clearName()

Required. The resource name of the message.

Format: spaces/{space}/messages/{message}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ReplaceMessageCardsRequest.Builder

This builder for chaining.

getCardsV2(int index)

public CardWithId getCardsV2(int index)

Optional. An array of cards to be included in the message. These cards will replace the existing cards of the message. If empty, the original cards included in the message will be cleared.

repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CardWithId

getCardsV2Builder(int index)

public CardWithId.Builder getCardsV2Builder(int index)

Optional. An array of cards to be included in the message. These cards will replace the existing cards of the message. If empty, the original cards included in the message will be cleared.

repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CardWithId.Builder

getCardsV2BuilderList()

public List<CardWithId.Builder> getCardsV2BuilderList()

Optional. An array of cards to be included in the message. These cards will replace the existing cards of the message. If empty, the original cards included in the message will be cleared.

repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getCardsV2Count()

public int getCardsV2Count()

Optional. An array of cards to be included in the message. These cards will replace the existing cards of the message. If empty, the original cards included in the message will be cleared.

repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getCardsV2List()

public List<CardWithId> getCardsV2List()

Optional. An array of cards to be included in the message. These cards will replace the existing cards of the message. If empty, the original cards included in the message will be cleared.

repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<CardWithId>

getCardsV2OrBuilder(int index)

public CardWithIdOrBuilder getCardsV2OrBuilder(int index)

Optional. An array of cards to be included in the message. These cards will replace the existing cards of the message. If empty, the original cards included in the message will be cleared.

repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CardWithIdOrBuilder

getCardsV2OrBuilderList()

public List<? extends CardWithIdOrBuilder> getCardsV2OrBuilderList()

Optional. An array of cards to be included in the message. These cards will replace the existing cards of the message. If empty, the original cards included in the message will be cleared.

repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.chat.v1.CardWithIdOrBuilder>

getDefaultInstanceForType()

public ReplaceMessageCardsRequest getDefaultInstanceForType()
Returns
Type Description
ReplaceMessageCardsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Required. The resource name of the message.

Format: spaces/{space}/messages/{message}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the message.

Format: spaces/{space}/messages/{message}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ReplaceMessageCardsRequest other)

public ReplaceMessageCardsRequest.Builder mergeFrom(ReplaceMessageCardsRequest other)
Parameter
Name Description
other ReplaceMessageCardsRequest
Returns
Type Description
ReplaceMessageCardsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReplaceMessageCardsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplaceMessageCardsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ReplaceMessageCardsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ReplaceMessageCardsRequest.Builder
Overrides

removeCardsV2(int index)

public ReplaceMessageCardsRequest.Builder removeCardsV2(int index)

Optional. An array of cards to be included in the message. These cards will replace the existing cards of the message. If empty, the original cards included in the message will be cleared.

repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ReplaceMessageCardsRequest.Builder

setCardsV2(int index, CardWithId value)

public ReplaceMessageCardsRequest.Builder setCardsV2(int index, CardWithId value)

Optional. An array of cards to be included in the message. These cards will replace the existing cards of the message. If empty, the original cards included in the message will be cleared.

repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value CardWithId
Returns
Type Description
ReplaceMessageCardsRequest.Builder

setCardsV2(int index, CardWithId.Builder builderForValue)

public ReplaceMessageCardsRequest.Builder setCardsV2(int index, CardWithId.Builder builderForValue)

Optional. An array of cards to be included in the message. These cards will replace the existing cards of the message. If empty, the original cards included in the message will be cleared.

repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue CardWithId.Builder
Returns
Type Description
ReplaceMessageCardsRequest.Builder

setName(String value)

public ReplaceMessageCardsRequest.Builder setName(String value)

Required. The resource name of the message.

Format: spaces/{space}/messages/{message}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ReplaceMessageCardsRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ReplaceMessageCardsRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the message.

Format: spaces/{space}/messages/{message}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ReplaceMessageCardsRequest.Builder

This builder for chaining.