public static final class CreateAssignmentRequest.Builder extends GeneratedMessageV3.Builder<CreateAssignmentRequest.Builder> implements CreateAssignmentRequestOrBuilder
The request for ReservationService.CreateAssignment.
Note: "bigquery.reservationAssignments.create" permission is required on the
related assignee.
Protobuf type google.cloud.bigquery.reservation.v1.CreateAssignmentRequest
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateAssignmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateAssignmentRequest build()
Returns
buildPartial()
public CreateAssignmentRequest buildPartial()
Returns
clear()
public CreateAssignmentRequest.Builder clear()
Returns
Overrides
clearAssignment()
public CreateAssignmentRequest.Builder clearAssignment()
Assignment resource to create.
.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;
Returns
clearAssignmentId()
public CreateAssignmentRequest.Builder clearAssignmentId()
The optional assignment ID. Assignment name will be generated automatically
if this field is empty.
This field must only contain lower case alphanumeric characters or dash.
Max length is 64 characters.
string assignment_id = 4;
Returns
clearField(Descriptors.FieldDescriptor field)
public CreateAssignmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateAssignmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParent()
public CreateAssignmentRequest.Builder clearParent()
Required. The parent resource name of the assignment
E.g. projects/myproject/locations/US/reservations/team1-prod
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clone()
public CreateAssignmentRequest.Builder clone()
Returns
Overrides
getAssignment()
public Assignment getAssignment()
Assignment resource to create.
.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;
Returns
getAssignmentBuilder()
public Assignment.Builder getAssignmentBuilder()
Assignment resource to create.
.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;
Returns
getAssignmentId()
public String getAssignmentId()
The optional assignment ID. Assignment name will be generated automatically
if this field is empty.
This field must only contain lower case alphanumeric characters or dash.
Max length is 64 characters.
string assignment_id = 4;
Returns
Type | Description |
String | The assignmentId.
|
getAssignmentIdBytes()
public ByteString getAssignmentIdBytes()
The optional assignment ID. Assignment name will be generated automatically
if this field is empty.
This field must only contain lower case alphanumeric characters or dash.
Max length is 64 characters.
string assignment_id = 4;
Returns
Type | Description |
ByteString | The bytes for assignmentId.
|
getAssignmentOrBuilder()
public AssignmentOrBuilder getAssignmentOrBuilder()
Assignment resource to create.
.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;
Returns
getDefaultInstanceForType()
public CreateAssignmentRequest getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getParent()
public String getParent()
Required. The parent resource name of the assignment
E.g. projects/myproject/locations/US/reservations/team1-prod
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. The parent resource name of the assignment
E.g. projects/myproject/locations/US/reservations/team1-prod
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
hasAssignment()
public boolean hasAssignment()
Assignment resource to create.
.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;
Returns
Type | Description |
boolean | Whether the assignment field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeAssignment(Assignment value)
public CreateAssignmentRequest.Builder mergeAssignment(Assignment value)
Assignment resource to create.
.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;
Parameter
Returns
mergeFrom(CreateAssignmentRequest other)
public CreateAssignmentRequest.Builder mergeFrom(CreateAssignmentRequest other)
Parameter
Returns
public CreateAssignmentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateAssignmentRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateAssignmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setAssignment(Assignment value)
public CreateAssignmentRequest.Builder setAssignment(Assignment value)
Assignment resource to create.
.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;
Parameter
Returns
setAssignment(Assignment.Builder builderForValue)
public CreateAssignmentRequest.Builder setAssignment(Assignment.Builder builderForValue)
Assignment resource to create.
.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;
Parameter
Returns
setAssignmentId(String value)
public CreateAssignmentRequest.Builder setAssignmentId(String value)
The optional assignment ID. Assignment name will be generated automatically
if this field is empty.
This field must only contain lower case alphanumeric characters or dash.
Max length is 64 characters.
string assignment_id = 4;
Parameter
Name | Description |
value | String
The assignmentId to set.
|
Returns
setAssignmentIdBytes(ByteString value)
public CreateAssignmentRequest.Builder setAssignmentIdBytes(ByteString value)
The optional assignment ID. Assignment name will be generated automatically
if this field is empty.
This field must only contain lower case alphanumeric characters or dash.
Max length is 64 characters.
string assignment_id = 4;
Parameter
Name | Description |
value | ByteString
The bytes for assignmentId to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CreateAssignmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setParent(String value)
public CreateAssignmentRequest.Builder setParent(String value)
Required. The parent resource name of the assignment
E.g. projects/myproject/locations/US/reservations/team1-prod
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The parent to set.
|
Returns
setParentBytes(ByteString value)
public CreateAssignmentRequest.Builder setParentBytes(ByteString value)
Required. The parent resource name of the assignment
E.g. projects/myproject/locations/US/reservations/team1-prod
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for parent to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateAssignmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateAssignmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides