public static final class Assignment.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder> implements AssignmentOrBuilder
An assignment allows a project to submit jobs of a certain type using slots from the specified reservation.Protobuf type
google.cloud.bigquery.reservation.v1.Assignment| Modifier and Type | Method and Description |
|---|---|
Assignment.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Assignment |
build() |
Assignment |
buildPartial() |
Assignment.Builder |
clear() |
Assignment.Builder |
clearAssignee()
The resource which will use the reservation.
|
Assignment.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Assignment.Builder |
clearJobType()
Which type of jobs will use the reservation.
|
Assignment.Builder |
clearName()
Output only.
|
Assignment.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Assignment.Builder |
clearState()
Output only.
|
Assignment.Builder |
clone() |
String |
getAssignee()
The resource which will use the reservation.
|
com.google.protobuf.ByteString |
getAssigneeBytes()
The resource which will use the reservation.
|
Assignment |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Assignment.JobType |
getJobType()
Which type of jobs will use the reservation.
|
int |
getJobTypeValue()
Which type of jobs will use the reservation.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
Assignment.State |
getState()
Output only.
|
int |
getStateValue()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Assignment.Builder |
mergeFrom(Assignment other) |
Assignment.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Assignment.Builder |
mergeFrom(com.google.protobuf.Message other) |
Assignment.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Assignment.Builder |
setAssignee(String value)
The resource which will use the reservation.
|
Assignment.Builder |
setAssigneeBytes(com.google.protobuf.ByteString value)
The resource which will use the reservation.
|
Assignment.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Assignment.Builder |
setJobType(Assignment.JobType value)
Which type of jobs will use the reservation.
|
Assignment.Builder |
setJobTypeValue(int value)
Which type of jobs will use the reservation.
|
Assignment.Builder |
setName(String value)
Output only.
|
Assignment.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
Assignment.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Assignment.Builder |
setState(Assignment.State value)
Output only.
|
Assignment.Builder |
setStateValue(int value)
Output only.
|
Assignment.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>public Assignment.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>public Assignment getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Assignment build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Assignment buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Assignment.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>public Assignment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>public Assignment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>public Assignment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>public Assignment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>public Assignment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>public Assignment.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Assignment.Builder>public Assignment.Builder mergeFrom(Assignment other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>public Assignment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Assignment.Builder>IOExceptionpublic String getName()
Output only. Name of the resource. E.g.: `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. The assignment_id must only contain lower case alphanumeric characters or dashes and the max length is 64 characters.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface AssignmentOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. Name of the resource. E.g.: `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. The assignment_id must only contain lower case alphanumeric characters or dashes and the max length is 64 characters.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface AssignmentOrBuilderpublic Assignment.Builder setName(String value)
Output only. Name of the resource. E.g.: `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. The assignment_id must only contain lower case alphanumeric characters or dashes and the max length is 64 characters.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The name to set.public Assignment.Builder clearName()
Output only. Name of the resource. E.g.: `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. The assignment_id must only contain lower case alphanumeric characters or dashes and the max length is 64 characters.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];public Assignment.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. Name of the resource. E.g.: `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. The assignment_id must only contain lower case alphanumeric characters or dashes and the max length is 64 characters.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for name to set.public String getAssignee()
The resource which will use the reservation. E.g. `projects/myproject`, `folders/123`, or `organizations/456`.
string assignee = 4;getAssignee in interface AssignmentOrBuilderpublic com.google.protobuf.ByteString getAssigneeBytes()
The resource which will use the reservation. E.g. `projects/myproject`, `folders/123`, or `organizations/456`.
string assignee = 4;getAssigneeBytes in interface AssignmentOrBuilderpublic Assignment.Builder setAssignee(String value)
The resource which will use the reservation. E.g. `projects/myproject`, `folders/123`, or `organizations/456`.
string assignee = 4;value - The assignee to set.public Assignment.Builder clearAssignee()
The resource which will use the reservation. E.g. `projects/myproject`, `folders/123`, or `organizations/456`.
string assignee = 4;public Assignment.Builder setAssigneeBytes(com.google.protobuf.ByteString value)
The resource which will use the reservation. E.g. `projects/myproject`, `folders/123`, or `organizations/456`.
string assignee = 4;value - The bytes for assignee to set.public int getJobTypeValue()
Which type of jobs will use the reservation.
.google.cloud.bigquery.reservation.v1.Assignment.JobType job_type = 3;getJobTypeValue in interface AssignmentOrBuilderpublic Assignment.Builder setJobTypeValue(int value)
Which type of jobs will use the reservation.
.google.cloud.bigquery.reservation.v1.Assignment.JobType job_type = 3;value - The enum numeric value on the wire for jobType to set.public Assignment.JobType getJobType()
Which type of jobs will use the reservation.
.google.cloud.bigquery.reservation.v1.Assignment.JobType job_type = 3;getJobType in interface AssignmentOrBuilderpublic Assignment.Builder setJobType(Assignment.JobType value)
Which type of jobs will use the reservation.
.google.cloud.bigquery.reservation.v1.Assignment.JobType job_type = 3;value - The jobType to set.public Assignment.Builder clearJobType()
Which type of jobs will use the reservation.
.google.cloud.bigquery.reservation.v1.Assignment.JobType job_type = 3;public int getStateValue()
Output only. State of the assignment.
.google.cloud.bigquery.reservation.v1.Assignment.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue in interface AssignmentOrBuilderpublic Assignment.Builder setStateValue(int value)
Output only. State of the assignment.
.google.cloud.bigquery.reservation.v1.Assignment.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The enum numeric value on the wire for state to set.public Assignment.State getState()
Output only. State of the assignment.
.google.cloud.bigquery.reservation.v1.Assignment.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState in interface AssignmentOrBuilderpublic Assignment.Builder setState(Assignment.State value)
Output only. State of the assignment.
.google.cloud.bigquery.reservation.v1.Assignment.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The state to set.public Assignment.Builder clearState()
Output only. State of the assignment.
.google.cloud.bigquery.reservation.v1.Assignment.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public final Assignment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>public final Assignment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>Copyright © 2024 Google LLC. All rights reserved.