Class ExternalAccountKey.Builder

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

    public static final class ExternalAccountKey.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ExternalAccountKey.Builder>
    implements ExternalAccountKeyOrBuilder
     A representation of an ExternalAccountKey used for [external account
     binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) within ACME.
     
    Protobuf type google.cloud.security.publicca.v1beta1.ExternalAccountKey
    • 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<ExternalAccountKey.Builder>
      • clear

        public ExternalAccountKey.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ExternalAccountKey.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<ExternalAccountKey.Builder>
      • getDefaultInstanceForType

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

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

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

        public ExternalAccountKey.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ExternalAccountKey.Builder>
      • setField

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

        public ExternalAccountKey.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExternalAccountKey.Builder>
      • clearOneof

        public ExternalAccountKey.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ExternalAccountKey.Builder>
      • setRepeatedField

        public ExternalAccountKey.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<ExternalAccountKey.Builder>
      • addRepeatedField

        public ExternalAccountKey.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<ExternalAccountKey.Builder>
      • mergeFrom

        public ExternalAccountKey.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExternalAccountKey.Builder>
      • isInitialized

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

        public ExternalAccountKey.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<ExternalAccountKey.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Output only. Resource name.
         projects/{project}/locations/{location}/externalAccountKeys/{key_id}
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface ExternalAccountKeyOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. Resource name.
         projects/{project}/locations/{location}/externalAccountKeys/{key_id}
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface ExternalAccountKeyOrBuilder
        Returns:
        The bytes for name.
      • setName

        public ExternalAccountKey.Builder setName​(String value)
         Output only. Resource name.
         projects/{project}/locations/{location}/externalAccountKeys/{key_id}
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public ExternalAccountKey.Builder clearName()
         Output only. Resource name.
         projects/{project}/locations/{location}/externalAccountKeys/{key_id}
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public ExternalAccountKey.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. Resource name.
         projects/{project}/locations/{location}/externalAccountKeys/{key_id}
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getKeyId

        public String getKeyId()
         Output only. Key ID.
         It is generated by the PublicCertificateAuthorityService
         when the ExternalAccountKey is created
         
        string key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getKeyId in interface ExternalAccountKeyOrBuilder
        Returns:
        The keyId.
      • getKeyIdBytes

        public com.google.protobuf.ByteString getKeyIdBytes()
         Output only. Key ID.
         It is generated by the PublicCertificateAuthorityService
         when the ExternalAccountKey is created
         
        string key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getKeyIdBytes in interface ExternalAccountKeyOrBuilder
        Returns:
        The bytes for keyId.
      • setKeyId

        public ExternalAccountKey.Builder setKeyId​(String value)
         Output only. Key ID.
         It is generated by the PublicCertificateAuthorityService
         when the ExternalAccountKey is created
         
        string key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The keyId to set.
        Returns:
        This builder for chaining.
      • clearKeyId

        public ExternalAccountKey.Builder clearKeyId()
         Output only. Key ID.
         It is generated by the PublicCertificateAuthorityService
         when the ExternalAccountKey is created
         
        string key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setKeyIdBytes

        public ExternalAccountKey.Builder setKeyIdBytes​(com.google.protobuf.ByteString value)
         Output only. Key ID.
         It is generated by the PublicCertificateAuthorityService
         when the ExternalAccountKey is created
         
        string key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for keyId to set.
        Returns:
        This builder for chaining.
      • getB64MacKey

        public com.google.protobuf.ByteString getB64MacKey()
         Output only. Base64-URL-encoded HS256 key.
         It is generated by the PublicCertificateAuthorityService
         when the ExternalAccountKey is created
         
        bytes b64_mac_key = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getB64MacKey in interface ExternalAccountKeyOrBuilder
        Returns:
        The b64MacKey.
      • setB64MacKey

        public ExternalAccountKey.Builder setB64MacKey​(com.google.protobuf.ByteString value)
         Output only. Base64-URL-encoded HS256 key.
         It is generated by the PublicCertificateAuthorityService
         when the ExternalAccountKey is created
         
        bytes b64_mac_key = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The b64MacKey to set.
        Returns:
        This builder for chaining.
      • clearB64MacKey

        public ExternalAccountKey.Builder clearB64MacKey()
         Output only. Base64-URL-encoded HS256 key.
         It is generated by the PublicCertificateAuthorityService
         when the ExternalAccountKey is created
         
        bytes b64_mac_key = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ExternalAccountKey.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<ExternalAccountKey.Builder>
      • mergeUnknownFields

        public final ExternalAccountKey.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<ExternalAccountKey.Builder>