All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/data/tap/v2alpha/wrapper.proto

package io.envoyproxy.envoy.data.tap.v2alpha;

/**
 * 
 * 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.v2alpha.TraceWrapper} */ public final class TraceWrapper extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.data.tap.v2alpha.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.v2alpha.HttpBufferedTrace.Builder subBuilder = null; if (traceCase_ == 1) { subBuilder = ((io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace) trace_).toBuilder(); } trace_ = input.readMessage(io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace) trace_); trace_ = subBuilder.buildPartial(); } traceCase_ = 1; break; } case 18: { io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.Builder subBuilder = null; if (traceCase_ == 2) { subBuilder = ((io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment) trace_).toBuilder(); } trace_ = input.readMessage(io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment) trace_); trace_ = subBuilder.buildPartial(); } traceCase_ = 2; break; } case 26: { io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace.Builder subBuilder = null; if (traceCase_ == 3) { subBuilder = ((io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace) trace_).toBuilder(); } trace_ = input.readMessage(io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace) trace_); trace_ = subBuilder.buildPartial(); } traceCase_ = 3; break; } case 34: { io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment.Builder subBuilder = null; if (traceCase_ == 4) { subBuilder = ((io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment) trace_).toBuilder(); } trace_ = input.readMessage(io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.WrapperProto.internal_static_envoy_data_tap_v2alpha_TraceWrapper_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.data.tap.v2alpha.WrapperProto.internal_static_envoy_data_tap_v2alpha_TraceWrapper_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper.class, io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.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.v2alpha.HttpBufferedTrace http_buffered_trace = 1; * @return The httpBufferedTrace. */ @java.lang.Override public io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace getHttpBufferedTrace() { if (traceCase_ == 1) { return (io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace) trace_; } return io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace.getDefaultInstance(); } /** *
   * An HTTP buffered tap trace.
   * 
* * .envoy.data.tap.v2alpha.HttpBufferedTrace http_buffered_trace = 1; */ @java.lang.Override public io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTraceOrBuilder getHttpBufferedTraceOrBuilder() { if (traceCase_ == 1) { return (io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace) trace_; } return io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace.getDefaultInstance(); } public static final int HTTP_STREAMED_TRACE_SEGMENT_FIELD_NUMBER = 2; /** *
   * An HTTP streamed tap trace segment.
   * 
* * .envoy.data.tap.v2alpha.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.v2alpha.HttpStreamedTraceSegment http_streamed_trace_segment = 2; * @return The httpStreamedTraceSegment. */ @java.lang.Override public io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment getHttpStreamedTraceSegment() { if (traceCase_ == 2) { return (io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment) trace_; } return io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.getDefaultInstance(); } /** *
   * An HTTP streamed tap trace segment.
   * 
* * .envoy.data.tap.v2alpha.HttpStreamedTraceSegment http_streamed_trace_segment = 2; */ @java.lang.Override public io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegmentOrBuilder getHttpStreamedTraceSegmentOrBuilder() { if (traceCase_ == 2) { return (io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment) trace_; } return io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.getDefaultInstance(); } public static final int SOCKET_BUFFERED_TRACE_FIELD_NUMBER = 3; /** *
   * A socket buffered tap trace.
   * 
* * .envoy.data.tap.v2alpha.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.v2alpha.SocketBufferedTrace socket_buffered_trace = 3; * @return The socketBufferedTrace. */ @java.lang.Override public io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace getSocketBufferedTrace() { if (traceCase_ == 3) { return (io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace) trace_; } return io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace.getDefaultInstance(); } /** *
   * A socket buffered tap trace.
   * 
* * .envoy.data.tap.v2alpha.SocketBufferedTrace socket_buffered_trace = 3; */ @java.lang.Override public io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTraceOrBuilder getSocketBufferedTraceOrBuilder() { if (traceCase_ == 3) { return (io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace) trace_; } return io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace.getDefaultInstance(); } public static final int SOCKET_STREAMED_TRACE_SEGMENT_FIELD_NUMBER = 4; /** *
   * A socket streamed tap trace segment.
   * 
* * .envoy.data.tap.v2alpha.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.v2alpha.SocketStreamedTraceSegment socket_streamed_trace_segment = 4; * @return The socketStreamedTraceSegment. */ @java.lang.Override public io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment getSocketStreamedTraceSegment() { if (traceCase_ == 4) { return (io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment) trace_; } return io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment.getDefaultInstance(); } /** *
   * A socket streamed tap trace segment.
   * 
* * .envoy.data.tap.v2alpha.SocketStreamedTraceSegment socket_streamed_trace_segment = 4; */ @java.lang.Override public io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegmentOrBuilder getSocketStreamedTraceSegmentOrBuilder() { if (traceCase_ == 4) { return (io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment) trace_; } return io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.HttpBufferedTrace) trace_); } if (traceCase_ == 2) { output.writeMessage(2, (io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment) trace_); } if (traceCase_ == 3) { output.writeMessage(3, (io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace) trace_); } if (traceCase_ == 4) { output.writeMessage(4, (io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.HttpBufferedTrace) trace_); } if (traceCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment) trace_); } if (traceCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace) trace_); } if (traceCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.TraceWrapper)) { return super.equals(obj); } io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper other = (io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.TraceWrapper parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.TraceWrapper parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.TraceWrapper parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.TraceWrapper} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.data.tap.v2alpha.TraceWrapper) io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapperOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.data.tap.v2alpha.WrapperProto.internal_static_envoy_data_tap_v2alpha_TraceWrapper_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.data.tap.v2alpha.WrapperProto.internal_static_envoy_data_tap_v2alpha_TraceWrapper_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper.class, io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper.Builder.class); } // Construct using io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.WrapperProto.internal_static_envoy_data_tap_v2alpha_TraceWrapper_descriptor; } @java.lang.Override public io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper getDefaultInstanceForType() { return io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper build() { io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper buildPartial() { io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper result = new io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.TraceWrapper) { return mergeFrom((io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper other) { if (other == io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.TraceWrapper parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.data.tap.v2alpha.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.v2alpha.HttpBufferedTrace, io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace.Builder, io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTraceOrBuilder> httpBufferedTraceBuilder_; /** *
     * An HTTP buffered tap trace.
     * 
* * .envoy.data.tap.v2alpha.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.v2alpha.HttpBufferedTrace http_buffered_trace = 1; * @return The httpBufferedTrace. */ @java.lang.Override public io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace getHttpBufferedTrace() { if (httpBufferedTraceBuilder_ == null) { if (traceCase_ == 1) { return (io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace) trace_; } return io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace.getDefaultInstance(); } else { if (traceCase_ == 1) { return httpBufferedTraceBuilder_.getMessage(); } return io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace.getDefaultInstance(); } } /** *
     * An HTTP buffered tap trace.
     * 
* * .envoy.data.tap.v2alpha.HttpBufferedTrace http_buffered_trace = 1; */ public Builder setHttpBufferedTrace(io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace value) { if (httpBufferedTraceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } trace_ = value; onChanged(); } else { httpBufferedTraceBuilder_.setMessage(value); } traceCase_ = 1; return this; } /** *
     * An HTTP buffered tap trace.
     * 
* * .envoy.data.tap.v2alpha.HttpBufferedTrace http_buffered_trace = 1; */ public Builder setHttpBufferedTrace( io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace.Builder builderForValue) { if (httpBufferedTraceBuilder_ == null) { trace_ = builderForValue.build(); onChanged(); } else { httpBufferedTraceBuilder_.setMessage(builderForValue.build()); } traceCase_ = 1; return this; } /** *
     * An HTTP buffered tap trace.
     * 
* * .envoy.data.tap.v2alpha.HttpBufferedTrace http_buffered_trace = 1; */ public Builder mergeHttpBufferedTrace(io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace value) { if (httpBufferedTraceBuilder_ == null) { if (traceCase_ == 1 && trace_ != io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace.getDefaultInstance()) { trace_ = io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace.newBuilder((io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace) trace_) .mergeFrom(value).buildPartial(); } else { trace_ = value; } onChanged(); } else { if (traceCase_ == 1) { httpBufferedTraceBuilder_.mergeFrom(value); } else { httpBufferedTraceBuilder_.setMessage(value); } } traceCase_ = 1; return this; } /** *
     * An HTTP buffered tap trace.
     * 
* * .envoy.data.tap.v2alpha.HttpBufferedTrace http_buffered_trace = 1; */ public Builder clearHttpBufferedTrace() { if (httpBufferedTraceBuilder_ == null) { if (traceCase_ == 1) { traceCase_ = 0; trace_ = null; onChanged(); } } else { if (traceCase_ == 1) { traceCase_ = 0; trace_ = null; } httpBufferedTraceBuilder_.clear(); } return this; } /** *
     * An HTTP buffered tap trace.
     * 
* * .envoy.data.tap.v2alpha.HttpBufferedTrace http_buffered_trace = 1; */ public io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace.Builder getHttpBufferedTraceBuilder() { return getHttpBufferedTraceFieldBuilder().getBuilder(); } /** *
     * An HTTP buffered tap trace.
     * 
* * .envoy.data.tap.v2alpha.HttpBufferedTrace http_buffered_trace = 1; */ @java.lang.Override public io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTraceOrBuilder getHttpBufferedTraceOrBuilder() { if ((traceCase_ == 1) && (httpBufferedTraceBuilder_ != null)) { return httpBufferedTraceBuilder_.getMessageOrBuilder(); } else { if (traceCase_ == 1) { return (io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace) trace_; } return io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace.getDefaultInstance(); } } /** *
     * An HTTP buffered tap trace.
     * 
* * .envoy.data.tap.v2alpha.HttpBufferedTrace http_buffered_trace = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace, io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace.Builder, io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTraceOrBuilder> getHttpBufferedTraceFieldBuilder() { if (httpBufferedTraceBuilder_ == null) { if (!(traceCase_ == 1)) { trace_ = io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace.getDefaultInstance(); } httpBufferedTraceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace, io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace.Builder, io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTraceOrBuilder>( (io.envoyproxy.envoy.data.tap.v2alpha.HttpBufferedTrace) trace_, getParentForChildren(), isClean()); trace_ = null; } traceCase_ = 1; onChanged();; return httpBufferedTraceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment, io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.Builder, io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegmentOrBuilder> httpStreamedTraceSegmentBuilder_; /** *
     * An HTTP streamed tap trace segment.
     * 
* * .envoy.data.tap.v2alpha.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.v2alpha.HttpStreamedTraceSegment http_streamed_trace_segment = 2; * @return The httpStreamedTraceSegment. */ @java.lang.Override public io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment getHttpStreamedTraceSegment() { if (httpStreamedTraceSegmentBuilder_ == null) { if (traceCase_ == 2) { return (io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment) trace_; } return io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.getDefaultInstance(); } else { if (traceCase_ == 2) { return httpStreamedTraceSegmentBuilder_.getMessage(); } return io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.getDefaultInstance(); } } /** *
     * An HTTP streamed tap trace segment.
     * 
* * .envoy.data.tap.v2alpha.HttpStreamedTraceSegment http_streamed_trace_segment = 2; */ public Builder setHttpStreamedTraceSegment(io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment value) { if (httpStreamedTraceSegmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } trace_ = value; onChanged(); } else { httpStreamedTraceSegmentBuilder_.setMessage(value); } traceCase_ = 2; return this; } /** *
     * An HTTP streamed tap trace segment.
     * 
* * .envoy.data.tap.v2alpha.HttpStreamedTraceSegment http_streamed_trace_segment = 2; */ public Builder setHttpStreamedTraceSegment( io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.Builder builderForValue) { if (httpStreamedTraceSegmentBuilder_ == null) { trace_ = builderForValue.build(); onChanged(); } else { httpStreamedTraceSegmentBuilder_.setMessage(builderForValue.build()); } traceCase_ = 2; return this; } /** *
     * An HTTP streamed tap trace segment.
     * 
* * .envoy.data.tap.v2alpha.HttpStreamedTraceSegment http_streamed_trace_segment = 2; */ public Builder mergeHttpStreamedTraceSegment(io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment value) { if (httpStreamedTraceSegmentBuilder_ == null) { if (traceCase_ == 2 && trace_ != io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.getDefaultInstance()) { trace_ = io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.newBuilder((io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment) trace_) .mergeFrom(value).buildPartial(); } else { trace_ = value; } onChanged(); } else { if (traceCase_ == 2) { httpStreamedTraceSegmentBuilder_.mergeFrom(value); } else { httpStreamedTraceSegmentBuilder_.setMessage(value); } } traceCase_ = 2; return this; } /** *
     * An HTTP streamed tap trace segment.
     * 
* * .envoy.data.tap.v2alpha.HttpStreamedTraceSegment http_streamed_trace_segment = 2; */ public Builder clearHttpStreamedTraceSegment() { if (httpStreamedTraceSegmentBuilder_ == null) { if (traceCase_ == 2) { traceCase_ = 0; trace_ = null; onChanged(); } } else { if (traceCase_ == 2) { traceCase_ = 0; trace_ = null; } httpStreamedTraceSegmentBuilder_.clear(); } return this; } /** *
     * An HTTP streamed tap trace segment.
     * 
* * .envoy.data.tap.v2alpha.HttpStreamedTraceSegment http_streamed_trace_segment = 2; */ public io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.Builder getHttpStreamedTraceSegmentBuilder() { return getHttpStreamedTraceSegmentFieldBuilder().getBuilder(); } /** *
     * An HTTP streamed tap trace segment.
     * 
* * .envoy.data.tap.v2alpha.HttpStreamedTraceSegment http_streamed_trace_segment = 2; */ @java.lang.Override public io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegmentOrBuilder getHttpStreamedTraceSegmentOrBuilder() { if ((traceCase_ == 2) && (httpStreamedTraceSegmentBuilder_ != null)) { return httpStreamedTraceSegmentBuilder_.getMessageOrBuilder(); } else { if (traceCase_ == 2) { return (io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment) trace_; } return io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.getDefaultInstance(); } } /** *
     * An HTTP streamed tap trace segment.
     * 
* * .envoy.data.tap.v2alpha.HttpStreamedTraceSegment http_streamed_trace_segment = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment, io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.Builder, io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegmentOrBuilder> getHttpStreamedTraceSegmentFieldBuilder() { if (httpStreamedTraceSegmentBuilder_ == null) { if (!(traceCase_ == 2)) { trace_ = io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.getDefaultInstance(); } httpStreamedTraceSegmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment, io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.Builder, io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegmentOrBuilder>( (io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment) trace_, getParentForChildren(), isClean()); trace_ = null; } traceCase_ = 2; onChanged();; return httpStreamedTraceSegmentBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace, io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace.Builder, io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTraceOrBuilder> socketBufferedTraceBuilder_; /** *
     * A socket buffered tap trace.
     * 
* * .envoy.data.tap.v2alpha.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.v2alpha.SocketBufferedTrace socket_buffered_trace = 3; * @return The socketBufferedTrace. */ @java.lang.Override public io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace getSocketBufferedTrace() { if (socketBufferedTraceBuilder_ == null) { if (traceCase_ == 3) { return (io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace) trace_; } return io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace.getDefaultInstance(); } else { if (traceCase_ == 3) { return socketBufferedTraceBuilder_.getMessage(); } return io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace.getDefaultInstance(); } } /** *
     * A socket buffered tap trace.
     * 
* * .envoy.data.tap.v2alpha.SocketBufferedTrace socket_buffered_trace = 3; */ public Builder setSocketBufferedTrace(io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace value) { if (socketBufferedTraceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } trace_ = value; onChanged(); } else { socketBufferedTraceBuilder_.setMessage(value); } traceCase_ = 3; return this; } /** *
     * A socket buffered tap trace.
     * 
* * .envoy.data.tap.v2alpha.SocketBufferedTrace socket_buffered_trace = 3; */ public Builder setSocketBufferedTrace( io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace.Builder builderForValue) { if (socketBufferedTraceBuilder_ == null) { trace_ = builderForValue.build(); onChanged(); } else { socketBufferedTraceBuilder_.setMessage(builderForValue.build()); } traceCase_ = 3; return this; } /** *
     * A socket buffered tap trace.
     * 
* * .envoy.data.tap.v2alpha.SocketBufferedTrace socket_buffered_trace = 3; */ public Builder mergeSocketBufferedTrace(io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace value) { if (socketBufferedTraceBuilder_ == null) { if (traceCase_ == 3 && trace_ != io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace.getDefaultInstance()) { trace_ = io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace.newBuilder((io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace) trace_) .mergeFrom(value).buildPartial(); } else { trace_ = value; } onChanged(); } else { if (traceCase_ == 3) { socketBufferedTraceBuilder_.mergeFrom(value); } else { socketBufferedTraceBuilder_.setMessage(value); } } traceCase_ = 3; return this; } /** *
     * A socket buffered tap trace.
     * 
* * .envoy.data.tap.v2alpha.SocketBufferedTrace socket_buffered_trace = 3; */ public Builder clearSocketBufferedTrace() { if (socketBufferedTraceBuilder_ == null) { if (traceCase_ == 3) { traceCase_ = 0; trace_ = null; onChanged(); } } else { if (traceCase_ == 3) { traceCase_ = 0; trace_ = null; } socketBufferedTraceBuilder_.clear(); } return this; } /** *
     * A socket buffered tap trace.
     * 
* * .envoy.data.tap.v2alpha.SocketBufferedTrace socket_buffered_trace = 3; */ public io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace.Builder getSocketBufferedTraceBuilder() { return getSocketBufferedTraceFieldBuilder().getBuilder(); } /** *
     * A socket buffered tap trace.
     * 
* * .envoy.data.tap.v2alpha.SocketBufferedTrace socket_buffered_trace = 3; */ @java.lang.Override public io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTraceOrBuilder getSocketBufferedTraceOrBuilder() { if ((traceCase_ == 3) && (socketBufferedTraceBuilder_ != null)) { return socketBufferedTraceBuilder_.getMessageOrBuilder(); } else { if (traceCase_ == 3) { return (io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace) trace_; } return io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace.getDefaultInstance(); } } /** *
     * A socket buffered tap trace.
     * 
* * .envoy.data.tap.v2alpha.SocketBufferedTrace socket_buffered_trace = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace, io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace.Builder, io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTraceOrBuilder> getSocketBufferedTraceFieldBuilder() { if (socketBufferedTraceBuilder_ == null) { if (!(traceCase_ == 3)) { trace_ = io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace.getDefaultInstance(); } socketBufferedTraceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace, io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace.Builder, io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTraceOrBuilder>( (io.envoyproxy.envoy.data.tap.v2alpha.SocketBufferedTrace) trace_, getParentForChildren(), isClean()); trace_ = null; } traceCase_ = 3; onChanged();; return socketBufferedTraceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment, io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment.Builder, io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegmentOrBuilder> socketStreamedTraceSegmentBuilder_; /** *
     * A socket streamed tap trace segment.
     * 
* * .envoy.data.tap.v2alpha.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.v2alpha.SocketStreamedTraceSegment socket_streamed_trace_segment = 4; * @return The socketStreamedTraceSegment. */ @java.lang.Override public io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment getSocketStreamedTraceSegment() { if (socketStreamedTraceSegmentBuilder_ == null) { if (traceCase_ == 4) { return (io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment) trace_; } return io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment.getDefaultInstance(); } else { if (traceCase_ == 4) { return socketStreamedTraceSegmentBuilder_.getMessage(); } return io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment.getDefaultInstance(); } } /** *
     * A socket streamed tap trace segment.
     * 
* * .envoy.data.tap.v2alpha.SocketStreamedTraceSegment socket_streamed_trace_segment = 4; */ public Builder setSocketStreamedTraceSegment(io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment value) { if (socketStreamedTraceSegmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } trace_ = value; onChanged(); } else { socketStreamedTraceSegmentBuilder_.setMessage(value); } traceCase_ = 4; return this; } /** *
     * A socket streamed tap trace segment.
     * 
* * .envoy.data.tap.v2alpha.SocketStreamedTraceSegment socket_streamed_trace_segment = 4; */ public Builder setSocketStreamedTraceSegment( io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment.Builder builderForValue) { if (socketStreamedTraceSegmentBuilder_ == null) { trace_ = builderForValue.build(); onChanged(); } else { socketStreamedTraceSegmentBuilder_.setMessage(builderForValue.build()); } traceCase_ = 4; return this; } /** *
     * A socket streamed tap trace segment.
     * 
* * .envoy.data.tap.v2alpha.SocketStreamedTraceSegment socket_streamed_trace_segment = 4; */ public Builder mergeSocketStreamedTraceSegment(io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment value) { if (socketStreamedTraceSegmentBuilder_ == null) { if (traceCase_ == 4 && trace_ != io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment.getDefaultInstance()) { trace_ = io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment.newBuilder((io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment) trace_) .mergeFrom(value).buildPartial(); } else { trace_ = value; } onChanged(); } else { if (traceCase_ == 4) { socketStreamedTraceSegmentBuilder_.mergeFrom(value); } else { socketStreamedTraceSegmentBuilder_.setMessage(value); } } traceCase_ = 4; return this; } /** *
     * A socket streamed tap trace segment.
     * 
* * .envoy.data.tap.v2alpha.SocketStreamedTraceSegment socket_streamed_trace_segment = 4; */ public Builder clearSocketStreamedTraceSegment() { if (socketStreamedTraceSegmentBuilder_ == null) { if (traceCase_ == 4) { traceCase_ = 0; trace_ = null; onChanged(); } } else { if (traceCase_ == 4) { traceCase_ = 0; trace_ = null; } socketStreamedTraceSegmentBuilder_.clear(); } return this; } /** *
     * A socket streamed tap trace segment.
     * 
* * .envoy.data.tap.v2alpha.SocketStreamedTraceSegment socket_streamed_trace_segment = 4; */ public io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment.Builder getSocketStreamedTraceSegmentBuilder() { return getSocketStreamedTraceSegmentFieldBuilder().getBuilder(); } /** *
     * A socket streamed tap trace segment.
     * 
* * .envoy.data.tap.v2alpha.SocketStreamedTraceSegment socket_streamed_trace_segment = 4; */ @java.lang.Override public io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegmentOrBuilder getSocketStreamedTraceSegmentOrBuilder() { if ((traceCase_ == 4) && (socketStreamedTraceSegmentBuilder_ != null)) { return socketStreamedTraceSegmentBuilder_.getMessageOrBuilder(); } else { if (traceCase_ == 4) { return (io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment) trace_; } return io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment.getDefaultInstance(); } } /** *
     * A socket streamed tap trace segment.
     * 
* * .envoy.data.tap.v2alpha.SocketStreamedTraceSegment socket_streamed_trace_segment = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment, io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment.Builder, io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegmentOrBuilder> getSocketStreamedTraceSegmentFieldBuilder() { if (socketStreamedTraceSegmentBuilder_ == null) { if (!(traceCase_ == 4)) { trace_ = io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment.getDefaultInstance(); } socketStreamedTraceSegmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment, io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment.Builder, io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegmentOrBuilder>( (io.envoyproxy.envoy.data.tap.v2alpha.SocketStreamedTraceSegment) trace_, getParentForChildren(), isClean()); trace_ = null; } traceCase_ = 4; onChanged();; return socketStreamedTraceSegmentBuilder_; } @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.data.tap.v2alpha.TraceWrapper) } // @@protoc_insertion_point(class_scope:envoy.data.tap.v2alpha.TraceWrapper) private static final io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper(); } public static io.envoyproxy.envoy.data.tap.v2alpha.TraceWrapper getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TraceWrapper parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TraceWrapper(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.data.tap.v2alpha.TraceWrapper getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy