Class DashboardChart.ChartDatasource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DashboardChart.ChartDatasource.Builder>
com.google.cloud.chronicle.v1.DashboardChart.ChartDatasource.Builder
All Implemented Interfaces:
DashboardChart.ChartDatasourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DashboardChart.ChartDatasource

public static final class DashboardChart.ChartDatasource.Builder extends com.google.protobuf.GeneratedMessage.Builder<DashboardChart.ChartDatasource.Builder> implements DashboardChart.ChartDatasourceOrBuilder
 Datasource of the chart including the query reference and source name.
 
Protobuf type google.cloud.chronicle.v1.DashboardChart.ChartDatasource
  • 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<DashboardChart.ChartDatasource.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<DashboardChart.ChartDatasource.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<DashboardChart.ChartDatasource.Builder>
    • getDefaultInstanceForType

      public DashboardChart.ChartDatasource 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 DashboardChart.ChartDatasource buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DashboardChart.ChartDatasource.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<DashboardChart.ChartDatasource.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<DashboardChart.ChartDatasource.Builder>
    • mergeFrom

      public DashboardChart.ChartDatasource.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<DashboardChart.ChartDatasource.Builder>
      Throws:
      IOException
    • getDashboardQuery

      public String getDashboardQuery()
       Reference to dashboard query resource used in the chart.
       
      string dashboard_query = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getDashboardQuery in interface DashboardChart.ChartDatasourceOrBuilder
      Returns:
      The dashboardQuery.
    • getDashboardQueryBytes

      public com.google.protobuf.ByteString getDashboardQueryBytes()
       Reference to dashboard query resource used in the chart.
       
      string dashboard_query = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getDashboardQueryBytes in interface DashboardChart.ChartDatasourceOrBuilder
      Returns:
      The bytes for dashboardQuery.
    • setDashboardQuery

      public DashboardChart.ChartDatasource.Builder setDashboardQuery(String value)
       Reference to dashboard query resource used in the chart.
       
      string dashboard_query = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The dashboardQuery to set.
      Returns:
      This builder for chaining.
    • clearDashboardQuery

      public DashboardChart.ChartDatasource.Builder clearDashboardQuery()
       Reference to dashboard query resource used in the chart.
       
      string dashboard_query = 1 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setDashboardQueryBytes

      public DashboardChart.ChartDatasource.Builder setDashboardQueryBytes(com.google.protobuf.ByteString value)
       Reference to dashboard query resource used in the chart.
       
      string dashboard_query = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for dashboardQuery to set.
      Returns:
      This builder for chaining.
    • getDataSourcesList

      public List<DataSource> getDataSourcesList()
       Name of the datasource used in the chart.
       
      repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;
      Specified by:
      getDataSourcesList in interface DashboardChart.ChartDatasourceOrBuilder
      Returns:
      A list containing the dataSources.
    • getDataSourcesCount

      public int getDataSourcesCount()
       Name of the datasource used in the chart.
       
      repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;
      Specified by:
      getDataSourcesCount in interface DashboardChart.ChartDatasourceOrBuilder
      Returns:
      The count of dataSources.
    • getDataSources

      public DataSource getDataSources(int index)
       Name of the datasource used in the chart.
       
      repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;
      Specified by:
      getDataSources in interface DashboardChart.ChartDatasourceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The dataSources at the given index.
    • setDataSources

      public DashboardChart.ChartDatasource.Builder setDataSources(int index, DataSource value)
       Name of the datasource used in the chart.
       
      repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;
      Parameters:
      index - The index to set the value at.
      value - The dataSources to set.
      Returns:
      This builder for chaining.
    • addDataSources

      public DashboardChart.ChartDatasource.Builder addDataSources(DataSource value)
       Name of the datasource used in the chart.
       
      repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;
      Parameters:
      value - The dataSources to add.
      Returns:
      This builder for chaining.
    • addAllDataSources

      public DashboardChart.ChartDatasource.Builder addAllDataSources(Iterable<? extends DataSource> values)
       Name of the datasource used in the chart.
       
      repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;
      Parameters:
      values - The dataSources to add.
      Returns:
      This builder for chaining.
    • clearDataSources

      public DashboardChart.ChartDatasource.Builder clearDataSources()
       Name of the datasource used in the chart.
       
      repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;
      Returns:
      This builder for chaining.
    • getDataSourcesValueList

      public List<Integer> getDataSourcesValueList()
       Name of the datasource used in the chart.
       
      repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;
      Specified by:
      getDataSourcesValueList in interface DashboardChart.ChartDatasourceOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for dataSources.
    • getDataSourcesValue

      public int getDataSourcesValue(int index)
       Name of the datasource used in the chart.
       
      repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;
      Specified by:
      getDataSourcesValue in interface DashboardChart.ChartDatasourceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of dataSources at the given index.
    • setDataSourcesValue

      public DashboardChart.ChartDatasource.Builder setDataSourcesValue(int index, int value)
       Name of the datasource used in the chart.
       
      repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for dataSources to set.
      Returns:
      This builder for chaining.
    • addDataSourcesValue

      public DashboardChart.ChartDatasource.Builder addDataSourcesValue(int value)
       Name of the datasource used in the chart.
       
      repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;
      Parameters:
      value - The enum numeric value on the wire for dataSources to add.
      Returns:
      This builder for chaining.
    • addAllDataSourcesValue

      public DashboardChart.ChartDatasource.Builder addAllDataSourcesValue(Iterable<Integer> values)
       Name of the datasource used in the chart.
       
      repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;
      Parameters:
      values - The enum numeric values on the wire for dataSources to add.
      Returns:
      This builder for chaining.