Class HeaderValueOption
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.config.core.v3.HeaderValueOption
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,HeaderValueOptionOrBuilder,Serializable
public final class HeaderValueOption extends com.google.protobuf.GeneratedMessageV3 implements HeaderValueOptionOrBuilder
Header name/value pair plus option to control append behavior.
Protobuf typeenvoy.config.core.v3.HeaderValueOption- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHeaderValueOption.BuilderHeader name/value pair plus option to control append behavior.static classHeaderValueOption.HeaderAppendAction[#not-implemented-hide:] Describes the supported actions types for header append action.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intAPPEND_ACTION_FIELD_NUMBERstatic intAPPEND_FIELD_NUMBERstatic intHEADER_FIELD_NUMBERstatic intKEEP_EMPTY_VALUE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)com.google.protobuf.BoolValuegetAppend()Should the value be appended?HeaderValueOption.HeaderAppendActiongetAppendAction()[#not-implemented-hide:] Describes the action taken to append/overwrite the given value for an existing header or to only add this header if it's absent.intgetAppendActionValue()[#not-implemented-hide:] Describes the action taken to append/overwrite the given value for an existing header or to only add this header if it's absent.com.google.protobuf.BoolValueOrBuildergetAppendOrBuilder()Should the value be appended?static HeaderValueOptiongetDefaultInstance()HeaderValueOptiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()HeaderValuegetHeader()Header name/value pair that this option applies to.HeaderValueOrBuildergetHeaderOrBuilder()Header name/value pair that this option applies to.booleangetKeepEmptyValue()Is the header value allowed to be empty?com.google.protobuf.Parser<HeaderValueOption>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasAppend()Should the value be appended?inthashCode()booleanhasHeader()Header name/value pair that this option applies to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static HeaderValueOption.BuildernewBuilder()static HeaderValueOption.BuildernewBuilder(HeaderValueOption prototype)HeaderValueOption.BuildernewBuilderForType()protected HeaderValueOption.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static HeaderValueOptionparseDelimitedFrom(InputStream input)static HeaderValueOptionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HeaderValueOptionparseFrom(byte[] data)static HeaderValueOptionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HeaderValueOptionparseFrom(com.google.protobuf.ByteString data)static HeaderValueOptionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HeaderValueOptionparseFrom(com.google.protobuf.CodedInputStream input)static HeaderValueOptionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HeaderValueOptionparseFrom(InputStream input)static HeaderValueOptionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HeaderValueOptionparseFrom(ByteBuffer data)static HeaderValueOptionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<HeaderValueOption>parser()HeaderValueOption.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
HEADER_FIELD_NUMBER
public static final int HEADER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
APPEND_FIELD_NUMBER
public static final int APPEND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
APPEND_ACTION_FIELD_NUMBER
public static final int APPEND_ACTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KEEP_EMPTY_VALUE_FIELD_NUMBER
public static final int KEEP_EMPTY_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
hasHeader
public boolean hasHeader()
Header name/value pair that this option applies to.
.envoy.config.core.v3.HeaderValue header = 1 [(.validate.rules) = { ... }- Specified by:
hasHeaderin interfaceHeaderValueOptionOrBuilder- Returns:
- Whether the header field is set.
-
getHeader
public HeaderValue getHeader()
Header name/value pair that this option applies to.
.envoy.config.core.v3.HeaderValue header = 1 [(.validate.rules) = { ... }- Specified by:
getHeaderin interfaceHeaderValueOptionOrBuilder- Returns:
- The header.
-
getHeaderOrBuilder
public HeaderValueOrBuilder getHeaderOrBuilder()
Header name/value pair that this option applies to.
.envoy.config.core.v3.HeaderValue header = 1 [(.validate.rules) = { ... }- Specified by:
getHeaderOrBuilderin interfaceHeaderValueOptionOrBuilder
-
hasAppend
public boolean hasAppend()
Should the value be appended? If true (default), the value is appended to existing values. Otherwise it replaces any existing values.
.google.protobuf.BoolValue append = 2;- Specified by:
hasAppendin interfaceHeaderValueOptionOrBuilder- Returns:
- Whether the append field is set.
-
getAppend
public com.google.protobuf.BoolValue getAppend()
Should the value be appended? If true (default), the value is appended to existing values. Otherwise it replaces any existing values.
.google.protobuf.BoolValue append = 2;- Specified by:
getAppendin interfaceHeaderValueOptionOrBuilder- Returns:
- The append.
-
getAppendOrBuilder
public com.google.protobuf.BoolValueOrBuilder getAppendOrBuilder()
Should the value be appended? If true (default), the value is appended to existing values. Otherwise it replaces any existing values.
.google.protobuf.BoolValue append = 2;- Specified by:
getAppendOrBuilderin interfaceHeaderValueOptionOrBuilder
-
getAppendActionValue
public int getAppendActionValue()
[#not-implemented-hide:] Describes the action taken to append/overwrite the given value for an existing header or to only add this header if it's absent. Value defaults to :ref:`APPEND_IF_EXISTS_OR_ADD<envoy_v3_api_enum_value_config.core.v3.HeaderValueOption.HeaderAppendAction.APPEND_IF_EXISTS_OR_ADD>`.
.envoy.config.core.v3.HeaderValueOption.HeaderAppendAction append_action = 3 [(.validate.rules) = { ... }- Specified by:
getAppendActionValuein interfaceHeaderValueOptionOrBuilder- Returns:
- The enum numeric value on the wire for appendAction.
-
getAppendAction
public HeaderValueOption.HeaderAppendAction getAppendAction()
[#not-implemented-hide:] Describes the action taken to append/overwrite the given value for an existing header or to only add this header if it's absent. Value defaults to :ref:`APPEND_IF_EXISTS_OR_ADD<envoy_v3_api_enum_value_config.core.v3.HeaderValueOption.HeaderAppendAction.APPEND_IF_EXISTS_OR_ADD>`.
.envoy.config.core.v3.HeaderValueOption.HeaderAppendAction append_action = 3 [(.validate.rules) = { ... }- Specified by:
getAppendActionin interfaceHeaderValueOptionOrBuilder- Returns:
- The appendAction.
-
getKeepEmptyValue
public boolean getKeepEmptyValue()
Is the header value allowed to be empty? If false (default), custom headers with empty values are dropped, otherwise they are added.
bool keep_empty_value = 4;- Specified by:
getKeepEmptyValuein interfaceHeaderValueOptionOrBuilder- Returns:
- The keepEmptyValue.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static HeaderValueOption parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HeaderValueOption parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HeaderValueOption parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HeaderValueOption parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HeaderValueOption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HeaderValueOption parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HeaderValueOption parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HeaderValueOption parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HeaderValueOption parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HeaderValueOption parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static HeaderValueOption parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HeaderValueOption parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public HeaderValueOption.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static HeaderValueOption.Builder newBuilder()
-
newBuilder
public static HeaderValueOption.Builder newBuilder(HeaderValueOption prototype)
-
toBuilder
public HeaderValueOption.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HeaderValueOption.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static HeaderValueOption getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<HeaderValueOption> parser()
-
getParserForType
public com.google.protobuf.Parser<HeaderValueOption> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public HeaderValueOption getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-