Interface HeaderValueOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
HeaderValue
,HeaderValue.Builder
public interface HeaderValueOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getKey
String getKey()Header name.
string key = 1 [(.validate.rules) = { ... }
- Returns:
- The key.
-
getKeyBytes
com.google.protobuf.ByteString getKeyBytes()Header name.
string key = 1 [(.validate.rules) = { ... }
- Returns:
- The bytes for key.
-
getValue
String getValue()Header value. The same :ref:`format specifier <config_access_log_format>` as used for :ref:`HTTP access logging <config_access_log>` applies here, however unknown header values are replaced with the empty string instead of ``-``. Header value is encoded as string. This does not work for non-utf8 characters. Only one of ``value`` or ``raw_value`` can be set.
string value = 2 [(.validate.rules) = { ... }
- Returns:
- The value.
-
getValueBytes
com.google.protobuf.ByteString getValueBytes()Header value. The same :ref:`format specifier <config_access_log_format>` as used for :ref:`HTTP access logging <config_access_log>` applies here, however unknown header values are replaced with the empty string instead of ``-``. Header value is encoded as string. This does not work for non-utf8 characters. Only one of ``value`` or ``raw_value`` can be set.
string value = 2 [(.validate.rules) = { ... }
- Returns:
- The bytes for value.
-
getRawValue
com.google.protobuf.ByteString getRawValue()Header value is encoded as bytes which can support non-utf8 characters. Only one of ``value`` or ``raw_value`` can be set.
bytes raw_value = 3 [(.validate.rules) = { ... }
- Returns:
- The rawValue.
-