public final class CreateAssignmentRequest extends GeneratedMessageV3 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 Fields
ASSIGNMENT_FIELD_NUMBER
public static final int ASSIGNMENT_FIELD_NUMBER
Field Value
ASSIGNMENT_ID_FIELD_NUMBER
public static final int ASSIGNMENT_ID_FIELD_NUMBER
Field Value
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static CreateAssignmentRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static CreateAssignmentRequest.Builder newBuilder()
Returns
newBuilder(CreateAssignmentRequest prototype)
public static CreateAssignmentRequest.Builder newBuilder(CreateAssignmentRequest prototype)
Parameter
Returns
public static CreateAssignmentRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static CreateAssignmentRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static CreateAssignmentRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CreateAssignmentRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static CreateAssignmentRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CreateAssignmentRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateAssignmentRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static CreateAssignmentRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateAssignmentRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static CreateAssignmentRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static CreateAssignmentRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CreateAssignmentRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<CreateAssignmentRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAssignment()
public Assignment getAssignment()
Assignment resource to create.
.google.cloud.bigquery.reservation.v1.Assignment assignment = 2;
Returns
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
getDefaultInstanceForType()
public CreateAssignmentRequest getDefaultInstanceForType()
Returns
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
getParserForType()
public Parser<CreateAssignmentRequest> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public CreateAssignmentRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CreateAssignmentRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public CreateAssignmentRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions