Package com.google.cloud.compute.v1
Class MetadataFilter.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MetadataFilter.Builder>
com.google.cloud.compute.v1.MetadataFilter.Builder
- All Implemented Interfaces:
MetadataFilterOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MetadataFilter
public static final class MetadataFilter.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MetadataFilter.Builder>
implements MetadataFilterOrBuilder
Opaque filter criteria used by load balancers to restrict routing configuration to a limited set of load balancing proxies. Proxies and sidecars involved in load balancing would typically present metadata to the load balancers that need to match criteria specified here. If a match takes place, the relevant configuration is made available to those proxies. For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least one of thefilterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. An example for using metadataFilters would be: if load balancing involves Envoys, they receive routing configuration when values inmetadataFilters match values supplied in of their XDS requests to loadbalancers.Protobuf type
google.cloud.compute.v1.MetadataFilter-
Method Summary
Modifier and TypeMethodDescriptionaddAllFilterLabels(Iterable<? extends MetadataFilterLabelMatch> values) The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.addFilterLabels(int index, MetadataFilterLabelMatch value) The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.addFilterLabels(int index, MetadataFilterLabelMatch.Builder builderForValue) The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.addFilterLabels(MetadataFilterLabelMatch.Builder builderForValue) The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.addFilterLabelsBuilder(int index) The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.build()clear()The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFilterLabels(int index) The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.getFilterLabelsBuilder(int index) The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.intThe list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.getFilterLabelsOrBuilder(int index) The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.List<? extends MetadataFilterLabelMatchOrBuilder>The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match.com.google.protobuf.ByteStringSpecifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match.booleanSpecifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(MetadataFilter other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeFilterLabels(int index) The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.setFilterLabels(int index, MetadataFilterLabelMatch value) The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.setFilterLabels(int index, MetadataFilterLabelMatch.Builder builderForValue) The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.setFilterMatchCriteria(String value) Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match.setFilterMatchCriteriaBytes(com.google.protobuf.ByteString value) Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match.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<MetadataFilter.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<MetadataFilter.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<MetadataFilter.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<MetadataFilter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MetadataFilter.Builder>
-
mergeFrom
public MetadataFilter.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<MetadataFilter.Builder>- Throws:
IOException
-
getFilterLabelsList
The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142;- Specified by:
getFilterLabelsListin interfaceMetadataFilterOrBuilder
-
getFilterLabelsCount
public int getFilterLabelsCount()The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142;- Specified by:
getFilterLabelsCountin interfaceMetadataFilterOrBuilder
-
getFilterLabels
The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142;- Specified by:
getFilterLabelsin interfaceMetadataFilterOrBuilder
-
setFilterLabels
The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142; -
setFilterLabels
public MetadataFilter.Builder setFilterLabels(int index, MetadataFilterLabelMatch.Builder builderForValue) The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142; -
addFilterLabels
The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142; -
addFilterLabels
The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142; -
addFilterLabels
The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142; -
addFilterLabels
public MetadataFilter.Builder addFilterLabels(int index, MetadataFilterLabelMatch.Builder builderForValue) The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142; -
addAllFilterLabels
public MetadataFilter.Builder addAllFilterLabels(Iterable<? extends MetadataFilterLabelMatch> values) The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142; -
clearFilterLabels
The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142; -
removeFilterLabels
The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142; -
getFilterLabelsBuilder
The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142; -
getFilterLabelsOrBuilder
The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142;- Specified by:
getFilterLabelsOrBuilderin interfaceMetadataFilterOrBuilder
-
getFilterLabelsOrBuilderList
The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142;- Specified by:
getFilterLabelsOrBuilderListin interfaceMetadataFilterOrBuilder
-
addFilterLabelsBuilder
The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142; -
addFilterLabelsBuilder
The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142; -
getFilterLabelsBuilderList
The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142; -
hasFilterMatchCriteria
public boolean hasFilterMatchCriteria()Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match. Supported values are: - MATCH_ANY: at least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching labels in the provided metadata. Check the FilterMatchCriteria enum for the list of possible values.
optional string filter_match_criteria = 239970368;- Specified by:
hasFilterMatchCriteriain interfaceMetadataFilterOrBuilder- Returns:
- Whether the filterMatchCriteria field is set.
-
getFilterMatchCriteria
Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match. Supported values are: - MATCH_ANY: at least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching labels in the provided metadata. Check the FilterMatchCriteria enum for the list of possible values.
optional string filter_match_criteria = 239970368;- Specified by:
getFilterMatchCriteriain interfaceMetadataFilterOrBuilder- Returns:
- The filterMatchCriteria.
-
getFilterMatchCriteriaBytes
public com.google.protobuf.ByteString getFilterMatchCriteriaBytes()Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match. Supported values are: - MATCH_ANY: at least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching labels in the provided metadata. Check the FilterMatchCriteria enum for the list of possible values.
optional string filter_match_criteria = 239970368;- Specified by:
getFilterMatchCriteriaBytesin interfaceMetadataFilterOrBuilder- Returns:
- The bytes for filterMatchCriteria.
-
setFilterMatchCriteria
Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match. Supported values are: - MATCH_ANY: at least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching labels in the provided metadata. Check the FilterMatchCriteria enum for the list of possible values.
optional string filter_match_criteria = 239970368;- Parameters:
value- The filterMatchCriteria to set.- Returns:
- This builder for chaining.
-
clearFilterMatchCriteria
Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match. Supported values are: - MATCH_ANY: at least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching labels in the provided metadata. Check the FilterMatchCriteria enum for the list of possible values.
optional string filter_match_criteria = 239970368;- Returns:
- This builder for chaining.
-
setFilterMatchCriteriaBytes
Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match. Supported values are: - MATCH_ANY: at least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching labels in the provided metadata. Check the FilterMatchCriteria enum for the list of possible values.
optional string filter_match_criteria = 239970368;- Parameters:
value- The bytes for filterMatchCriteria to set.- Returns:
- This builder for chaining.
-