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.v3alpha.SocketEvent Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/data/tap/v3alpha/transport.proto
package io.envoyproxy.envoy.data.tap.v3alpha;
/**
*
* Event in a socket trace.
*
*
* Protobuf type {@code envoy.data.tap.v3alpha.SocketEvent}
*/
public final class SocketEvent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.tap.v3alpha.SocketEvent)
SocketEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use SocketEvent.newBuilder() to construct.
private SocketEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SocketEvent() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SocketEvent();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SocketEvent(
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: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (timestamp_ != null) {
subBuilder = timestamp_.toBuilder();
}
timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(timestamp_);
timestamp_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.Builder subBuilder = null;
if (eventSelectorCase_ == 2) {
subBuilder = ((io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read) eventSelector_).toBuilder();
}
eventSelector_ =
input.readMessage(io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read) eventSelector_);
eventSelector_ = subBuilder.buildPartial();
}
eventSelectorCase_ = 2;
break;
}
case 26: {
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.Builder subBuilder = null;
if (eventSelectorCase_ == 3) {
subBuilder = ((io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write) eventSelector_).toBuilder();
}
eventSelector_ =
input.readMessage(io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write) eventSelector_);
eventSelector_ = subBuilder.buildPartial();
}
eventSelectorCase_ = 3;
break;
}
case 34: {
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.Builder subBuilder = null;
if (eventSelectorCase_ == 4) {
subBuilder = ((io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed) eventSelector_).toBuilder();
}
eventSelector_ =
input.readMessage(io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed) eventSelector_);
eventSelector_ = subBuilder.buildPartial();
}
eventSelectorCase_ = 4;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.class, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Builder.class);
}
public interface ReadOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.data.tap.v3alpha.SocketEvent.Read)
com.google.protobuf.MessageOrBuilder {
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
boolean hasData();
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
io.envoyproxy.envoy.data.tap.v3alpha.Body getData();
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
io.envoyproxy.envoy.data.tap.v3alpha.BodyOrBuilder getDataOrBuilder();
}
/**
*
* Data read by Envoy from the transport socket.
*
*
* Protobuf type {@code envoy.data.tap.v3alpha.SocketEvent.Read}
*/
public static final class Read extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.tap.v3alpha.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.v3alpha.Body.Builder subBuilder = null;
if (data_ != null) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(io.envoyproxy.envoy.data.tap.v3alpha.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 (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.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_Read_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_Read_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.class, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.Builder.class);
}
public static final int DATA_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.data.tap.v3alpha.Body data_;
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public boolean hasData() {
return data_ != null;
}
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.Body getData() {
return data_ == null ? io.envoyproxy.envoy.data.tap.v3alpha.Body.getDefaultInstance() : data_;
}
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.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.v3alpha.SocketEvent.Read)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read other = (io.envoyproxy.envoy.data.tap.v3alpha.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.v3alpha.SocketEvent.Read parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3alpha.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.v3alpha.SocketEvent.Read parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3alpha.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.v3alpha.SocketEvent.Read parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.SocketEvent.Read}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.tap.v3alpha.SocketEvent.Read)
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.ReadOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_Read_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_Read_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.class, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.tap.v3alpha.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.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_Read_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read build() {
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read buildPartial() {
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read result = new io.envoyproxy.envoy.data.tap.v3alpha.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.v3alpha.SocketEvent.Read) {
return mergeFrom((io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read other) {
if (other == io.envoyproxy.envoy.data.tap.v3alpha.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.v3alpha.SocketEvent.Read parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.envoyproxy.envoy.data.tap.v3alpha.Body data_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3alpha.Body, io.envoyproxy.envoy.data.tap.v3alpha.Body.Builder, io.envoyproxy.envoy.data.tap.v3alpha.BodyOrBuilder> dataBuilder_;
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public boolean hasData() {
return dataBuilder_ != null || data_ != null;
}
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.Body getData() {
if (dataBuilder_ == null) {
return data_ == null ? io.envoyproxy.envoy.data.tap.v3alpha.Body.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public Builder setData(io.envoyproxy.envoy.data.tap.v3alpha.Body value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
return this;
}
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public Builder setData(
io.envoyproxy.envoy.data.tap.v3alpha.Body.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public Builder mergeData(io.envoyproxy.envoy.data.tap.v3alpha.Body value) {
if (dataBuilder_ == null) {
if (data_ != null) {
data_ =
io.envoyproxy.envoy.data.tap.v3alpha.Body.newBuilder(data_).mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
dataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = null;
onChanged();
} else {
data_ = null;
dataBuilder_ = null;
}
return this;
}
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.Body.Builder getDataBuilder() {
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.BodyOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_ == null ?
io.envoyproxy.envoy.data.tap.v3alpha.Body.getDefaultInstance() : data_;
}
}
/**
*
* Binary data read.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3alpha.Body, io.envoyproxy.envoy.data.tap.v3alpha.Body.Builder, io.envoyproxy.envoy.data.tap.v3alpha.BodyOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3alpha.Body, io.envoyproxy.envoy.data.tap.v3alpha.Body.Builder, io.envoyproxy.envoy.data.tap.v3alpha.BodyOrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
@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.v3alpha.SocketEvent.Read)
}
// @@protoc_insertion_point(class_scope:envoy.data.tap.v3alpha.SocketEvent.Read)
private static final io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read();
}
public static io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Read parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Read(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.v3alpha.SocketEvent.Read getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WriteOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.data.tap.v3alpha.SocketEvent.Write)
com.google.protobuf.MessageOrBuilder {
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
boolean hasData();
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
io.envoyproxy.envoy.data.tap.v3alpha.Body getData();
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
io.envoyproxy.envoy.data.tap.v3alpha.BodyOrBuilder getDataOrBuilder();
/**
*
* Stream was half closed after this write.
*
*
* bool end_stream = 2;
*/
boolean getEndStream();
}
/**
*
* Data written by Envoy to the transport socket.
*
*
* Protobuf type {@code envoy.data.tap.v3alpha.SocketEvent.Write}
*/
public static final class Write extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.tap.v3alpha.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.v3alpha.Body.Builder subBuilder = null;
if (data_ != null) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(io.envoyproxy.envoy.data.tap.v3alpha.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 (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.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_Write_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_Write_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.class, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.Builder.class);
}
public static final int DATA_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.data.tap.v3alpha.Body data_;
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public boolean hasData() {
return data_ != null;
}
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.Body getData() {
return data_ == null ? io.envoyproxy.envoy.data.tap.v3alpha.Body.getDefaultInstance() : data_;
}
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.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;
*/
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.v3alpha.SocketEvent.Write)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write other = (io.envoyproxy.envoy.data.tap.v3alpha.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.v3alpha.SocketEvent.Write parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3alpha.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.v3alpha.SocketEvent.Write parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3alpha.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.v3alpha.SocketEvent.Write parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.SocketEvent.Write}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.tap.v3alpha.SocketEvent.Write)
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.WriteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_Write_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_Write_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.class, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.tap.v3alpha.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.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_Write_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write build() {
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write buildPartial() {
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write result = new io.envoyproxy.envoy.data.tap.v3alpha.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.v3alpha.SocketEvent.Write) {
return mergeFrom((io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write other) {
if (other == io.envoyproxy.envoy.data.tap.v3alpha.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.v3alpha.SocketEvent.Write parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.envoyproxy.envoy.data.tap.v3alpha.Body data_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3alpha.Body, io.envoyproxy.envoy.data.tap.v3alpha.Body.Builder, io.envoyproxy.envoy.data.tap.v3alpha.BodyOrBuilder> dataBuilder_;
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public boolean hasData() {
return dataBuilder_ != null || data_ != null;
}
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.Body getData() {
if (dataBuilder_ == null) {
return data_ == null ? io.envoyproxy.envoy.data.tap.v3alpha.Body.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public Builder setData(io.envoyproxy.envoy.data.tap.v3alpha.Body value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
return this;
}
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public Builder setData(
io.envoyproxy.envoy.data.tap.v3alpha.Body.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public Builder mergeData(io.envoyproxy.envoy.data.tap.v3alpha.Body value) {
if (dataBuilder_ == null) {
if (data_ != null) {
data_ =
io.envoyproxy.envoy.data.tap.v3alpha.Body.newBuilder(data_).mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
dataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = null;
onChanged();
} else {
data_ = null;
dataBuilder_ = null;
}
return this;
}
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.Body.Builder getDataBuilder() {
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.BodyOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_ == null ?
io.envoyproxy.envoy.data.tap.v3alpha.Body.getDefaultInstance() : data_;
}
}
/**
*
* Binary data written.
*
*
* .envoy.data.tap.v3alpha.Body data = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3alpha.Body, io.envoyproxy.envoy.data.tap.v3alpha.Body.Builder, io.envoyproxy.envoy.data.tap.v3alpha.BodyOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3alpha.Body, io.envoyproxy.envoy.data.tap.v3alpha.Body.Builder, io.envoyproxy.envoy.data.tap.v3alpha.BodyOrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
private boolean endStream_ ;
/**
*
* Stream was half closed after this write.
*
*
* bool end_stream = 2;
*/
public boolean getEndStream() {
return endStream_;
}
/**
*
* Stream was half closed after this write.
*
*
* bool end_stream = 2;
*/
public Builder setEndStream(boolean value) {
endStream_ = value;
onChanged();
return this;
}
/**
*
* Stream was half closed after this write.
*
*
* bool end_stream = 2;
*/
public Builder clearEndStream() {
endStream_ = false;
onChanged();
return this;
}
@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.v3alpha.SocketEvent.Write)
}
// @@protoc_insertion_point(class_scope:envoy.data.tap.v3alpha.SocketEvent.Write)
private static final io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write();
}
public static io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Write parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Write(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.v3alpha.SocketEvent.Write getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ClosedOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.data.tap.v3alpha.SocketEvent.Closed)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* The connection was closed.
*
*
* Protobuf type {@code envoy.data.tap.v3alpha.SocketEvent.Closed}
*/
public static final class Closed extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.tap.v3alpha.SocketEvent.Closed)
ClosedOrBuilder {
private static final long serialVersionUID = 0L;
// Use Closed.newBuilder() to construct.
private Closed(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Closed() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Closed();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Closed(
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;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_Closed_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_Closed_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.class, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.v3alpha.SocketEvent.Closed)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed other = (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed 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.v3alpha.SocketEvent.Closed parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed 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.v3alpha.SocketEvent.Closed parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed 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.v3alpha.SocketEvent.Closed parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed 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.v3alpha.SocketEvent.Closed parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed 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.v3alpha.SocketEvent.Closed 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.v3alpha.SocketEvent.Closed 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.v3alpha.SocketEvent.Closed 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;
}
/**
*
* The connection was closed.
*
*
* Protobuf type {@code envoy.data.tap.v3alpha.SocketEvent.Closed}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.tap.v3alpha.SocketEvent.Closed)
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.ClosedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_Closed_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_Closed_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.class, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_Closed_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed build() {
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed buildPartial() {
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed result = new io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed(this);
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.v3alpha.SocketEvent.Closed) {
return mergeFrom((io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed other) {
if (other == io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.getDefaultInstance()) return this;
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.v3alpha.SocketEvent.Closed parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@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.v3alpha.SocketEvent.Closed)
}
// @@protoc_insertion_point(class_scope:envoy.data.tap.v3alpha.SocketEvent.Closed)
private static final io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed();
}
public static io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Closed parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Closed(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.v3alpha.SocketEvent.Closed getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int eventSelectorCase_ = 0;
private java.lang.Object eventSelector_;
public enum EventSelectorCase
implements com.google.protobuf.Internal.EnumLite {
READ(2),
WRITE(3),
CLOSED(4),
EVENTSELECTOR_NOT_SET(0);
private final int value;
private EventSelectorCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EventSelectorCase valueOf(int value) {
return forNumber(value);
}
public static EventSelectorCase forNumber(int value) {
switch (value) {
case 2: return READ;
case 3: return WRITE;
case 4: return CLOSED;
case 0: return EVENTSELECTOR_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public EventSelectorCase
getEventSelectorCase() {
return EventSelectorCase.forNumber(
eventSelectorCase_);
}
public static final int TIMESTAMP_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp timestamp_;
/**
*
* Timestamp for event.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public boolean hasTimestamp() {
return timestamp_ != null;
}
/**
*
* Timestamp for event.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public com.google.protobuf.Timestamp getTimestamp() {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
/**
*
* Timestamp for event.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
return getTimestamp();
}
public static final int READ_FIELD_NUMBER = 2;
/**
* .envoy.data.tap.v3alpha.SocketEvent.Read read = 2;
*/
public boolean hasRead() {
return eventSelectorCase_ == 2;
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Read read = 2;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read getRead() {
if (eventSelectorCase_ == 2) {
return (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read) eventSelector_;
}
return io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.getDefaultInstance();
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Read read = 2;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.ReadOrBuilder getReadOrBuilder() {
if (eventSelectorCase_ == 2) {
return (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read) eventSelector_;
}
return io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.getDefaultInstance();
}
public static final int WRITE_FIELD_NUMBER = 3;
/**
* .envoy.data.tap.v3alpha.SocketEvent.Write write = 3;
*/
public boolean hasWrite() {
return eventSelectorCase_ == 3;
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Write write = 3;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write getWrite() {
if (eventSelectorCase_ == 3) {
return (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write) eventSelector_;
}
return io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.getDefaultInstance();
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Write write = 3;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.WriteOrBuilder getWriteOrBuilder() {
if (eventSelectorCase_ == 3) {
return (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write) eventSelector_;
}
return io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.getDefaultInstance();
}
public static final int CLOSED_FIELD_NUMBER = 4;
/**
* .envoy.data.tap.v3alpha.SocketEvent.Closed closed = 4;
*/
public boolean hasClosed() {
return eventSelectorCase_ == 4;
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Closed closed = 4;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed getClosed() {
if (eventSelectorCase_ == 4) {
return (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed) eventSelector_;
}
return io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.getDefaultInstance();
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Closed closed = 4;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.ClosedOrBuilder getClosedOrBuilder() {
if (eventSelectorCase_ == 4) {
return (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed) eventSelector_;
}
return io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (timestamp_ != null) {
output.writeMessage(1, getTimestamp());
}
if (eventSelectorCase_ == 2) {
output.writeMessage(2, (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read) eventSelector_);
}
if (eventSelectorCase_ == 3) {
output.writeMessage(3, (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write) eventSelector_);
}
if (eventSelectorCase_ == 4) {
output.writeMessage(4, (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed) eventSelector_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (timestamp_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTimestamp());
}
if (eventSelectorCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read) eventSelector_);
}
if (eventSelectorCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write) eventSelector_);
}
if (eventSelectorCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed) eventSelector_);
}
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.v3alpha.SocketEvent)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent other = (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent) obj;
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (!getTimestamp()
.equals(other.getTimestamp())) return false;
}
if (!getEventSelectorCase().equals(other.getEventSelectorCase())) return false;
switch (eventSelectorCase_) {
case 2:
if (!getRead()
.equals(other.getRead())) return false;
break;
case 3:
if (!getWrite()
.equals(other.getWrite())) return false;
break;
case 4:
if (!getClosed()
.equals(other.getClosed())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
}
switch (eventSelectorCase_) {
case 2:
hash = (37 * hash) + READ_FIELD_NUMBER;
hash = (53 * hash) + getRead().hashCode();
break;
case 3:
hash = (37 * hash) + WRITE_FIELD_NUMBER;
hash = (53 * hash) + getWrite().hashCode();
break;
case 4:
hash = (37 * hash) + CLOSED_FIELD_NUMBER;
hash = (53 * hash) + getClosed().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent 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.v3alpha.SocketEvent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent 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.v3alpha.SocketEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent 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.v3alpha.SocketEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent 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.v3alpha.SocketEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent 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.v3alpha.SocketEvent 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.v3alpha.SocketEvent 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.v3alpha.SocketEvent 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;
}
/**
*
* Event in a socket trace.
*
*
* Protobuf type {@code envoy.data.tap.v3alpha.SocketEvent}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.tap.v3alpha.SocketEvent)
io.envoyproxy.envoy.data.tap.v3alpha.SocketEventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.class, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.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 (timestampBuilder_ == null) {
timestamp_ = null;
} else {
timestamp_ = null;
timestampBuilder_ = null;
}
eventSelectorCase_ = 0;
eventSelector_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_SocketEvent_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent build() {
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent buildPartial() {
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent result = new io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent(this);
if (timestampBuilder_ == null) {
result.timestamp_ = timestamp_;
} else {
result.timestamp_ = timestampBuilder_.build();
}
if (eventSelectorCase_ == 2) {
if (readBuilder_ == null) {
result.eventSelector_ = eventSelector_;
} else {
result.eventSelector_ = readBuilder_.build();
}
}
if (eventSelectorCase_ == 3) {
if (writeBuilder_ == null) {
result.eventSelector_ = eventSelector_;
} else {
result.eventSelector_ = writeBuilder_.build();
}
}
if (eventSelectorCase_ == 4) {
if (closedBuilder_ == null) {
result.eventSelector_ = eventSelector_;
} else {
result.eventSelector_ = closedBuilder_.build();
}
}
result.eventSelectorCase_ = eventSelectorCase_;
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.v3alpha.SocketEvent) {
return mergeFrom((io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent other) {
if (other == io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.getDefaultInstance()) return this;
if (other.hasTimestamp()) {
mergeTimestamp(other.getTimestamp());
}
switch (other.getEventSelectorCase()) {
case READ: {
mergeRead(other.getRead());
break;
}
case WRITE: {
mergeWrite(other.getWrite());
break;
}
case CLOSED: {
mergeClosed(other.getClosed());
break;
}
case EVENTSELECTOR_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int eventSelectorCase_ = 0;
private java.lang.Object eventSelector_;
public EventSelectorCase
getEventSelectorCase() {
return EventSelectorCase.forNumber(
eventSelectorCase_);
}
public Builder clearEventSelector() {
eventSelectorCase_ = 0;
eventSelector_ = null;
onChanged();
return this;
}
private com.google.protobuf.Timestamp timestamp_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_;
/**
*
* Timestamp for event.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public boolean hasTimestamp() {
return timestampBuilder_ != null || timestamp_ != null;
}
/**
*
* Timestamp for event.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public com.google.protobuf.Timestamp getTimestamp() {
if (timestampBuilder_ == null) {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
} else {
return timestampBuilder_.getMessage();
}
}
/**
*
* Timestamp for event.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public Builder setTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timestamp_ = value;
onChanged();
} else {
timestampBuilder_.setMessage(value);
}
return this;
}
/**
*
* Timestamp for event.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public Builder setTimestamp(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (timestampBuilder_ == null) {
timestamp_ = builderForValue.build();
onChanged();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Timestamp for event.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (timestamp_ != null) {
timestamp_ =
com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial();
} else {
timestamp_ = value;
}
onChanged();
} else {
timestampBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Timestamp for event.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public Builder clearTimestamp() {
if (timestampBuilder_ == null) {
timestamp_ = null;
onChanged();
} else {
timestamp_ = null;
timestampBuilder_ = null;
}
return this;
}
/**
*
* Timestamp for event.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
onChanged();
return getTimestampFieldBuilder().getBuilder();
}
/**
*
* Timestamp for event.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
if (timestampBuilder_ != null) {
return timestampBuilder_.getMessageOrBuilder();
} else {
return timestamp_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
}
/**
*
* Timestamp for event.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTimestampFieldBuilder() {
if (timestampBuilder_ == null) {
timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTimestamp(),
getParentForChildren(),
isClean());
timestamp_ = null;
}
return timestampBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.Builder, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.ReadOrBuilder> readBuilder_;
/**
* .envoy.data.tap.v3alpha.SocketEvent.Read read = 2;
*/
public boolean hasRead() {
return eventSelectorCase_ == 2;
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Read read = 2;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read getRead() {
if (readBuilder_ == null) {
if (eventSelectorCase_ == 2) {
return (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read) eventSelector_;
}
return io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.getDefaultInstance();
} else {
if (eventSelectorCase_ == 2) {
return readBuilder_.getMessage();
}
return io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.getDefaultInstance();
}
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Read read = 2;
*/
public Builder setRead(io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read value) {
if (readBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
eventSelector_ = value;
onChanged();
} else {
readBuilder_.setMessage(value);
}
eventSelectorCase_ = 2;
return this;
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Read read = 2;
*/
public Builder setRead(
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.Builder builderForValue) {
if (readBuilder_ == null) {
eventSelector_ = builderForValue.build();
onChanged();
} else {
readBuilder_.setMessage(builderForValue.build());
}
eventSelectorCase_ = 2;
return this;
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Read read = 2;
*/
public Builder mergeRead(io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read value) {
if (readBuilder_ == null) {
if (eventSelectorCase_ == 2 &&
eventSelector_ != io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.getDefaultInstance()) {
eventSelector_ = io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.newBuilder((io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read) eventSelector_)
.mergeFrom(value).buildPartial();
} else {
eventSelector_ = value;
}
onChanged();
} else {
if (eventSelectorCase_ == 2) {
readBuilder_.mergeFrom(value);
}
readBuilder_.setMessage(value);
}
eventSelectorCase_ = 2;
return this;
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Read read = 2;
*/
public Builder clearRead() {
if (readBuilder_ == null) {
if (eventSelectorCase_ == 2) {
eventSelectorCase_ = 0;
eventSelector_ = null;
onChanged();
}
} else {
if (eventSelectorCase_ == 2) {
eventSelectorCase_ = 0;
eventSelector_ = null;
}
readBuilder_.clear();
}
return this;
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Read read = 2;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.Builder getReadBuilder() {
return getReadFieldBuilder().getBuilder();
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Read read = 2;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.ReadOrBuilder getReadOrBuilder() {
if ((eventSelectorCase_ == 2) && (readBuilder_ != null)) {
return readBuilder_.getMessageOrBuilder();
} else {
if (eventSelectorCase_ == 2) {
return (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read) eventSelector_;
}
return io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.getDefaultInstance();
}
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Read read = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.Builder, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.ReadOrBuilder>
getReadFieldBuilder() {
if (readBuilder_ == null) {
if (!(eventSelectorCase_ == 2)) {
eventSelector_ = io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.getDefaultInstance();
}
readBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read.Builder, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.ReadOrBuilder>(
(io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Read) eventSelector_,
getParentForChildren(),
isClean());
eventSelector_ = null;
}
eventSelectorCase_ = 2;
onChanged();;
return readBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.Builder, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.WriteOrBuilder> writeBuilder_;
/**
* .envoy.data.tap.v3alpha.SocketEvent.Write write = 3;
*/
public boolean hasWrite() {
return eventSelectorCase_ == 3;
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Write write = 3;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write getWrite() {
if (writeBuilder_ == null) {
if (eventSelectorCase_ == 3) {
return (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write) eventSelector_;
}
return io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.getDefaultInstance();
} else {
if (eventSelectorCase_ == 3) {
return writeBuilder_.getMessage();
}
return io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.getDefaultInstance();
}
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Write write = 3;
*/
public Builder setWrite(io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write value) {
if (writeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
eventSelector_ = value;
onChanged();
} else {
writeBuilder_.setMessage(value);
}
eventSelectorCase_ = 3;
return this;
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Write write = 3;
*/
public Builder setWrite(
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.Builder builderForValue) {
if (writeBuilder_ == null) {
eventSelector_ = builderForValue.build();
onChanged();
} else {
writeBuilder_.setMessage(builderForValue.build());
}
eventSelectorCase_ = 3;
return this;
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Write write = 3;
*/
public Builder mergeWrite(io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write value) {
if (writeBuilder_ == null) {
if (eventSelectorCase_ == 3 &&
eventSelector_ != io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.getDefaultInstance()) {
eventSelector_ = io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.newBuilder((io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write) eventSelector_)
.mergeFrom(value).buildPartial();
} else {
eventSelector_ = value;
}
onChanged();
} else {
if (eventSelectorCase_ == 3) {
writeBuilder_.mergeFrom(value);
}
writeBuilder_.setMessage(value);
}
eventSelectorCase_ = 3;
return this;
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Write write = 3;
*/
public Builder clearWrite() {
if (writeBuilder_ == null) {
if (eventSelectorCase_ == 3) {
eventSelectorCase_ = 0;
eventSelector_ = null;
onChanged();
}
} else {
if (eventSelectorCase_ == 3) {
eventSelectorCase_ = 0;
eventSelector_ = null;
}
writeBuilder_.clear();
}
return this;
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Write write = 3;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.Builder getWriteBuilder() {
return getWriteFieldBuilder().getBuilder();
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Write write = 3;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.WriteOrBuilder getWriteOrBuilder() {
if ((eventSelectorCase_ == 3) && (writeBuilder_ != null)) {
return writeBuilder_.getMessageOrBuilder();
} else {
if (eventSelectorCase_ == 3) {
return (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write) eventSelector_;
}
return io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.getDefaultInstance();
}
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Write write = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.Builder, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.WriteOrBuilder>
getWriteFieldBuilder() {
if (writeBuilder_ == null) {
if (!(eventSelectorCase_ == 3)) {
eventSelector_ = io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.getDefaultInstance();
}
writeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write.Builder, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.WriteOrBuilder>(
(io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Write) eventSelector_,
getParentForChildren(),
isClean());
eventSelector_ = null;
}
eventSelectorCase_ = 3;
onChanged();;
return writeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.Builder, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.ClosedOrBuilder> closedBuilder_;
/**
* .envoy.data.tap.v3alpha.SocketEvent.Closed closed = 4;
*/
public boolean hasClosed() {
return eventSelectorCase_ == 4;
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Closed closed = 4;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed getClosed() {
if (closedBuilder_ == null) {
if (eventSelectorCase_ == 4) {
return (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed) eventSelector_;
}
return io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.getDefaultInstance();
} else {
if (eventSelectorCase_ == 4) {
return closedBuilder_.getMessage();
}
return io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.getDefaultInstance();
}
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Closed closed = 4;
*/
public Builder setClosed(io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed value) {
if (closedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
eventSelector_ = value;
onChanged();
} else {
closedBuilder_.setMessage(value);
}
eventSelectorCase_ = 4;
return this;
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Closed closed = 4;
*/
public Builder setClosed(
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.Builder builderForValue) {
if (closedBuilder_ == null) {
eventSelector_ = builderForValue.build();
onChanged();
} else {
closedBuilder_.setMessage(builderForValue.build());
}
eventSelectorCase_ = 4;
return this;
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Closed closed = 4;
*/
public Builder mergeClosed(io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed value) {
if (closedBuilder_ == null) {
if (eventSelectorCase_ == 4 &&
eventSelector_ != io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.getDefaultInstance()) {
eventSelector_ = io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.newBuilder((io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed) eventSelector_)
.mergeFrom(value).buildPartial();
} else {
eventSelector_ = value;
}
onChanged();
} else {
if (eventSelectorCase_ == 4) {
closedBuilder_.mergeFrom(value);
}
closedBuilder_.setMessage(value);
}
eventSelectorCase_ = 4;
return this;
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Closed closed = 4;
*/
public Builder clearClosed() {
if (closedBuilder_ == null) {
if (eventSelectorCase_ == 4) {
eventSelectorCase_ = 0;
eventSelector_ = null;
onChanged();
}
} else {
if (eventSelectorCase_ == 4) {
eventSelectorCase_ = 0;
eventSelector_ = null;
}
closedBuilder_.clear();
}
return this;
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Closed closed = 4;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.Builder getClosedBuilder() {
return getClosedFieldBuilder().getBuilder();
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Closed closed = 4;
*/
public io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.ClosedOrBuilder getClosedOrBuilder() {
if ((eventSelectorCase_ == 4) && (closedBuilder_ != null)) {
return closedBuilder_.getMessageOrBuilder();
} else {
if (eventSelectorCase_ == 4) {
return (io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed) eventSelector_;
}
return io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.getDefaultInstance();
}
}
/**
* .envoy.data.tap.v3alpha.SocketEvent.Closed closed = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.Builder, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.ClosedOrBuilder>
getClosedFieldBuilder() {
if (closedBuilder_ == null) {
if (!(eventSelectorCase_ == 4)) {
eventSelector_ = io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.getDefaultInstance();
}
closedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed.Builder, io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.ClosedOrBuilder>(
(io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent.Closed) eventSelector_,
getParentForChildren(),
isClean());
eventSelector_ = null;
}
eventSelectorCase_ = 4;
onChanged();;
return closedBuilder_;
}
@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.v3alpha.SocketEvent)
}
// @@protoc_insertion_point(class_scope:envoy.data.tap.v3alpha.SocketEvent)
private static final io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent();
}
public static io.envoyproxy.envoy.data.tap.v3alpha.SocketEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SocketEvent parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SocketEvent(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.v3alpha.SocketEvent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}