
io.envoyproxy.envoy.api.v2.auth.Secret Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/api/v2/auth/secret.proto
package io.envoyproxy.envoy.api.v2.auth;
/**
*
* [#next-free-field: 6]
*
*
* Protobuf type {@code envoy.api.v2.auth.Secret}
*/
public final class Secret extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.api.v2.auth.Secret)
SecretOrBuilder {
private static final long serialVersionUID = 0L;
// Use Secret.newBuilder() to construct.
private Secret(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Secret() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Secret();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Secret(
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: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
io.envoyproxy.envoy.api.v2.auth.TlsCertificate.Builder subBuilder = null;
if (typeCase_ == 2) {
subBuilder = ((io.envoyproxy.envoy.api.v2.auth.TlsCertificate) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.envoy.api.v2.auth.TlsCertificate.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.api.v2.auth.TlsCertificate) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 2;
break;
}
case 26: {
io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys.Builder subBuilder = null;
if (typeCase_ == 3) {
subBuilder = ((io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 3;
break;
}
case 34: {
io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext.Builder subBuilder = null;
if (typeCase_ == 4) {
subBuilder = ((io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 4;
break;
}
case 42: {
io.envoyproxy.envoy.api.v2.auth.GenericSecret.Builder subBuilder = null;
if (typeCase_ == 5) {
subBuilder = ((io.envoyproxy.envoy.api.v2.auth.GenericSecret) type_).toBuilder();
}
type_ =
input.readMessage(io.envoyproxy.envoy.api.v2.auth.GenericSecret.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.api.v2.auth.GenericSecret) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 5;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.api.v2.auth.SecretProto.internal_static_envoy_api_v2_auth_Secret_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.api.v2.auth.SecretProto.internal_static_envoy_api_v2_auth_Secret_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.api.v2.auth.Secret.class, io.envoyproxy.envoy.api.v2.auth.Secret.Builder.class);
}
private int typeCase_ = 0;
private java.lang.Object type_;
public enum TypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
TLS_CERTIFICATE(2),
SESSION_TICKET_KEYS(3),
VALIDATION_CONTEXT(4),
GENERIC_SECRET(5),
TYPE_NOT_SET(0);
private final int value;
private TypeCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TypeCase valueOf(int value) {
return forNumber(value);
}
public static TypeCase forNumber(int value) {
switch (value) {
case 2: return TLS_CERTIFICATE;
case 3: return SESSION_TICKET_KEYS;
case 4: return VALIDATION_CONTEXT;
case 5: return GENERIC_SECRET;
case 0: return TYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public TypeCase
getTypeCase() {
return TypeCase.forNumber(
typeCase_);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Name (FQDN, UUID, SPKI, SHA256, etc.) by which the secret can be uniquely referred to.
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
* Name (FQDN, UUID, SPKI, SHA256, etc.) by which the secret can be uniquely referred to.
*
*
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TLS_CERTIFICATE_FIELD_NUMBER = 2;
/**
* .envoy.api.v2.auth.TlsCertificate tls_certificate = 2;
* @return Whether the tlsCertificate field is set.
*/
@java.lang.Override
public boolean hasTlsCertificate() {
return typeCase_ == 2;
}
/**
* .envoy.api.v2.auth.TlsCertificate tls_certificate = 2;
* @return The tlsCertificate.
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.TlsCertificate getTlsCertificate() {
if (typeCase_ == 2) {
return (io.envoyproxy.envoy.api.v2.auth.TlsCertificate) type_;
}
return io.envoyproxy.envoy.api.v2.auth.TlsCertificate.getDefaultInstance();
}
/**
* .envoy.api.v2.auth.TlsCertificate tls_certificate = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.TlsCertificateOrBuilder getTlsCertificateOrBuilder() {
if (typeCase_ == 2) {
return (io.envoyproxy.envoy.api.v2.auth.TlsCertificate) type_;
}
return io.envoyproxy.envoy.api.v2.auth.TlsCertificate.getDefaultInstance();
}
public static final int SESSION_TICKET_KEYS_FIELD_NUMBER = 3;
/**
* .envoy.api.v2.auth.TlsSessionTicketKeys session_ticket_keys = 3;
* @return Whether the sessionTicketKeys field is set.
*/
@java.lang.Override
public boolean hasSessionTicketKeys() {
return typeCase_ == 3;
}
/**
* .envoy.api.v2.auth.TlsSessionTicketKeys session_ticket_keys = 3;
* @return The sessionTicketKeys.
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys getSessionTicketKeys() {
if (typeCase_ == 3) {
return (io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys) type_;
}
return io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys.getDefaultInstance();
}
/**
* .envoy.api.v2.auth.TlsSessionTicketKeys session_ticket_keys = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeysOrBuilder getSessionTicketKeysOrBuilder() {
if (typeCase_ == 3) {
return (io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys) type_;
}
return io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys.getDefaultInstance();
}
public static final int VALIDATION_CONTEXT_FIELD_NUMBER = 4;
/**
* .envoy.api.v2.auth.CertificateValidationContext validation_context = 4;
* @return Whether the validationContext field is set.
*/
@java.lang.Override
public boolean hasValidationContext() {
return typeCase_ == 4;
}
/**
* .envoy.api.v2.auth.CertificateValidationContext validation_context = 4;
* @return The validationContext.
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext getValidationContext() {
if (typeCase_ == 4) {
return (io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext) type_;
}
return io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext.getDefaultInstance();
}
/**
* .envoy.api.v2.auth.CertificateValidationContext validation_context = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.CertificateValidationContextOrBuilder getValidationContextOrBuilder() {
if (typeCase_ == 4) {
return (io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext) type_;
}
return io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext.getDefaultInstance();
}
public static final int GENERIC_SECRET_FIELD_NUMBER = 5;
/**
* .envoy.api.v2.auth.GenericSecret generic_secret = 5;
* @return Whether the genericSecret field is set.
*/
@java.lang.Override
public boolean hasGenericSecret() {
return typeCase_ == 5;
}
/**
* .envoy.api.v2.auth.GenericSecret generic_secret = 5;
* @return The genericSecret.
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.GenericSecret getGenericSecret() {
if (typeCase_ == 5) {
return (io.envoyproxy.envoy.api.v2.auth.GenericSecret) type_;
}
return io.envoyproxy.envoy.api.v2.auth.GenericSecret.getDefaultInstance();
}
/**
* .envoy.api.v2.auth.GenericSecret generic_secret = 5;
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.GenericSecretOrBuilder getGenericSecretOrBuilder() {
if (typeCase_ == 5) {
return (io.envoyproxy.envoy.api.v2.auth.GenericSecret) type_;
}
return io.envoyproxy.envoy.api.v2.auth.GenericSecret.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (typeCase_ == 2) {
output.writeMessage(2, (io.envoyproxy.envoy.api.v2.auth.TlsCertificate) type_);
}
if (typeCase_ == 3) {
output.writeMessage(3, (io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys) type_);
}
if (typeCase_ == 4) {
output.writeMessage(4, (io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext) type_);
}
if (typeCase_ == 5) {
output.writeMessage(5, (io.envoyproxy.envoy.api.v2.auth.GenericSecret) type_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (typeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.envoyproxy.envoy.api.v2.auth.TlsCertificate) type_);
}
if (typeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys) type_);
}
if (typeCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext) type_);
}
if (typeCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.envoyproxy.envoy.api.v2.auth.GenericSecret) type_);
}
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.api.v2.auth.Secret)) {
return super.equals(obj);
}
io.envoyproxy.envoy.api.v2.auth.Secret other = (io.envoyproxy.envoy.api.v2.auth.Secret) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getTypeCase().equals(other.getTypeCase())) return false;
switch (typeCase_) {
case 2:
if (!getTlsCertificate()
.equals(other.getTlsCertificate())) return false;
break;
case 3:
if (!getSessionTicketKeys()
.equals(other.getSessionTicketKeys())) return false;
break;
case 4:
if (!getValidationContext()
.equals(other.getValidationContext())) return false;
break;
case 5:
if (!getGenericSecret()
.equals(other.getGenericSecret())) 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();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
switch (typeCase_) {
case 2:
hash = (37 * hash) + TLS_CERTIFICATE_FIELD_NUMBER;
hash = (53 * hash) + getTlsCertificate().hashCode();
break;
case 3:
hash = (37 * hash) + SESSION_TICKET_KEYS_FIELD_NUMBER;
hash = (53 * hash) + getSessionTicketKeys().hashCode();
break;
case 4:
hash = (37 * hash) + VALIDATION_CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getValidationContext().hashCode();
break;
case 5:
hash = (37 * hash) + GENERIC_SECRET_FIELD_NUMBER;
hash = (53 * hash) + getGenericSecret().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.api.v2.auth.Secret parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.auth.Secret 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.api.v2.auth.Secret parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.auth.Secret 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.api.v2.auth.Secret parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.auth.Secret parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.api.v2.auth.Secret parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.auth.Secret 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.api.v2.auth.Secret parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.auth.Secret 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.api.v2.auth.Secret parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.auth.Secret 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.api.v2.auth.Secret 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;
}
/**
*
* [#next-free-field: 6]
*
*
* Protobuf type {@code envoy.api.v2.auth.Secret}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.api.v2.auth.Secret)
io.envoyproxy.envoy.api.v2.auth.SecretOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.api.v2.auth.SecretProto.internal_static_envoy_api_v2_auth_Secret_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.api.v2.auth.SecretProto.internal_static_envoy_api_v2_auth_Secret_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.api.v2.auth.Secret.class, io.envoyproxy.envoy.api.v2.auth.Secret.Builder.class);
}
// Construct using io.envoyproxy.envoy.api.v2.auth.Secret.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();
name_ = "";
typeCase_ = 0;
type_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.api.v2.auth.SecretProto.internal_static_envoy_api_v2_auth_Secret_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.Secret getDefaultInstanceForType() {
return io.envoyproxy.envoy.api.v2.auth.Secret.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.Secret build() {
io.envoyproxy.envoy.api.v2.auth.Secret result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.Secret buildPartial() {
io.envoyproxy.envoy.api.v2.auth.Secret result = new io.envoyproxy.envoy.api.v2.auth.Secret(this);
result.name_ = name_;
if (typeCase_ == 2) {
if (tlsCertificateBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = tlsCertificateBuilder_.build();
}
}
if (typeCase_ == 3) {
if (sessionTicketKeysBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = sessionTicketKeysBuilder_.build();
}
}
if (typeCase_ == 4) {
if (validationContextBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = validationContextBuilder_.build();
}
}
if (typeCase_ == 5) {
if (genericSecretBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = genericSecretBuilder_.build();
}
}
result.typeCase_ = typeCase_;
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.api.v2.auth.Secret) {
return mergeFrom((io.envoyproxy.envoy.api.v2.auth.Secret)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.api.v2.auth.Secret other) {
if (other == io.envoyproxy.envoy.api.v2.auth.Secret.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
switch (other.getTypeCase()) {
case TLS_CERTIFICATE: {
mergeTlsCertificate(other.getTlsCertificate());
break;
}
case SESSION_TICKET_KEYS: {
mergeSessionTicketKeys(other.getSessionTicketKeys());
break;
}
case VALIDATION_CONTEXT: {
mergeValidationContext(other.getValidationContext());
break;
}
case GENERIC_SECRET: {
mergeGenericSecret(other.getGenericSecret());
break;
}
case TYPE_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.api.v2.auth.Secret parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.api.v2.auth.Secret) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int typeCase_ = 0;
private java.lang.Object type_;
public TypeCase
getTypeCase() {
return TypeCase.forNumber(
typeCase_);
}
public Builder clearType() {
typeCase_ = 0;
type_ = null;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name (FQDN, UUID, SPKI, SHA256, etc.) by which the secret can be uniquely referred to.
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name (FQDN, UUID, SPKI, SHA256, etc.) by which the secret can be uniquely referred to.
*
*
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name (FQDN, UUID, SPKI, SHA256, etc.) by which the secret can be uniquely referred to.
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name (FQDN, UUID, SPKI, SHA256, etc.) by which the secret can be uniquely referred to.
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name (FQDN, UUID, SPKI, SHA256, etc.) by which the secret can be uniquely referred to.
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.auth.TlsCertificate, io.envoyproxy.envoy.api.v2.auth.TlsCertificate.Builder, io.envoyproxy.envoy.api.v2.auth.TlsCertificateOrBuilder> tlsCertificateBuilder_;
/**
* .envoy.api.v2.auth.TlsCertificate tls_certificate = 2;
* @return Whether the tlsCertificate field is set.
*/
@java.lang.Override
public boolean hasTlsCertificate() {
return typeCase_ == 2;
}
/**
* .envoy.api.v2.auth.TlsCertificate tls_certificate = 2;
* @return The tlsCertificate.
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.TlsCertificate getTlsCertificate() {
if (tlsCertificateBuilder_ == null) {
if (typeCase_ == 2) {
return (io.envoyproxy.envoy.api.v2.auth.TlsCertificate) type_;
}
return io.envoyproxy.envoy.api.v2.auth.TlsCertificate.getDefaultInstance();
} else {
if (typeCase_ == 2) {
return tlsCertificateBuilder_.getMessage();
}
return io.envoyproxy.envoy.api.v2.auth.TlsCertificate.getDefaultInstance();
}
}
/**
* .envoy.api.v2.auth.TlsCertificate tls_certificate = 2;
*/
public Builder setTlsCertificate(io.envoyproxy.envoy.api.v2.auth.TlsCertificate value) {
if (tlsCertificateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
tlsCertificateBuilder_.setMessage(value);
}
typeCase_ = 2;
return this;
}
/**
* .envoy.api.v2.auth.TlsCertificate tls_certificate = 2;
*/
public Builder setTlsCertificate(
io.envoyproxy.envoy.api.v2.auth.TlsCertificate.Builder builderForValue) {
if (tlsCertificateBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
tlsCertificateBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 2;
return this;
}
/**
* .envoy.api.v2.auth.TlsCertificate tls_certificate = 2;
*/
public Builder mergeTlsCertificate(io.envoyproxy.envoy.api.v2.auth.TlsCertificate value) {
if (tlsCertificateBuilder_ == null) {
if (typeCase_ == 2 &&
type_ != io.envoyproxy.envoy.api.v2.auth.TlsCertificate.getDefaultInstance()) {
type_ = io.envoyproxy.envoy.api.v2.auth.TlsCertificate.newBuilder((io.envoyproxy.envoy.api.v2.auth.TlsCertificate) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 2) {
tlsCertificateBuilder_.mergeFrom(value);
} else {
tlsCertificateBuilder_.setMessage(value);
}
}
typeCase_ = 2;
return this;
}
/**
* .envoy.api.v2.auth.TlsCertificate tls_certificate = 2;
*/
public Builder clearTlsCertificate() {
if (tlsCertificateBuilder_ == null) {
if (typeCase_ == 2) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 2) {
typeCase_ = 0;
type_ = null;
}
tlsCertificateBuilder_.clear();
}
return this;
}
/**
* .envoy.api.v2.auth.TlsCertificate tls_certificate = 2;
*/
public io.envoyproxy.envoy.api.v2.auth.TlsCertificate.Builder getTlsCertificateBuilder() {
return getTlsCertificateFieldBuilder().getBuilder();
}
/**
* .envoy.api.v2.auth.TlsCertificate tls_certificate = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.TlsCertificateOrBuilder getTlsCertificateOrBuilder() {
if ((typeCase_ == 2) && (tlsCertificateBuilder_ != null)) {
return tlsCertificateBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 2) {
return (io.envoyproxy.envoy.api.v2.auth.TlsCertificate) type_;
}
return io.envoyproxy.envoy.api.v2.auth.TlsCertificate.getDefaultInstance();
}
}
/**
* .envoy.api.v2.auth.TlsCertificate tls_certificate = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.auth.TlsCertificate, io.envoyproxy.envoy.api.v2.auth.TlsCertificate.Builder, io.envoyproxy.envoy.api.v2.auth.TlsCertificateOrBuilder>
getTlsCertificateFieldBuilder() {
if (tlsCertificateBuilder_ == null) {
if (!(typeCase_ == 2)) {
type_ = io.envoyproxy.envoy.api.v2.auth.TlsCertificate.getDefaultInstance();
}
tlsCertificateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.auth.TlsCertificate, io.envoyproxy.envoy.api.v2.auth.TlsCertificate.Builder, io.envoyproxy.envoy.api.v2.auth.TlsCertificateOrBuilder>(
(io.envoyproxy.envoy.api.v2.auth.TlsCertificate) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 2;
onChanged();;
return tlsCertificateBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys, io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys.Builder, io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeysOrBuilder> sessionTicketKeysBuilder_;
/**
* .envoy.api.v2.auth.TlsSessionTicketKeys session_ticket_keys = 3;
* @return Whether the sessionTicketKeys field is set.
*/
@java.lang.Override
public boolean hasSessionTicketKeys() {
return typeCase_ == 3;
}
/**
* .envoy.api.v2.auth.TlsSessionTicketKeys session_ticket_keys = 3;
* @return The sessionTicketKeys.
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys getSessionTicketKeys() {
if (sessionTicketKeysBuilder_ == null) {
if (typeCase_ == 3) {
return (io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys) type_;
}
return io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys.getDefaultInstance();
} else {
if (typeCase_ == 3) {
return sessionTicketKeysBuilder_.getMessage();
}
return io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys.getDefaultInstance();
}
}
/**
* .envoy.api.v2.auth.TlsSessionTicketKeys session_ticket_keys = 3;
*/
public Builder setSessionTicketKeys(io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys value) {
if (sessionTicketKeysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
sessionTicketKeysBuilder_.setMessage(value);
}
typeCase_ = 3;
return this;
}
/**
* .envoy.api.v2.auth.TlsSessionTicketKeys session_ticket_keys = 3;
*/
public Builder setSessionTicketKeys(
io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys.Builder builderForValue) {
if (sessionTicketKeysBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
sessionTicketKeysBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 3;
return this;
}
/**
* .envoy.api.v2.auth.TlsSessionTicketKeys session_ticket_keys = 3;
*/
public Builder mergeSessionTicketKeys(io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys value) {
if (sessionTicketKeysBuilder_ == null) {
if (typeCase_ == 3 &&
type_ != io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys.getDefaultInstance()) {
type_ = io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys.newBuilder((io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 3) {
sessionTicketKeysBuilder_.mergeFrom(value);
} else {
sessionTicketKeysBuilder_.setMessage(value);
}
}
typeCase_ = 3;
return this;
}
/**
* .envoy.api.v2.auth.TlsSessionTicketKeys session_ticket_keys = 3;
*/
public Builder clearSessionTicketKeys() {
if (sessionTicketKeysBuilder_ == null) {
if (typeCase_ == 3) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 3) {
typeCase_ = 0;
type_ = null;
}
sessionTicketKeysBuilder_.clear();
}
return this;
}
/**
* .envoy.api.v2.auth.TlsSessionTicketKeys session_ticket_keys = 3;
*/
public io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys.Builder getSessionTicketKeysBuilder() {
return getSessionTicketKeysFieldBuilder().getBuilder();
}
/**
* .envoy.api.v2.auth.TlsSessionTicketKeys session_ticket_keys = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeysOrBuilder getSessionTicketKeysOrBuilder() {
if ((typeCase_ == 3) && (sessionTicketKeysBuilder_ != null)) {
return sessionTicketKeysBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 3) {
return (io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys) type_;
}
return io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys.getDefaultInstance();
}
}
/**
* .envoy.api.v2.auth.TlsSessionTicketKeys session_ticket_keys = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys, io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys.Builder, io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeysOrBuilder>
getSessionTicketKeysFieldBuilder() {
if (sessionTicketKeysBuilder_ == null) {
if (!(typeCase_ == 3)) {
type_ = io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys.getDefaultInstance();
}
sessionTicketKeysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys, io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys.Builder, io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeysOrBuilder>(
(io.envoyproxy.envoy.api.v2.auth.TlsSessionTicketKeys) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 3;
onChanged();;
return sessionTicketKeysBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext, io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext.Builder, io.envoyproxy.envoy.api.v2.auth.CertificateValidationContextOrBuilder> validationContextBuilder_;
/**
* .envoy.api.v2.auth.CertificateValidationContext validation_context = 4;
* @return Whether the validationContext field is set.
*/
@java.lang.Override
public boolean hasValidationContext() {
return typeCase_ == 4;
}
/**
* .envoy.api.v2.auth.CertificateValidationContext validation_context = 4;
* @return The validationContext.
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext getValidationContext() {
if (validationContextBuilder_ == null) {
if (typeCase_ == 4) {
return (io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext) type_;
}
return io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext.getDefaultInstance();
} else {
if (typeCase_ == 4) {
return validationContextBuilder_.getMessage();
}
return io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext.getDefaultInstance();
}
}
/**
* .envoy.api.v2.auth.CertificateValidationContext validation_context = 4;
*/
public Builder setValidationContext(io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext value) {
if (validationContextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
validationContextBuilder_.setMessage(value);
}
typeCase_ = 4;
return this;
}
/**
* .envoy.api.v2.auth.CertificateValidationContext validation_context = 4;
*/
public Builder setValidationContext(
io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext.Builder builderForValue) {
if (validationContextBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
validationContextBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 4;
return this;
}
/**
* .envoy.api.v2.auth.CertificateValidationContext validation_context = 4;
*/
public Builder mergeValidationContext(io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext value) {
if (validationContextBuilder_ == null) {
if (typeCase_ == 4 &&
type_ != io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext.getDefaultInstance()) {
type_ = io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext.newBuilder((io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 4) {
validationContextBuilder_.mergeFrom(value);
} else {
validationContextBuilder_.setMessage(value);
}
}
typeCase_ = 4;
return this;
}
/**
* .envoy.api.v2.auth.CertificateValidationContext validation_context = 4;
*/
public Builder clearValidationContext() {
if (validationContextBuilder_ == null) {
if (typeCase_ == 4) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 4) {
typeCase_ = 0;
type_ = null;
}
validationContextBuilder_.clear();
}
return this;
}
/**
* .envoy.api.v2.auth.CertificateValidationContext validation_context = 4;
*/
public io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext.Builder getValidationContextBuilder() {
return getValidationContextFieldBuilder().getBuilder();
}
/**
* .envoy.api.v2.auth.CertificateValidationContext validation_context = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.CertificateValidationContextOrBuilder getValidationContextOrBuilder() {
if ((typeCase_ == 4) && (validationContextBuilder_ != null)) {
return validationContextBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 4) {
return (io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext) type_;
}
return io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext.getDefaultInstance();
}
}
/**
* .envoy.api.v2.auth.CertificateValidationContext validation_context = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext, io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext.Builder, io.envoyproxy.envoy.api.v2.auth.CertificateValidationContextOrBuilder>
getValidationContextFieldBuilder() {
if (validationContextBuilder_ == null) {
if (!(typeCase_ == 4)) {
type_ = io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext.getDefaultInstance();
}
validationContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext, io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext.Builder, io.envoyproxy.envoy.api.v2.auth.CertificateValidationContextOrBuilder>(
(io.envoyproxy.envoy.api.v2.auth.CertificateValidationContext) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 4;
onChanged();;
return validationContextBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.auth.GenericSecret, io.envoyproxy.envoy.api.v2.auth.GenericSecret.Builder, io.envoyproxy.envoy.api.v2.auth.GenericSecretOrBuilder> genericSecretBuilder_;
/**
* .envoy.api.v2.auth.GenericSecret generic_secret = 5;
* @return Whether the genericSecret field is set.
*/
@java.lang.Override
public boolean hasGenericSecret() {
return typeCase_ == 5;
}
/**
* .envoy.api.v2.auth.GenericSecret generic_secret = 5;
* @return The genericSecret.
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.GenericSecret getGenericSecret() {
if (genericSecretBuilder_ == null) {
if (typeCase_ == 5) {
return (io.envoyproxy.envoy.api.v2.auth.GenericSecret) type_;
}
return io.envoyproxy.envoy.api.v2.auth.GenericSecret.getDefaultInstance();
} else {
if (typeCase_ == 5) {
return genericSecretBuilder_.getMessage();
}
return io.envoyproxy.envoy.api.v2.auth.GenericSecret.getDefaultInstance();
}
}
/**
* .envoy.api.v2.auth.GenericSecret generic_secret = 5;
*/
public Builder setGenericSecret(io.envoyproxy.envoy.api.v2.auth.GenericSecret value) {
if (genericSecretBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
genericSecretBuilder_.setMessage(value);
}
typeCase_ = 5;
return this;
}
/**
* .envoy.api.v2.auth.GenericSecret generic_secret = 5;
*/
public Builder setGenericSecret(
io.envoyproxy.envoy.api.v2.auth.GenericSecret.Builder builderForValue) {
if (genericSecretBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
genericSecretBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 5;
return this;
}
/**
* .envoy.api.v2.auth.GenericSecret generic_secret = 5;
*/
public Builder mergeGenericSecret(io.envoyproxy.envoy.api.v2.auth.GenericSecret value) {
if (genericSecretBuilder_ == null) {
if (typeCase_ == 5 &&
type_ != io.envoyproxy.envoy.api.v2.auth.GenericSecret.getDefaultInstance()) {
type_ = io.envoyproxy.envoy.api.v2.auth.GenericSecret.newBuilder((io.envoyproxy.envoy.api.v2.auth.GenericSecret) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 5) {
genericSecretBuilder_.mergeFrom(value);
} else {
genericSecretBuilder_.setMessage(value);
}
}
typeCase_ = 5;
return this;
}
/**
* .envoy.api.v2.auth.GenericSecret generic_secret = 5;
*/
public Builder clearGenericSecret() {
if (genericSecretBuilder_ == null) {
if (typeCase_ == 5) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 5) {
typeCase_ = 0;
type_ = null;
}
genericSecretBuilder_.clear();
}
return this;
}
/**
* .envoy.api.v2.auth.GenericSecret generic_secret = 5;
*/
public io.envoyproxy.envoy.api.v2.auth.GenericSecret.Builder getGenericSecretBuilder() {
return getGenericSecretFieldBuilder().getBuilder();
}
/**
* .envoy.api.v2.auth.GenericSecret generic_secret = 5;
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.GenericSecretOrBuilder getGenericSecretOrBuilder() {
if ((typeCase_ == 5) && (genericSecretBuilder_ != null)) {
return genericSecretBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 5) {
return (io.envoyproxy.envoy.api.v2.auth.GenericSecret) type_;
}
return io.envoyproxy.envoy.api.v2.auth.GenericSecret.getDefaultInstance();
}
}
/**
* .envoy.api.v2.auth.GenericSecret generic_secret = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.auth.GenericSecret, io.envoyproxy.envoy.api.v2.auth.GenericSecret.Builder, io.envoyproxy.envoy.api.v2.auth.GenericSecretOrBuilder>
getGenericSecretFieldBuilder() {
if (genericSecretBuilder_ == null) {
if (!(typeCase_ == 5)) {
type_ = io.envoyproxy.envoy.api.v2.auth.GenericSecret.getDefaultInstance();
}
genericSecretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.auth.GenericSecret, io.envoyproxy.envoy.api.v2.auth.GenericSecret.Builder, io.envoyproxy.envoy.api.v2.auth.GenericSecretOrBuilder>(
(io.envoyproxy.envoy.api.v2.auth.GenericSecret) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 5;
onChanged();;
return genericSecretBuilder_;
}
@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.api.v2.auth.Secret)
}
// @@protoc_insertion_point(class_scope:envoy.api.v2.auth.Secret)
private static final io.envoyproxy.envoy.api.v2.auth.Secret DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.api.v2.auth.Secret();
}
public static io.envoyproxy.envoy.api.v2.auth.Secret getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Secret parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Secret(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.api.v2.auth.Secret getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy