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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateKeyRingRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateKeyRingRequest build()
buildPartial()
public CreateKeyRingRequest buildPartial()
clear()
public CreateKeyRingRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateKeyRingRequest.Builder clearField(Descriptors.FieldDescriptor field)
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];
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateKeyRingRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
clone()
public CreateKeyRingRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateKeyRingRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
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];
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CreateKeyRingRequest other)
public CreateKeyRingRequest.Builder mergeFrom(CreateKeyRingRequest other)
public CreateKeyRingRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateKeyRingRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateKeyRingRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateKeyRingRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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
|
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];
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.
|
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.
|
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateKeyRingRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateKeyRingRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides