Class GetSshPublicKeyRequest.Builder (2.17.0)

public static final class GetSshPublicKeyRequest.Builder extends GeneratedMessageV3.Builder<GetSshPublicKeyRequest.Builder> implements GetSshPublicKeyRequestOrBuilder

A request message for retrieving an SSH public key.

Protobuf type google.cloud.oslogin.v1.GetSshPublicKeyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetSshPublicKeyRequest build()
Returns
TypeDescription
GetSshPublicKeyRequest

buildPartial()

public GetSshPublicKeyRequest buildPartial()
Returns
TypeDescription
GetSshPublicKeyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetSshPublicKeyRequest.Builder clearName()

Required. The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

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

Returns
TypeDescription
GetSshPublicKeyRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetSshPublicKeyRequest getDefaultInstanceForType()
Returns
TypeDescription
GetSshPublicKeyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

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(GetSshPublicKeyRequest other)

public GetSshPublicKeyRequest.Builder mergeFrom(GetSshPublicKeyRequest other)
Parameter
NameDescription
otherGetSshPublicKeyRequest
Returns
TypeDescription
GetSshPublicKeyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetSshPublicKeyRequest.Builder setName(String value)

Required. The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetSshPublicKeyRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetSshPublicKeyRequest.Builder setNameBytes(ByteString value)

Required. The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetSshPublicKeyRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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