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 sink configuration.
*
*
* Protobuf type {@code envoy.service.tap.v2alpha.OutputSink}
*/
public final class OutputSink extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.tap.v2alpha.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() {
}
@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();
}
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;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
io.envoyproxy.envoy.service.tap.v2alpha.StreamingAdminSink.Builder subBuilder = null;
if (outputSinkTypeCase_ == 1) {
subBuilder = ((io.envoyproxy.envoy.service.tap.v2alpha.StreamingAdminSink) outputSinkType_).toBuilder();
}
outputSinkType_ =
input.readMessage(io.envoyproxy.envoy.service.tap.v2alpha.StreamingAdminSink.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.service.tap.v2alpha.StreamingAdminSink) outputSinkType_);
outputSinkType_ = subBuilder.buildPartial();
}
outputSinkTypeCase_ = 1;
break;
}
case 18: {
io.envoyproxy.envoy.service.tap.v2alpha.FilePerTapSink.Builder subBuilder = null;
if (outputSinkTypeCase_ == 2) {
subBuilder = ((io.envoyproxy.envoy.service.tap.v2alpha.FilePerTapSink) outputSinkType_).toBuilder();
}
outputSinkType_ =
input.readMessage(io.envoyproxy.envoy.service.tap.v2alpha.FilePerTapSink.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.service.tap.v2alpha.FilePerTapSink) outputSinkType_);
outputSinkType_ = subBuilder.buildPartial();
}
outputSinkTypeCase_ = 2;
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.v2alpha.CommonProto.internal_static_envoy_service_tap_v2alpha_OutputSink_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.tap.v2alpha.CommonProto.internal_static_envoy_service_tap_v2alpha_OutputSink_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.class, io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.Builder.class);
}
private int outputSinkTypeCase_ = 0;
private java.lang.Object outputSinkType_;
public enum OutputSinkTypeCase
implements com.google.protobuf.Internal.EnumLite {
STREAMING_ADMIN(1),
FILE_PER_TAP(2),
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 1: return STREAMING_ADMIN;
case 2: return FILE_PER_TAP;
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 STREAMING_ADMIN_FIELD_NUMBER = 1;
/**
*
* 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.v2alpha.StreamingAdminSink streaming_admin = 1;
*/
public io.envoyproxy.envoy.service.tap.v2alpha.StreamingAdminSinkOrBuilder getStreamingAdminOrBuilder() {
if (outputSinkTypeCase_ == 1) {
return (io.envoyproxy.envoy.service.tap.v2alpha.StreamingAdminSink) outputSinkType_;
}
return io.envoyproxy.envoy.service.tap.v2alpha.StreamingAdminSink.getDefaultInstance();
}
public static final int FILE_PER_TAP_FIELD_NUMBER = 2;
/**
*
* Tap output will be written to a file per tap sink.
*
* Tap output will be written to a file per tap sink.
*
*
* .envoy.service.tap.v2alpha.FilePerTapSink file_per_tap = 2;
*/
public io.envoyproxy.envoy.service.tap.v2alpha.FilePerTapSinkOrBuilder getFilePerTapOrBuilder() {
if (outputSinkTypeCase_ == 2) {
return (io.envoyproxy.envoy.service.tap.v2alpha.FilePerTapSink) outputSinkType_;
}
return io.envoyproxy.envoy.service.tap.v2alpha.FilePerTapSink.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (outputSinkTypeCase_ == 1) {
output.writeMessage(1, (io.envoyproxy.envoy.service.tap.v2alpha.StreamingAdminSink) outputSinkType_);
}
if (outputSinkTypeCase_ == 2) {
output.writeMessage(2, (io.envoyproxy.envoy.service.tap.v2alpha.FilePerTapSink) outputSinkType_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (outputSinkTypeCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.envoyproxy.envoy.service.tap.v2alpha.StreamingAdminSink) outputSinkType_);
}
if (outputSinkTypeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.envoyproxy.envoy.service.tap.v2alpha.FilePerTapSink) outputSinkType_);
}
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.OutputSink)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.tap.v2alpha.OutputSink other = (io.envoyproxy.envoy.service.tap.v2alpha.OutputSink) obj;
boolean result = true;
result = result && getOutputSinkTypeCase().equals(
other.getOutputSinkTypeCase());
if (!result) return false;
switch (outputSinkTypeCase_) {
case 1:
result = result && getStreamingAdmin()
.equals(other.getStreamingAdmin());
break;
case 2:
result = result && getFilePerTap()
.equals(other.getFilePerTap());
break;
case 0:
default:
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (outputSinkTypeCase_) {
case 1:
hash = (37 * hash) + STREAMING_ADMIN_FIELD_NUMBER;
hash = (53 * hash) + getStreamingAdmin().hashCode();
break;
case 2:
hash = (37 * hash) + FILE_PER_TAP_FIELD_NUMBER;
hash = (53 * hash) + getFilePerTap().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputSink parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputSink 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.OutputSink parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputSink 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.OutputSink parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.OutputSink 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.OutputSink 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.OutputSink 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.OutputSink 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.OutputSink 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.OutputSink 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.OutputSink parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.service.tap.v2alpha.OutputSink prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* Tap output sink configuration.
*
*
* Protobuf type {@code envoy.service.tap.v2alpha.OutputSink}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.tap.v2alpha.OutputSink)
io.envoyproxy.envoy.service.tap.v2alpha.OutputSinkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.tap.v2alpha.CommonProto.internal_static_envoy_service_tap_v2alpha_OutputSink_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.tap.v2alpha.CommonProto.internal_static_envoy_service_tap_v2alpha_OutputSink_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.class, io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
outputSinkTypeCase_ = 0;
outputSinkType_ = null;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.service.tap.v2alpha.CommonProto.internal_static_envoy_service_tap_v2alpha_OutputSink_descriptor;
}
public io.envoyproxy.envoy.service.tap.v2alpha.OutputSink getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.getDefaultInstance();
}
public io.envoyproxy.envoy.service.tap.v2alpha.OutputSink build() {
io.envoyproxy.envoy.service.tap.v2alpha.OutputSink result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.envoy.service.tap.v2alpha.OutputSink buildPartial() {
io.envoyproxy.envoy.service.tap.v2alpha.OutputSink result = new io.envoyproxy.envoy.service.tap.v2alpha.OutputSink(this);
if (outputSinkTypeCase_ == 1) {
if (streamingAdminBuilder_ == null) {
result.outputSinkType_ = outputSinkType_;
} else {
result.outputSinkType_ = streamingAdminBuilder_.build();
}
}
if (outputSinkTypeCase_ == 2) {
if (filePerTapBuilder_ == null) {
result.outputSinkType_ = outputSinkType_;
} else {
result.outputSinkType_ = filePerTapBuilder_.build();
}
}
result.outputSinkTypeCase_ = outputSinkTypeCase_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.service.tap.v2alpha.OutputSink) {
return mergeFrom((io.envoyproxy.envoy.service.tap.v2alpha.OutputSink)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.tap.v2alpha.OutputSink other) {
if (other == io.envoyproxy.envoy.service.tap.v2alpha.OutputSink.getDefaultInstance()) return this;
switch (other.getOutputSinkTypeCase()) {
case STREAMING_ADMIN: {
mergeStreamingAdmin(other.getStreamingAdmin());
break;
}
case FILE_PER_TAP: {
mergeFilePerTap(other.getFilePerTap());
break;
}
case OUTPUTSINKTYPE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.service.tap.v2alpha.OutputSink parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.service.tap.v2alpha.OutputSink) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int outputSinkTypeCase_ = 0;
private java.lang.Object outputSinkType_;
public OutputSinkTypeCase
getOutputSinkTypeCase() {
return OutputSinkTypeCase.forNumber(
outputSinkTypeCase_);
}
public Builder clearOutputSinkType() {
outputSinkTypeCase_ = 0;
outputSinkType_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.tap.v2alpha.StreamingAdminSink, io.envoyproxy.envoy.service.tap.v2alpha.StreamingAdminSink.Builder, io.envoyproxy.envoy.service.tap.v2alpha.StreamingAdminSinkOrBuilder> streamingAdminBuilder_;
/**
*
* 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.
*