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/v3alpha/common.proto
package io.envoyproxy.envoy.service.tap.v3alpha;
/**
*
* Tap output sink configuration.
*
*
* Protobuf type {@code envoy.service.tap.v3alpha.OutputSink}
*/
public final class OutputSink extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.tap.v3alpha.OutputSink)
OutputSinkOrBuilder {
private static final long serialVersionUID = 0L;
// Use OutputSink.newBuilder() to construct.
private OutputSink(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OutputSink() {
format_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OutputSink();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OutputSink(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 8: {
int rawValue = input.readEnum();
format_ = rawValue;
break;
}
case 18: {
io.envoyproxy.envoy.service.tap.v3alpha.StreamingAdminSink.Builder subBuilder = null;
if (outputSinkTypeCase_ == 2) {
subBuilder = ((io.envoyproxy.envoy.service.tap.v3alpha.StreamingAdminSink) outputSinkType_).toBuilder();
}
outputSinkType_ =
input.readMessage(io.envoyproxy.envoy.service.tap.v3alpha.StreamingAdminSink.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.service.tap.v3alpha.StreamingAdminSink) outputSinkType_);
outputSinkType_ = subBuilder.buildPartial();
}
outputSinkTypeCase_ = 2;
break;
}
case 26: {
io.envoyproxy.envoy.service.tap.v3alpha.FilePerTapSink.Builder subBuilder = null;
if (outputSinkTypeCase_ == 3) {
subBuilder = ((io.envoyproxy.envoy.service.tap.v3alpha.FilePerTapSink) outputSinkType_).toBuilder();
}
outputSinkType_ =
input.readMessage(io.envoyproxy.envoy.service.tap.v3alpha.FilePerTapSink.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.service.tap.v3alpha.FilePerTapSink) outputSinkType_);
outputSinkType_ = subBuilder.buildPartial();
}
outputSinkTypeCase_ = 3;
break;
}
case 34: {
io.envoyproxy.envoy.service.tap.v3alpha.StreamingGrpcSink.Builder subBuilder = null;
if (outputSinkTypeCase_ == 4) {
subBuilder = ((io.envoyproxy.envoy.service.tap.v3alpha.StreamingGrpcSink) outputSinkType_).toBuilder();
}
outputSinkType_ =
input.readMessage(io.envoyproxy.envoy.service.tap.v3alpha.StreamingGrpcSink.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.service.tap.v3alpha.StreamingGrpcSink) outputSinkType_);
outputSinkType_ = subBuilder.buildPartial();
}
outputSinkTypeCase_ = 4;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.tap.v3alpha.CommonProto.internal_static_envoy_service_tap_v3alpha_OutputSink_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.tap.v3alpha.CommonProto.internal_static_envoy_service_tap_v3alpha_OutputSink_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.tap.v3alpha.OutputSink.class, io.envoyproxy.envoy.service.tap.v3alpha.OutputSink.Builder.class);
}
/**
*
* Output format. All output is in the form of one or more :ref:`TraceWrapper
* <envoy_api_msg_data.tap.v3alpha.TraceWrapper>` messages. This enumeration indicates
* how those messages are written. Note that not all sinks support all output formats. See
* individual sink documentation for more information.
*
*
* Protobuf enum {@code envoy.service.tap.v3alpha.OutputSink.Format}
*/
public enum Format
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Each message will be written as JSON. Any :ref:`body <envoy_api_msg_data.tap.v3alpha.Body>`
* data will be present in the :ref:`as_bytes
* <envoy_api_field_data.tap.v3alpha.Body.as_bytes>` field. This means that body data will be
* base64 encoded as per the `proto3 JSON mappings
* <https://developers.google.com/protocol-buffers/docs/proto3#json>`_.
*
* Each message will be written as JSON. Any :ref:`body <envoy_api_msg_data.tap.v3alpha.Body>`
* data will be present in the :ref:`as_string
* <envoy_api_field_data.tap.v3alpha.Body.as_string>` field. This means that body data will be
* string encoded as per the `proto3 JSON mappings
* <https://developers.google.com/protocol-buffers/docs/proto3#json>`_. This format type is
* useful when it is known that that body is human readable (e.g., JSON over HTTP) and the
* user wishes to view it directly without being forced to base64 decode the body.
*
* Binary proto format. Note that binary proto is not self-delimiting. If a sink writes
* multiple binary messages without any length information the data stream will not be
* useful. However, for certain sinks that are self-delimiting (e.g., one message per file)
* this output format makes consumption simpler.
*
*
* PROTO_BINARY = 2;
*/
PROTO_BINARY(2),
/**
*
* Messages are written as a sequence tuples, where each tuple is the message length encoded
* as a `protobuf 32-bit varint
* <https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.io.coded_stream>`_
* followed by the binary message. The messages can be read back using the language specific
* protobuf coded stream implementation to obtain the message length and the message.
*
* Each message will be written as JSON. Any :ref:`body <envoy_api_msg_data.tap.v3alpha.Body>`
* data will be present in the :ref:`as_bytes
* <envoy_api_field_data.tap.v3alpha.Body.as_bytes>` field. This means that body data will be
* base64 encoded as per the `proto3 JSON mappings
* <https://developers.google.com/protocol-buffers/docs/proto3#json>`_.
*
*
* JSON_BODY_AS_BYTES = 0;
*/
public static final int JSON_BODY_AS_BYTES_VALUE = 0;
/**
*
* Each message will be written as JSON. Any :ref:`body <envoy_api_msg_data.tap.v3alpha.Body>`
* data will be present in the :ref:`as_string
* <envoy_api_field_data.tap.v3alpha.Body.as_string>` field. This means that body data will be
* string encoded as per the `proto3 JSON mappings
* <https://developers.google.com/protocol-buffers/docs/proto3#json>`_. This format type is
* useful when it is known that that body is human readable (e.g., JSON over HTTP) and the
* user wishes to view it directly without being forced to base64 decode the body.
*
*
* JSON_BODY_AS_STRING = 1;
*/
public static final int JSON_BODY_AS_STRING_VALUE = 1;
/**
*
* Binary proto format. Note that binary proto is not self-delimiting. If a sink writes
* multiple binary messages without any length information the data stream will not be
* useful. However, for certain sinks that are self-delimiting (e.g., one message per file)
* this output format makes consumption simpler.
*
*
* PROTO_BINARY = 2;
*/
public static final int PROTO_BINARY_VALUE = 2;
/**
*
* Messages are written as a sequence tuples, where each tuple is the message length encoded
* as a `protobuf 32-bit varint
* <https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.io.coded_stream>`_
* followed by the binary message. The messages can be read back using the language specific
* protobuf coded stream implementation to obtain the message length and the message.
*
*
* PROTO_BINARY_LENGTH_DELIMITED = 3;
*/
public static final int PROTO_BINARY_LENGTH_DELIMITED_VALUE = 3;
/**
*
* Text proto format.
*
*
* PROTO_TEXT = 4;
*/
public static final int PROTO_TEXT_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Format valueOf(int value) {
return forNumber(value);
}
public static Format forNumber(int value) {
switch (value) {
case 0: return JSON_BODY_AS_BYTES;
case 1: return JSON_BODY_AS_STRING;
case 2: return PROTO_BINARY;
case 3: return PROTO_BINARY_LENGTH_DELIMITED;
case 4: return PROTO_TEXT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Format> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Format findValueByNumber(int number) {
return Format.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.envoyproxy.envoy.service.tap.v3alpha.OutputSink.getDescriptor().getEnumTypes().get(0);
}
private static final Format[] VALUES = values();
public static Format valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Format(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:envoy.service.tap.v3alpha.OutputSink.Format)
}
private int outputSinkTypeCase_ = 0;
private java.lang.Object outputSinkType_;
public enum OutputSinkTypeCase
implements com.google.protobuf.Internal.EnumLite {
STREAMING_ADMIN(2),
FILE_PER_TAP(3),
STREAMING_GRPC(4),
OUTPUTSINKTYPE_NOT_SET(0);
private final int value;
private OutputSinkTypeCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static OutputSinkTypeCase valueOf(int value) {
return forNumber(value);
}
public static OutputSinkTypeCase forNumber(int value) {
switch (value) {
case 2: return STREAMING_ADMIN;
case 3: return FILE_PER_TAP;
case 4: return STREAMING_GRPC;
case 0: return OUTPUTSINKTYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public OutputSinkTypeCase
getOutputSinkTypeCase() {
return OutputSinkTypeCase.forNumber(
outputSinkTypeCase_);
}
public static final int FORMAT_FIELD_NUMBER = 1;
private int format_;
/**
*
* Sink output format.
*
*
* .envoy.service.tap.v3alpha.OutputSink.Format format = 1 [(.validate.rules) = { ... }
*/
public int getFormatValue() {
return format_;
}
/**
*
* Sink output format.
*
*
* .envoy.service.tap.v3alpha.OutputSink.Format format = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.service.tap.v3alpha.OutputSink.Format getFormat() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.service.tap.v3alpha.OutputSink.Format result = io.envoyproxy.envoy.service.tap.v3alpha.OutputSink.Format.valueOf(format_);
return result == null ? io.envoyproxy.envoy.service.tap.v3alpha.OutputSink.Format.UNRECOGNIZED : result;
}
public static final int STREAMING_ADMIN_FIELD_NUMBER = 2;
/**
*
* Tap output will be streamed out the :http:post:`/tap` admin endpoint.
* .. attention::
* It is only allowed to specify the streaming admin output sink if the tap is being
* configured from the :http:post:`/tap` admin endpoint. Thus, if an extension has
* been configured to receive tap configuration from some other source (e.g., static
* file, XDS, etc.) configuring the streaming admin output type will fail.
*
* Tap output will be streamed out the :http:post:`/tap` admin endpoint.
* .. attention::
* It is only allowed to specify the streaming admin output sink if the tap is being
* configured from the :http:post:`/tap` admin endpoint. Thus, if an extension has
* been configured to receive tap configuration from some other source (e.g., static
* file, XDS, etc.) configuring the streaming admin output type will fail.
*
* Tap output will be streamed out the :http:post:`/tap` admin endpoint.
* .. attention::
* It is only allowed to specify the streaming admin output sink if the tap is being
* configured from the :http:post:`/tap` admin endpoint. Thus, if an extension has
* been configured to receive tap configuration from some other source (e.g., static
* file, XDS, etc.) configuring the streaming admin output type will fail.
*
*
* .envoy.service.tap.v3alpha.StreamingAdminSink streaming_admin = 2;
*/
public io.envoyproxy.envoy.service.tap.v3alpha.StreamingAdminSinkOrBuilder getStreamingAdminOrBuilder() {
if (outputSinkTypeCase_ == 2) {
return (io.envoyproxy.envoy.service.tap.v3alpha.StreamingAdminSink) outputSinkType_;
}
return io.envoyproxy.envoy.service.tap.v3alpha.StreamingAdminSink.getDefaultInstance();
}
public static final int FILE_PER_TAP_FIELD_NUMBER = 3;
/**
*
* Tap output will be written to a file per tap sink.
*
* Tap output will be streamed out the :http:post:`/tap` admin endpoint.
* .. attention::
* It is only allowed to specify the streaming admin output sink if the tap is being
* configured from the :http:post:`/tap` admin endpoint. Thus, if an extension has
* been configured to receive tap configuration from some other source (e.g., static
* file, XDS, etc.) configuring the streaming admin output type will fail.
*
* Tap output will be streamed out the :http:post:`/tap` admin endpoint.
* .. attention::
* It is only allowed to specify the streaming admin output sink if the tap is being
* configured from the :http:post:`/tap` admin endpoint. Thus, if an extension has
* been configured to receive tap configuration from some other source (e.g., static
* file, XDS, etc.) configuring the streaming admin output type will fail.
*
* Tap output will be streamed out the :http:post:`/tap` admin endpoint.
* .. attention::
* It is only allowed to specify the streaming admin output sink if the tap is being
* configured from the :http:post:`/tap` admin endpoint. Thus, if an extension has
* been configured to receive tap configuration from some other source (e.g., static
* file, XDS, etc.) configuring the streaming admin output type will fail.
*
* Tap output will be streamed out the :http:post:`/tap` admin endpoint.
* .. attention::
* It is only allowed to specify the streaming admin output sink if the tap is being
* configured from the :http:post:`/tap` admin endpoint. Thus, if an extension has
* been configured to receive tap configuration from some other source (e.g., static
* file, XDS, etc.) configuring the streaming admin output type will fail.
*
* Tap output will be streamed out the :http:post:`/tap` admin endpoint.
* .. attention::
* It is only allowed to specify the streaming admin output sink if the tap is being
* configured from the :http:post:`/tap` admin endpoint. Thus, if an extension has
* been configured to receive tap configuration from some other source (e.g., static
* file, XDS, etc.) configuring the streaming admin output type will fail.
*
* Tap output will be streamed out the :http:post:`/tap` admin endpoint.
* .. attention::
* It is only allowed to specify the streaming admin output sink if the tap is being
* configured from the :http:post:`/tap` admin endpoint. Thus, if an extension has
* been configured to receive tap configuration from some other source (e.g., static
* file, XDS, etc.) configuring the streaming admin output type will fail.
*
* Tap output will be streamed out the :http:post:`/tap` admin endpoint.
* .. attention::
* It is only allowed to specify the streaming admin output sink if the tap is being
* configured from the :http:post:`/tap` admin endpoint. Thus, if an extension has
* been configured to receive tap configuration from some other source (e.g., static
* file, XDS, etc.) configuring the streaming admin output type will fail.
*
* Tap output will be streamed out the :http:post:`/tap` admin endpoint.
* .. attention::
* It is only allowed to specify the streaming admin output sink if the tap is being
* configured from the :http:post:`/tap` admin endpoint. Thus, if an extension has
* been configured to receive tap configuration from some other source (e.g., static
* file, XDS, etc.) configuring the streaming admin output type will fail.
*
* Tap output will be streamed out the :http:post:`/tap` admin endpoint.
* .. attention::
* It is only allowed to specify the streaming admin output sink if the tap is being
* configured from the :http:post:`/tap` admin endpoint. Thus, if an extension has
* been configured to receive tap configuration from some other source (e.g., static
* file, XDS, etc.) configuring the streaming admin output type will fail.
*