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
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
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public PublicKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clone()
public PublicKey.Builder clone()
Overrides
getDefaultInstanceForType()
public PublicKey getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
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];
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()
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
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 |
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
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];
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final PublicKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides