
io.envoyproxy.envoy.data.accesslog.v2.TLSProperties Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/data/accesslog/v2/accesslog.proto
package io.envoyproxy.envoy.data.accesslog.v2;
/**
*
* [#not-implemented-hide:]
* Properties of a negotiated TLS connection.
*
*
* Protobuf type {@code envoy.data.accesslog.v2.TLSProperties}
*/
public final class TLSProperties extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.accesslog.v2.TLSProperties)
TLSPropertiesOrBuilder {
private static final long serialVersionUID = 0L;
// Use TLSProperties.newBuilder() to construct.
private TLSProperties(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TLSProperties() {
tlsVersion_ = 0;
tlsSniHostname_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TLSProperties(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
tlsVersion_ = rawValue;
break;
}
case 18: {
com.google.protobuf.UInt32Value.Builder subBuilder = null;
if (tlsCipherSuite_ != null) {
subBuilder = tlsCipherSuite_.toBuilder();
}
tlsCipherSuite_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tlsCipherSuite_);
tlsCipherSuite_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
tlsSniHostname_ = s;
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.accesslog.v2.AccesslogProto.internal_static_envoy_data_accesslog_v2_TLSProperties_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.accesslog.v2.AccesslogProto.internal_static_envoy_data_accesslog_v2_TLSProperties_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.accesslog.v2.TLSProperties.class, io.envoyproxy.envoy.data.accesslog.v2.TLSProperties.Builder.class);
}
/**
* Protobuf enum {@code envoy.data.accesslog.v2.TLSProperties.TLSVersion}
*/
public enum TLSVersion
implements com.google.protobuf.ProtocolMessageEnum {
/**
* VERSION_UNSPECIFIED = 0;
*/
VERSION_UNSPECIFIED(0),
/**
* TLSv1 = 1;
*/
TLSv1(1),
/**
* TLSv1_1 = 2;
*/
TLSv1_1(2),
/**
* TLSv1_2 = 3;
*/
TLSv1_2(3),
/**
* TLSv1_3 = 4;
*/
TLSv1_3(4),
UNRECOGNIZED(-1),
;
/**
* VERSION_UNSPECIFIED = 0;
*/
public static final int VERSION_UNSPECIFIED_VALUE = 0;
/**
* TLSv1 = 1;
*/
public static final int TLSv1_VALUE = 1;
/**
* TLSv1_1 = 2;
*/
public static final int TLSv1_1_VALUE = 2;
/**
* TLSv1_2 = 3;
*/
public static final int TLSv1_2_VALUE = 3;
/**
* TLSv1_3 = 4;
*/
public static final int TLSv1_3_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TLSVersion valueOf(int value) {
return forNumber(value);
}
public static TLSVersion forNumber(int value) {
switch (value) {
case 0: return VERSION_UNSPECIFIED;
case 1: return TLSv1;
case 2: return TLSv1_1;
case 3: return TLSv1_2;
case 4: return TLSv1_3;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TLSVersion> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TLSVersion findValueByNumber(int number) {
return TLSVersion.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.envoyproxy.envoy.data.accesslog.v2.TLSProperties.getDescriptor().getEnumTypes().get(0);
}
private static final TLSVersion[] VALUES = values();
public static TLSVersion valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private TLSVersion(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:envoy.data.accesslog.v2.TLSProperties.TLSVersion)
}
public static final int TLS_VERSION_FIELD_NUMBER = 1;
private int tlsVersion_;
/**
*
* Version of TLS that was negotiated.
*
*
* .envoy.data.accesslog.v2.TLSProperties.TLSVersion tls_version = 1;
*/
public int getTlsVersionValue() {
return tlsVersion_;
}
/**
*
* Version of TLS that was negotiated.
*
*
* .envoy.data.accesslog.v2.TLSProperties.TLSVersion tls_version = 1;
*/
public io.envoyproxy.envoy.data.accesslog.v2.TLSProperties.TLSVersion getTlsVersion() {
io.envoyproxy.envoy.data.accesslog.v2.TLSProperties.TLSVersion result = io.envoyproxy.envoy.data.accesslog.v2.TLSProperties.TLSVersion.valueOf(tlsVersion_);
return result == null ? io.envoyproxy.envoy.data.accesslog.v2.TLSProperties.TLSVersion.UNRECOGNIZED : result;
}
public static final int TLS_CIPHER_SUITE_FIELD_NUMBER = 2;
private com.google.protobuf.UInt32Value tlsCipherSuite_;
/**
*
* TLS cipher suite negotiated during handshake. The value is a
* four-digit hex code defined by the IANA TLS Cipher Suite Registry
* (e.g. ``009C`` for ``TLS_RSA_WITH_AES_128_GCM_SHA256``).
* Here it is expressed as an integer.
*
*
* .google.protobuf.UInt32Value tls_cipher_suite = 2;
*/
public boolean hasTlsCipherSuite() {
return tlsCipherSuite_ != null;
}
/**
*
* TLS cipher suite negotiated during handshake. The value is a
* four-digit hex code defined by the IANA TLS Cipher Suite Registry
* (e.g. ``009C`` for ``TLS_RSA_WITH_AES_128_GCM_SHA256``).
* Here it is expressed as an integer.
*
*
* .google.protobuf.UInt32Value tls_cipher_suite = 2;
*/
public com.google.protobuf.UInt32Value getTlsCipherSuite() {
return tlsCipherSuite_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : tlsCipherSuite_;
}
/**
*
* TLS cipher suite negotiated during handshake. The value is a
* four-digit hex code defined by the IANA TLS Cipher Suite Registry
* (e.g. ``009C`` for ``TLS_RSA_WITH_AES_128_GCM_SHA256``).
* Here it is expressed as an integer.
*
*
* .google.protobuf.UInt32Value tls_cipher_suite = 2;
*/
public com.google.protobuf.UInt32ValueOrBuilder getTlsCipherSuiteOrBuilder() {
return getTlsCipherSuite();
}
public static final int TLS_SNI_HOSTNAME_FIELD_NUMBER = 3;
private volatile java.lang.Object tlsSniHostname_;
/**
*
* SNI hostname from handshake.
*
*
* string tls_sni_hostname = 3;
*/
public java.lang.String getTlsSniHostname() {
java.lang.Object ref = tlsSniHostname_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tlsSniHostname_ = s;
return s;
}
}
/**
*
* SNI hostname from handshake.
*
*
* string tls_sni_hostname = 3;
*/
public com.google.protobuf.ByteString
getTlsSniHostnameBytes() {
java.lang.Object ref = tlsSniHostname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tlsSniHostname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (tlsVersion_ != io.envoyproxy.envoy.data.accesslog.v2.TLSProperties.TLSVersion.VERSION_UNSPECIFIED.getNumber()) {
output.writeEnum(1, tlsVersion_);
}
if (tlsCipherSuite_ != null) {
output.writeMessage(2, getTlsCipherSuite());
}
if (!getTlsSniHostnameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tlsSniHostname_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (tlsVersion_ != io.envoyproxy.envoy.data.accesslog.v2.TLSProperties.TLSVersion.VERSION_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, tlsVersion_);
}
if (tlsCipherSuite_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTlsCipherSuite());
}
if (!getTlsSniHostnameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tlsSniHostname_);
}
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.accesslog.v2.TLSProperties)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.accesslog.v2.TLSProperties other = (io.envoyproxy.envoy.data.accesslog.v2.TLSProperties) obj;
boolean result = true;
result = result && tlsVersion_ == other.tlsVersion_;
result = result && (hasTlsCipherSuite() == other.hasTlsCipherSuite());
if (hasTlsCipherSuite()) {
result = result && getTlsCipherSuite()
.equals(other.getTlsCipherSuite());
}
result = result && getTlsSniHostname()
.equals(other.getTlsSniHostname());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TLS_VERSION_FIELD_NUMBER;
hash = (53 * hash) + tlsVersion_;
if (hasTlsCipherSuite()) {
hash = (37 * hash) + TLS_CIPHER_SUITE_FIELD_NUMBER;
hash = (53 * hash) + getTlsCipherSuite().hashCode();
}
hash = (37 * hash) + TLS_SNI_HOSTNAME_FIELD_NUMBER;
hash = (53 * hash) + getTlsSniHostname().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.accesslog.v2.TLSProperties parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.accesslog.v2.TLSProperties 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.accesslog.v2.TLSProperties parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.accesslog.v2.TLSProperties 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.accesslog.v2.TLSProperties parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.accesslog.v2.TLSProperties parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.accesslog.v2.TLSProperties parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.accesslog.v2.TLSProperties 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.accesslog.v2.TLSProperties parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.accesslog.v2.TLSProperties 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.accesslog.v2.TLSProperties parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.accesslog.v2.TLSProperties parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.data.accesslog.v2.TLSProperties prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* [#not-implemented-hide:]
* Properties of a negotiated TLS connection.
*
*
* Protobuf type {@code envoy.data.accesslog.v2.TLSProperties}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.accesslog.v2.TLSProperties)
io.envoyproxy.envoy.data.accesslog.v2.TLSPropertiesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.accesslog.v2.AccesslogProto.internal_static_envoy_data_accesslog_v2_TLSProperties_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.accesslog.v2.AccesslogProto.internal_static_envoy_data_accesslog_v2_TLSProperties_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.accesslog.v2.TLSProperties.class, io.envoyproxy.envoy.data.accesslog.v2.TLSProperties.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.accesslog.v2.TLSProperties.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
tlsVersion_ = 0;
if (tlsCipherSuiteBuilder_ == null) {
tlsCipherSuite_ = null;
} else {
tlsCipherSuite_ = null;
tlsCipherSuiteBuilder_ = null;
}
tlsSniHostname_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.data.accesslog.v2.AccesslogProto.internal_static_envoy_data_accesslog_v2_TLSProperties_descriptor;
}
public io.envoyproxy.envoy.data.accesslog.v2.TLSProperties getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.accesslog.v2.TLSProperties.getDefaultInstance();
}
public io.envoyproxy.envoy.data.accesslog.v2.TLSProperties build() {
io.envoyproxy.envoy.data.accesslog.v2.TLSProperties result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.envoy.data.accesslog.v2.TLSProperties buildPartial() {
io.envoyproxy.envoy.data.accesslog.v2.TLSProperties result = new io.envoyproxy.envoy.data.accesslog.v2.TLSProperties(this);
result.tlsVersion_ = tlsVersion_;
if (tlsCipherSuiteBuilder_ == null) {
result.tlsCipherSuite_ = tlsCipherSuite_;
} else {
result.tlsCipherSuite_ = tlsCipherSuiteBuilder_.build();
}
result.tlsSniHostname_ = tlsSniHostname_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.data.accesslog.v2.TLSProperties) {
return mergeFrom((io.envoyproxy.envoy.data.accesslog.v2.TLSProperties)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.accesslog.v2.TLSProperties other) {
if (other == io.envoyproxy.envoy.data.accesslog.v2.TLSProperties.getDefaultInstance()) return this;
if (other.tlsVersion_ != 0) {
setTlsVersionValue(other.getTlsVersionValue());
}
if (other.hasTlsCipherSuite()) {
mergeTlsCipherSuite(other.getTlsCipherSuite());
}
if (!other.getTlsSniHostname().isEmpty()) {
tlsSniHostname_ = other.tlsSniHostname_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.data.accesslog.v2.TLSProperties parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.accesslog.v2.TLSProperties) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int tlsVersion_ = 0;
/**
*
* Version of TLS that was negotiated.
*
*
* .envoy.data.accesslog.v2.TLSProperties.TLSVersion tls_version = 1;
*/
public int getTlsVersionValue() {
return tlsVersion_;
}
/**
*
* Version of TLS that was negotiated.
*
*
* .envoy.data.accesslog.v2.TLSProperties.TLSVersion tls_version = 1;
*/
public Builder setTlsVersionValue(int value) {
tlsVersion_ = value;
onChanged();
return this;
}
/**
*
* Version of TLS that was negotiated.
*
*
* .envoy.data.accesslog.v2.TLSProperties.TLSVersion tls_version = 1;
*/
public io.envoyproxy.envoy.data.accesslog.v2.TLSProperties.TLSVersion getTlsVersion() {
io.envoyproxy.envoy.data.accesslog.v2.TLSProperties.TLSVersion result = io.envoyproxy.envoy.data.accesslog.v2.TLSProperties.TLSVersion.valueOf(tlsVersion_);
return result == null ? io.envoyproxy.envoy.data.accesslog.v2.TLSProperties.TLSVersion.UNRECOGNIZED : result;
}
/**
*
* Version of TLS that was negotiated.
*
*
* .envoy.data.accesslog.v2.TLSProperties.TLSVersion tls_version = 1;
*/
public Builder setTlsVersion(io.envoyproxy.envoy.data.accesslog.v2.TLSProperties.TLSVersion value) {
if (value == null) {
throw new NullPointerException();
}
tlsVersion_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Version of TLS that was negotiated.
*
*
* .envoy.data.accesslog.v2.TLSProperties.TLSVersion tls_version = 1;
*/
public Builder clearTlsVersion() {
tlsVersion_ = 0;
onChanged();
return this;
}
private com.google.protobuf.UInt32Value tlsCipherSuite_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> tlsCipherSuiteBuilder_;
/**
*
* TLS cipher suite negotiated during handshake. The value is a
* four-digit hex code defined by the IANA TLS Cipher Suite Registry
* (e.g. ``009C`` for ``TLS_RSA_WITH_AES_128_GCM_SHA256``).
* Here it is expressed as an integer.
*
*
* .google.protobuf.UInt32Value tls_cipher_suite = 2;
*/
public boolean hasTlsCipherSuite() {
return tlsCipherSuiteBuilder_ != null || tlsCipherSuite_ != null;
}
/**
*
* TLS cipher suite negotiated during handshake. The value is a
* four-digit hex code defined by the IANA TLS Cipher Suite Registry
* (e.g. ``009C`` for ``TLS_RSA_WITH_AES_128_GCM_SHA256``).
* Here it is expressed as an integer.
*
*
* .google.protobuf.UInt32Value tls_cipher_suite = 2;
*/
public com.google.protobuf.UInt32Value getTlsCipherSuite() {
if (tlsCipherSuiteBuilder_ == null) {
return tlsCipherSuite_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : tlsCipherSuite_;
} else {
return tlsCipherSuiteBuilder_.getMessage();
}
}
/**
*
* TLS cipher suite negotiated during handshake. The value is a
* four-digit hex code defined by the IANA TLS Cipher Suite Registry
* (e.g. ``009C`` for ``TLS_RSA_WITH_AES_128_GCM_SHA256``).
* Here it is expressed as an integer.
*
*
* .google.protobuf.UInt32Value tls_cipher_suite = 2;
*/
public Builder setTlsCipherSuite(com.google.protobuf.UInt32Value value) {
if (tlsCipherSuiteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tlsCipherSuite_ = value;
onChanged();
} else {
tlsCipherSuiteBuilder_.setMessage(value);
}
return this;
}
/**
*
* TLS cipher suite negotiated during handshake. The value is a
* four-digit hex code defined by the IANA TLS Cipher Suite Registry
* (e.g. ``009C`` for ``TLS_RSA_WITH_AES_128_GCM_SHA256``).
* Here it is expressed as an integer.
*
*
* .google.protobuf.UInt32Value tls_cipher_suite = 2;
*/
public Builder setTlsCipherSuite(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (tlsCipherSuiteBuilder_ == null) {
tlsCipherSuite_ = builderForValue.build();
onChanged();
} else {
tlsCipherSuiteBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* TLS cipher suite negotiated during handshake. The value is a
* four-digit hex code defined by the IANA TLS Cipher Suite Registry
* (e.g. ``009C`` for ``TLS_RSA_WITH_AES_128_GCM_SHA256``).
* Here it is expressed as an integer.
*
*
* .google.protobuf.UInt32Value tls_cipher_suite = 2;
*/
public Builder mergeTlsCipherSuite(com.google.protobuf.UInt32Value value) {
if (tlsCipherSuiteBuilder_ == null) {
if (tlsCipherSuite_ != null) {
tlsCipherSuite_ =
com.google.protobuf.UInt32Value.newBuilder(tlsCipherSuite_).mergeFrom(value).buildPartial();
} else {
tlsCipherSuite_ = value;
}
onChanged();
} else {
tlsCipherSuiteBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* TLS cipher suite negotiated during handshake. The value is a
* four-digit hex code defined by the IANA TLS Cipher Suite Registry
* (e.g. ``009C`` for ``TLS_RSA_WITH_AES_128_GCM_SHA256``).
* Here it is expressed as an integer.
*
*
* .google.protobuf.UInt32Value tls_cipher_suite = 2;
*/
public Builder clearTlsCipherSuite() {
if (tlsCipherSuiteBuilder_ == null) {
tlsCipherSuite_ = null;
onChanged();
} else {
tlsCipherSuite_ = null;
tlsCipherSuiteBuilder_ = null;
}
return this;
}
/**
*
* TLS cipher suite negotiated during handshake. The value is a
* four-digit hex code defined by the IANA TLS Cipher Suite Registry
* (e.g. ``009C`` for ``TLS_RSA_WITH_AES_128_GCM_SHA256``).
* Here it is expressed as an integer.
*
*
* .google.protobuf.UInt32Value tls_cipher_suite = 2;
*/
public com.google.protobuf.UInt32Value.Builder getTlsCipherSuiteBuilder() {
onChanged();
return getTlsCipherSuiteFieldBuilder().getBuilder();
}
/**
*
* TLS cipher suite negotiated during handshake. The value is a
* four-digit hex code defined by the IANA TLS Cipher Suite Registry
* (e.g. ``009C`` for ``TLS_RSA_WITH_AES_128_GCM_SHA256``).
* Here it is expressed as an integer.
*
*
* .google.protobuf.UInt32Value tls_cipher_suite = 2;
*/
public com.google.protobuf.UInt32ValueOrBuilder getTlsCipherSuiteOrBuilder() {
if (tlsCipherSuiteBuilder_ != null) {
return tlsCipherSuiteBuilder_.getMessageOrBuilder();
} else {
return tlsCipherSuite_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : tlsCipherSuite_;
}
}
/**
*
* TLS cipher suite negotiated during handshake. The value is a
* four-digit hex code defined by the IANA TLS Cipher Suite Registry
* (e.g. ``009C`` for ``TLS_RSA_WITH_AES_128_GCM_SHA256``).
* Here it is expressed as an integer.
*
*
* .google.protobuf.UInt32Value tls_cipher_suite = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getTlsCipherSuiteFieldBuilder() {
if (tlsCipherSuiteBuilder_ == null) {
tlsCipherSuiteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getTlsCipherSuite(),
getParentForChildren(),
isClean());
tlsCipherSuite_ = null;
}
return tlsCipherSuiteBuilder_;
}
private java.lang.Object tlsSniHostname_ = "";
/**
*
* SNI hostname from handshake.
*
*
* string tls_sni_hostname = 3;
*/
public java.lang.String getTlsSniHostname() {
java.lang.Object ref = tlsSniHostname_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tlsSniHostname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* SNI hostname from handshake.
*
*
* string tls_sni_hostname = 3;
*/
public com.google.protobuf.ByteString
getTlsSniHostnameBytes() {
java.lang.Object ref = tlsSniHostname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tlsSniHostname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* SNI hostname from handshake.
*
*
* string tls_sni_hostname = 3;
*/
public Builder setTlsSniHostname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
tlsSniHostname_ = value;
onChanged();
return this;
}
/**
*
* SNI hostname from handshake.
*
*
* string tls_sni_hostname = 3;
*/
public Builder clearTlsSniHostname() {
tlsSniHostname_ = getDefaultInstance().getTlsSniHostname();
onChanged();
return this;
}
/**
*
* SNI hostname from handshake.
*
*
* string tls_sni_hostname = 3;
*/
public Builder setTlsSniHostnameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
tlsSniHostname_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.data.accesslog.v2.TLSProperties)
}
// @@protoc_insertion_point(class_scope:envoy.data.accesslog.v2.TLSProperties)
private static final io.envoyproxy.envoy.data.accesslog.v2.TLSProperties DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.accesslog.v2.TLSProperties();
}
public static io.envoyproxy.envoy.data.accesslog.v2.TLSProperties getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TLSProperties parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TLSProperties(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.envoyproxy.envoy.data.accesslog.v2.TLSProperties getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy