Class SelectionInput.PlatformDataSource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SelectionInput.PlatformDataSource.Builder>
com.google.apps.card.v1.SelectionInput.PlatformDataSource.Builder
All Implemented Interfaces:
SelectionInput.PlatformDataSourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SelectionInput.PlatformDataSource

public static final class SelectionInput.PlatformDataSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<SelectionInput.PlatformDataSource.Builder> implements SelectionInput.PlatformDataSourceOrBuilder
 For a
 [`SelectionInput`][google.apps.card.v1.SelectionInput] widget that uses a
 multiselect menu, a data source from Google Workspace. Used to populate
 items in a multiselect menu.

 [Google Chat apps](https://developers.google.com/workspace/chat):
 
Protobuf type google.apps.card.v1.SelectionInput.PlatformDataSource
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SelectionInput.PlatformDataSource.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SelectionInput.PlatformDataSource.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SelectionInput.PlatformDataSource.Builder>
    • getDefaultInstanceForType

      public SelectionInput.PlatformDataSource getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SelectionInput.PlatformDataSource buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SelectionInput.PlatformDataSource.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SelectionInput.PlatformDataSource.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SelectionInput.PlatformDataSource.Builder>
    • mergeFrom

      public SelectionInput.PlatformDataSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SelectionInput.PlatformDataSource.Builder>
      Throws:
      IOException
    • getDataSourceCase

      Specified by:
      getDataSourceCase in interface SelectionInput.PlatformDataSourceOrBuilder
    • clearDataSource

    • 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;
      Specified by:
      hasCommonDataSource in interface SelectionInput.PlatformDataSourceOrBuilder
      Returns:
      Whether the commonDataSource field is set.
    • 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;
      Specified by:
      getCommonDataSourceValue in interface SelectionInput.PlatformDataSourceOrBuilder
      Returns:
      The enum numeric value on the wire for commonDataSource.
    • setCommonDataSourceValue

      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;
      Parameters:
      value - The enum numeric value on the wire for commonDataSource to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getCommonDataSource in interface SelectionInput.PlatformDataSourceOrBuilder
      Returns:
      The commonDataSource.
    • setCommonDataSource

       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;
      Parameters:
      value - The commonDataSource to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.