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.
*
* Protobuf type {@code envoy.data.tap.v3.SocketEvent.Read}
*/
public static final class Read extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.tap.v3.SocketEvent.Read)
ReadOrBuilder {
private static final long serialVersionUID = 0L;
// Use Read.newBuilder() to construct.
private Read(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Read() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Read();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Read(
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.Body.Builder subBuilder = null;
if (data_ != null) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(io.envoyproxy.envoy.data.tap.v3.Body.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = 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.TransportProto.internal_static_envoy_data_tap_v3_SocketEvent_Read_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v3.TransportProto.internal_static_envoy_data_tap_v3_SocketEvent_Read_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read.class, io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read.Builder.class);
}
public static final int DATA_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.data.tap.v3.Body data_;
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3.Body data = 1;
* @return Whether the data field is set.
*/
@java.lang.Override
public boolean hasData() {
return data_ != null;
}
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3.Body data = 1;
* @return The data.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.Body getData() {
return data_ == null ? io.envoyproxy.envoy.data.tap.v3.Body.getDefaultInstance() : data_;
}
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3.Body data = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.BodyOrBuilder getDataOrBuilder() {
return getData();
}
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 (data_ != null) {
output.writeMessage(1, getData());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (data_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getData());
}
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.SocketEvent.Read)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read other = (io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read) obj;
if (hasData() != other.hasData()) return false;
if (hasData()) {
if (!getData()
.equals(other.getData())) 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 (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read 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.SocketEvent.Read parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read 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.SocketEvent.Read parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read 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.SocketEvent.Read 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.SocketEvent.Read 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.SocketEvent.Read 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.SocketEvent.Read 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.SocketEvent.Read 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.SocketEvent.Read 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.SocketEvent.Read 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;
}
/**
*
* Data read by Envoy from the transport socket.
*
*
* Protobuf type {@code envoy.data.tap.v3.SocketEvent.Read}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.tap.v3.SocketEvent.Read)
io.envoyproxy.envoy.data.tap.v3.SocketEvent.ReadOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.tap.v3.TransportProto.internal_static_envoy_data_tap_v3_SocketEvent_Read_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v3.TransportProto.internal_static_envoy_data_tap_v3_SocketEvent_Read_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read.class, io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read.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 (dataBuilder_ == null) {
data_ = null;
} else {
data_ = null;
dataBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.data.tap.v3.TransportProto.internal_static_envoy_data_tap_v3_SocketEvent_Read_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read build() {
io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read buildPartial() {
io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read result = new io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read(this);
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.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.SocketEvent.Read) {
return mergeFrom((io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read other) {
if (other == io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read.getDefaultInstance()) return this;
if (other.hasData()) {
mergeData(other.getData());
}
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.SocketEvent.Read parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.tap.v3.SocketEvent.Read) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.envoyproxy.envoy.data.tap.v3.Body data_;
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> dataBuilder_;
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3.Body data = 1;
* @return Whether the data field is set.
*/
public boolean hasData() {
return dataBuilder_ != null || data_ != null;
}
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3.Body data = 1;
* @return The data.
*/
public io.envoyproxy.envoy.data.tap.v3.Body getData() {
if (dataBuilder_ == null) {
return data_ == null ? io.envoyproxy.envoy.data.tap.v3.Body.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3.Body data = 1;
*/
public Builder setData(io.envoyproxy.envoy.data.tap.v3.Body value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
return this;
}
/**
*
* Data written by Envoy to the transport socket.
*
*
* Protobuf type {@code envoy.data.tap.v3.SocketEvent.Write}
*/
public static final class Write extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.tap.v3.SocketEvent.Write)
WriteOrBuilder {
private static final long serialVersionUID = 0L;
// Use Write.newBuilder() to construct.
private Write(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Write() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Write();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Write(
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.Body.Builder subBuilder = null;
if (data_ != null) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(io.envoyproxy.envoy.data.tap.v3.Body.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = subBuilder.buildPartial();
}
break;
}
case 16: {
endStream_ = input.readBool();
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.TransportProto.internal_static_envoy_data_tap_v3_SocketEvent_Write_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v3.TransportProto.internal_static_envoy_data_tap_v3_SocketEvent_Write_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write.class, io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write.Builder.class);
}
public static final int DATA_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.data.tap.v3.Body data_;
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3.Body data = 1;
* @return Whether the data field is set.
*/
@java.lang.Override
public boolean hasData() {
return data_ != null;
}
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3.Body data = 1;
* @return The data.
*/
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.Body getData() {
return data_ == null ? io.envoyproxy.envoy.data.tap.v3.Body.getDefaultInstance() : data_;
}
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3.Body data = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.BodyOrBuilder getDataOrBuilder() {
return getData();
}
public static final int END_STREAM_FIELD_NUMBER = 2;
private boolean endStream_;
/**
*
* Stream was half closed after this write.
*
*
* bool end_stream = 2;
* @return The endStream.
*/
@java.lang.Override
public boolean getEndStream() {
return endStream_;
}
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 (data_ != null) {
output.writeMessage(1, getData());
}
if (endStream_ != false) {
output.writeBool(2, endStream_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (data_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getData());
}
if (endStream_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, endStream_);
}
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.SocketEvent.Write)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write other = (io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write) obj;
if (hasData() != other.hasData()) return false;
if (hasData()) {
if (!getData()
.equals(other.getData())) return false;
}
if (getEndStream()
!= other.getEndStream()) 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 (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
hash = (37 * hash) + END_STREAM_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEndStream());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write 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.SocketEvent.Write parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write 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.SocketEvent.Write parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write 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.SocketEvent.Write 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.SocketEvent.Write 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.SocketEvent.Write 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.SocketEvent.Write 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.SocketEvent.Write 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.SocketEvent.Write 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.SocketEvent.Write 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;
}
/**
*
* Data written by Envoy to the transport socket.
*
*
* Protobuf type {@code envoy.data.tap.v3.SocketEvent.Write}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.tap.v3.SocketEvent.Write)
io.envoyproxy.envoy.data.tap.v3.SocketEvent.WriteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.tap.v3.TransportProto.internal_static_envoy_data_tap_v3_SocketEvent_Write_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v3.TransportProto.internal_static_envoy_data_tap_v3_SocketEvent_Write_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write.class, io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write.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 (dataBuilder_ == null) {
data_ = null;
} else {
data_ = null;
dataBuilder_ = null;
}
endStream_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.data.tap.v3.TransportProto.internal_static_envoy_data_tap_v3_SocketEvent_Write_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write build() {
io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write buildPartial() {
io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write result = new io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write(this);
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
result.endStream_ = endStream_;
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.SocketEvent.Write) {
return mergeFrom((io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write other) {
if (other == io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write.getDefaultInstance()) return this;
if (other.hasData()) {
mergeData(other.getData());
}
if (other.getEndStream() != false) {
setEndStream(other.getEndStream());
}
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.SocketEvent.Write parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.tap.v3.SocketEvent.Write) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.envoyproxy.envoy.data.tap.v3.Body data_;
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> dataBuilder_;
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3.Body data = 1;
* @return Whether the data field is set.
*/
public boolean hasData() {
return dataBuilder_ != null || data_ != null;
}
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3.Body data = 1;
* @return The data.
*/
public io.envoyproxy.envoy.data.tap.v3.Body getData() {
if (dataBuilder_ == null) {
return data_ == null ? io.envoyproxy.envoy.data.tap.v3.Body.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3.Body data = 1;
*/
public Builder setData(io.envoyproxy.envoy.data.tap.v3.Body value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
return this;
}
/**
*