Package com.google.cloud.alloydb.v1alpha
Interface UserOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
User
,User.Builder
public interface UserOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDatabaseRoles(int index)
Optional.com.google.protobuf.ByteString
getDatabaseRolesBytes(int index)
Optional.int
getDatabaseRolesCount()
Optional.List<String>
getDatabaseRolesList()
Optional.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.String
getPassword()
Input only.com.google.protobuf.ByteString
getPasswordBytes()
Input only.User.UserType
getUserType()
Optional.int
getUserTypeValue()
Optional.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
Output only. Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
Output only. Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The bytes for name.
-
getPassword
String getPassword()
Input only. Password for the user.
string password = 2 [(.google.api.field_behavior) = INPUT_ONLY];
- Returns:
- The password.
-
getPasswordBytes
com.google.protobuf.ByteString getPasswordBytes()
Input only. Password for the user.
string password = 2 [(.google.api.field_behavior) = INPUT_ONLY];
- Returns:
- The bytes for password.
-
getDatabaseRolesList
List<String> getDatabaseRolesList()
Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
repeated string database_roles = 4 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- A list containing the databaseRoles.
-
getDatabaseRolesCount
int getDatabaseRolesCount()
Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
repeated string database_roles = 4 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The count of databaseRoles.
-
getDatabaseRoles
String getDatabaseRoles(int index)
Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
repeated string database_roles = 4 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
index
- The index of the element to return.- Returns:
- The databaseRoles at the given index.
-
getDatabaseRolesBytes
com.google.protobuf.ByteString getDatabaseRolesBytes(int index)
Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
repeated string database_roles = 4 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the databaseRoles at the given index.
-
getUserTypeValue
int getUserTypeValue()
Optional. Type of this user.
.google.cloud.alloydb.v1alpha.User.UserType user_type = 5 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The enum numeric value on the wire for userType.
-
getUserType
User.UserType getUserType()
Optional. Type of this user.
.google.cloud.alloydb.v1alpha.User.UserType user_type = 5 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The userType.
-
-