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.Connection 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;
/**
*
* Connection properties.
*
*
* Protobuf type {@code envoy.data.tap.v3alpha.Connection}
*/
public final class Connection extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.tap.v3alpha.Connection)
ConnectionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Connection.newBuilder() to construct.
private Connection(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Connection() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Connection();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Connection(
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 18: {
io.envoyproxy.envoy.api.v3alpha.core.Address.Builder subBuilder = null;
if (localAddress_ != null) {
subBuilder = localAddress_.toBuilder();
}
localAddress_ = input.readMessage(io.envoyproxy.envoy.api.v3alpha.core.Address.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localAddress_);
localAddress_ = subBuilder.buildPartial();
}
break;
}
case 26: {
io.envoyproxy.envoy.api.v3alpha.core.Address.Builder subBuilder = null;
if (remoteAddress_ != null) {
subBuilder = remoteAddress_.toBuilder();
}
remoteAddress_ = input.readMessage(io.envoyproxy.envoy.api.v3alpha.core.Address.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(remoteAddress_);
remoteAddress_ = 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_Connection_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_Connection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3alpha.Connection.class, io.envoyproxy.envoy.data.tap.v3alpha.Connection.Builder.class);
}
public static final int LOCAL_ADDRESS_FIELD_NUMBER = 2;
private io.envoyproxy.envoy.api.v3alpha.core.Address localAddress_;
/**
*
* Local address.
*
*
* .envoy.api.v3alpha.core.Address local_address = 2;
*/
public boolean hasLocalAddress() {
return localAddress_ != null;
}
/**
*
* Local address.
*
*
* .envoy.api.v3alpha.core.Address local_address = 2;
*/
public io.envoyproxy.envoy.api.v3alpha.core.Address getLocalAddress() {
return localAddress_ == null ? io.envoyproxy.envoy.api.v3alpha.core.Address.getDefaultInstance() : localAddress_;
}
/**
*
* Local address.
*
*
* .envoy.api.v3alpha.core.Address local_address = 2;
*/
public io.envoyproxy.envoy.api.v3alpha.core.AddressOrBuilder getLocalAddressOrBuilder() {
return getLocalAddress();
}
public static final int REMOTE_ADDRESS_FIELD_NUMBER = 3;
private io.envoyproxy.envoy.api.v3alpha.core.Address remoteAddress_;
/**
*
* Remote address.
*
*
* .envoy.api.v3alpha.core.Address remote_address = 3;
*/
public boolean hasRemoteAddress() {
return remoteAddress_ != null;
}
/**
*
* Remote address.
*
*
* .envoy.api.v3alpha.core.Address remote_address = 3;
*/
public io.envoyproxy.envoy.api.v3alpha.core.Address getRemoteAddress() {
return remoteAddress_ == null ? io.envoyproxy.envoy.api.v3alpha.core.Address.getDefaultInstance() : remoteAddress_;
}
/**
*
* Remote address.
*
*
* .envoy.api.v3alpha.core.Address remote_address = 3;
*/
public io.envoyproxy.envoy.api.v3alpha.core.AddressOrBuilder getRemoteAddressOrBuilder() {
return getRemoteAddress();
}
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 (localAddress_ != null) {
output.writeMessage(2, getLocalAddress());
}
if (remoteAddress_ != null) {
output.writeMessage(3, getRemoteAddress());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (localAddress_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getLocalAddress());
}
if (remoteAddress_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getRemoteAddress());
}
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.Connection)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.tap.v3alpha.Connection other = (io.envoyproxy.envoy.data.tap.v3alpha.Connection) obj;
if (hasLocalAddress() != other.hasLocalAddress()) return false;
if (hasLocalAddress()) {
if (!getLocalAddress()
.equals(other.getLocalAddress())) return false;
}
if (hasRemoteAddress() != other.hasRemoteAddress()) return false;
if (hasRemoteAddress()) {
if (!getRemoteAddress()
.equals(other.getRemoteAddress())) 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 (hasLocalAddress()) {
hash = (37 * hash) + LOCAL_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getLocalAddress().hashCode();
}
if (hasRemoteAddress()) {
hash = (37 * hash) + REMOTE_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getRemoteAddress().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.tap.v3alpha.Connection parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3alpha.Connection 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.Connection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3alpha.Connection 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.Connection parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.tap.v3alpha.Connection 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.Connection 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.Connection 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.Connection 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.Connection 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.Connection 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.Connection 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.Connection 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;
}
/**
*
* Connection properties.
*
*
* Protobuf type {@code envoy.data.tap.v3alpha.Connection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.tap.v3alpha.Connection)
io.envoyproxy.envoy.data.tap.v3alpha.ConnectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.tap.v3alpha.TransportProto.internal_static_envoy_data_tap_v3alpha_Connection_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_Connection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.tap.v3alpha.Connection.class, io.envoyproxy.envoy.data.tap.v3alpha.Connection.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.tap.v3alpha.Connection.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 (localAddressBuilder_ == null) {
localAddress_ = null;
} else {
localAddress_ = null;
localAddressBuilder_ = null;
}
if (remoteAddressBuilder_ == null) {
remoteAddress_ = null;
} else {
remoteAddress_ = null;
remoteAddressBuilder_ = 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_Connection_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3alpha.Connection getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.tap.v3alpha.Connection.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3alpha.Connection build() {
io.envoyproxy.envoy.data.tap.v3alpha.Connection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.tap.v3alpha.Connection buildPartial() {
io.envoyproxy.envoy.data.tap.v3alpha.Connection result = new io.envoyproxy.envoy.data.tap.v3alpha.Connection(this);
if (localAddressBuilder_ == null) {
result.localAddress_ = localAddress_;
} else {
result.localAddress_ = localAddressBuilder_.build();
}
if (remoteAddressBuilder_ == null) {
result.remoteAddress_ = remoteAddress_;
} else {
result.remoteAddress_ = remoteAddressBuilder_.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.Connection) {
return mergeFrom((io.envoyproxy.envoy.data.tap.v3alpha.Connection)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.tap.v3alpha.Connection other) {
if (other == io.envoyproxy.envoy.data.tap.v3alpha.Connection.getDefaultInstance()) return this;
if (other.hasLocalAddress()) {
mergeLocalAddress(other.getLocalAddress());
}
if (other.hasRemoteAddress()) {
mergeRemoteAddress(other.getRemoteAddress());
}
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.Connection parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.tap.v3alpha.Connection) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.envoyproxy.envoy.api.v3alpha.core.Address localAddress_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v3alpha.core.Address, io.envoyproxy.envoy.api.v3alpha.core.Address.Builder, io.envoyproxy.envoy.api.v3alpha.core.AddressOrBuilder> localAddressBuilder_;
/**
*
* Local address.
*
*
* .envoy.api.v3alpha.core.Address local_address = 2;
*/
public boolean hasLocalAddress() {
return localAddressBuilder_ != null || localAddress_ != null;
}
/**
*
* Local address.
*
*
* .envoy.api.v3alpha.core.Address local_address = 2;
*/
public io.envoyproxy.envoy.api.v3alpha.core.Address getLocalAddress() {
if (localAddressBuilder_ == null) {
return localAddress_ == null ? io.envoyproxy.envoy.api.v3alpha.core.Address.getDefaultInstance() : localAddress_;
} else {
return localAddressBuilder_.getMessage();
}
}
/**
*
* Local address.
*
*
* .envoy.api.v3alpha.core.Address local_address = 2;
*/
public Builder setLocalAddress(io.envoyproxy.envoy.api.v3alpha.core.Address value) {
if (localAddressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localAddress_ = value;
onChanged();
} else {
localAddressBuilder_.setMessage(value);
}
return this;
}
/**
*
* Local address.
*
*
* .envoy.api.v3alpha.core.Address local_address = 2;
*/
public Builder setLocalAddress(
io.envoyproxy.envoy.api.v3alpha.core.Address.Builder builderForValue) {
if (localAddressBuilder_ == null) {
localAddress_ = builderForValue.build();
onChanged();
} else {
localAddressBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Local address.
*
*
* .envoy.api.v3alpha.core.Address local_address = 2;
*/
public Builder mergeLocalAddress(io.envoyproxy.envoy.api.v3alpha.core.Address value) {
if (localAddressBuilder_ == null) {
if (localAddress_ != null) {
localAddress_ =
io.envoyproxy.envoy.api.v3alpha.core.Address.newBuilder(localAddress_).mergeFrom(value).buildPartial();
} else {
localAddress_ = value;
}
onChanged();
} else {
localAddressBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Local address.
*
*
* .envoy.api.v3alpha.core.Address local_address = 2;
*/
public Builder clearLocalAddress() {
if (localAddressBuilder_ == null) {
localAddress_ = null;
onChanged();
} else {
localAddress_ = null;
localAddressBuilder_ = null;
}
return this;
}
/**
*
* Local address.
*
*
* .envoy.api.v3alpha.core.Address local_address = 2;
*/
public io.envoyproxy.envoy.api.v3alpha.core.Address.Builder getLocalAddressBuilder() {
onChanged();
return getLocalAddressFieldBuilder().getBuilder();
}
/**
*
* Local address.
*
*
* .envoy.api.v3alpha.core.Address local_address = 2;
*/
public io.envoyproxy.envoy.api.v3alpha.core.AddressOrBuilder getLocalAddressOrBuilder() {
if (localAddressBuilder_ != null) {
return localAddressBuilder_.getMessageOrBuilder();
} else {
return localAddress_ == null ?
io.envoyproxy.envoy.api.v3alpha.core.Address.getDefaultInstance() : localAddress_;
}
}
/**
*
* Local address.
*
*
* .envoy.api.v3alpha.core.Address local_address = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v3alpha.core.Address, io.envoyproxy.envoy.api.v3alpha.core.Address.Builder, io.envoyproxy.envoy.api.v3alpha.core.AddressOrBuilder>
getLocalAddressFieldBuilder() {
if (localAddressBuilder_ == null) {
localAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v3alpha.core.Address, io.envoyproxy.envoy.api.v3alpha.core.Address.Builder, io.envoyproxy.envoy.api.v3alpha.core.AddressOrBuilder>(
getLocalAddress(),
getParentForChildren(),
isClean());
localAddress_ = null;
}
return localAddressBuilder_;
}
private io.envoyproxy.envoy.api.v3alpha.core.Address remoteAddress_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v3alpha.core.Address, io.envoyproxy.envoy.api.v3alpha.core.Address.Builder, io.envoyproxy.envoy.api.v3alpha.core.AddressOrBuilder> remoteAddressBuilder_;
/**
*
* Remote address.
*
*
* .envoy.api.v3alpha.core.Address remote_address = 3;
*/
public boolean hasRemoteAddress() {
return remoteAddressBuilder_ != null || remoteAddress_ != null;
}
/**
*
* Remote address.
*
*
* .envoy.api.v3alpha.core.Address remote_address = 3;
*/
public io.envoyproxy.envoy.api.v3alpha.core.Address getRemoteAddress() {
if (remoteAddressBuilder_ == null) {
return remoteAddress_ == null ? io.envoyproxy.envoy.api.v3alpha.core.Address.getDefaultInstance() : remoteAddress_;
} else {
return remoteAddressBuilder_.getMessage();
}
}
/**
*
* Remote address.
*
*
* .envoy.api.v3alpha.core.Address remote_address = 3;
*/
public Builder setRemoteAddress(io.envoyproxy.envoy.api.v3alpha.core.Address value) {
if (remoteAddressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
remoteAddress_ = value;
onChanged();
} else {
remoteAddressBuilder_.setMessage(value);
}
return this;
}
/**
*
* Remote address.
*
*
* .envoy.api.v3alpha.core.Address remote_address = 3;
*/
public Builder setRemoteAddress(
io.envoyproxy.envoy.api.v3alpha.core.Address.Builder builderForValue) {
if (remoteAddressBuilder_ == null) {
remoteAddress_ = builderForValue.build();
onChanged();
} else {
remoteAddressBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Remote address.
*
*
* .envoy.api.v3alpha.core.Address remote_address = 3;
*/
public Builder mergeRemoteAddress(io.envoyproxy.envoy.api.v3alpha.core.Address value) {
if (remoteAddressBuilder_ == null) {
if (remoteAddress_ != null) {
remoteAddress_ =
io.envoyproxy.envoy.api.v3alpha.core.Address.newBuilder(remoteAddress_).mergeFrom(value).buildPartial();
} else {
remoteAddress_ = value;
}
onChanged();
} else {
remoteAddressBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Remote address.
*
*
* .envoy.api.v3alpha.core.Address remote_address = 3;
*/
public Builder clearRemoteAddress() {
if (remoteAddressBuilder_ == null) {
remoteAddress_ = null;
onChanged();
} else {
remoteAddress_ = null;
remoteAddressBuilder_ = null;
}
return this;
}
/**
*
* Remote address.
*
*
* .envoy.api.v3alpha.core.Address remote_address = 3;
*/
public io.envoyproxy.envoy.api.v3alpha.core.Address.Builder getRemoteAddressBuilder() {
onChanged();
return getRemoteAddressFieldBuilder().getBuilder();
}
/**
*
* Remote address.
*
*
* .envoy.api.v3alpha.core.Address remote_address = 3;
*/
public io.envoyproxy.envoy.api.v3alpha.core.AddressOrBuilder getRemoteAddressOrBuilder() {
if (remoteAddressBuilder_ != null) {
return remoteAddressBuilder_.getMessageOrBuilder();
} else {
return remoteAddress_ == null ?
io.envoyproxy.envoy.api.v3alpha.core.Address.getDefaultInstance() : remoteAddress_;
}
}
/**
*
* Remote address.
*
*
* .envoy.api.v3alpha.core.Address remote_address = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v3alpha.core.Address, io.envoyproxy.envoy.api.v3alpha.core.Address.Builder, io.envoyproxy.envoy.api.v3alpha.core.AddressOrBuilder>
getRemoteAddressFieldBuilder() {
if (remoteAddressBuilder_ == null) {
remoteAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v3alpha.core.Address, io.envoyproxy.envoy.api.v3alpha.core.Address.Builder, io.envoyproxy.envoy.api.v3alpha.core.AddressOrBuilder>(
getRemoteAddress(),
getParentForChildren(),
isClean());
remoteAddress_ = null;
}
return remoteAddressBuilder_;
}
@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.Connection)
}
// @@protoc_insertion_point(class_scope:envoy.data.tap.v3alpha.Connection)
private static final io.envoyproxy.envoy.data.tap.v3alpha.Connection DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.tap.v3alpha.Connection();
}
public static io.envoyproxy.envoy.data.tap.v3alpha.Connection getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Connection parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Connection(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.Connection getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}