Class CreateKmsConfigRequest.Builder (0.21.0)

public static final class CreateKmsConfigRequest.Builder extends GeneratedMessageV3.Builder<CreateKmsConfigRequest.Builder> implements CreateKmsConfigRequestOrBuilder

CreateKmsConfigRequest creates a KMS Config.

Protobuf type google.cloud.netapp.v1.CreateKmsConfigRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateKmsConfigRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateKmsConfigRequest.Builder
Overrides

build()

public CreateKmsConfigRequest build()
Returns
Type Description
CreateKmsConfigRequest

buildPartial()

public CreateKmsConfigRequest buildPartial()
Returns
Type Description
CreateKmsConfigRequest

clear()

public CreateKmsConfigRequest.Builder clear()
Returns
Type Description
CreateKmsConfigRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateKmsConfigRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateKmsConfigRequest.Builder
Overrides

clearKmsConfig()

public CreateKmsConfigRequest.Builder clearKmsConfig()

Required. The required parameters to create a new KmsConfig.

.google.cloud.netapp.v1.KmsConfig kms_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateKmsConfigRequest.Builder

clearKmsConfigId()

public CreateKmsConfigRequest.Builder clearKmsConfigId()

Required. Id of the requesting KmsConfig If auto-generating Id server-side, remove this field and id from the method_signature of Create RPC

string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateKmsConfigRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateKmsConfigRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateKmsConfigRequest.Builder
Overrides

clearParent()

public CreateKmsConfigRequest.Builder clearParent()

Required. Value for parent.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateKmsConfigRequest.Builder

This builder for chaining.

clone()

public CreateKmsConfigRequest.Builder clone()
Returns
Type Description
CreateKmsConfigRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateKmsConfigRequest getDefaultInstanceForType()
Returns
Type Description
CreateKmsConfigRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKmsConfig()

public KmsConfig getKmsConfig()

Required. The required parameters to create a new KmsConfig.

.google.cloud.netapp.v1.KmsConfig kms_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
KmsConfig

The kmsConfig.

getKmsConfigBuilder()

public KmsConfig.Builder getKmsConfigBuilder()

Required. The required parameters to create a new KmsConfig.

.google.cloud.netapp.v1.KmsConfig kms_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
KmsConfig.Builder

getKmsConfigId()

public String getKmsConfigId()

Required. Id of the requesting KmsConfig If auto-generating Id server-side, remove this field and id from the method_signature of Create RPC

string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The kmsConfigId.

getKmsConfigIdBytes()

public ByteString getKmsConfigIdBytes()

Required. Id of the requesting KmsConfig If auto-generating Id server-side, remove this field and id from the method_signature of Create RPC

string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for kmsConfigId.

getKmsConfigOrBuilder()

public KmsConfigOrBuilder getKmsConfigOrBuilder()

Required. The required parameters to create a new KmsConfig.

.google.cloud.netapp.v1.KmsConfig kms_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
KmsConfigOrBuilder

getParent()

public String getParent()

Required. Value for parent.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Value for parent.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasKmsConfig()

public boolean hasKmsConfig()

Required. The required parameters to create a new KmsConfig.

.google.cloud.netapp.v1.KmsConfig kms_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the kmsConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateKmsConfigRequest other)

public CreateKmsConfigRequest.Builder mergeFrom(CreateKmsConfigRequest other)
Parameter
Name Description
other CreateKmsConfigRequest
Returns
Type Description
CreateKmsConfigRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateKmsConfigRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateKmsConfigRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateKmsConfigRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateKmsConfigRequest.Builder
Overrides

mergeKmsConfig(KmsConfig value)

public CreateKmsConfigRequest.Builder mergeKmsConfig(KmsConfig value)

Required. The required parameters to create a new KmsConfig.

.google.cloud.netapp.v1.KmsConfig kms_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value KmsConfig
Returns
Type Description
CreateKmsConfigRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateKmsConfigRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateKmsConfigRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateKmsConfigRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateKmsConfigRequest.Builder
Overrides

setKmsConfig(KmsConfig value)

public CreateKmsConfigRequest.Builder setKmsConfig(KmsConfig value)

Required. The required parameters to create a new KmsConfig.

.google.cloud.netapp.v1.KmsConfig kms_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value KmsConfig
Returns
Type Description
CreateKmsConfigRequest.Builder

setKmsConfig(KmsConfig.Builder builderForValue)

public CreateKmsConfigRequest.Builder setKmsConfig(KmsConfig.Builder builderForValue)

Required. The required parameters to create a new KmsConfig.

.google.cloud.netapp.v1.KmsConfig kms_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue KmsConfig.Builder
Returns
Type Description
CreateKmsConfigRequest.Builder

setKmsConfigId(String value)

public CreateKmsConfigRequest.Builder setKmsConfigId(String value)

Required. Id of the requesting KmsConfig If auto-generating Id server-side, remove this field and id from the method_signature of Create RPC

string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The kmsConfigId to set.

Returns
Type Description
CreateKmsConfigRequest.Builder

This builder for chaining.

setKmsConfigIdBytes(ByteString value)

public CreateKmsConfigRequest.Builder setKmsConfigIdBytes(ByteString value)

Required. Id of the requesting KmsConfig If auto-generating Id server-side, remove this field and id from the method_signature of Create RPC

string kms_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for kmsConfigId to set.

Returns
Type Description
CreateKmsConfigRequest.Builder

This builder for chaining.

setParent(String value)

public CreateKmsConfigRequest.Builder setParent(String value)

Required. Value for parent.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateKmsConfigRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateKmsConfigRequest.Builder setParentBytes(ByteString value)

Required. Value for parent.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateKmsConfigRequest.Builder

This builder for chaining.

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

public CreateKmsConfigRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateKmsConfigRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateKmsConfigRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateKmsConfigRequest.Builder
Overrides