Class CreateKeyRingRequest.Builder (2.48.0)

public static final class CreateKeyRingRequest.Builder extends GeneratedMessageV3.Builder<CreateKeyRingRequest.Builder> implements CreateKeyRingRequestOrBuilder

Request message for KeyManagementService.CreateKeyRing.

Protobuf type google.cloud.kms.v1.CreateKeyRingRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateKeyRingRequest build()
Returns
Type Description
CreateKeyRingRequest

buildPartial()

public CreateKeyRingRequest buildPartial()
Returns
Type Description
CreateKeyRingRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKeyRing()

public CreateKeyRingRequest.Builder clearKeyRing()

Required. A KeyRing with initial field values.

.google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateKeyRingRequest.Builder

clearKeyRingId()

public CreateKeyRingRequest.Builder clearKeyRingId()

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

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

Returns
Type Description
CreateKeyRingRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateKeyRingRequest.Builder clearParent()

Required. The resource name of the location associated with the KeyRings, in the format projects/*/locations/*.

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

Returns
Type Description
CreateKeyRingRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateKeyRingRequest getDefaultInstanceForType()
Returns
Type Description
CreateKeyRingRequest

getDescriptorForType()

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

getKeyRing()

public KeyRing getKeyRing()

Required. A KeyRing with initial field values.

.google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
KeyRing

The keyRing.

getKeyRingBuilder()

public KeyRing.Builder getKeyRingBuilder()

Required. A KeyRing with initial field values.

.google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
KeyRing.Builder

getKeyRingId()

public String getKeyRingId()

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

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

Returns
Type Description
String

The keyRingId.

getKeyRingIdBytes()

public ByteString getKeyRingIdBytes()

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

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

Returns
Type Description
ByteString

The bytes for keyRingId.

getKeyRingOrBuilder()

public KeyRingOrBuilder getKeyRingOrBuilder()

Required. A KeyRing with initial field values.

.google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
KeyRingOrBuilder

getParent()

public String getParent()

Required. The resource name of the location associated with the KeyRings, in the format projects/*/locations/*.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the location associated with the KeyRings, in the format projects/*/locations/*.

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

Returns
Type Description
ByteString

The bytes for parent.

hasKeyRing()

public boolean hasKeyRing()

Required. A KeyRing with initial field values.

.google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the keyRing field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateKeyRingRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeKeyRing(KeyRing value)

public CreateKeyRingRequest.Builder mergeKeyRing(KeyRing value)

Required. A KeyRing with initial field values.

.google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value KeyRing
Returns
Type Description
CreateKeyRingRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKeyRing(KeyRing value)

public CreateKeyRingRequest.Builder setKeyRing(KeyRing value)

Required. A KeyRing with initial field values.

.google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value KeyRing
Returns
Type Description
CreateKeyRingRequest.Builder

setKeyRing(KeyRing.Builder builderForValue)

public CreateKeyRingRequest.Builder setKeyRing(KeyRing.Builder builderForValue)

Required. A KeyRing with initial field values.

.google.cloud.kms.v1.KeyRing key_ring = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue KeyRing.Builder
Returns
Type Description
CreateKeyRingRequest.Builder

setKeyRingId(String value)

public CreateKeyRingRequest.Builder setKeyRingId(String value)

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

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

Parameter
Name Description
value String

The keyRingId to set.

Returns
Type Description
CreateKeyRingRequest.Builder

This builder for chaining.

setKeyRingIdBytes(ByteString value)

public CreateKeyRingRequest.Builder setKeyRingIdBytes(ByteString value)

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

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

Parameter
Name Description
value ByteString

The bytes for keyRingId to set.

Returns
Type Description
CreateKeyRingRequest.Builder

This builder for chaining.

setParent(String value)

public CreateKeyRingRequest.Builder setParent(String value)

Required. The resource name of the location associated with the KeyRings, in the format projects/*/locations/*.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateKeyRingRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateKeyRingRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the location associated with the KeyRings, in the format projects/*/locations/*.

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
CreateKeyRingRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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