public static final class CreateUserRequest.Builder extends GeneratedMessageV3.Builder<CreateUserRequest.Builder> implements CreateUserRequestOrBuilder
Message for creating a User
Protobuf type google.cloud.alloydb.v1alpha.CreateUserRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateUserRequest.BuilderImplements
CreateUserRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateUserRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateUserRequest.Builder |
build()
public CreateUserRequest build()
Returns | |
---|---|
Type | Description |
CreateUserRequest |
buildPartial()
public CreateUserRequest buildPartial()
Returns | |
---|---|
Type | Description |
CreateUserRequest |
clear()
public CreateUserRequest.Builder clear()
Returns | |
---|---|
Type | Description |
CreateUserRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public CreateUserRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
CreateUserRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateUserRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
CreateUserRequest.Builder |
clearParent()
public CreateUserRequest.Builder clearParent()
Required. Value for parent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
CreateUserRequest.Builder |
This builder for chaining. |
clearUser()
public CreateUserRequest.Builder clearUser()
Required. The resource being created
.google.cloud.alloydb.v1alpha.User user = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CreateUserRequest.Builder |
clearUserId()
public CreateUserRequest.Builder clearUserId()
Required. ID of the requesting object.
string user_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
CreateUserRequest.Builder |
This builder for chaining. |
clone()
public CreateUserRequest.Builder clone()
Returns | |
---|---|
Type | Description |
CreateUserRequest.Builder |
getDefaultInstanceForType()
public CreateUserRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CreateUserRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getParent()
public String getParent()
Required. Value for parent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()
Required. Value for parent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString |
The bytes for requestId. |
getUser()
public User getUser()
Required. The resource being created
.google.cloud.alloydb.v1alpha.User user = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
User |
The user. |
getUserBuilder()
public User.Builder getUserBuilder()
Required. The resource being created
.google.cloud.alloydb.v1alpha.User user = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
User.Builder |
getUserId()
public String getUserId()
Required. ID of the requesting object.
string user_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The userId. |
getUserIdBytes()
public ByteString getUserIdBytes()
Required. ID of the requesting object.
string user_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for userId. |
getUserOrBuilder()
public UserOrBuilder getUserOrBuilder()
Required. The resource being created
.google.cloud.alloydb.v1alpha.User user = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean |
The validateOnly. |
hasUser()
public boolean hasUser()
Required. The resource being created
.google.cloud.alloydb.v1alpha.User user = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the user field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CreateUserRequest other)
public CreateUserRequest.Builder mergeFrom(CreateUserRequest other)
Parameter | |
---|---|
Name | Description |
other |
CreateUserRequest |
Returns | |
---|---|
Type | Description |
CreateUserRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateUserRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
CreateUserRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CreateUserRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
CreateUserRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateUserRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateUserRequest.Builder |
mergeUser(User value)
public CreateUserRequest.Builder mergeUser(User value)
Required. The resource being created
.google.cloud.alloydb.v1alpha.User user = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
User |
Returns | |
---|---|
Type | Description |
CreateUserRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateUserRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateUserRequest.Builder |
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 | |
---|---|
Name | Description |
value |
String The parent to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for parent to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateUserRequest.Builder |
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 | |
---|---|
Name | Description |
value |
String The requestId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for requestId to set. |
Returns | |
---|---|
Type | Description |
CreateUserRequest.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateUserRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateUserRequest.Builder |
setUser(User value)
public CreateUserRequest.Builder setUser(User value)
Required. The resource being created
.google.cloud.alloydb.v1alpha.User user = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
User |
Returns | |
---|---|
Type | Description |
CreateUserRequest.Builder |
setUser(User.Builder builderForValue)
public CreateUserRequest.Builder setUser(User.Builder builderForValue)
Required. The resource being created
.google.cloud.alloydb.v1alpha.User user = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
User.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
String The userId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for userId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
boolean The validateOnly to set. |
Returns | |
---|---|
Type | Description |
CreateUserRequest.Builder |
This builder for chaining. |