Class CreateSSHKeyRequest.Builder (0.36.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateSSHKeyRequest build()
Returns
TypeDescription
CreateSSHKeyRequest

buildPartial()

public CreateSSHKeyRequest buildPartial()
Returns
TypeDescription
CreateSSHKeyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateSSHKeyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CreateSSHKeyRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateSSHKeyRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateSSHKeyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the sshKey field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateSSHKeyRequest other)

public CreateSSHKeyRequest.Builder mergeFrom(CreateSSHKeyRequest other)
Parameter
NameDescription
otherCreateSSHKeyRequest
Returns
TypeDescription
CreateSSHKeyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateSSHKeyRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueSSHKey
Returns
TypeDescription
CreateSSHKeyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateSSHKeyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSSHKey
Returns
TypeDescription
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
NameDescription
builderForValueSSHKey.Builder
Returns
TypeDescription
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
NameDescription
valueString

The sshKeyId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for sshKeyId to set.

Returns
TypeDescription
CreateSSHKeyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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