Class DashboardFilter.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DashboardFilter.Builder>
com.google.monitoring.dashboard.v1.DashboardFilter.Builder
All Implemented Interfaces:
DashboardFilterOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DashboardFilter

public static final class DashboardFilter.Builder extends com.google.protobuf.GeneratedMessage.Builder<DashboardFilter.Builder> implements DashboardFilterOrBuilder
 A filter to reduce the amount of data charted in relevant widgets.
 
Protobuf type google.monitoring.dashboard.v1.DashboardFilter
  • 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<DashboardFilter.Builder>
    • clear

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

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

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

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

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

      public DashboardFilter.Builder mergeFrom(DashboardFilter other)
    • isInitialized

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

      public DashboardFilter.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<DashboardFilter.Builder>
      Throws:
      IOException
    • getDefaultValueCase

      public DashboardFilter.DefaultValueCase getDefaultValueCase()
      Specified by:
      getDefaultValueCase in interface DashboardFilterOrBuilder
    • clearDefaultValue

      public DashboardFilter.Builder clearDefaultValue()
    • getLabelKey

      public String getLabelKey()
       Required. The key for the label
       
      string label_key = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLabelKey in interface DashboardFilterOrBuilder
      Returns:
      The labelKey.
    • getLabelKeyBytes

      public com.google.protobuf.ByteString getLabelKeyBytes()
       Required. The key for the label
       
      string label_key = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLabelKeyBytes in interface DashboardFilterOrBuilder
      Returns:
      The bytes for labelKey.
    • setLabelKey

      public DashboardFilter.Builder setLabelKey(String value)
       Required. The key for the label
       
      string label_key = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The labelKey to set.
      Returns:
      This builder for chaining.
    • clearLabelKey

      public DashboardFilter.Builder clearLabelKey()
       Required. The key for the label
       
      string label_key = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setLabelKeyBytes

      public DashboardFilter.Builder setLabelKeyBytes(com.google.protobuf.ByteString value)
       Required. The key for the label
       
      string label_key = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for labelKey to set.
      Returns:
      This builder for chaining.
    • getTemplateVariable

      public String getTemplateVariable()
       The placeholder text that can be referenced in a filter string or MQL
       query. If omitted, the dashboard filter will be applied to all relevant
       widgets in the dashboard.
       
      string template_variable = 3;
      Specified by:
      getTemplateVariable in interface DashboardFilterOrBuilder
      Returns:
      The templateVariable.
    • getTemplateVariableBytes

      public com.google.protobuf.ByteString getTemplateVariableBytes()
       The placeholder text that can be referenced in a filter string or MQL
       query. If omitted, the dashboard filter will be applied to all relevant
       widgets in the dashboard.
       
      string template_variable = 3;
      Specified by:
      getTemplateVariableBytes in interface DashboardFilterOrBuilder
      Returns:
      The bytes for templateVariable.
    • setTemplateVariable

      public DashboardFilter.Builder setTemplateVariable(String value)
       The placeholder text that can be referenced in a filter string or MQL
       query. If omitted, the dashboard filter will be applied to all relevant
       widgets in the dashboard.
       
      string template_variable = 3;
      Parameters:
      value - The templateVariable to set.
      Returns:
      This builder for chaining.
    • clearTemplateVariable

      public DashboardFilter.Builder clearTemplateVariable()
       The placeholder text that can be referenced in a filter string or MQL
       query. If omitted, the dashboard filter will be applied to all relevant
       widgets in the dashboard.
       
      string template_variable = 3;
      Returns:
      This builder for chaining.
    • setTemplateVariableBytes

      public DashboardFilter.Builder setTemplateVariableBytes(com.google.protobuf.ByteString value)
       The placeholder text that can be referenced in a filter string or MQL
       query. If omitted, the dashboard filter will be applied to all relevant
       widgets in the dashboard.
       
      string template_variable = 3;
      Parameters:
      value - The bytes for templateVariable to set.
      Returns:
      This builder for chaining.
    • hasStringValue

      public boolean hasStringValue()
       A variable-length string value.
       
      string string_value = 4;
      Specified by:
      hasStringValue in interface DashboardFilterOrBuilder
      Returns:
      Whether the stringValue field is set.
    • getStringValue

      public String getStringValue()
       A variable-length string value.
       
      string string_value = 4;
      Specified by:
      getStringValue in interface DashboardFilterOrBuilder
      Returns:
      The stringValue.
    • getStringValueBytes

      public com.google.protobuf.ByteString getStringValueBytes()
       A variable-length string value.
       
      string string_value = 4;
      Specified by:
      getStringValueBytes in interface DashboardFilterOrBuilder
      Returns:
      The bytes for stringValue.
    • setStringValue

      public DashboardFilter.Builder setStringValue(String value)
       A variable-length string value.
       
      string string_value = 4;
      Parameters:
      value - The stringValue to set.
      Returns:
      This builder for chaining.
    • clearStringValue

      public DashboardFilter.Builder clearStringValue()
       A variable-length string value.
       
      string string_value = 4;
      Returns:
      This builder for chaining.
    • setStringValueBytes

      public DashboardFilter.Builder setStringValueBytes(com.google.protobuf.ByteString value)
       A variable-length string value.
       
      string string_value = 4;
      Parameters:
      value - The bytes for stringValue to set.
      Returns:
      This builder for chaining.
    • getFilterTypeValue

      public int getFilterTypeValue()
       The specified filter type
       
      .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5;
      Specified by:
      getFilterTypeValue in interface DashboardFilterOrBuilder
      Returns:
      The enum numeric value on the wire for filterType.
    • setFilterTypeValue

      public DashboardFilter.Builder setFilterTypeValue(int value)
       The specified filter type
       
      .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5;
      Parameters:
      value - The enum numeric value on the wire for filterType to set.
      Returns:
      This builder for chaining.
    • getFilterType

      public DashboardFilter.FilterType getFilterType()
       The specified filter type
       
      .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5;
      Specified by:
      getFilterType in interface DashboardFilterOrBuilder
      Returns:
      The filterType.
    • setFilterType

       The specified filter type
       
      .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5;
      Parameters:
      value - The filterType to set.
      Returns:
      This builder for chaining.
    • clearFilterType

      public DashboardFilter.Builder clearFilterType()
       The specified filter type
       
      .google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5;
      Returns:
      This builder for chaining.