public static final class MetadataFilter.Builder extends GeneratedMessageV3.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 its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels 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 in metadataFilters match values supplied in of their XDS requests to loadbalancers.
Protobuf type google.cloud.compute.v1.MetadataFilter
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.compute.v1.MetadataFilterLabelMatch>
|
public MetadataFilter.Builder addFilterLabels(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.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142;
public MetadataFilter.Builder 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.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142;
public MetadataFilter.Builder 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.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142;
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;
public MetadataFilterLabelMatch.Builder 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;
public MetadataFilterLabelMatch.Builder 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.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142;
Parameter |
---|
Name | Description |
index | int
|
public MetadataFilter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public MetadataFilter build()
public MetadataFilter buildPartial()
public MetadataFilter.Builder clear()
Overrides
public MetadataFilter.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public MetadataFilter.Builder 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;
public MetadataFilter.Builder 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;
public MetadataFilter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public MetadataFilter.Builder clone()
Overrides
public MetadataFilter getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public MetadataFilterLabelMatch getFilterLabels(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.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142;
Parameter |
---|
Name | Description |
index | int
|
public MetadataFilterLabelMatch.Builder 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.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142;
Parameter |
---|
Name | Description |
index | int
|
public List<MetadataFilterLabelMatch.Builder> 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;
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;
Returns |
---|
Type | Description |
int | |
public List<MetadataFilterLabelMatch> 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;
public MetadataFilterLabelMatchOrBuilder 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.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142;
Parameter |
---|
Name | Description |
index | int
|
public List<? extends MetadataFilterLabelMatchOrBuilder> 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;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.compute.v1.MetadataFilterLabelMatchOrBuilder> | |
public String 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;
Returns |
---|
Type | Description |
String | The filterMatchCriteria.
|
public 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;
Returns |
---|
Type | Description |
ByteString | The bytes for filterMatchCriteria.
|
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;
Returns |
---|
Type | Description |
boolean | Whether the filterMatchCriteria field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public MetadataFilter.Builder mergeFrom(MetadataFilter other)
public MetadataFilter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public MetadataFilter.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final MetadataFilter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public MetadataFilter.Builder 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.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142;
Parameter |
---|
Name | Description |
index | int
|
public MetadataFilter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public MetadataFilter.Builder 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.
repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142;
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;
public MetadataFilter.Builder setFilterMatchCriteria(String value)
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;
Parameter |
---|
Name | Description |
value | String
The filterMatchCriteria to set.
|
public MetadataFilter.Builder setFilterMatchCriteriaBytes(ByteString value)
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;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for filterMatchCriteria to set.
|
public MetadataFilter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final MetadataFilter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides