Class FileAccessLog.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<FileAccessLog.Builder>
io.envoyproxy.envoy.config.accesslog.v2.FileAccessLog.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,FileAccessLogOrBuilder,Cloneable
- Enclosing class:
- FileAccessLog
public static final class FileAccessLog.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<FileAccessLog.Builder>
implements FileAccessLogOrBuilder
Custom configuration for an :ref:`AccessLog <envoy_api_msg_config.filter.accesslog.v2.AccessLog>` that writes log entries directly to a file. Configures the built-in *envoy.access_loggers.file* AccessLog.Protobuf type
envoy.config.accesslog.v2.FileAccessLog-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Access log :ref:`format string<config_access_log_format_strings>`.Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) A path to a local file to which to write the access log entries.Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorAccess log :ref:`format string<config_access_log_format_strings>`.com.google.protobuf.ByteStringAccess log :ref:`format string<config_access_log_format_strings>`.com.google.protobuf.StructAccess log :ref:`format dictionary<config_access_log_format_dictionaries>`.com.google.protobuf.Struct.BuilderAccess log :ref:`format dictionary<config_access_log_format_dictionaries>`.com.google.protobuf.StructOrBuilderAccess log :ref:`format dictionary<config_access_log_format_dictionaries>`.getPath()A path to a local file to which to write the access log entries.com.google.protobuf.ByteStringA path to a local file to which to write the access log entries.com.google.protobuf.StructAccess log :ref:`format dictionary<config_access_log_format_dictionaries>`.com.google.protobuf.Struct.BuilderAccess log :ref:`format dictionary<config_access_log_format_dictionaries>`.com.google.protobuf.StructOrBuilderAccess log :ref:`format dictionary<config_access_log_format_dictionaries>`.booleanAccess log :ref:`format string<config_access_log_format_strings>`.booleanAccess log :ref:`format dictionary<config_access_log_format_dictionaries>`.booleanAccess log :ref:`format dictionary<config_access_log_format_dictionaries>`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(FileAccessLog other) mergeJsonFormat(com.google.protobuf.Struct value) Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.mergeTypedJsonFormat(com.google.protobuf.Struct value) Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.final FileAccessLog.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Access log :ref:`format string<config_access_log_format_strings>`.setFormatBytes(com.google.protobuf.ByteString value) Access log :ref:`format string<config_access_log_format_strings>`.setJsonFormat(com.google.protobuf.Struct value) Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.setJsonFormat(com.google.protobuf.Struct.Builder builderForValue) Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.A path to a local file to which to write the access log entries.setPathBytes(com.google.protobuf.ByteString value) A path to a local file to which to write the access log entries.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTypedJsonFormat(com.google.protobuf.Struct value) Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.setTypedJsonFormat(com.google.protobuf.Struct.Builder builderForValue) Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.final FileAccessLog.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<FileAccessLog.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<FileAccessLog.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<FileAccessLog.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<FileAccessLog.Builder>
-
setField
public FileAccessLog.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<FileAccessLog.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FileAccessLog.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<FileAccessLog.Builder>
-
setRepeatedField
public FileAccessLog.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<FileAccessLog.Builder>
-
addRepeatedField
public FileAccessLog.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<FileAccessLog.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FileAccessLog.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<FileAccessLog.Builder>
-
mergeFrom
public FileAccessLog.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<FileAccessLog.Builder>- Throws:
IOException
-
getAccessLogFormatCase
- Specified by:
getAccessLogFormatCasein interfaceFileAccessLogOrBuilder
-
clearAccessLogFormat
-
getPath
A path to a local file to which to write the access log entries.
string path = 1 [(.validate.rules) = { ... }- Specified by:
getPathin interfaceFileAccessLogOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()A path to a local file to which to write the access log entries.
string path = 1 [(.validate.rules) = { ... }- Specified by:
getPathBytesin interfaceFileAccessLogOrBuilder- Returns:
- The bytes for path.
-
setPath
A path to a local file to which to write the access log entries.
string path = 1 [(.validate.rules) = { ... }- Parameters:
value- The path to set.- Returns:
- This builder for chaining.
-
clearPath
A path to a local file to which to write the access log entries.
string path = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setPathBytes
A path to a local file to which to write the access log entries.
string path = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for path to set.- Returns:
- This builder for chaining.
-
hasFormat
public boolean hasFormat()Access log :ref:`format string<config_access_log_format_strings>`. Envoy supports :ref:`custom access log formats <config_access_log_format>` as well as a :ref:`default format <config_access_log_default_format>`.
string format = 2;- Specified by:
hasFormatin interfaceFileAccessLogOrBuilder- Returns:
- Whether the format field is set.
-
getFormat
Access log :ref:`format string<config_access_log_format_strings>`. Envoy supports :ref:`custom access log formats <config_access_log_format>` as well as a :ref:`default format <config_access_log_default_format>`.
string format = 2;- Specified by:
getFormatin interfaceFileAccessLogOrBuilder- Returns:
- The format.
-
getFormatBytes
public com.google.protobuf.ByteString getFormatBytes()Access log :ref:`format string<config_access_log_format_strings>`. Envoy supports :ref:`custom access log formats <config_access_log_format>` as well as a :ref:`default format <config_access_log_default_format>`.
string format = 2;- Specified by:
getFormatBytesin interfaceFileAccessLogOrBuilder- Returns:
- The bytes for format.
-
setFormat
Access log :ref:`format string<config_access_log_format_strings>`. Envoy supports :ref:`custom access log formats <config_access_log_format>` as well as a :ref:`default format <config_access_log_default_format>`.
string format = 2;- Parameters:
value- The format to set.- Returns:
- This builder for chaining.
-
clearFormat
Access log :ref:`format string<config_access_log_format_strings>`. Envoy supports :ref:`custom access log formats <config_access_log_format>` as well as a :ref:`default format <config_access_log_default_format>`.
string format = 2;- Returns:
- This builder for chaining.
-
setFormatBytes
Access log :ref:`format string<config_access_log_format_strings>`. Envoy supports :ref:`custom access log formats <config_access_log_format>` as well as a :ref:`default format <config_access_log_default_format>`.
string format = 2;- Parameters:
value- The bytes for format to set.- Returns:
- This builder for chaining.
-
hasJsonFormat
public boolean hasJsonFormat()Access log :ref:`format dictionary<config_access_log_format_dictionaries>`. All values are rendered as strings.
.google.protobuf.Struct json_format = 3;- Specified by:
hasJsonFormatin interfaceFileAccessLogOrBuilder- Returns:
- Whether the jsonFormat field is set.
-
getJsonFormat
public com.google.protobuf.Struct getJsonFormat()Access log :ref:`format dictionary<config_access_log_format_dictionaries>`. All values are rendered as strings.
.google.protobuf.Struct json_format = 3;- Specified by:
getJsonFormatin interfaceFileAccessLogOrBuilder- Returns:
- The jsonFormat.
-
setJsonFormat
Access log :ref:`format dictionary<config_access_log_format_dictionaries>`. All values are rendered as strings.
.google.protobuf.Struct json_format = 3; -
setJsonFormat
Access log :ref:`format dictionary<config_access_log_format_dictionaries>`. All values are rendered as strings.
.google.protobuf.Struct json_format = 3; -
mergeJsonFormat
Access log :ref:`format dictionary<config_access_log_format_dictionaries>`. All values are rendered as strings.
.google.protobuf.Struct json_format = 3; -
clearJsonFormat
Access log :ref:`format dictionary<config_access_log_format_dictionaries>`. All values are rendered as strings.
.google.protobuf.Struct json_format = 3; -
getJsonFormatBuilder
public com.google.protobuf.Struct.Builder getJsonFormatBuilder()Access log :ref:`format dictionary<config_access_log_format_dictionaries>`. All values are rendered as strings.
.google.protobuf.Struct json_format = 3; -
getJsonFormatOrBuilder
public com.google.protobuf.StructOrBuilder getJsonFormatOrBuilder()Access log :ref:`format dictionary<config_access_log_format_dictionaries>`. All values are rendered as strings.
.google.protobuf.Struct json_format = 3;- Specified by:
getJsonFormatOrBuilderin interfaceFileAccessLogOrBuilder
-
hasTypedJsonFormat
public boolean hasTypedJsonFormat()Access log :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.
.google.protobuf.Struct typed_json_format = 4;- Specified by:
hasTypedJsonFormatin interfaceFileAccessLogOrBuilder- Returns:
- Whether the typedJsonFormat field is set.
-
getTypedJsonFormat
public com.google.protobuf.Struct getTypedJsonFormat()Access log :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.
.google.protobuf.Struct typed_json_format = 4;- Specified by:
getTypedJsonFormatin interfaceFileAccessLogOrBuilder- Returns:
- The typedJsonFormat.
-
setTypedJsonFormat
Access log :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.
.google.protobuf.Struct typed_json_format = 4; -
setTypedJsonFormat
Access log :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.
.google.protobuf.Struct typed_json_format = 4; -
mergeTypedJsonFormat
Access log :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.
.google.protobuf.Struct typed_json_format = 4; -
clearTypedJsonFormat
Access log :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.
.google.protobuf.Struct typed_json_format = 4; -
getTypedJsonFormatBuilder
public com.google.protobuf.Struct.Builder getTypedJsonFormatBuilder()Access log :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.
.google.protobuf.Struct typed_json_format = 4; -
getTypedJsonFormatOrBuilder
public com.google.protobuf.StructOrBuilder getTypedJsonFormatOrBuilder()Access log :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.
.google.protobuf.Struct typed_json_format = 4;- Specified by:
getTypedJsonFormatOrBuilderin interfaceFileAccessLogOrBuilder
-
setUnknownFields
public final FileAccessLog.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FileAccessLog.Builder>
-
mergeUnknownFields
public final FileAccessLog.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FileAccessLog.Builder>
-