Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/service/tap/v2alpha/common.proto
package io.envoyproxy.envoy.service.tap.v2alpha;
/**
*
* Tap output configuration.
*
*
* Protobuf type {@code envoy.service.tap.v2alpha.OutputConfig}
*/
public final class OutputConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.tap.v2alpha.OutputConfig)
OutputConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use OutputConfig.newBuilder() to construct.
private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OutputConfig() {
sinks_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OutputConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OutputConfig(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
sinks_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
sinks_.add(
input.readMessage(io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.parser(), extensionRegistry));
break;
}
case 18: {
com.google.protobuf.UInt32Value.Builder subBuilder = null;
if (maxBufferedRxBytes_ != null) {
subBuilder = maxBufferedRxBytes_.toBuilder();
}
maxBufferedRxBytes_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxBufferedRxBytes_);
maxBufferedRxBytes_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.google.protobuf.UInt32Value.Builder subBuilder = null;
if (maxBufferedTxBytes_ != null) {
subBuilder = maxBufferedTxBytes_.toBuilder();
}
maxBufferedTxBytes_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxBufferedTxBytes_);
maxBufferedTxBytes_ = subBuilder.buildPartial();
}
break;
}
case 32: {
streaming_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
sinks_ = java.util.Collections.unmodifiableList(sinks_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.tap.v2alpha.CommonProto.internal_static_envoy_service_tap_v2alpha_OutputConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.tap.v2alpha.CommonProto.internal_static_envoy_service_tap_v2alpha_OutputConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig.class, io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig.Builder.class);
}
public static final int SINKS_FIELD_NUMBER = 1;
private java.util.List sinks_;
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.OutputSinkOrBuilder getSinksOrBuilder(
int index) {
return sinks_.get(index);
}
public static final int MAX_BUFFERED_RX_BYTES_FIELD_NUMBER = 2;
private com.google.protobuf.UInt32Value maxBufferedRxBytes_;
/**
*
* For buffered tapping, the maximum amount of received body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
*
* .google.protobuf.UInt32Value max_buffered_rx_bytes = 2;
* @return Whether the maxBufferedRxBytes field is set.
*/
@java.lang.Override
public boolean hasMaxBufferedRxBytes() {
return maxBufferedRxBytes_ != null;
}
/**
*
* For buffered tapping, the maximum amount of received body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
* For buffered tapping, the maximum amount of received body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
*
* .google.protobuf.UInt32Value max_buffered_rx_bytes = 2;
*/
@java.lang.Override
public com.google.protobuf.UInt32ValueOrBuilder getMaxBufferedRxBytesOrBuilder() {
return getMaxBufferedRxBytes();
}
public static final int MAX_BUFFERED_TX_BYTES_FIELD_NUMBER = 3;
private com.google.protobuf.UInt32Value maxBufferedTxBytes_;
/**
*
* For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
*
* .google.protobuf.UInt32Value max_buffered_tx_bytes = 3;
* @return Whether the maxBufferedTxBytes field is set.
*/
@java.lang.Override
public boolean hasMaxBufferedTxBytes() {
return maxBufferedTxBytes_ != null;
}
/**
*
* For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
* For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
*
* .google.protobuf.UInt32Value max_buffered_tx_bytes = 3;
*/
@java.lang.Override
public com.google.protobuf.UInt32ValueOrBuilder getMaxBufferedTxBytesOrBuilder() {
return getMaxBufferedTxBytes();
}
public static final int STREAMING_FIELD_NUMBER = 4;
private boolean streaming_;
/**
*
* Indicates whether taps produce a single buffered message per tap, or multiple streamed
* messages per tap in the emitted :ref:`TraceWrapper
* <envoy_api_msg_data.tap.v2alpha.TraceWrapper>` messages. Note that streamed tapping does not
* mean that no buffering takes place. Buffering may be required if data is processed before a
* match can be determined. See the HTTP tap filter :ref:`streaming
* <config_http_filters_tap_streaming>` documentation for more information.
*
*
* bool streaming = 4;
* @return The streaming.
*/
@java.lang.Override
public boolean getStreaming() {
return streaming_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < sinks_.size(); i++) {
output.writeMessage(1, sinks_.get(i));
}
if (maxBufferedRxBytes_ != null) {
output.writeMessage(2, getMaxBufferedRxBytes());
}
if (maxBufferedTxBytes_ != null) {
output.writeMessage(3, getMaxBufferedTxBytes());
}
if (streaming_ != false) {
output.writeBool(4, streaming_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < sinks_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, sinks_.get(i));
}
if (maxBufferedRxBytes_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMaxBufferedRxBytes());
}
if (maxBufferedTxBytes_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getMaxBufferedTxBytes());
}
if (streaming_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, streaming_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig other = (io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig) obj;
if (!getSinksList()
.equals(other.getSinksList())) return false;
if (hasMaxBufferedRxBytes() != other.hasMaxBufferedRxBytes()) return false;
if (hasMaxBufferedRxBytes()) {
if (!getMaxBufferedRxBytes()
.equals(other.getMaxBufferedRxBytes())) return false;
}
if (hasMaxBufferedTxBytes() != other.hasMaxBufferedTxBytes()) return false;
if (hasMaxBufferedTxBytes()) {
if (!getMaxBufferedTxBytes()
.equals(other.getMaxBufferedTxBytes())) return false;
}
if (getStreaming()
!= other.getStreaming()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getSinksCount() > 0) {
hash = (37 * hash) + SINKS_FIELD_NUMBER;
hash = (53 * hash) + getSinksList().hashCode();
}
if (hasMaxBufferedRxBytes()) {
hash = (37 * hash) + MAX_BUFFERED_RX_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getMaxBufferedRxBytes().hashCode();
}
if (hasMaxBufferedTxBytes()) {
hash = (37 * hash) + MAX_BUFFERED_TX_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getMaxBufferedTxBytes().hashCode();
}
hash = (37 * hash) + STREAMING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getStreaming());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public Builder setSinks(
int index, io.envoyproxy.envoy.service.tap.v2alpha.OutputSink value) {
if (sinksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSinksIsMutable();
sinks_.set(index, value);
onChanged();
} else {
sinksBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
*
* repeated .envoy.service.tap.v2alpha.OutputSink sinks = 1 [(.validate.rules) = { ... }
*/
public Builder addSinks(
int index, io.envoyproxy.envoy.service.tap.v2alpha.OutputSink value) {
if (sinksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSinksIsMutable();
sinks_.add(index, value);
onChanged();
} else {
sinksBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
* sink types are supported this constraint will be relaxed.
*
* For buffered tapping, the maximum amount of received body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
*
* .google.protobuf.UInt32Value max_buffered_rx_bytes = 2;
* @return Whether the maxBufferedRxBytes field is set.
*/
public boolean hasMaxBufferedRxBytes() {
return maxBufferedRxBytesBuilder_ != null || maxBufferedRxBytes_ != null;
}
/**
*
* For buffered tapping, the maximum amount of received body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
* For buffered tapping, the maximum amount of received body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
*
* .google.protobuf.UInt32Value max_buffered_rx_bytes = 2;
*/
public Builder setMaxBufferedRxBytes(com.google.protobuf.UInt32Value value) {
if (maxBufferedRxBytesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxBufferedRxBytes_ = value;
onChanged();
} else {
maxBufferedRxBytesBuilder_.setMessage(value);
}
return this;
}
/**
*
* For buffered tapping, the maximum amount of received body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
* For buffered tapping, the maximum amount of received body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
* For buffered tapping, the maximum amount of received body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
* For buffered tapping, the maximum amount of received body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
* For buffered tapping, the maximum amount of received body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
* For buffered tapping, the maximum amount of received body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
* For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
*
* .google.protobuf.UInt32Value max_buffered_tx_bytes = 3;
* @return Whether the maxBufferedTxBytes field is set.
*/
public boolean hasMaxBufferedTxBytes() {
return maxBufferedTxBytesBuilder_ != null || maxBufferedTxBytes_ != null;
}
/**
*
* For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
* For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
*
* .google.protobuf.UInt32Value max_buffered_tx_bytes = 3;
*/
public Builder setMaxBufferedTxBytes(com.google.protobuf.UInt32Value value) {
if (maxBufferedTxBytesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxBufferedTxBytes_ = value;
onChanged();
} else {
maxBufferedTxBytesBuilder_.setMessage(value);
}
return this;
}
/**
*
* For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
* For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
* For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
* For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
* For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
* For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
* truncation. If truncation occurs, the :ref:`truncated
* <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
* default is 1KiB.
*
* Indicates whether taps produce a single buffered message per tap, or multiple streamed
* messages per tap in the emitted :ref:`TraceWrapper
* <envoy_api_msg_data.tap.v2alpha.TraceWrapper>` messages. Note that streamed tapping does not
* mean that no buffering takes place. Buffering may be required if data is processed before a
* match can be determined. See the HTTP tap filter :ref:`streaming
* <config_http_filters_tap_streaming>` documentation for more information.
*
* Indicates whether taps produce a single buffered message per tap, or multiple streamed
* messages per tap in the emitted :ref:`TraceWrapper
* <envoy_api_msg_data.tap.v2alpha.TraceWrapper>` messages. Note that streamed tapping does not
* mean that no buffering takes place. Buffering may be required if data is processed before a
* match can be determined. See the HTTP tap filter :ref:`streaming
* <config_http_filters_tap_streaming>` documentation for more information.
*
*
* bool streaming = 4;
* @param value The streaming to set.
* @return This builder for chaining.
*/
public Builder setStreaming(boolean value) {
streaming_ = value;
onChanged();
return this;
}
/**
*
* Indicates whether taps produce a single buffered message per tap, or multiple streamed
* messages per tap in the emitted :ref:`TraceWrapper
* <envoy_api_msg_data.tap.v2alpha.TraceWrapper>` messages. Note that streamed tapping does not
* mean that no buffering takes place. Buffering may be required if data is processed before a
* match can be determined. See the HTTP tap filter :ref:`streaming
* <config_http_filters_tap_streaming>` documentation for more information.
*
*
* bool streaming = 4;
* @return This builder for chaining.
*/
public Builder clearStreaming() {
streaming_ = false;
onChanged();
return this;
}
@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.service.tap.v2alpha.OutputConfig)
}
// @@protoc_insertion_point(class_scope:envoy.service.tap.v2alpha.OutputConfig)
private static final io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig();
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OutputConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OutputConfig(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.service.tap.v2alpha.OutputConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}