Class Assignment.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>
-
- com.google.cloud.bigquery.reservation.v1.Assignment.Builder
-
- All Implemented Interfaces:
AssignmentOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Assignment
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 typegoogle.cloud.bigquery.reservation.v1.Assignment
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>
-
clear
public Assignment.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>
-
getDefaultInstanceForType
public Assignment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Assignment build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Assignment buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Assignment.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>
-
setField
public Assignment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>
-
clearField
public Assignment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>
-
clearOneof
public Assignment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>
-
setRepeatedField
public Assignment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>
-
addRepeatedField
public Assignment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>
-
mergeFrom
public Assignment.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Assignment.Builder>
-
mergeFrom
public Assignment.Builder mergeFrom(Assignment other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>
-
mergeFrom
public Assignment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Assignment.Builder>
- Throws:
IOException
-
getName
public 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];
- Specified by:
getName
in interfaceAssignmentOrBuilder
- Returns:
- The name.
-
getNameBytes
public 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];
- Specified by:
getNameBytes
in interfaceAssignmentOrBuilder
- Returns:
- The bytes for name.
-
setName
public 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];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
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];
- Returns:
- This builder for chaining.
-
setNameBytes
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];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getAssignee
public String getAssignee()
The resource which will use the reservation. E.g. `projects/myproject`, `folders/123`, or `organizations/456`.
string assignee = 4;
- Specified by:
getAssignee
in interfaceAssignmentOrBuilder
- Returns:
- The assignee.
-
getAssigneeBytes
public com.google.protobuf.ByteString getAssigneeBytes()
The resource which will use the reservation. E.g. `projects/myproject`, `folders/123`, or `organizations/456`.
string assignee = 4;
- Specified by:
getAssigneeBytes
in interfaceAssignmentOrBuilder
- Returns:
- The bytes for assignee.
-
setAssignee
public Assignment.Builder setAssignee(String value)
The resource which will use the reservation. E.g. `projects/myproject`, `folders/123`, or `organizations/456`.
string assignee = 4;
- Parameters:
value
- The assignee to set.- Returns:
- This builder for chaining.
-
clearAssignee
public Assignment.Builder clearAssignee()
The resource which will use the reservation. E.g. `projects/myproject`, `folders/123`, or `organizations/456`.
string assignee = 4;
- Returns:
- This builder for chaining.
-
setAssigneeBytes
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;
- Parameters:
value
- The bytes for assignee to set.- Returns:
- This builder for chaining.
-
getJobTypeValue
public int getJobTypeValue()
Which type of jobs will use the reservation.
.google.cloud.bigquery.reservation.v1.Assignment.JobType job_type = 3;
- Specified by:
getJobTypeValue
in interfaceAssignmentOrBuilder
- Returns:
- The enum numeric value on the wire for jobType.
-
setJobTypeValue
public Assignment.Builder setJobTypeValue(int value)
Which type of jobs will use the reservation.
.google.cloud.bigquery.reservation.v1.Assignment.JobType job_type = 3;
- Parameters:
value
- The enum numeric value on the wire for jobType to set.- Returns:
- This builder for chaining.
-
getJobType
public Assignment.JobType getJobType()
Which type of jobs will use the reservation.
.google.cloud.bigquery.reservation.v1.Assignment.JobType job_type = 3;
- Specified by:
getJobType
in interfaceAssignmentOrBuilder
- Returns:
- The jobType.
-
setJobType
public Assignment.Builder setJobType(Assignment.JobType value)
Which type of jobs will use the reservation.
.google.cloud.bigquery.reservation.v1.Assignment.JobType job_type = 3;
- Parameters:
value
- The jobType to set.- Returns:
- This builder for chaining.
-
clearJobType
public Assignment.Builder clearJobType()
Which type of jobs will use the reservation.
.google.cloud.bigquery.reservation.v1.Assignment.JobType job_type = 3;
- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()
Output only. State of the assignment.
.google.cloud.bigquery.reservation.v1.Assignment.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStateValue
in interfaceAssignmentOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public 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];
- Parameters:
value
- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
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];
- Specified by:
getState
in interfaceAssignmentOrBuilder
- Returns:
- The state.
-
setState
public 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];
- Parameters:
value
- The state to set.- Returns:
- This builder for chaining.
-
clearState
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];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Assignment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>
-
mergeUnknownFields
public final Assignment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>
-
-