/*
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/compute/v1/compute.proto

package com.google.cloud.compute.v1;

public interface SslCertificateOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.SslCertificate)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * A value read into memory from a certificate file. The certificate file must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert.
   * </pre>
   *
   * <code>optional string certificate = 341787031;</code>
   *
   * @return Whether the certificate field is set.
   */
  boolean hasCertificate();
  /**
   *
   *
   * <pre>
   * A value read into memory from a certificate file. The certificate file must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert.
   * </pre>
   *
   * <code>optional string certificate = 341787031;</code>
   *
   * @return The certificate.
   */
  java.lang.String getCertificate();
  /**
   *
   *
   * <pre>
   * A value read into memory from a certificate file. The certificate file must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert.
   * </pre>
   *
   * <code>optional string certificate = 341787031;</code>
   *
   * @return The bytes for certificate.
   */
  com.google.protobuf.ByteString getCertificateBytes();

  /**
   *
   *
   * <pre>
   * [Output Only] Creation timestamp in RFC3339 text format.
   * </pre>
   *
   * <code>optional string creation_timestamp = 30525366;</code>
   *
   * @return Whether the creationTimestamp field is set.
   */
  boolean hasCreationTimestamp();
  /**
   *
   *
   * <pre>
   * [Output Only] Creation timestamp in RFC3339 text format.
   * </pre>
   *
   * <code>optional string creation_timestamp = 30525366;</code>
   *
   * @return The creationTimestamp.
   */
  java.lang.String getCreationTimestamp();
  /**
   *
   *
   * <pre>
   * [Output Only] Creation timestamp in RFC3339 text format.
   * </pre>
   *
   * <code>optional string creation_timestamp = 30525366;</code>
   *
   * @return The bytes for creationTimestamp.
   */
  com.google.protobuf.ByteString getCreationTimestampBytes();

  /**
   *
   *
   * <pre>
   * An optional description of this resource. Provide this property when you create the resource.
   * </pre>
   *
   * <code>optional string description = 422937596;</code>
   *
   * @return Whether the description field is set.
   */
  boolean hasDescription();
  /**
   *
   *
   * <pre>
   * An optional description of this resource. Provide this property when you create the resource.
   * </pre>
   *
   * <code>optional string description = 422937596;</code>
   *
   * @return The description.
   */
  java.lang.String getDescription();
  /**
   *
   *
   * <pre>
   * An optional description of this resource. Provide this property when you create the resource.
   * </pre>
   *
   * <code>optional string description = 422937596;</code>
   *
   * @return The bytes for description.
   */
  com.google.protobuf.ByteString getDescriptionBytes();

  /**
   *
   *
   * <pre>
   * [Output Only] Expire time of the certificate. RFC3339
   * </pre>
   *
   * <code>optional string expire_time = 440691181;</code>
   *
   * @return Whether the expireTime field is set.
   */
  boolean hasExpireTime();
  /**
   *
   *
   * <pre>
   * [Output Only] Expire time of the certificate. RFC3339
   * </pre>
   *
   * <code>optional string expire_time = 440691181;</code>
   *
   * @return The expireTime.
   */
  java.lang.String getExpireTime();
  /**
   *
   *
   * <pre>
   * [Output Only] Expire time of the certificate. RFC3339
   * </pre>
   *
   * <code>optional string expire_time = 440691181;</code>
   *
   * @return The bytes for expireTime.
   */
  com.google.protobuf.ByteString getExpireTimeBytes();

  /**
   *
   *
   * <pre>
   * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
   * </pre>
   *
   * <code>optional uint64 id = 3355;</code>
   *
   * @return Whether the id field is set.
   */
  boolean hasId();
  /**
   *
   *
   * <pre>
   * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
   * </pre>
   *
   * <code>optional uint64 id = 3355;</code>
   *
   * @return The id.
   */
  long getId();

  /**
   *
   *
   * <pre>
   * [Output Only] Type of the resource. Always compute#sslCertificate for SSL certificates.
   * </pre>
   *
   * <code>optional string kind = 3292052;</code>
   *
   * @return Whether the kind field is set.
   */
  boolean hasKind();
  /**
   *
   *
   * <pre>
   * [Output Only] Type of the resource. Always compute#sslCertificate for SSL certificates.
   * </pre>
   *
   * <code>optional string kind = 3292052;</code>
   *
   * @return The kind.
   */
  java.lang.String getKind();
  /**
   *
   *
   * <pre>
   * [Output Only] Type of the resource. Always compute#sslCertificate for SSL certificates.
   * </pre>
   *
   * <code>optional string kind = 3292052;</code>
   *
   * @return The bytes for kind.
   */
  com.google.protobuf.ByteString getKindBytes();

  /**
   *
   *
   * <pre>
   * Configuration and status of a managed SSL certificate.
   * </pre>
   *
   * <code>
   * optional .google.cloud.compute.v1.SslCertificateManagedSslCertificate managed = 298389407;
   * </code>
   *
   * @return Whether the managed field is set.
   */
  boolean hasManaged();
  /**
   *
   *
   * <pre>
   * Configuration and status of a managed SSL certificate.
   * </pre>
   *
   * <code>
   * optional .google.cloud.compute.v1.SslCertificateManagedSslCertificate managed = 298389407;
   * </code>
   *
   * @return The managed.
   */
  com.google.cloud.compute.v1.SslCertificateManagedSslCertificate getManaged();
  /**
   *
   *
   * <pre>
   * Configuration and status of a managed SSL certificate.
   * </pre>
   *
   * <code>
   * optional .google.cloud.compute.v1.SslCertificateManagedSslCertificate managed = 298389407;
   * </code>
   */
  com.google.cloud.compute.v1.SslCertificateManagedSslCertificateOrBuilder getManagedOrBuilder();

  /**
   *
   *
   * <pre>
   * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
   * </pre>
   *
   * <code>optional string name = 3373707;</code>
   *
   * @return Whether the name field is set.
   */
  boolean hasName();
  /**
   *
   *
   * <pre>
   * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
   * </pre>
   *
   * <code>optional string name = 3373707;</code>
   *
   * @return The name.
   */
  java.lang.String getName();
  /**
   *
   *
   * <pre>
   * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
   * </pre>
   *
   * <code>optional string name = 3373707;</code>
   *
   * @return The bytes for name.
   */
  com.google.protobuf.ByteString getNameBytes();

  /**
   *
   *
   * <pre>
   * A value read into memory from a write-only private key file. The private key file must be in PEM format. For security, only insert requests include this field.
   * </pre>
   *
   * <code>optional string private_key = 361331107;</code>
   *
   * @return Whether the privateKey field is set.
   */
  boolean hasPrivateKey();
  /**
   *
   *
   * <pre>
   * A value read into memory from a write-only private key file. The private key file must be in PEM format. For security, only insert requests include this field.
   * </pre>
   *
   * <code>optional string private_key = 361331107;</code>
   *
   * @return The privateKey.
   */
  java.lang.String getPrivateKey();
  /**
   *
   *
   * <pre>
   * A value read into memory from a write-only private key file. The private key file must be in PEM format. For security, only insert requests include this field.
   * </pre>
   *
   * <code>optional string private_key = 361331107;</code>
   *
   * @return The bytes for privateKey.
   */
  com.google.protobuf.ByteString getPrivateKeyBytes();

  /**
   *
   *
   * <pre>
   * [Output Only] URL of the region where the regional SSL Certificate resides. This field is not applicable to global SSL Certificate.
   * </pre>
   *
   * <code>optional string region = 138946292;</code>
   *
   * @return Whether the region field is set.
   */
  boolean hasRegion();
  /**
   *
   *
   * <pre>
   * [Output Only] URL of the region where the regional SSL Certificate resides. This field is not applicable to global SSL Certificate.
   * </pre>
   *
   * <code>optional string region = 138946292;</code>
   *
   * @return The region.
   */
  java.lang.String getRegion();
  /**
   *
   *
   * <pre>
   * [Output Only] URL of the region where the regional SSL Certificate resides. This field is not applicable to global SSL Certificate.
   * </pre>
   *
   * <code>optional string region = 138946292;</code>
   *
   * @return The bytes for region.
   */
  com.google.protobuf.ByteString getRegionBytes();

  /**
   *
   *
   * <pre>
   * [Output only] Server-defined URL for the resource.
   * </pre>
   *
   * <code>optional string self_link = 456214797;</code>
   *
   * @return Whether the selfLink field is set.
   */
  boolean hasSelfLink();
  /**
   *
   *
   * <pre>
   * [Output only] Server-defined URL for the resource.
   * </pre>
   *
   * <code>optional string self_link = 456214797;</code>
   *
   * @return The selfLink.
   */
  java.lang.String getSelfLink();
  /**
   *
   *
   * <pre>
   * [Output only] Server-defined URL for the resource.
   * </pre>
   *
   * <code>optional string self_link = 456214797;</code>
   *
   * @return The bytes for selfLink.
   */
  com.google.protobuf.ByteString getSelfLinkBytes();

  /**
   *
   *
   * <pre>
   * Configuration and status of a self-managed SSL certificate.
   * </pre>
   *
   * <code>
   * optional .google.cloud.compute.v1.SslCertificateSelfManagedSslCertificate self_managed = 329284012;
   * </code>
   *
   * @return Whether the selfManaged field is set.
   */
  boolean hasSelfManaged();
  /**
   *
   *
   * <pre>
   * Configuration and status of a self-managed SSL certificate.
   * </pre>
   *
   * <code>
   * optional .google.cloud.compute.v1.SslCertificateSelfManagedSslCertificate self_managed = 329284012;
   * </code>
   *
   * @return The selfManaged.
   */
  com.google.cloud.compute.v1.SslCertificateSelfManagedSslCertificate getSelfManaged();
  /**
   *
   *
   * <pre>
   * Configuration and status of a self-managed SSL certificate.
   * </pre>
   *
   * <code>
   * optional .google.cloud.compute.v1.SslCertificateSelfManagedSslCertificate self_managed = 329284012;
   * </code>
   */
  com.google.cloud.compute.v1.SslCertificateSelfManagedSslCertificateOrBuilder
      getSelfManagedOrBuilder();

  /**
   *
   *
   * <pre>
   * [Output Only] Domains associated with the certificate via Subject Alternative Name.
   * </pre>
   *
   * <code>repeated string subject_alternative_names = 528807907;</code>
   *
   * @return A list containing the subjectAlternativeNames.
   */
  java.util.List<java.lang.String> getSubjectAlternativeNamesList();
  /**
   *
   *
   * <pre>
   * [Output Only] Domains associated with the certificate via Subject Alternative Name.
   * </pre>
   *
   * <code>repeated string subject_alternative_names = 528807907;</code>
   *
   * @return The count of subjectAlternativeNames.
   */
  int getSubjectAlternativeNamesCount();
  /**
   *
   *
   * <pre>
   * [Output Only] Domains associated with the certificate via Subject Alternative Name.
   * </pre>
   *
   * <code>repeated string subject_alternative_names = 528807907;</code>
   *
   * @param index The index of the element to return.
   * @return The subjectAlternativeNames at the given index.
   */
  java.lang.String getSubjectAlternativeNames(int index);
  /**
   *
   *
   * <pre>
   * [Output Only] Domains associated with the certificate via Subject Alternative Name.
   * </pre>
   *
   * <code>repeated string subject_alternative_names = 528807907;</code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the subjectAlternativeNames at the given index.
   */
  com.google.protobuf.ByteString getSubjectAlternativeNamesBytes(int index);

  /**
   *
   *
   * <pre>
   * (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED". If not specified, the certificate is self-managed and the fields certificate and private_key are used.
   * Check the Type enum for the list of possible values.
   * </pre>
   *
   * <code>optional string type = 3575610;</code>
   *
   * @return Whether the type field is set.
   */
  boolean hasType();
  /**
   *
   *
   * <pre>
   * (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED". If not specified, the certificate is self-managed and the fields certificate and private_key are used.
   * Check the Type enum for the list of possible values.
   * </pre>
   *
   * <code>optional string type = 3575610;</code>
   *
   * @return The type.
   */
  java.lang.String getType();
  /**
   *
   *
   * <pre>
   * (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED". If not specified, the certificate is self-managed and the fields certificate and private_key are used.
   * Check the Type enum for the list of possible values.
   * </pre>
   *
   * <code>optional string type = 3575610;</code>
   *
   * @return The bytes for type.
   */
  com.google.protobuf.ByteString getTypeBytes();
}
