Class ExternalAccountKey.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExternalAccountKey.Builder>
com.google.cloud.security.publicca.v1beta1.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.GeneratedMessage.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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.