Class CreateKeyHandleRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateKeyHandleRequest.Builder>
com.google.cloud.kms.v1.CreateKeyHandleRequest.Builder
All Implemented Interfaces:
CreateKeyHandleRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateKeyHandleRequest

public static final class CreateKeyHandleRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateKeyHandleRequest.Builder> implements CreateKeyHandleRequestOrBuilder
 Request message for
 [Autokey.CreateKeyHandle][google.cloud.kms.v1.Autokey.CreateKeyHandle].
 
Protobuf type google.cloud.kms.v1.CreateKeyHandleRequest
  • 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<CreateKeyHandleRequest.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<CreateKeyHandleRequest.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<CreateKeyHandleRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public CreateKeyHandleRequest.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<CreateKeyHandleRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. Name of the resource project and location to create the
       [KeyHandle][google.cloud.kms.v1.KeyHandle] in, e.g.
       `projects/{PROJECT_ID}/locations/{LOCATION}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateKeyHandleRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. Name of the resource project and location to create the
       [KeyHandle][google.cloud.kms.v1.KeyHandle] in, e.g.
       `projects/{PROJECT_ID}/locations/{LOCATION}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateKeyHandleRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateKeyHandleRequest.Builder setParent(String value)
       Required. Name of the resource project and location to create the
       [KeyHandle][google.cloud.kms.v1.KeyHandle] in, e.g.
       `projects/{PROJECT_ID}/locations/{LOCATION}`.
       
      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 CreateKeyHandleRequest.Builder clearParent()
       Required. Name of the resource project and location to create the
       [KeyHandle][google.cloud.kms.v1.KeyHandle] in, e.g.
       `projects/{PROJECT_ID}/locations/{LOCATION}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateKeyHandleRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. Name of the resource project and location to create the
       [KeyHandle][google.cloud.kms.v1.KeyHandle] in, e.g.
       `projects/{PROJECT_ID}/locations/{LOCATION}`.
       
      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.
    • getKeyHandleId

      public String getKeyHandleId()
       Optional. Id of the [KeyHandle][google.cloud.kms.v1.KeyHandle]. Must be
       unique to the resource project and location. If not provided by the caller,
       a new UUID is used.
       
      string key_handle_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getKeyHandleId in interface CreateKeyHandleRequestOrBuilder
      Returns:
      The keyHandleId.
    • getKeyHandleIdBytes

      public com.google.protobuf.ByteString getKeyHandleIdBytes()
       Optional. Id of the [KeyHandle][google.cloud.kms.v1.KeyHandle]. Must be
       unique to the resource project and location. If not provided by the caller,
       a new UUID is used.
       
      string key_handle_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getKeyHandleIdBytes in interface CreateKeyHandleRequestOrBuilder
      Returns:
      The bytes for keyHandleId.
    • setKeyHandleId

      public CreateKeyHandleRequest.Builder setKeyHandleId(String value)
       Optional. Id of the [KeyHandle][google.cloud.kms.v1.KeyHandle]. Must be
       unique to the resource project and location. If not provided by the caller,
       a new UUID is used.
       
      string key_handle_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The keyHandleId to set.
      Returns:
      This builder for chaining.
    • clearKeyHandleId

      public CreateKeyHandleRequest.Builder clearKeyHandleId()
       Optional. Id of the [KeyHandle][google.cloud.kms.v1.KeyHandle]. Must be
       unique to the resource project and location. If not provided by the caller,
       a new UUID is used.
       
      string key_handle_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setKeyHandleIdBytes

      public CreateKeyHandleRequest.Builder setKeyHandleIdBytes(com.google.protobuf.ByteString value)
       Optional. Id of the [KeyHandle][google.cloud.kms.v1.KeyHandle]. Must be
       unique to the resource project and location. If not provided by the caller,
       a new UUID is used.
       
      string key_handle_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for keyHandleId to set.
      Returns:
      This builder for chaining.
    • hasKeyHandle

      public boolean hasKeyHandle()
       Required. [KeyHandle][google.cloud.kms.v1.KeyHandle] to create.
       
      .google.cloud.kms.v1.KeyHandle key_handle = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasKeyHandle in interface CreateKeyHandleRequestOrBuilder
      Returns:
      Whether the keyHandle field is set.
    • getKeyHandle

      public KeyHandle getKeyHandle()
       Required. [KeyHandle][google.cloud.kms.v1.KeyHandle] to create.
       
      .google.cloud.kms.v1.KeyHandle key_handle = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKeyHandle in interface CreateKeyHandleRequestOrBuilder
      Returns:
      The keyHandle.
    • setKeyHandle

      public CreateKeyHandleRequest.Builder setKeyHandle(KeyHandle value)
       Required. [KeyHandle][google.cloud.kms.v1.KeyHandle] to create.
       
      .google.cloud.kms.v1.KeyHandle key_handle = 3 [(.google.api.field_behavior) = REQUIRED];
    • setKeyHandle

      public CreateKeyHandleRequest.Builder setKeyHandle(KeyHandle.Builder builderForValue)
       Required. [KeyHandle][google.cloud.kms.v1.KeyHandle] to create.
       
      .google.cloud.kms.v1.KeyHandle key_handle = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeKeyHandle

      public CreateKeyHandleRequest.Builder mergeKeyHandle(KeyHandle value)
       Required. [KeyHandle][google.cloud.kms.v1.KeyHandle] to create.
       
      .google.cloud.kms.v1.KeyHandle key_handle = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearKeyHandle

      public CreateKeyHandleRequest.Builder clearKeyHandle()
       Required. [KeyHandle][google.cloud.kms.v1.KeyHandle] to create.
       
      .google.cloud.kms.v1.KeyHandle key_handle = 3 [(.google.api.field_behavior) = REQUIRED];
    • getKeyHandleBuilder

      public KeyHandle.Builder getKeyHandleBuilder()
       Required. [KeyHandle][google.cloud.kms.v1.KeyHandle] to create.
       
      .google.cloud.kms.v1.KeyHandle key_handle = 3 [(.google.api.field_behavior) = REQUIRED];
    • getKeyHandleOrBuilder

      public KeyHandleOrBuilder getKeyHandleOrBuilder()
       Required. [KeyHandle][google.cloud.kms.v1.KeyHandle] to create.
       
      .google.cloud.kms.v1.KeyHandle key_handle = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKeyHandleOrBuilder in interface CreateKeyHandleRequestOrBuilder