Class ServerCredential.Builder (0.4.0)

public static final class ServerCredential.Builder extends GeneratedMessage.Builder<ServerCredential.Builder> implements ServerCredentialOrBuilder

Represents credentials of an FTP Server.

Protobuf type google.cloud.ftp.v1.ServerCredential

Static Methods

getDescriptor()

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

Methods

build()

public ServerCredential build()
Returns
Type Description
ServerCredential

buildPartial()

public ServerCredential buildPartial()
Returns
Type Description
ServerCredential

clear()

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

clearAsymmetricAlgorithm()

public ServerCredential.Builder clearAsymmetricAlgorithm()

Output only. Asymmetric algorithm used by the public key. Possible values (can be expanded in future):

  • ssh-ed25519

string asymmetric_algorithm = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServerCredential.Builder

This builder for chaining.

clearFingerprint()

public ServerCredential.Builder clearFingerprint()

Output only. The fingerprint is a hash of the public key, and is displayed when clients access the server for the first time to verify the server's identity.

string fingerprint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServerCredential.Builder

This builder for chaining.

getAsymmetricAlgorithm()

public String getAsymmetricAlgorithm()

Output only. Asymmetric algorithm used by the public key. Possible values (can be expanded in future):

  • ssh-ed25519

string asymmetric_algorithm = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The asymmetricAlgorithm.

getAsymmetricAlgorithmBytes()

public ByteString getAsymmetricAlgorithmBytes()

Output only. Asymmetric algorithm used by the public key. Possible values (can be expanded in future):

  • ssh-ed25519

string asymmetric_algorithm = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for asymmetricAlgorithm.

getDefaultInstanceForType()

public ServerCredential getDefaultInstanceForType()
Returns
Type Description
ServerCredential

getDescriptorForType()

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

getFingerprint()

public String getFingerprint()

Output only. The fingerprint is a hash of the public key, and is displayed when clients access the server for the first time to verify the server's identity.

string fingerprint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The fingerprint.

getFingerprintBytes()

public ByteString getFingerprintBytes()

Output only. The fingerprint is a hash of the public key, and is displayed when clients access the server for the first time to verify the server's identity.

string fingerprint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for fingerprint.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServerCredential other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAsymmetricAlgorithm(String value)

public ServerCredential.Builder setAsymmetricAlgorithm(String value)

Output only. Asymmetric algorithm used by the public key. Possible values (can be expanded in future):

  • ssh-ed25519

string asymmetric_algorithm = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The asymmetricAlgorithm to set.

Returns
Type Description
ServerCredential.Builder

This builder for chaining.

setAsymmetricAlgorithmBytes(ByteString value)

public ServerCredential.Builder setAsymmetricAlgorithmBytes(ByteString value)

Output only. Asymmetric algorithm used by the public key. Possible values (can be expanded in future):

  • ssh-ed25519

string asymmetric_algorithm = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for asymmetricAlgorithm to set.

Returns
Type Description
ServerCredential.Builder

This builder for chaining.

setFingerprint(String value)

public ServerCredential.Builder setFingerprint(String value)

Output only. The fingerprint is a hash of the public key, and is displayed when clients access the server for the first time to verify the server's identity.

string fingerprint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The fingerprint to set.

Returns
Type Description
ServerCredential.Builder

This builder for chaining.

setFingerprintBytes(ByteString value)

public ServerCredential.Builder setFingerprintBytes(ByteString value)

Output only. The fingerprint is a hash of the public key, and is displayed when clients access the server for the first time to verify the server's identity.

string fingerprint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for fingerprint to set.

Returns
Type Description
ServerCredential.Builder

This builder for chaining.