Class PayloadToMetadata.Rule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.Rule.Builder>
io.envoyproxy.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.Rule.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,PayloadToMetadata.RuleOrBuilder,Cloneable
- Enclosing class:
- PayloadToMetadata.Rule
public static final class PayloadToMetadata.Rule.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.Rule.Builder>
implements PayloadToMetadata.RuleOrBuilder
A Rule defines what metadata to apply when a field is present or missing. [#next-free-field: 6]Protobuf type
envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.Rule-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Specifies that a match will be performed on the value of a field.If specified, the route must exactly match the request method name.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) If the field is missing, apply this metadata KeyValuePair.If the field is present, apply this metadata KeyValuePair.If specified, the route must have the service name as the request method name prefix.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecifies that a match will be performed on the value of a field.Specifies that a match will be performed on the value of a field.Specifies that a match will be performed on the value of a field.If specified, the route must exactly match the request method name.com.google.protobuf.ByteStringIf specified, the route must exactly match the request method name.If the field is missing, apply this metadata KeyValuePair.If the field is missing, apply this metadata KeyValuePair.If the field is missing, apply this metadata KeyValuePair.If the field is present, apply this metadata KeyValuePair.If the field is present, apply this metadata KeyValuePair.If the field is present, apply this metadata KeyValuePair.If specified, the route must have the service name as the request method name prefix.com.google.protobuf.ByteStringIf specified, the route must have the service name as the request method name prefix.booleanSpecifies that a match will be performed on the value of a field.booleanIf specified, the route must exactly match the request method name.booleanIf the field is missing, apply this metadata KeyValuePair.booleanIf the field is present, apply this metadata KeyValuePair.booleanIf specified, the route must have the service name as the request method name prefix.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanSpecifies that a match will be performed on the value of a field.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(PayloadToMetadata.Rule other) If the field is missing, apply this metadata KeyValuePair.If the field is present, apply this metadata KeyValuePair.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Specifies that a match will be performed on the value of a field.setFieldSelector(PayloadToMetadata.FieldSelector.Builder builderForValue) Specifies that a match will be performed on the value of a field.setMethodName(String value) If specified, the route must exactly match the request method name.setMethodNameBytes(com.google.protobuf.ByteString value) If specified, the route must exactly match the request method name.If the field is missing, apply this metadata KeyValuePair.setOnMissing(PayloadToMetadata.KeyValuePair.Builder builderForValue) If the field is missing, apply this metadata KeyValuePair.If the field is present, apply this metadata KeyValuePair.setOnPresent(PayloadToMetadata.KeyValuePair.Builder builderForValue) If the field is present, apply this metadata KeyValuePair.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setServiceName(String value) If specified, the route must have the service name as the request method name prefix.setServiceNameBytes(com.google.protobuf.ByteString value) If specified, the route must have the service name as the request method name prefix.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.Rule.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.Rule.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.GeneratedMessageV3.Builder<PayloadToMetadata.Rule.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.Rule.Builder>
-
setField
public PayloadToMetadata.Rule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.Rule.Builder>
-
clearField
public PayloadToMetadata.Rule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.Rule.Builder>
-
clearOneof
public PayloadToMetadata.Rule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.Rule.Builder>
-
setRepeatedField
public PayloadToMetadata.Rule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.Rule.Builder>
-
addRepeatedField
public PayloadToMetadata.Rule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.Rule.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PayloadToMetadata.Rule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.Rule.Builder>
-
mergeFrom
public PayloadToMetadata.Rule.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<PayloadToMetadata.Rule.Builder>- Throws:
IOException
-
getMatchSpecifierCase
- Specified by:
getMatchSpecifierCasein interfacePayloadToMetadata.RuleOrBuilder
-
clearMatchSpecifier
-
hasMethodName
public boolean hasMethodName()If specified, the route must exactly match the request method name. As a special case, an empty string matches any request method name.
string method_name = 1;- Specified by:
hasMethodNamein interfacePayloadToMetadata.RuleOrBuilder- Returns:
- Whether the methodName field is set.
-
getMethodName
If specified, the route must exactly match the request method name. As a special case, an empty string matches any request method name.
string method_name = 1;- Specified by:
getMethodNamein interfacePayloadToMetadata.RuleOrBuilder- Returns:
- The methodName.
-
getMethodNameBytes
public com.google.protobuf.ByteString getMethodNameBytes()If specified, the route must exactly match the request method name. As a special case, an empty string matches any request method name.
string method_name = 1;- Specified by:
getMethodNameBytesin interfacePayloadToMetadata.RuleOrBuilder- Returns:
- The bytes for methodName.
-
setMethodName
If specified, the route must exactly match the request method name. As a special case, an empty string matches any request method name.
string method_name = 1;- Parameters:
value- The methodName to set.- Returns:
- This builder for chaining.
-
clearMethodName
If specified, the route must exactly match the request method name. As a special case, an empty string matches any request method name.
string method_name = 1;- Returns:
- This builder for chaining.
-
setMethodNameBytes
If specified, the route must exactly match the request method name. As a special case, an empty string matches any request method name.
string method_name = 1;- Parameters:
value- The bytes for methodName to set.- Returns:
- This builder for chaining.
-
hasServiceName
public boolean hasServiceName()If specified, the route must have the service name as the request method name prefix. As a special case, an empty string matches any service name. Only relevant when service multiplexing.
string service_name = 2;- Specified by:
hasServiceNamein interfacePayloadToMetadata.RuleOrBuilder- Returns:
- Whether the serviceName field is set.
-
getServiceName
If specified, the route must have the service name as the request method name prefix. As a special case, an empty string matches any service name. Only relevant when service multiplexing.
string service_name = 2;- Specified by:
getServiceNamein interfacePayloadToMetadata.RuleOrBuilder- Returns:
- The serviceName.
-
getServiceNameBytes
public com.google.protobuf.ByteString getServiceNameBytes()If specified, the route must have the service name as the request method name prefix. As a special case, an empty string matches any service name. Only relevant when service multiplexing.
string service_name = 2;- Specified by:
getServiceNameBytesin interfacePayloadToMetadata.RuleOrBuilder- Returns:
- The bytes for serviceName.
-
setServiceName
If specified, the route must have the service name as the request method name prefix. As a special case, an empty string matches any service name. Only relevant when service multiplexing.
string service_name = 2;- Parameters:
value- The serviceName to set.- Returns:
- This builder for chaining.
-
clearServiceName
If specified, the route must have the service name as the request method name prefix. As a special case, an empty string matches any service name. Only relevant when service multiplexing.
string service_name = 2;- Returns:
- This builder for chaining.
-
setServiceNameBytes
If specified, the route must have the service name as the request method name prefix. As a special case, an empty string matches any service name. Only relevant when service multiplexing.
string service_name = 2;- Parameters:
value- The bytes for serviceName to set.- Returns:
- This builder for chaining.
-
hasFieldSelector
public boolean hasFieldSelector()Specifies that a match will be performed on the value of a field.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.FieldSelector field_selector = 3 [(.validate.rules) = { ... }- Specified by:
hasFieldSelectorin interfacePayloadToMetadata.RuleOrBuilder- Returns:
- Whether the fieldSelector field is set.
-
getFieldSelector
Specifies that a match will be performed on the value of a field.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.FieldSelector field_selector = 3 [(.validate.rules) = { ... }- Specified by:
getFieldSelectorin interfacePayloadToMetadata.RuleOrBuilder- Returns:
- The fieldSelector.
-
setFieldSelector
Specifies that a match will be performed on the value of a field.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.FieldSelector field_selector = 3 [(.validate.rules) = { ... } -
setFieldSelector
public PayloadToMetadata.Rule.Builder setFieldSelector(PayloadToMetadata.FieldSelector.Builder builderForValue) Specifies that a match will be performed on the value of a field.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.FieldSelector field_selector = 3 [(.validate.rules) = { ... } -
mergeFieldSelector
Specifies that a match will be performed on the value of a field.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.FieldSelector field_selector = 3 [(.validate.rules) = { ... } -
clearFieldSelector
Specifies that a match will be performed on the value of a field.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.FieldSelector field_selector = 3 [(.validate.rules) = { ... } -
getFieldSelectorBuilder
Specifies that a match will be performed on the value of a field.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.FieldSelector field_selector = 3 [(.validate.rules) = { ... } -
getFieldSelectorOrBuilder
Specifies that a match will be performed on the value of a field.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.FieldSelector field_selector = 3 [(.validate.rules) = { ... }- Specified by:
getFieldSelectorOrBuilderin interfacePayloadToMetadata.RuleOrBuilder
-
hasOnPresent
public boolean hasOnPresent()If the field is present, apply this metadata KeyValuePair.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_present = 4;- Specified by:
hasOnPresentin interfacePayloadToMetadata.RuleOrBuilder- Returns:
- Whether the onPresent field is set.
-
getOnPresent
If the field is present, apply this metadata KeyValuePair.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_present = 4;- Specified by:
getOnPresentin interfacePayloadToMetadata.RuleOrBuilder- Returns:
- The onPresent.
-
setOnPresent
If the field is present, apply this metadata KeyValuePair.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_present = 4; -
setOnPresent
public PayloadToMetadata.Rule.Builder setOnPresent(PayloadToMetadata.KeyValuePair.Builder builderForValue) If the field is present, apply this metadata KeyValuePair.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_present = 4; -
mergeOnPresent
If the field is present, apply this metadata KeyValuePair.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_present = 4; -
clearOnPresent
If the field is present, apply this metadata KeyValuePair.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_present = 4; -
getOnPresentBuilder
If the field is present, apply this metadata KeyValuePair.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_present = 4; -
getOnPresentOrBuilder
If the field is present, apply this metadata KeyValuePair.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_present = 4;- Specified by:
getOnPresentOrBuilderin interfacePayloadToMetadata.RuleOrBuilder
-
hasOnMissing
public boolean hasOnMissing()If the field is missing, apply this metadata KeyValuePair. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing field value.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_missing = 5;- Specified by:
hasOnMissingin interfacePayloadToMetadata.RuleOrBuilder- Returns:
- Whether the onMissing field is set.
-
getOnMissing
If the field is missing, apply this metadata KeyValuePair. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing field value.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_missing = 5;- Specified by:
getOnMissingin interfacePayloadToMetadata.RuleOrBuilder- Returns:
- The onMissing.
-
setOnMissing
If the field is missing, apply this metadata KeyValuePair. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing field value.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_missing = 5; -
setOnMissing
public PayloadToMetadata.Rule.Builder setOnMissing(PayloadToMetadata.KeyValuePair.Builder builderForValue) If the field is missing, apply this metadata KeyValuePair. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing field value.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_missing = 5; -
mergeOnMissing
If the field is missing, apply this metadata KeyValuePair. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing field value.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_missing = 5; -
clearOnMissing
If the field is missing, apply this metadata KeyValuePair. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing field value.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_missing = 5; -
getOnMissingBuilder
If the field is missing, apply this metadata KeyValuePair. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing field value.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_missing = 5; -
getOnMissingOrBuilder
If the field is missing, apply this metadata KeyValuePair. The value in the KeyValuePair must be set, since it'll be used in lieu of the missing field value.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair on_missing = 5;- Specified by:
getOnMissingOrBuilderin interfacePayloadToMetadata.RuleOrBuilder
-
setUnknownFields
public final PayloadToMetadata.Rule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.Rule.Builder>
-
mergeUnknownFields
public final PayloadToMetadata.Rule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.Rule.Builder>
-