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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The specified filter typeRequired.A variable-length string value.The placeholder text that can be referenced in a filter string or MQL query.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe specified filter typeintThe specified filter typeRequired.com.google.protobuf.ByteStringRequired.A variable-length string value.com.google.protobuf.ByteStringA variable-length string value.The placeholder text that can be referenced in a filter string or MQL query.com.google.protobuf.ByteStringThe placeholder text that can be referenced in a filter string or MQL query.booleanA variable-length string value.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DashboardFilter other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The specified filter typesetFilterTypeValue(int value) The specified filter typesetLabelKey(String value) Required.setLabelKeyBytes(com.google.protobuf.ByteString value) Required.setStringValue(String value) A variable-length string value.setStringValueBytes(com.google.protobuf.ByteString value) A variable-length string value.setTemplateVariable(String value) The placeholder text that can be referenced in a filter string or MQL query.setTemplateVariableBytes(com.google.protobuf.ByteString value) The placeholder text that can be referenced in a filter string or MQL query.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DashboardFilter.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DashboardFilter.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DashboardFilter.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DashboardFilter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DashboardFilter.Builder>- Throws:
IOException
-
getDefaultValueCase
- Specified by:
getDefaultValueCasein interfaceDashboardFilterOrBuilder
-
clearDefaultValue
-
getLabelKey
Required. The key for the label
string label_key = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLabelKeyin interfaceDashboardFilterOrBuilder- 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:
getLabelKeyBytesin interfaceDashboardFilterOrBuilder- Returns:
- The bytes for labelKey.
-
setLabelKey
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
Required. The key for the label
string label_key = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setLabelKeyBytes
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
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:
getTemplateVariablein interfaceDashboardFilterOrBuilder- 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:
getTemplateVariableBytesin interfaceDashboardFilterOrBuilder- Returns:
- The bytes for templateVariable.
-
setTemplateVariable
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
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
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:
hasStringValuein interfaceDashboardFilterOrBuilder- Returns:
- Whether the stringValue field is set.
-
getStringValue
A variable-length string value.
string string_value = 4;- Specified by:
getStringValuein interfaceDashboardFilterOrBuilder- Returns:
- The stringValue.
-
getStringValueBytes
public com.google.protobuf.ByteString getStringValueBytes()A variable-length string value.
string string_value = 4;- Specified by:
getStringValueBytesin interfaceDashboardFilterOrBuilder- Returns:
- The bytes for stringValue.
-
setStringValue
A variable-length string value.
string string_value = 4;- Parameters:
value- The stringValue to set.- Returns:
- This builder for chaining.
-
clearStringValue
A variable-length string value.
string string_value = 4;- Returns:
- This builder for chaining.
-
setStringValueBytes
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:
getFilterTypeValuein interfaceDashboardFilterOrBuilder- Returns:
- The enum numeric value on the wire for filterType.
-
setFilterTypeValue
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
The specified filter type
.google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5;- Specified by:
getFilterTypein interfaceDashboardFilterOrBuilder- 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
The specified filter type
.google.monitoring.dashboard.v1.DashboardFilter.FilterType filter_type = 5;- Returns:
- This builder for chaining.
-