Class ActionResponse.SelectionItems.Builder (0.4.0)

public static final class ActionResponse.SelectionItems.Builder extends GeneratedMessageV3.Builder<ActionResponse.SelectionItems.Builder> implements ActionResponse.SelectionItemsOrBuilder

List of widget autocomplete results.

Protobuf type google.chat.v1.ActionResponse.SelectionItems

Static Methods

getDescriptor()

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

Methods

addAllItems(Iterable<? extends SelectionInput.SelectionItem> values)

public ActionResponse.SelectionItems.Builder addAllItems(Iterable<? extends SelectionInput.SelectionItem> values)

An array of the SelectionItem objects.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.apps.card.v1.SelectionInput.SelectionItem>
Returns
TypeDescription
ActionResponse.SelectionItems.Builder

addItems(SelectionInput.SelectionItem value)

public ActionResponse.SelectionItems.Builder addItems(SelectionInput.SelectionItem value)

An array of the SelectionItem objects.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1;

Parameter
NameDescription
valuecom.google.apps.card.v1.SelectionInput.SelectionItem
Returns
TypeDescription
ActionResponse.SelectionItems.Builder

addItems(SelectionInput.SelectionItem.Builder builderForValue)

public ActionResponse.SelectionItems.Builder addItems(SelectionInput.SelectionItem.Builder builderForValue)

An array of the SelectionItem objects.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1;

Parameter
NameDescription
builderForValuecom.google.apps.card.v1.SelectionInput.SelectionItem.Builder
Returns
TypeDescription
ActionResponse.SelectionItems.Builder

addItems(int index, SelectionInput.SelectionItem value)

public ActionResponse.SelectionItems.Builder addItems(int index, SelectionInput.SelectionItem value)

An array of the SelectionItem objects.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1;

Parameters
NameDescription
indexint
valuecom.google.apps.card.v1.SelectionInput.SelectionItem
Returns
TypeDescription
ActionResponse.SelectionItems.Builder

addItems(int index, SelectionInput.SelectionItem.Builder builderForValue)

public ActionResponse.SelectionItems.Builder addItems(int index, SelectionInput.SelectionItem.Builder builderForValue)

An array of the SelectionItem objects.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1;

Parameters
NameDescription
indexint
builderForValuecom.google.apps.card.v1.SelectionInput.SelectionItem.Builder
Returns
TypeDescription
ActionResponse.SelectionItems.Builder

addItemsBuilder()

public SelectionInput.SelectionItem.Builder addItemsBuilder()

An array of the SelectionItem objects.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1;

Returns
TypeDescription
com.google.apps.card.v1.SelectionInput.SelectionItem.Builder

addItemsBuilder(int index)

public SelectionInput.SelectionItem.Builder addItemsBuilder(int index)

An array of the SelectionItem objects.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.apps.card.v1.SelectionInput.SelectionItem.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ActionResponse.SelectionItems.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ActionResponse.SelectionItems.Builder
Overrides

build()

public ActionResponse.SelectionItems build()
Returns
TypeDescription
ActionResponse.SelectionItems

buildPartial()

public ActionResponse.SelectionItems buildPartial()
Returns
TypeDescription
ActionResponse.SelectionItems

clear()

public ActionResponse.SelectionItems.Builder clear()
Returns
TypeDescription
ActionResponse.SelectionItems.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ActionResponse.SelectionItems.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ActionResponse.SelectionItems.Builder
Overrides

clearItems()

public ActionResponse.SelectionItems.Builder clearItems()

An array of the SelectionItem objects.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1;

Returns
TypeDescription
ActionResponse.SelectionItems.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ActionResponse.SelectionItems.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ActionResponse.SelectionItems.Builder
Overrides

clone()

public ActionResponse.SelectionItems.Builder clone()
Returns
TypeDescription
ActionResponse.SelectionItems.Builder
Overrides

getDefaultInstanceForType()

public ActionResponse.SelectionItems getDefaultInstanceForType()
Returns
TypeDescription
ActionResponse.SelectionItems

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getItems(int index)

public SelectionInput.SelectionItem getItems(int index)

An array of the SelectionItem objects.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.apps.card.v1.SelectionInput.SelectionItem

getItemsBuilder(int index)

public SelectionInput.SelectionItem.Builder getItemsBuilder(int index)

An array of the SelectionItem objects.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.apps.card.v1.SelectionInput.SelectionItem.Builder

getItemsBuilderList()

public List<SelectionInput.SelectionItem.Builder> getItemsBuilderList()

An array of the SelectionItem objects.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1;

Returns
TypeDescription
List<com.google.apps.card.v1.SelectionInput.SelectionItem.Builder>

getItemsCount()

public int getItemsCount()

An array of the SelectionItem objects.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1;

Returns
TypeDescription
int

getItemsList()

public List<SelectionInput.SelectionItem> getItemsList()

An array of the SelectionItem objects.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1;

Returns
TypeDescription
List<com.google.apps.card.v1.SelectionInput.SelectionItem>

getItemsOrBuilder(int index)

public SelectionInput.SelectionItemOrBuilder getItemsOrBuilder(int index)

An array of the SelectionItem objects.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.apps.card.v1.SelectionInput.SelectionItemOrBuilder

getItemsOrBuilderList()

public List<? extends SelectionInput.SelectionItemOrBuilder> getItemsOrBuilderList()

An array of the SelectionItem objects.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1;

Returns
TypeDescription
List<? extends com.google.apps.card.v1.SelectionInput.SelectionItemOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ActionResponse.SelectionItems other)

public ActionResponse.SelectionItems.Builder mergeFrom(ActionResponse.SelectionItems other)
Parameter
NameDescription
otherActionResponse.SelectionItems
Returns
TypeDescription
ActionResponse.SelectionItems.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ActionResponse.SelectionItems.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ActionResponse.SelectionItems.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ActionResponse.SelectionItems.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ActionResponse.SelectionItems.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ActionResponse.SelectionItems.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ActionResponse.SelectionItems.Builder
Overrides

removeItems(int index)

public ActionResponse.SelectionItems.Builder removeItems(int index)

An array of the SelectionItem objects.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ActionResponse.SelectionItems.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ActionResponse.SelectionItems.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ActionResponse.SelectionItems.Builder
Overrides

setItems(int index, SelectionInput.SelectionItem value)

public ActionResponse.SelectionItems.Builder setItems(int index, SelectionInput.SelectionItem value)

An array of the SelectionItem objects.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1;

Parameters
NameDescription
indexint
valuecom.google.apps.card.v1.SelectionInput.SelectionItem
Returns
TypeDescription
ActionResponse.SelectionItems.Builder

setItems(int index, SelectionInput.SelectionItem.Builder builderForValue)

public ActionResponse.SelectionItems.Builder setItems(int index, SelectionInput.SelectionItem.Builder builderForValue)

An array of the SelectionItem objects.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 1;

Parameters
NameDescription
indexint
builderForValuecom.google.apps.card.v1.SelectionInput.SelectionItem.Builder
Returns
TypeDescription
ActionResponse.SelectionItems.Builder

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

public ActionResponse.SelectionItems.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ActionResponse.SelectionItems.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ActionResponse.SelectionItems.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ActionResponse.SelectionItems.Builder
Overrides