public static final class CreateCryptoKeyRequest.Builder extends GeneratedMessageV3.Builder<CreateCryptoKeyRequest.Builder> implements CreateCryptoKeyRequestOrBuilder
Request message for [KeyManagementService.CreateCryptoKey][google.cloud.kms.v1.KeyManagementService.CreateCryptoKey].Protobuf type
google.cloud.kms.v1.CreateCryptoKeyRequest
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<CreateCryptoKeyRequest.Builder>
public CreateCryptoKeyRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<CreateCryptoKeyRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<CreateCryptoKeyRequest.Builder>
public CreateCryptoKeyRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public CreateCryptoKeyRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public CreateCryptoKeyRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public CreateCryptoKeyRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<CreateCryptoKeyRequest.Builder>
public CreateCryptoKeyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<CreateCryptoKeyRequest.Builder>
public CreateCryptoKeyRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<CreateCryptoKeyRequest.Builder>
public CreateCryptoKeyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<CreateCryptoKeyRequest.Builder>
public CreateCryptoKeyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<CreateCryptoKeyRequest.Builder>
public CreateCryptoKeyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<CreateCryptoKeyRequest.Builder>
public CreateCryptoKeyRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<CreateCryptoKeyRequest.Builder>
public CreateCryptoKeyRequest.Builder mergeFrom(CreateCryptoKeyRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<CreateCryptoKeyRequest.Builder>
public CreateCryptoKeyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<CreateCryptoKeyRequest.Builder>
IOException
public String getParent()
Required. The [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing associated with the [CryptoKeys][google.cloud.kms.v1.CryptoKey].
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParent
in interface CreateCryptoKeyRequestOrBuilder
public ByteString getParentBytes()
Required. The [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing associated with the [CryptoKeys][google.cloud.kms.v1.CryptoKey].
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParentBytes
in interface CreateCryptoKeyRequestOrBuilder
public CreateCryptoKeyRequest.Builder setParent(String value)
Required. The [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing associated with the [CryptoKeys][google.cloud.kms.v1.CryptoKey].
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The parent to set.public CreateCryptoKeyRequest.Builder clearParent()
Required. The [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing associated with the [CryptoKeys][google.cloud.kms.v1.CryptoKey].
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public CreateCryptoKeyRequest.Builder setParentBytes(ByteString value)
Required. The [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing associated with the [CryptoKeys][google.cloud.kms.v1.CryptoKey].
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The bytes for parent to set.public String getCryptoKeyId()
Required. It must be unique within a KeyRing and match the regular expression `[a-zA-Z0-9_-]{1,63}`
string crypto_key_id = 2 [(.google.api.field_behavior) = REQUIRED];
getCryptoKeyId
in interface CreateCryptoKeyRequestOrBuilder
public ByteString getCryptoKeyIdBytes()
Required. It must be unique within a KeyRing and match the regular expression `[a-zA-Z0-9_-]{1,63}`
string crypto_key_id = 2 [(.google.api.field_behavior) = REQUIRED];
getCryptoKeyIdBytes
in interface CreateCryptoKeyRequestOrBuilder
public CreateCryptoKeyRequest.Builder setCryptoKeyId(String value)
Required. It must be unique within a KeyRing and match the regular expression `[a-zA-Z0-9_-]{1,63}`
string crypto_key_id = 2 [(.google.api.field_behavior) = REQUIRED];
value
- The cryptoKeyId to set.public CreateCryptoKeyRequest.Builder clearCryptoKeyId()
Required. It must be unique within a KeyRing and match the regular expression `[a-zA-Z0-9_-]{1,63}`
string crypto_key_id = 2 [(.google.api.field_behavior) = REQUIRED];
public CreateCryptoKeyRequest.Builder setCryptoKeyIdBytes(ByteString value)
Required. It must be unique within a KeyRing and match the regular expression `[a-zA-Z0-9_-]{1,63}`
string crypto_key_id = 2 [(.google.api.field_behavior) = REQUIRED];
value
- The bytes for cryptoKeyId to set.public boolean hasCryptoKey()
Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field values.
.google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED];
hasCryptoKey
in interface CreateCryptoKeyRequestOrBuilder
public CryptoKey getCryptoKey()
Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field values.
.google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED];
getCryptoKey
in interface CreateCryptoKeyRequestOrBuilder
public CreateCryptoKeyRequest.Builder setCryptoKey(CryptoKey value)
Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field values.
.google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED];
public CreateCryptoKeyRequest.Builder setCryptoKey(CryptoKey.Builder builderForValue)
Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field values.
.google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED];
public CreateCryptoKeyRequest.Builder mergeCryptoKey(CryptoKey value)
Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field values.
.google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED];
public CreateCryptoKeyRequest.Builder clearCryptoKey()
Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field values.
.google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED];
public CryptoKey.Builder getCryptoKeyBuilder()
Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field values.
.google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED];
public CryptoKeyOrBuilder getCryptoKeyOrBuilder()
Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field values.
.google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED];
getCryptoKeyOrBuilder
in interface CreateCryptoKeyRequestOrBuilder
public boolean getSkipInitialVersionCreation()
If set to true, the request will create a [CryptoKey][google.cloud.kms.v1.CryptoKey] without any [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]. You must manually call [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or [ImportCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion] before you can use this [CryptoKey][google.cloud.kms.v1.CryptoKey].
bool skip_initial_version_creation = 5;
getSkipInitialVersionCreation
in interface CreateCryptoKeyRequestOrBuilder
public CreateCryptoKeyRequest.Builder setSkipInitialVersionCreation(boolean value)
If set to true, the request will create a [CryptoKey][google.cloud.kms.v1.CryptoKey] without any [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]. You must manually call [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or [ImportCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion] before you can use this [CryptoKey][google.cloud.kms.v1.CryptoKey].
bool skip_initial_version_creation = 5;
value
- The skipInitialVersionCreation to set.public CreateCryptoKeyRequest.Builder clearSkipInitialVersionCreation()
If set to true, the request will create a [CryptoKey][google.cloud.kms.v1.CryptoKey] without any [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]. You must manually call [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or [ImportCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion] before you can use this [CryptoKey][google.cloud.kms.v1.CryptoKey].
bool skip_initial_version_creation = 5;
public final CreateCryptoKeyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<CreateCryptoKeyRequest.Builder>
public final CreateCryptoKeyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<CreateCryptoKeyRequest.Builder>
Copyright © 2022 Google LLC. All rights reserved.