Class SubstitutionFormatString.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SubstitutionFormatString.Builder>
-
- io.envoyproxy.envoy.config.core.v3.SubstitutionFormatString.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SubstitutionFormatStringOrBuilder,Cloneable
- Enclosing class:
- SubstitutionFormatString
public static final class SubstitutionFormatString.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SubstitutionFormatString.Builder> 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: 7]
Protobuf typeenvoy.config.core.v3.SubstitutionFormatString
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SubstitutionFormatString.BuilderaddAllFormatters(Iterable<? extends TypedExtensionConfig> values)Specifies a collection of Formatter plugins that can be called from the access log configuration.SubstitutionFormatString.BuilderaddFormatters(int index, TypedExtensionConfig value)Specifies a collection of Formatter plugins that can be called from the access log configuration.SubstitutionFormatString.BuilderaddFormatters(int index, TypedExtensionConfig.Builder builderForValue)Specifies a collection of Formatter plugins that can be called from the access log configuration.SubstitutionFormatString.BuilderaddFormatters(TypedExtensionConfig value)Specifies a collection of Formatter plugins that can be called from the access log configuration.SubstitutionFormatString.BuilderaddFormatters(TypedExtensionConfig.Builder builderForValue)Specifies a collection of Formatter plugins that can be called from the access log configuration.TypedExtensionConfig.BuilderaddFormattersBuilder()Specifies a collection of Formatter plugins that can be called from the access log configuration.TypedExtensionConfig.BuilderaddFormattersBuilder(int index)Specifies a collection of Formatter plugins that can be called from the access log configuration.SubstitutionFormatString.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SubstitutionFormatStringbuild()SubstitutionFormatStringbuildPartial()SubstitutionFormatString.Builderclear()SubstitutionFormatString.BuilderclearContentType()Specify a ``content_type`` field.SubstitutionFormatString.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SubstitutionFormatString.BuilderclearFormat()SubstitutionFormatString.BuilderclearFormatters()Specifies a collection of Formatter plugins that can be called from the access log configuration.SubstitutionFormatString.BuilderclearJsonFormat()Specify a format with command operators to form a JSON string.SubstitutionFormatString.BuilderclearOmitEmptyValues()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 entirelySubstitutionFormatString.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SubstitutionFormatString.BuilderclearTextFormat()Deprecated.envoy.config.core.v3.SubstitutionFormatString.text_format is deprecated.SubstitutionFormatString.BuilderclearTextFormatSource()Specify a format with command operators to form a text string.SubstitutionFormatString.Builderclone()StringgetContentType()Specify a ``content_type`` field.com.google.protobuf.ByteStringgetContentTypeBytes()Specify a ``content_type`` field.SubstitutionFormatStringgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()SubstitutionFormatString.FormatCasegetFormatCase()TypedExtensionConfiggetFormatters(int index)Specifies a collection of Formatter plugins that can be called from the access log configuration.TypedExtensionConfig.BuildergetFormattersBuilder(int index)Specifies a collection of Formatter plugins that can be called from the access log configuration.List<TypedExtensionConfig.Builder>getFormattersBuilderList()Specifies a collection of Formatter plugins that can be called from the access log configuration.intgetFormattersCount()Specifies a collection of Formatter plugins that can be called from the access log configuration.List<TypedExtensionConfig>getFormattersList()Specifies a collection of Formatter plugins that can be called from the access log configuration.TypedExtensionConfigOrBuildergetFormattersOrBuilder(int index)Specifies a collection of Formatter plugins that can be called from the access log configuration.List<? extends TypedExtensionConfigOrBuilder>getFormattersOrBuilderList()Specifies a collection of Formatter plugins that can be called from the access log configuration.com.google.protobuf.StructgetJsonFormat()Specify a format with command operators to form a JSON string.com.google.protobuf.Struct.BuildergetJsonFormatBuilder()Specify a format with command operators to form a JSON string.com.google.protobuf.StructOrBuildergetJsonFormatOrBuilder()Specify a format with command operators to form a JSON string.booleangetOmitEmptyValues()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 entirelyStringgetTextFormat()Deprecated.envoy.config.core.v3.SubstitutionFormatString.text_format is deprecated.com.google.protobuf.ByteStringgetTextFormatBytes()Deprecated.envoy.config.core.v3.SubstitutionFormatString.text_format is deprecated.DataSourcegetTextFormatSource()Specify a format with command operators to form a text string.DataSource.BuildergetTextFormatSourceBuilder()Specify a format with command operators to form a text string.DataSourceOrBuildergetTextFormatSourceOrBuilder()Specify a format with command operators to form a text string.booleanhasJsonFormat()Specify a format with command operators to form a JSON string.booleanhasTextFormat()Deprecated.envoy.config.core.v3.SubstitutionFormatString.text_format is deprecated.booleanhasTextFormatSource()Specify a format with command operators to form a text string.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SubstitutionFormatString.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SubstitutionFormatString.BuildermergeFrom(com.google.protobuf.Message other)SubstitutionFormatString.BuildermergeFrom(SubstitutionFormatString other)SubstitutionFormatString.BuildermergeJsonFormat(com.google.protobuf.Struct value)Specify a format with command operators to form a JSON string.SubstitutionFormatString.BuildermergeTextFormatSource(DataSource value)Specify a format with command operators to form a text string.SubstitutionFormatString.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SubstitutionFormatString.BuilderremoveFormatters(int index)Specifies a collection of Formatter plugins that can be called from the access log configuration.SubstitutionFormatString.BuildersetContentType(String value)Specify a ``content_type`` field.SubstitutionFormatString.BuildersetContentTypeBytes(com.google.protobuf.ByteString value)Specify a ``content_type`` field.SubstitutionFormatString.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SubstitutionFormatString.BuildersetFormatters(int index, TypedExtensionConfig value)Specifies a collection of Formatter plugins that can be called from the access log configuration.SubstitutionFormatString.BuildersetFormatters(int index, TypedExtensionConfig.Builder builderForValue)Specifies a collection of Formatter plugins that can be called from the access log configuration.SubstitutionFormatString.BuildersetJsonFormat(com.google.protobuf.Struct value)Specify a format with command operators to form a JSON string.SubstitutionFormatString.BuildersetJsonFormat(com.google.protobuf.Struct.Builder builderForValue)Specify a format with command operators to form a JSON string.SubstitutionFormatString.BuildersetOmitEmptyValues(boolean value)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 entirelySubstitutionFormatString.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SubstitutionFormatString.BuildersetTextFormat(String value)Deprecated.envoy.config.core.v3.SubstitutionFormatString.text_format is deprecated.SubstitutionFormatString.BuildersetTextFormatBytes(com.google.protobuf.ByteString value)Deprecated.envoy.config.core.v3.SubstitutionFormatString.text_format is deprecated.SubstitutionFormatString.BuildersetTextFormatSource(DataSource value)Specify a format with command operators to form a text string.SubstitutionFormatString.BuildersetTextFormatSource(DataSource.Builder builderForValue)Specify a format with command operators to form a text string.SubstitutionFormatString.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
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<SubstitutionFormatString.Builder>
-
clear
public SubstitutionFormatString.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<SubstitutionFormatString.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<SubstitutionFormatString.Builder>
-
getDefaultInstanceForType
public SubstitutionFormatString getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SubstitutionFormatString build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SubstitutionFormatString buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SubstitutionFormatString.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<SubstitutionFormatString.Builder>
-
setField
public SubstitutionFormatString.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<SubstitutionFormatString.Builder>
-
clearField
public SubstitutionFormatString.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SubstitutionFormatString.Builder>
-
clearOneof
public SubstitutionFormatString.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SubstitutionFormatString.Builder>
-
setRepeatedField
public SubstitutionFormatString.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<SubstitutionFormatString.Builder>
-
addRepeatedField
public SubstitutionFormatString.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<SubstitutionFormatString.Builder>
-
mergeFrom
public SubstitutionFormatString.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SubstitutionFormatString.Builder>
-
mergeFrom
public SubstitutionFormatString.Builder mergeFrom(SubstitutionFormatString other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SubstitutionFormatString.Builder>
-
mergeFrom
public SubstitutionFormatString.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<SubstitutionFormatString.Builder>- Throws:
IOException
-
getFormatCase
public SubstitutionFormatString.FormatCase getFormatCase()
- Specified by:
getFormatCasein interfaceSubstitutionFormatStringOrBuilder
-
clearFormat
public SubstitutionFormatString.Builder clearFormat()
-
hasTextFormat
@Deprecated public boolean hasTextFormat()
Deprecated.envoy.config.core.v3.SubstitutionFormatString.text_format is deprecated. See envoy/config/core/v3/substitution_format_string.proto;l=45Specify 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: "%LOCAL_REPLY_BODY%:%RESPONSE_CODE%:path=%REQ(:path)%\n" generates plain text similar to: .. code-block:: text upstream connect error:503:path=/foo Deprecated in favor of :ref:`text_format_source <envoy_v3_api_field_config.core.v3.SubstitutionFormatString.text_format_source>`. To migrate text format strings, use the :ref:`inline_string <envoy_v3_api_field_config.core.v3.DataSource.inline_string>` field.
string text_format = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Specified by:
hasTextFormatin interfaceSubstitutionFormatStringOrBuilder- Returns:
- Whether the textFormat field is set.
-
getTextFormat
@Deprecated public String getTextFormat()
Deprecated.envoy.config.core.v3.SubstitutionFormatString.text_format is deprecated. See envoy/config/core/v3/substitution_format_string.proto;l=45Specify 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: "%LOCAL_REPLY_BODY%:%RESPONSE_CODE%:path=%REQ(:path)%\n" generates plain text similar to: .. code-block:: text upstream connect error:503:path=/foo Deprecated in favor of :ref:`text_format_source <envoy_v3_api_field_config.core.v3.SubstitutionFormatString.text_format_source>`. To migrate text format strings, use the :ref:`inline_string <envoy_v3_api_field_config.core.v3.DataSource.inline_string>` field.
string text_format = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Specified by:
getTextFormatin interfaceSubstitutionFormatStringOrBuilder- Returns:
- The textFormat.
-
getTextFormatBytes
@Deprecated public com.google.protobuf.ByteString getTextFormatBytes()
Deprecated.envoy.config.core.v3.SubstitutionFormatString.text_format is deprecated. See envoy/config/core/v3/substitution_format_string.proto;l=45Specify 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: "%LOCAL_REPLY_BODY%:%RESPONSE_CODE%:path=%REQ(:path)%\n" generates plain text similar to: .. code-block:: text upstream connect error:503:path=/foo Deprecated in favor of :ref:`text_format_source <envoy_v3_api_field_config.core.v3.SubstitutionFormatString.text_format_source>`. To migrate text format strings, use the :ref:`inline_string <envoy_v3_api_field_config.core.v3.DataSource.inline_string>` field.
string text_format = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Specified by:
getTextFormatBytesin interfaceSubstitutionFormatStringOrBuilder- Returns:
- The bytes for textFormat.
-
setTextFormat
@Deprecated public SubstitutionFormatString.Builder setTextFormat(String value)
Deprecated.envoy.config.core.v3.SubstitutionFormatString.text_format is deprecated. See envoy/config/core/v3/substitution_format_string.proto;l=45Specify 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: "%LOCAL_REPLY_BODY%:%RESPONSE_CODE%:path=%REQ(:path)%\n" generates plain text similar to: .. code-block:: text upstream connect error:503:path=/foo Deprecated in favor of :ref:`text_format_source <envoy_v3_api_field_config.core.v3.SubstitutionFormatString.text_format_source>`. To migrate text format strings, use the :ref:`inline_string <envoy_v3_api_field_config.core.v3.DataSource.inline_string>` field.
string text_format = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Parameters:
value- The textFormat to set.- Returns:
- This builder for chaining.
-
clearTextFormat
@Deprecated public SubstitutionFormatString.Builder clearTextFormat()
Deprecated.envoy.config.core.v3.SubstitutionFormatString.text_format is deprecated. See envoy/config/core/v3/substitution_format_string.proto;l=45Specify 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: "%LOCAL_REPLY_BODY%:%RESPONSE_CODE%:path=%REQ(:path)%\n" generates plain text similar to: .. code-block:: text upstream connect error:503:path=/foo Deprecated in favor of :ref:`text_format_source <envoy_v3_api_field_config.core.v3.SubstitutionFormatString.text_format_source>`. To migrate text format strings, use the :ref:`inline_string <envoy_v3_api_field_config.core.v3.DataSource.inline_string>` field.
string text_format = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Returns:
- This builder for chaining.
-
setTextFormatBytes
@Deprecated public SubstitutionFormatString.Builder setTextFormatBytes(com.google.protobuf.ByteString value)
Deprecated.envoy.config.core.v3.SubstitutionFormatString.text_format is deprecated. See envoy/config/core/v3/substitution_format_string.proto;l=45Specify 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: "%LOCAL_REPLY_BODY%:%RESPONSE_CODE%:path=%REQ(:path)%\n" generates plain text similar to: .. code-block:: text upstream connect error:503:path=/foo Deprecated in favor of :ref:`text_format_source <envoy_v3_api_field_config.core.v3.SubstitutionFormatString.text_format_source>`. To migrate text format strings, use the :ref:`inline_string <envoy_v3_api_field_config.core.v3.DataSource.inline_string>` field.
string text_format = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];- Parameters:
value- The bytes for textFormat to set.- Returns:
- This builder for chaining.
-
hasJsonFormat
public 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) = { ... }- Specified by:
hasJsonFormatin interfaceSubstitutionFormatStringOrBuilder- Returns:
- Whether the jsonFormat field is set.
-
getJsonFormat
public 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) = { ... }- Specified by:
getJsonFormatin interfaceSubstitutionFormatStringOrBuilder- Returns:
- The jsonFormat.
-
setJsonFormat
public SubstitutionFormatString.Builder setJsonFormat(com.google.protobuf.Struct value)
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) = { ... }
-
setJsonFormat
public SubstitutionFormatString.Builder setJsonFormat(com.google.protobuf.Struct.Builder builderForValue)
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) = { ... }
-
mergeJsonFormat
public SubstitutionFormatString.Builder mergeJsonFormat(com.google.protobuf.Struct value)
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) = { ... }
-
clearJsonFormat
public SubstitutionFormatString.Builder clearJsonFormat()
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) = { ... }
-
getJsonFormatBuilder
public com.google.protobuf.Struct.Builder getJsonFormatBuilder()
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
public 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) = { ... }- Specified by:
getJsonFormatOrBuilderin interfaceSubstitutionFormatStringOrBuilder
-
hasTextFormatSource
public 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.v3.DataSource text_format_source = 5;- Specified by:
hasTextFormatSourcein interfaceSubstitutionFormatStringOrBuilder- Returns:
- Whether the textFormatSource field is set.
-
getTextFormatSource
public 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.v3.DataSource text_format_source = 5;- Specified by:
getTextFormatSourcein interfaceSubstitutionFormatStringOrBuilder- Returns:
- The textFormatSource.
-
setTextFormatSource
public SubstitutionFormatString.Builder setTextFormatSource(DataSource value)
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.v3.DataSource text_format_source = 5;
-
setTextFormatSource
public SubstitutionFormatString.Builder setTextFormatSource(DataSource.Builder builderForValue)
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.v3.DataSource text_format_source = 5;
-
mergeTextFormatSource
public SubstitutionFormatString.Builder mergeTextFormatSource(DataSource value)
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.v3.DataSource text_format_source = 5;
-
clearTextFormatSource
public SubstitutionFormatString.Builder clearTextFormatSource()
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.v3.DataSource text_format_source = 5;
-
getTextFormatSourceBuilder
public DataSource.Builder getTextFormatSourceBuilder()
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.v3.DataSource text_format_source = 5;
-
getTextFormatSourceOrBuilder
public 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.v3.DataSource text_format_source = 5;- Specified by:
getTextFormatSourceOrBuilderin interfaceSubstitutionFormatStringOrBuilder
-
getOmitEmptyValues
public 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;- Specified by:
getOmitEmptyValuesin interfaceSubstitutionFormatStringOrBuilder- Returns:
- The omitEmptyValues.
-
setOmitEmptyValues
public SubstitutionFormatString.Builder setOmitEmptyValues(boolean value)
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;- Parameters:
value- The omitEmptyValues to set.- Returns:
- This builder for chaining.
-
clearOmitEmptyValues
public SubstitutionFormatString.Builder clearOmitEmptyValues()
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;- Returns:
- This builder for chaining.
-
getContentType
public 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 [(.validate.rules) = { ... }- Specified by:
getContentTypein interfaceSubstitutionFormatStringOrBuilder- Returns:
- The contentType.
-
getContentTypeBytes
public 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 [(.validate.rules) = { ... }- Specified by:
getContentTypeBytesin interfaceSubstitutionFormatStringOrBuilder- Returns:
- The bytes for contentType.
-
setContentType
public SubstitutionFormatString.Builder setContentType(String value)
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 [(.validate.rules) = { ... }- Parameters:
value- The contentType to set.- Returns:
- This builder for chaining.
-
clearContentType
public SubstitutionFormatString.Builder clearContentType()
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 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setContentTypeBytes
public SubstitutionFormatString.Builder setContentTypeBytes(com.google.protobuf.ByteString value)
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 [(.validate.rules) = { ... }- Parameters:
value- The bytes for contentType to set.- Returns:
- This builder for chaining.
-
getFormattersList
public List<TypedExtensionConfig> getFormattersList()
Specifies a collection of Formatter plugins that can be called from the access log configuration. See the formatters extensions documentation for details. [#extension-category: envoy.formatter]
repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 6;- Specified by:
getFormattersListin interfaceSubstitutionFormatStringOrBuilder
-
getFormattersCount
public int getFormattersCount()
Specifies a collection of Formatter plugins that can be called from the access log configuration. See the formatters extensions documentation for details. [#extension-category: envoy.formatter]
repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 6;- Specified by:
getFormattersCountin interfaceSubstitutionFormatStringOrBuilder
-
getFormatters
public TypedExtensionConfig getFormatters(int index)
Specifies a collection of Formatter plugins that can be called from the access log configuration. See the formatters extensions documentation for details. [#extension-category: envoy.formatter]
repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 6;- Specified by:
getFormattersin interfaceSubstitutionFormatStringOrBuilder
-
setFormatters
public SubstitutionFormatString.Builder setFormatters(int index, TypedExtensionConfig value)
Specifies a collection of Formatter plugins that can be called from the access log configuration. See the formatters extensions documentation for details. [#extension-category: envoy.formatter]
repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 6;
-
setFormatters
public SubstitutionFormatString.Builder setFormatters(int index, TypedExtensionConfig.Builder builderForValue)
Specifies a collection of Formatter plugins that can be called from the access log configuration. See the formatters extensions documentation for details. [#extension-category: envoy.formatter]
repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 6;
-
addFormatters
public SubstitutionFormatString.Builder addFormatters(TypedExtensionConfig value)
Specifies a collection of Formatter plugins that can be called from the access log configuration. See the formatters extensions documentation for details. [#extension-category: envoy.formatter]
repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 6;
-
addFormatters
public SubstitutionFormatString.Builder addFormatters(int index, TypedExtensionConfig value)
Specifies a collection of Formatter plugins that can be called from the access log configuration. See the formatters extensions documentation for details. [#extension-category: envoy.formatter]
repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 6;
-
addFormatters
public SubstitutionFormatString.Builder addFormatters(TypedExtensionConfig.Builder builderForValue)
Specifies a collection of Formatter plugins that can be called from the access log configuration. See the formatters extensions documentation for details. [#extension-category: envoy.formatter]
repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 6;
-
addFormatters
public SubstitutionFormatString.Builder addFormatters(int index, TypedExtensionConfig.Builder builderForValue)
Specifies a collection of Formatter plugins that can be called from the access log configuration. See the formatters extensions documentation for details. [#extension-category: envoy.formatter]
repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 6;
-
addAllFormatters
public SubstitutionFormatString.Builder addAllFormatters(Iterable<? extends TypedExtensionConfig> values)
Specifies a collection of Formatter plugins that can be called from the access log configuration. See the formatters extensions documentation for details. [#extension-category: envoy.formatter]
repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 6;
-
clearFormatters
public SubstitutionFormatString.Builder clearFormatters()
Specifies a collection of Formatter plugins that can be called from the access log configuration. See the formatters extensions documentation for details. [#extension-category: envoy.formatter]
repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 6;
-
removeFormatters
public SubstitutionFormatString.Builder removeFormatters(int index)
Specifies a collection of Formatter plugins that can be called from the access log configuration. See the formatters extensions documentation for details. [#extension-category: envoy.formatter]
repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 6;
-
getFormattersBuilder
public TypedExtensionConfig.Builder getFormattersBuilder(int index)
Specifies a collection of Formatter plugins that can be called from the access log configuration. See the formatters extensions documentation for details. [#extension-category: envoy.formatter]
repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 6;
-
getFormattersOrBuilder
public TypedExtensionConfigOrBuilder getFormattersOrBuilder(int index)
Specifies a collection of Formatter plugins that can be called from the access log configuration. See the formatters extensions documentation for details. [#extension-category: envoy.formatter]
repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 6;- Specified by:
getFormattersOrBuilderin interfaceSubstitutionFormatStringOrBuilder
-
getFormattersOrBuilderList
public List<? extends TypedExtensionConfigOrBuilder> getFormattersOrBuilderList()
Specifies a collection of Formatter plugins that can be called from the access log configuration. See the formatters extensions documentation for details. [#extension-category: envoy.formatter]
repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 6;- Specified by:
getFormattersOrBuilderListin interfaceSubstitutionFormatStringOrBuilder
-
addFormattersBuilder
public TypedExtensionConfig.Builder addFormattersBuilder()
Specifies a collection of Formatter plugins that can be called from the access log configuration. See the formatters extensions documentation for details. [#extension-category: envoy.formatter]
repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 6;
-
addFormattersBuilder
public TypedExtensionConfig.Builder addFormattersBuilder(int index)
Specifies a collection of Formatter plugins that can be called from the access log configuration. See the formatters extensions documentation for details. [#extension-category: envoy.formatter]
repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 6;
-
getFormattersBuilderList
public List<TypedExtensionConfig.Builder> getFormattersBuilderList()
Specifies a collection of Formatter plugins that can be called from the access log configuration. See the formatters extensions documentation for details. [#extension-category: envoy.formatter]
repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 6;
-
setUnknownFields
public final SubstitutionFormatString.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SubstitutionFormatString.Builder>
-
mergeUnknownFields
public final SubstitutionFormatString.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SubstitutionFormatString.Builder>
-
-