Class CreateKeyRingRequest.Builder (2.5.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateKeyRingRequest build()
Returns
TypeDescription
CreateKeyRingRequest

buildPartial()

public CreateKeyRingRequest buildPartial()
Returns
TypeDescription
CreateKeyRingRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateKeyRingRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateKeyRingRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateKeyRingRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateKeyRingRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateKeyRingRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateKeyRingRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the keyRing field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateKeyRingRequest other)

public CreateKeyRingRequest.Builder mergeFrom(CreateKeyRingRequest other)
Parameter
NameDescription
otherCreateKeyRingRequest
Returns
TypeDescription
CreateKeyRingRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateKeyRingRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueKeyRing
Returns
TypeDescription
CreateKeyRingRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateKeyRingRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueKeyRing
Returns
TypeDescription
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
NameDescription
builderForValueKeyRing.Builder
Returns
TypeDescription
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
NameDescription
valueString

The keyRingId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for keyRingId to set.

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateKeyRingRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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