Class PayloadToMetadata.KeyValuePair.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.KeyValuePair.Builder>
-
- io.envoyproxy.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,PayloadToMetadata.KeyValuePairOrBuilder,Cloneable
- Enclosing class:
- PayloadToMetadata.KeyValuePair
public static final class PayloadToMetadata.KeyValuePair.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.KeyValuePair.Builder> implements PayloadToMetadata.KeyValuePairOrBuilder
[#next-free-field: 6]
Protobuf typeenvoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.KeyValuePair
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PayloadToMetadata.KeyValuePair.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PayloadToMetadata.KeyValuePairbuild()PayloadToMetadata.KeyValuePairbuildPartial()PayloadToMetadata.KeyValuePair.Builderclear()PayloadToMetadata.KeyValuePair.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PayloadToMetadata.KeyValuePair.BuilderclearKey()The key to use within the namespace.PayloadToMetadata.KeyValuePair.BuilderclearMetadataNamespace()The namespace — if this is empty, the filter's namespace will be used.PayloadToMetadata.KeyValuePair.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PayloadToMetadata.KeyValuePair.BuilderclearRegexValueRewrite()If present, the header's value will be matched and substituted with this.PayloadToMetadata.KeyValuePair.BuilderclearType()The value's type — defaults to string.PayloadToMetadata.KeyValuePair.BuilderclearValue()The value to pair with the given key.PayloadToMetadata.KeyValuePair.BuilderclearValueType()PayloadToMetadata.KeyValuePair.Builderclone()PayloadToMetadata.KeyValuePairgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetKey()The key to use within the namespace.com.google.protobuf.ByteStringgetKeyBytes()The key to use within the namespace.StringgetMetadataNamespace()The namespace — if this is empty, the filter's namespace will be used.com.google.protobuf.ByteStringgetMetadataNamespaceBytes()The namespace — if this is empty, the filter's namespace will be used.RegexMatchAndSubstitutegetRegexValueRewrite()If present, the header's value will be matched and substituted with this.RegexMatchAndSubstitute.BuildergetRegexValueRewriteBuilder()If present, the header's value will be matched and substituted with this.RegexMatchAndSubstituteOrBuildergetRegexValueRewriteOrBuilder()If present, the header's value will be matched and substituted with this.PayloadToMetadata.ValueTypegetType()The value's type — defaults to string.intgetTypeValue()The value's type — defaults to string.StringgetValue()The value to pair with the given key.com.google.protobuf.ByteStringgetValueBytes()The value to pair with the given key.PayloadToMetadata.KeyValuePair.ValueTypeCasegetValueTypeCase()booleanhasRegexValueRewrite()If present, the header's value will be matched and substituted with this.booleanhasValue()The value to pair with the given key.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PayloadToMetadata.KeyValuePair.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PayloadToMetadata.KeyValuePair.BuildermergeFrom(com.google.protobuf.Message other)PayloadToMetadata.KeyValuePair.BuildermergeFrom(PayloadToMetadata.KeyValuePair other)PayloadToMetadata.KeyValuePair.BuildermergeRegexValueRewrite(RegexMatchAndSubstitute value)If present, the header's value will be matched and substituted with this.PayloadToMetadata.KeyValuePair.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PayloadToMetadata.KeyValuePair.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PayloadToMetadata.KeyValuePair.BuildersetKey(String value)The key to use within the namespace.PayloadToMetadata.KeyValuePair.BuildersetKeyBytes(com.google.protobuf.ByteString value)The key to use within the namespace.PayloadToMetadata.KeyValuePair.BuildersetMetadataNamespace(String value)The namespace — if this is empty, the filter's namespace will be used.PayloadToMetadata.KeyValuePair.BuildersetMetadataNamespaceBytes(com.google.protobuf.ByteString value)The namespace — if this is empty, the filter's namespace will be used.PayloadToMetadata.KeyValuePair.BuildersetRegexValueRewrite(RegexMatchAndSubstitute value)If present, the header's value will be matched and substituted with this.PayloadToMetadata.KeyValuePair.BuildersetRegexValueRewrite(RegexMatchAndSubstitute.Builder builderForValue)If present, the header's value will be matched and substituted with this.PayloadToMetadata.KeyValuePair.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)PayloadToMetadata.KeyValuePair.BuildersetType(PayloadToMetadata.ValueType value)The value's type — defaults to string.PayloadToMetadata.KeyValuePair.BuildersetTypeValue(int value)The value's type — defaults to string.PayloadToMetadata.KeyValuePair.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PayloadToMetadata.KeyValuePair.BuildersetValue(String value)The value to pair with the given key.PayloadToMetadata.KeyValuePair.BuildersetValueBytes(com.google.protobuf.ByteString value)The value to pair with the given key.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.KeyValuePair.Builder>
-
clear
public PayloadToMetadata.KeyValuePair.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.KeyValuePair.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.KeyValuePair.Builder>
-
getDefaultInstanceForType
public PayloadToMetadata.KeyValuePair getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PayloadToMetadata.KeyValuePair build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PayloadToMetadata.KeyValuePair buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PayloadToMetadata.KeyValuePair.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.KeyValuePair.Builder>
-
setField
public PayloadToMetadata.KeyValuePair.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.KeyValuePair.Builder>
-
clearField
public PayloadToMetadata.KeyValuePair.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.KeyValuePair.Builder>
-
clearOneof
public PayloadToMetadata.KeyValuePair.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.KeyValuePair.Builder>
-
setRepeatedField
public PayloadToMetadata.KeyValuePair.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.KeyValuePair.Builder>
-
addRepeatedField
public PayloadToMetadata.KeyValuePair.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.KeyValuePair.Builder>
-
mergeFrom
public PayloadToMetadata.KeyValuePair.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PayloadToMetadata.KeyValuePair.Builder>
-
mergeFrom
public PayloadToMetadata.KeyValuePair.Builder mergeFrom(PayloadToMetadata.KeyValuePair other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.KeyValuePair.Builder>
-
mergeFrom
public PayloadToMetadata.KeyValuePair.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.KeyValuePair.Builder>- Throws:
IOException
-
getValueTypeCase
public PayloadToMetadata.KeyValuePair.ValueTypeCase getValueTypeCase()
- Specified by:
getValueTypeCasein interfacePayloadToMetadata.KeyValuePairOrBuilder
-
clearValueType
public PayloadToMetadata.KeyValuePair.Builder clearValueType()
-
getMetadataNamespace
public String getMetadataNamespace()
The namespace — if this is empty, the filter's namespace will be used.
string metadata_namespace = 1;- Specified by:
getMetadataNamespacein interfacePayloadToMetadata.KeyValuePairOrBuilder- Returns:
- The metadataNamespace.
-
getMetadataNamespaceBytes
public com.google.protobuf.ByteString getMetadataNamespaceBytes()
The namespace — if this is empty, the filter's namespace will be used.
string metadata_namespace = 1;- Specified by:
getMetadataNamespaceBytesin interfacePayloadToMetadata.KeyValuePairOrBuilder- Returns:
- The bytes for metadataNamespace.
-
setMetadataNamespace
public PayloadToMetadata.KeyValuePair.Builder setMetadataNamespace(String value)
The namespace — if this is empty, the filter's namespace will be used.
string metadata_namespace = 1;- Parameters:
value- The metadataNamespace to set.- Returns:
- This builder for chaining.
-
clearMetadataNamespace
public PayloadToMetadata.KeyValuePair.Builder clearMetadataNamespace()
The namespace — if this is empty, the filter's namespace will be used.
string metadata_namespace = 1;- Returns:
- This builder for chaining.
-
setMetadataNamespaceBytes
public PayloadToMetadata.KeyValuePair.Builder setMetadataNamespaceBytes(com.google.protobuf.ByteString value)
The namespace — if this is empty, the filter's namespace will be used.
string metadata_namespace = 1;- Parameters:
value- The bytes for metadataNamespace to set.- Returns:
- This builder for chaining.
-
getKey
public String getKey()
The key to use within the namespace.
string key = 2 [(.validate.rules) = { ... }- Specified by:
getKeyin interfacePayloadToMetadata.KeyValuePairOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()
The key to use within the namespace.
string key = 2 [(.validate.rules) = { ... }- Specified by:
getKeyBytesin interfacePayloadToMetadata.KeyValuePairOrBuilder- Returns:
- The bytes for key.
-
setKey
public PayloadToMetadata.KeyValuePair.Builder setKey(String value)
The key to use within the namespace.
string key = 2 [(.validate.rules) = { ... }- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
public PayloadToMetadata.KeyValuePair.Builder clearKey()
The key to use within the namespace.
string key = 2 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setKeyBytes
public PayloadToMetadata.KeyValuePair.Builder setKeyBytes(com.google.protobuf.ByteString value)
The key to use within the namespace.
string key = 2 [(.validate.rules) = { ... }- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
hasValue
public boolean hasValue()
The value to pair with the given key. When used for on_present case, if value is non-empty it'll be used instead of the field value. If both are empty, the field value is used as-is. When used for on_missing case, a non-empty value must be provided.
string value = 3;- Specified by:
hasValuein interfacePayloadToMetadata.KeyValuePairOrBuilder- Returns:
- Whether the value field is set.
-
getValue
public String getValue()
The value to pair with the given key. When used for on_present case, if value is non-empty it'll be used instead of the field value. If both are empty, the field value is used as-is. When used for on_missing case, a non-empty value must be provided.
string value = 3;- Specified by:
getValuein interfacePayloadToMetadata.KeyValuePairOrBuilder- Returns:
- The value.
-
getValueBytes
public com.google.protobuf.ByteString getValueBytes()
The value to pair with the given key. When used for on_present case, if value is non-empty it'll be used instead of the field value. If both are empty, the field value is used as-is. When used for on_missing case, a non-empty value must be provided.
string value = 3;- Specified by:
getValueBytesin interfacePayloadToMetadata.KeyValuePairOrBuilder- Returns:
- The bytes for value.
-
setValue
public PayloadToMetadata.KeyValuePair.Builder setValue(String value)
The value to pair with the given key. When used for on_present case, if value is non-empty it'll be used instead of the field value. If both are empty, the field value is used as-is. When used for on_missing case, a non-empty value must be provided.
string value = 3;- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
public PayloadToMetadata.KeyValuePair.Builder clearValue()
The value to pair with the given key. When used for on_present case, if value is non-empty it'll be used instead of the field value. If both are empty, the field value is used as-is. When used for on_missing case, a non-empty value must be provided.
string value = 3;- Returns:
- This builder for chaining.
-
setValueBytes
public PayloadToMetadata.KeyValuePair.Builder setValueBytes(com.google.protobuf.ByteString value)
The value to pair with the given key. When used for on_present case, if value is non-empty it'll be used instead of the field value. If both are empty, the field value is used as-is. When used for on_missing case, a non-empty value must be provided.
string value = 3;- Parameters:
value- The bytes for value to set.- Returns:
- This builder for chaining.
-
hasRegexValueRewrite
public boolean hasRegexValueRewrite()
If present, the header's value will be matched and substituted with this. If there is no match or substitution, the field value is used as-is. This is only used for on_present.
.envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;- Specified by:
hasRegexValueRewritein interfacePayloadToMetadata.KeyValuePairOrBuilder- Returns:
- Whether the regexValueRewrite field is set.
-
getRegexValueRewrite
public RegexMatchAndSubstitute getRegexValueRewrite()
If present, the header's value will be matched and substituted with this. If there is no match or substitution, the field value is used as-is. This is only used for on_present.
.envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;- Specified by:
getRegexValueRewritein interfacePayloadToMetadata.KeyValuePairOrBuilder- Returns:
- The regexValueRewrite.
-
setRegexValueRewrite
public PayloadToMetadata.KeyValuePair.Builder setRegexValueRewrite(RegexMatchAndSubstitute value)
If present, the header's value will be matched and substituted with this. If there is no match or substitution, the field value is used as-is. This is only used for on_present.
.envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
-
setRegexValueRewrite
public PayloadToMetadata.KeyValuePair.Builder setRegexValueRewrite(RegexMatchAndSubstitute.Builder builderForValue)
If present, the header's value will be matched and substituted with this. If there is no match or substitution, the field value is used as-is. This is only used for on_present.
.envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
-
mergeRegexValueRewrite
public PayloadToMetadata.KeyValuePair.Builder mergeRegexValueRewrite(RegexMatchAndSubstitute value)
If present, the header's value will be matched and substituted with this. If there is no match or substitution, the field value is used as-is. This is only used for on_present.
.envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
-
clearRegexValueRewrite
public PayloadToMetadata.KeyValuePair.Builder clearRegexValueRewrite()
If present, the header's value will be matched and substituted with this. If there is no match or substitution, the field value is used as-is. This is only used for on_present.
.envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
-
getRegexValueRewriteBuilder
public RegexMatchAndSubstitute.Builder getRegexValueRewriteBuilder()
If present, the header's value will be matched and substituted with this. If there is no match or substitution, the field value is used as-is. This is only used for on_present.
.envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
-
getRegexValueRewriteOrBuilder
public RegexMatchAndSubstituteOrBuilder getRegexValueRewriteOrBuilder()
If present, the header's value will be matched and substituted with this. If there is no match or substitution, the field value is used as-is. This is only used for on_present.
.envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;- Specified by:
getRegexValueRewriteOrBuilderin interfacePayloadToMetadata.KeyValuePairOrBuilder
-
getTypeValue
public int getTypeValue()
The value's type — defaults to string.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.ValueType type = 5 [(.validate.rules) = { ... }- Specified by:
getTypeValuein interfacePayloadToMetadata.KeyValuePairOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public PayloadToMetadata.KeyValuePair.Builder setTypeValue(int value)
The value's type — defaults to string.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.ValueType type = 5 [(.validate.rules) = { ... }- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public PayloadToMetadata.ValueType getType()
The value's type — defaults to string.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.ValueType type = 5 [(.validate.rules) = { ... }- Specified by:
getTypein interfacePayloadToMetadata.KeyValuePairOrBuilder- Returns:
- The type.
-
setType
public PayloadToMetadata.KeyValuePair.Builder setType(PayloadToMetadata.ValueType value)
The value's type — defaults to string.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.ValueType type = 5 [(.validate.rules) = { ... }- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public PayloadToMetadata.KeyValuePair.Builder clearType()
The value's type — defaults to string.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.ValueType type = 5 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setUnknownFields
public final PayloadToMetadata.KeyValuePair.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.KeyValuePair.Builder>
-
mergeUnknownFields
public final PayloadToMetadata.KeyValuePair.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PayloadToMetadata.KeyValuePair.Builder>
-
-