Class UserCredential.Builder (0.4.0)

public static final class UserCredential.Builder extends GeneratedMessage.Builder<UserCredential.Builder> implements UserCredentialOrBuilder

Message describing UserCredential object

Protobuf type google.cloud.ftp.v1.UserCredential

Static Methods

getDescriptor()

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

Methods

build()

public UserCredential build()
Returns
Type Description
UserCredential

buildPartial()

public UserCredential buildPartial()
Returns
Type Description
UserCredential

clear()

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

clearCredentialName()

public UserCredential.Builder clearCredentialName()

Required. Name of the user credential.

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

Returns
Type Description
UserCredential.Builder

This builder for chaining.

clearCredentialType()

public UserCredential.Builder clearCredentialType()

Required. Type of credential.

.google.cloud.ftp.v1.UserCredential.Type credential_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserCredential.Builder

This builder for chaining.

clearSshPublicKeyBody()

public UserCredential.Builder clearSshPublicKeyBody()

Optional. SSH public key body in OpenSSH format. Example: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ..."

string ssh_public_key_body = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserCredential.Builder

This builder for chaining.

getCredentialName()

public String getCredentialName()

Required. Name of the user credential.

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

Returns
Type Description
String

The credentialName.

getCredentialNameBytes()

public ByteString getCredentialNameBytes()

Required. Name of the user credential.

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

Returns
Type Description
ByteString

The bytes for credentialName.

getCredentialType()

public UserCredential.Type getCredentialType()

Required. Type of credential.

.google.cloud.ftp.v1.UserCredential.Type credential_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserCredential.Type

The credentialType.

getCredentialTypeValue()

public int getCredentialTypeValue()

Required. Type of credential.

.google.cloud.ftp.v1.UserCredential.Type credential_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for credentialType.

getDefaultInstanceForType()

public UserCredential getDefaultInstanceForType()
Returns
Type Description
UserCredential

getDescriptorForType()

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

getSshPublicKeyBody()

public String getSshPublicKeyBody()

Optional. SSH public key body in OpenSSH format. Example: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ..."

string ssh_public_key_body = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The sshPublicKeyBody.

getSshPublicKeyBodyBytes()

public ByteString getSshPublicKeyBodyBytes()

Optional. SSH public key body in OpenSSH format. Example: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ..."

string ssh_public_key_body = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for sshPublicKeyBody.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UserCredential other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCredentialName(String value)

public UserCredential.Builder setCredentialName(String value)

Required. Name of the user credential.

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

Parameter
Name Description
value String

The credentialName to set.

Returns
Type Description
UserCredential.Builder

This builder for chaining.

setCredentialNameBytes(ByteString value)

public UserCredential.Builder setCredentialNameBytes(ByteString value)

Required. Name of the user credential.

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

Parameter
Name Description
value ByteString

The bytes for credentialName to set.

Returns
Type Description
UserCredential.Builder

This builder for chaining.

setCredentialType(UserCredential.Type value)

public UserCredential.Builder setCredentialType(UserCredential.Type value)

Required. Type of credential.

.google.cloud.ftp.v1.UserCredential.Type credential_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UserCredential.Type

The credentialType to set.

Returns
Type Description
UserCredential.Builder

This builder for chaining.

setCredentialTypeValue(int value)

public UserCredential.Builder setCredentialTypeValue(int value)

Required. Type of credential.

.google.cloud.ftp.v1.UserCredential.Type credential_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for credentialType to set.

Returns
Type Description
UserCredential.Builder

This builder for chaining.

setSshPublicKeyBody(String value)

public UserCredential.Builder setSshPublicKeyBody(String value)

Optional. SSH public key body in OpenSSH format. Example: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ..."

string ssh_public_key_body = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The sshPublicKeyBody to set.

Returns
Type Description
UserCredential.Builder

This builder for chaining.

setSshPublicKeyBodyBytes(ByteString value)

public UserCredential.Builder setSshPublicKeyBodyBytes(ByteString value)

Optional. SSH public key body in OpenSSH format. Example: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ..."

string ssh_public_key_body = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for sshPublicKeyBody to set.

Returns
Type Description
UserCredential.Builder

This builder for chaining.