
io.envoyproxy.envoy.api.v2.auth.TlsCertificate Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/api/v2/auth/common.proto
package io.envoyproxy.envoy.api.v2.auth;
/**
*
* [#next-free-field: 7]
*
*
* Protobuf type {@code envoy.api.v2.auth.TlsCertificate}
*/
public final class TlsCertificate extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.api.v2.auth.TlsCertificate)
TlsCertificateOrBuilder {
private static final long serialVersionUID = 0L;
// Use TlsCertificate.newBuilder() to construct.
private TlsCertificate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TlsCertificate() {
signedCertificateTimestamp_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TlsCertificate();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TlsCertificate(
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;
case 10: {
io.envoyproxy.envoy.api.v2.core.DataSource.Builder subBuilder = null;
if (certificateChain_ != null) {
subBuilder = certificateChain_.toBuilder();
}
certificateChain_ = input.readMessage(io.envoyproxy.envoy.api.v2.core.DataSource.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(certificateChain_);
certificateChain_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.envoyproxy.envoy.api.v2.core.DataSource.Builder subBuilder = null;
if (privateKey_ != null) {
subBuilder = privateKey_.toBuilder();
}
privateKey_ = input.readMessage(io.envoyproxy.envoy.api.v2.core.DataSource.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(privateKey_);
privateKey_ = subBuilder.buildPartial();
}
break;
}
case 26: {
io.envoyproxy.envoy.api.v2.core.DataSource.Builder subBuilder = null;
if (password_ != null) {
subBuilder = password_.toBuilder();
}
password_ = input.readMessage(io.envoyproxy.envoy.api.v2.core.DataSource.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(password_);
password_ = subBuilder.buildPartial();
}
break;
}
case 34: {
io.envoyproxy.envoy.api.v2.core.DataSource.Builder subBuilder = null;
if (ocspStaple_ != null) {
subBuilder = ocspStaple_.toBuilder();
}
ocspStaple_ = input.readMessage(io.envoyproxy.envoy.api.v2.core.DataSource.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ocspStaple_);
ocspStaple_ = subBuilder.buildPartial();
}
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
signedCertificateTimestamp_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
signedCertificateTimestamp_.add(
input.readMessage(io.envoyproxy.envoy.api.v2.core.DataSource.parser(), extensionRegistry));
break;
}
case 50: {
io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider.Builder subBuilder = null;
if (privateKeyProvider_ != null) {
subBuilder = privateKeyProvider_.toBuilder();
}
privateKeyProvider_ = input.readMessage(io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(privateKeyProvider_);
privateKeyProvider_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
signedCertificateTimestamp_ = java.util.Collections.unmodifiableList(signedCertificateTimestamp_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.api.v2.auth.CommonProto.internal_static_envoy_api_v2_auth_TlsCertificate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.api.v2.auth.CommonProto.internal_static_envoy_api_v2_auth_TlsCertificate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.api.v2.auth.TlsCertificate.class, io.envoyproxy.envoy.api.v2.auth.TlsCertificate.Builder.class);
}
public static final int CERTIFICATE_CHAIN_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.api.v2.core.DataSource certificateChain_;
/**
*
* The TLS certificate chain.
*
*
* .envoy.api.v2.core.DataSource certificate_chain = 1;
* @return Whether the certificateChain field is set.
*/
@java.lang.Override
public boolean hasCertificateChain() {
return certificateChain_ != null;
}
/**
*
* The TLS certificate chain.
*
*
* .envoy.api.v2.core.DataSource certificate_chain = 1;
* @return The certificateChain.
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.core.DataSource getCertificateChain() {
return certificateChain_ == null ? io.envoyproxy.envoy.api.v2.core.DataSource.getDefaultInstance() : certificateChain_;
}
/**
*
* The TLS certificate chain.
*
*
* .envoy.api.v2.core.DataSource certificate_chain = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder getCertificateChainOrBuilder() {
return getCertificateChain();
}
public static final int PRIVATE_KEY_FIELD_NUMBER = 2;
private io.envoyproxy.envoy.api.v2.core.DataSource privateKey_;
/**
*
* The TLS private key.
*
*
* .envoy.api.v2.core.DataSource private_key = 2 [(.udpa.annotations.sensitive) = true];
* @return Whether the privateKey field is set.
*/
@java.lang.Override
public boolean hasPrivateKey() {
return privateKey_ != null;
}
/**
*
* The TLS private key.
*
*
* .envoy.api.v2.core.DataSource private_key = 2 [(.udpa.annotations.sensitive) = true];
* @return The privateKey.
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.core.DataSource getPrivateKey() {
return privateKey_ == null ? io.envoyproxy.envoy.api.v2.core.DataSource.getDefaultInstance() : privateKey_;
}
/**
*
* The TLS private key.
*
*
* .envoy.api.v2.core.DataSource private_key = 2 [(.udpa.annotations.sensitive) = true];
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder getPrivateKeyOrBuilder() {
return getPrivateKey();
}
public static final int PRIVATE_KEY_PROVIDER_FIELD_NUMBER = 6;
private io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider privateKeyProvider_;
/**
*
* BoringSSL private key method provider. This is an alternative to :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` field. This can't be
* marked as ``oneof`` due to API compatibility reasons. Setting both :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` and
* :ref:`private_key_provider
* <envoy_api_field_auth.TlsCertificate.private_key_provider>` fields will result in an
* error.
*
*
* .envoy.api.v2.auth.PrivateKeyProvider private_key_provider = 6;
* @return Whether the privateKeyProvider field is set.
*/
@java.lang.Override
public boolean hasPrivateKeyProvider() {
return privateKeyProvider_ != null;
}
/**
*
* BoringSSL private key method provider. This is an alternative to :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` field. This can't be
* marked as ``oneof`` due to API compatibility reasons. Setting both :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` and
* :ref:`private_key_provider
* <envoy_api_field_auth.TlsCertificate.private_key_provider>` fields will result in an
* error.
*
*
* .envoy.api.v2.auth.PrivateKeyProvider private_key_provider = 6;
* @return The privateKeyProvider.
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider getPrivateKeyProvider() {
return privateKeyProvider_ == null ? io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider.getDefaultInstance() : privateKeyProvider_;
}
/**
*
* BoringSSL private key method provider. This is an alternative to :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` field. This can't be
* marked as ``oneof`` due to API compatibility reasons. Setting both :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` and
* :ref:`private_key_provider
* <envoy_api_field_auth.TlsCertificate.private_key_provider>` fields will result in an
* error.
*
*
* .envoy.api.v2.auth.PrivateKeyProvider private_key_provider = 6;
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.PrivateKeyProviderOrBuilder getPrivateKeyProviderOrBuilder() {
return getPrivateKeyProvider();
}
public static final int PASSWORD_FIELD_NUMBER = 3;
private io.envoyproxy.envoy.api.v2.core.DataSource password_;
/**
*
* The password to decrypt the TLS private key. If this field is not set, it is assumed that the
* TLS private key is not password encrypted.
*
*
* .envoy.api.v2.core.DataSource password = 3 [(.udpa.annotations.sensitive) = true];
* @return Whether the password field is set.
*/
@java.lang.Override
public boolean hasPassword() {
return password_ != null;
}
/**
*
* The password to decrypt the TLS private key. If this field is not set, it is assumed that the
* TLS private key is not password encrypted.
*
*
* .envoy.api.v2.core.DataSource password = 3 [(.udpa.annotations.sensitive) = true];
* @return The password.
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.core.DataSource getPassword() {
return password_ == null ? io.envoyproxy.envoy.api.v2.core.DataSource.getDefaultInstance() : password_;
}
/**
*
* The password to decrypt the TLS private key. If this field is not set, it is assumed that the
* TLS private key is not password encrypted.
*
*
* .envoy.api.v2.core.DataSource password = 3 [(.udpa.annotations.sensitive) = true];
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder getPasswordOrBuilder() {
return getPassword();
}
public static final int OCSP_STAPLE_FIELD_NUMBER = 4;
private io.envoyproxy.envoy.api.v2.core.DataSource ocspStaple_;
/**
*
* [#not-implemented-hide:]
*
*
* .envoy.api.v2.core.DataSource ocsp_staple = 4;
* @return Whether the ocspStaple field is set.
*/
@java.lang.Override
public boolean hasOcspStaple() {
return ocspStaple_ != null;
}
/**
*
* [#not-implemented-hide:]
*
*
* .envoy.api.v2.core.DataSource ocsp_staple = 4;
* @return The ocspStaple.
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.core.DataSource getOcspStaple() {
return ocspStaple_ == null ? io.envoyproxy.envoy.api.v2.core.DataSource.getDefaultInstance() : ocspStaple_;
}
/**
*
* [#not-implemented-hide:]
*
*
* .envoy.api.v2.core.DataSource ocsp_staple = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder getOcspStapleOrBuilder() {
return getOcspStaple();
}
public static final int SIGNED_CERTIFICATE_TIMESTAMP_FIELD_NUMBER = 5;
private java.util.List signedCertificateTimestamp_;
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
@java.lang.Override
public java.util.List getSignedCertificateTimestampList() {
return signedCertificateTimestamp_;
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder>
getSignedCertificateTimestampOrBuilderList() {
return signedCertificateTimestamp_;
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
@java.lang.Override
public int getSignedCertificateTimestampCount() {
return signedCertificateTimestamp_.size();
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.core.DataSource getSignedCertificateTimestamp(int index) {
return signedCertificateTimestamp_.get(index);
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder getSignedCertificateTimestampOrBuilder(
int index) {
return signedCertificateTimestamp_.get(index);
}
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 (certificateChain_ != null) {
output.writeMessage(1, getCertificateChain());
}
if (privateKey_ != null) {
output.writeMessage(2, getPrivateKey());
}
if (password_ != null) {
output.writeMessage(3, getPassword());
}
if (ocspStaple_ != null) {
output.writeMessage(4, getOcspStaple());
}
for (int i = 0; i < signedCertificateTimestamp_.size(); i++) {
output.writeMessage(5, signedCertificateTimestamp_.get(i));
}
if (privateKeyProvider_ != null) {
output.writeMessage(6, getPrivateKeyProvider());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (certificateChain_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCertificateChain());
}
if (privateKey_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPrivateKey());
}
if (password_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPassword());
}
if (ocspStaple_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getOcspStaple());
}
for (int i = 0; i < signedCertificateTimestamp_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, signedCertificateTimestamp_.get(i));
}
if (privateKeyProvider_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getPrivateKeyProvider());
}
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.TlsCertificate)) {
return super.equals(obj);
}
io.envoyproxy.envoy.api.v2.auth.TlsCertificate other = (io.envoyproxy.envoy.api.v2.auth.TlsCertificate) obj;
if (hasCertificateChain() != other.hasCertificateChain()) return false;
if (hasCertificateChain()) {
if (!getCertificateChain()
.equals(other.getCertificateChain())) return false;
}
if (hasPrivateKey() != other.hasPrivateKey()) return false;
if (hasPrivateKey()) {
if (!getPrivateKey()
.equals(other.getPrivateKey())) return false;
}
if (hasPrivateKeyProvider() != other.hasPrivateKeyProvider()) return false;
if (hasPrivateKeyProvider()) {
if (!getPrivateKeyProvider()
.equals(other.getPrivateKeyProvider())) return false;
}
if (hasPassword() != other.hasPassword()) return false;
if (hasPassword()) {
if (!getPassword()
.equals(other.getPassword())) return false;
}
if (hasOcspStaple() != other.hasOcspStaple()) return false;
if (hasOcspStaple()) {
if (!getOcspStaple()
.equals(other.getOcspStaple())) return false;
}
if (!getSignedCertificateTimestampList()
.equals(other.getSignedCertificateTimestampList())) 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 (hasCertificateChain()) {
hash = (37 * hash) + CERTIFICATE_CHAIN_FIELD_NUMBER;
hash = (53 * hash) + getCertificateChain().hashCode();
}
if (hasPrivateKey()) {
hash = (37 * hash) + PRIVATE_KEY_FIELD_NUMBER;
hash = (53 * hash) + getPrivateKey().hashCode();
}
if (hasPrivateKeyProvider()) {
hash = (37 * hash) + PRIVATE_KEY_PROVIDER_FIELD_NUMBER;
hash = (53 * hash) + getPrivateKeyProvider().hashCode();
}
if (hasPassword()) {
hash = (37 * hash) + PASSWORD_FIELD_NUMBER;
hash = (53 * hash) + getPassword().hashCode();
}
if (hasOcspStaple()) {
hash = (37 * hash) + OCSP_STAPLE_FIELD_NUMBER;
hash = (53 * hash) + getOcspStaple().hashCode();
}
if (getSignedCertificateTimestampCount() > 0) {
hash = (37 * hash) + SIGNED_CERTIFICATE_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getSignedCertificateTimestampList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.api.v2.auth.TlsCertificate parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.auth.TlsCertificate 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.TlsCertificate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.auth.TlsCertificate 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.TlsCertificate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.auth.TlsCertificate 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.TlsCertificate 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.TlsCertificate 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.TlsCertificate 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.TlsCertificate 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.TlsCertificate 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.TlsCertificate 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.TlsCertificate 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: 7]
*
*
* Protobuf type {@code envoy.api.v2.auth.TlsCertificate}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.api.v2.auth.TlsCertificate)
io.envoyproxy.envoy.api.v2.auth.TlsCertificateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.api.v2.auth.CommonProto.internal_static_envoy_api_v2_auth_TlsCertificate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.api.v2.auth.CommonProto.internal_static_envoy_api_v2_auth_TlsCertificate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.api.v2.auth.TlsCertificate.class, io.envoyproxy.envoy.api.v2.auth.TlsCertificate.Builder.class);
}
// Construct using io.envoyproxy.envoy.api.v2.auth.TlsCertificate.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSignedCertificateTimestampFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (certificateChainBuilder_ == null) {
certificateChain_ = null;
} else {
certificateChain_ = null;
certificateChainBuilder_ = null;
}
if (privateKeyBuilder_ == null) {
privateKey_ = null;
} else {
privateKey_ = null;
privateKeyBuilder_ = null;
}
if (privateKeyProviderBuilder_ == null) {
privateKeyProvider_ = null;
} else {
privateKeyProvider_ = null;
privateKeyProviderBuilder_ = null;
}
if (passwordBuilder_ == null) {
password_ = null;
} else {
password_ = null;
passwordBuilder_ = null;
}
if (ocspStapleBuilder_ == null) {
ocspStaple_ = null;
} else {
ocspStaple_ = null;
ocspStapleBuilder_ = null;
}
if (signedCertificateTimestampBuilder_ == null) {
signedCertificateTimestamp_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
signedCertificateTimestampBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.api.v2.auth.CommonProto.internal_static_envoy_api_v2_auth_TlsCertificate_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.TlsCertificate getDefaultInstanceForType() {
return io.envoyproxy.envoy.api.v2.auth.TlsCertificate.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.TlsCertificate build() {
io.envoyproxy.envoy.api.v2.auth.TlsCertificate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.api.v2.auth.TlsCertificate buildPartial() {
io.envoyproxy.envoy.api.v2.auth.TlsCertificate result = new io.envoyproxy.envoy.api.v2.auth.TlsCertificate(this);
int from_bitField0_ = bitField0_;
if (certificateChainBuilder_ == null) {
result.certificateChain_ = certificateChain_;
} else {
result.certificateChain_ = certificateChainBuilder_.build();
}
if (privateKeyBuilder_ == null) {
result.privateKey_ = privateKey_;
} else {
result.privateKey_ = privateKeyBuilder_.build();
}
if (privateKeyProviderBuilder_ == null) {
result.privateKeyProvider_ = privateKeyProvider_;
} else {
result.privateKeyProvider_ = privateKeyProviderBuilder_.build();
}
if (passwordBuilder_ == null) {
result.password_ = password_;
} else {
result.password_ = passwordBuilder_.build();
}
if (ocspStapleBuilder_ == null) {
result.ocspStaple_ = ocspStaple_;
} else {
result.ocspStaple_ = ocspStapleBuilder_.build();
}
if (signedCertificateTimestampBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
signedCertificateTimestamp_ = java.util.Collections.unmodifiableList(signedCertificateTimestamp_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.signedCertificateTimestamp_ = signedCertificateTimestamp_;
} else {
result.signedCertificateTimestamp_ = signedCertificateTimestampBuilder_.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.api.v2.auth.TlsCertificate) {
return mergeFrom((io.envoyproxy.envoy.api.v2.auth.TlsCertificate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.api.v2.auth.TlsCertificate other) {
if (other == io.envoyproxy.envoy.api.v2.auth.TlsCertificate.getDefaultInstance()) return this;
if (other.hasCertificateChain()) {
mergeCertificateChain(other.getCertificateChain());
}
if (other.hasPrivateKey()) {
mergePrivateKey(other.getPrivateKey());
}
if (other.hasPrivateKeyProvider()) {
mergePrivateKeyProvider(other.getPrivateKeyProvider());
}
if (other.hasPassword()) {
mergePassword(other.getPassword());
}
if (other.hasOcspStaple()) {
mergeOcspStaple(other.getOcspStaple());
}
if (signedCertificateTimestampBuilder_ == null) {
if (!other.signedCertificateTimestamp_.isEmpty()) {
if (signedCertificateTimestamp_.isEmpty()) {
signedCertificateTimestamp_ = other.signedCertificateTimestamp_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSignedCertificateTimestampIsMutable();
signedCertificateTimestamp_.addAll(other.signedCertificateTimestamp_);
}
onChanged();
}
} else {
if (!other.signedCertificateTimestamp_.isEmpty()) {
if (signedCertificateTimestampBuilder_.isEmpty()) {
signedCertificateTimestampBuilder_.dispose();
signedCertificateTimestampBuilder_ = null;
signedCertificateTimestamp_ = other.signedCertificateTimestamp_;
bitField0_ = (bitField0_ & ~0x00000001);
signedCertificateTimestampBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSignedCertificateTimestampFieldBuilder() : null;
} else {
signedCertificateTimestampBuilder_.addAllMessages(other.signedCertificateTimestamp_);
}
}
}
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.TlsCertificate parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.api.v2.auth.TlsCertificate) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.envoyproxy.envoy.api.v2.core.DataSource certificateChain_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.DataSource, io.envoyproxy.envoy.api.v2.core.DataSource.Builder, io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder> certificateChainBuilder_;
/**
*
* The TLS certificate chain.
*
*
* .envoy.api.v2.core.DataSource certificate_chain = 1;
* @return Whether the certificateChain field is set.
*/
public boolean hasCertificateChain() {
return certificateChainBuilder_ != null || certificateChain_ != null;
}
/**
*
* The TLS certificate chain.
*
*
* .envoy.api.v2.core.DataSource certificate_chain = 1;
* @return The certificateChain.
*/
public io.envoyproxy.envoy.api.v2.core.DataSource getCertificateChain() {
if (certificateChainBuilder_ == null) {
return certificateChain_ == null ? io.envoyproxy.envoy.api.v2.core.DataSource.getDefaultInstance() : certificateChain_;
} else {
return certificateChainBuilder_.getMessage();
}
}
/**
*
* The TLS certificate chain.
*
*
* .envoy.api.v2.core.DataSource certificate_chain = 1;
*/
public Builder setCertificateChain(io.envoyproxy.envoy.api.v2.core.DataSource value) {
if (certificateChainBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
certificateChain_ = value;
onChanged();
} else {
certificateChainBuilder_.setMessage(value);
}
return this;
}
/**
*
* The TLS certificate chain.
*
*
* .envoy.api.v2.core.DataSource certificate_chain = 1;
*/
public Builder setCertificateChain(
io.envoyproxy.envoy.api.v2.core.DataSource.Builder builderForValue) {
if (certificateChainBuilder_ == null) {
certificateChain_ = builderForValue.build();
onChanged();
} else {
certificateChainBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The TLS certificate chain.
*
*
* .envoy.api.v2.core.DataSource certificate_chain = 1;
*/
public Builder mergeCertificateChain(io.envoyproxy.envoy.api.v2.core.DataSource value) {
if (certificateChainBuilder_ == null) {
if (certificateChain_ != null) {
certificateChain_ =
io.envoyproxy.envoy.api.v2.core.DataSource.newBuilder(certificateChain_).mergeFrom(value).buildPartial();
} else {
certificateChain_ = value;
}
onChanged();
} else {
certificateChainBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The TLS certificate chain.
*
*
* .envoy.api.v2.core.DataSource certificate_chain = 1;
*/
public Builder clearCertificateChain() {
if (certificateChainBuilder_ == null) {
certificateChain_ = null;
onChanged();
} else {
certificateChain_ = null;
certificateChainBuilder_ = null;
}
return this;
}
/**
*
* The TLS certificate chain.
*
*
* .envoy.api.v2.core.DataSource certificate_chain = 1;
*/
public io.envoyproxy.envoy.api.v2.core.DataSource.Builder getCertificateChainBuilder() {
onChanged();
return getCertificateChainFieldBuilder().getBuilder();
}
/**
*
* The TLS certificate chain.
*
*
* .envoy.api.v2.core.DataSource certificate_chain = 1;
*/
public io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder getCertificateChainOrBuilder() {
if (certificateChainBuilder_ != null) {
return certificateChainBuilder_.getMessageOrBuilder();
} else {
return certificateChain_ == null ?
io.envoyproxy.envoy.api.v2.core.DataSource.getDefaultInstance() : certificateChain_;
}
}
/**
*
* The TLS certificate chain.
*
*
* .envoy.api.v2.core.DataSource certificate_chain = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.DataSource, io.envoyproxy.envoy.api.v2.core.DataSource.Builder, io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder>
getCertificateChainFieldBuilder() {
if (certificateChainBuilder_ == null) {
certificateChainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.DataSource, io.envoyproxy.envoy.api.v2.core.DataSource.Builder, io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder>(
getCertificateChain(),
getParentForChildren(),
isClean());
certificateChain_ = null;
}
return certificateChainBuilder_;
}
private io.envoyproxy.envoy.api.v2.core.DataSource privateKey_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.DataSource, io.envoyproxy.envoy.api.v2.core.DataSource.Builder, io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder> privateKeyBuilder_;
/**
*
* The TLS private key.
*
*
* .envoy.api.v2.core.DataSource private_key = 2 [(.udpa.annotations.sensitive) = true];
* @return Whether the privateKey field is set.
*/
public boolean hasPrivateKey() {
return privateKeyBuilder_ != null || privateKey_ != null;
}
/**
*
* The TLS private key.
*
*
* .envoy.api.v2.core.DataSource private_key = 2 [(.udpa.annotations.sensitive) = true];
* @return The privateKey.
*/
public io.envoyproxy.envoy.api.v2.core.DataSource getPrivateKey() {
if (privateKeyBuilder_ == null) {
return privateKey_ == null ? io.envoyproxy.envoy.api.v2.core.DataSource.getDefaultInstance() : privateKey_;
} else {
return privateKeyBuilder_.getMessage();
}
}
/**
*
* The TLS private key.
*
*
* .envoy.api.v2.core.DataSource private_key = 2 [(.udpa.annotations.sensitive) = true];
*/
public Builder setPrivateKey(io.envoyproxy.envoy.api.v2.core.DataSource value) {
if (privateKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
privateKey_ = value;
onChanged();
} else {
privateKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
* The TLS private key.
*
*
* .envoy.api.v2.core.DataSource private_key = 2 [(.udpa.annotations.sensitive) = true];
*/
public Builder setPrivateKey(
io.envoyproxy.envoy.api.v2.core.DataSource.Builder builderForValue) {
if (privateKeyBuilder_ == null) {
privateKey_ = builderForValue.build();
onChanged();
} else {
privateKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The TLS private key.
*
*
* .envoy.api.v2.core.DataSource private_key = 2 [(.udpa.annotations.sensitive) = true];
*/
public Builder mergePrivateKey(io.envoyproxy.envoy.api.v2.core.DataSource value) {
if (privateKeyBuilder_ == null) {
if (privateKey_ != null) {
privateKey_ =
io.envoyproxy.envoy.api.v2.core.DataSource.newBuilder(privateKey_).mergeFrom(value).buildPartial();
} else {
privateKey_ = value;
}
onChanged();
} else {
privateKeyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The TLS private key.
*
*
* .envoy.api.v2.core.DataSource private_key = 2 [(.udpa.annotations.sensitive) = true];
*/
public Builder clearPrivateKey() {
if (privateKeyBuilder_ == null) {
privateKey_ = null;
onChanged();
} else {
privateKey_ = null;
privateKeyBuilder_ = null;
}
return this;
}
/**
*
* The TLS private key.
*
*
* .envoy.api.v2.core.DataSource private_key = 2 [(.udpa.annotations.sensitive) = true];
*/
public io.envoyproxy.envoy.api.v2.core.DataSource.Builder getPrivateKeyBuilder() {
onChanged();
return getPrivateKeyFieldBuilder().getBuilder();
}
/**
*
* The TLS private key.
*
*
* .envoy.api.v2.core.DataSource private_key = 2 [(.udpa.annotations.sensitive) = true];
*/
public io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder getPrivateKeyOrBuilder() {
if (privateKeyBuilder_ != null) {
return privateKeyBuilder_.getMessageOrBuilder();
} else {
return privateKey_ == null ?
io.envoyproxy.envoy.api.v2.core.DataSource.getDefaultInstance() : privateKey_;
}
}
/**
*
* The TLS private key.
*
*
* .envoy.api.v2.core.DataSource private_key = 2 [(.udpa.annotations.sensitive) = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.DataSource, io.envoyproxy.envoy.api.v2.core.DataSource.Builder, io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder>
getPrivateKeyFieldBuilder() {
if (privateKeyBuilder_ == null) {
privateKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.DataSource, io.envoyproxy.envoy.api.v2.core.DataSource.Builder, io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder>(
getPrivateKey(),
getParentForChildren(),
isClean());
privateKey_ = null;
}
return privateKeyBuilder_;
}
private io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider privateKeyProvider_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider, io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider.Builder, io.envoyproxy.envoy.api.v2.auth.PrivateKeyProviderOrBuilder> privateKeyProviderBuilder_;
/**
*
* BoringSSL private key method provider. This is an alternative to :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` field. This can't be
* marked as ``oneof`` due to API compatibility reasons. Setting both :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` and
* :ref:`private_key_provider
* <envoy_api_field_auth.TlsCertificate.private_key_provider>` fields will result in an
* error.
*
*
* .envoy.api.v2.auth.PrivateKeyProvider private_key_provider = 6;
* @return Whether the privateKeyProvider field is set.
*/
public boolean hasPrivateKeyProvider() {
return privateKeyProviderBuilder_ != null || privateKeyProvider_ != null;
}
/**
*
* BoringSSL private key method provider. This is an alternative to :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` field. This can't be
* marked as ``oneof`` due to API compatibility reasons. Setting both :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` and
* :ref:`private_key_provider
* <envoy_api_field_auth.TlsCertificate.private_key_provider>` fields will result in an
* error.
*
*
* .envoy.api.v2.auth.PrivateKeyProvider private_key_provider = 6;
* @return The privateKeyProvider.
*/
public io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider getPrivateKeyProvider() {
if (privateKeyProviderBuilder_ == null) {
return privateKeyProvider_ == null ? io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider.getDefaultInstance() : privateKeyProvider_;
} else {
return privateKeyProviderBuilder_.getMessage();
}
}
/**
*
* BoringSSL private key method provider. This is an alternative to :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` field. This can't be
* marked as ``oneof`` due to API compatibility reasons. Setting both :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` and
* :ref:`private_key_provider
* <envoy_api_field_auth.TlsCertificate.private_key_provider>` fields will result in an
* error.
*
*
* .envoy.api.v2.auth.PrivateKeyProvider private_key_provider = 6;
*/
public Builder setPrivateKeyProvider(io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider value) {
if (privateKeyProviderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
privateKeyProvider_ = value;
onChanged();
} else {
privateKeyProviderBuilder_.setMessage(value);
}
return this;
}
/**
*
* BoringSSL private key method provider. This is an alternative to :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` field. This can't be
* marked as ``oneof`` due to API compatibility reasons. Setting both :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` and
* :ref:`private_key_provider
* <envoy_api_field_auth.TlsCertificate.private_key_provider>` fields will result in an
* error.
*
*
* .envoy.api.v2.auth.PrivateKeyProvider private_key_provider = 6;
*/
public Builder setPrivateKeyProvider(
io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider.Builder builderForValue) {
if (privateKeyProviderBuilder_ == null) {
privateKeyProvider_ = builderForValue.build();
onChanged();
} else {
privateKeyProviderBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* BoringSSL private key method provider. This is an alternative to :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` field. This can't be
* marked as ``oneof`` due to API compatibility reasons. Setting both :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` and
* :ref:`private_key_provider
* <envoy_api_field_auth.TlsCertificate.private_key_provider>` fields will result in an
* error.
*
*
* .envoy.api.v2.auth.PrivateKeyProvider private_key_provider = 6;
*/
public Builder mergePrivateKeyProvider(io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider value) {
if (privateKeyProviderBuilder_ == null) {
if (privateKeyProvider_ != null) {
privateKeyProvider_ =
io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider.newBuilder(privateKeyProvider_).mergeFrom(value).buildPartial();
} else {
privateKeyProvider_ = value;
}
onChanged();
} else {
privateKeyProviderBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* BoringSSL private key method provider. This is an alternative to :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` field. This can't be
* marked as ``oneof`` due to API compatibility reasons. Setting both :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` and
* :ref:`private_key_provider
* <envoy_api_field_auth.TlsCertificate.private_key_provider>` fields will result in an
* error.
*
*
* .envoy.api.v2.auth.PrivateKeyProvider private_key_provider = 6;
*/
public Builder clearPrivateKeyProvider() {
if (privateKeyProviderBuilder_ == null) {
privateKeyProvider_ = null;
onChanged();
} else {
privateKeyProvider_ = null;
privateKeyProviderBuilder_ = null;
}
return this;
}
/**
*
* BoringSSL private key method provider. This is an alternative to :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` field. This can't be
* marked as ``oneof`` due to API compatibility reasons. Setting both :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` and
* :ref:`private_key_provider
* <envoy_api_field_auth.TlsCertificate.private_key_provider>` fields will result in an
* error.
*
*
* .envoy.api.v2.auth.PrivateKeyProvider private_key_provider = 6;
*/
public io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider.Builder getPrivateKeyProviderBuilder() {
onChanged();
return getPrivateKeyProviderFieldBuilder().getBuilder();
}
/**
*
* BoringSSL private key method provider. This is an alternative to :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` field. This can't be
* marked as ``oneof`` due to API compatibility reasons. Setting both :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` and
* :ref:`private_key_provider
* <envoy_api_field_auth.TlsCertificate.private_key_provider>` fields will result in an
* error.
*
*
* .envoy.api.v2.auth.PrivateKeyProvider private_key_provider = 6;
*/
public io.envoyproxy.envoy.api.v2.auth.PrivateKeyProviderOrBuilder getPrivateKeyProviderOrBuilder() {
if (privateKeyProviderBuilder_ != null) {
return privateKeyProviderBuilder_.getMessageOrBuilder();
} else {
return privateKeyProvider_ == null ?
io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider.getDefaultInstance() : privateKeyProvider_;
}
}
/**
*
* BoringSSL private key method provider. This is an alternative to :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` field. This can't be
* marked as ``oneof`` due to API compatibility reasons. Setting both :ref:`private_key
* <envoy_api_field_auth.TlsCertificate.private_key>` and
* :ref:`private_key_provider
* <envoy_api_field_auth.TlsCertificate.private_key_provider>` fields will result in an
* error.
*
*
* .envoy.api.v2.auth.PrivateKeyProvider private_key_provider = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider, io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider.Builder, io.envoyproxy.envoy.api.v2.auth.PrivateKeyProviderOrBuilder>
getPrivateKeyProviderFieldBuilder() {
if (privateKeyProviderBuilder_ == null) {
privateKeyProviderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider, io.envoyproxy.envoy.api.v2.auth.PrivateKeyProvider.Builder, io.envoyproxy.envoy.api.v2.auth.PrivateKeyProviderOrBuilder>(
getPrivateKeyProvider(),
getParentForChildren(),
isClean());
privateKeyProvider_ = null;
}
return privateKeyProviderBuilder_;
}
private io.envoyproxy.envoy.api.v2.core.DataSource password_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.DataSource, io.envoyproxy.envoy.api.v2.core.DataSource.Builder, io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder> passwordBuilder_;
/**
*
* The password to decrypt the TLS private key. If this field is not set, it is assumed that the
* TLS private key is not password encrypted.
*
*
* .envoy.api.v2.core.DataSource password = 3 [(.udpa.annotations.sensitive) = true];
* @return Whether the password field is set.
*/
public boolean hasPassword() {
return passwordBuilder_ != null || password_ != null;
}
/**
*
* The password to decrypt the TLS private key. If this field is not set, it is assumed that the
* TLS private key is not password encrypted.
*
*
* .envoy.api.v2.core.DataSource password = 3 [(.udpa.annotations.sensitive) = true];
* @return The password.
*/
public io.envoyproxy.envoy.api.v2.core.DataSource getPassword() {
if (passwordBuilder_ == null) {
return password_ == null ? io.envoyproxy.envoy.api.v2.core.DataSource.getDefaultInstance() : password_;
} else {
return passwordBuilder_.getMessage();
}
}
/**
*
* The password to decrypt the TLS private key. If this field is not set, it is assumed that the
* TLS private key is not password encrypted.
*
*
* .envoy.api.v2.core.DataSource password = 3 [(.udpa.annotations.sensitive) = true];
*/
public Builder setPassword(io.envoyproxy.envoy.api.v2.core.DataSource value) {
if (passwordBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
password_ = value;
onChanged();
} else {
passwordBuilder_.setMessage(value);
}
return this;
}
/**
*
* The password to decrypt the TLS private key. If this field is not set, it is assumed that the
* TLS private key is not password encrypted.
*
*
* .envoy.api.v2.core.DataSource password = 3 [(.udpa.annotations.sensitive) = true];
*/
public Builder setPassword(
io.envoyproxy.envoy.api.v2.core.DataSource.Builder builderForValue) {
if (passwordBuilder_ == null) {
password_ = builderForValue.build();
onChanged();
} else {
passwordBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The password to decrypt the TLS private key. If this field is not set, it is assumed that the
* TLS private key is not password encrypted.
*
*
* .envoy.api.v2.core.DataSource password = 3 [(.udpa.annotations.sensitive) = true];
*/
public Builder mergePassword(io.envoyproxy.envoy.api.v2.core.DataSource value) {
if (passwordBuilder_ == null) {
if (password_ != null) {
password_ =
io.envoyproxy.envoy.api.v2.core.DataSource.newBuilder(password_).mergeFrom(value).buildPartial();
} else {
password_ = value;
}
onChanged();
} else {
passwordBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The password to decrypt the TLS private key. If this field is not set, it is assumed that the
* TLS private key is not password encrypted.
*
*
* .envoy.api.v2.core.DataSource password = 3 [(.udpa.annotations.sensitive) = true];
*/
public Builder clearPassword() {
if (passwordBuilder_ == null) {
password_ = null;
onChanged();
} else {
password_ = null;
passwordBuilder_ = null;
}
return this;
}
/**
*
* The password to decrypt the TLS private key. If this field is not set, it is assumed that the
* TLS private key is not password encrypted.
*
*
* .envoy.api.v2.core.DataSource password = 3 [(.udpa.annotations.sensitive) = true];
*/
public io.envoyproxy.envoy.api.v2.core.DataSource.Builder getPasswordBuilder() {
onChanged();
return getPasswordFieldBuilder().getBuilder();
}
/**
*
* The password to decrypt the TLS private key. If this field is not set, it is assumed that the
* TLS private key is not password encrypted.
*
*
* .envoy.api.v2.core.DataSource password = 3 [(.udpa.annotations.sensitive) = true];
*/
public io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder getPasswordOrBuilder() {
if (passwordBuilder_ != null) {
return passwordBuilder_.getMessageOrBuilder();
} else {
return password_ == null ?
io.envoyproxy.envoy.api.v2.core.DataSource.getDefaultInstance() : password_;
}
}
/**
*
* The password to decrypt the TLS private key. If this field is not set, it is assumed that the
* TLS private key is not password encrypted.
*
*
* .envoy.api.v2.core.DataSource password = 3 [(.udpa.annotations.sensitive) = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.DataSource, io.envoyproxy.envoy.api.v2.core.DataSource.Builder, io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder>
getPasswordFieldBuilder() {
if (passwordBuilder_ == null) {
passwordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.DataSource, io.envoyproxy.envoy.api.v2.core.DataSource.Builder, io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder>(
getPassword(),
getParentForChildren(),
isClean());
password_ = null;
}
return passwordBuilder_;
}
private io.envoyproxy.envoy.api.v2.core.DataSource ocspStaple_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.DataSource, io.envoyproxy.envoy.api.v2.core.DataSource.Builder, io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder> ocspStapleBuilder_;
/**
*
* [#not-implemented-hide:]
*
*
* .envoy.api.v2.core.DataSource ocsp_staple = 4;
* @return Whether the ocspStaple field is set.
*/
public boolean hasOcspStaple() {
return ocspStapleBuilder_ != null || ocspStaple_ != null;
}
/**
*
* [#not-implemented-hide:]
*
*
* .envoy.api.v2.core.DataSource ocsp_staple = 4;
* @return The ocspStaple.
*/
public io.envoyproxy.envoy.api.v2.core.DataSource getOcspStaple() {
if (ocspStapleBuilder_ == null) {
return ocspStaple_ == null ? io.envoyproxy.envoy.api.v2.core.DataSource.getDefaultInstance() : ocspStaple_;
} else {
return ocspStapleBuilder_.getMessage();
}
}
/**
*
* [#not-implemented-hide:]
*
*
* .envoy.api.v2.core.DataSource ocsp_staple = 4;
*/
public Builder setOcspStaple(io.envoyproxy.envoy.api.v2.core.DataSource value) {
if (ocspStapleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ocspStaple_ = value;
onChanged();
} else {
ocspStapleBuilder_.setMessage(value);
}
return this;
}
/**
*
* [#not-implemented-hide:]
*
*
* .envoy.api.v2.core.DataSource ocsp_staple = 4;
*/
public Builder setOcspStaple(
io.envoyproxy.envoy.api.v2.core.DataSource.Builder builderForValue) {
if (ocspStapleBuilder_ == null) {
ocspStaple_ = builderForValue.build();
onChanged();
} else {
ocspStapleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* [#not-implemented-hide:]
*
*
* .envoy.api.v2.core.DataSource ocsp_staple = 4;
*/
public Builder mergeOcspStaple(io.envoyproxy.envoy.api.v2.core.DataSource value) {
if (ocspStapleBuilder_ == null) {
if (ocspStaple_ != null) {
ocspStaple_ =
io.envoyproxy.envoy.api.v2.core.DataSource.newBuilder(ocspStaple_).mergeFrom(value).buildPartial();
} else {
ocspStaple_ = value;
}
onChanged();
} else {
ocspStapleBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* [#not-implemented-hide:]
*
*
* .envoy.api.v2.core.DataSource ocsp_staple = 4;
*/
public Builder clearOcspStaple() {
if (ocspStapleBuilder_ == null) {
ocspStaple_ = null;
onChanged();
} else {
ocspStaple_ = null;
ocspStapleBuilder_ = null;
}
return this;
}
/**
*
* [#not-implemented-hide:]
*
*
* .envoy.api.v2.core.DataSource ocsp_staple = 4;
*/
public io.envoyproxy.envoy.api.v2.core.DataSource.Builder getOcspStapleBuilder() {
onChanged();
return getOcspStapleFieldBuilder().getBuilder();
}
/**
*
* [#not-implemented-hide:]
*
*
* .envoy.api.v2.core.DataSource ocsp_staple = 4;
*/
public io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder getOcspStapleOrBuilder() {
if (ocspStapleBuilder_ != null) {
return ocspStapleBuilder_.getMessageOrBuilder();
} else {
return ocspStaple_ == null ?
io.envoyproxy.envoy.api.v2.core.DataSource.getDefaultInstance() : ocspStaple_;
}
}
/**
*
* [#not-implemented-hide:]
*
*
* .envoy.api.v2.core.DataSource ocsp_staple = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.DataSource, io.envoyproxy.envoy.api.v2.core.DataSource.Builder, io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder>
getOcspStapleFieldBuilder() {
if (ocspStapleBuilder_ == null) {
ocspStapleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.DataSource, io.envoyproxy.envoy.api.v2.core.DataSource.Builder, io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder>(
getOcspStaple(),
getParentForChildren(),
isClean());
ocspStaple_ = null;
}
return ocspStapleBuilder_;
}
private java.util.List signedCertificateTimestamp_ =
java.util.Collections.emptyList();
private void ensureSignedCertificateTimestampIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
signedCertificateTimestamp_ = new java.util.ArrayList(signedCertificateTimestamp_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.DataSource, io.envoyproxy.envoy.api.v2.core.DataSource.Builder, io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder> signedCertificateTimestampBuilder_;
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
public java.util.List getSignedCertificateTimestampList() {
if (signedCertificateTimestampBuilder_ == null) {
return java.util.Collections.unmodifiableList(signedCertificateTimestamp_);
} else {
return signedCertificateTimestampBuilder_.getMessageList();
}
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
public int getSignedCertificateTimestampCount() {
if (signedCertificateTimestampBuilder_ == null) {
return signedCertificateTimestamp_.size();
} else {
return signedCertificateTimestampBuilder_.getCount();
}
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
public io.envoyproxy.envoy.api.v2.core.DataSource getSignedCertificateTimestamp(int index) {
if (signedCertificateTimestampBuilder_ == null) {
return signedCertificateTimestamp_.get(index);
} else {
return signedCertificateTimestampBuilder_.getMessage(index);
}
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
public Builder setSignedCertificateTimestamp(
int index, io.envoyproxy.envoy.api.v2.core.DataSource value) {
if (signedCertificateTimestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSignedCertificateTimestampIsMutable();
signedCertificateTimestamp_.set(index, value);
onChanged();
} else {
signedCertificateTimestampBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
public Builder setSignedCertificateTimestamp(
int index, io.envoyproxy.envoy.api.v2.core.DataSource.Builder builderForValue) {
if (signedCertificateTimestampBuilder_ == null) {
ensureSignedCertificateTimestampIsMutable();
signedCertificateTimestamp_.set(index, builderForValue.build());
onChanged();
} else {
signedCertificateTimestampBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
public Builder addSignedCertificateTimestamp(io.envoyproxy.envoy.api.v2.core.DataSource value) {
if (signedCertificateTimestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSignedCertificateTimestampIsMutable();
signedCertificateTimestamp_.add(value);
onChanged();
} else {
signedCertificateTimestampBuilder_.addMessage(value);
}
return this;
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
public Builder addSignedCertificateTimestamp(
int index, io.envoyproxy.envoy.api.v2.core.DataSource value) {
if (signedCertificateTimestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSignedCertificateTimestampIsMutable();
signedCertificateTimestamp_.add(index, value);
onChanged();
} else {
signedCertificateTimestampBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
public Builder addSignedCertificateTimestamp(
io.envoyproxy.envoy.api.v2.core.DataSource.Builder builderForValue) {
if (signedCertificateTimestampBuilder_ == null) {
ensureSignedCertificateTimestampIsMutable();
signedCertificateTimestamp_.add(builderForValue.build());
onChanged();
} else {
signedCertificateTimestampBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
public Builder addSignedCertificateTimestamp(
int index, io.envoyproxy.envoy.api.v2.core.DataSource.Builder builderForValue) {
if (signedCertificateTimestampBuilder_ == null) {
ensureSignedCertificateTimestampIsMutable();
signedCertificateTimestamp_.add(index, builderForValue.build());
onChanged();
} else {
signedCertificateTimestampBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
public Builder addAllSignedCertificateTimestamp(
java.lang.Iterable extends io.envoyproxy.envoy.api.v2.core.DataSource> values) {
if (signedCertificateTimestampBuilder_ == null) {
ensureSignedCertificateTimestampIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, signedCertificateTimestamp_);
onChanged();
} else {
signedCertificateTimestampBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
public Builder clearSignedCertificateTimestamp() {
if (signedCertificateTimestampBuilder_ == null) {
signedCertificateTimestamp_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
signedCertificateTimestampBuilder_.clear();
}
return this;
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
public Builder removeSignedCertificateTimestamp(int index) {
if (signedCertificateTimestampBuilder_ == null) {
ensureSignedCertificateTimestampIsMutable();
signedCertificateTimestamp_.remove(index);
onChanged();
} else {
signedCertificateTimestampBuilder_.remove(index);
}
return this;
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
public io.envoyproxy.envoy.api.v2.core.DataSource.Builder getSignedCertificateTimestampBuilder(
int index) {
return getSignedCertificateTimestampFieldBuilder().getBuilder(index);
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
public io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder getSignedCertificateTimestampOrBuilder(
int index) {
if (signedCertificateTimestampBuilder_ == null) {
return signedCertificateTimestamp_.get(index); } else {
return signedCertificateTimestampBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
public java.util.List extends io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder>
getSignedCertificateTimestampOrBuilderList() {
if (signedCertificateTimestampBuilder_ != null) {
return signedCertificateTimestampBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(signedCertificateTimestamp_);
}
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
public io.envoyproxy.envoy.api.v2.core.DataSource.Builder addSignedCertificateTimestampBuilder() {
return getSignedCertificateTimestampFieldBuilder().addBuilder(
io.envoyproxy.envoy.api.v2.core.DataSource.getDefaultInstance());
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
public io.envoyproxy.envoy.api.v2.core.DataSource.Builder addSignedCertificateTimestampBuilder(
int index) {
return getSignedCertificateTimestampFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.api.v2.core.DataSource.getDefaultInstance());
}
/**
*
* [#not-implemented-hide:]
*
*
* repeated .envoy.api.v2.core.DataSource signed_certificate_timestamp = 5;
*/
public java.util.List
getSignedCertificateTimestampBuilderList() {
return getSignedCertificateTimestampFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.DataSource, io.envoyproxy.envoy.api.v2.core.DataSource.Builder, io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder>
getSignedCertificateTimestampFieldBuilder() {
if (signedCertificateTimestampBuilder_ == null) {
signedCertificateTimestampBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.DataSource, io.envoyproxy.envoy.api.v2.core.DataSource.Builder, io.envoyproxy.envoy.api.v2.core.DataSourceOrBuilder>(
signedCertificateTimestamp_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
signedCertificateTimestamp_ = null;
}
return signedCertificateTimestampBuilder_;
}
@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.TlsCertificate)
}
// @@protoc_insertion_point(class_scope:envoy.api.v2.auth.TlsCertificate)
private static final io.envoyproxy.envoy.api.v2.auth.TlsCertificate DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.api.v2.auth.TlsCertificate();
}
public static io.envoyproxy.envoy.api.v2.auth.TlsCertificate getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TlsCertificate parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TlsCertificate(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.TlsCertificate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy