Class CreateUserRequest.Builder (0.30.0)

public static final class CreateUserRequest.Builder extends GeneratedMessageV3.Builder<CreateUserRequest.Builder> implements CreateUserRequestOrBuilder

Message for creating a User

Protobuf type google.cloud.alloydb.v1.CreateUserRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateUserRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateUserRequest.Builder
Overrides

build()

public CreateUserRequest build()
Returns
TypeDescription
CreateUserRequest

buildPartial()

public CreateUserRequest buildPartial()
Returns
TypeDescription
CreateUserRequest

clear()

public CreateUserRequest.Builder clear()
Returns
TypeDescription
CreateUserRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateUserRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateUserRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateUserRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateUserRequest.Builder
Overrides

clearParent()

public CreateUserRequest.Builder clearParent()

Required. Value for parent.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
CreateUserRequest.Builder

This builder for chaining.

clearRequestId()

public CreateUserRequest.Builder clearRequestId()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CreateUserRequest.Builder

This builder for chaining.

clearUser()

public CreateUserRequest.Builder clearUser()

Required. The resource being created

.google.cloud.alloydb.v1.User user = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateUserRequest.Builder

clearUserId()

public CreateUserRequest.Builder clearUserId()

Required. ID of the requesting object.

string user_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateUserRequest.Builder

This builder for chaining.

clearValidateOnly()

public CreateUserRequest.Builder clearValidateOnly()

Optional. If set, the backend validates the request, but doesn't actually execute it.

bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CreateUserRequest.Builder

This builder for chaining.

clone()

public CreateUserRequest.Builder clone()
Returns
TypeDescription
CreateUserRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateUserRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateUserRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. Value for parent.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Value for parent.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for requestId.

getUser()

public User getUser()

Required. The resource being created

.google.cloud.alloydb.v1.User user = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
User

The user.

getUserBuilder()

public User.Builder getUserBuilder()

Required. The resource being created

.google.cloud.alloydb.v1.User user = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
User.Builder

getUserId()

public String getUserId()

Required. ID of the requesting object.

string user_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The userId.

getUserIdBytes()

public ByteString getUserIdBytes()

Required. ID of the requesting object.

string user_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for userId.

getUserOrBuilder()

public UserOrBuilder getUserOrBuilder()

Required. The resource being created

.google.cloud.alloydb.v1.User user = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UserOrBuilder

getValidateOnly()

public boolean getValidateOnly()

Optional. If set, the backend validates the request, but doesn't actually execute it.

bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The validateOnly.

hasUser()

public boolean hasUser()

Required. The resource being created

.google.cloud.alloydb.v1.User user = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the user field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateUserRequest other)

public CreateUserRequest.Builder mergeFrom(CreateUserRequest other)
Parameter
NameDescription
otherCreateUserRequest
Returns
TypeDescription
CreateUserRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateUserRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateUserRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateUserRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateUserRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateUserRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateUserRequest.Builder
Overrides

mergeUser(User value)

public CreateUserRequest.Builder mergeUser(User value)

Required. The resource being created

.google.cloud.alloydb.v1.User user = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueUser
Returns
TypeDescription
CreateUserRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateUserRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateUserRequest.Builder
Overrides

setParent(String value)

public CreateUserRequest.Builder setParent(String value)

Required. Value for parent.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateUserRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateUserRequest.Builder setParentBytes(ByteString value)

Required. Value for parent.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateUserRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateUserRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateUserRequest.Builder
Overrides

setRequestId(String value)

public CreateUserRequest.Builder setRequestId(String value)

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
CreateUserRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateUserRequest.Builder setRequestIdBytes(ByteString value)

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
CreateUserRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateUserRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateUserRequest.Builder
Overrides

setUser(User value)

public CreateUserRequest.Builder setUser(User value)

Required. The resource being created

.google.cloud.alloydb.v1.User user = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueUser
Returns
TypeDescription
CreateUserRequest.Builder

setUser(User.Builder builderForValue)

public CreateUserRequest.Builder setUser(User.Builder builderForValue)

Required. The resource being created

.google.cloud.alloydb.v1.User user = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueUser.Builder
Returns
TypeDescription
CreateUserRequest.Builder

setUserId(String value)

public CreateUserRequest.Builder setUserId(String value)

Required. ID of the requesting object.

string user_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The userId to set.

Returns
TypeDescription
CreateUserRequest.Builder

This builder for chaining.

setUserIdBytes(ByteString value)

public CreateUserRequest.Builder setUserIdBytes(ByteString value)

Required. ID of the requesting object.

string user_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for userId to set.

Returns
TypeDescription
CreateUserRequest.Builder

This builder for chaining.

setValidateOnly(boolean value)

public CreateUserRequest.Builder setValidateOnly(boolean value)

Optional. If set, the backend validates the request, but doesn't actually execute it.

bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
CreateUserRequest.Builder

This builder for chaining.