Class CreateKeyRingRequest.Builder

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

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

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

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

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

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

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

      public String getParent()
       Required. The resource name of the location associated with the
       [KeyRings][google.cloud.kms.v1.KeyRing], in the format
       `projects/*/locations/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateKeyRingRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The resource name of the location associated with the
       [KeyRings][google.cloud.kms.v1.KeyRing], in the format
       `projects/*/locations/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateKeyRingRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateKeyRingRequest.Builder setParent(String value)
       Required. The resource name of the location associated with the
       [KeyRings][google.cloud.kms.v1.KeyRing], in the format
       `projects/*/locations/*`.
       
      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 CreateKeyRingRequest.Builder clearParent()
       Required. The resource name of the location associated with the
       [KeyRings][google.cloud.kms.v1.KeyRing], in the format
       `projects/*/locations/*`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateKeyRingRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the location associated with the
       [KeyRings][google.cloud.kms.v1.KeyRing], in the format
       `projects/*/locations/*`.
       
      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.
    • getKeyRingId

      public String getKeyRingId()
       Required. It must be unique within a location and match the regular
       expression `[a-zA-Z0-9_-]{1,63}`
       
      string key_ring_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKeyRingId in interface CreateKeyRingRequestOrBuilder
      Returns:
      The keyRingId.
    • getKeyRingIdBytes

      public com.google.protobuf.ByteString getKeyRingIdBytes()
       Required. It must be unique within a location and match the regular
       expression `[a-zA-Z0-9_-]{1,63}`
       
      string key_ring_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKeyRingIdBytes in interface CreateKeyRingRequestOrBuilder
      Returns:
      The bytes for keyRingId.
    • setKeyRingId

      public CreateKeyRingRequest.Builder setKeyRingId(String value)
       Required. It must be unique within a location and match the regular
       expression `[a-zA-Z0-9_-]{1,63}`
       
      string key_ring_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The keyRingId to set.
      Returns:
      This builder for chaining.
    • clearKeyRingId

      public CreateKeyRingRequest.Builder clearKeyRingId()
       Required. It must be unique within a location and match the regular
       expression `[a-zA-Z0-9_-]{1,63}`
       
      string key_ring_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setKeyRingIdBytes

      public CreateKeyRingRequest.Builder setKeyRingIdBytes(com.google.protobuf.ByteString value)
       Required. It must be unique within a location and match the regular
       expression `[a-zA-Z0-9_-]{1,63}`
       
      string key_ring_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for keyRingId to set.
      Returns:
      This builder for chaining.
    • hasKeyRing

      public boolean hasKeyRing()
       Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
       values.
       
      .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasKeyRing in interface CreateKeyRingRequestOrBuilder
      Returns:
      Whether the keyRing field is set.
    • getKeyRing

      public KeyRing getKeyRing()
       Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
       values.
       
      .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKeyRing in interface CreateKeyRingRequestOrBuilder
      Returns:
      The keyRing.
    • setKeyRing

      public CreateKeyRingRequest.Builder setKeyRing(KeyRing value)
       Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
       values.
       
      .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED];
    • setKeyRing

      public CreateKeyRingRequest.Builder setKeyRing(KeyRing.Builder builderForValue)
       Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
       values.
       
      .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeKeyRing

      public CreateKeyRingRequest.Builder mergeKeyRing(KeyRing value)
       Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
       values.
       
      .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearKeyRing

      public CreateKeyRingRequest.Builder clearKeyRing()
       Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
       values.
       
      .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED];
    • getKeyRingBuilder

      public KeyRing.Builder getKeyRingBuilder()
       Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
       values.
       
      .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED];
    • getKeyRingOrBuilder

      public KeyRingOrBuilder getKeyRingOrBuilder()
       Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field
       values.
       
      .google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKeyRingOrBuilder in interface CreateKeyRingRequestOrBuilder