public final class SubstitutionFormatString extends com.google.protobuf.GeneratedMessageV3 implements SubstitutionFormatStringOrBuilder
Configuration to use multiple :ref:`command operators <config_access_log_command_operators>` to generate a new string in either plain text or JSON format. [#next-free-field: 6]Protobuf type
envoy.config.core.v4alpha.SubstitutionFormatString| Modifier and Type | Class and Description |
|---|---|
static class |
SubstitutionFormatString.Builder
Configuration to use multiple :ref:`command operators <config_access_log_command_operators>`
to generate a new string in either plain text or JSON format.
|
static class |
SubstitutionFormatString.FormatCase |
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| Modifier and Type | Field and Description |
|---|---|
static int |
CONTENT_TYPE_FIELD_NUMBER |
static int |
JSON_FORMAT_FIELD_NUMBER |
static int |
OMIT_EMPTY_VALUES_FIELD_NUMBER |
static int |
TEXT_FORMAT_SOURCE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getContentType()
Specify a *content_type* field.
|
com.google.protobuf.ByteString |
getContentTypeBytes()
Specify a *content_type* field.
|
static SubstitutionFormatString |
getDefaultInstance() |
SubstitutionFormatString |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
SubstitutionFormatString.FormatCase |
getFormatCase() |
com.google.protobuf.Struct |
getJsonFormat()
Specify a format with command operators to form a JSON string.
|
com.google.protobuf.StructOrBuilder |
getJsonFormatOrBuilder()
Specify a format with command operators to form a JSON string.
|
boolean |
getOmitEmptyValues()
If set to true, when command operators are evaluated to null,
* for ``text_format``, the output of the empty operator is changed from ``-`` to an
empty string, so that empty values are omitted entirely
|
com.google.protobuf.Parser<SubstitutionFormatString> |
getParserForType() |
int |
getSerializedSize() |
DataSource |
getTextFormatSource()
Specify a format with command operators to form a text string.
|
DataSourceOrBuilder |
getTextFormatSourceOrBuilder()
Specify a format with command operators to form a text string.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasJsonFormat()
Specify a format with command operators to form a JSON string.
|
boolean |
hasTextFormatSource()
Specify a format with command operators to form a text string.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SubstitutionFormatString.Builder |
newBuilder() |
static SubstitutionFormatString.Builder |
newBuilder(SubstitutionFormatString prototype) |
SubstitutionFormatString.Builder |
newBuilderForType() |
protected SubstitutionFormatString.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SubstitutionFormatString |
parseDelimitedFrom(InputStream input) |
static SubstitutionFormatString |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SubstitutionFormatString |
parseFrom(byte[] data) |
static SubstitutionFormatString |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SubstitutionFormatString |
parseFrom(ByteBuffer data) |
static SubstitutionFormatString |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SubstitutionFormatString |
parseFrom(com.google.protobuf.ByteString data) |
static SubstitutionFormatString |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SubstitutionFormatString |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SubstitutionFormatString |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SubstitutionFormatString |
parseFrom(InputStream input) |
static SubstitutionFormatString |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SubstitutionFormatString> |
parser() |
SubstitutionFormatString.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int JSON_FORMAT_FIELD_NUMBER
public static final int TEXT_FORMAT_SOURCE_FIELD_NUMBER
public static final int OMIT_EMPTY_VALUES_FIELD_NUMBER
public static final int CONTENT_TYPE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public SubstitutionFormatString.FormatCase getFormatCase()
getFormatCase in interface SubstitutionFormatStringOrBuilderpublic boolean hasJsonFormat()
Specify a format with command operators to form a JSON string.
Its details is described in :ref:`format dictionary<config_access_log_format_dictionaries>`.
Values are rendered as strings, numbers, or boolean values as appropriate.
Nested JSON objects may be produced by some command operators (e.g. FILTER_STATE or DYNAMIC_METADATA).
See the documentation for a specific command operator for details.
.. validated-code-block:: yaml
:type-name: envoy.config.core.v3.SubstitutionFormatString
json_format:
status: "%RESPONSE_CODE%"
message: "%LOCAL_REPLY_BODY%"
The following JSON object would be created:
.. code-block:: json
{
"status": 500,
"message": "My error message"
}
.google.protobuf.Struct json_format = 2 [(.validate.rules) = { ... }hasJsonFormat in interface SubstitutionFormatStringOrBuilderpublic com.google.protobuf.Struct getJsonFormat()
Specify a format with command operators to form a JSON string.
Its details is described in :ref:`format dictionary<config_access_log_format_dictionaries>`.
Values are rendered as strings, numbers, or boolean values as appropriate.
Nested JSON objects may be produced by some command operators (e.g. FILTER_STATE or DYNAMIC_METADATA).
See the documentation for a specific command operator for details.
.. validated-code-block:: yaml
:type-name: envoy.config.core.v3.SubstitutionFormatString
json_format:
status: "%RESPONSE_CODE%"
message: "%LOCAL_REPLY_BODY%"
The following JSON object would be created:
.. code-block:: json
{
"status": 500,
"message": "My error message"
}
.google.protobuf.Struct json_format = 2 [(.validate.rules) = { ... }getJsonFormat in interface SubstitutionFormatStringOrBuilderpublic com.google.protobuf.StructOrBuilder getJsonFormatOrBuilder()
Specify a format with command operators to form a JSON string.
Its details is described in :ref:`format dictionary<config_access_log_format_dictionaries>`.
Values are rendered as strings, numbers, or boolean values as appropriate.
Nested JSON objects may be produced by some command operators (e.g. FILTER_STATE or DYNAMIC_METADATA).
See the documentation for a specific command operator for details.
.. validated-code-block:: yaml
:type-name: envoy.config.core.v3.SubstitutionFormatString
json_format:
status: "%RESPONSE_CODE%"
message: "%LOCAL_REPLY_BODY%"
The following JSON object would be created:
.. code-block:: json
{
"status": 500,
"message": "My error message"
}
.google.protobuf.Struct json_format = 2 [(.validate.rules) = { ... }getJsonFormatOrBuilder in interface SubstitutionFormatStringOrBuilderpublic boolean hasTextFormatSource()
Specify a format with command operators to form a text string.
Its details is described in :ref:`format string<config_access_log_format_strings>`.
For example, setting ``text_format`` like below,
.. validated-code-block:: yaml
:type-name: envoy.config.core.v3.SubstitutionFormatString
text_format_source:
inline_string: "%LOCAL_REPLY_BODY%:%RESPONSE_CODE%:path=%REQ(:path)%\n"
generates plain text similar to:
.. code-block:: text
upstream connect error:503:path=/foo
.envoy.config.core.v4alpha.DataSource text_format_source = 5;hasTextFormatSource in interface SubstitutionFormatStringOrBuilderpublic DataSource getTextFormatSource()
Specify a format with command operators to form a text string.
Its details is described in :ref:`format string<config_access_log_format_strings>`.
For example, setting ``text_format`` like below,
.. validated-code-block:: yaml
:type-name: envoy.config.core.v3.SubstitutionFormatString
text_format_source:
inline_string: "%LOCAL_REPLY_BODY%:%RESPONSE_CODE%:path=%REQ(:path)%\n"
generates plain text similar to:
.. code-block:: text
upstream connect error:503:path=/foo
.envoy.config.core.v4alpha.DataSource text_format_source = 5;getTextFormatSource in interface SubstitutionFormatStringOrBuilderpublic DataSourceOrBuilder getTextFormatSourceOrBuilder()
Specify a format with command operators to form a text string.
Its details is described in :ref:`format string<config_access_log_format_strings>`.
For example, setting ``text_format`` like below,
.. validated-code-block:: yaml
:type-name: envoy.config.core.v3.SubstitutionFormatString
text_format_source:
inline_string: "%LOCAL_REPLY_BODY%:%RESPONSE_CODE%:path=%REQ(:path)%\n"
generates plain text similar to:
.. code-block:: text
upstream connect error:503:path=/foo
.envoy.config.core.v4alpha.DataSource text_format_source = 5;getTextFormatSourceOrBuilder in interface SubstitutionFormatStringOrBuilderpublic boolean getOmitEmptyValues()
If set to true, when command operators are evaluated to null, * for ``text_format``, the output of the empty operator is changed from ``-`` to an empty string, so that empty values are omitted entirely. * for ``json_format`` the keys with null values are omitted in the output structure.
bool omit_empty_values = 3;getOmitEmptyValues in interface SubstitutionFormatStringOrBuilderpublic String getContentType()
Specify a *content_type* field. If this field is not set then ``text/plain`` is used for *text_format* and ``application/json`` is used for *json_format*. .. validated-code-block:: yaml :type-name: envoy.config.core.v3.SubstitutionFormatString content_type: "text/html; charset=UTF-8"
string content_type = 4;getContentType in interface SubstitutionFormatStringOrBuilderpublic com.google.protobuf.ByteString getContentTypeBytes()
Specify a *content_type* field. If this field is not set then ``text/plain`` is used for *text_format* and ``application/json`` is used for *json_format*. .. validated-code-block:: yaml :type-name: envoy.config.core.v3.SubstitutionFormatString content_type: "text/html; charset=UTF-8"
string content_type = 4;getContentTypeBytes in interface SubstitutionFormatStringOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SubstitutionFormatString parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SubstitutionFormatString parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SubstitutionFormatString parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SubstitutionFormatString parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SubstitutionFormatString parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SubstitutionFormatString parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SubstitutionFormatString parseFrom(InputStream input) throws IOException
IOExceptionpublic static SubstitutionFormatString parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SubstitutionFormatString parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SubstitutionFormatString parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SubstitutionFormatString parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SubstitutionFormatString parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SubstitutionFormatString.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SubstitutionFormatString.Builder newBuilder()
public static SubstitutionFormatString.Builder newBuilder(SubstitutionFormatString prototype)
public SubstitutionFormatString.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SubstitutionFormatString.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SubstitutionFormatString getDefaultInstance()
public static com.google.protobuf.Parser<SubstitutionFormatString> parser()
public com.google.protobuf.Parser<SubstitutionFormatString> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SubstitutionFormatString getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.