public final class User extends com.google.protobuf.GeneratedMessageV3 implements UserOrBuilder
Message describing User object.Protobuf type
google.cloud.alloydb.v1.User| Modifier and Type | Class and Description |
|---|---|
static class |
User.Builder
Message describing User object.
|
static class |
User.UserType
Enum that details the user type.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DATABASE_ROLES_FIELD_NUMBER |
static int |
KEEP_EXTRA_ROLES_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PASSWORD_FIELD_NUMBER |
static int |
USER_TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDatabaseRoles(int index)
Optional.
|
com.google.protobuf.ByteString |
getDatabaseRolesBytes(int index)
Optional.
|
int |
getDatabaseRolesCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getDatabaseRolesList()
Optional.
|
static User |
getDefaultInstance() |
User |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getKeepExtraRoles()
Input only.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
com.google.protobuf.Parser<User> |
getParserForType() |
String |
getPassword()
Input only.
|
com.google.protobuf.ByteString |
getPasswordBytes()
Input only.
|
int |
getSerializedSize() |
User.UserType |
getUserType()
Optional.
|
int |
getUserTypeValue()
Optional.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static User.Builder |
newBuilder() |
static User.Builder |
newBuilder(User prototype) |
User.Builder |
newBuilderForType() |
protected User.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static User |
parseDelimitedFrom(InputStream input) |
static User |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static User |
parseFrom(byte[] data) |
static User |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static User |
parseFrom(ByteBuffer data) |
static User |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static User |
parseFrom(com.google.protobuf.ByteString data) |
static User |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static User |
parseFrom(com.google.protobuf.CodedInputStream input) |
static User |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static User |
parseFrom(InputStream input) |
static User |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<User> |
parser() |
User.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int PASSWORD_FIELD_NUMBER
public static final int DATABASE_ROLES_FIELD_NUMBER
public static final int USER_TYPE_FIELD_NUMBER
public static final int KEEP_EXTRA_ROLES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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];getName in interface UserOrBuilderpublic 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];getNameBytes in interface UserOrBuilderpublic String getPassword()
Input only. Password for the user.
string password = 2 [(.google.api.field_behavior) = INPUT_ONLY];getPassword in interface UserOrBuilderpublic com.google.protobuf.ByteString getPasswordBytes()
Input only. Password for the user.
string password = 2 [(.google.api.field_behavior) = INPUT_ONLY];getPasswordBytes in interface UserOrBuilderpublic com.google.protobuf.ProtocolStringList 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];getDatabaseRolesList in interface UserOrBuilderpublic 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];getDatabaseRolesCount in interface UserOrBuilderpublic 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];getDatabaseRoles in interface UserOrBuilderindex - The index of the element to return.public 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];getDatabaseRolesBytes in interface UserOrBuilderindex - The index of the value to return.public int getUserTypeValue()
Optional. Type of this user.
.google.cloud.alloydb.v1.User.UserType user_type = 5 [(.google.api.field_behavior) = OPTIONAL];
getUserTypeValue in interface UserOrBuilderpublic User.UserType getUserType()
Optional. Type of this user.
.google.cloud.alloydb.v1.User.UserType user_type = 5 [(.google.api.field_behavior) = OPTIONAL];
getUserType in interface UserOrBuilderpublic boolean getKeepExtraRoles()
Input only. If the user already exists and it has additional roles, keep them granted.
bool keep_extra_roles = 6 [(.google.api.field_behavior) = INPUT_ONLY];getKeepExtraRoles in interface UserOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static User parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static User parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static User parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static User parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static User parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static User parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static User parseFrom(InputStream input) throws IOException
IOExceptionpublic static User parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static User parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static User parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static User parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static User parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic User.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static User.Builder newBuilder()
public static User.Builder newBuilder(User prototype)
public User.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected User.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static User getDefaultInstance()
public static com.google.protobuf.Parser<User> parser()
public com.google.protobuf.Parser<User> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public User getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.