public static final class AutokeyConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AutokeyConfig.Builder> implements AutokeyConfigOrBuilder
Cloud KMS Autokey configuration for a folder.Protobuf type
google.cloud.kms.v1.AutokeyConfig| Modifier and Type | Method and Description |
|---|---|
AutokeyConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AutokeyConfig |
build() |
AutokeyConfig |
buildPartial() |
AutokeyConfig.Builder |
clear() |
AutokeyConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AutokeyConfig.Builder |
clearKeyProject()
Optional.
|
AutokeyConfig.Builder |
clearName()
Identifier.
|
AutokeyConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AutokeyConfig.Builder |
clone() |
AutokeyConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getKeyProject()
Optional.
|
com.google.protobuf.ByteString |
getKeyProjectBytes()
Optional.
|
String |
getName()
Identifier.
|
com.google.protobuf.ByteString |
getNameBytes()
Identifier.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AutokeyConfig.Builder |
mergeFrom(AutokeyConfig other) |
AutokeyConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AutokeyConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
AutokeyConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AutokeyConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AutokeyConfig.Builder |
setKeyProject(String value)
Optional.
|
AutokeyConfig.Builder |
setKeyProjectBytes(com.google.protobuf.ByteString value)
Optional.
|
AutokeyConfig.Builder |
setName(String value)
Identifier.
|
AutokeyConfig.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Identifier.
|
AutokeyConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AutokeyConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AutokeyConfig.Builder>public AutokeyConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AutokeyConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AutokeyConfig.Builder>public AutokeyConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AutokeyConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AutokeyConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AutokeyConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AutokeyConfig.Builder>public AutokeyConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AutokeyConfig.Builder>public AutokeyConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AutokeyConfig.Builder>public AutokeyConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AutokeyConfig.Builder>public AutokeyConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AutokeyConfig.Builder>public AutokeyConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AutokeyConfig.Builder>public AutokeyConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AutokeyConfig.Builder>public AutokeyConfig.Builder mergeFrom(AutokeyConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AutokeyConfig.Builder>public AutokeyConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AutokeyConfig.Builder>IOExceptionpublic String getName()
Identifier. Name of the [AutokeyConfig][google.cloud.kms.v1.AutokeyConfig]
resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getName in interface AutokeyConfigOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Identifier. Name of the [AutokeyConfig][google.cloud.kms.v1.AutokeyConfig]
resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getNameBytes in interface AutokeyConfigOrBuilderpublic AutokeyConfig.Builder setName(String value)
Identifier. Name of the [AutokeyConfig][google.cloud.kms.v1.AutokeyConfig]
resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];value - The name to set.public AutokeyConfig.Builder clearName()
Identifier. Name of the [AutokeyConfig][google.cloud.kms.v1.AutokeyConfig]
resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];public AutokeyConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
Identifier. Name of the [AutokeyConfig][google.cloud.kms.v1.AutokeyConfig]
resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];value - The bytes for name to set.public String getKeyProject()
Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or
`projects/{PROJECT_NUMBER}`, where Cloud KMS Autokey will provision a new
[CryptoKey][google.cloud.kms.v1.CryptoKey] when a
[KeyHandle][google.cloud.kms.v1.KeyHandle] is created. On
[UpdateAutokeyConfig][google.cloud.kms.v1.AutokeyAdmin.UpdateAutokeyConfig],
the caller will require `cloudkms.cryptoKeys.setIamPolicy` permission on
this key project. Once configured, for Cloud KMS Autokey to function
properly, this key project must have the Cloud KMS API activated and the
Cloud KMS Service Agent for this key project must be granted the
`cloudkms.admin` role (or pertinent permissions). A request with an empty
key project field will clear the configuration.
string key_project = 2 [(.google.api.field_behavior) = OPTIONAL];getKeyProject in interface AutokeyConfigOrBuilderpublic com.google.protobuf.ByteString getKeyProjectBytes()
Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or
`projects/{PROJECT_NUMBER}`, where Cloud KMS Autokey will provision a new
[CryptoKey][google.cloud.kms.v1.CryptoKey] when a
[KeyHandle][google.cloud.kms.v1.KeyHandle] is created. On
[UpdateAutokeyConfig][google.cloud.kms.v1.AutokeyAdmin.UpdateAutokeyConfig],
the caller will require `cloudkms.cryptoKeys.setIamPolicy` permission on
this key project. Once configured, for Cloud KMS Autokey to function
properly, this key project must have the Cloud KMS API activated and the
Cloud KMS Service Agent for this key project must be granted the
`cloudkms.admin` role (or pertinent permissions). A request with an empty
key project field will clear the configuration.
string key_project = 2 [(.google.api.field_behavior) = OPTIONAL];getKeyProjectBytes in interface AutokeyConfigOrBuilderpublic AutokeyConfig.Builder setKeyProject(String value)
Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or
`projects/{PROJECT_NUMBER}`, where Cloud KMS Autokey will provision a new
[CryptoKey][google.cloud.kms.v1.CryptoKey] when a
[KeyHandle][google.cloud.kms.v1.KeyHandle] is created. On
[UpdateAutokeyConfig][google.cloud.kms.v1.AutokeyAdmin.UpdateAutokeyConfig],
the caller will require `cloudkms.cryptoKeys.setIamPolicy` permission on
this key project. Once configured, for Cloud KMS Autokey to function
properly, this key project must have the Cloud KMS API activated and the
Cloud KMS Service Agent for this key project must be granted the
`cloudkms.admin` role (or pertinent permissions). A request with an empty
key project field will clear the configuration.
string key_project = 2 [(.google.api.field_behavior) = OPTIONAL];value - The keyProject to set.public AutokeyConfig.Builder clearKeyProject()
Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or
`projects/{PROJECT_NUMBER}`, where Cloud KMS Autokey will provision a new
[CryptoKey][google.cloud.kms.v1.CryptoKey] when a
[KeyHandle][google.cloud.kms.v1.KeyHandle] is created. On
[UpdateAutokeyConfig][google.cloud.kms.v1.AutokeyAdmin.UpdateAutokeyConfig],
the caller will require `cloudkms.cryptoKeys.setIamPolicy` permission on
this key project. Once configured, for Cloud KMS Autokey to function
properly, this key project must have the Cloud KMS API activated and the
Cloud KMS Service Agent for this key project must be granted the
`cloudkms.admin` role (or pertinent permissions). A request with an empty
key project field will clear the configuration.
string key_project = 2 [(.google.api.field_behavior) = OPTIONAL];public AutokeyConfig.Builder setKeyProjectBytes(com.google.protobuf.ByteString value)
Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or
`projects/{PROJECT_NUMBER}`, where Cloud KMS Autokey will provision a new
[CryptoKey][google.cloud.kms.v1.CryptoKey] when a
[KeyHandle][google.cloud.kms.v1.KeyHandle] is created. On
[UpdateAutokeyConfig][google.cloud.kms.v1.AutokeyAdmin.UpdateAutokeyConfig],
the caller will require `cloudkms.cryptoKeys.setIamPolicy` permission on
this key project. Once configured, for Cloud KMS Autokey to function
properly, this key project must have the Cloud KMS API activated and the
Cloud KMS Service Agent for this key project must be granted the
`cloudkms.admin` role (or pertinent permissions). A request with an empty
key project field will clear the configuration.
string key_project = 2 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for keyProject to set.public final AutokeyConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AutokeyConfig.Builder>public final AutokeyConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AutokeyConfig.Builder>Copyright © 2024 Google LLC. All rights reserved.