Class CreateCertificateRequest.Builder

  • All Implemented Interfaces:
    CreateCertificateRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    CreateCertificateRequest

    public static final class CreateCertificateRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CreateCertificateRequest.Builder>
    implements CreateCertificateRequestOrBuilder
     Request message for [CertificateAuthorityService.CreateCertificate][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateCertificate].
     
    Protobuf type google.cloud.security.privateca.v1beta1.CreateCertificateRequest
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCertificateRequest.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCertificateRequest.Builder>
      • getDefaultInstanceForType

        public CreateCertificateRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public CreateCertificateRequest build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public CreateCertificateRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public CreateCertificateRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCertificateRequest.Builder>
      • addRepeatedField

        public CreateCertificateRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCertificateRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCertificateRequest.Builder>
      • mergeFrom

        public CreateCertificateRequest.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateCertificateRequest.Builder>
        Throws:
        IOException
      • getParent

        public String getParent()
         Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
         associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
         `projects/*/locations/*/certificateAuthorities/*`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface CreateCertificateRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
         associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
         `projects/*/locations/*/certificateAuthorities/*`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface CreateCertificateRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateCertificateRequest.Builder setParent​(String value)
         Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
         associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
         `projects/*/locations/*/certificateAuthorities/*`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public CreateCertificateRequest.Builder clearParent()
         Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
         associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
         `projects/*/locations/*/certificateAuthorities/*`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateCertificateRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
         associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
         `projects/*/locations/*/certificateAuthorities/*`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • getCertificateId

        public String getCertificateId()
         Optional. It must be unique within a location and match the regular
         expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
         [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier],
         but is optional and its value is ignored otherwise.
         
        string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCertificateId in interface CreateCertificateRequestOrBuilder
        Returns:
        The certificateId.
      • getCertificateIdBytes

        public com.google.protobuf.ByteString getCertificateIdBytes()
         Optional. It must be unique within a location and match the regular
         expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
         [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier],
         but is optional and its value is ignored otherwise.
         
        string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCertificateIdBytes in interface CreateCertificateRequestOrBuilder
        Returns:
        The bytes for certificateId.
      • setCertificateId

        public CreateCertificateRequest.Builder setCertificateId​(String value)
         Optional. It must be unique within a location and match the regular
         expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
         [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier],
         but is optional and its value is ignored otherwise.
         
        string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The certificateId to set.
        Returns:
        This builder for chaining.
      • clearCertificateId

        public CreateCertificateRequest.Builder clearCertificateId()
         Optional. It must be unique within a location and match the regular
         expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
         [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier],
         but is optional and its value is ignored otherwise.
         
        string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setCertificateIdBytes

        public CreateCertificateRequest.Builder setCertificateIdBytes​(com.google.protobuf.ByteString value)
         Optional. It must be unique within a location and match the regular
         expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
         [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier],
         but is optional and its value is ignored otherwise.
         
        string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for certificateId to set.
        Returns:
        This builder for chaining.
      • hasCertificate

        public boolean hasCertificate()
         Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
         
        .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasCertificate in interface CreateCertificateRequestOrBuilder
        Returns:
        Whether the certificate field is set.
      • getCertificate

        public Certificate getCertificate()
         Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
         
        .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCertificate in interface CreateCertificateRequestOrBuilder
        Returns:
        The certificate.
      • setCertificate

        public CreateCertificateRequest.Builder setCertificate​(Certificate value)
         Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
         
        .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED];
      • setCertificate

        public CreateCertificateRequest.Builder setCertificate​(Certificate.Builder builderForValue)
         Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
         
        .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED];
      • mergeCertificate

        public CreateCertificateRequest.Builder mergeCertificate​(Certificate value)
         Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
         
        .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED];
      • clearCertificate

        public CreateCertificateRequest.Builder clearCertificate()
         Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
         
        .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED];
      • getCertificateBuilder

        public Certificate.Builder getCertificateBuilder()
         Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
         
        .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED];
      • getCertificateOrBuilder

        public CertificateOrBuilder getCertificateOrBuilder()
         Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
         
        .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCertificateOrBuilder in interface CreateCertificateRequestOrBuilder
      • getRequestId

        public String getRequestId()
         Optional. An ID to identify requests. Specify a unique request ID so that if you must
         retry your request, the server will know to ignore the request if it has
         already been completed. The server will guarantee that for at least 60
         minutes since the first request.
        
         For example, consider a situation where you make an initial request and t
         he request times out. If you make the request again with the same request
         ID, the server can check if original operation with the same request ID
         was received, and if so, will ignore the second request. This prevents
         clients from accidentally creating duplicate commitments.
        
         The request ID must be a valid UUID with the exception that zero UUID is
         not supported (00000000-0000-0000-0000-000000000000).
         
        string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRequestId in interface CreateCertificateRequestOrBuilder
        Returns:
        The requestId.
      • getRequestIdBytes

        public com.google.protobuf.ByteString getRequestIdBytes()
         Optional. An ID to identify requests. Specify a unique request ID so that if you must
         retry your request, the server will know to ignore the request if it has
         already been completed. The server will guarantee that for at least 60
         minutes since the first request.
        
         For example, consider a situation where you make an initial request and t
         he request times out. If you make the request again with the same request
         ID, the server can check if original operation with the same request ID
         was received, and if so, will ignore the second request. This prevents
         clients from accidentally creating duplicate commitments.
        
         The request ID must be a valid UUID with the exception that zero UUID is
         not supported (00000000-0000-0000-0000-000000000000).
         
        string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRequestIdBytes in interface CreateCertificateRequestOrBuilder
        Returns:
        The bytes for requestId.
      • setRequestId

        public CreateCertificateRequest.Builder setRequestId​(String value)
         Optional. An ID to identify requests. Specify a unique request ID so that if you must
         retry your request, the server will know to ignore the request if it has
         already been completed. The server will guarantee that for at least 60
         minutes since the first request.
        
         For example, consider a situation where you make an initial request and t
         he request times out. If you make the request again with the same request
         ID, the server can check if original operation with the same request ID
         was received, and if so, will ignore the second request. This prevents
         clients from accidentally creating duplicate commitments.
        
         The request ID must be a valid UUID with the exception that zero UUID is
         not supported (00000000-0000-0000-0000-000000000000).
         
        string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The requestId to set.
        Returns:
        This builder for chaining.
      • clearRequestId

        public CreateCertificateRequest.Builder clearRequestId()
         Optional. An ID to identify requests. Specify a unique request ID so that if you must
         retry your request, the server will know to ignore the request if it has
         already been completed. The server will guarantee that for at least 60
         minutes since the first request.
        
         For example, consider a situation where you make an initial request and t
         he request times out. If you make the request again with the same request
         ID, the server can check if original operation with the same request ID
         was received, and if so, will ignore the second request. This prevents
         clients from accidentally creating duplicate commitments.
        
         The request ID must be a valid UUID with the exception that zero UUID is
         not supported (00000000-0000-0000-0000-000000000000).
         
        string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setRequestIdBytes

        public CreateCertificateRequest.Builder setRequestIdBytes​(com.google.protobuf.ByteString value)
         Optional. An ID to identify requests. Specify a unique request ID so that if you must
         retry your request, the server will know to ignore the request if it has
         already been completed. The server will guarantee that for at least 60
         minutes since the first request.
        
         For example, consider a situation where you make an initial request and t
         he request times out. If you make the request again with the same request
         ID, the server can check if original operation with the same request ID
         was received, and if so, will ignore the second request. This prevents
         clients from accidentally creating duplicate commitments.
        
         The request ID must be a valid UUID with the exception that zero UUID is
         not supported (00000000-0000-0000-0000-000000000000).
         
        string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for requestId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CreateCertificateRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCertificateRequest.Builder>
      • mergeUnknownFields

        public final CreateCertificateRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCertificateRequest.Builder>