Class EditChartRequest.Builder

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

public static final class EditChartRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<EditChartRequest.Builder> implements EditChartRequestOrBuilder
 Request message to edit chart in a dashboard.
 
Protobuf type google.cloud.chronicle.v1.EditChartRequest
  • 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<EditChartRequest.Builder>
    • clear

      public EditChartRequest.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<EditChartRequest.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<EditChartRequest.Builder>
    • getDefaultInstanceForType

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

      public EditChartRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public EditChartRequest.Builder mergeFrom(EditChartRequest other)
    • isInitialized

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

      public EditChartRequest.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<EditChartRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The dashboard name to edit chart in.
       Format:
       projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface EditChartRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The dashboard name to edit chart in.
       Format:
       projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface EditChartRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public EditChartRequest.Builder setName(String value)
       Required. The dashboard name to edit chart in.
       Format:
       projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public EditChartRequest.Builder clearName()
       Required. The dashboard name to edit chart in.
       Format:
       projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public EditChartRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The dashboard name to edit chart in.
       Format:
       projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasDashboardQuery

      public boolean hasDashboardQuery()
       Optional. Query for the edited chart.
       
      .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDashboardQuery in interface EditChartRequestOrBuilder
      Returns:
      Whether the dashboardQuery field is set.
    • getDashboardQuery

      public DashboardQuery getDashboardQuery()
       Optional. Query for the edited chart.
       
      .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDashboardQuery in interface EditChartRequestOrBuilder
      Returns:
      The dashboardQuery.
    • setDashboardQuery

      public EditChartRequest.Builder setDashboardQuery(DashboardQuery value)
       Optional. Query for the edited chart.
       
      .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setDashboardQuery

      public EditChartRequest.Builder setDashboardQuery(DashboardQuery.Builder builderForValue)
       Optional. Query for the edited chart.
       
      .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeDashboardQuery

      public EditChartRequest.Builder mergeDashboardQuery(DashboardQuery value)
       Optional. Query for the edited chart.
       
      .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearDashboardQuery

      public EditChartRequest.Builder clearDashboardQuery()
       Optional. Query for the edited chart.
       
      .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getDashboardQueryBuilder

      public DashboardQuery.Builder getDashboardQueryBuilder()
       Optional. Query for the edited chart.
       
      .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getDashboardQueryOrBuilder

      public DashboardQueryOrBuilder getDashboardQueryOrBuilder()
       Optional. Query for the edited chart.
       
      .google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDashboardQueryOrBuilder in interface EditChartRequestOrBuilder
    • hasDashboardChart

      public boolean hasDashboardChart()
       Optional. Edited chart.
       
      .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDashboardChart in interface EditChartRequestOrBuilder
      Returns:
      Whether the dashboardChart field is set.
    • getDashboardChart

      public DashboardChart getDashboardChart()
       Optional. Edited chart.
       
      .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDashboardChart in interface EditChartRequestOrBuilder
      Returns:
      The dashboardChart.
    • setDashboardChart

      public EditChartRequest.Builder setDashboardChart(DashboardChart value)
       Optional. Edited chart.
       
      .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setDashboardChart

      public EditChartRequest.Builder setDashboardChart(DashboardChart.Builder builderForValue)
       Optional. Edited chart.
       
      .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeDashboardChart

      public EditChartRequest.Builder mergeDashboardChart(DashboardChart value)
       Optional. Edited chart.
       
      .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearDashboardChart

      public EditChartRequest.Builder clearDashboardChart()
       Optional. Edited chart.
       
      .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getDashboardChartBuilder

      public DashboardChart.Builder getDashboardChartBuilder()
       Optional. Edited chart.
       
      .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getDashboardChartOrBuilder

      public DashboardChartOrBuilder getDashboardChartOrBuilder()
       Optional. Edited chart.
       
      .google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDashboardChartOrBuilder in interface EditChartRequestOrBuilder
    • hasEditMask

      public boolean hasEditMask()
       Required. The list of fields to edit for chart and query.
       Supported paths in chart are -
       dashboard_chart.display_name
       dashboard_chart.description
       dashboard_chart.chart_datasource.data_sources
       dashboard_chart.visualization
       dashboard_chart.visualization.button
       dashboard_chart.visualization.markdown
       dashboard_chart.drill_down_config
       Supported paths in query are -
       dashboard_query.query
       dashboard_query.input
       
      .google.protobuf.FieldMask edit_mask = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasEditMask in interface EditChartRequestOrBuilder
      Returns:
      Whether the editMask field is set.
    • getEditMask

      public com.google.protobuf.FieldMask getEditMask()
       Required. The list of fields to edit for chart and query.
       Supported paths in chart are -
       dashboard_chart.display_name
       dashboard_chart.description
       dashboard_chart.chart_datasource.data_sources
       dashboard_chart.visualization
       dashboard_chart.visualization.button
       dashboard_chart.visualization.markdown
       dashboard_chart.drill_down_config
       Supported paths in query are -
       dashboard_query.query
       dashboard_query.input
       
      .google.protobuf.FieldMask edit_mask = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEditMask in interface EditChartRequestOrBuilder
      Returns:
      The editMask.
    • setEditMask

      public EditChartRequest.Builder setEditMask(com.google.protobuf.FieldMask value)
       Required. The list of fields to edit for chart and query.
       Supported paths in chart are -
       dashboard_chart.display_name
       dashboard_chart.description
       dashboard_chart.chart_datasource.data_sources
       dashboard_chart.visualization
       dashboard_chart.visualization.button
       dashboard_chart.visualization.markdown
       dashboard_chart.drill_down_config
       Supported paths in query are -
       dashboard_query.query
       dashboard_query.input
       
      .google.protobuf.FieldMask edit_mask = 4 [(.google.api.field_behavior) = REQUIRED];
    • setEditMask

      public EditChartRequest.Builder setEditMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Required. The list of fields to edit for chart and query.
       Supported paths in chart are -
       dashboard_chart.display_name
       dashboard_chart.description
       dashboard_chart.chart_datasource.data_sources
       dashboard_chart.visualization
       dashboard_chart.visualization.button
       dashboard_chart.visualization.markdown
       dashboard_chart.drill_down_config
       Supported paths in query are -
       dashboard_query.query
       dashboard_query.input
       
      .google.protobuf.FieldMask edit_mask = 4 [(.google.api.field_behavior) = REQUIRED];
    • mergeEditMask

      public EditChartRequest.Builder mergeEditMask(com.google.protobuf.FieldMask value)
       Required. The list of fields to edit for chart and query.
       Supported paths in chart are -
       dashboard_chart.display_name
       dashboard_chart.description
       dashboard_chart.chart_datasource.data_sources
       dashboard_chart.visualization
       dashboard_chart.visualization.button
       dashboard_chart.visualization.markdown
       dashboard_chart.drill_down_config
       Supported paths in query are -
       dashboard_query.query
       dashboard_query.input
       
      .google.protobuf.FieldMask edit_mask = 4 [(.google.api.field_behavior) = REQUIRED];
    • clearEditMask

      public EditChartRequest.Builder clearEditMask()
       Required. The list of fields to edit for chart and query.
       Supported paths in chart are -
       dashboard_chart.display_name
       dashboard_chart.description
       dashboard_chart.chart_datasource.data_sources
       dashboard_chart.visualization
       dashboard_chart.visualization.button
       dashboard_chart.visualization.markdown
       dashboard_chart.drill_down_config
       Supported paths in query are -
       dashboard_query.query
       dashboard_query.input
       
      .google.protobuf.FieldMask edit_mask = 4 [(.google.api.field_behavior) = REQUIRED];
    • getEditMaskBuilder

      public com.google.protobuf.FieldMask.Builder getEditMaskBuilder()
       Required. The list of fields to edit for chart and query.
       Supported paths in chart are -
       dashboard_chart.display_name
       dashboard_chart.description
       dashboard_chart.chart_datasource.data_sources
       dashboard_chart.visualization
       dashboard_chart.visualization.button
       dashboard_chart.visualization.markdown
       dashboard_chart.drill_down_config
       Supported paths in query are -
       dashboard_query.query
       dashboard_query.input
       
      .google.protobuf.FieldMask edit_mask = 4 [(.google.api.field_behavior) = REQUIRED];
    • getEditMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getEditMaskOrBuilder()
       Required. The list of fields to edit for chart and query.
       Supported paths in chart are -
       dashboard_chart.display_name
       dashboard_chart.description
       dashboard_chart.chart_datasource.data_sources
       dashboard_chart.visualization
       dashboard_chart.visualization.button
       dashboard_chart.visualization.markdown
       dashboard_chart.drill_down_config
       Supported paths in query are -
       dashboard_query.query
       dashboard_query.input
       
      .google.protobuf.FieldMask edit_mask = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEditMaskOrBuilder in interface EditChartRequestOrBuilder
    • getLanguageFeaturesList

      public List<LanguageFeature> getLanguageFeaturesList()
       Optional. Language Features present in the query.
       
      repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageFeaturesList in interface EditChartRequestOrBuilder
      Returns:
      A list containing the languageFeatures.
    • getLanguageFeaturesCount

      public int getLanguageFeaturesCount()
       Optional. Language Features present in the query.
       
      repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageFeaturesCount in interface EditChartRequestOrBuilder
      Returns:
      The count of languageFeatures.
    • getLanguageFeatures

      public LanguageFeature getLanguageFeatures(int index)
       Optional. Language Features present in the query.
       
      repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageFeatures in interface EditChartRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The languageFeatures at the given index.
    • setLanguageFeatures

      public EditChartRequest.Builder setLanguageFeatures(int index, LanguageFeature value)
       Optional. Language Features present in the query.
       
      repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The languageFeatures to set.
      Returns:
      This builder for chaining.
    • addLanguageFeatures

      public EditChartRequest.Builder addLanguageFeatures(LanguageFeature value)
       Optional. Language Features present in the query.
       
      repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The languageFeatures to add.
      Returns:
      This builder for chaining.
    • addAllLanguageFeatures

      public EditChartRequest.Builder addAllLanguageFeatures(Iterable<? extends LanguageFeature> values)
       Optional. Language Features present in the query.
       
      repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The languageFeatures to add.
      Returns:
      This builder for chaining.
    • clearLanguageFeatures

      public EditChartRequest.Builder clearLanguageFeatures()
       Optional. Language Features present in the query.
       
      repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getLanguageFeaturesValueList

      public List<Integer> getLanguageFeaturesValueList()
       Optional. Language Features present in the query.
       
      repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageFeaturesValueList in interface EditChartRequestOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for languageFeatures.
    • getLanguageFeaturesValue

      public int getLanguageFeaturesValue(int index)
       Optional. Language Features present in the query.
       
      repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageFeaturesValue in interface EditChartRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of languageFeatures at the given index.
    • setLanguageFeaturesValue

      public EditChartRequest.Builder setLanguageFeaturesValue(int index, int value)
       Optional. Language Features present in the query.
       
      repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for languageFeatures to set.
      Returns:
      This builder for chaining.
    • addLanguageFeaturesValue

      public EditChartRequest.Builder addLanguageFeaturesValue(int value)
       Optional. Language Features present in the query.
       
      repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for languageFeatures to add.
      Returns:
      This builder for chaining.
    • addAllLanguageFeaturesValue

      public EditChartRequest.Builder addAllLanguageFeaturesValue(Iterable<Integer> values)
       Optional. Language Features present in the query.
       
      repeated .google.cloud.chronicle.v1.LanguageFeature language_features = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The enum numeric values on the wire for languageFeatures to add.
      Returns:
      This builder for chaining.