Class FileAccessLog.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typeenvoy.config.accesslog.v2.FileAccessLog
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FileAccessLog.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)FileAccessLogbuild()FileAccessLogbuildPartial()FileAccessLog.Builderclear()FileAccessLog.BuilderclearAccessLogFormat()FileAccessLog.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)FileAccessLog.BuilderclearFormat()Access log :ref:`format string<config_access_log_format_strings>`.FileAccessLog.BuilderclearJsonFormat()Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.FileAccessLog.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)FileAccessLog.BuilderclearPath()A path to a local file to which to write the access log entries.FileAccessLog.BuilderclearTypedJsonFormat()Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.FileAccessLog.Builderclone()FileAccessLog.AccessLogFormatCasegetAccessLogFormatCase()FileAccessLoggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetFormat()Access log :ref:`format string<config_access_log_format_strings>`.com.google.protobuf.ByteStringgetFormatBytes()Access log :ref:`format string<config_access_log_format_strings>`.com.google.protobuf.StructgetJsonFormat()Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.com.google.protobuf.Struct.BuildergetJsonFormatBuilder()Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.com.google.protobuf.StructOrBuildergetJsonFormatOrBuilder()Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.StringgetPath()A path to a local file to which to write the access log entries.com.google.protobuf.ByteStringgetPathBytes()A path to a local file to which to write the access log entries.com.google.protobuf.StructgetTypedJsonFormat()Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.com.google.protobuf.Struct.BuildergetTypedJsonFormatBuilder()Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.com.google.protobuf.StructOrBuildergetTypedJsonFormatOrBuilder()Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.booleanhasFormat()Access log :ref:`format string<config_access_log_format_strings>`.booleanhasJsonFormat()Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.booleanhasTypedJsonFormat()Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()FileAccessLog.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)FileAccessLog.BuildermergeFrom(com.google.protobuf.Message other)FileAccessLog.BuildermergeFrom(FileAccessLog other)FileAccessLog.BuildermergeJsonFormat(com.google.protobuf.Struct value)Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.FileAccessLog.BuildermergeTypedJsonFormat(com.google.protobuf.Struct value)Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.FileAccessLog.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)FileAccessLog.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)FileAccessLog.BuildersetFormat(String value)Access log :ref:`format string<config_access_log_format_strings>`.FileAccessLog.BuildersetFormatBytes(com.google.protobuf.ByteString value)Access log :ref:`format string<config_access_log_format_strings>`.FileAccessLog.BuildersetJsonFormat(com.google.protobuf.Struct value)Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.FileAccessLog.BuildersetJsonFormat(com.google.protobuf.Struct.Builder builderForValue)Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.FileAccessLog.BuildersetPath(String value)A path to a local file to which to write the access log entries.FileAccessLog.BuildersetPathBytes(com.google.protobuf.ByteString value)A path to a local file to which to write the access log entries.FileAccessLog.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)FileAccessLog.BuildersetTypedJsonFormat(com.google.protobuf.Struct value)Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.FileAccessLog.BuildersetTypedJsonFormat(com.google.protobuf.Struct.Builder builderForValue)Access log :ref:`format dictionary<config_access_log_format_dictionaries>`.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, 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<FileAccessLog.Builder>
-
clear
public 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
public FileAccessLog getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public FileAccessLog build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public FileAccessLog buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public FileAccessLog.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
public FileAccessLog.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FileAccessLog.Builder>
-
clearOneof
public FileAccessLog.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public FileAccessLog.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FileAccessLog.Builder>
-
mergeFrom
public FileAccessLog.Builder mergeFrom(FileAccessLog other)
-
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
public FileAccessLog.AccessLogFormatCase getAccessLogFormatCase()
- Specified by:
getAccessLogFormatCasein interfaceFileAccessLogOrBuilder
-
clearAccessLogFormat
public FileAccessLog.Builder clearAccessLogFormat()
-
getPath
public String 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
public FileAccessLog.Builder setPath(String value)
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
public FileAccessLog.Builder 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
public FileAccessLog.Builder setPathBytes(com.google.protobuf.ByteString value)
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
public String 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
public FileAccessLog.Builder setFormat(String value)
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
public FileAccessLog.Builder 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
public FileAccessLog.Builder setFormatBytes(com.google.protobuf.ByteString value)
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
public FileAccessLog.Builder setJsonFormat(com.google.protobuf.Struct value)
Access log :ref:`format dictionary<config_access_log_format_dictionaries>`. All values are rendered as strings.
.google.protobuf.Struct json_format = 3;
-
setJsonFormat
public FileAccessLog.Builder setJsonFormat(com.google.protobuf.Struct.Builder builderForValue)
Access log :ref:`format dictionary<config_access_log_format_dictionaries>`. All values are rendered as strings.
.google.protobuf.Struct json_format = 3;
-
mergeJsonFormat
public FileAccessLog.Builder mergeJsonFormat(com.google.protobuf.Struct value)
Access log :ref:`format dictionary<config_access_log_format_dictionaries>`. All values are rendered as strings.
.google.protobuf.Struct json_format = 3;
-
clearJsonFormat
public FileAccessLog.Builder 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
public FileAccessLog.Builder setTypedJsonFormat(com.google.protobuf.Struct value)
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
public FileAccessLog.Builder setTypedJsonFormat(com.google.protobuf.Struct.Builder builderForValue)
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
public FileAccessLog.Builder mergeTypedJsonFormat(com.google.protobuf.Struct value)
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
public FileAccessLog.Builder 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>
-
-