Class SelectionInput.PlatformDataSource.Builder (0.1.0)

public static final class SelectionInput.PlatformDataSource.Builder extends GeneratedMessageV3.Builder<SelectionInput.PlatformDataSource.Builder> implements SelectionInput.PlatformDataSourceOrBuilder

For a SelectionInput widget that uses a multiselect menu, a data source from Google Workspace. Used to populate items in a multiselect menu.

Google Chat apps:

Protobuf type google.apps.card.v1.SelectionInput.PlatformDataSource

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SelectionInput.PlatformDataSource build()
Returns
TypeDescription
SelectionInput.PlatformDataSource

buildPartial()

public SelectionInput.PlatformDataSource buildPartial()
Returns
TypeDescription
SelectionInput.PlatformDataSource

clear()

public SelectionInput.PlatformDataSource.Builder clear()
Returns
TypeDescription
SelectionInput.PlatformDataSource.Builder
Overrides

clearCommonDataSource()

public SelectionInput.PlatformDataSource.Builder clearCommonDataSource()

A data source shared by all Google Workspace applications, such as users in a Google Workspace organization.

.google.apps.card.v1.SelectionInput.PlatformDataSource.CommonDataSource common_data_source = 1;

Returns
TypeDescription
SelectionInput.PlatformDataSource.Builder

This builder for chaining.

clearDataSource()

public SelectionInput.PlatformDataSource.Builder clearDataSource()
Returns
TypeDescription
SelectionInput.PlatformDataSource.Builder

clearField(Descriptors.FieldDescriptor field)

public SelectionInput.PlatformDataSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SelectionInput.PlatformDataSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SelectionInput.PlatformDataSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SelectionInput.PlatformDataSource.Builder
Overrides

clone()

public SelectionInput.PlatformDataSource.Builder clone()
Returns
TypeDescription
SelectionInput.PlatformDataSource.Builder
Overrides

getCommonDataSource()

public SelectionInput.PlatformDataSource.CommonDataSource getCommonDataSource()

A data source shared by all Google Workspace applications, such as users in a Google Workspace organization.

.google.apps.card.v1.SelectionInput.PlatformDataSource.CommonDataSource common_data_source = 1;

Returns
TypeDescription
SelectionInput.PlatformDataSource.CommonDataSource

The commonDataSource.

getCommonDataSourceValue()

public int getCommonDataSourceValue()

A data source shared by all Google Workspace applications, such as users in a Google Workspace organization.

.google.apps.card.v1.SelectionInput.PlatformDataSource.CommonDataSource common_data_source = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for commonDataSource.

getDataSourceCase()

public SelectionInput.PlatformDataSource.DataSourceCase getDataSourceCase()
Returns
TypeDescription
SelectionInput.PlatformDataSource.DataSourceCase

getDefaultInstanceForType()

public SelectionInput.PlatformDataSource getDefaultInstanceForType()
Returns
TypeDescription
SelectionInput.PlatformDataSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

hasCommonDataSource()

public boolean hasCommonDataSource()

A data source shared by all Google Workspace applications, such as users in a Google Workspace organization.

.google.apps.card.v1.SelectionInput.PlatformDataSource.CommonDataSource common_data_source = 1;

Returns
TypeDescription
boolean

Whether the commonDataSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SelectionInput.PlatformDataSource other)

public SelectionInput.PlatformDataSource.Builder mergeFrom(SelectionInput.PlatformDataSource other)
Parameter
NameDescription
otherSelectionInput.PlatformDataSource
Returns
TypeDescription
SelectionInput.PlatformDataSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SelectionInput.PlatformDataSource.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SelectionInput.PlatformDataSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SelectionInput.PlatformDataSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SelectionInput.PlatformDataSource.Builder
Overrides

setCommonDataSource(SelectionInput.PlatformDataSource.CommonDataSource value)

public SelectionInput.PlatformDataSource.Builder setCommonDataSource(SelectionInput.PlatformDataSource.CommonDataSource value)

A data source shared by all Google Workspace applications, such as users in a Google Workspace organization.

.google.apps.card.v1.SelectionInput.PlatformDataSource.CommonDataSource common_data_source = 1;

Parameter
NameDescription
valueSelectionInput.PlatformDataSource.CommonDataSource

The commonDataSource to set.

Returns
TypeDescription
SelectionInput.PlatformDataSource.Builder

This builder for chaining.

setCommonDataSourceValue(int value)

public SelectionInput.PlatformDataSource.Builder setCommonDataSourceValue(int value)

A data source shared by all Google Workspace applications, such as users in a Google Workspace organization.

.google.apps.card.v1.SelectionInput.PlatformDataSource.CommonDataSource common_data_source = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for commonDataSource to set.

Returns
TypeDescription
SelectionInput.PlatformDataSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final SelectionInput.PlatformDataSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SelectionInput.PlatformDataSource.Builder
Overrides