public static final class KmsConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder> implements KmsConfigOrBuilder
KmsConfig is the customer managed encryption key(CMEK) configuration.Protobuf type
google.cloud.netapp.v1.KmsConfig| Modifier and Type | Method and Description |
|---|---|
KmsConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
KmsConfig |
build() |
KmsConfig |
buildPartial() |
KmsConfig.Builder |
clear() |
KmsConfig.Builder |
clearCreateTime()
Output only.
|
KmsConfig.Builder |
clearCryptoKeyName()
Required.
|
KmsConfig.Builder |
clearDescription()
Description of the KmsConfig.
|
KmsConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
KmsConfig.Builder |
clearInstructions()
Output only.
|
KmsConfig.Builder |
clearLabels() |
KmsConfig.Builder |
clearName()
Identifier.
|
KmsConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
KmsConfig.Builder |
clearServiceAccount()
Output only.
|
KmsConfig.Builder |
clearState()
Output only.
|
KmsConfig.Builder |
clearStateDetails()
Output only.
|
KmsConfig.Builder |
clone() |
boolean |
containsLabels(String key)
Labels as key value pairs
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
String |
getCryptoKeyName()
Required.
|
com.google.protobuf.ByteString |
getCryptoKeyNameBytes()
Required.
|
KmsConfig |
getDefaultInstanceForType() |
String |
getDescription()
Description of the KmsConfig.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Description of the KmsConfig.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getInstructions()
Output only.
|
com.google.protobuf.ByteString |
getInstructionsBytes()
Output only.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Labels as key value pairs
|
Map<String,String> |
getLabelsMap()
Labels as key value pairs
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Labels as key value pairs
|
String |
getLabelsOrThrow(String key)
Labels as key value pairs
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
String |
getName()
Identifier.
|
com.google.protobuf.ByteString |
getNameBytes()
Identifier.
|
String |
getServiceAccount()
Output only.
|
com.google.protobuf.ByteString |
getServiceAccountBytes()
Output only.
|
KmsConfig.State |
getState()
Output only.
|
String |
getStateDetails()
Output only.
|
com.google.protobuf.ByteString |
getStateDetailsBytes()
Output only.
|
int |
getStateValue()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
KmsConfig.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
KmsConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
KmsConfig.Builder |
mergeFrom(KmsConfig other) |
KmsConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
KmsConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
KmsConfig.Builder |
putAllLabels(Map<String,String> values)
Labels as key value pairs
|
KmsConfig.Builder |
putLabels(String key,
String value)
Labels as key value pairs
|
KmsConfig.Builder |
removeLabels(String key)
Labels as key value pairs
|
KmsConfig.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
KmsConfig.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
KmsConfig.Builder |
setCryptoKeyName(String value)
Required.
|
KmsConfig.Builder |
setCryptoKeyNameBytes(com.google.protobuf.ByteString value)
Required.
|
KmsConfig.Builder |
setDescription(String value)
Description of the KmsConfig.
|
KmsConfig.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
Description of the KmsConfig.
|
KmsConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
KmsConfig.Builder |
setInstructions(String value)
Output only.
|
KmsConfig.Builder |
setInstructionsBytes(com.google.protobuf.ByteString value)
Output only.
|
KmsConfig.Builder |
setName(String value)
Identifier.
|
KmsConfig.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Identifier.
|
KmsConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
KmsConfig.Builder |
setServiceAccount(String value)
Output only.
|
KmsConfig.Builder |
setServiceAccountBytes(com.google.protobuf.ByteString value)
Output only.
|
KmsConfig.Builder |
setState(KmsConfig.State value)
Output only.
|
KmsConfig.Builder |
setStateDetails(String value)
Output only.
|
KmsConfig.Builder |
setStateDetailsBytes(com.google.protobuf.ByteString value)
Output only.
|
KmsConfig.Builder |
setStateValue(int value)
Output only.
|
KmsConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, 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.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>public KmsConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.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<KmsConfig.Builder>public KmsConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic KmsConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic KmsConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic KmsConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>public KmsConfig.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<KmsConfig.Builder>public KmsConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>public KmsConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>public KmsConfig.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<KmsConfig.Builder>public KmsConfig.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<KmsConfig.Builder>public KmsConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<KmsConfig.Builder>public KmsConfig.Builder mergeFrom(KmsConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>public KmsConfig.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<KmsConfig.Builder>IOExceptionpublic String getName()
Identifier. Name of the KmsConfig.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getName in interface KmsConfigOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Identifier. Name of the KmsConfig.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getNameBytes in interface KmsConfigOrBuilderpublic KmsConfig.Builder setName(String value)
Identifier. Name of the KmsConfig.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];value - The name to set.public KmsConfig.Builder clearName()
Identifier. Name of the KmsConfig.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];public KmsConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
Identifier. Name of the KmsConfig.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];value - The bytes for name to set.public String getCryptoKeyName()
Required. Customer managed crypto key resource full name. Format:
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}.
string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED];getCryptoKeyName in interface KmsConfigOrBuilderpublic com.google.protobuf.ByteString getCryptoKeyNameBytes()
Required. Customer managed crypto key resource full name. Format:
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}.
string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED];getCryptoKeyNameBytes in interface KmsConfigOrBuilderpublic KmsConfig.Builder setCryptoKeyName(String value)
Required. Customer managed crypto key resource full name. Format:
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}.
string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED];value - The cryptoKeyName to set.public KmsConfig.Builder clearCryptoKeyName()
Required. Customer managed crypto key resource full name. Format:
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}.
string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED];public KmsConfig.Builder setCryptoKeyNameBytes(com.google.protobuf.ByteString value)
Required. Customer managed crypto key resource full name. Format:
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}.
string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for cryptoKeyName to set.public int getStateValue()
Output only. State of the KmsConfig.
.google.cloud.netapp.v1.KmsConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue in interface KmsConfigOrBuilderpublic KmsConfig.Builder setStateValue(int value)
Output only. State of the KmsConfig.
.google.cloud.netapp.v1.KmsConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The enum numeric value on the wire for state to set.public KmsConfig.State getState()
Output only. State of the KmsConfig.
.google.cloud.netapp.v1.KmsConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState in interface KmsConfigOrBuilderpublic KmsConfig.Builder setState(KmsConfig.State value)
Output only. State of the KmsConfig.
.google.cloud.netapp.v1.KmsConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The state to set.public KmsConfig.Builder clearState()
Output only. State of the KmsConfig.
.google.cloud.netapp.v1.KmsConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public String getStateDetails()
Output only. State details of the KmsConfig.
string state_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];getStateDetails in interface KmsConfigOrBuilderpublic com.google.protobuf.ByteString getStateDetailsBytes()
Output only. State details of the KmsConfig.
string state_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];getStateDetailsBytes in interface KmsConfigOrBuilderpublic KmsConfig.Builder setStateDetails(String value)
Output only. State details of the KmsConfig.
string state_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The stateDetails to set.public KmsConfig.Builder clearStateDetails()
Output only. State details of the KmsConfig.
string state_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];public KmsConfig.Builder setStateDetailsBytes(com.google.protobuf.ByteString value)
Output only. State details of the KmsConfig.
string state_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for stateDetails to set.public boolean hasCreateTime()
Output only. Create time of the KmsConfig.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface KmsConfigOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. Create time of the KmsConfig.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface KmsConfigOrBuilderpublic KmsConfig.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. Create time of the KmsConfig.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public KmsConfig.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Create time of the KmsConfig.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public KmsConfig.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. Create time of the KmsConfig.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public KmsConfig.Builder clearCreateTime()
Output only. Create time of the KmsConfig.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. Create time of the KmsConfig.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Create time of the KmsConfig.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface KmsConfigOrBuilderpublic String getDescription()
Description of the KmsConfig.
string description = 6;getDescription in interface KmsConfigOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Description of the KmsConfig.
string description = 6;getDescriptionBytes in interface KmsConfigOrBuilderpublic KmsConfig.Builder setDescription(String value)
Description of the KmsConfig.
string description = 6;value - The description to set.public KmsConfig.Builder clearDescription()
Description of the KmsConfig.
string description = 6;public KmsConfig.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Description of the KmsConfig.
string description = 6;value - The bytes for description to set.public int getLabelsCount()
KmsConfigOrBuilderLabels as key value pairs
map<string, string> labels = 7;getLabelsCount in interface KmsConfigOrBuilderpublic boolean containsLabels(String key)
Labels as key value pairs
map<string, string> labels = 7;containsLabels in interface KmsConfigOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface KmsConfigOrBuilderpublic Map<String,String> getLabelsMap()
Labels as key value pairs
map<string, string> labels = 7;getLabelsMap in interface KmsConfigOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs
map<string, string> labels = 7;getLabelsOrDefault in interface KmsConfigOrBuilderpublic String getLabelsOrThrow(String key)
Labels as key value pairs
map<string, string> labels = 7;getLabelsOrThrow in interface KmsConfigOrBuilderpublic KmsConfig.Builder clearLabels()
public KmsConfig.Builder removeLabels(String key)
Labels as key value pairs
map<string, string> labels = 7;@Deprecated public Map<String,String> getMutableLabels()
public KmsConfig.Builder putLabels(String key, String value)
Labels as key value pairs
map<string, string> labels = 7;public KmsConfig.Builder putAllLabels(Map<String,String> values)
Labels as key value pairs
map<string, string> labels = 7;public String getInstructions()
Output only. Instructions to provide the access to the customer provided encryption key.
string instructions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];getInstructions in interface KmsConfigOrBuilderpublic com.google.protobuf.ByteString getInstructionsBytes()
Output only. Instructions to provide the access to the customer provided encryption key.
string instructions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];getInstructionsBytes in interface KmsConfigOrBuilderpublic KmsConfig.Builder setInstructions(String value)
Output only. Instructions to provide the access to the customer provided encryption key.
string instructions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The instructions to set.public KmsConfig.Builder clearInstructions()
Output only. Instructions to provide the access to the customer provided encryption key.
string instructions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];public KmsConfig.Builder setInstructionsBytes(com.google.protobuf.ByteString value)
Output only. Instructions to provide the access to the customer provided encryption key.
string instructions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for instructions to set.public String getServiceAccount()
Output only. The Service account which will have access to the customer provided encryption key.
string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];getServiceAccount in interface KmsConfigOrBuilderpublic com.google.protobuf.ByteString getServiceAccountBytes()
Output only. The Service account which will have access to the customer provided encryption key.
string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];getServiceAccountBytes in interface KmsConfigOrBuilderpublic KmsConfig.Builder setServiceAccount(String value)
Output only. The Service account which will have access to the customer provided encryption key.
string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The serviceAccount to set.public KmsConfig.Builder clearServiceAccount()
Output only. The Service account which will have access to the customer provided encryption key.
string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];public KmsConfig.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
Output only. The Service account which will have access to the customer provided encryption key.
string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for serviceAccount to set.public final KmsConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>public final KmsConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<KmsConfig.Builder>Copyright © 2024 Google LLC. All rights reserved.