Class Router.UpstreamAccessLogOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Router.UpstreamAccessLogOptions.Builder>
com.google.protobuf.GeneratedMessage.Builder<Router.UpstreamAccessLogOptions.Builder>
io.envoyproxy.envoy.extensions.filters.http.router.v3.Router.UpstreamAccessLogOptions.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Router.UpstreamAccessLogOptionsOrBuilder
,Cloneable
- Enclosing class:
Router.UpstreamAccessLogOptions
public static final class Router.UpstreamAccessLogOptions.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Router.UpstreamAccessLogOptions.Builder>
implements Router.UpstreamAccessLogOptionsOrBuilder
Protobuf type
envoy.extensions.filters.http.router.v3.Router.UpstreamAccessLogOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private boolean
private com.google.protobuf.Duration
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
clear()
If set to true, an upstream access log will be recorded when an upstream stream is associated to an http request.The interval to flush the upstream access logs.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
If set to true, an upstream access log will be recorded when an upstream stream is associated to an http request.com.google.protobuf.Duration
The interval to flush the upstream access logs.com.google.protobuf.Duration.Builder
The interval to flush the upstream access logs.com.google.protobuf.DurationOrBuilder
The interval to flush the upstream access logs.boolean
The interval to flush the upstream access logs.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> The interval to flush the upstream access logs.final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUpstreamLogFlushInterval
(com.google.protobuf.Duration value) The interval to flush the upstream access logs.setFlushUpstreamLogOnUpstreamStream
(boolean value) If set to true, an upstream access log will be recorded when an upstream stream is associated to an http request.setUpstreamLogFlushInterval
(com.google.protobuf.Duration value) The interval to flush the upstream access logs.setUpstreamLogFlushInterval
(com.google.protobuf.Duration.Builder builderForValue) The interval to flush the upstream access logs.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
flushUpstreamLogOnUpstreamStream_
private boolean flushUpstreamLogOnUpstreamStream_ -
upstreamLogFlushInterval_
private com.google.protobuf.Duration upstreamLogFlushInterval_ -
upstreamLogFlushIntervalBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder, upstreamLogFlushIntervalBuilder_com.google.protobuf.DurationOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Router.UpstreamAccessLogOptions.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Router.UpstreamAccessLogOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Router.UpstreamAccessLogOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Router.UpstreamAccessLogOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Router.UpstreamAccessLogOptions.Builder>
-
mergeFrom
public Router.UpstreamAccessLogOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Router.UpstreamAccessLogOptions.Builder>
- Throws:
IOException
-
getFlushUpstreamLogOnUpstreamStream
public boolean getFlushUpstreamLogOnUpstreamStream()If set to true, an upstream access log will be recorded when an upstream stream is associated to an http request. Note: Each HTTP request received for an already established connection will result in an upstream access log record. This includes, for example, consecutive HTTP requests over the same connection or a request that is retried. In case a retry is applied, an upstream access log will be recorded for each retry.
bool flush_upstream_log_on_upstream_stream = 1;
- Specified by:
getFlushUpstreamLogOnUpstreamStream
in interfaceRouter.UpstreamAccessLogOptionsOrBuilder
- Returns:
- The flushUpstreamLogOnUpstreamStream.
-
setFlushUpstreamLogOnUpstreamStream
If set to true, an upstream access log will be recorded when an upstream stream is associated to an http request. Note: Each HTTP request received for an already established connection will result in an upstream access log record. This includes, for example, consecutive HTTP requests over the same connection or a request that is retried. In case a retry is applied, an upstream access log will be recorded for each retry.
bool flush_upstream_log_on_upstream_stream = 1;
- Parameters:
value
- The flushUpstreamLogOnUpstreamStream to set.- Returns:
- This builder for chaining.
-
clearFlushUpstreamLogOnUpstreamStream
If set to true, an upstream access log will be recorded when an upstream stream is associated to an http request. Note: Each HTTP request received for an already established connection will result in an upstream access log record. This includes, for example, consecutive HTTP requests over the same connection or a request that is retried. In case a retry is applied, an upstream access log will be recorded for each retry.
bool flush_upstream_log_on_upstream_stream = 1;
- Returns:
- This builder for chaining.
-
hasUpstreamLogFlushInterval
public boolean hasUpstreamLogFlushInterval()The interval to flush the upstream access logs. By default, the router will flush an upstream access log on stream close, when the HTTP request is complete. If this field is set, the router will flush access logs periodically at the specified interval. This is especially useful in the case of long-lived requests, such as CONNECT and Websockets. The interval must be at least 1 millisecond.
.google.protobuf.Duration upstream_log_flush_interval = 2 [(.validate.rules) = { ... }
- Specified by:
hasUpstreamLogFlushInterval
in interfaceRouter.UpstreamAccessLogOptionsOrBuilder
- Returns:
- Whether the upstreamLogFlushInterval field is set.
-
getUpstreamLogFlushInterval
public com.google.protobuf.Duration getUpstreamLogFlushInterval()The interval to flush the upstream access logs. By default, the router will flush an upstream access log on stream close, when the HTTP request is complete. If this field is set, the router will flush access logs periodically at the specified interval. This is especially useful in the case of long-lived requests, such as CONNECT and Websockets. The interval must be at least 1 millisecond.
.google.protobuf.Duration upstream_log_flush_interval = 2 [(.validate.rules) = { ... }
- Specified by:
getUpstreamLogFlushInterval
in interfaceRouter.UpstreamAccessLogOptionsOrBuilder
- Returns:
- The upstreamLogFlushInterval.
-
setUpstreamLogFlushInterval
public Router.UpstreamAccessLogOptions.Builder setUpstreamLogFlushInterval(com.google.protobuf.Duration value) The interval to flush the upstream access logs. By default, the router will flush an upstream access log on stream close, when the HTTP request is complete. If this field is set, the router will flush access logs periodically at the specified interval. This is especially useful in the case of long-lived requests, such as CONNECT and Websockets. The interval must be at least 1 millisecond.
.google.protobuf.Duration upstream_log_flush_interval = 2 [(.validate.rules) = { ... }
-
setUpstreamLogFlushInterval
public Router.UpstreamAccessLogOptions.Builder setUpstreamLogFlushInterval(com.google.protobuf.Duration.Builder builderForValue) The interval to flush the upstream access logs. By default, the router will flush an upstream access log on stream close, when the HTTP request is complete. If this field is set, the router will flush access logs periodically at the specified interval. This is especially useful in the case of long-lived requests, such as CONNECT and Websockets. The interval must be at least 1 millisecond.
.google.protobuf.Duration upstream_log_flush_interval = 2 [(.validate.rules) = { ... }
-
mergeUpstreamLogFlushInterval
public Router.UpstreamAccessLogOptions.Builder mergeUpstreamLogFlushInterval(com.google.protobuf.Duration value) The interval to flush the upstream access logs. By default, the router will flush an upstream access log on stream close, when the HTTP request is complete. If this field is set, the router will flush access logs periodically at the specified interval. This is especially useful in the case of long-lived requests, such as CONNECT and Websockets. The interval must be at least 1 millisecond.
.google.protobuf.Duration upstream_log_flush_interval = 2 [(.validate.rules) = { ... }
-
clearUpstreamLogFlushInterval
The interval to flush the upstream access logs. By default, the router will flush an upstream access log on stream close, when the HTTP request is complete. If this field is set, the router will flush access logs periodically at the specified interval. This is especially useful in the case of long-lived requests, such as CONNECT and Websockets. The interval must be at least 1 millisecond.
.google.protobuf.Duration upstream_log_flush_interval = 2 [(.validate.rules) = { ... }
-
getUpstreamLogFlushIntervalBuilder
public com.google.protobuf.Duration.Builder getUpstreamLogFlushIntervalBuilder()The interval to flush the upstream access logs. By default, the router will flush an upstream access log on stream close, when the HTTP request is complete. If this field is set, the router will flush access logs periodically at the specified interval. This is especially useful in the case of long-lived requests, such as CONNECT and Websockets. The interval must be at least 1 millisecond.
.google.protobuf.Duration upstream_log_flush_interval = 2 [(.validate.rules) = { ... }
-
getUpstreamLogFlushIntervalOrBuilder
public com.google.protobuf.DurationOrBuilder getUpstreamLogFlushIntervalOrBuilder()The interval to flush the upstream access logs. By default, the router will flush an upstream access log on stream close, when the HTTP request is complete. If this field is set, the router will flush access logs periodically at the specified interval. This is especially useful in the case of long-lived requests, such as CONNECT and Websockets. The interval must be at least 1 millisecond.
.google.protobuf.Duration upstream_log_flush_interval = 2 [(.validate.rules) = { ... }
- Specified by:
getUpstreamLogFlushIntervalOrBuilder
in interfaceRouter.UpstreamAccessLogOptionsOrBuilder
-
internalGetUpstreamLogFlushIntervalFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder, internalGetUpstreamLogFlushIntervalFieldBuilder()com.google.protobuf.DurationOrBuilder> The interval to flush the upstream access logs. By default, the router will flush an upstream access log on stream close, when the HTTP request is complete. If this field is set, the router will flush access logs periodically at the specified interval. This is especially useful in the case of long-lived requests, such as CONNECT and Websockets. The interval must be at least 1 millisecond.
.google.protobuf.Duration upstream_log_flush_interval = 2 [(.validate.rules) = { ... }
-