All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.admin.v2alpha.Certificate Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/admin/v2alpha/certs.proto

package io.envoyproxy.envoy.admin.v2alpha;

/**
 * Protobuf type {@code envoy.admin.v2alpha.Certificate}
 */
public  final class Certificate extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:envoy.admin.v2alpha.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
  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;
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
              caCert_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            caCert_.add(
                input.readMessage(io.envoyproxy.envoy.admin.v2alpha.CertificateDetails.parser(), extensionRegistry));
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
              certChain_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            certChain_.add(
                input.readMessage(io.envoyproxy.envoy.admin.v2alpha.CertificateDetails.parser(), extensionRegistry));
            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) == 0x00000001)) {
        caCert_ = java.util.Collections.unmodifiableList(caCert_);
      }
      if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
        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.v2alpha.CertsProto.internal_static_envoy_admin_v2alpha_Certificate_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.envoyproxy.envoy.admin.v2alpha.CertsProto.internal_static_envoy_admin_v2alpha_Certificate_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.envoyproxy.envoy.admin.v2alpha.Certificate.class, io.envoyproxy.envoy.admin.v2alpha.Certificate.Builder.class);
  }

  public static final int CA_CERT_FIELD_NUMBER = 1;
  private java.util.List caCert_;
  /**
   * 
   * Details of CA certificate.
   * 
* * repeated .envoy.admin.v2alpha.CertificateDetails ca_cert = 1; */ public java.util.List getCaCertList() { return caCert_; } /** *
   * Details of CA certificate.
   * 
* * repeated .envoy.admin.v2alpha.CertificateDetails ca_cert = 1; */ public java.util.List getCaCertOrBuilderList() { return caCert_; } /** *
   * Details of CA certificate.
   * 
* * repeated .envoy.admin.v2alpha.CertificateDetails ca_cert = 1; */ public int getCaCertCount() { return caCert_.size(); } /** *
   * Details of CA certificate.
   * 
* * repeated .envoy.admin.v2alpha.CertificateDetails ca_cert = 1; */ public io.envoyproxy.envoy.admin.v2alpha.CertificateDetails getCaCert(int index) { return caCert_.get(index); } /** *
   * Details of CA certificate.
   * 
* * repeated .envoy.admin.v2alpha.CertificateDetails ca_cert = 1; */ public io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.CertificateDetails cert_chain = 2; */ public java.util.List getCertChainList() { return certChain_; } /** *
   * Details of Certificate Chain
   * 
* * repeated .envoy.admin.v2alpha.CertificateDetails cert_chain = 2; */ public java.util.List getCertChainOrBuilderList() { return certChain_; } /** *
   * Details of Certificate Chain
   * 
* * repeated .envoy.admin.v2alpha.CertificateDetails cert_chain = 2; */ public int getCertChainCount() { return certChain_.size(); } /** *
   * Details of Certificate Chain
   * 
* * repeated .envoy.admin.v2alpha.CertificateDetails cert_chain = 2; */ public io.envoyproxy.envoy.admin.v2alpha.CertificateDetails getCertChain(int index) { return certChain_.get(index); } /** *
   * Details of Certificate Chain
   * 
* * repeated .envoy.admin.v2alpha.CertificateDetails cert_chain = 2; */ public io.envoyproxy.envoy.admin.v2alpha.CertificateDetailsOrBuilder getCertChainOrBuilder( int index) { return certChain_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 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); } 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.v2alpha.Certificate)) { return super.equals(obj); } io.envoyproxy.envoy.admin.v2alpha.Certificate other = (io.envoyproxy.envoy.admin.v2alpha.Certificate) obj; boolean result = true; result = result && getCaCertList() .equals(other.getCaCertList()); result = result && getCertChainList() .equals(other.getCertChainList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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.v2alpha.Certificate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.Certificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.Certificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.Certificate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.Certificate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.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.v2alpha.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); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.admin.v2alpha.Certificate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code envoy.admin.v2alpha.Certificate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.admin.v2alpha.Certificate) io.envoyproxy.envoy.admin.v2alpha.CertificateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.admin.v2alpha.CertsProto.internal_static_envoy_admin_v2alpha_Certificate_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.admin.v2alpha.CertsProto.internal_static_envoy_admin_v2alpha_Certificate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.admin.v2alpha.Certificate.class, io.envoyproxy.envoy.admin.v2alpha.Certificate.Builder.class); } // Construct using io.envoyproxy.envoy.admin.v2alpha.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(); } } 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; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.admin.v2alpha.CertsProto.internal_static_envoy_admin_v2alpha_Certificate_descriptor; } public io.envoyproxy.envoy.admin.v2alpha.Certificate getDefaultInstanceForType() { return io.envoyproxy.envoy.admin.v2alpha.Certificate.getDefaultInstance(); } public io.envoyproxy.envoy.admin.v2alpha.Certificate build() { io.envoyproxy.envoy.admin.v2alpha.Certificate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public io.envoyproxy.envoy.admin.v2alpha.Certificate buildPartial() { io.envoyproxy.envoy.admin.v2alpha.Certificate result = new io.envoyproxy.envoy.admin.v2alpha.Certificate(this); int from_bitField0_ = bitField0_; if (caCertBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { caCert_ = java.util.Collections.unmodifiableList(caCert_); bitField0_ = (bitField0_ & ~0x00000001); } result.caCert_ = caCert_; } else { result.caCert_ = caCertBuilder_.build(); } if (certChainBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { certChain_ = java.util.Collections.unmodifiableList(certChain_); bitField0_ = (bitField0_ & ~0x00000002); } result.certChain_ = certChain_; } else { result.certChain_ = certChainBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.admin.v2alpha.Certificate) { return mergeFrom((io.envoyproxy.envoy.admin.v2alpha.Certificate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.admin.v2alpha.Certificate other) { if (other == io.envoyproxy.envoy.admin.v2alpha.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; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.admin.v2alpha.Certificate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.admin.v2alpha.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) == 0x00000001)) { caCert_ = new java.util.ArrayList(caCert_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.CertificateDetails, io.envoyproxy.envoy.admin.v2alpha.CertificateDetails.Builder, io.envoyproxy.envoy.admin.v2alpha.CertificateDetailsOrBuilder> caCertBuilder_; /** *
     * Details of CA certificate.
     * 
* * repeated .envoy.admin.v2alpha.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.v2alpha.CertificateDetails ca_cert = 1; */ public int getCaCertCount() { if (caCertBuilder_ == null) { return caCert_.size(); } else { return caCertBuilder_.getCount(); } } /** *
     * Details of CA certificate.
     * 
* * repeated .envoy.admin.v2alpha.CertificateDetails ca_cert = 1; */ public io.envoyproxy.envoy.admin.v2alpha.CertificateDetails getCaCert(int index) { if (caCertBuilder_ == null) { return caCert_.get(index); } else { return caCertBuilder_.getMessage(index); } } /** *
     * Details of CA certificate.
     * 
* * repeated .envoy.admin.v2alpha.CertificateDetails ca_cert = 1; */ public Builder setCaCert( int index, io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.CertificateDetails ca_cert = 1; */ public Builder setCaCert( int index, io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.CertificateDetails ca_cert = 1; */ public Builder addCaCert(io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.CertificateDetails ca_cert = 1; */ public Builder addCaCert( int index, io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.CertificateDetails ca_cert = 1; */ public Builder addCaCert( io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.CertificateDetails ca_cert = 1; */ public Builder addCaCert( int index, io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.CertificateDetails ca_cert = 1; */ public Builder addAllCaCert( java.lang.Iterable 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.v2alpha.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.v2alpha.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.v2alpha.CertificateDetails ca_cert = 1; */ public io.envoyproxy.envoy.admin.v2alpha.CertificateDetails.Builder getCaCertBuilder( int index) { return getCaCertFieldBuilder().getBuilder(index); } /** *
     * Details of CA certificate.
     * 
* * repeated .envoy.admin.v2alpha.CertificateDetails ca_cert = 1; */ public io.envoyproxy.envoy.admin.v2alpha.CertificateDetailsOrBuilder getCaCertOrBuilder( int index) { if (caCertBuilder_ == null) { return caCert_.get(index); } else { return caCertBuilder_.getMessageOrBuilder(index); } } /** *
     * Details of CA certificate.
     * 
* * repeated .envoy.admin.v2alpha.CertificateDetails ca_cert = 1; */ public java.util.List getCaCertOrBuilderList() { if (caCertBuilder_ != null) { return caCertBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(caCert_); } } /** *
     * Details of CA certificate.
     * 
* * repeated .envoy.admin.v2alpha.CertificateDetails ca_cert = 1; */ public io.envoyproxy.envoy.admin.v2alpha.CertificateDetails.Builder addCaCertBuilder() { return getCaCertFieldBuilder().addBuilder( io.envoyproxy.envoy.admin.v2alpha.CertificateDetails.getDefaultInstance()); } /** *
     * Details of CA certificate.
     * 
* * repeated .envoy.admin.v2alpha.CertificateDetails ca_cert = 1; */ public io.envoyproxy.envoy.admin.v2alpha.CertificateDetails.Builder addCaCertBuilder( int index) { return getCaCertFieldBuilder().addBuilder( index, io.envoyproxy.envoy.admin.v2alpha.CertificateDetails.getDefaultInstance()); } /** *
     * Details of CA certificate.
     * 
* * repeated .envoy.admin.v2alpha.CertificateDetails ca_cert = 1; */ public java.util.List getCaCertBuilderList() { return getCaCertFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.CertificateDetails, io.envoyproxy.envoy.admin.v2alpha.CertificateDetails.Builder, io.envoyproxy.envoy.admin.v2alpha.CertificateDetailsOrBuilder> getCaCertFieldBuilder() { if (caCertBuilder_ == null) { caCertBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.CertificateDetails, io.envoyproxy.envoy.admin.v2alpha.CertificateDetails.Builder, io.envoyproxy.envoy.admin.v2alpha.CertificateDetailsOrBuilder>( caCert_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); caCert_ = null; } return caCertBuilder_; } private java.util.List certChain_ = java.util.Collections.emptyList(); private void ensureCertChainIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { certChain_ = new java.util.ArrayList(certChain_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.CertificateDetails, io.envoyproxy.envoy.admin.v2alpha.CertificateDetails.Builder, io.envoyproxy.envoy.admin.v2alpha.CertificateDetailsOrBuilder> certChainBuilder_; /** *
     * Details of Certificate Chain
     * 
* * repeated .envoy.admin.v2alpha.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.v2alpha.CertificateDetails cert_chain = 2; */ public int getCertChainCount() { if (certChainBuilder_ == null) { return certChain_.size(); } else { return certChainBuilder_.getCount(); } } /** *
     * Details of Certificate Chain
     * 
* * repeated .envoy.admin.v2alpha.CertificateDetails cert_chain = 2; */ public io.envoyproxy.envoy.admin.v2alpha.CertificateDetails getCertChain(int index) { if (certChainBuilder_ == null) { return certChain_.get(index); } else { return certChainBuilder_.getMessage(index); } } /** *
     * Details of Certificate Chain
     * 
* * repeated .envoy.admin.v2alpha.CertificateDetails cert_chain = 2; */ public Builder setCertChain( int index, io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.CertificateDetails cert_chain = 2; */ public Builder setCertChain( int index, io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.CertificateDetails cert_chain = 2; */ public Builder addCertChain(io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.CertificateDetails cert_chain = 2; */ public Builder addCertChain( int index, io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.CertificateDetails cert_chain = 2; */ public Builder addCertChain( io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.CertificateDetails cert_chain = 2; */ public Builder addCertChain( int index, io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.CertificateDetails cert_chain = 2; */ public Builder addAllCertChain( java.lang.Iterable 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.v2alpha.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.v2alpha.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.v2alpha.CertificateDetails cert_chain = 2; */ public io.envoyproxy.envoy.admin.v2alpha.CertificateDetails.Builder getCertChainBuilder( int index) { return getCertChainFieldBuilder().getBuilder(index); } /** *
     * Details of Certificate Chain
     * 
* * repeated .envoy.admin.v2alpha.CertificateDetails cert_chain = 2; */ public io.envoyproxy.envoy.admin.v2alpha.CertificateDetailsOrBuilder getCertChainOrBuilder( int index) { if (certChainBuilder_ == null) { return certChain_.get(index); } else { return certChainBuilder_.getMessageOrBuilder(index); } } /** *
     * Details of Certificate Chain
     * 
* * repeated .envoy.admin.v2alpha.CertificateDetails cert_chain = 2; */ public java.util.List getCertChainOrBuilderList() { if (certChainBuilder_ != null) { return certChainBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(certChain_); } } /** *
     * Details of Certificate Chain
     * 
* * repeated .envoy.admin.v2alpha.CertificateDetails cert_chain = 2; */ public io.envoyproxy.envoy.admin.v2alpha.CertificateDetails.Builder addCertChainBuilder() { return getCertChainFieldBuilder().addBuilder( io.envoyproxy.envoy.admin.v2alpha.CertificateDetails.getDefaultInstance()); } /** *
     * Details of Certificate Chain
     * 
* * repeated .envoy.admin.v2alpha.CertificateDetails cert_chain = 2; */ public io.envoyproxy.envoy.admin.v2alpha.CertificateDetails.Builder addCertChainBuilder( int index) { return getCertChainFieldBuilder().addBuilder( index, io.envoyproxy.envoy.admin.v2alpha.CertificateDetails.getDefaultInstance()); } /** *
     * Details of Certificate Chain
     * 
* * repeated .envoy.admin.v2alpha.CertificateDetails cert_chain = 2; */ public java.util.List getCertChainBuilderList() { return getCertChainFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.CertificateDetails, io.envoyproxy.envoy.admin.v2alpha.CertificateDetails.Builder, io.envoyproxy.envoy.admin.v2alpha.CertificateDetailsOrBuilder> getCertChainFieldBuilder() { if (certChainBuilder_ == null) { certChainBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.CertificateDetails, io.envoyproxy.envoy.admin.v2alpha.CertificateDetails.Builder, io.envoyproxy.envoy.admin.v2alpha.CertificateDetailsOrBuilder>( certChain_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); certChain_ = null; } return certChainBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.admin.v2alpha.Certificate) } // @@protoc_insertion_point(class_scope:envoy.admin.v2alpha.Certificate) private static final io.envoyproxy.envoy.admin.v2alpha.Certificate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v2alpha.Certificate(); } public static io.envoyproxy.envoy.admin.v2alpha.Certificate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { 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; } public io.envoyproxy.envoy.admin.v2alpha.Certificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy