Class KmsConfig.Builder (0.7.0)

public static final class KmsConfig.Builder extends GeneratedMessageV3.Builder<KmsConfig.Builder> implements KmsConfigOrBuilder

KmsConfig is the customer managed encryption key(CMEK) configuration.

Protobuf type google.cloud.netapp.v1.KmsConfig

Implements

KmsConfigOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public KmsConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
KmsConfig.Builder
Overrides

build()

public KmsConfig build()
Returns
TypeDescription
KmsConfig

buildPartial()

public KmsConfig buildPartial()
Returns
TypeDescription
KmsConfig

clear()

public KmsConfig.Builder clear()
Returns
TypeDescription
KmsConfig.Builder
Overrides

clearCreateTime()

public KmsConfig.Builder clearCreateTime()

Output only. Create time of the KmsConfig.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
KmsConfig.Builder

clearCryptoKeyName()

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];

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

clearDescription()

public KmsConfig.Builder clearDescription()

Description of the KmsConfig.

string description = 6;

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public KmsConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
KmsConfig.Builder
Overrides

clearInstructions()

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];

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

clearLabels()

public KmsConfig.Builder clearLabels()
Returns
TypeDescription
KmsConfig.Builder

clearName()

public KmsConfig.Builder clearName()

Output only. Name of the KmsConfig.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public KmsConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
KmsConfig.Builder
Overrides

clearServiceAccount()

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];

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

clearState()

public KmsConfig.Builder clearState()

Output only. State of the KmsConfig.

.google.cloud.netapp.v1.KmsConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

clearStateDetails()

public KmsConfig.Builder clearStateDetails()

Output only. State details of the KmsConfig.

string state_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

clone()

public KmsConfig.Builder clone()
Returns
TypeDescription
KmsConfig.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs

map<string, string> labels = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. Create time of the KmsConfig.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Create time of the KmsConfig.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create time of the KmsConfig.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getCryptoKeyName()

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];

Returns
TypeDescription
String

The cryptoKeyName.

getCryptoKeyNameBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for cryptoKeyName.

getDefaultInstanceForType()

public KmsConfig getDefaultInstanceForType()
Returns
TypeDescription
KmsConfig

getDescription()

public String getDescription()

Description of the KmsConfig.

string description = 6;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the KmsConfig.

string description = 6;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstructions()

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];

Returns
TypeDescription
String

The instructions.

getInstructionsBytes()

public ByteString getInstructionsBytes()

Output only. Instructions to provide the access to the customer provided encryption key.

string instructions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for instructions.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs

map<string, string> labels = 7;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs

map<string, string> labels = 7;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels as key value pairs

map<string, string> labels = 7;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs

map<string, string> labels = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Output only. Name of the KmsConfig.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Name of the KmsConfig.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getServiceAccount()

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];

Returns
TypeDescription
String

The serviceAccount.

getServiceAccountBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for serviceAccount.

getState()

public KmsConfig.State getState()

Output only. State of the KmsConfig.

.google.cloud.netapp.v1.KmsConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
KmsConfig.State

The state.

getStateDetails()

public String getStateDetails()

Output only. State details of the KmsConfig.

string state_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The stateDetails.

getStateDetailsBytes()

public ByteString getStateDetailsBytes()

Output only. State details of the KmsConfig.

string state_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for stateDetails.

getStateValue()

public int getStateValue()

Output only. State of the KmsConfig.

.google.cloud.netapp.v1.KmsConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

hasCreateTime()

public boolean hasCreateTime()

Output only. Create time of the KmsConfig.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public KmsConfig.Builder mergeCreateTime(Timestamp value)

Output only. Create time of the KmsConfig.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
KmsConfig.Builder

mergeFrom(KmsConfig other)

public KmsConfig.Builder mergeFrom(KmsConfig other)
Parameter
NameDescription
otherKmsConfig
Returns
TypeDescription
KmsConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public KmsConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KmsConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public KmsConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
KmsConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final KmsConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
KmsConfig.Builder
Overrides

putAllLabels(Map<String,String> values)

public KmsConfig.Builder putAllLabels(Map<String,String> values)

Labels as key value pairs

map<string, string> labels = 7;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
KmsConfig.Builder

putLabels(String key, String value)

public KmsConfig.Builder putLabels(String key, String value)

Labels as key value pairs

map<string, string> labels = 7;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
KmsConfig.Builder

removeLabels(String key)

public KmsConfig.Builder removeLabels(String key)

Labels as key value pairs

map<string, string> labels = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
KmsConfig.Builder

setCreateTime(Timestamp value)

public KmsConfig.Builder setCreateTime(Timestamp value)

Output only. Create time of the KmsConfig.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
KmsConfig.Builder

setCreateTime(Timestamp.Builder builderForValue)

public KmsConfig.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Create time of the KmsConfig.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
KmsConfig.Builder

setCryptoKeyName(String value)

public 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];

Parameter
NameDescription
valueString

The cryptoKeyName to set.

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

setCryptoKeyNameBytes(ByteString value)

public KmsConfig.Builder setCryptoKeyNameBytes(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];

Parameter
NameDescription
valueByteString

The bytes for cryptoKeyName to set.

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

setDescription(String value)

public KmsConfig.Builder setDescription(String value)

Description of the KmsConfig.

string description = 6;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public KmsConfig.Builder setDescriptionBytes(ByteString value)

Description of the KmsConfig.

string description = 6;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public KmsConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
KmsConfig.Builder
Overrides

setInstructions(String value)

public 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];

Parameter
NameDescription
valueString

The instructions to set.

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

setInstructionsBytes(ByteString value)

public KmsConfig.Builder setInstructionsBytes(ByteString value)

Output only. Instructions to provide the access to the customer provided encryption key.

string instructions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for instructions to set.

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

setName(String value)

public KmsConfig.Builder setName(String value)

Output only. Name of the KmsConfig.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public KmsConfig.Builder setNameBytes(ByteString value)

Output only. Name of the KmsConfig.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public KmsConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
KmsConfig.Builder
Overrides

setServiceAccount(String value)

public 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];

Parameter
NameDescription
valueString

The serviceAccount to set.

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public KmsConfig.Builder setServiceAccountBytes(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];

Parameter
NameDescription
valueByteString

The bytes for serviceAccount to set.

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

setState(KmsConfig.State value)

public 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];

Parameter
NameDescription
valueKmsConfig.State

The state to set.

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

setStateDetails(String value)

public KmsConfig.Builder setStateDetails(String value)

Output only. State details of the KmsConfig.

string state_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The stateDetails to set.

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

setStateDetailsBytes(ByteString value)

public KmsConfig.Builder setStateDetailsBytes(ByteString value)

Output only. State details of the KmsConfig.

string state_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for stateDetails to set.

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

setStateValue(int value)

public 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];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
KmsConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final KmsConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
KmsConfig.Builder
Overrides