Please wait. This can take some minutes ...
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.
io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/data/tap/v2alpha/http.proto
package io.envoyproxy.envoy.data.tap.v2alpha;
/**
*
* A streamed HTTP trace segment. Multiple segments make up a full trace.
*
*
* Protobuf type {@code envoy.data.tap.v2alpha.HttpStreamedTraceSegment}
*/
public final class HttpStreamedTraceSegment extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.tap.v2alpha.HttpStreamedTraceSegment)
HttpStreamedTraceSegmentOrBuilder {
private static final long serialVersionUID = 0L;
// Use HttpStreamedTraceSegment.newBuilder() to construct.
private HttpStreamedTraceSegment(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HttpStreamedTraceSegment() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HttpStreamedTraceSegment();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HttpStreamedTraceSegment(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
traceId_ = input.readUInt64();
break;
}
case 18: {
io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder subBuilder = null;
if (messagePieceCase_ == 2) {
subBuilder = ((io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_).toBuilder();
}
messagePiece_ =
input.readMessage(io.envoyproxy.envoy.api.v2.core.HeaderMap.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_);
messagePiece_ = subBuilder.buildPartial();
}
messagePieceCase_ = 2;
break;
}
case 26: {
io.envoyproxy.envoy.data.tap.v2alpha.Body.Builder subBuilder = null;
if (messagePieceCase_ == 3) {
subBuilder = ((io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_).toBuilder();
}
messagePiece_ =
input.readMessage(io.envoyproxy.envoy.data.tap.v2alpha.Body.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_);
messagePiece_ = subBuilder.buildPartial();
}
messagePieceCase_ = 3;
break;
}
case 34: {
io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder subBuilder = null;
if (messagePieceCase_ == 4) {
subBuilder = ((io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_).toBuilder();
}
messagePiece_ =
input.readMessage(io.envoyproxy.envoy.api.v2.core.HeaderMap.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_);
messagePiece_ = subBuilder.buildPartial();
}
messagePieceCase_ = 4;
break;
}
case 42: {
io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder subBuilder = null;
if (messagePieceCase_ == 5) {
subBuilder = ((io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_).toBuilder();
}
messagePiece_ =
input.readMessage(io.envoyproxy.envoy.api.v2.core.HeaderMap.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_);
messagePiece_ = subBuilder.buildPartial();
}
messagePieceCase_ = 5;
break;
}
case 50: {
io.envoyproxy.envoy.data.tap.v2alpha.Body.Builder subBuilder = null;
if (messagePieceCase_ == 6) {
subBuilder = ((io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_).toBuilder();
}
messagePiece_ =
input.readMessage(io.envoyproxy.envoy.data.tap.v2alpha.Body.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_);
messagePiece_ = subBuilder.buildPartial();
}
messagePieceCase_ = 6;
break;
}
case 58: {
io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder subBuilder = null;
if (messagePieceCase_ == 7) {
subBuilder = ((io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_).toBuilder();
}
messagePiece_ =
input.readMessage(io.envoyproxy.envoy.api.v2.core.HeaderMap.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_);
messagePiece_ = subBuilder.buildPartial();
}
messagePieceCase_ = 7;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.tap.v2alpha.HttpProto.internal_static_envoy_data_tap_v2alpha_HttpStreamedTraceSegment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v2alpha.HttpProto.internal_static_envoy_data_tap_v2alpha_HttpStreamedTraceSegment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.class, io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.Builder.class);
}
private int messagePieceCase_ = 0;
private java.lang.Object messagePiece_;
public enum MessagePieceCase
implements com.google.protobuf.Internal.EnumLite {
REQUEST_HEADERS(2),
REQUEST_BODY_CHUNK(3),
REQUEST_TRAILERS(4),
RESPONSE_HEADERS(5),
RESPONSE_BODY_CHUNK(6),
RESPONSE_TRAILERS(7),
MESSAGEPIECE_NOT_SET(0);
private final int value;
private MessagePieceCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static MessagePieceCase valueOf(int value) {
return forNumber(value);
}
public static MessagePieceCase forNumber(int value) {
switch (value) {
case 2: return REQUEST_HEADERS;
case 3: return REQUEST_BODY_CHUNK;
case 4: return REQUEST_TRAILERS;
case 5: return RESPONSE_HEADERS;
case 6: return RESPONSE_BODY_CHUNK;
case 7: return RESPONSE_TRAILERS;
case 0: return MESSAGEPIECE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public MessagePieceCase
getMessagePieceCase() {
return MessagePieceCase.forNumber(
messagePieceCase_);
}
public static final int TRACE_ID_FIELD_NUMBER = 1;
private long traceId_;
/**
*
* Trace ID unique to the originating Envoy only. Trace IDs can repeat and should not be used
* for long term stable uniqueness.
*
*
* uint64 trace_id = 1;
*/
public long getTraceId() {
return traceId_;
}
public static final int REQUEST_HEADERS_FIELD_NUMBER = 2;
/**
*
* Request headers.
*
*
* .envoy.api.v2.core.HeaderMap request_headers = 2;
*/
public boolean hasRequestHeaders() {
return messagePieceCase_ == 2;
}
/**
*
* Request headers.
*
*
* .envoy.api.v2.core.HeaderMap request_headers = 2;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMap getRequestHeaders() {
if (messagePieceCase_ == 2) {
return (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_;
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
}
/**
*
* Request headers.
*
*
* .envoy.api.v2.core.HeaderMap request_headers = 2;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder getRequestHeadersOrBuilder() {
if (messagePieceCase_ == 2) {
return (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_;
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
}
public static final int REQUEST_BODY_CHUNK_FIELD_NUMBER = 3;
/**
*
* Request body chunk.
*
*
* .envoy.data.tap.v2alpha.Body request_body_chunk = 3;
*/
public boolean hasRequestBodyChunk() {
return messagePieceCase_ == 3;
}
/**
*
* Request body chunk.
*
*
* .envoy.data.tap.v2alpha.Body request_body_chunk = 3;
*/
public io.envoyproxy.envoy.data.tap.v2alpha.Body getRequestBodyChunk() {
if (messagePieceCase_ == 3) {
return (io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_;
}
return io.envoyproxy.envoy.data.tap.v2alpha.Body.getDefaultInstance();
}
/**
*
* Request body chunk.
*
*
* .envoy.data.tap.v2alpha.Body request_body_chunk = 3;
*/
public io.envoyproxy.envoy.data.tap.v2alpha.BodyOrBuilder getRequestBodyChunkOrBuilder() {
if (messagePieceCase_ == 3) {
return (io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_;
}
return io.envoyproxy.envoy.data.tap.v2alpha.Body.getDefaultInstance();
}
public static final int REQUEST_TRAILERS_FIELD_NUMBER = 4;
/**
*
* Request trailers.
*
*
* .envoy.api.v2.core.HeaderMap request_trailers = 4;
*/
public boolean hasRequestTrailers() {
return messagePieceCase_ == 4;
}
/**
*
* Request trailers.
*
*
* .envoy.api.v2.core.HeaderMap request_trailers = 4;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMap getRequestTrailers() {
if (messagePieceCase_ == 4) {
return (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_;
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
}
/**
*
* Request trailers.
*
*
* .envoy.api.v2.core.HeaderMap request_trailers = 4;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder getRequestTrailersOrBuilder() {
if (messagePieceCase_ == 4) {
return (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_;
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
}
public static final int RESPONSE_HEADERS_FIELD_NUMBER = 5;
/**
*
* Response headers.
*
*
* .envoy.api.v2.core.HeaderMap response_headers = 5;
*/
public boolean hasResponseHeaders() {
return messagePieceCase_ == 5;
}
/**
*
* Response headers.
*
*
* .envoy.api.v2.core.HeaderMap response_headers = 5;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMap getResponseHeaders() {
if (messagePieceCase_ == 5) {
return (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_;
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
}
/**
*
* Response headers.
*
*
* .envoy.api.v2.core.HeaderMap response_headers = 5;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder getResponseHeadersOrBuilder() {
if (messagePieceCase_ == 5) {
return (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_;
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
}
public static final int RESPONSE_BODY_CHUNK_FIELD_NUMBER = 6;
/**
*
* Response body chunk.
*
*
* .envoy.data.tap.v2alpha.Body response_body_chunk = 6;
*/
public boolean hasResponseBodyChunk() {
return messagePieceCase_ == 6;
}
/**
*
* Response body chunk.
*
*
* .envoy.data.tap.v2alpha.Body response_body_chunk = 6;
*/
public io.envoyproxy.envoy.data.tap.v2alpha.Body getResponseBodyChunk() {
if (messagePieceCase_ == 6) {
return (io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_;
}
return io.envoyproxy.envoy.data.tap.v2alpha.Body.getDefaultInstance();
}
/**
*
* Response body chunk.
*
*
* .envoy.data.tap.v2alpha.Body response_body_chunk = 6;
*/
public io.envoyproxy.envoy.data.tap.v2alpha.BodyOrBuilder getResponseBodyChunkOrBuilder() {
if (messagePieceCase_ == 6) {
return (io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_;
}
return io.envoyproxy.envoy.data.tap.v2alpha.Body.getDefaultInstance();
}
public static final int RESPONSE_TRAILERS_FIELD_NUMBER = 7;
/**
*
* Response trailers.
*
*
* .envoy.api.v2.core.HeaderMap response_trailers = 7;
*/
public boolean hasResponseTrailers() {
return messagePieceCase_ == 7;
}
/**
*
* Response trailers.
*
*
* .envoy.api.v2.core.HeaderMap response_trailers = 7;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMap getResponseTrailers() {
if (messagePieceCase_ == 7) {
return (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_;
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
}
/**
*
* Response trailers.
*
*
* .envoy.api.v2.core.HeaderMap response_trailers = 7;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder getResponseTrailersOrBuilder() {
if (messagePieceCase_ == 7) {
return (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_;
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.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 (traceId_ != 0L) {
output.writeUInt64(1, traceId_);
}
if (messagePieceCase_ == 2) {
output.writeMessage(2, (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_);
}
if (messagePieceCase_ == 3) {
output.writeMessage(3, (io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_);
}
if (messagePieceCase_ == 4) {
output.writeMessage(4, (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_);
}
if (messagePieceCase_ == 5) {
output.writeMessage(5, (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_);
}
if (messagePieceCase_ == 6) {
output.writeMessage(6, (io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_);
}
if (messagePieceCase_ == 7) {
output.writeMessage(7, (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (traceId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, traceId_);
}
if (messagePieceCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_);
}
if (messagePieceCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_);
}
if (messagePieceCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_);
}
if (messagePieceCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_);
}
if (messagePieceCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_);
}
if (messagePieceCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_);
}
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.HttpStreamedTraceSegment)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment other = (io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment) obj;
if (getTraceId()
!= other.getTraceId()) return false;
if (!getMessagePieceCase().equals(other.getMessagePieceCase())) return false;
switch (messagePieceCase_) {
case 2:
if (!getRequestHeaders()
.equals(other.getRequestHeaders())) return false;
break;
case 3:
if (!getRequestBodyChunk()
.equals(other.getRequestBodyChunk())) return false;
break;
case 4:
if (!getRequestTrailers()
.equals(other.getRequestTrailers())) return false;
break;
case 5:
if (!getResponseHeaders()
.equals(other.getResponseHeaders())) return false;
break;
case 6:
if (!getResponseBodyChunk()
.equals(other.getResponseBodyChunk())) return false;
break;
case 7:
if (!getResponseTrailers()
.equals(other.getResponseTrailers())) 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();
hash = (37 * hash) + TRACE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTraceId());
switch (messagePieceCase_) {
case 2:
hash = (37 * hash) + REQUEST_HEADERS_FIELD_NUMBER;
hash = (53 * hash) + getRequestHeaders().hashCode();
break;
case 3:
hash = (37 * hash) + REQUEST_BODY_CHUNK_FIELD_NUMBER;
hash = (53 * hash) + getRequestBodyChunk().hashCode();
break;
case 4:
hash = (37 * hash) + REQUEST_TRAILERS_FIELD_NUMBER;
hash = (53 * hash) + getRequestTrailers().hashCode();
break;
case 5:
hash = (37 * hash) + RESPONSE_HEADERS_FIELD_NUMBER;
hash = (53 * hash) + getResponseHeaders().hashCode();
break;
case 6:
hash = (37 * hash) + RESPONSE_BODY_CHUNK_FIELD_NUMBER;
hash = (53 * hash) + getResponseBodyChunk().hashCode();
break;
case 7:
hash = (37 * hash) + RESPONSE_TRAILERS_FIELD_NUMBER;
hash = (53 * hash) + getResponseTrailers().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment 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.HttpStreamedTraceSegment parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment 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.HttpStreamedTraceSegment parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment 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.HttpStreamedTraceSegment 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.HttpStreamedTraceSegment 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.HttpStreamedTraceSegment 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.HttpStreamedTraceSegment 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.HttpStreamedTraceSegment 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.HttpStreamedTraceSegment 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.HttpStreamedTraceSegment 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;
}
/**
*
* A streamed HTTP trace segment. Multiple segments make up a full trace.
*
*
* Protobuf type {@code envoy.data.tap.v2alpha.HttpStreamedTraceSegment}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.tap.v2alpha.HttpStreamedTraceSegment)
io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegmentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.tap.v2alpha.HttpProto.internal_static_envoy_data_tap_v2alpha_HttpStreamedTraceSegment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v2alpha.HttpProto.internal_static_envoy_data_tap_v2alpha_HttpStreamedTraceSegment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.class, io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.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();
traceId_ = 0L;
messagePieceCase_ = 0;
messagePiece_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.data.tap.v2alpha.HttpProto.internal_static_envoy_data_tap_v2alpha_HttpStreamedTraceSegment_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment build() {
io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment buildPartial() {
io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment result = new io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment(this);
result.traceId_ = traceId_;
if (messagePieceCase_ == 2) {
if (requestHeadersBuilder_ == null) {
result.messagePiece_ = messagePiece_;
} else {
result.messagePiece_ = requestHeadersBuilder_.build();
}
}
if (messagePieceCase_ == 3) {
if (requestBodyChunkBuilder_ == null) {
result.messagePiece_ = messagePiece_;
} else {
result.messagePiece_ = requestBodyChunkBuilder_.build();
}
}
if (messagePieceCase_ == 4) {
if (requestTrailersBuilder_ == null) {
result.messagePiece_ = messagePiece_;
} else {
result.messagePiece_ = requestTrailersBuilder_.build();
}
}
if (messagePieceCase_ == 5) {
if (responseHeadersBuilder_ == null) {
result.messagePiece_ = messagePiece_;
} else {
result.messagePiece_ = responseHeadersBuilder_.build();
}
}
if (messagePieceCase_ == 6) {
if (responseBodyChunkBuilder_ == null) {
result.messagePiece_ = messagePiece_;
} else {
result.messagePiece_ = responseBodyChunkBuilder_.build();
}
}
if (messagePieceCase_ == 7) {
if (responseTrailersBuilder_ == null) {
result.messagePiece_ = messagePiece_;
} else {
result.messagePiece_ = responseTrailersBuilder_.build();
}
}
result.messagePieceCase_ = messagePieceCase_;
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.HttpStreamedTraceSegment) {
return mergeFrom((io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment other) {
if (other == io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment.getDefaultInstance()) return this;
if (other.getTraceId() != 0L) {
setTraceId(other.getTraceId());
}
switch (other.getMessagePieceCase()) {
case REQUEST_HEADERS: {
mergeRequestHeaders(other.getRequestHeaders());
break;
}
case REQUEST_BODY_CHUNK: {
mergeRequestBodyChunk(other.getRequestBodyChunk());
break;
}
case REQUEST_TRAILERS: {
mergeRequestTrailers(other.getRequestTrailers());
break;
}
case RESPONSE_HEADERS: {
mergeResponseHeaders(other.getResponseHeaders());
break;
}
case RESPONSE_BODY_CHUNK: {
mergeResponseBodyChunk(other.getResponseBodyChunk());
break;
}
case RESPONSE_TRAILERS: {
mergeResponseTrailers(other.getResponseTrailers());
break;
}
case MESSAGEPIECE_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.HttpStreamedTraceSegment parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int messagePieceCase_ = 0;
private java.lang.Object messagePiece_;
public MessagePieceCase
getMessagePieceCase() {
return MessagePieceCase.forNumber(
messagePieceCase_);
}
public Builder clearMessagePiece() {
messagePieceCase_ = 0;
messagePiece_ = null;
onChanged();
return this;
}
private long traceId_ ;
/**
*
* Trace ID unique to the originating Envoy only. Trace IDs can repeat and should not be used
* for long term stable uniqueness.
*
*
* uint64 trace_id = 1;
*/
public long getTraceId() {
return traceId_;
}
/**
*
* Trace ID unique to the originating Envoy only. Trace IDs can repeat and should not be used
* for long term stable uniqueness.
*
*
* uint64 trace_id = 1;
*/
public Builder setTraceId(long value) {
traceId_ = value;
onChanged();
return this;
}
/**
*
* Trace ID unique to the originating Envoy only. Trace IDs can repeat and should not be used
* for long term stable uniqueness.
*
*
* uint64 trace_id = 1;
*/
public Builder clearTraceId() {
traceId_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.HeaderMap, io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder, io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder> requestHeadersBuilder_;
/**
*
* Request headers.
*
*
* .envoy.api.v2.core.HeaderMap request_headers = 2;
*/
public boolean hasRequestHeaders() {
return messagePieceCase_ == 2;
}
/**
*
* Request headers.
*
*
* .envoy.api.v2.core.HeaderMap request_headers = 2;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMap getRequestHeaders() {
if (requestHeadersBuilder_ == null) {
if (messagePieceCase_ == 2) {
return (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_;
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
} else {
if (messagePieceCase_ == 2) {
return requestHeadersBuilder_.getMessage();
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
}
}
/**
*
* Request headers.
*
*
* .envoy.api.v2.core.HeaderMap request_headers = 2;
*/
public Builder setRequestHeaders(io.envoyproxy.envoy.api.v2.core.HeaderMap value) {
if (requestHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
messagePiece_ = value;
onChanged();
} else {
requestHeadersBuilder_.setMessage(value);
}
messagePieceCase_ = 2;
return this;
}
/**
*
* Request headers.
*
*
* .envoy.api.v2.core.HeaderMap request_headers = 2;
*/
public Builder setRequestHeaders(
io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder builderForValue) {
if (requestHeadersBuilder_ == null) {
messagePiece_ = builderForValue.build();
onChanged();
} else {
requestHeadersBuilder_.setMessage(builderForValue.build());
}
messagePieceCase_ = 2;
return this;
}
/**
*
* Request headers.
*
*
* .envoy.api.v2.core.HeaderMap request_headers = 2;
*/
public Builder mergeRequestHeaders(io.envoyproxy.envoy.api.v2.core.HeaderMap value) {
if (requestHeadersBuilder_ == null) {
if (messagePieceCase_ == 2 &&
messagePiece_ != io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance()) {
messagePiece_ = io.envoyproxy.envoy.api.v2.core.HeaderMap.newBuilder((io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_)
.mergeFrom(value).buildPartial();
} else {
messagePiece_ = value;
}
onChanged();
} else {
if (messagePieceCase_ == 2) {
requestHeadersBuilder_.mergeFrom(value);
}
requestHeadersBuilder_.setMessage(value);
}
messagePieceCase_ = 2;
return this;
}
/**
*
* Request headers.
*
*
* .envoy.api.v2.core.HeaderMap request_headers = 2;
*/
public Builder clearRequestHeaders() {
if (requestHeadersBuilder_ == null) {
if (messagePieceCase_ == 2) {
messagePieceCase_ = 0;
messagePiece_ = null;
onChanged();
}
} else {
if (messagePieceCase_ == 2) {
messagePieceCase_ = 0;
messagePiece_ = null;
}
requestHeadersBuilder_.clear();
}
return this;
}
/**
*
* Request headers.
*
*
* .envoy.api.v2.core.HeaderMap request_headers = 2;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder getRequestHeadersBuilder() {
return getRequestHeadersFieldBuilder().getBuilder();
}
/**
*
* Request headers.
*
*
* .envoy.api.v2.core.HeaderMap request_headers = 2;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder getRequestHeadersOrBuilder() {
if ((messagePieceCase_ == 2) && (requestHeadersBuilder_ != null)) {
return requestHeadersBuilder_.getMessageOrBuilder();
} else {
if (messagePieceCase_ == 2) {
return (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_;
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
}
}
/**
*
* Request headers.
*
*
* .envoy.api.v2.core.HeaderMap request_headers = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.HeaderMap, io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder, io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder>
getRequestHeadersFieldBuilder() {
if (requestHeadersBuilder_ == null) {
if (!(messagePieceCase_ == 2)) {
messagePiece_ = io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
}
requestHeadersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.HeaderMap, io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder, io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder>(
(io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_,
getParentForChildren(),
isClean());
messagePiece_ = null;
}
messagePieceCase_ = 2;
onChanged();;
return requestHeadersBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v2alpha.Body, io.envoyproxy.envoy.data.tap.v2alpha.Body.Builder, io.envoyproxy.envoy.data.tap.v2alpha.BodyOrBuilder> requestBodyChunkBuilder_;
/**
*
* Request body chunk.
*
*
* .envoy.data.tap.v2alpha.Body request_body_chunk = 3;
*/
public boolean hasRequestBodyChunk() {
return messagePieceCase_ == 3;
}
/**
*
* Request body chunk.
*
*
* .envoy.data.tap.v2alpha.Body request_body_chunk = 3;
*/
public io.envoyproxy.envoy.data.tap.v2alpha.Body getRequestBodyChunk() {
if (requestBodyChunkBuilder_ == null) {
if (messagePieceCase_ == 3) {
return (io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_;
}
return io.envoyproxy.envoy.data.tap.v2alpha.Body.getDefaultInstance();
} else {
if (messagePieceCase_ == 3) {
return requestBodyChunkBuilder_.getMessage();
}
return io.envoyproxy.envoy.data.tap.v2alpha.Body.getDefaultInstance();
}
}
/**
*
* Request body chunk.
*
*
* .envoy.data.tap.v2alpha.Body request_body_chunk = 3;
*/
public Builder setRequestBodyChunk(io.envoyproxy.envoy.data.tap.v2alpha.Body value) {
if (requestBodyChunkBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
messagePiece_ = value;
onChanged();
} else {
requestBodyChunkBuilder_.setMessage(value);
}
messagePieceCase_ = 3;
return this;
}
/**
*
* Request body chunk.
*
*
* .envoy.data.tap.v2alpha.Body request_body_chunk = 3;
*/
public Builder setRequestBodyChunk(
io.envoyproxy.envoy.data.tap.v2alpha.Body.Builder builderForValue) {
if (requestBodyChunkBuilder_ == null) {
messagePiece_ = builderForValue.build();
onChanged();
} else {
requestBodyChunkBuilder_.setMessage(builderForValue.build());
}
messagePieceCase_ = 3;
return this;
}
/**
*
* Request body chunk.
*
*
* .envoy.data.tap.v2alpha.Body request_body_chunk = 3;
*/
public Builder mergeRequestBodyChunk(io.envoyproxy.envoy.data.tap.v2alpha.Body value) {
if (requestBodyChunkBuilder_ == null) {
if (messagePieceCase_ == 3 &&
messagePiece_ != io.envoyproxy.envoy.data.tap.v2alpha.Body.getDefaultInstance()) {
messagePiece_ = io.envoyproxy.envoy.data.tap.v2alpha.Body.newBuilder((io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_)
.mergeFrom(value).buildPartial();
} else {
messagePiece_ = value;
}
onChanged();
} else {
if (messagePieceCase_ == 3) {
requestBodyChunkBuilder_.mergeFrom(value);
}
requestBodyChunkBuilder_.setMessage(value);
}
messagePieceCase_ = 3;
return this;
}
/**
*
* Request body chunk.
*
*
* .envoy.data.tap.v2alpha.Body request_body_chunk = 3;
*/
public Builder clearRequestBodyChunk() {
if (requestBodyChunkBuilder_ == null) {
if (messagePieceCase_ == 3) {
messagePieceCase_ = 0;
messagePiece_ = null;
onChanged();
}
} else {
if (messagePieceCase_ == 3) {
messagePieceCase_ = 0;
messagePiece_ = null;
}
requestBodyChunkBuilder_.clear();
}
return this;
}
/**
*
* Request body chunk.
*
*
* .envoy.data.tap.v2alpha.Body request_body_chunk = 3;
*/
public io.envoyproxy.envoy.data.tap.v2alpha.Body.Builder getRequestBodyChunkBuilder() {
return getRequestBodyChunkFieldBuilder().getBuilder();
}
/**
*
* Request body chunk.
*
*
* .envoy.data.tap.v2alpha.Body request_body_chunk = 3;
*/
public io.envoyproxy.envoy.data.tap.v2alpha.BodyOrBuilder getRequestBodyChunkOrBuilder() {
if ((messagePieceCase_ == 3) && (requestBodyChunkBuilder_ != null)) {
return requestBodyChunkBuilder_.getMessageOrBuilder();
} else {
if (messagePieceCase_ == 3) {
return (io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_;
}
return io.envoyproxy.envoy.data.tap.v2alpha.Body.getDefaultInstance();
}
}
/**
*
* Request body chunk.
*
*
* .envoy.data.tap.v2alpha.Body request_body_chunk = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v2alpha.Body, io.envoyproxy.envoy.data.tap.v2alpha.Body.Builder, io.envoyproxy.envoy.data.tap.v2alpha.BodyOrBuilder>
getRequestBodyChunkFieldBuilder() {
if (requestBodyChunkBuilder_ == null) {
if (!(messagePieceCase_ == 3)) {
messagePiece_ = io.envoyproxy.envoy.data.tap.v2alpha.Body.getDefaultInstance();
}
requestBodyChunkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v2alpha.Body, io.envoyproxy.envoy.data.tap.v2alpha.Body.Builder, io.envoyproxy.envoy.data.tap.v2alpha.BodyOrBuilder>(
(io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_,
getParentForChildren(),
isClean());
messagePiece_ = null;
}
messagePieceCase_ = 3;
onChanged();;
return requestBodyChunkBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.HeaderMap, io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder, io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder> requestTrailersBuilder_;
/**
*
* Request trailers.
*
*
* .envoy.api.v2.core.HeaderMap request_trailers = 4;
*/
public boolean hasRequestTrailers() {
return messagePieceCase_ == 4;
}
/**
*
* Request trailers.
*
*
* .envoy.api.v2.core.HeaderMap request_trailers = 4;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMap getRequestTrailers() {
if (requestTrailersBuilder_ == null) {
if (messagePieceCase_ == 4) {
return (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_;
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
} else {
if (messagePieceCase_ == 4) {
return requestTrailersBuilder_.getMessage();
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
}
}
/**
*
* Request trailers.
*
*
* .envoy.api.v2.core.HeaderMap request_trailers = 4;
*/
public Builder setRequestTrailers(io.envoyproxy.envoy.api.v2.core.HeaderMap value) {
if (requestTrailersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
messagePiece_ = value;
onChanged();
} else {
requestTrailersBuilder_.setMessage(value);
}
messagePieceCase_ = 4;
return this;
}
/**
*
* Request trailers.
*
*
* .envoy.api.v2.core.HeaderMap request_trailers = 4;
*/
public Builder setRequestTrailers(
io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder builderForValue) {
if (requestTrailersBuilder_ == null) {
messagePiece_ = builderForValue.build();
onChanged();
} else {
requestTrailersBuilder_.setMessage(builderForValue.build());
}
messagePieceCase_ = 4;
return this;
}
/**
*
* Request trailers.
*
*
* .envoy.api.v2.core.HeaderMap request_trailers = 4;
*/
public Builder mergeRequestTrailers(io.envoyproxy.envoy.api.v2.core.HeaderMap value) {
if (requestTrailersBuilder_ == null) {
if (messagePieceCase_ == 4 &&
messagePiece_ != io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance()) {
messagePiece_ = io.envoyproxy.envoy.api.v2.core.HeaderMap.newBuilder((io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_)
.mergeFrom(value).buildPartial();
} else {
messagePiece_ = value;
}
onChanged();
} else {
if (messagePieceCase_ == 4) {
requestTrailersBuilder_.mergeFrom(value);
}
requestTrailersBuilder_.setMessage(value);
}
messagePieceCase_ = 4;
return this;
}
/**
*
* Request trailers.
*
*
* .envoy.api.v2.core.HeaderMap request_trailers = 4;
*/
public Builder clearRequestTrailers() {
if (requestTrailersBuilder_ == null) {
if (messagePieceCase_ == 4) {
messagePieceCase_ = 0;
messagePiece_ = null;
onChanged();
}
} else {
if (messagePieceCase_ == 4) {
messagePieceCase_ = 0;
messagePiece_ = null;
}
requestTrailersBuilder_.clear();
}
return this;
}
/**
*
* Request trailers.
*
*
* .envoy.api.v2.core.HeaderMap request_trailers = 4;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder getRequestTrailersBuilder() {
return getRequestTrailersFieldBuilder().getBuilder();
}
/**
*
* Request trailers.
*
*
* .envoy.api.v2.core.HeaderMap request_trailers = 4;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder getRequestTrailersOrBuilder() {
if ((messagePieceCase_ == 4) && (requestTrailersBuilder_ != null)) {
return requestTrailersBuilder_.getMessageOrBuilder();
} else {
if (messagePieceCase_ == 4) {
return (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_;
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
}
}
/**
*
* Request trailers.
*
*
* .envoy.api.v2.core.HeaderMap request_trailers = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.HeaderMap, io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder, io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder>
getRequestTrailersFieldBuilder() {
if (requestTrailersBuilder_ == null) {
if (!(messagePieceCase_ == 4)) {
messagePiece_ = io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
}
requestTrailersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.HeaderMap, io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder, io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder>(
(io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_,
getParentForChildren(),
isClean());
messagePiece_ = null;
}
messagePieceCase_ = 4;
onChanged();;
return requestTrailersBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.HeaderMap, io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder, io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder> responseHeadersBuilder_;
/**
*
* Response headers.
*
*
* .envoy.api.v2.core.HeaderMap response_headers = 5;
*/
public boolean hasResponseHeaders() {
return messagePieceCase_ == 5;
}
/**
*
* Response headers.
*
*
* .envoy.api.v2.core.HeaderMap response_headers = 5;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMap getResponseHeaders() {
if (responseHeadersBuilder_ == null) {
if (messagePieceCase_ == 5) {
return (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_;
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
} else {
if (messagePieceCase_ == 5) {
return responseHeadersBuilder_.getMessage();
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
}
}
/**
*
* Response headers.
*
*
* .envoy.api.v2.core.HeaderMap response_headers = 5;
*/
public Builder setResponseHeaders(io.envoyproxy.envoy.api.v2.core.HeaderMap value) {
if (responseHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
messagePiece_ = value;
onChanged();
} else {
responseHeadersBuilder_.setMessage(value);
}
messagePieceCase_ = 5;
return this;
}
/**
*
* Response headers.
*
*
* .envoy.api.v2.core.HeaderMap response_headers = 5;
*/
public Builder setResponseHeaders(
io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder builderForValue) {
if (responseHeadersBuilder_ == null) {
messagePiece_ = builderForValue.build();
onChanged();
} else {
responseHeadersBuilder_.setMessage(builderForValue.build());
}
messagePieceCase_ = 5;
return this;
}
/**
*
* Response headers.
*
*
* .envoy.api.v2.core.HeaderMap response_headers = 5;
*/
public Builder mergeResponseHeaders(io.envoyproxy.envoy.api.v2.core.HeaderMap value) {
if (responseHeadersBuilder_ == null) {
if (messagePieceCase_ == 5 &&
messagePiece_ != io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance()) {
messagePiece_ = io.envoyproxy.envoy.api.v2.core.HeaderMap.newBuilder((io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_)
.mergeFrom(value).buildPartial();
} else {
messagePiece_ = value;
}
onChanged();
} else {
if (messagePieceCase_ == 5) {
responseHeadersBuilder_.mergeFrom(value);
}
responseHeadersBuilder_.setMessage(value);
}
messagePieceCase_ = 5;
return this;
}
/**
*
* Response headers.
*
*
* .envoy.api.v2.core.HeaderMap response_headers = 5;
*/
public Builder clearResponseHeaders() {
if (responseHeadersBuilder_ == null) {
if (messagePieceCase_ == 5) {
messagePieceCase_ = 0;
messagePiece_ = null;
onChanged();
}
} else {
if (messagePieceCase_ == 5) {
messagePieceCase_ = 0;
messagePiece_ = null;
}
responseHeadersBuilder_.clear();
}
return this;
}
/**
*
* Response headers.
*
*
* .envoy.api.v2.core.HeaderMap response_headers = 5;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder getResponseHeadersBuilder() {
return getResponseHeadersFieldBuilder().getBuilder();
}
/**
*
* Response headers.
*
*
* .envoy.api.v2.core.HeaderMap response_headers = 5;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder getResponseHeadersOrBuilder() {
if ((messagePieceCase_ == 5) && (responseHeadersBuilder_ != null)) {
return responseHeadersBuilder_.getMessageOrBuilder();
} else {
if (messagePieceCase_ == 5) {
return (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_;
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
}
}
/**
*
* Response headers.
*
*
* .envoy.api.v2.core.HeaderMap response_headers = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.HeaderMap, io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder, io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder>
getResponseHeadersFieldBuilder() {
if (responseHeadersBuilder_ == null) {
if (!(messagePieceCase_ == 5)) {
messagePiece_ = io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
}
responseHeadersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.HeaderMap, io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder, io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder>(
(io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_,
getParentForChildren(),
isClean());
messagePiece_ = null;
}
messagePieceCase_ = 5;
onChanged();;
return responseHeadersBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v2alpha.Body, io.envoyproxy.envoy.data.tap.v2alpha.Body.Builder, io.envoyproxy.envoy.data.tap.v2alpha.BodyOrBuilder> responseBodyChunkBuilder_;
/**
*
* Response body chunk.
*
*
* .envoy.data.tap.v2alpha.Body response_body_chunk = 6;
*/
public boolean hasResponseBodyChunk() {
return messagePieceCase_ == 6;
}
/**
*
* Response body chunk.
*
*
* .envoy.data.tap.v2alpha.Body response_body_chunk = 6;
*/
public io.envoyproxy.envoy.data.tap.v2alpha.Body getResponseBodyChunk() {
if (responseBodyChunkBuilder_ == null) {
if (messagePieceCase_ == 6) {
return (io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_;
}
return io.envoyproxy.envoy.data.tap.v2alpha.Body.getDefaultInstance();
} else {
if (messagePieceCase_ == 6) {
return responseBodyChunkBuilder_.getMessage();
}
return io.envoyproxy.envoy.data.tap.v2alpha.Body.getDefaultInstance();
}
}
/**
*
* Response body chunk.
*
*
* .envoy.data.tap.v2alpha.Body response_body_chunk = 6;
*/
public Builder setResponseBodyChunk(io.envoyproxy.envoy.data.tap.v2alpha.Body value) {
if (responseBodyChunkBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
messagePiece_ = value;
onChanged();
} else {
responseBodyChunkBuilder_.setMessage(value);
}
messagePieceCase_ = 6;
return this;
}
/**
*
* Response body chunk.
*
*
* .envoy.data.tap.v2alpha.Body response_body_chunk = 6;
*/
public Builder setResponseBodyChunk(
io.envoyproxy.envoy.data.tap.v2alpha.Body.Builder builderForValue) {
if (responseBodyChunkBuilder_ == null) {
messagePiece_ = builderForValue.build();
onChanged();
} else {
responseBodyChunkBuilder_.setMessage(builderForValue.build());
}
messagePieceCase_ = 6;
return this;
}
/**
*
* Response body chunk.
*
*
* .envoy.data.tap.v2alpha.Body response_body_chunk = 6;
*/
public Builder mergeResponseBodyChunk(io.envoyproxy.envoy.data.tap.v2alpha.Body value) {
if (responseBodyChunkBuilder_ == null) {
if (messagePieceCase_ == 6 &&
messagePiece_ != io.envoyproxy.envoy.data.tap.v2alpha.Body.getDefaultInstance()) {
messagePiece_ = io.envoyproxy.envoy.data.tap.v2alpha.Body.newBuilder((io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_)
.mergeFrom(value).buildPartial();
} else {
messagePiece_ = value;
}
onChanged();
} else {
if (messagePieceCase_ == 6) {
responseBodyChunkBuilder_.mergeFrom(value);
}
responseBodyChunkBuilder_.setMessage(value);
}
messagePieceCase_ = 6;
return this;
}
/**
*
* Response body chunk.
*
*
* .envoy.data.tap.v2alpha.Body response_body_chunk = 6;
*/
public Builder clearResponseBodyChunk() {
if (responseBodyChunkBuilder_ == null) {
if (messagePieceCase_ == 6) {
messagePieceCase_ = 0;
messagePiece_ = null;
onChanged();
}
} else {
if (messagePieceCase_ == 6) {
messagePieceCase_ = 0;
messagePiece_ = null;
}
responseBodyChunkBuilder_.clear();
}
return this;
}
/**
*
* Response body chunk.
*
*
* .envoy.data.tap.v2alpha.Body response_body_chunk = 6;
*/
public io.envoyproxy.envoy.data.tap.v2alpha.Body.Builder getResponseBodyChunkBuilder() {
return getResponseBodyChunkFieldBuilder().getBuilder();
}
/**
*
* Response body chunk.
*
*
* .envoy.data.tap.v2alpha.Body response_body_chunk = 6;
*/
public io.envoyproxy.envoy.data.tap.v2alpha.BodyOrBuilder getResponseBodyChunkOrBuilder() {
if ((messagePieceCase_ == 6) && (responseBodyChunkBuilder_ != null)) {
return responseBodyChunkBuilder_.getMessageOrBuilder();
} else {
if (messagePieceCase_ == 6) {
return (io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_;
}
return io.envoyproxy.envoy.data.tap.v2alpha.Body.getDefaultInstance();
}
}
/**
*
* Response body chunk.
*
*
* .envoy.data.tap.v2alpha.Body response_body_chunk = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v2alpha.Body, io.envoyproxy.envoy.data.tap.v2alpha.Body.Builder, io.envoyproxy.envoy.data.tap.v2alpha.BodyOrBuilder>
getResponseBodyChunkFieldBuilder() {
if (responseBodyChunkBuilder_ == null) {
if (!(messagePieceCase_ == 6)) {
messagePiece_ = io.envoyproxy.envoy.data.tap.v2alpha.Body.getDefaultInstance();
}
responseBodyChunkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v2alpha.Body, io.envoyproxy.envoy.data.tap.v2alpha.Body.Builder, io.envoyproxy.envoy.data.tap.v2alpha.BodyOrBuilder>(
(io.envoyproxy.envoy.data.tap.v2alpha.Body) messagePiece_,
getParentForChildren(),
isClean());
messagePiece_ = null;
}
messagePieceCase_ = 6;
onChanged();;
return responseBodyChunkBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.HeaderMap, io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder, io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder> responseTrailersBuilder_;
/**
*
* Response trailers.
*
*
* .envoy.api.v2.core.HeaderMap response_trailers = 7;
*/
public boolean hasResponseTrailers() {
return messagePieceCase_ == 7;
}
/**
*
* Response trailers.
*
*
* .envoy.api.v2.core.HeaderMap response_trailers = 7;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMap getResponseTrailers() {
if (responseTrailersBuilder_ == null) {
if (messagePieceCase_ == 7) {
return (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_;
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
} else {
if (messagePieceCase_ == 7) {
return responseTrailersBuilder_.getMessage();
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
}
}
/**
*
* Response trailers.
*
*
* .envoy.api.v2.core.HeaderMap response_trailers = 7;
*/
public Builder setResponseTrailers(io.envoyproxy.envoy.api.v2.core.HeaderMap value) {
if (responseTrailersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
messagePiece_ = value;
onChanged();
} else {
responseTrailersBuilder_.setMessage(value);
}
messagePieceCase_ = 7;
return this;
}
/**
*
* Response trailers.
*
*
* .envoy.api.v2.core.HeaderMap response_trailers = 7;
*/
public Builder setResponseTrailers(
io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder builderForValue) {
if (responseTrailersBuilder_ == null) {
messagePiece_ = builderForValue.build();
onChanged();
} else {
responseTrailersBuilder_.setMessage(builderForValue.build());
}
messagePieceCase_ = 7;
return this;
}
/**
*
* Response trailers.
*
*
* .envoy.api.v2.core.HeaderMap response_trailers = 7;
*/
public Builder mergeResponseTrailers(io.envoyproxy.envoy.api.v2.core.HeaderMap value) {
if (responseTrailersBuilder_ == null) {
if (messagePieceCase_ == 7 &&
messagePiece_ != io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance()) {
messagePiece_ = io.envoyproxy.envoy.api.v2.core.HeaderMap.newBuilder((io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_)
.mergeFrom(value).buildPartial();
} else {
messagePiece_ = value;
}
onChanged();
} else {
if (messagePieceCase_ == 7) {
responseTrailersBuilder_.mergeFrom(value);
}
responseTrailersBuilder_.setMessage(value);
}
messagePieceCase_ = 7;
return this;
}
/**
*
* Response trailers.
*
*
* .envoy.api.v2.core.HeaderMap response_trailers = 7;
*/
public Builder clearResponseTrailers() {
if (responseTrailersBuilder_ == null) {
if (messagePieceCase_ == 7) {
messagePieceCase_ = 0;
messagePiece_ = null;
onChanged();
}
} else {
if (messagePieceCase_ == 7) {
messagePieceCase_ = 0;
messagePiece_ = null;
}
responseTrailersBuilder_.clear();
}
return this;
}
/**
*
* Response trailers.
*
*
* .envoy.api.v2.core.HeaderMap response_trailers = 7;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder getResponseTrailersBuilder() {
return getResponseTrailersFieldBuilder().getBuilder();
}
/**
*
* Response trailers.
*
*
* .envoy.api.v2.core.HeaderMap response_trailers = 7;
*/
public io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder getResponseTrailersOrBuilder() {
if ((messagePieceCase_ == 7) && (responseTrailersBuilder_ != null)) {
return responseTrailersBuilder_.getMessageOrBuilder();
} else {
if (messagePieceCase_ == 7) {
return (io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_;
}
return io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
}
}
/**
*
* Response trailers.
*
*
* .envoy.api.v2.core.HeaderMap response_trailers = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.HeaderMap, io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder, io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder>
getResponseTrailersFieldBuilder() {
if (responseTrailersBuilder_ == null) {
if (!(messagePieceCase_ == 7)) {
messagePiece_ = io.envoyproxy.envoy.api.v2.core.HeaderMap.getDefaultInstance();
}
responseTrailersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.HeaderMap, io.envoyproxy.envoy.api.v2.core.HeaderMap.Builder, io.envoyproxy.envoy.api.v2.core.HeaderMapOrBuilder>(
(io.envoyproxy.envoy.api.v2.core.HeaderMap) messagePiece_,
getParentForChildren(),
isClean());
messagePiece_ = null;
}
messagePieceCase_ = 7;
onChanged();;
return responseTrailersBuilder_;
}
@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.HttpStreamedTraceSegment)
}
// @@protoc_insertion_point(class_scope:envoy.data.tap.v2alpha.HttpStreamedTraceSegment)
private static final io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment();
}
public static io.envoyproxy.envoy.data.tap.v2alpha.HttpStreamedTraceSegment getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HttpStreamedTraceSegment parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HttpStreamedTraceSegment(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.HttpStreamedTraceSegment getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}