Class User.Builder (0.4.0)

public static final class User.Builder extends GeneratedMessage.Builder<User.Builder> implements UserOrBuilder

Message describing User object

Protobuf type google.cloud.ftp.v1.User

Implements

UserOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllStorageDirectoryMappings(Iterable<? extends StorageDirectoryMapping> values)

public User.Builder addAllStorageDirectoryMappings(Iterable<? extends StorageDirectoryMapping> values)

Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.

repeated .google.cloud.ftp.v1.StorageDirectoryMapping storage_directory_mappings = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.ftp.v1.StorageDirectoryMapping>
Returns
Type Description
User.Builder

addAllUserCredentials(Iterable<? extends UserCredential> values)

public User.Builder addAllUserCredentials(Iterable<? extends UserCredential> values)

Required. User credential for the user. The maximum number of user credentials is 10.

repeated .google.cloud.ftp.v1.UserCredential user_credentials = 9 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.ftp.v1.UserCredential>
Returns
Type Description
User.Builder

addStorageDirectoryMappings(StorageDirectoryMapping value)

public User.Builder addStorageDirectoryMappings(StorageDirectoryMapping value)

Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.

repeated .google.cloud.ftp.v1.StorageDirectoryMapping storage_directory_mappings = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value StorageDirectoryMapping
Returns
Type Description
User.Builder

addStorageDirectoryMappings(StorageDirectoryMapping.Builder builderForValue)

public User.Builder addStorageDirectoryMappings(StorageDirectoryMapping.Builder builderForValue)

Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.

repeated .google.cloud.ftp.v1.StorageDirectoryMapping storage_directory_mappings = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue StorageDirectoryMapping.Builder
Returns
Type Description
User.Builder

addStorageDirectoryMappings(int index, StorageDirectoryMapping value)

public User.Builder addStorageDirectoryMappings(int index, StorageDirectoryMapping value)

Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.

repeated .google.cloud.ftp.v1.StorageDirectoryMapping storage_directory_mappings = 10 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value StorageDirectoryMapping
Returns
Type Description
User.Builder

addStorageDirectoryMappings(int index, StorageDirectoryMapping.Builder builderForValue)

public User.Builder addStorageDirectoryMappings(int index, StorageDirectoryMapping.Builder builderForValue)

Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.

repeated .google.cloud.ftp.v1.StorageDirectoryMapping storage_directory_mappings = 10 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue StorageDirectoryMapping.Builder
Returns
Type Description
User.Builder

addStorageDirectoryMappingsBuilder()

public StorageDirectoryMapping.Builder addStorageDirectoryMappingsBuilder()

Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.

repeated .google.cloud.ftp.v1.StorageDirectoryMapping storage_directory_mappings = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StorageDirectoryMapping.Builder

addStorageDirectoryMappingsBuilder(int index)

public StorageDirectoryMapping.Builder addStorageDirectoryMappingsBuilder(int index)

Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.

repeated .google.cloud.ftp.v1.StorageDirectoryMapping storage_directory_mappings = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
StorageDirectoryMapping.Builder

addUserCredentials(UserCredential value)

public User.Builder addUserCredentials(UserCredential value)

Required. User credential for the user. The maximum number of user credentials is 10.

repeated .google.cloud.ftp.v1.UserCredential user_credentials = 9 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UserCredential
Returns
Type Description
User.Builder

addUserCredentials(UserCredential.Builder builderForValue)

public User.Builder addUserCredentials(UserCredential.Builder builderForValue)

Required. User credential for the user. The maximum number of user credentials is 10.

repeated .google.cloud.ftp.v1.UserCredential user_credentials = 9 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue UserCredential.Builder
Returns
Type Description
User.Builder

addUserCredentials(int index, UserCredential value)

public User.Builder addUserCredentials(int index, UserCredential value)

Required. User credential for the user. The maximum number of user credentials is 10.

repeated .google.cloud.ftp.v1.UserCredential user_credentials = 9 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value UserCredential
Returns
Type Description
User.Builder

addUserCredentials(int index, UserCredential.Builder builderForValue)

public User.Builder addUserCredentials(int index, UserCredential.Builder builderForValue)

Required. User credential for the user. The maximum number of user credentials is 10.

repeated .google.cloud.ftp.v1.UserCredential user_credentials = 9 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue UserCredential.Builder
Returns
Type Description
User.Builder

addUserCredentialsBuilder()

public UserCredential.Builder addUserCredentialsBuilder()

Required. User credential for the user. The maximum number of user credentials is 10.

repeated .google.cloud.ftp.v1.UserCredential user_credentials = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserCredential.Builder

addUserCredentialsBuilder(int index)

public UserCredential.Builder addUserCredentialsBuilder(int index)

Required. User credential for the user. The maximum number of user credentials is 10.

repeated .google.cloud.ftp.v1.UserCredential user_credentials = 9 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
UserCredential.Builder

build()

public User build()
Returns
Type Description
User

buildPartial()

public User buildPartial()
Returns
Type Description
User

clear()

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

clearCreateTime()

public User.Builder clearCreateTime()

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
User.Builder

clearCustomerServiceAccount()

public User.Builder clearCustomerServiceAccount()

Required. Service account in customer project attached to this SFTP User.

string customer_service_account = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
User.Builder

This builder for chaining.

clearLabels()

public User.Builder clearLabels()
Returns
Type Description
User.Builder

clearName()

public User.Builder clearName()

Identifier. User-friendly name via which User will be identified. projects/{project}/locations/{location}/servers/{server}/users/{user}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
User.Builder

This builder for chaining.

clearState()

public User.Builder clearState()

Output only. Tracks user creation.

.google.cloud.ftp.v1.User.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
User.Builder

This builder for chaining.

clearStorageDirectoryMappings()

public User.Builder clearStorageDirectoryMappings()

Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.

repeated .google.cloud.ftp.v1.StorageDirectoryMapping storage_directory_mappings = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
User.Builder

clearUpdateTime()

public User.Builder clearUpdateTime()

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
User.Builder

clearUserCredentials()

public User.Builder clearUserCredentials()

Required. User credential for the user. The maximum number of user credentials is 10.

repeated .google.cloud.ftp.v1.UserCredential user_credentials = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
User.Builder

clearUsername()

public User.Builder clearUsername()

Output only. [Output only] The username of the user.

string username = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
User.Builder

This builder for chaining.

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getCustomerServiceAccount()

public String getCustomerServiceAccount()

Required. Service account in customer project attached to this SFTP User.

string customer_service_account = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The customerServiceAccount.

getCustomerServiceAccountBytes()

public ByteString getCustomerServiceAccountBytes()

Required. Service account in customer project attached to this SFTP User.

string customer_service_account = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for customerServiceAccount.

getDefaultInstanceForType()

public User getDefaultInstanceForType()
Returns
Type Description
User

getDescriptorForType()

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

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Identifier. User-friendly name via which User will be identified. projects/{project}/locations/{location}/servers/{server}/users/{user}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. User-friendly name via which User will be identified. projects/{project}/locations/{location}/servers/{server}/users/{user}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getState()

public User.State getState()

Output only. Tracks user creation.

.google.cloud.ftp.v1.User.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
User.State

The state.

getStateValue()

public int getStateValue()

Output only. Tracks user creation.

.google.cloud.ftp.v1.User.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getStorageDirectoryMappings(int index)

public StorageDirectoryMapping getStorageDirectoryMappings(int index)

Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.

repeated .google.cloud.ftp.v1.StorageDirectoryMapping storage_directory_mappings = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
StorageDirectoryMapping

getStorageDirectoryMappingsBuilder(int index)

public StorageDirectoryMapping.Builder getStorageDirectoryMappingsBuilder(int index)

Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.

repeated .google.cloud.ftp.v1.StorageDirectoryMapping storage_directory_mappings = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
StorageDirectoryMapping.Builder

getStorageDirectoryMappingsBuilderList()

public List<StorageDirectoryMapping.Builder> getStorageDirectoryMappingsBuilderList()

Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.

repeated .google.cloud.ftp.v1.StorageDirectoryMapping storage_directory_mappings = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getStorageDirectoryMappingsCount()

public int getStorageDirectoryMappingsCount()

Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.

repeated .google.cloud.ftp.v1.StorageDirectoryMapping storage_directory_mappings = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getStorageDirectoryMappingsList()

public List<StorageDirectoryMapping> getStorageDirectoryMappingsList()

Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.

repeated .google.cloud.ftp.v1.StorageDirectoryMapping storage_directory_mappings = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<StorageDirectoryMapping>

getStorageDirectoryMappingsOrBuilder(int index)

public StorageDirectoryMappingOrBuilder getStorageDirectoryMappingsOrBuilder(int index)

Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.

repeated .google.cloud.ftp.v1.StorageDirectoryMapping storage_directory_mappings = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
StorageDirectoryMappingOrBuilder

getStorageDirectoryMappingsOrBuilderList()

public List<? extends StorageDirectoryMappingOrBuilder> getStorageDirectoryMappingsOrBuilderList()

Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.

repeated .google.cloud.ftp.v1.StorageDirectoryMapping storage_directory_mappings = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.ftp.v1.StorageDirectoryMappingOrBuilder>

getUpdateTime()

public Timestamp getUpdateTime()

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getUserCredentials(int index)

public UserCredential getUserCredentials(int index)

Required. User credential for the user. The maximum number of user credentials is 10.

repeated .google.cloud.ftp.v1.UserCredential user_credentials = 9 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
UserCredential

getUserCredentialsBuilder(int index)

public UserCredential.Builder getUserCredentialsBuilder(int index)

Required. User credential for the user. The maximum number of user credentials is 10.

repeated .google.cloud.ftp.v1.UserCredential user_credentials = 9 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
UserCredential.Builder

getUserCredentialsBuilderList()

public List<UserCredential.Builder> getUserCredentialsBuilderList()

Required. User credential for the user. The maximum number of user credentials is 10.

repeated .google.cloud.ftp.v1.UserCredential user_credentials = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getUserCredentialsCount()

public int getUserCredentialsCount()

Required. User credential for the user. The maximum number of user credentials is 10.

repeated .google.cloud.ftp.v1.UserCredential user_credentials = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getUserCredentialsList()

public List<UserCredential> getUserCredentialsList()

Required. User credential for the user. The maximum number of user credentials is 10.

repeated .google.cloud.ftp.v1.UserCredential user_credentials = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<UserCredential>

getUserCredentialsOrBuilder(int index)

public UserCredentialOrBuilder getUserCredentialsOrBuilder(int index)

Required. User credential for the user. The maximum number of user credentials is 10.

repeated .google.cloud.ftp.v1.UserCredential user_credentials = 9 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
UserCredentialOrBuilder

getUserCredentialsOrBuilderList()

public List<? extends UserCredentialOrBuilder> getUserCredentialsOrBuilderList()

Required. User credential for the user. The maximum number of user credentials is 10.

repeated .google.cloud.ftp.v1.UserCredential user_credentials = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.ftp.v1.UserCredentialOrBuilder>

getUsername()

public String getUsername()

Output only. [Output only] The username of the user.

string username = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

Output only. [Output only] The username of the user.

string username = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for username.

hasCreateTime()

public boolean hasCreateTime()

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public User.Builder mergeCreateTime(Timestamp value)

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
User.Builder

mergeFrom(User other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUpdateTime(Timestamp value)

public User.Builder mergeUpdateTime(Timestamp value)

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
User.Builder

putAllLabels(Map<String,String> values)

public User.Builder putAllLabels(Map<String,String> values)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
User.Builder

putLabels(String key, String value)

public User.Builder putLabels(String key, String value)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
User.Builder

removeLabels(String key)

public User.Builder removeLabels(String key)

Optional. Labels as key value pairs

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
User.Builder

removeStorageDirectoryMappings(int index)

public User.Builder removeStorageDirectoryMappings(int index)

Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.

repeated .google.cloud.ftp.v1.StorageDirectoryMapping storage_directory_mappings = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
User.Builder

removeUserCredentials(int index)

public User.Builder removeUserCredentials(int index)

Required. User credential for the user. The maximum number of user credentials is 10.

repeated .google.cloud.ftp.v1.UserCredential user_credentials = 9 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
User.Builder

setCreateTime(Timestamp value)

public User.Builder setCreateTime(Timestamp value)

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
User.Builder

setCreateTime(Timestamp.Builder builderForValue)

public User.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Create time stamp

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
User.Builder

setCustomerServiceAccount(String value)

public User.Builder setCustomerServiceAccount(String value)

Required. Service account in customer project attached to this SFTP User.

string customer_service_account = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The customerServiceAccount to set.

Returns
Type Description
User.Builder

This builder for chaining.

setCustomerServiceAccountBytes(ByteString value)

public User.Builder setCustomerServiceAccountBytes(ByteString value)

Required. Service account in customer project attached to this SFTP User.

string customer_service_account = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for customerServiceAccount to set.

Returns
Type Description
User.Builder

This builder for chaining.

setName(String value)

public User.Builder setName(String value)

Identifier. User-friendly name via which User will be identified. projects/{project}/locations/{location}/servers/{server}/users/{user}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
User.Builder

This builder for chaining.

setNameBytes(ByteString value)

public User.Builder setNameBytes(ByteString value)

Identifier. User-friendly name via which User will be identified. projects/{project}/locations/{location}/servers/{server}/users/{user}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
User.Builder

This builder for chaining.

setState(User.State value)

public User.Builder setState(User.State value)

Output only. Tracks user creation.

.google.cloud.ftp.v1.User.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value User.State

The state to set.

Returns
Type Description
User.Builder

This builder for chaining.

setStateValue(int value)

public User.Builder setStateValue(int value)

Output only. Tracks user creation.

.google.cloud.ftp.v1.User.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
User.Builder

This builder for chaining.

setStorageDirectoryMappings(int index, StorageDirectoryMapping value)

public User.Builder setStorageDirectoryMappings(int index, StorageDirectoryMapping value)

Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.

repeated .google.cloud.ftp.v1.StorageDirectoryMapping storage_directory_mappings = 10 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value StorageDirectoryMapping
Returns
Type Description
User.Builder

setStorageDirectoryMappings(int index, StorageDirectoryMapping.Builder builderForValue)

public User.Builder setStorageDirectoryMappings(int index, StorageDirectoryMapping.Builder builderForValue)

Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server.

repeated .google.cloud.ftp.v1.StorageDirectoryMapping storage_directory_mappings = 10 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue StorageDirectoryMapping.Builder
Returns
Type Description
User.Builder

setUpdateTime(Timestamp value)

public User.Builder setUpdateTime(Timestamp value)

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
User.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public User.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Update time stamp

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
User.Builder

setUserCredentials(int index, UserCredential value)

public User.Builder setUserCredentials(int index, UserCredential value)

Required. User credential for the user. The maximum number of user credentials is 10.

repeated .google.cloud.ftp.v1.UserCredential user_credentials = 9 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value UserCredential
Returns
Type Description
User.Builder

setUserCredentials(int index, UserCredential.Builder builderForValue)

public User.Builder setUserCredentials(int index, UserCredential.Builder builderForValue)

Required. User credential for the user. The maximum number of user credentials is 10.

repeated .google.cloud.ftp.v1.UserCredential user_credentials = 9 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue UserCredential.Builder
Returns
Type Description
User.Builder

setUsername(String value)

public User.Builder setUsername(String value)

Output only. [Output only] The username of the user.

string username = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The username to set.

Returns
Type Description
User.Builder

This builder for chaining.

setUsernameBytes(ByteString value)

public User.Builder setUsernameBytes(ByteString value)

Output only. [Output only] The username of the user.

string username = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for username to set.

Returns
Type Description
User.Builder

This builder for chaining.