implements
// @@protoc_insertion_point(builder_implements:envoy.config.accesslog.v2.CommonGrpcAccessLogConfig)
io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.accesslog.v2.AlsProto.internal_static_envoy_config_accesslog_v2_CommonGrpcAccessLogConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.accesslog.v2.AlsProto.internal_static_envoy_config_accesslog_v2_CommonGrpcAccessLogConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig.class, io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
logName_ = "";
if (grpcServiceBuilder_ == null) {
grpcService_ = null;
} else {
grpcService_ = null;
grpcServiceBuilder_ = null;
}
if (bufferFlushIntervalBuilder_ == null) {
bufferFlushInterval_ = null;
} else {
bufferFlushInterval_ = null;
bufferFlushIntervalBuilder_ = null;
}
if (bufferSizeBytesBuilder_ == null) {
bufferSizeBytes_ = null;
} else {
bufferSizeBytes_ = null;
bufferSizeBytesBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.accesslog.v2.AlsProto.internal_static_envoy_config_accesslog_v2_CommonGrpcAccessLogConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig build() {
io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig buildPartial() {
io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig result = new io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig(this);
result.logName_ = logName_;
if (grpcServiceBuilder_ == null) {
result.grpcService_ = grpcService_;
} else {
result.grpcService_ = grpcServiceBuilder_.build();
}
if (bufferFlushIntervalBuilder_ == null) {
result.bufferFlushInterval_ = bufferFlushInterval_;
} else {
result.bufferFlushInterval_ = bufferFlushIntervalBuilder_.build();
}
if (bufferSizeBytesBuilder_ == null) {
result.bufferSizeBytes_ = bufferSizeBytes_;
} else {
result.bufferSizeBytes_ = bufferSizeBytesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig) {
return mergeFrom((io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig other) {
if (other == io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig.getDefaultInstance()) return this;
if (!other.getLogName().isEmpty()) {
logName_ = other.logName_;
onChanged();
}
if (other.hasGrpcService()) {
mergeGrpcService(other.getGrpcService());
}
if (other.hasBufferFlushInterval()) {
mergeBufferFlushInterval(other.getBufferFlushInterval());
}
if (other.hasBufferSizeBytes()) {
mergeBufferSizeBytes(other.getBufferSizeBytes());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object logName_ = "";
/**
*
* The friendly name of the access log to be returned in :ref:`StreamAccessLogsMessage.Identifier
* <envoy_api_msg_service.accesslog.v2.StreamAccessLogsMessage.Identifier>`. This allows the
* access log server to differentiate between different access logs coming from the same Envoy.
*
*
* string log_name = 1 [(.validate.rules) = { ... }
*/
public java.lang.String getLogName() {
java.lang.Object ref = logName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The friendly name of the access log to be returned in :ref:`StreamAccessLogsMessage.Identifier
* <envoy_api_msg_service.accesslog.v2.StreamAccessLogsMessage.Identifier>`. This allows the
* access log server to differentiate between different access logs coming from the same Envoy.
*
*
* string log_name = 1 [(.validate.rules) = { ... }
*/
public com.google.protobuf.ByteString
getLogNameBytes() {
java.lang.Object ref = logName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The friendly name of the access log to be returned in :ref:`StreamAccessLogsMessage.Identifier
* <envoy_api_msg_service.accesslog.v2.StreamAccessLogsMessage.Identifier>`. This allows the
* access log server to differentiate between different access logs coming from the same Envoy.
*
*
* string log_name = 1 [(.validate.rules) = { ... }
*/
public Builder setLogName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
logName_ = value;
onChanged();
return this;
}
/**
*
* The friendly name of the access log to be returned in :ref:`StreamAccessLogsMessage.Identifier
* <envoy_api_msg_service.accesslog.v2.StreamAccessLogsMessage.Identifier>`. This allows the
* access log server to differentiate between different access logs coming from the same Envoy.
*
*
* string log_name = 1 [(.validate.rules) = { ... }
*/
public Builder clearLogName() {
logName_ = getDefaultInstance().getLogName();
onChanged();
return this;
}
/**
*
* The friendly name of the access log to be returned in :ref:`StreamAccessLogsMessage.Identifier
* <envoy_api_msg_service.accesslog.v2.StreamAccessLogsMessage.Identifier>`. This allows the
* access log server to differentiate between different access logs coming from the same Envoy.
*
*
* string log_name = 1 [(.validate.rules) = { ... }
*/
public Builder setLogNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
logName_ = value;
onChanged();
return this;
}
private io.envoyproxy.envoy.api.v2.core.GrpcService grpcService_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.GrpcService, io.envoyproxy.envoy.api.v2.core.GrpcService.Builder, io.envoyproxy.envoy.api.v2.core.GrpcServiceOrBuilder> grpcServiceBuilder_;
/**
*
* The gRPC service for the access log service.
*
*
* .envoy.api.v2.core.GrpcService grpc_service = 2 [(.validate.rules) = { ... }
*/
public boolean hasGrpcService() {
return grpcServiceBuilder_ != null || grpcService_ != null;
}
/**
*
* The gRPC service for the access log service.
*
*
* .envoy.api.v2.core.GrpcService grpc_service = 2 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.api.v2.core.GrpcService getGrpcService() {
if (grpcServiceBuilder_ == null) {
return grpcService_ == null ? io.envoyproxy.envoy.api.v2.core.GrpcService.getDefaultInstance() : grpcService_;
} else {
return grpcServiceBuilder_.getMessage();
}
}
/**
*
* The gRPC service for the access log service.
*
*
* .envoy.api.v2.core.GrpcService grpc_service = 2 [(.validate.rules) = { ... }
*/
public Builder setGrpcService(io.envoyproxy.envoy.api.v2.core.GrpcService value) {
if (grpcServiceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
grpcService_ = value;
onChanged();
} else {
grpcServiceBuilder_.setMessage(value);
}
return this;
}
/**
*
* The gRPC service for the access log service.
*
*
* .envoy.api.v2.core.GrpcService grpc_service = 2 [(.validate.rules) = { ... }
*/
public Builder setGrpcService(
io.envoyproxy.envoy.api.v2.core.GrpcService.Builder builderForValue) {
if (grpcServiceBuilder_ == null) {
grpcService_ = builderForValue.build();
onChanged();
} else {
grpcServiceBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The gRPC service for the access log service.
*
*
* .envoy.api.v2.core.GrpcService grpc_service = 2 [(.validate.rules) = { ... }
*/
public Builder mergeGrpcService(io.envoyproxy.envoy.api.v2.core.GrpcService value) {
if (grpcServiceBuilder_ == null) {
if (grpcService_ != null) {
grpcService_ =
io.envoyproxy.envoy.api.v2.core.GrpcService.newBuilder(grpcService_).mergeFrom(value).buildPartial();
} else {
grpcService_ = value;
}
onChanged();
} else {
grpcServiceBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The gRPC service for the access log service.
*
*
* .envoy.api.v2.core.GrpcService grpc_service = 2 [(.validate.rules) = { ... }
*/
public Builder clearGrpcService() {
if (grpcServiceBuilder_ == null) {
grpcService_ = null;
onChanged();
} else {
grpcService_ = null;
grpcServiceBuilder_ = null;
}
return this;
}
/**
*
* The gRPC service for the access log service.
*
*
* .envoy.api.v2.core.GrpcService grpc_service = 2 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.api.v2.core.GrpcService.Builder getGrpcServiceBuilder() {
onChanged();
return getGrpcServiceFieldBuilder().getBuilder();
}
/**
*
* The gRPC service for the access log service.
*
*
* .envoy.api.v2.core.GrpcService grpc_service = 2 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.api.v2.core.GrpcServiceOrBuilder getGrpcServiceOrBuilder() {
if (grpcServiceBuilder_ != null) {
return grpcServiceBuilder_.getMessageOrBuilder();
} else {
return grpcService_ == null ?
io.envoyproxy.envoy.api.v2.core.GrpcService.getDefaultInstance() : grpcService_;
}
}
/**
*
* The gRPC service for the access log service.
*
*
* .envoy.api.v2.core.GrpcService grpc_service = 2 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.GrpcService, io.envoyproxy.envoy.api.v2.core.GrpcService.Builder, io.envoyproxy.envoy.api.v2.core.GrpcServiceOrBuilder>
getGrpcServiceFieldBuilder() {
if (grpcServiceBuilder_ == null) {
grpcServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.GrpcService, io.envoyproxy.envoy.api.v2.core.GrpcService.Builder, io.envoyproxy.envoy.api.v2.core.GrpcServiceOrBuilder>(
getGrpcService(),
getParentForChildren(),
isClean());
grpcService_ = null;
}
return grpcServiceBuilder_;
}
private com.google.protobuf.Duration bufferFlushInterval_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> bufferFlushIntervalBuilder_;
/**
*
* Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
* this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
* 1 second.
*
*
* .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... }
*/
public boolean hasBufferFlushInterval() {
return bufferFlushIntervalBuilder_ != null || bufferFlushInterval_ != null;
}
/**
*
* Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
* this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
* 1 second.
*
*
* .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... }
*/
public com.google.protobuf.Duration getBufferFlushInterval() {
if (bufferFlushIntervalBuilder_ == null) {
return bufferFlushInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : bufferFlushInterval_;
} else {
return bufferFlushIntervalBuilder_.getMessage();
}
}
/**
*
* Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
* this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
* 1 second.
*
*
* .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... }
*/
public Builder setBufferFlushInterval(com.google.protobuf.Duration value) {
if (bufferFlushIntervalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bufferFlushInterval_ = value;
onChanged();
} else {
bufferFlushIntervalBuilder_.setMessage(value);
}
return this;
}
/**
*
* Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
* this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
* 1 second.
*
*
* .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... }
*/
public Builder setBufferFlushInterval(
com.google.protobuf.Duration.Builder builderForValue) {
if (bufferFlushIntervalBuilder_ == null) {
bufferFlushInterval_ = builderForValue.build();
onChanged();
} else {
bufferFlushIntervalBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
* this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
* 1 second.
*
*
* .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... }
*/
public Builder mergeBufferFlushInterval(com.google.protobuf.Duration value) {
if (bufferFlushIntervalBuilder_ == null) {
if (bufferFlushInterval_ != null) {
bufferFlushInterval_ =
com.google.protobuf.Duration.newBuilder(bufferFlushInterval_).mergeFrom(value).buildPartial();
} else {
bufferFlushInterval_ = value;
}
onChanged();
} else {
bufferFlushIntervalBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
* this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
* 1 second.
*
*
* .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... }
*/
public Builder clearBufferFlushInterval() {
if (bufferFlushIntervalBuilder_ == null) {
bufferFlushInterval_ = null;
onChanged();
} else {
bufferFlushInterval_ = null;
bufferFlushIntervalBuilder_ = null;
}
return this;
}
/**
*
* Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
* this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
* 1 second.
*
*
* .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... }
*/
public com.google.protobuf.Duration.Builder getBufferFlushIntervalBuilder() {
onChanged();
return getBufferFlushIntervalFieldBuilder().getBuilder();
}
/**
*
* Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
* this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
* 1 second.
*
*
* .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... }
*/
public com.google.protobuf.DurationOrBuilder getBufferFlushIntervalOrBuilder() {
if (bufferFlushIntervalBuilder_ != null) {
return bufferFlushIntervalBuilder_.getMessageOrBuilder();
} else {
return bufferFlushInterval_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : bufferFlushInterval_;
}
}
/**
*
* Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
* this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
* 1 second.
*
*
* .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getBufferFlushIntervalFieldBuilder() {
if (bufferFlushIntervalBuilder_ == null) {
bufferFlushIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getBufferFlushInterval(),
getParentForChildren(),
isClean());
bufferFlushInterval_ = null;
}
return bufferFlushIntervalBuilder_;
}
private com.google.protobuf.UInt32Value bufferSizeBytes_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> bufferSizeBytesBuilder_;
/**
*
* Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
* this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
* to zero effectively disables the batching. Defaults to 16384.
*
*
* .google.protobuf.UInt32Value buffer_size_bytes = 4;
*/
public boolean hasBufferSizeBytes() {
return bufferSizeBytesBuilder_ != null || bufferSizeBytes_ != null;
}
/**
*
* Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
* this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
* to zero effectively disables the batching. Defaults to 16384.
*
*
* .google.protobuf.UInt32Value buffer_size_bytes = 4;
*/
public com.google.protobuf.UInt32Value getBufferSizeBytes() {
if (bufferSizeBytesBuilder_ == null) {
return bufferSizeBytes_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : bufferSizeBytes_;
} else {
return bufferSizeBytesBuilder_.getMessage();
}
}
/**
*
* Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
* this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
* to zero effectively disables the batching. Defaults to 16384.
*
*
* .google.protobuf.UInt32Value buffer_size_bytes = 4;
*/
public Builder setBufferSizeBytes(com.google.protobuf.UInt32Value value) {
if (bufferSizeBytesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bufferSizeBytes_ = value;
onChanged();
} else {
bufferSizeBytesBuilder_.setMessage(value);
}
return this;
}
/**
*
* Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
* this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
* to zero effectively disables the batching. Defaults to 16384.
*
*
* .google.protobuf.UInt32Value buffer_size_bytes = 4;
*/
public Builder setBufferSizeBytes(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (bufferSizeBytesBuilder_ == null) {
bufferSizeBytes_ = builderForValue.build();
onChanged();
} else {
bufferSizeBytesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
* this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
* to zero effectively disables the batching. Defaults to 16384.
*
*
* .google.protobuf.UInt32Value buffer_size_bytes = 4;
*/
public Builder mergeBufferSizeBytes(com.google.protobuf.UInt32Value value) {
if (bufferSizeBytesBuilder_ == null) {
if (bufferSizeBytes_ != null) {
bufferSizeBytes_ =
com.google.protobuf.UInt32Value.newBuilder(bufferSizeBytes_).mergeFrom(value).buildPartial();
} else {
bufferSizeBytes_ = value;
}
onChanged();
} else {
bufferSizeBytesBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
* this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
* to zero effectively disables the batching. Defaults to 16384.
*
*
* .google.protobuf.UInt32Value buffer_size_bytes = 4;
*/
public Builder clearBufferSizeBytes() {
if (bufferSizeBytesBuilder_ == null) {
bufferSizeBytes_ = null;
onChanged();
} else {
bufferSizeBytes_ = null;
bufferSizeBytesBuilder_ = null;
}
return this;
}
/**
*
* Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
* this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
* to zero effectively disables the batching. Defaults to 16384.
*
*
* .google.protobuf.UInt32Value buffer_size_bytes = 4;
*/
public com.google.protobuf.UInt32Value.Builder getBufferSizeBytesBuilder() {
onChanged();
return getBufferSizeBytesFieldBuilder().getBuilder();
}
/**
*
* Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
* this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
* to zero effectively disables the batching. Defaults to 16384.
*
*
* .google.protobuf.UInt32Value buffer_size_bytes = 4;
*/
public com.google.protobuf.UInt32ValueOrBuilder getBufferSizeBytesOrBuilder() {
if (bufferSizeBytesBuilder_ != null) {
return bufferSizeBytesBuilder_.getMessageOrBuilder();
} else {
return bufferSizeBytes_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : bufferSizeBytes_;
}
}
/**
*
* Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
* this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
* to zero effectively disables the batching. Defaults to 16384.
*
*
* .google.protobuf.UInt32Value buffer_size_bytes = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getBufferSizeBytesFieldBuilder() {
if (bufferSizeBytesBuilder_ == null) {
bufferSizeBytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getBufferSizeBytes(),
getParentForChildren(),
isClean());
bufferSizeBytes_ = null;
}
return bufferSizeBytesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.config.accesslog.v2.CommonGrpcAccessLogConfig)
}
// @@protoc_insertion_point(class_scope:envoy.config.accesslog.v2.CommonGrpcAccessLogConfig)
private static final io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig();
}
public static io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CommonGrpcAccessLogConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CommonGrpcAccessLogConfig(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}