Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.envoyproxy.envoy.admin.v3alpha.Certificate Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/admin/v3alpha/certs.proto
package io.envoyproxy.envoy.admin.v3alpha;
/**
* Protobuf type {@code envoy.admin.v3alpha.Certificate}
*/
public final class Certificate extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v3alpha.Certificate)
CertificateOrBuilder {
private static final long serialVersionUID = 0L;
// Use Certificate.newBuilder() to construct.
private Certificate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Certificate() {
caCert_ = java.util.Collections.emptyList();
certChain_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Certificate();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Certificate(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
caCert_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
caCert_.add(
input.readMessage(io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.parser(), extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
certChain_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
certChain_.add(
input.readMessage(io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
caCert_ = java.util.Collections.unmodifiableList(caCert_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
certChain_ = java.util.Collections.unmodifiableList(certChain_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v3alpha.CertsProto.internal_static_envoy_admin_v3alpha_Certificate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3alpha.CertsProto.internal_static_envoy_admin_v3alpha_Certificate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3alpha.Certificate.class, io.envoyproxy.envoy.admin.v3alpha.Certificate.Builder.class);
}
public static final int CA_CERT_FIELD_NUMBER = 1;
private java.util.List caCert_;
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public java.util.List getCaCertList() {
return caCert_;
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public java.util.List extends io.envoyproxy.envoy.admin.v3alpha.CertificateDetailsOrBuilder>
getCaCertOrBuilderList() {
return caCert_;
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public int getCaCertCount() {
return caCert_.size();
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public io.envoyproxy.envoy.admin.v3alpha.CertificateDetails getCaCert(int index) {
return caCert_.get(index);
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public io.envoyproxy.envoy.admin.v3alpha.CertificateDetailsOrBuilder getCaCertOrBuilder(
int index) {
return caCert_.get(index);
}
public static final int CERT_CHAIN_FIELD_NUMBER = 2;
private java.util.List certChain_;
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public java.util.List getCertChainList() {
return certChain_;
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public java.util.List extends io.envoyproxy.envoy.admin.v3alpha.CertificateDetailsOrBuilder>
getCertChainOrBuilderList() {
return certChain_;
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public int getCertChainCount() {
return certChain_.size();
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public io.envoyproxy.envoy.admin.v3alpha.CertificateDetails getCertChain(int index) {
return certChain_.get(index);
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public io.envoyproxy.envoy.admin.v3alpha.CertificateDetailsOrBuilder getCertChainOrBuilder(
int index) {
return certChain_.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 {
for (int i = 0; i < caCert_.size(); i++) {
output.writeMessage(1, caCert_.get(i));
}
for (int i = 0; i < certChain_.size(); i++) {
output.writeMessage(2, certChain_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < caCert_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, caCert_.get(i));
}
for (int i = 0; i < certChain_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, certChain_.get(i));
}
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.admin.v3alpha.Certificate)) {
return super.equals(obj);
}
io.envoyproxy.envoy.admin.v3alpha.Certificate other = (io.envoyproxy.envoy.admin.v3alpha.Certificate) obj;
if (!getCaCertList()
.equals(other.getCaCertList())) return false;
if (!getCertChainList()
.equals(other.getCertChainList())) 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 (getCaCertCount() > 0) {
hash = (37 * hash) + CA_CERT_FIELD_NUMBER;
hash = (53 * hash) + getCaCertList().hashCode();
}
if (getCertChainCount() > 0) {
hash = (37 * hash) + CERT_CHAIN_FIELD_NUMBER;
hash = (53 * hash) + getCertChainList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.admin.v3alpha.Certificate parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3alpha.Certificate 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.admin.v3alpha.Certificate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3alpha.Certificate 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.admin.v3alpha.Certificate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3alpha.Certificate parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v3alpha.Certificate parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3alpha.Certificate 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.admin.v3alpha.Certificate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3alpha.Certificate 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.admin.v3alpha.Certificate parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3alpha.Certificate 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.admin.v3alpha.Certificate 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;
}
/**
* Protobuf type {@code envoy.admin.v3alpha.Certificate}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.admin.v3alpha.Certificate)
io.envoyproxy.envoy.admin.v3alpha.CertificateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v3alpha.CertsProto.internal_static_envoy_admin_v3alpha_Certificate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3alpha.CertsProto.internal_static_envoy_admin_v3alpha_Certificate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3alpha.Certificate.class, io.envoyproxy.envoy.admin.v3alpha.Certificate.Builder.class);
}
// Construct using io.envoyproxy.envoy.admin.v3alpha.Certificate.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCaCertFieldBuilder();
getCertChainFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (caCertBuilder_ == null) {
caCert_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
caCertBuilder_.clear();
}
if (certChainBuilder_ == null) {
certChain_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
certChainBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.admin.v3alpha.CertsProto.internal_static_envoy_admin_v3alpha_Certificate_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3alpha.Certificate getDefaultInstanceForType() {
return io.envoyproxy.envoy.admin.v3alpha.Certificate.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3alpha.Certificate build() {
io.envoyproxy.envoy.admin.v3alpha.Certificate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3alpha.Certificate buildPartial() {
io.envoyproxy.envoy.admin.v3alpha.Certificate result = new io.envoyproxy.envoy.admin.v3alpha.Certificate(this);
int from_bitField0_ = bitField0_;
if (caCertBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
caCert_ = java.util.Collections.unmodifiableList(caCert_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.caCert_ = caCert_;
} else {
result.caCert_ = caCertBuilder_.build();
}
if (certChainBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
certChain_ = java.util.Collections.unmodifiableList(certChain_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.certChain_ = certChain_;
} else {
result.certChain_ = certChainBuilder_.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.admin.v3alpha.Certificate) {
return mergeFrom((io.envoyproxy.envoy.admin.v3alpha.Certificate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.admin.v3alpha.Certificate other) {
if (other == io.envoyproxy.envoy.admin.v3alpha.Certificate.getDefaultInstance()) return this;
if (caCertBuilder_ == null) {
if (!other.caCert_.isEmpty()) {
if (caCert_.isEmpty()) {
caCert_ = other.caCert_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCaCertIsMutable();
caCert_.addAll(other.caCert_);
}
onChanged();
}
} else {
if (!other.caCert_.isEmpty()) {
if (caCertBuilder_.isEmpty()) {
caCertBuilder_.dispose();
caCertBuilder_ = null;
caCert_ = other.caCert_;
bitField0_ = (bitField0_ & ~0x00000001);
caCertBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCaCertFieldBuilder() : null;
} else {
caCertBuilder_.addAllMessages(other.caCert_);
}
}
}
if (certChainBuilder_ == null) {
if (!other.certChain_.isEmpty()) {
if (certChain_.isEmpty()) {
certChain_ = other.certChain_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureCertChainIsMutable();
certChain_.addAll(other.certChain_);
}
onChanged();
}
} else {
if (!other.certChain_.isEmpty()) {
if (certChainBuilder_.isEmpty()) {
certChainBuilder_.dispose();
certChainBuilder_ = null;
certChain_ = other.certChain_;
bitField0_ = (bitField0_ & ~0x00000002);
certChainBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCertChainFieldBuilder() : null;
} else {
certChainBuilder_.addAllMessages(other.certChain_);
}
}
}
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.admin.v3alpha.Certificate parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.admin.v3alpha.Certificate) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List caCert_ =
java.util.Collections.emptyList();
private void ensureCaCertIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
caCert_ = new java.util.ArrayList(caCert_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v3alpha.CertificateDetails, io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.Builder, io.envoyproxy.envoy.admin.v3alpha.CertificateDetailsOrBuilder> caCertBuilder_;
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public java.util.List getCaCertList() {
if (caCertBuilder_ == null) {
return java.util.Collections.unmodifiableList(caCert_);
} else {
return caCertBuilder_.getMessageList();
}
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public int getCaCertCount() {
if (caCertBuilder_ == null) {
return caCert_.size();
} else {
return caCertBuilder_.getCount();
}
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public io.envoyproxy.envoy.admin.v3alpha.CertificateDetails getCaCert(int index) {
if (caCertBuilder_ == null) {
return caCert_.get(index);
} else {
return caCertBuilder_.getMessage(index);
}
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public Builder setCaCert(
int index, io.envoyproxy.envoy.admin.v3alpha.CertificateDetails value) {
if (caCertBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCaCertIsMutable();
caCert_.set(index, value);
onChanged();
} else {
caCertBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public Builder setCaCert(
int index, io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.Builder builderForValue) {
if (caCertBuilder_ == null) {
ensureCaCertIsMutable();
caCert_.set(index, builderForValue.build());
onChanged();
} else {
caCertBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public Builder addCaCert(io.envoyproxy.envoy.admin.v3alpha.CertificateDetails value) {
if (caCertBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCaCertIsMutable();
caCert_.add(value);
onChanged();
} else {
caCertBuilder_.addMessage(value);
}
return this;
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public Builder addCaCert(
int index, io.envoyproxy.envoy.admin.v3alpha.CertificateDetails value) {
if (caCertBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCaCertIsMutable();
caCert_.add(index, value);
onChanged();
} else {
caCertBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public Builder addCaCert(
io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.Builder builderForValue) {
if (caCertBuilder_ == null) {
ensureCaCertIsMutable();
caCert_.add(builderForValue.build());
onChanged();
} else {
caCertBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public Builder addCaCert(
int index, io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.Builder builderForValue) {
if (caCertBuilder_ == null) {
ensureCaCertIsMutable();
caCert_.add(index, builderForValue.build());
onChanged();
} else {
caCertBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public Builder addAllCaCert(
java.lang.Iterable extends io.envoyproxy.envoy.admin.v3alpha.CertificateDetails> values) {
if (caCertBuilder_ == null) {
ensureCaCertIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, caCert_);
onChanged();
} else {
caCertBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public Builder clearCaCert() {
if (caCertBuilder_ == null) {
caCert_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
caCertBuilder_.clear();
}
return this;
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public Builder removeCaCert(int index) {
if (caCertBuilder_ == null) {
ensureCaCertIsMutable();
caCert_.remove(index);
onChanged();
} else {
caCertBuilder_.remove(index);
}
return this;
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.Builder getCaCertBuilder(
int index) {
return getCaCertFieldBuilder().getBuilder(index);
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public io.envoyproxy.envoy.admin.v3alpha.CertificateDetailsOrBuilder getCaCertOrBuilder(
int index) {
if (caCertBuilder_ == null) {
return caCert_.get(index); } else {
return caCertBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public java.util.List extends io.envoyproxy.envoy.admin.v3alpha.CertificateDetailsOrBuilder>
getCaCertOrBuilderList() {
if (caCertBuilder_ != null) {
return caCertBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(caCert_);
}
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.Builder addCaCertBuilder() {
return getCaCertFieldBuilder().addBuilder(
io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.getDefaultInstance());
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.Builder addCaCertBuilder(
int index) {
return getCaCertFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.getDefaultInstance());
}
/**
*
* Details of CA certificate.
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails ca_cert = 1;
*/
public java.util.List
getCaCertBuilderList() {
return getCaCertFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v3alpha.CertificateDetails, io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.Builder, io.envoyproxy.envoy.admin.v3alpha.CertificateDetailsOrBuilder>
getCaCertFieldBuilder() {
if (caCertBuilder_ == null) {
caCertBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v3alpha.CertificateDetails, io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.Builder, io.envoyproxy.envoy.admin.v3alpha.CertificateDetailsOrBuilder>(
caCert_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
caCert_ = null;
}
return caCertBuilder_;
}
private java.util.List certChain_ =
java.util.Collections.emptyList();
private void ensureCertChainIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
certChain_ = new java.util.ArrayList(certChain_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v3alpha.CertificateDetails, io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.Builder, io.envoyproxy.envoy.admin.v3alpha.CertificateDetailsOrBuilder> certChainBuilder_;
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public java.util.List getCertChainList() {
if (certChainBuilder_ == null) {
return java.util.Collections.unmodifiableList(certChain_);
} else {
return certChainBuilder_.getMessageList();
}
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public int getCertChainCount() {
if (certChainBuilder_ == null) {
return certChain_.size();
} else {
return certChainBuilder_.getCount();
}
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public io.envoyproxy.envoy.admin.v3alpha.CertificateDetails getCertChain(int index) {
if (certChainBuilder_ == null) {
return certChain_.get(index);
} else {
return certChainBuilder_.getMessage(index);
}
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public Builder setCertChain(
int index, io.envoyproxy.envoy.admin.v3alpha.CertificateDetails value) {
if (certChainBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCertChainIsMutable();
certChain_.set(index, value);
onChanged();
} else {
certChainBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public Builder setCertChain(
int index, io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.Builder builderForValue) {
if (certChainBuilder_ == null) {
ensureCertChainIsMutable();
certChain_.set(index, builderForValue.build());
onChanged();
} else {
certChainBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public Builder addCertChain(io.envoyproxy.envoy.admin.v3alpha.CertificateDetails value) {
if (certChainBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCertChainIsMutable();
certChain_.add(value);
onChanged();
} else {
certChainBuilder_.addMessage(value);
}
return this;
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public Builder addCertChain(
int index, io.envoyproxy.envoy.admin.v3alpha.CertificateDetails value) {
if (certChainBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCertChainIsMutable();
certChain_.add(index, value);
onChanged();
} else {
certChainBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public Builder addCertChain(
io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.Builder builderForValue) {
if (certChainBuilder_ == null) {
ensureCertChainIsMutable();
certChain_.add(builderForValue.build());
onChanged();
} else {
certChainBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public Builder addCertChain(
int index, io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.Builder builderForValue) {
if (certChainBuilder_ == null) {
ensureCertChainIsMutable();
certChain_.add(index, builderForValue.build());
onChanged();
} else {
certChainBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public Builder addAllCertChain(
java.lang.Iterable extends io.envoyproxy.envoy.admin.v3alpha.CertificateDetails> values) {
if (certChainBuilder_ == null) {
ensureCertChainIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, certChain_);
onChanged();
} else {
certChainBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public Builder clearCertChain() {
if (certChainBuilder_ == null) {
certChain_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
certChainBuilder_.clear();
}
return this;
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public Builder removeCertChain(int index) {
if (certChainBuilder_ == null) {
ensureCertChainIsMutable();
certChain_.remove(index);
onChanged();
} else {
certChainBuilder_.remove(index);
}
return this;
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.Builder getCertChainBuilder(
int index) {
return getCertChainFieldBuilder().getBuilder(index);
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public io.envoyproxy.envoy.admin.v3alpha.CertificateDetailsOrBuilder getCertChainOrBuilder(
int index) {
if (certChainBuilder_ == null) {
return certChain_.get(index); } else {
return certChainBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public java.util.List extends io.envoyproxy.envoy.admin.v3alpha.CertificateDetailsOrBuilder>
getCertChainOrBuilderList() {
if (certChainBuilder_ != null) {
return certChainBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(certChain_);
}
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.Builder addCertChainBuilder() {
return getCertChainFieldBuilder().addBuilder(
io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.getDefaultInstance());
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.Builder addCertChainBuilder(
int index) {
return getCertChainFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.getDefaultInstance());
}
/**
*
* Details of Certificate Chain
*
*
* repeated .envoy.admin.v3alpha.CertificateDetails cert_chain = 2;
*/
public java.util.List
getCertChainBuilderList() {
return getCertChainFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v3alpha.CertificateDetails, io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.Builder, io.envoyproxy.envoy.admin.v3alpha.CertificateDetailsOrBuilder>
getCertChainFieldBuilder() {
if (certChainBuilder_ == null) {
certChainBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v3alpha.CertificateDetails, io.envoyproxy.envoy.admin.v3alpha.CertificateDetails.Builder, io.envoyproxy.envoy.admin.v3alpha.CertificateDetailsOrBuilder>(
certChain_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
certChain_ = null;
}
return certChainBuilder_;
}
@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.admin.v3alpha.Certificate)
}
// @@protoc_insertion_point(class_scope:envoy.admin.v3alpha.Certificate)
private static final io.envoyproxy.envoy.admin.v3alpha.Certificate DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v3alpha.Certificate();
}
public static io.envoyproxy.envoy.admin.v3alpha.Certificate getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Certificate parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Certificate(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.admin.v3alpha.Certificate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}