public static final class UserCredential.Builder extends GeneratedMessage.Builder<UserCredential.Builder> implements UserCredentialOrBuilderMessage describing UserCredential object
Protobuf type google.cloud.ftp.v1.UserCredential
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > UserCredential.BuilderImplements
UserCredentialOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public UserCredential.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
UserCredential.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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.TypeThe 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 |
intThe 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 |
StringThe 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 |
ByteStringThe bytes for sshPublicKeyBody to set. |
| Returns | |
|---|---|
| Type | Description |
UserCredential.Builder |
This builder for chaining. |