Class AzureSshConfig.Builder (0.38.0)

public static final class AzureSshConfig.Builder extends GeneratedMessageV3.Builder<AzureSshConfig.Builder> implements AzureSshConfigOrBuilder

SSH configuration for Azure resources.

Protobuf type google.cloud.gkemulticloud.v1.AzureSshConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AzureSshConfig build()
Returns
TypeDescription
AzureSshConfig

buildPartial()

public AzureSshConfig buildPartial()
Returns
TypeDescription
AzureSshConfig

clear()

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

clearAuthorizedKey()

public AzureSshConfig.Builder clearAuthorizedKey()

Required. The SSH public key data for VMs managed by Anthos. This accepts the authorized_keys file format used in OpenSSH according to the sshd(8) manual page.

string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AzureSshConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAuthorizedKey()

public String getAuthorizedKey()

Required. The SSH public key data for VMs managed by Anthos. This accepts the authorized_keys file format used in OpenSSH according to the sshd(8) manual page.

string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The authorizedKey.

getAuthorizedKeyBytes()

public ByteString getAuthorizedKeyBytes()

Required. The SSH public key data for VMs managed by Anthos. This accepts the authorized_keys file format used in OpenSSH according to the sshd(8) manual page.

string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for authorizedKey.

getDefaultInstanceForType()

public AzureSshConfig getDefaultInstanceForType()
Returns
TypeDescription
AzureSshConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AzureSshConfig other)

public AzureSshConfig.Builder mergeFrom(AzureSshConfig other)
Parameter
NameDescription
otherAzureSshConfig
Returns
TypeDescription
AzureSshConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAuthorizedKey(String value)

public AzureSshConfig.Builder setAuthorizedKey(String value)

Required. The SSH public key data for VMs managed by Anthos. This accepts the authorized_keys file format used in OpenSSH according to the sshd(8) manual page.

string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The authorizedKey to set.

Returns
TypeDescription
AzureSshConfig.Builder

This builder for chaining.

setAuthorizedKeyBytes(ByteString value)

public AzureSshConfig.Builder setAuthorizedKeyBytes(ByteString value)

Required. The SSH public key data for VMs managed by Anthos. This accepts the authorized_keys file format used in OpenSSH according to the sshd(8) manual page.

string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for authorizedKey to set.

Returns
TypeDescription
AzureSshConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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