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

yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/certificatemanager/v1/certificate_content_service.proto

package yandex.cloud.api.certificatemanager.v1;

public final class CertificateContentServiceOuterClass {
  private CertificateContentServiceOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code yandex.cloud.certificatemanager.v1.PrivateKeyFormat}
   */
  public enum PrivateKeyFormat
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * PRIVATE_KEY_FORMAT_UNSPECIFIED = 0;
     */
    PRIVATE_KEY_FORMAT_UNSPECIFIED(0),
    /**
     * PKCS1 = 1;
     */
    PKCS1(1),
    /**
     * PKCS8 = 2;
     */
    PKCS8(2),
    UNRECOGNIZED(-1),
    ;

    /**
     * PRIVATE_KEY_FORMAT_UNSPECIFIED = 0;
     */
    public static final int PRIVATE_KEY_FORMAT_UNSPECIFIED_VALUE = 0;
    /**
     * PKCS1 = 1;
     */
    public static final int PKCS1_VALUE = 1;
    /**
     * PKCS8 = 2;
     */
    public static final int PKCS8_VALUE = 2;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static PrivateKeyFormat valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static PrivateKeyFormat forNumber(int value) {
      switch (value) {
        case 0: return PRIVATE_KEY_FORMAT_UNSPECIFIED;
        case 1: return PKCS1;
        case 2: return PKCS8;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        PrivateKeyFormat> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public PrivateKeyFormat findValueByNumber(int number) {
              return PrivateKeyFormat.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.getDescriptor().getEnumTypes().get(0);
    }

    private static final PrivateKeyFormat[] VALUES = values();

    public static PrivateKeyFormat valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private PrivateKeyFormat(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:yandex.cloud.certificatemanager.v1.PrivateKeyFormat)
  }

  public interface GetCertificateContentResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.certificatemanager.v1.GetCertificateContentResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * ID of the certificate.
     * 
* * string certificate_id = 1; * @return The certificateId. */ java.lang.String getCertificateId(); /** *
     * ID of the certificate.
     * 
* * string certificate_id = 1; * @return The bytes for certificateId. */ com.google.protobuf.ByteString getCertificateIdBytes(); /** *
     * PEM-encoded certificate chain content of the certificate.
     * 
* * repeated string certificate_chain = 3; * @return A list containing the certificateChain. */ java.util.List getCertificateChainList(); /** *
     * PEM-encoded certificate chain content of the certificate.
     * 
* * repeated string certificate_chain = 3; * @return The count of certificateChain. */ int getCertificateChainCount(); /** *
     * PEM-encoded certificate chain content of the certificate.
     * 
* * repeated string certificate_chain = 3; * @param index The index of the element to return. * @return The certificateChain at the given index. */ java.lang.String getCertificateChain(int index); /** *
     * PEM-encoded certificate chain content of the certificate.
     * 
* * repeated string certificate_chain = 3; * @param index The index of the value to return. * @return The bytes of the certificateChain at the given index. */ com.google.protobuf.ByteString getCertificateChainBytes(int index); /** *
     * PEM-encoded private key content of the certificate.
     * 
* * string private_key = 4; * @return The privateKey. */ java.lang.String getPrivateKey(); /** *
     * PEM-encoded private key content of the certificate.
     * 
* * string private_key = 4; * @return The bytes for privateKey. */ com.google.protobuf.ByteString getPrivateKeyBytes(); } /** * Protobuf type {@code yandex.cloud.certificatemanager.v1.GetCertificateContentResponse} */ public static final class GetCertificateContentResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.certificatemanager.v1.GetCertificateContentResponse) GetCertificateContentResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GetCertificateContentResponse.newBuilder() to construct. private GetCertificateContentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetCertificateContentResponse() { certificateId_ = ""; certificateChain_ = com.google.protobuf.LazyStringArrayList.EMPTY; privateKey_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetCertificateContentResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetCertificateContentResponse( 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: { java.lang.String s = input.readStringRequireUtf8(); certificateId_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { certificateChain_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } certificateChain_.add(s); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); privateKey_ = s; 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)) { certificateChain_ = certificateChain_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse.class, yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse.Builder.class); } public static final int CERTIFICATE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object certificateId_; /** *
     * ID of the certificate.
     * 
* * string certificate_id = 1; * @return The certificateId. */ @java.lang.Override public java.lang.String getCertificateId() { java.lang.Object ref = certificateId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateId_ = s; return s; } } /** *
     * ID of the certificate.
     * 
* * string certificate_id = 1; * @return The bytes for certificateId. */ @java.lang.Override public com.google.protobuf.ByteString getCertificateIdBytes() { java.lang.Object ref = certificateId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); certificateId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CERTIFICATE_CHAIN_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList certificateChain_; /** *
     * PEM-encoded certificate chain content of the certificate.
     * 
* * repeated string certificate_chain = 3; * @return A list containing the certificateChain. */ public com.google.protobuf.ProtocolStringList getCertificateChainList() { return certificateChain_; } /** *
     * PEM-encoded certificate chain content of the certificate.
     * 
* * repeated string certificate_chain = 3; * @return The count of certificateChain. */ public int getCertificateChainCount() { return certificateChain_.size(); } /** *
     * PEM-encoded certificate chain content of the certificate.
     * 
* * repeated string certificate_chain = 3; * @param index The index of the element to return. * @return The certificateChain at the given index. */ public java.lang.String getCertificateChain(int index) { return certificateChain_.get(index); } /** *
     * PEM-encoded certificate chain content of the certificate.
     * 
* * repeated string certificate_chain = 3; * @param index The index of the value to return. * @return The bytes of the certificateChain at the given index. */ public com.google.protobuf.ByteString getCertificateChainBytes(int index) { return certificateChain_.getByteString(index); } public static final int PRIVATE_KEY_FIELD_NUMBER = 4; private volatile java.lang.Object privateKey_; /** *
     * PEM-encoded private key content of the certificate.
     * 
* * string private_key = 4; * @return The privateKey. */ @java.lang.Override public java.lang.String getPrivateKey() { java.lang.Object ref = privateKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateKey_ = s; return s; } } /** *
     * PEM-encoded private key content of the certificate.
     * 
* * string private_key = 4; * @return The bytes for privateKey. */ @java.lang.Override public com.google.protobuf.ByteString getPrivateKeyBytes() { java.lang.Object ref = privateKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); privateKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, certificateId_); } for (int i = 0; i < certificateChain_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, certificateChain_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, privateKey_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, certificateId_); } { int dataSize = 0; for (int i = 0; i < certificateChain_.size(); i++) { dataSize += computeStringSizeNoTag(certificateChain_.getRaw(i)); } size += dataSize; size += 1 * getCertificateChainList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, privateKey_); } 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 yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse)) { return super.equals(obj); } yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse other = (yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse) obj; if (!getCertificateId() .equals(other.getCertificateId())) return false; if (!getCertificateChainList() .equals(other.getCertificateChainList())) return false; if (!getPrivateKey() .equals(other.getPrivateKey())) 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(); hash = (37 * hash) + CERTIFICATE_ID_FIELD_NUMBER; hash = (53 * hash) + getCertificateId().hashCode(); if (getCertificateChainCount() > 0) { hash = (37 * hash) + CERTIFICATE_CHAIN_FIELD_NUMBER; hash = (53 * hash) + getCertificateChainList().hashCode(); } hash = (37 * hash) + PRIVATE_KEY_FIELD_NUMBER; hash = (53 * hash) + getPrivateKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse 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 yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse 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 yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse 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(yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse 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 yandex.cloud.certificatemanager.v1.GetCertificateContentResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.certificatemanager.v1.GetCertificateContentResponse) yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse.class, yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse.Builder.class); } // Construct using yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); certificateId_ = ""; certificateChain_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); privateKey_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentResponse_descriptor; } @java.lang.Override public yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse getDefaultInstanceForType() { return yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse build() { yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse buildPartial() { yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse result = new yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse(this); int from_bitField0_ = bitField0_; result.certificateId_ = certificateId_; if (((bitField0_ & 0x00000001) != 0)) { certificateChain_ = certificateChain_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.certificateChain_ = certificateChain_; result.privateKey_ = privateKey_; 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 yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse) { return mergeFrom((yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse other) { if (other == yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse.getDefaultInstance()) return this; if (!other.getCertificateId().isEmpty()) { certificateId_ = other.certificateId_; onChanged(); } if (!other.certificateChain_.isEmpty()) { if (certificateChain_.isEmpty()) { certificateChain_ = other.certificateChain_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCertificateChainIsMutable(); certificateChain_.addAll(other.certificateChain_); } onChanged(); } if (!other.getPrivateKey().isEmpty()) { privateKey_ = other.privateKey_; onChanged(); } 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 { yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object certificateId_ = ""; /** *
       * ID of the certificate.
       * 
* * string certificate_id = 1; * @return The certificateId. */ public java.lang.String getCertificateId() { java.lang.Object ref = certificateId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the certificate.
       * 
* * string certificate_id = 1; * @return The bytes for certificateId. */ public com.google.protobuf.ByteString getCertificateIdBytes() { java.lang.Object ref = certificateId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); certificateId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the certificate.
       * 
* * string certificate_id = 1; * @param value The certificateId to set. * @return This builder for chaining. */ public Builder setCertificateId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } certificateId_ = value; onChanged(); return this; } /** *
       * ID of the certificate.
       * 
* * string certificate_id = 1; * @return This builder for chaining. */ public Builder clearCertificateId() { certificateId_ = getDefaultInstance().getCertificateId(); onChanged(); return this; } /** *
       * ID of the certificate.
       * 
* * string certificate_id = 1; * @param value The bytes for certificateId to set. * @return This builder for chaining. */ public Builder setCertificateIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); certificateId_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList certificateChain_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCertificateChainIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { certificateChain_ = new com.google.protobuf.LazyStringArrayList(certificateChain_); bitField0_ |= 0x00000001; } } /** *
       * PEM-encoded certificate chain content of the certificate.
       * 
* * repeated string certificate_chain = 3; * @return A list containing the certificateChain. */ public com.google.protobuf.ProtocolStringList getCertificateChainList() { return certificateChain_.getUnmodifiableView(); } /** *
       * PEM-encoded certificate chain content of the certificate.
       * 
* * repeated string certificate_chain = 3; * @return The count of certificateChain. */ public int getCertificateChainCount() { return certificateChain_.size(); } /** *
       * PEM-encoded certificate chain content of the certificate.
       * 
* * repeated string certificate_chain = 3; * @param index The index of the element to return. * @return The certificateChain at the given index. */ public java.lang.String getCertificateChain(int index) { return certificateChain_.get(index); } /** *
       * PEM-encoded certificate chain content of the certificate.
       * 
* * repeated string certificate_chain = 3; * @param index The index of the value to return. * @return The bytes of the certificateChain at the given index. */ public com.google.protobuf.ByteString getCertificateChainBytes(int index) { return certificateChain_.getByteString(index); } /** *
       * PEM-encoded certificate chain content of the certificate.
       * 
* * repeated string certificate_chain = 3; * @param index The index to set the value at. * @param value The certificateChain to set. * @return This builder for chaining. */ public Builder setCertificateChain( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCertificateChainIsMutable(); certificateChain_.set(index, value); onChanged(); return this; } /** *
       * PEM-encoded certificate chain content of the certificate.
       * 
* * repeated string certificate_chain = 3; * @param value The certificateChain to add. * @return This builder for chaining. */ public Builder addCertificateChain( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCertificateChainIsMutable(); certificateChain_.add(value); onChanged(); return this; } /** *
       * PEM-encoded certificate chain content of the certificate.
       * 
* * repeated string certificate_chain = 3; * @param values The certificateChain to add. * @return This builder for chaining. */ public Builder addAllCertificateChain( java.lang.Iterable values) { ensureCertificateChainIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, certificateChain_); onChanged(); return this; } /** *
       * PEM-encoded certificate chain content of the certificate.
       * 
* * repeated string certificate_chain = 3; * @return This builder for chaining. */ public Builder clearCertificateChain() { certificateChain_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * PEM-encoded certificate chain content of the certificate.
       * 
* * repeated string certificate_chain = 3; * @param value The bytes of the certificateChain to add. * @return This builder for chaining. */ public Builder addCertificateChainBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCertificateChainIsMutable(); certificateChain_.add(value); onChanged(); return this; } private java.lang.Object privateKey_ = ""; /** *
       * PEM-encoded private key content of the certificate.
       * 
* * string private_key = 4; * @return The privateKey. */ public java.lang.String getPrivateKey() { java.lang.Object ref = privateKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * PEM-encoded private key content of the certificate.
       * 
* * string private_key = 4; * @return The bytes for privateKey. */ public com.google.protobuf.ByteString getPrivateKeyBytes() { java.lang.Object ref = privateKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); privateKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * PEM-encoded private key content of the certificate.
       * 
* * string private_key = 4; * @param value The privateKey to set. * @return This builder for chaining. */ public Builder setPrivateKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } privateKey_ = value; onChanged(); return this; } /** *
       * PEM-encoded private key content of the certificate.
       * 
* * string private_key = 4; * @return This builder for chaining. */ public Builder clearPrivateKey() { privateKey_ = getDefaultInstance().getPrivateKey(); onChanged(); return this; } /** *
       * PEM-encoded private key content of the certificate.
       * 
* * string private_key = 4; * @param value The bytes for privateKey to set. * @return This builder for chaining. */ public Builder setPrivateKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); privateKey_ = value; onChanged(); return this; } @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:yandex.cloud.certificatemanager.v1.GetCertificateContentResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.certificatemanager.v1.GetCertificateContentResponse) private static final yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse(); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetCertificateContentResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetCertificateContentResponse(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 yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetCertificateContentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.certificatemanager.v1.GetCertificateContentRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the certificate to download content.
     * 
* * string certificate_id = 1; * @return The certificateId. */ java.lang.String getCertificateId(); /** *
     * ID of the certificate to download content.
     * 
* * string certificate_id = 1; * @return The bytes for certificateId. */ com.google.protobuf.ByteString getCertificateIdBytes(); /** *
     * Optional ID of the version.
     * 
* * string version_id = 2; * @return The versionId. */ java.lang.String getVersionId(); /** *
     * Optional ID of the version.
     * 
* * string version_id = 2; * @return The bytes for versionId. */ com.google.protobuf.ByteString getVersionIdBytes(); /** *
     * Desired format of private key
     * 
* * .yandex.cloud.certificatemanager.v1.PrivateKeyFormat private_key_format = 3; * @return The enum numeric value on the wire for privateKeyFormat. */ int getPrivateKeyFormatValue(); /** *
     * Desired format of private key
     * 
* * .yandex.cloud.certificatemanager.v1.PrivateKeyFormat private_key_format = 3; * @return The privateKeyFormat. */ yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.PrivateKeyFormat getPrivateKeyFormat(); } /** * Protobuf type {@code yandex.cloud.certificatemanager.v1.GetCertificateContentRequest} */ public static final class GetCertificateContentRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.certificatemanager.v1.GetCertificateContentRequest) GetCertificateContentRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetCertificateContentRequest.newBuilder() to construct. private GetCertificateContentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetCertificateContentRequest() { certificateId_ = ""; versionId_ = ""; privateKeyFormat_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetCertificateContentRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetCertificateContentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); certificateId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); versionId_ = s; break; } case 24: { int rawValue = input.readEnum(); privateKeyFormat_ = rawValue; 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest.class, yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest.Builder.class); } public static final int CERTIFICATE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object certificateId_; /** *
     * ID of the certificate to download content.
     * 
* * string certificate_id = 1; * @return The certificateId. */ @java.lang.Override public java.lang.String getCertificateId() { java.lang.Object ref = certificateId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateId_ = s; return s; } } /** *
     * ID of the certificate to download content.
     * 
* * string certificate_id = 1; * @return The bytes for certificateId. */ @java.lang.Override public com.google.protobuf.ByteString getCertificateIdBytes() { java.lang.Object ref = certificateId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); certificateId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VERSION_ID_FIELD_NUMBER = 2; private volatile java.lang.Object versionId_; /** *
     * Optional ID of the version.
     * 
* * string version_id = 2; * @return The versionId. */ @java.lang.Override public java.lang.String getVersionId() { java.lang.Object ref = versionId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionId_ = s; return s; } } /** *
     * Optional ID of the version.
     * 
* * string version_id = 2; * @return The bytes for versionId. */ @java.lang.Override public com.google.protobuf.ByteString getVersionIdBytes() { java.lang.Object ref = versionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); versionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRIVATE_KEY_FORMAT_FIELD_NUMBER = 3; private int privateKeyFormat_; /** *
     * Desired format of private key
     * 
* * .yandex.cloud.certificatemanager.v1.PrivateKeyFormat private_key_format = 3; * @return The enum numeric value on the wire for privateKeyFormat. */ @java.lang.Override public int getPrivateKeyFormatValue() { return privateKeyFormat_; } /** *
     * Desired format of private key
     * 
* * .yandex.cloud.certificatemanager.v1.PrivateKeyFormat private_key_format = 3; * @return The privateKeyFormat. */ @java.lang.Override public yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.PrivateKeyFormat getPrivateKeyFormat() { @SuppressWarnings("deprecation") yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.PrivateKeyFormat result = yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.PrivateKeyFormat.valueOf(privateKeyFormat_); return result == null ? yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.PrivateKeyFormat.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, certificateId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, versionId_); } if (privateKeyFormat_ != yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.PrivateKeyFormat.PRIVATE_KEY_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(3, privateKeyFormat_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, certificateId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, versionId_); } if (privateKeyFormat_ != yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.PrivateKeyFormat.PRIVATE_KEY_FORMAT_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, privateKeyFormat_); } 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 yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest)) { return super.equals(obj); } yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest other = (yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest) obj; if (!getCertificateId() .equals(other.getCertificateId())) return false; if (!getVersionId() .equals(other.getVersionId())) return false; if (privateKeyFormat_ != other.privateKeyFormat_) 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(); hash = (37 * hash) + CERTIFICATE_ID_FIELD_NUMBER; hash = (53 * hash) + getCertificateId().hashCode(); hash = (37 * hash) + VERSION_ID_FIELD_NUMBER; hash = (53 * hash) + getVersionId().hashCode(); hash = (37 * hash) + PRIVATE_KEY_FORMAT_FIELD_NUMBER; hash = (53 * hash) + privateKeyFormat_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest 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 yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest 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 yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest 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(yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest 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 yandex.cloud.certificatemanager.v1.GetCertificateContentRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.certificatemanager.v1.GetCertificateContentRequest) yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest.class, yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest.Builder.class); } // Construct using yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); certificateId_ = ""; versionId_ = ""; privateKeyFormat_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentRequest_descriptor; } @java.lang.Override public yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest getDefaultInstanceForType() { return yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest build() { yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest buildPartial() { yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest result = new yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest(this); result.certificateId_ = certificateId_; result.versionId_ = versionId_; result.privateKeyFormat_ = privateKeyFormat_; 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 yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest) { return mergeFrom((yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest other) { if (other == yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest.getDefaultInstance()) return this; if (!other.getCertificateId().isEmpty()) { certificateId_ = other.certificateId_; onChanged(); } if (!other.getVersionId().isEmpty()) { versionId_ = other.versionId_; onChanged(); } if (other.privateKeyFormat_ != 0) { setPrivateKeyFormatValue(other.getPrivateKeyFormatValue()); } 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 { yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object certificateId_ = ""; /** *
       * ID of the certificate to download content.
       * 
* * string certificate_id = 1; * @return The certificateId. */ public java.lang.String getCertificateId() { java.lang.Object ref = certificateId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the certificate to download content.
       * 
* * string certificate_id = 1; * @return The bytes for certificateId. */ public com.google.protobuf.ByteString getCertificateIdBytes() { java.lang.Object ref = certificateId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); certificateId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the certificate to download content.
       * 
* * string certificate_id = 1; * @param value The certificateId to set. * @return This builder for chaining. */ public Builder setCertificateId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } certificateId_ = value; onChanged(); return this; } /** *
       * ID of the certificate to download content.
       * 
* * string certificate_id = 1; * @return This builder for chaining. */ public Builder clearCertificateId() { certificateId_ = getDefaultInstance().getCertificateId(); onChanged(); return this; } /** *
       * ID of the certificate to download content.
       * 
* * string certificate_id = 1; * @param value The bytes for certificateId to set. * @return This builder for chaining. */ public Builder setCertificateIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); certificateId_ = value; onChanged(); return this; } private java.lang.Object versionId_ = ""; /** *
       * Optional ID of the version.
       * 
* * string version_id = 2; * @return The versionId. */ public java.lang.String getVersionId() { java.lang.Object ref = versionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Optional ID of the version.
       * 
* * string version_id = 2; * @return The bytes for versionId. */ public com.google.protobuf.ByteString getVersionIdBytes() { java.lang.Object ref = versionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); versionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Optional ID of the version.
       * 
* * string version_id = 2; * @param value The versionId to set. * @return This builder for chaining. */ public Builder setVersionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } versionId_ = value; onChanged(); return this; } /** *
       * Optional ID of the version.
       * 
* * string version_id = 2; * @return This builder for chaining. */ public Builder clearVersionId() { versionId_ = getDefaultInstance().getVersionId(); onChanged(); return this; } /** *
       * Optional ID of the version.
       * 
* * string version_id = 2; * @param value The bytes for versionId to set. * @return This builder for chaining. */ public Builder setVersionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); versionId_ = value; onChanged(); return this; } private int privateKeyFormat_ = 0; /** *
       * Desired format of private key
       * 
* * .yandex.cloud.certificatemanager.v1.PrivateKeyFormat private_key_format = 3; * @return The enum numeric value on the wire for privateKeyFormat. */ @java.lang.Override public int getPrivateKeyFormatValue() { return privateKeyFormat_; } /** *
       * Desired format of private key
       * 
* * .yandex.cloud.certificatemanager.v1.PrivateKeyFormat private_key_format = 3; * @param value The enum numeric value on the wire for privateKeyFormat to set. * @return This builder for chaining. */ public Builder setPrivateKeyFormatValue(int value) { privateKeyFormat_ = value; onChanged(); return this; } /** *
       * Desired format of private key
       * 
* * .yandex.cloud.certificatemanager.v1.PrivateKeyFormat private_key_format = 3; * @return The privateKeyFormat. */ @java.lang.Override public yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.PrivateKeyFormat getPrivateKeyFormat() { @SuppressWarnings("deprecation") yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.PrivateKeyFormat result = yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.PrivateKeyFormat.valueOf(privateKeyFormat_); return result == null ? yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.PrivateKeyFormat.UNRECOGNIZED : result; } /** *
       * Desired format of private key
       * 
* * .yandex.cloud.certificatemanager.v1.PrivateKeyFormat private_key_format = 3; * @param value The privateKeyFormat to set. * @return This builder for chaining. */ public Builder setPrivateKeyFormat(yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.PrivateKeyFormat value) { if (value == null) { throw new NullPointerException(); } privateKeyFormat_ = value.getNumber(); onChanged(); return this; } /** *
       * Desired format of private key
       * 
* * .yandex.cloud.certificatemanager.v1.PrivateKeyFormat private_key_format = 3; * @return This builder for chaining. */ public Builder clearPrivateKeyFormat() { privateKeyFormat_ = 0; onChanged(); return this; } @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:yandex.cloud.certificatemanager.v1.GetCertificateContentRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.certificatemanager.v1.GetCertificateContentRequest) private static final yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest(); } public static yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetCertificateContentRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetCertificateContentRequest(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 yandex.cloud.api.certificatemanager.v1.CertificateContentServiceOuterClass.GetCertificateContentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\nDyandex/cloud/certificatemanager/v1/cer" + "tificate_content_service.proto\022\"yandex.c" + "loud.certificatemanager.v1\032\034google/api/a" + "nnotations.proto\"g\n\035GetCertificateConten" + "tResponse\022\026\n\016certificate_id\030\001 \001(\t\022\031\n\021cer" + "tificate_chain\030\003 \003(\t\022\023\n\013private_key\030\004 \001(" + "\t\"\234\001\n\034GetCertificateContentRequest\022\026\n\016ce" + "rtificate_id\030\001 \001(\t\022\022\n\nversion_id\030\002 \001(\t\022P" + "\n\022private_key_format\030\003 \001(\01624.yandex.clou" + "d.certificatemanager.v1.PrivateKeyFormat" + "*L\n\020PrivateKeyFormat\022\"\n\036PRIVATE_KEY_FORM" + "AT_UNSPECIFIED\020\000\022\t\n\005PKCS1\020\001\022\t\n\005PKCS8\020\0022\362" + "\001\n\031CertificateContentService\022\324\001\n\003Get\[email protected]" + "andex.cloud.certificatemanager.v1.GetCer" + "tificateContentRequest\032A.yandex.cloud.ce" + "rtificatemanager.v1.GetCertificateConten" + "tResponse\"H\202\323\344\223\002B\022@/certificate-manager/" + "v1/certificates/{certificate_id}:getCont" + "entB\203\001\n&yandex.cloud.api.certificatemana" + "ger.v1ZYgithub.com/yandex-cloud/go-genpr" + "oto/yandex/cloud/certificatemanager/v1;c" + "ertificatemanagerb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentResponse_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentResponse_descriptor, new java.lang.String[] { "CertificateId", "CertificateChain", "PrivateKey", }); internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_certificatemanager_v1_GetCertificateContentRequest_descriptor, new java.lang.String[] { "CertificateId", "VersionId", "PrivateKeyFormat", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.AnnotationsProto.http); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy