Class User (0.4.0)

public final class User extends GeneratedMessage implements UserOrBuilder

Message describing User object

Protobuf type google.cloud.ftp.v1.User

Implements

UserOrBuilder

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

CUSTOMER_SERVICE_ACCOUNT_FIELD_NUMBER

public static final int CUSTOMER_SERVICE_ACCOUNT_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

STORAGE_DIRECTORY_MAPPINGS_FIELD_NUMBER

public static final int STORAGE_DIRECTORY_MAPPINGS_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

USERNAME_FIELD_NUMBER

public static final int USERNAME_FIELD_NUMBER
Field Value
Type Description
int

USER_CREDENTIALS_FIELD_NUMBER

public static final int USER_CREDENTIALS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static User getDefaultInstance()
Returns
Type Description
User

getDescriptor()

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

newBuilder()

public static User.Builder newBuilder()
Returns
Type Description
User.Builder

newBuilder(User prototype)

public static User.Builder newBuilder(User prototype)
Parameter
Name Description
prototype User
Returns
Type Description
User.Builder

parseDelimitedFrom(InputStream input)

public static User parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
User
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static User parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
User
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static User parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
User
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static User parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
User
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static User parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
User
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static User parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
User
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static User parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
User
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static User parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
User
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static User parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
User
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static User parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
User
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static User parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
User
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static User parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
User
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<User> parser()
Returns
Type Description
Parser<User>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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

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

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.

getParserForType()

public Parser<User> getParserForType()
Returns
Type Description
Parser<User>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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

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.

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

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected User.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
User.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException