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/data/tap/v3/wrapper.proto
package io.envoyproxy.envoy.data.tap.v3;
/**
*
* Wrapper for all fully buffered and streamed tap traces that Envoy emits. This is required for
* sending traces over gRPC APIs or more easily persisting binary messages to files.
*
*
* Protobuf type {@code envoy.data.tap.v3.TraceWrapper}
*/
public final class TraceWrapper extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.tap.v3.TraceWrapper)
TraceWrapperOrBuilder {
private static final long serialVersionUID = 0L;
// Use TraceWrapper.newBuilder() to construct.
private TraceWrapper(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TraceWrapper() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TraceWrapper();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TraceWrapper(
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 10: {
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Builder subBuilder = null;
if (traceCase_ == 1) {
subBuilder = ((io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace) trace_).toBuilder();
}
trace_ =
input.readMessage(io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace) trace_);
trace_ = subBuilder.buildPartial();
}
traceCase_ = 1;
break;
}
case 18: {
io.envoyproxy.envoy.data.tap.v3.HttpStreamedTraceSegment.Builder subBuilder = null;
if (traceCase_ == 2) {
subBuilder = ((io.envoyproxy.envoy.data.tap.v3.HttpStreamedTraceSegment) trace_).toBuilder();
}
trace_ =
input.readMessage(io.envoyproxy.envoy.data.tap.v3.HttpStreamedTraceSegment.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.data.tap.v3.HttpStreamedTraceSegment) trace_);
trace_ = subBuilder.buildPartial();
}
traceCase_ = 2;
break;
}
case 26: {
io.envoyproxy.envoy.data.tap.v3.SocketBufferedTrace.Builder subBuilder = null;
if (traceCase_ == 3) {
subBuilder = ((io.envoyproxy.envoy.data.tap.v3.SocketBufferedTrace) trace_).toBuilder();
}
trace_ =
input.readMessage(io.envoyproxy.envoy.data.tap.v3.SocketBufferedTrace.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.data.tap.v3.SocketBufferedTrace) trace_);
trace_ = subBuilder.buildPartial();
}
traceCase_ = 3;
break;
}
case 34: {
io.envoyproxy.envoy.data.tap.v3.SocketStreamedTraceSegment.Builder subBuilder = null;
if (traceCase_ == 4) {
subBuilder = ((io.envoyproxy.envoy.data.tap.v3.SocketStreamedTraceSegment) trace_).toBuilder();
}
trace_ =
input.readMessage(io.envoyproxy.envoy.data.tap.v3.SocketStreamedTraceSegment.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.data.tap.v3.SocketStreamedTraceSegment) trace_);
trace_ = subBuilder.buildPartial();
}
traceCase_ = 4;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.tap.v3.WrapperProto.internal_static_envoy_data_tap_v3_TraceWrapper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v3.WrapperProto.internal_static_envoy_data_tap_v3_TraceWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3.TraceWrapper.class, io.envoyproxy.envoy.data.tap.v3.TraceWrapper.Builder.class);
}
private int traceCase_ = 0;
private java.lang.Object trace_;
public enum TraceCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
HTTP_BUFFERED_TRACE(1),
HTTP_STREAMED_TRACE_SEGMENT(2),
SOCKET_BUFFERED_TRACE(3),
SOCKET_STREAMED_TRACE_SEGMENT(4),
TRACE_NOT_SET(0);
private final int value;
private TraceCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TraceCase valueOf(int value) {
return forNumber(value);
}
public static TraceCase forNumber(int value) {
switch (value) {
case 1: return HTTP_BUFFERED_TRACE;
case 2: return HTTP_STREAMED_TRACE_SEGMENT;
case 3: return SOCKET_BUFFERED_TRACE;
case 4: return SOCKET_STREAMED_TRACE_SEGMENT;
case 0: return TRACE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public TraceCase
getTraceCase() {
return TraceCase.forNumber(
traceCase_);
}
public static final int HTTP_BUFFERED_TRACE_FIELD_NUMBER = 1;
/**
*
* An HTTP buffered tap trace.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace http_buffered_trace = 1;
* @return Whether the httpBufferedTrace field is set.
*/
@java.lang.Override
public boolean hasHttpBufferedTrace() {
return traceCase_ == 1;
}
/**
*
* An HTTP buffered tap trace.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace http_buffered_trace = 1;
* @return The httpBufferedTrace.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace getHttpBufferedTrace() {
if (traceCase_ == 1) {
return (io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace) trace_;
}
return io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.getDefaultInstance();
}
/**
*
* An HTTP buffered tap trace.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace http_buffered_trace = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.HttpBufferedTraceOrBuilder getHttpBufferedTraceOrBuilder() {
if (traceCase_ == 1) {
return (io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace) trace_;
}
return io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.getDefaultInstance();
}
public static final int HTTP_STREAMED_TRACE_SEGMENT_FIELD_NUMBER = 2;
/**
*
* An HTTP streamed tap trace segment.
*
*
* .envoy.data.tap.v3.HttpStreamedTraceSegment http_streamed_trace_segment = 2;
* @return Whether the httpStreamedTraceSegment field is set.
*/
@java.lang.Override
public boolean hasHttpStreamedTraceSegment() {
return traceCase_ == 2;
}
/**
*
* An HTTP streamed tap trace segment.
*
*
* .envoy.data.tap.v3.HttpStreamedTraceSegment http_streamed_trace_segment = 2;
* @return The httpStreamedTraceSegment.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.HttpStreamedTraceSegment getHttpStreamedTraceSegment() {
if (traceCase_ == 2) {
return (io.envoyproxy.envoy.data.tap.v3.HttpStreamedTraceSegment) trace_;
}
return io.envoyproxy.envoy.data.tap.v3.HttpStreamedTraceSegment.getDefaultInstance();
}
/**
*
* An HTTP streamed tap trace segment.
*
*
* .envoy.data.tap.v3.HttpStreamedTraceSegment http_streamed_trace_segment = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.HttpStreamedTraceSegmentOrBuilder getHttpStreamedTraceSegmentOrBuilder() {
if (traceCase_ == 2) {
return (io.envoyproxy.envoy.data.tap.v3.HttpStreamedTraceSegment) trace_;
}
return io.envoyproxy.envoy.data.tap.v3.HttpStreamedTraceSegment.getDefaultInstance();
}
public static final int SOCKET_BUFFERED_TRACE_FIELD_NUMBER = 3;
/**
*
* A socket buffered tap trace.
*
*
* .envoy.data.tap.v3.SocketBufferedTrace socket_buffered_trace = 3;
* @return Whether the socketBufferedTrace field is set.
*/
@java.lang.Override
public boolean hasSocketBufferedTrace() {
return traceCase_ == 3;
}
/**
*
* A socket buffered tap trace.
*
*
* .envoy.data.tap.v3.SocketBufferedTrace socket_buffered_trace = 3;
* @return The socketBufferedTrace.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.SocketBufferedTrace getSocketBufferedTrace() {
if (traceCase_ == 3) {
return (io.envoyproxy.envoy.data.tap.v3.SocketBufferedTrace) trace_;
}
return io.envoyproxy.envoy.data.tap.v3.SocketBufferedTrace.getDefaultInstance();
}
/**
*
* A socket buffered tap trace.
*
*
* .envoy.data.tap.v3.SocketBufferedTrace socket_buffered_trace = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.SocketBufferedTraceOrBuilder getSocketBufferedTraceOrBuilder() {
if (traceCase_ == 3) {
return (io.envoyproxy.envoy.data.tap.v3.SocketBufferedTrace) trace_;
}
return io.envoyproxy.envoy.data.tap.v3.SocketBufferedTrace.getDefaultInstance();
}
public static final int SOCKET_STREAMED_TRACE_SEGMENT_FIELD_NUMBER = 4;
/**
*
* A socket streamed tap trace segment.
*
*
* .envoy.data.tap.v3.SocketStreamedTraceSegment socket_streamed_trace_segment = 4;
* @return Whether the socketStreamedTraceSegment field is set.
*/
@java.lang.Override
public boolean hasSocketStreamedTraceSegment() {
return traceCase_ == 4;
}
/**
*
* A socket streamed tap trace segment.
*
*
* .envoy.data.tap.v3.SocketStreamedTraceSegment socket_streamed_trace_segment = 4;
* @return The socketStreamedTraceSegment.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.SocketStreamedTraceSegment getSocketStreamedTraceSegment() {
if (traceCase_ == 4) {
return (io.envoyproxy.envoy.data.tap.v3.SocketStreamedTraceSegment) trace_;
}
return io.envoyproxy.envoy.data.tap.v3.SocketStreamedTraceSegment.getDefaultInstance();
}
/**
*
* A socket streamed tap trace segment.
*
*
* .envoy.data.tap.v3.SocketStreamedTraceSegment socket_streamed_trace_segment = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.SocketStreamedTraceSegmentOrBuilder getSocketStreamedTraceSegmentOrBuilder() {
if (traceCase_ == 4) {
return (io.envoyproxy.envoy.data.tap.v3.SocketStreamedTraceSegment) trace_;
}
return io.envoyproxy.envoy.data.tap.v3.SocketStreamedTraceSegment.getDefaultInstance();
}
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 {
if (traceCase_ == 1) {
output.writeMessage(1, (io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace) trace_);
}
if (traceCase_ == 2) {
output.writeMessage(2, (io.envoyproxy.envoy.data.tap.v3.HttpStreamedTraceSegment) trace_);
}
if (traceCase_ == 3) {
output.writeMessage(3, (io.envoyproxy.envoy.data.tap.v3.SocketBufferedTrace) trace_);
}
if (traceCase_ == 4) {
output.writeMessage(4, (io.envoyproxy.envoy.data.tap.v3.SocketStreamedTraceSegment) trace_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (traceCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace) trace_);
}
if (traceCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.envoyproxy.envoy.data.tap.v3.HttpStreamedTraceSegment) trace_);
}
if (traceCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.envoyproxy.envoy.data.tap.v3.SocketBufferedTrace) trace_);
}
if (traceCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.envoyproxy.envoy.data.tap.v3.SocketStreamedTraceSegment) trace_);
}
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.data.tap.v3.TraceWrapper)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.tap.v3.TraceWrapper other = (io.envoyproxy.envoy.data.tap.v3.TraceWrapper) obj;
if (!getTraceCase().equals(other.getTraceCase())) return false;
switch (traceCase_) {
case 1:
if (!getHttpBufferedTrace()
.equals(other.getHttpBufferedTrace())) return false;
break;
case 2:
if (!getHttpStreamedTraceSegment()
.equals(other.getHttpStreamedTraceSegment())) return false;
break;
case 3:
if (!getSocketBufferedTrace()
.equals(other.getSocketBufferedTrace())) return false;
break;
case 4:
if (!getSocketStreamedTraceSegment()
.equals(other.getSocketStreamedTraceSegment())) return false;
break;
case 0:
default:
}
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();
switch (traceCase_) {
case 1:
hash = (37 * hash) + HTTP_BUFFERED_TRACE_FIELD_NUMBER;
hash = (53 * hash) + getHttpBufferedTrace().hashCode();
break;
case 2:
hash = (37 * hash) + HTTP_STREAMED_TRACE_SEGMENT_FIELD_NUMBER;
hash = (53 * hash) + getHttpStreamedTraceSegment().hashCode();
break;
case 3:
hash = (37 * hash) + SOCKET_BUFFERED_TRACE_FIELD_NUMBER;
hash = (53 * hash) + getSocketBufferedTrace().hashCode();
break;
case 4:
hash = (37 * hash) + SOCKET_STREAMED_TRACE_SEGMENT_FIELD_NUMBER;
hash = (53 * hash) + getSocketStreamedTraceSegment().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.tap.v3.TraceWrapper parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3.TraceWrapper 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.data.tap.v3.TraceWrapper parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3.TraceWrapper 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.data.tap.v3.TraceWrapper parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3.TraceWrapper parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.tap.v3.TraceWrapper parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.tap.v3.TraceWrapper 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.data.tap.v3.TraceWrapper parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.tap.v3.TraceWrapper 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.data.tap.v3.TraceWrapper parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.tap.v3.TraceWrapper 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.data.tap.v3.TraceWrapper 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;
}
/**
*
* Wrapper for all fully buffered and streamed tap traces that Envoy emits. This is required for
* sending traces over gRPC APIs or more easily persisting binary messages to files.
*
*
* Protobuf type {@code envoy.data.tap.v3.TraceWrapper}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.tap.v3.TraceWrapper)
io.envoyproxy.envoy.data.tap.v3.TraceWrapperOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.tap.v3.WrapperProto.internal_static_envoy_data_tap_v3_TraceWrapper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v3.WrapperProto.internal_static_envoy_data_tap_v3_TraceWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3.TraceWrapper.class, io.envoyproxy.envoy.data.tap.v3.TraceWrapper.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.tap.v3.TraceWrapper.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();
traceCase_ = 0;
trace_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.data.tap.v3.WrapperProto.internal_static_envoy_data_tap_v3_TraceWrapper_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.TraceWrapper getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.tap.v3.TraceWrapper.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.TraceWrapper build() {
io.envoyproxy.envoy.data.tap.v3.TraceWrapper result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.TraceWrapper buildPartial() {
io.envoyproxy.envoy.data.tap.v3.TraceWrapper result = new io.envoyproxy.envoy.data.tap.v3.TraceWrapper(this);
if (traceCase_ == 1) {
if (httpBufferedTraceBuilder_ == null) {
result.trace_ = trace_;
} else {
result.trace_ = httpBufferedTraceBuilder_.build();
}
}
if (traceCase_ == 2) {
if (httpStreamedTraceSegmentBuilder_ == null) {
result.trace_ = trace_;
} else {
result.trace_ = httpStreamedTraceSegmentBuilder_.build();
}
}
if (traceCase_ == 3) {
if (socketBufferedTraceBuilder_ == null) {
result.trace_ = trace_;
} else {
result.trace_ = socketBufferedTraceBuilder_.build();
}
}
if (traceCase_ == 4) {
if (socketStreamedTraceSegmentBuilder_ == null) {
result.trace_ = trace_;
} else {
result.trace_ = socketStreamedTraceSegmentBuilder_.build();
}
}
result.traceCase_ = traceCase_;
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.data.tap.v3.TraceWrapper) {
return mergeFrom((io.envoyproxy.envoy.data.tap.v3.TraceWrapper)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.tap.v3.TraceWrapper other) {
if (other == io.envoyproxy.envoy.data.tap.v3.TraceWrapper.getDefaultInstance()) return this;
switch (other.getTraceCase()) {
case HTTP_BUFFERED_TRACE: {
mergeHttpBufferedTrace(other.getHttpBufferedTrace());
break;
}
case HTTP_STREAMED_TRACE_SEGMENT: {
mergeHttpStreamedTraceSegment(other.getHttpStreamedTraceSegment());
break;
}
case SOCKET_BUFFERED_TRACE: {
mergeSocketBufferedTrace(other.getSocketBufferedTrace());
break;
}
case SOCKET_STREAMED_TRACE_SEGMENT: {
mergeSocketStreamedTraceSegment(other.getSocketStreamedTraceSegment());
break;
}
case TRACE_NOT_SET: {
break;
}
}
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.data.tap.v3.TraceWrapper parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.tap.v3.TraceWrapper) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int traceCase_ = 0;
private java.lang.Object trace_;
public TraceCase
getTraceCase() {
return TraceCase.forNumber(
traceCase_);
}
public Builder clearTrace() {
traceCase_ = 0;
trace_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace, io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Builder, io.envoyproxy.envoy.data.tap.v3.HttpBufferedTraceOrBuilder> httpBufferedTraceBuilder_;
/**
*
* An HTTP buffered tap trace.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace http_buffered_trace = 1;
* @return Whether the httpBufferedTrace field is set.
*/
@java.lang.Override
public boolean hasHttpBufferedTrace() {
return traceCase_ == 1;
}
/**
*
* An HTTP buffered tap trace.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace http_buffered_trace = 1;
* @return The httpBufferedTrace.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace getHttpBufferedTrace() {
if (httpBufferedTraceBuilder_ == null) {
if (traceCase_ == 1) {
return (io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace) trace_;
}
return io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.getDefaultInstance();
} else {
if (traceCase_ == 1) {
return httpBufferedTraceBuilder_.getMessage();
}
return io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.getDefaultInstance();
}
}
/**
*