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.v3.HttpBufferedTrace Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/data/tap/v3/http.proto
package io.envoyproxy.envoy.data.tap.v3;
/**
*
* A fully buffered HTTP trace message.
*
*
* Protobuf type {@code envoy.data.tap.v3.HttpBufferedTrace}
*/
public final class HttpBufferedTrace extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.tap.v3.HttpBufferedTrace)
HttpBufferedTraceOrBuilder {
private static final long serialVersionUID = 0L;
// Use HttpBufferedTrace.newBuilder() to construct.
private HttpBufferedTrace(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HttpBufferedTrace() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HttpBufferedTrace();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HttpBufferedTrace(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.Builder subBuilder = null;
if (request_ != null) {
subBuilder = request_.toBuilder();
}
request_ = input.readMessage(io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(request_);
request_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.Builder subBuilder = null;
if (response_ != null) {
subBuilder = response_.toBuilder();
}
response_ = input.readMessage(io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(response_);
response_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.tap.v3.HttpProto.internal_static_envoy_data_tap_v3_HttpBufferedTrace_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v3.HttpProto.internal_static_envoy_data_tap_v3_HttpBufferedTrace_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.class, io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Builder.class);
}
public interface MessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.data.tap.v3.HttpBufferedTrace.Message)
com.google.protobuf.MessageOrBuilder {
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
java.util.List
getHeadersList();
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
io.envoyproxy.envoy.config.core.v3.HeaderValue getHeaders(int index);
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
int getHeadersCount();
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
java.util.List extends io.envoyproxy.envoy.config.core.v3.HeaderValueOrBuilder>
getHeadersOrBuilderList();
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
io.envoyproxy.envoy.config.core.v3.HeaderValueOrBuilder getHeadersOrBuilder(
int index);
/**
*
* Message body.
*
*
* .envoy.data.tap.v3.Body body = 2;
* @return Whether the body field is set.
*/
boolean hasBody();
/**
*
* Message body.
*
*
* .envoy.data.tap.v3.Body body = 2;
* @return The body.
*/
io.envoyproxy.envoy.data.tap.v3.Body getBody();
/**
*
* Message body.
*
*
* .envoy.data.tap.v3.Body body = 2;
*/
io.envoyproxy.envoy.data.tap.v3.BodyOrBuilder getBodyOrBuilder();
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
java.util.List
getTrailersList();
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
io.envoyproxy.envoy.config.core.v3.HeaderValue getTrailers(int index);
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
int getTrailersCount();
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
java.util.List extends io.envoyproxy.envoy.config.core.v3.HeaderValueOrBuilder>
getTrailersOrBuilderList();
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
io.envoyproxy.envoy.config.core.v3.HeaderValueOrBuilder getTrailersOrBuilder(
int index);
}
/**
*
* HTTP message wrapper.
*
*
* Protobuf type {@code envoy.data.tap.v3.HttpBufferedTrace.Message}
*/
public static final class Message extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.tap.v3.HttpBufferedTrace.Message)
MessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use Message.newBuilder() to construct.
private Message(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Message() {
headers_ = java.util.Collections.emptyList();
trailers_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Message();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Message(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
headers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
headers_.add(
input.readMessage(io.envoyproxy.envoy.config.core.v3.HeaderValue.parser(), extensionRegistry));
break;
}
case 18: {
io.envoyproxy.envoy.data.tap.v3.Body.Builder subBuilder = null;
if (body_ != null) {
subBuilder = body_.toBuilder();
}
body_ = input.readMessage(io.envoyproxy.envoy.data.tap.v3.Body.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(body_);
body_ = subBuilder.buildPartial();
}
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
trailers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
trailers_.add(
input.readMessage(io.envoyproxy.envoy.config.core.v3.HeaderValue.parser(), extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
headers_ = java.util.Collections.unmodifiableList(headers_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
trailers_ = java.util.Collections.unmodifiableList(trailers_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.tap.v3.HttpProto.internal_static_envoy_data_tap_v3_HttpBufferedTrace_Message_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v3.HttpProto.internal_static_envoy_data_tap_v3_HttpBufferedTrace_Message_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.class, io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.Builder.class);
}
public static final int HEADERS_FIELD_NUMBER = 1;
private java.util.List headers_;
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
@java.lang.Override
public java.util.List getHeadersList() {
return headers_;
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.config.core.v3.HeaderValueOrBuilder>
getHeadersOrBuilderList() {
return headers_;
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
@java.lang.Override
public int getHeadersCount() {
return headers_.size();
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.HeaderValue getHeaders(int index) {
return headers_.get(index);
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.HeaderValueOrBuilder getHeadersOrBuilder(
int index) {
return headers_.get(index);
}
public static final int BODY_FIELD_NUMBER = 2;
private io.envoyproxy.envoy.data.tap.v3.Body body_;
/**
*
* Message body.
*
*
* .envoy.data.tap.v3.Body body = 2;
* @return Whether the body field is set.
*/
@java.lang.Override
public boolean hasBody() {
return body_ != null;
}
/**
*
* Message body.
*
*
* .envoy.data.tap.v3.Body body = 2;
* @return The body.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.Body getBody() {
return body_ == null ? io.envoyproxy.envoy.data.tap.v3.Body.getDefaultInstance() : body_;
}
/**
*
* Message body.
*
*
* .envoy.data.tap.v3.Body body = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.BodyOrBuilder getBodyOrBuilder() {
return getBody();
}
public static final int TRAILERS_FIELD_NUMBER = 3;
private java.util.List trailers_;
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
@java.lang.Override
public java.util.List getTrailersList() {
return trailers_;
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.config.core.v3.HeaderValueOrBuilder>
getTrailersOrBuilderList() {
return trailers_;
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
@java.lang.Override
public int getTrailersCount() {
return trailers_.size();
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.HeaderValue getTrailers(int index) {
return trailers_.get(index);
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.HeaderValueOrBuilder getTrailersOrBuilder(
int index) {
return trailers_.get(index);
}
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 {
for (int i = 0; i < headers_.size(); i++) {
output.writeMessage(1, headers_.get(i));
}
if (body_ != null) {
output.writeMessage(2, getBody());
}
for (int i = 0; i < trailers_.size(); i++) {
output.writeMessage(3, trailers_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < headers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, headers_.get(i));
}
if (body_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBody());
}
for (int i = 0; i < trailers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, trailers_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message other = (io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message) obj;
if (!getHeadersList()
.equals(other.getHeadersList())) return false;
if (hasBody() != other.hasBody()) return false;
if (hasBody()) {
if (!getBody()
.equals(other.getBody())) return false;
}
if (!getTrailersList()
.equals(other.getTrailersList())) return false;
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();
if (getHeadersCount() > 0) {
hash = (37 * hash) + HEADERS_FIELD_NUMBER;
hash = (53 * hash) + getHeadersList().hashCode();
}
if (hasBody()) {
hash = (37 * hash) + BODY_FIELD_NUMBER;
hash = (53 * hash) + getBody().hashCode();
}
if (getTrailersCount() > 0) {
hash = (37 * hash) + TRAILERS_FIELD_NUMBER;
hash = (53 * hash) + getTrailersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message 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;
}
/**
*
* HTTP message wrapper.
*
*
* Protobuf type {@code envoy.data.tap.v3.HttpBufferedTrace.Message}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.tap.v3.HttpBufferedTrace.Message)
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.MessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.tap.v3.HttpProto.internal_static_envoy_data_tap_v3_HttpBufferedTrace_Message_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v3.HttpProto.internal_static_envoy_data_tap_v3_HttpBufferedTrace_Message_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.class, io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getHeadersFieldBuilder();
getTrailersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (headersBuilder_ == null) {
headers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
headersBuilder_.clear();
}
if (bodyBuilder_ == null) {
body_ = null;
} else {
body_ = null;
bodyBuilder_ = null;
}
if (trailersBuilder_ == null) {
trailers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
trailersBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.data.tap.v3.HttpProto.internal_static_envoy_data_tap_v3_HttpBufferedTrace_Message_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message build() {
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message buildPartial() {
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message result = new io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message(this);
int from_bitField0_ = bitField0_;
if (headersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
headers_ = java.util.Collections.unmodifiableList(headers_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.headers_ = headers_;
} else {
result.headers_ = headersBuilder_.build();
}
if (bodyBuilder_ == null) {
result.body_ = body_;
} else {
result.body_ = bodyBuilder_.build();
}
if (trailersBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
trailers_ = java.util.Collections.unmodifiableList(trailers_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.trailers_ = trailers_;
} else {
result.trailers_ = trailersBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message) {
return mergeFrom((io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message other) {
if (other == io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.getDefaultInstance()) return this;
if (headersBuilder_ == null) {
if (!other.headers_.isEmpty()) {
if (headers_.isEmpty()) {
headers_ = other.headers_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureHeadersIsMutable();
headers_.addAll(other.headers_);
}
onChanged();
}
} else {
if (!other.headers_.isEmpty()) {
if (headersBuilder_.isEmpty()) {
headersBuilder_.dispose();
headersBuilder_ = null;
headers_ = other.headers_;
bitField0_ = (bitField0_ & ~0x00000001);
headersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getHeadersFieldBuilder() : null;
} else {
headersBuilder_.addAllMessages(other.headers_);
}
}
}
if (other.hasBody()) {
mergeBody(other.getBody());
}
if (trailersBuilder_ == null) {
if (!other.trailers_.isEmpty()) {
if (trailers_.isEmpty()) {
trailers_ = other.trailers_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTrailersIsMutable();
trailers_.addAll(other.trailers_);
}
onChanged();
}
} else {
if (!other.trailers_.isEmpty()) {
if (trailersBuilder_.isEmpty()) {
trailersBuilder_.dispose();
trailersBuilder_ = null;
trailers_ = other.trailers_;
bitField0_ = (bitField0_ & ~0x00000002);
trailersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTrailersFieldBuilder() : null;
} else {
trailersBuilder_.addAllMessages(other.trailers_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List headers_ =
java.util.Collections.emptyList();
private void ensureHeadersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
headers_ = new java.util.ArrayList(headers_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.HeaderValue, io.envoyproxy.envoy.config.core.v3.HeaderValue.Builder, io.envoyproxy.envoy.config.core.v3.HeaderValueOrBuilder> headersBuilder_;
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
public java.util.List getHeadersList() {
if (headersBuilder_ == null) {
return java.util.Collections.unmodifiableList(headers_);
} else {
return headersBuilder_.getMessageList();
}
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
public int getHeadersCount() {
if (headersBuilder_ == null) {
return headers_.size();
} else {
return headersBuilder_.getCount();
}
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValue getHeaders(int index) {
if (headersBuilder_ == null) {
return headers_.get(index);
} else {
return headersBuilder_.getMessage(index);
}
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
public Builder setHeaders(
int index, io.envoyproxy.envoy.config.core.v3.HeaderValue value) {
if (headersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeadersIsMutable();
headers_.set(index, value);
onChanged();
} else {
headersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
public Builder setHeaders(
int index, io.envoyproxy.envoy.config.core.v3.HeaderValue.Builder builderForValue) {
if (headersBuilder_ == null) {
ensureHeadersIsMutable();
headers_.set(index, builderForValue.build());
onChanged();
} else {
headersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
public Builder addHeaders(io.envoyproxy.envoy.config.core.v3.HeaderValue value) {
if (headersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeadersIsMutable();
headers_.add(value);
onChanged();
} else {
headersBuilder_.addMessage(value);
}
return this;
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
public Builder addHeaders(
int index, io.envoyproxy.envoy.config.core.v3.HeaderValue value) {
if (headersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHeadersIsMutable();
headers_.add(index, value);
onChanged();
} else {
headersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
public Builder addHeaders(
io.envoyproxy.envoy.config.core.v3.HeaderValue.Builder builderForValue) {
if (headersBuilder_ == null) {
ensureHeadersIsMutable();
headers_.add(builderForValue.build());
onChanged();
} else {
headersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
public Builder addHeaders(
int index, io.envoyproxy.envoy.config.core.v3.HeaderValue.Builder builderForValue) {
if (headersBuilder_ == null) {
ensureHeadersIsMutable();
headers_.add(index, builderForValue.build());
onChanged();
} else {
headersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
public Builder addAllHeaders(
java.lang.Iterable extends io.envoyproxy.envoy.config.core.v3.HeaderValue> values) {
if (headersBuilder_ == null) {
ensureHeadersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, headers_);
onChanged();
} else {
headersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
public Builder clearHeaders() {
if (headersBuilder_ == null) {
headers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
headersBuilder_.clear();
}
return this;
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
public Builder removeHeaders(int index) {
if (headersBuilder_ == null) {
ensureHeadersIsMutable();
headers_.remove(index);
onChanged();
} else {
headersBuilder_.remove(index);
}
return this;
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValue.Builder getHeadersBuilder(
int index) {
return getHeadersFieldBuilder().getBuilder(index);
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValueOrBuilder getHeadersOrBuilder(
int index) {
if (headersBuilder_ == null) {
return headers_.get(index); } else {
return headersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
public java.util.List extends io.envoyproxy.envoy.config.core.v3.HeaderValueOrBuilder>
getHeadersOrBuilderList() {
if (headersBuilder_ != null) {
return headersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(headers_);
}
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValue.Builder addHeadersBuilder() {
return getHeadersFieldBuilder().addBuilder(
io.envoyproxy.envoy.config.core.v3.HeaderValue.getDefaultInstance());
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValue.Builder addHeadersBuilder(
int index) {
return getHeadersFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.config.core.v3.HeaderValue.getDefaultInstance());
}
/**
*
* Message headers.
*
*
* repeated .envoy.config.core.v3.HeaderValue headers = 1;
*/
public java.util.List
getHeadersBuilderList() {
return getHeadersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.HeaderValue, io.envoyproxy.envoy.config.core.v3.HeaderValue.Builder, io.envoyproxy.envoy.config.core.v3.HeaderValueOrBuilder>
getHeadersFieldBuilder() {
if (headersBuilder_ == null) {
headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.HeaderValue, io.envoyproxy.envoy.config.core.v3.HeaderValue.Builder, io.envoyproxy.envoy.config.core.v3.HeaderValueOrBuilder>(
headers_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
headers_ = null;
}
return headersBuilder_;
}
private io.envoyproxy.envoy.data.tap.v3.Body body_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3.Body, io.envoyproxy.envoy.data.tap.v3.Body.Builder, io.envoyproxy.envoy.data.tap.v3.BodyOrBuilder> bodyBuilder_;
/**
*
* Message body.
*
*
* .envoy.data.tap.v3.Body body = 2;
* @return Whether the body field is set.
*/
public boolean hasBody() {
return bodyBuilder_ != null || body_ != null;
}
/**
*
* Message body.
*
*
* .envoy.data.tap.v3.Body body = 2;
* @return The body.
*/
public io.envoyproxy.envoy.data.tap.v3.Body getBody() {
if (bodyBuilder_ == null) {
return body_ == null ? io.envoyproxy.envoy.data.tap.v3.Body.getDefaultInstance() : body_;
} else {
return bodyBuilder_.getMessage();
}
}
/**
*
* Message body.
*
*
* .envoy.data.tap.v3.Body body = 2;
*/
public Builder setBody(io.envoyproxy.envoy.data.tap.v3.Body value) {
if (bodyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
body_ = value;
onChanged();
} else {
bodyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Message body.
*
*
* .envoy.data.tap.v3.Body body = 2;
*/
public Builder setBody(
io.envoyproxy.envoy.data.tap.v3.Body.Builder builderForValue) {
if (bodyBuilder_ == null) {
body_ = builderForValue.build();
onChanged();
} else {
bodyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Message body.
*
*
* .envoy.data.tap.v3.Body body = 2;
*/
public Builder mergeBody(io.envoyproxy.envoy.data.tap.v3.Body value) {
if (bodyBuilder_ == null) {
if (body_ != null) {
body_ =
io.envoyproxy.envoy.data.tap.v3.Body.newBuilder(body_).mergeFrom(value).buildPartial();
} else {
body_ = value;
}
onChanged();
} else {
bodyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Message body.
*
*
* .envoy.data.tap.v3.Body body = 2;
*/
public Builder clearBody() {
if (bodyBuilder_ == null) {
body_ = null;
onChanged();
} else {
body_ = null;
bodyBuilder_ = null;
}
return this;
}
/**
*
* Message body.
*
*
* .envoy.data.tap.v3.Body body = 2;
*/
public io.envoyproxy.envoy.data.tap.v3.Body.Builder getBodyBuilder() {
onChanged();
return getBodyFieldBuilder().getBuilder();
}
/**
*
* Message body.
*
*
* .envoy.data.tap.v3.Body body = 2;
*/
public io.envoyproxy.envoy.data.tap.v3.BodyOrBuilder getBodyOrBuilder() {
if (bodyBuilder_ != null) {
return bodyBuilder_.getMessageOrBuilder();
} else {
return body_ == null ?
io.envoyproxy.envoy.data.tap.v3.Body.getDefaultInstance() : body_;
}
}
/**
*
* Message body.
*
*
* .envoy.data.tap.v3.Body body = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3.Body, io.envoyproxy.envoy.data.tap.v3.Body.Builder, io.envoyproxy.envoy.data.tap.v3.BodyOrBuilder>
getBodyFieldBuilder() {
if (bodyBuilder_ == null) {
bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3.Body, io.envoyproxy.envoy.data.tap.v3.Body.Builder, io.envoyproxy.envoy.data.tap.v3.BodyOrBuilder>(
getBody(),
getParentForChildren(),
isClean());
body_ = null;
}
return bodyBuilder_;
}
private java.util.List trailers_ =
java.util.Collections.emptyList();
private void ensureTrailersIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
trailers_ = new java.util.ArrayList(trailers_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.HeaderValue, io.envoyproxy.envoy.config.core.v3.HeaderValue.Builder, io.envoyproxy.envoy.config.core.v3.HeaderValueOrBuilder> trailersBuilder_;
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
public java.util.List getTrailersList() {
if (trailersBuilder_ == null) {
return java.util.Collections.unmodifiableList(trailers_);
} else {
return trailersBuilder_.getMessageList();
}
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
public int getTrailersCount() {
if (trailersBuilder_ == null) {
return trailers_.size();
} else {
return trailersBuilder_.getCount();
}
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValue getTrailers(int index) {
if (trailersBuilder_ == null) {
return trailers_.get(index);
} else {
return trailersBuilder_.getMessage(index);
}
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
public Builder setTrailers(
int index, io.envoyproxy.envoy.config.core.v3.HeaderValue value) {
if (trailersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTrailersIsMutable();
trailers_.set(index, value);
onChanged();
} else {
trailersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
public Builder setTrailers(
int index, io.envoyproxy.envoy.config.core.v3.HeaderValue.Builder builderForValue) {
if (trailersBuilder_ == null) {
ensureTrailersIsMutable();
trailers_.set(index, builderForValue.build());
onChanged();
} else {
trailersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
public Builder addTrailers(io.envoyproxy.envoy.config.core.v3.HeaderValue value) {
if (trailersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTrailersIsMutable();
trailers_.add(value);
onChanged();
} else {
trailersBuilder_.addMessage(value);
}
return this;
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
public Builder addTrailers(
int index, io.envoyproxy.envoy.config.core.v3.HeaderValue value) {
if (trailersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTrailersIsMutable();
trailers_.add(index, value);
onChanged();
} else {
trailersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
public Builder addTrailers(
io.envoyproxy.envoy.config.core.v3.HeaderValue.Builder builderForValue) {
if (trailersBuilder_ == null) {
ensureTrailersIsMutable();
trailers_.add(builderForValue.build());
onChanged();
} else {
trailersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
public Builder addTrailers(
int index, io.envoyproxy.envoy.config.core.v3.HeaderValue.Builder builderForValue) {
if (trailersBuilder_ == null) {
ensureTrailersIsMutable();
trailers_.add(index, builderForValue.build());
onChanged();
} else {
trailersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
public Builder addAllTrailers(
java.lang.Iterable extends io.envoyproxy.envoy.config.core.v3.HeaderValue> values) {
if (trailersBuilder_ == null) {
ensureTrailersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, trailers_);
onChanged();
} else {
trailersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
public Builder clearTrailers() {
if (trailersBuilder_ == null) {
trailers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
trailersBuilder_.clear();
}
return this;
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
public Builder removeTrailers(int index) {
if (trailersBuilder_ == null) {
ensureTrailersIsMutable();
trailers_.remove(index);
onChanged();
} else {
trailersBuilder_.remove(index);
}
return this;
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValue.Builder getTrailersBuilder(
int index) {
return getTrailersFieldBuilder().getBuilder(index);
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValueOrBuilder getTrailersOrBuilder(
int index) {
if (trailersBuilder_ == null) {
return trailers_.get(index); } else {
return trailersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
public java.util.List extends io.envoyproxy.envoy.config.core.v3.HeaderValueOrBuilder>
getTrailersOrBuilderList() {
if (trailersBuilder_ != null) {
return trailersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(trailers_);
}
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValue.Builder addTrailersBuilder() {
return getTrailersFieldBuilder().addBuilder(
io.envoyproxy.envoy.config.core.v3.HeaderValue.getDefaultInstance());
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
public io.envoyproxy.envoy.config.core.v3.HeaderValue.Builder addTrailersBuilder(
int index) {
return getTrailersFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.config.core.v3.HeaderValue.getDefaultInstance());
}
/**
*
* Message trailers.
*
*
* repeated .envoy.config.core.v3.HeaderValue trailers = 3;
*/
public java.util.List
getTrailersBuilderList() {
return getTrailersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.HeaderValue, io.envoyproxy.envoy.config.core.v3.HeaderValue.Builder, io.envoyproxy.envoy.config.core.v3.HeaderValueOrBuilder>
getTrailersFieldBuilder() {
if (trailersBuilder_ == null) {
trailersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.HeaderValue, io.envoyproxy.envoy.config.core.v3.HeaderValue.Builder, io.envoyproxy.envoy.config.core.v3.HeaderValueOrBuilder>(
trailers_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
trailers_ = null;
}
return trailersBuilder_;
}
@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.v3.HttpBufferedTrace.Message)
}
// @@protoc_insertion_point(class_scope:envoy.data.tap.v3.HttpBufferedTrace.Message)
private static final io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message();
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Message parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Message(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.v3.HttpBufferedTrace.Message getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int REQUEST_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message request_;
/**
*
* Request message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message request = 1;
* @return Whether the request field is set.
*/
@java.lang.Override
public boolean hasRequest() {
return request_ != null;
}
/**
*
* Request message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message request = 1;
* @return The request.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message getRequest() {
return request_ == null ? io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.getDefaultInstance() : request_;
}
/**
*
* Request message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message request = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.MessageOrBuilder getRequestOrBuilder() {
return getRequest();
}
public static final int RESPONSE_FIELD_NUMBER = 2;
private io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message response_;
/**
*
* Response message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message response = 2;
* @return Whether the response field is set.
*/
@java.lang.Override
public boolean hasResponse() {
return response_ != null;
}
/**
*
* Response message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message response = 2;
* @return The response.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message getResponse() {
return response_ == null ? io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.getDefaultInstance() : response_;
}
/**
*
* Response message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message response = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.MessageOrBuilder getResponseOrBuilder() {
return getResponse();
}
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 (request_ != null) {
output.writeMessage(1, getRequest());
}
if (response_ != null) {
output.writeMessage(2, getResponse());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (request_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRequest());
}
if (response_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getResponse());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace other = (io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace) obj;
if (hasRequest() != other.hasRequest()) return false;
if (hasRequest()) {
if (!getRequest()
.equals(other.getRequest())) return false;
}
if (hasResponse() != other.hasResponse()) return false;
if (hasResponse()) {
if (!getResponse()
.equals(other.getResponse())) return false;
}
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();
if (hasRequest()) {
hash = (37 * hash) + REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getRequest().hashCode();
}
if (hasResponse()) {
hash = (37 * hash) + RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getResponse().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace 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 fully buffered HTTP trace message.
*
*
* Protobuf type {@code envoy.data.tap.v3.HttpBufferedTrace}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.tap.v3.HttpBufferedTrace)
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTraceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.tap.v3.HttpProto.internal_static_envoy_data_tap_v3_HttpBufferedTrace_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v3.HttpProto.internal_static_envoy_data_tap_v3_HttpBufferedTrace_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.class, io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.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();
if (requestBuilder_ == null) {
request_ = null;
} else {
request_ = null;
requestBuilder_ = null;
}
if (responseBuilder_ == null) {
response_ = null;
} else {
response_ = null;
responseBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.data.tap.v3.HttpProto.internal_static_envoy_data_tap_v3_HttpBufferedTrace_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace build() {
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace buildPartial() {
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace result = new io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace(this);
if (requestBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = requestBuilder_.build();
}
if (responseBuilder_ == null) {
result.response_ = response_;
} else {
result.response_ = responseBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace) {
return mergeFrom((io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace other) {
if (other == io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.getDefaultInstance()) return this;
if (other.hasRequest()) {
mergeRequest(other.getRequest());
}
if (other.hasResponse()) {
mergeResponse(other.getResponse());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message request_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message, io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.Builder, io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.MessageOrBuilder> requestBuilder_;
/**
*
* Request message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message request = 1;
* @return Whether the request field is set.
*/
public boolean hasRequest() {
return requestBuilder_ != null || request_ != null;
}
/**
*
* Request message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message request = 1;
* @return The request.
*/
public io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message getRequest() {
if (requestBuilder_ == null) {
return request_ == null ? io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.getDefaultInstance() : request_;
} else {
return requestBuilder_.getMessage();
}
}
/**
*
* Request message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message request = 1;
*/
public Builder setRequest(io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
requestBuilder_.setMessage(value);
}
return this;
}
/**
*
* Request message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message request = 1;
*/
public Builder setRequest(
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.Builder builderForValue) {
if (requestBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
requestBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Request message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message request = 1;
*/
public Builder mergeRequest(io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message value) {
if (requestBuilder_ == null) {
if (request_ != null) {
request_ =
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.newBuilder(request_).mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
requestBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Request message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message request = 1;
*/
public Builder clearRequest() {
if (requestBuilder_ == null) {
request_ = null;
onChanged();
} else {
request_ = null;
requestBuilder_ = null;
}
return this;
}
/**
*
* Request message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message request = 1;
*/
public io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.Builder getRequestBuilder() {
onChanged();
return getRequestFieldBuilder().getBuilder();
}
/**
*
* Request message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message request = 1;
*/
public io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.MessageOrBuilder getRequestOrBuilder() {
if (requestBuilder_ != null) {
return requestBuilder_.getMessageOrBuilder();
} else {
return request_ == null ?
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.getDefaultInstance() : request_;
}
}
/**
*
* Request message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message request = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message, io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.Builder, io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.MessageOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message, io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.Builder, io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.MessageOrBuilder>(
getRequest(),
getParentForChildren(),
isClean());
request_ = null;
}
return requestBuilder_;
}
private io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message response_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message, io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.Builder, io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.MessageOrBuilder> responseBuilder_;
/**
*
* Response message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message response = 2;
* @return Whether the response field is set.
*/
public boolean hasResponse() {
return responseBuilder_ != null || response_ != null;
}
/**
*
* Response message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message response = 2;
* @return The response.
*/
public io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message getResponse() {
if (responseBuilder_ == null) {
return response_ == null ? io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.getDefaultInstance() : response_;
} else {
return responseBuilder_.getMessage();
}
}
/**
*
* Response message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message response = 2;
*/
public Builder setResponse(io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message value) {
if (responseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
response_ = value;
onChanged();
} else {
responseBuilder_.setMessage(value);
}
return this;
}
/**
*
* Response message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message response = 2;
*/
public Builder setResponse(
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.Builder builderForValue) {
if (responseBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
responseBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Response message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message response = 2;
*/
public Builder mergeResponse(io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message value) {
if (responseBuilder_ == null) {
if (response_ != null) {
response_ =
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.newBuilder(response_).mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
responseBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Response message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message response = 2;
*/
public Builder clearResponse() {
if (responseBuilder_ == null) {
response_ = null;
onChanged();
} else {
response_ = null;
responseBuilder_ = null;
}
return this;
}
/**
*
* Response message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message response = 2;
*/
public io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.Builder getResponseBuilder() {
onChanged();
return getResponseFieldBuilder().getBuilder();
}
/**
*
* Response message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message response = 2;
*/
public io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.MessageOrBuilder getResponseOrBuilder() {
if (responseBuilder_ != null) {
return responseBuilder_.getMessageOrBuilder();
} else {
return response_ == null ?
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.getDefaultInstance() : response_;
}
}
/**
*
* Response message.
*
*
* .envoy.data.tap.v3.HttpBufferedTrace.Message response = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message, io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.Builder, io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.MessageOrBuilder>
getResponseFieldBuilder() {
if (responseBuilder_ == null) {
responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message, io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.Message.Builder, io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace.MessageOrBuilder>(
getResponse(),
getParentForChildren(),
isClean());
response_ = null;
}
return responseBuilder_;
}
@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.v3.HttpBufferedTrace)
}
// @@protoc_insertion_point(class_scope:envoy.data.tap.v3.HttpBufferedTrace)
private static final io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace();
}
public static io.envoyproxy.envoy.data.tap.v3.HttpBufferedTrace getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HttpBufferedTrace parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HttpBufferedTrace(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.v3.HttpBufferedTrace getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}