Package com.google.cloud.alloydb.v1beta
Class User.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<User.Builder>
com.google.cloud.alloydb.v1beta.User.Builder
- All Implemented Interfaces:
UserOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- User
public static final class User.Builder
extends com.google.protobuf.GeneratedMessage.Builder<User.Builder>
implements UserOrBuilder
Message describing User object.Protobuf type
google.cloud.alloydb.v1beta.User-
Method Summary
Modifier and TypeMethodDescriptionaddAllDatabaseRoles(Iterable<String> values) Optional.addDatabaseRoles(String value) Optional.addDatabaseRolesBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Input only.Output only.Input only.Optional.getDatabaseRoles(int index) Optional.com.google.protobuf.ByteStringgetDatabaseRolesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanInput only.getName()Output only.com.google.protobuf.ByteStringOutput only.Input only.com.google.protobuf.ByteStringInput only.Optional.intOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDatabaseRoles(int index, String value) Optional.setKeepExtraRoles(boolean value) Input only.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setPassword(String value) Input only.setPasswordBytes(com.google.protobuf.ByteString value) Input only.setUserType(User.UserType value) Optional.setUserTypeValue(int value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<User.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<User.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<User.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<User.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<User.Builder>
-
mergeFrom
public User.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<User.Builder>- Throws:
IOException
-
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];- Specified by:
getNamein interfaceUserOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfaceUserOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getPassword
Input only. Password for the user.
string password = 2 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getPasswordin interfaceUserOrBuilder- Returns:
- The password.
-
getPasswordBytes
public com.google.protobuf.ByteString getPasswordBytes()Input only. Password for the user.
string password = 2 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getPasswordBytesin interfaceUserOrBuilder- Returns:
- The bytes for password.
-
setPassword
Input only. Password for the user.
string password = 2 [(.google.api.field_behavior) = INPUT_ONLY];- Parameters:
value- The password to set.- Returns:
- This builder for chaining.
-
clearPassword
Input only. Password for the user.
string password = 2 [(.google.api.field_behavior) = INPUT_ONLY];- Returns:
- This builder for chaining.
-
setPasswordBytes
Input only. Password for the user.
string password = 2 [(.google.api.field_behavior) = INPUT_ONLY];- Parameters:
value- The bytes for password to set.- Returns:
- This builder for chaining.
-
getDatabaseRolesList
public 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];- Specified by:
getDatabaseRolesListin interfaceUserOrBuilder- Returns:
- A list containing the databaseRoles.
-
getDatabaseRolesCount
public 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];- Specified by:
getDatabaseRolesCountin interfaceUserOrBuilder- Returns:
- The count of databaseRoles.
-
getDatabaseRoles
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];- Specified by:
getDatabaseRolesin interfaceUserOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The databaseRoles at the given index.
-
getDatabaseRolesBytes
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];- Specified by:
getDatabaseRolesBytesin interfaceUserOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the databaseRoles at the given index.
-
setDatabaseRoles
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 to set the value at.value- The databaseRoles to set.- Returns:
- This builder for chaining.
-
addDatabaseRoles
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:
value- The databaseRoles to add.- Returns:
- This builder for chaining.
-
addAllDatabaseRoles
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:
values- The databaseRoles to add.- Returns:
- This builder for chaining.
-
clearDatabaseRoles
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:
- This builder for chaining.
-
addDatabaseRolesBytes
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:
value- The bytes of the databaseRoles to add.- Returns:
- This builder for chaining.
-
getUserTypeValue
public int getUserTypeValue()Optional. Type of this user.
.google.cloud.alloydb.v1beta.User.UserType user_type = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUserTypeValuein interfaceUserOrBuilder- Returns:
- The enum numeric value on the wire for userType.
-
setUserTypeValue
Optional. Type of this user.
.google.cloud.alloydb.v1beta.User.UserType user_type = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for userType to set.- Returns:
- This builder for chaining.
-
getUserType
Optional. Type of this user.
.google.cloud.alloydb.v1beta.User.UserType user_type = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUserTypein interfaceUserOrBuilder- Returns:
- The userType.
-
setUserType
Optional. Type of this user.
.google.cloud.alloydb.v1beta.User.UserType user_type = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The userType to set.- Returns:
- This builder for chaining.
-
clearUserType
Optional. Type of this user.
.google.cloud.alloydb.v1beta.User.UserType user_type = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getKeepExtraRoles
public 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];- Specified by:
getKeepExtraRolesin interfaceUserOrBuilder- Returns:
- The keepExtraRoles.
-
setKeepExtraRoles
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];- Parameters:
value- The keepExtraRoles to set.- Returns:
- This builder for chaining.
-
clearKeepExtraRoles
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];- Returns:
- This builder for chaining.
-