Class CreateSSHKeyRequest.Builder (0.46.0)

public static final class CreateSSHKeyRequest.Builder extends GeneratedMessageV3.Builder<CreateSSHKeyRequest.Builder> implements CreateSSHKeyRequestOrBuilder

Message for registering a public SSH key in a project.

Protobuf type google.cloud.baremetalsolution.v2.CreateSSHKeyRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateSSHKeyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateSSHKeyRequest.Builder
Overrides

build()

public CreateSSHKeyRequest build()
Returns
Type Description
CreateSSHKeyRequest

buildPartial()

public CreateSSHKeyRequest buildPartial()
Returns
Type Description
CreateSSHKeyRequest

clear()

public CreateSSHKeyRequest.Builder clear()
Returns
Type Description
CreateSSHKeyRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateSSHKeyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateSSHKeyRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateSSHKeyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateSSHKeyRequest.Builder
Overrides

clearParent()

public CreateSSHKeyRequest.Builder clearParent()

Required. The parent containing the SSH keys.

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

Returns
Type Description
CreateSSHKeyRequest.Builder

This builder for chaining.

clearSshKey()

public CreateSSHKeyRequest.Builder clearSshKey()

Required. The SSH key to register.

.google.cloud.baremetalsolution.v2.SSHKey ssh_key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateSSHKeyRequest.Builder

clearSshKeyId()

public CreateSSHKeyRequest.Builder clearSshKeyId()

Required. The ID to use for the key, which will become the final component of the key's resource name.

This value must match the regex: [a-zA-Z0-9@.\-_]{1,64}

string ssh_key_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateSSHKeyRequest.Builder

This builder for chaining.

clone()

public CreateSSHKeyRequest.Builder clone()
Returns
Type Description
CreateSSHKeyRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateSSHKeyRequest getDefaultInstanceForType()
Returns
Type Description
CreateSSHKeyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. The parent containing the SSH keys.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent containing the SSH keys.

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

Returns
Type Description
ByteString

The bytes for parent.

getSshKey()

public SSHKey getSshKey()

Required. The SSH key to register.

.google.cloud.baremetalsolution.v2.SSHKey ssh_key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SSHKey

The sshKey.

getSshKeyBuilder()

public SSHKey.Builder getSshKeyBuilder()

Required. The SSH key to register.

.google.cloud.baremetalsolution.v2.SSHKey ssh_key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SSHKey.Builder

getSshKeyId()

public String getSshKeyId()

Required. The ID to use for the key, which will become the final component of the key's resource name.

This value must match the regex: [a-zA-Z0-9@.\-_]{1,64}

string ssh_key_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The sshKeyId.

getSshKeyIdBytes()

public ByteString getSshKeyIdBytes()

Required. The ID to use for the key, which will become the final component of the key's resource name.

This value must match the regex: [a-zA-Z0-9@.\-_]{1,64}

string ssh_key_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for sshKeyId.

getSshKeyOrBuilder()

public SSHKeyOrBuilder getSshKeyOrBuilder()

Required. The SSH key to register.

.google.cloud.baremetalsolution.v2.SSHKey ssh_key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SSHKeyOrBuilder

hasSshKey()

public boolean hasSshKey()

Required. The SSH key to register.

.google.cloud.baremetalsolution.v2.SSHKey ssh_key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the sshKey field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateSSHKeyRequest other)

public CreateSSHKeyRequest.Builder mergeFrom(CreateSSHKeyRequest other)
Parameter
Name Description
other CreateSSHKeyRequest
Returns
Type Description
CreateSSHKeyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateSSHKeyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateSSHKeyRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateSSHKeyRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateSSHKeyRequest.Builder
Overrides

mergeSshKey(SSHKey value)

public CreateSSHKeyRequest.Builder mergeSshKey(SSHKey value)

Required. The SSH key to register.

.google.cloud.baremetalsolution.v2.SSHKey ssh_key = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SSHKey
Returns
Type Description
CreateSSHKeyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateSSHKeyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateSSHKeyRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateSSHKeyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateSSHKeyRequest.Builder
Overrides

setParent(String value)

public CreateSSHKeyRequest.Builder setParent(String value)

Required. The parent containing the SSH keys.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateSSHKeyRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateSSHKeyRequest.Builder setParentBytes(ByteString value)

Required. The parent containing the SSH keys.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateSSHKeyRequest.Builder

This builder for chaining.

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

public CreateSSHKeyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateSSHKeyRequest.Builder
Overrides

setSshKey(SSHKey value)

public CreateSSHKeyRequest.Builder setSshKey(SSHKey value)

Required. The SSH key to register.

.google.cloud.baremetalsolution.v2.SSHKey ssh_key = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SSHKey
Returns
Type Description
CreateSSHKeyRequest.Builder

setSshKey(SSHKey.Builder builderForValue)

public CreateSSHKeyRequest.Builder setSshKey(SSHKey.Builder builderForValue)

Required. The SSH key to register.

.google.cloud.baremetalsolution.v2.SSHKey ssh_key = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue SSHKey.Builder
Returns
Type Description
CreateSSHKeyRequest.Builder

setSshKeyId(String value)

public CreateSSHKeyRequest.Builder setSshKeyId(String value)

Required. The ID to use for the key, which will become the final component of the key's resource name.

This value must match the regex: [a-zA-Z0-9@.\-_]{1,64}

string ssh_key_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The sshKeyId to set.

Returns
Type Description
CreateSSHKeyRequest.Builder

This builder for chaining.

setSshKeyIdBytes(ByteString value)

public CreateSSHKeyRequest.Builder setSshKeyIdBytes(ByteString value)

Required. The ID to use for the key, which will become the final component of the key's resource name.

This value must match the regex: [a-zA-Z0-9@.\-_]{1,64}

string ssh_key_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for sshKeyId to set.

Returns
Type Description
CreateSSHKeyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateSSHKeyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateSSHKeyRequest.Builder
Overrides