Class CreateAssignmentRequest.Builder (2.52.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateAssignmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateAssignmentRequest.Builder
Overrides

build()

public CreateAssignmentRequest build()
Returns
Type Description
CreateAssignmentRequest

buildPartial()

public CreateAssignmentRequest buildPartial()
Returns
Type Description
CreateAssignmentRequest

clear()

public CreateAssignmentRequest.Builder clear()
Returns
Type Description
CreateAssignmentRequest.Builder
Overrides

clearAssignment()

public CreateAssignmentRequest.Builder clearAssignment()

Assignment resource to create.

.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;

Returns
Type Description
CreateAssignmentRequest.Builder

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;

Returns
Type Description
CreateAssignmentRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CreateAssignmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateAssignmentRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateAssignmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateAssignmentRequest.Builder
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
Type Description
CreateAssignmentRequest.Builder

This builder for chaining.

clone()

public CreateAssignmentRequest.Builder clone()
Returns
Type Description
CreateAssignmentRequest.Builder
Overrides

getAssignment()

public Assignment getAssignment()

Assignment resource to create.

.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;

Returns
Type Description
Assignment

The assignment.

getAssignmentBuilder()

public Assignment.Builder getAssignmentBuilder()

Assignment resource to create.

.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;

Returns
Type Description
Assignment.Builder

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;

Returns
Type Description
AssignmentOrBuilder

getDefaultInstanceForType()

public CreateAssignmentRequest getDefaultInstanceForType()
Returns
Type Description
CreateAssignmentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAssignment(Assignment value)

public CreateAssignmentRequest.Builder mergeAssignment(Assignment value)

Assignment resource to create.

.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;

Parameter
Name Description
value Assignment
Returns
Type Description
CreateAssignmentRequest.Builder

mergeFrom(CreateAssignmentRequest other)

public CreateAssignmentRequest.Builder mergeFrom(CreateAssignmentRequest other)
Parameter
Name Description
other CreateAssignmentRequest
Returns
Type Description
CreateAssignmentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateAssignmentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAssignmentRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateAssignmentRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateAssignmentRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateAssignmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateAssignmentRequest.Builder
Overrides

setAssignment(Assignment value)

public CreateAssignmentRequest.Builder setAssignment(Assignment value)

Assignment resource to create.

.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;

Parameter
Name Description
value Assignment
Returns
Type Description
CreateAssignmentRequest.Builder

setAssignment(Assignment.Builder builderForValue)

public CreateAssignmentRequest.Builder setAssignment(Assignment.Builder builderForValue)

Assignment resource to create.

.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;

Parameter
Name Description
builderForValue Assignment.Builder
Returns
Type Description
CreateAssignmentRequest.Builder

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.

Returns
Type Description
CreateAssignmentRequest.Builder

This builder for chaining.

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.

Returns
Type Description
CreateAssignmentRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateAssignmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateAssignmentRequest.Builder
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
Type Description
CreateAssignmentRequest.Builder

This builder for chaining.

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
Type Description
CreateAssignmentRequest.Builder

This builder for chaining.

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

public CreateAssignmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateAssignmentRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateAssignmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateAssignmentRequest.Builder
Overrides