Class GetPublicKeyRequest.Builder (2.33.0)

public static final class GetPublicKeyRequest.Builder extends GeneratedMessageV3.Builder<GetPublicKeyRequest.Builder> implements GetPublicKeyRequestOrBuilder

Request message for KeyManagementService.GetPublicKey.

Protobuf type google.cloud.kms.v1.GetPublicKeyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetPublicKeyRequest build()
Returns
TypeDescription
GetPublicKeyRequest

buildPartial()

public GetPublicKeyRequest buildPartial()
Returns
TypeDescription
GetPublicKeyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetPublicKeyRequest.Builder clearName()

Required. The name of the CryptoKeyVersion public key to get.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
GetPublicKeyRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetPublicKeyRequest getDefaultInstanceForType()
Returns
TypeDescription
GetPublicKeyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The name of the CryptoKeyVersion public key to get.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the CryptoKeyVersion public key to get.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetPublicKeyRequest other)

public GetPublicKeyRequest.Builder mergeFrom(GetPublicKeyRequest other)
Parameter
NameDescription
otherGetPublicKeyRequest
Returns
TypeDescription
GetPublicKeyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetPublicKeyRequest.Builder setName(String value)

Required. The name of the CryptoKeyVersion public key to get.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetPublicKeyRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetPublicKeyRequest.Builder setNameBytes(ByteString value)

Required. The name of the CryptoKeyVersion public key to get.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetPublicKeyRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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