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.v1.PublicKey
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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 PublicKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public PublicKey buildPartial()
clear()
public PublicKey.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public PublicKey.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public PublicKey.Builder clearFormat()
Required. The format of the public key.
.google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED];
clearKey()
public PublicKey.Builder clearKey()
Required. A public key. The padding and encoding
must match with the KeyFormat
value specified for the format
field.
bytes key = 1 [(.google.api.field_behavior) = REQUIRED];
clearOneof(Descriptors.OneofDescriptor oneof)
public PublicKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public PublicKey.Builder clone()
Overrides
getDefaultInstanceForType()
public PublicKey getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public PublicKey.KeyFormat getFormat()
Required. The format of the public key.
.google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED];
public int getFormatValue()
Required. The format of the public key.
.google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for format.
|
getKey()
public ByteString getKey()
Required. A public key. The padding and encoding
must match with the KeyFormat
value specified for the format
field.
bytes key = 1 [(.google.api.field_behavior) = REQUIRED];
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(PublicKey other)
public PublicKey.Builder mergeFrom(PublicKey other)
public PublicKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public PublicKey.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PublicKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public PublicKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public PublicKey.Builder setFormat(PublicKey.KeyFormat value)
Required. The format of the public key.
.google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED];
public PublicKey.Builder setFormatValue(int value)
Required. The format of the public key.
.google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | int
The enum numeric value on the wire for format to set.
|
setKey(ByteString value)
public PublicKey.Builder setKey(ByteString value)
Required. A public key. The padding and encoding
must match with the KeyFormat
value specified for the format
field.
bytes key = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | ByteString
The key to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PublicKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PublicKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides