Class CreateAssignmentRequest.Builder (2.29.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateAssignmentRequest build()
Returns
TypeDescription
CreateAssignmentRequest

buildPartial()

public CreateAssignmentRequest buildPartial()
Returns
TypeDescription
CreateAssignmentRequest

clear()

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

clearAssignment()

public CreateAssignmentRequest.Builder clearAssignment()

Assignment resource to create.

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

Returns
TypeDescription
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
TypeDescription
CreateAssignmentRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateAssignmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateAssignmentRequest.Builder

This builder for chaining.

clone()

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

getAssignment()

public Assignment getAssignment()

Assignment resource to create.

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

Returns
TypeDescription
Assignment

The assignment.

getAssignmentBuilder()

public Assignment.Builder getAssignmentBuilder()

Assignment resource to create.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for assignmentId.

getAssignmentOrBuilder()

public AssignmentOrBuilder getAssignmentOrBuilder()

Assignment resource to create.

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

Returns
TypeDescription
AssignmentOrBuilder

getDefaultInstanceForType()

public CreateAssignmentRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateAssignmentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

hasAssignment()

public boolean hasAssignment()

Assignment resource to create.

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

Returns
TypeDescription
boolean

Whether the assignment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAssignment(Assignment value)

public CreateAssignmentRequest.Builder mergeAssignment(Assignment value)

Assignment resource to create.

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

Parameter
NameDescription
valueAssignment
Returns
TypeDescription
CreateAssignmentRequest.Builder

mergeFrom(CreateAssignmentRequest other)

public CreateAssignmentRequest.Builder mergeFrom(CreateAssignmentRequest other)
Parameter
NameDescription
otherCreateAssignmentRequest
Returns
TypeDescription
CreateAssignmentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateAssignmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueAssignment
Returns
TypeDescription
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
NameDescription
builderForValueAssignment.Builder
Returns
TypeDescription
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
NameDescription
valueString

The assignmentId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for assignmentId to set.

Returns
TypeDescription
CreateAssignmentRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateAssignmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateAssignmentRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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