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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateAssignmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateAssignmentRequest build()
buildPartial()
public CreateAssignmentRequest buildPartial()
clear()
public CreateAssignmentRequest.Builder clear()
Overrides
clearAssignment()
public CreateAssignmentRequest.Builder clearAssignment()
Assignment resource to create.
.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;
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 dashes.
Max length is 64 characters.
string assignment_id = 4;
clearField(Descriptors.FieldDescriptor field)
public CreateAssignmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateAssignmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
clone()
public CreateAssignmentRequest.Builder clone()
Overrides
getAssignment()
public Assignment getAssignment()
Assignment resource to create.
.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;
getAssignmentBuilder()
public Assignment.Builder getAssignmentBuilder()
Assignment resource to create.
.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;
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 dashes.
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 dashes.
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;
getDefaultInstanceForType()
public CreateAssignmentRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
ByteString | The bytes for parent.
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeAssignment(Assignment value)
public CreateAssignmentRequest.Builder mergeAssignment(Assignment value)
Assignment resource to create.
.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;
mergeFrom(CreateAssignmentRequest other)
public CreateAssignmentRequest.Builder mergeFrom(CreateAssignmentRequest other)
public CreateAssignmentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateAssignmentRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateAssignmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAssignment(Assignment value)
public CreateAssignmentRequest.Builder setAssignment(Assignment value)
Assignment resource to create.
.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;
setAssignment(Assignment.Builder builderForValue)
public CreateAssignmentRequest.Builder setAssignment(Assignment.Builder builderForValue)
Assignment resource to create.
.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;
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 dashes.
Max length is 64 characters.
string assignment_id = 4;
Parameter |
---|
Name | Description |
value | String
The assignmentId to set.
|
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 dashes.
Max length is 64 characters.
string assignment_id = 4;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for assignmentId to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public CreateAssignmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateAssignmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateAssignmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides