Class KeyRing.Builder (2.5.1)

public static final class KeyRing.Builder extends GeneratedMessageV3.Builder<KeyRing.Builder> implements KeyRingOrBuilder

A KeyRing is a toplevel logical grouping of CryptoKeys.

Protobuf type google.cloud.kms.v1.KeyRing

Implements

KeyRingOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public KeyRing build()
Returns
TypeDescription
KeyRing

buildPartial()

public KeyRing buildPartial()
Returns
TypeDescription
KeyRing

clear()

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

clearCreateTime()

public KeyRing.Builder clearCreateTime()

Output only. The time at which this KeyRing was created.

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

Returns
TypeDescription
KeyRing.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public KeyRing.Builder clearName()

Output only. The resource name for the KeyRing in the format projects/*/locations/*/keyRings/*.

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

Returns
TypeDescription
KeyRing.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The time at which this KeyRing was created.

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

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time at which this KeyRing was created.

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

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which this KeyRing was created.

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public KeyRing getDefaultInstanceForType()
Returns
TypeDescription
KeyRing

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Output only. The resource name for the KeyRing in the format projects/*/locations/*/keyRings/*.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name for the KeyRing in the format projects/*/locations/*/keyRings/*.

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

Returns
TypeDescription
ByteString

The bytes for name.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time at which this KeyRing was created.

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

Returns
TypeDescription
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public KeyRing.Builder mergeCreateTime(Timestamp value)

Output only. The time at which this KeyRing was created.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
KeyRing.Builder

mergeFrom(KeyRing other)

public KeyRing.Builder mergeFrom(KeyRing other)
Parameter
NameDescription
otherKeyRing
Returns
TypeDescription
KeyRing.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCreateTime(Timestamp value)

public KeyRing.Builder setCreateTime(Timestamp value)

Output only. The time at which this KeyRing was created.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
KeyRing.Builder

setCreateTime(Timestamp.Builder builderForValue)

public KeyRing.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time at which this KeyRing was created.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
KeyRing.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public KeyRing.Builder setName(String value)

Output only. The resource name for the KeyRing in the format projects/*/locations/*/keyRings/*.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
KeyRing.Builder

This builder for chaining.

setNameBytes(ByteString value)

public KeyRing.Builder setNameBytes(ByteString value)

Output only. The resource name for the KeyRing in the format projects/*/locations/*/keyRings/*.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
KeyRing.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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