public static final class PublicKey.Builder extends GeneratedMessageV3.Builder<PublicKey.Builder> implements PublicKeyOrBuilder
A PublicKey describes a public key.
Protobuf type google.cloud.security.privateca.v1beta1.PublicKey
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PublicKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public PublicKey buildPartial()
Returns
clear()
public PublicKey.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public PublicKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearKey()
public PublicKey.Builder clearKey()
Required. A public key. Padding and encoding varies by 'KeyType' and is described
along with the KeyType values.
bytes key = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public PublicKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearType()
public PublicKey.Builder clearType()
Required. The type of public key.
.google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public PublicKey.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public PublicKey getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getKey()
public ByteString getKey()
Required. A public key. Padding and encoding varies by 'KeyType' and is described
along with the KeyType values.
bytes key = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getType()
public PublicKey.KeyType getType()
Required. The type of public key.
.google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getTypeValue()
public int getTypeValue()
Required. The type of public key.
.google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
int | The enum numeric value on the wire for type.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(PublicKey other)
public PublicKey.Builder mergeFrom(PublicKey other)
Parameter
Returns
public PublicKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PublicKey.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PublicKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public PublicKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setKey(ByteString value)
public PublicKey.Builder setKey(ByteString value)
Required. A public key. Padding and encoding varies by 'KeyType' and is described
along with the KeyType values.
bytes key = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PublicKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setType(PublicKey.KeyType value)
public PublicKey.Builder setType(PublicKey.KeyType value)
Required. The type of public key.
.google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setTypeValue(int value)
public PublicKey.Builder setTypeValue(int value)
Required. The type of public key.
.google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | int
The enum numeric value on the wire for type to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final PublicKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides