Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterReservationServiceServer(s grpc.ServiceRegistrar, srv ReservationServiceServer)
- type Assignment
- func (*Assignment) Descriptor() ([]byte, []int)deprecated
- func (x *Assignment) GetAssignee() string
- func (x *Assignment) GetEnableGeminiInBigquery() booldeprecated
- func (x *Assignment) GetJobType() Assignment_JobType
- func (x *Assignment) GetName() string
- func (x *Assignment) GetSchedulingPolicy() *SchedulingPolicy
- func (x *Assignment) GetState() Assignment_State
- func (*Assignment) ProtoMessage()
- func (x *Assignment) ProtoReflect() protoreflect.Message
- func (x *Assignment) Reset()
- func (x *Assignment) String() string
- type Assignment_JobType
- func (Assignment_JobType) Descriptor() protoreflect.EnumDescriptor
- func (x Assignment_JobType) Enum() *Assignment_JobType
- func (Assignment_JobType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Assignment_JobType) Number() protoreflect.EnumNumber
- func (x Assignment_JobType) String() string
- func (Assignment_JobType) Type() protoreflect.EnumType
- type Assignment_State
- func (Assignment_State) Descriptor() protoreflect.EnumDescriptor
- func (x Assignment_State) Enum() *Assignment_State
- func (Assignment_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x Assignment_State) Number() protoreflect.EnumNumber
- func (x Assignment_State) String() string
- func (Assignment_State) Type() protoreflect.EnumType
- type BiReservation
- func (*BiReservation) Descriptor() ([]byte, []int)deprecated
- func (x *BiReservation) GetName() string
- func (x *BiReservation) GetPreferredTables() []*TableReference
- func (x *BiReservation) GetSize() int64
- func (x *BiReservation) GetUpdateTime() *timestamppb.Timestamp
- func (*BiReservation) ProtoMessage()
- func (x *BiReservation) ProtoReflect() protoreflect.Message
- func (x *BiReservation) Reset()
- func (x *BiReservation) String() string
- type CapacityCommitment
- func (*CapacityCommitment) Descriptor() ([]byte, []int)deprecated
- func (x *CapacityCommitment) GetCommitmentEndTime() *timestamppb.Timestamp
- func (x *CapacityCommitment) GetCommitmentStartTime() *timestamppb.Timestamp
- func (x *CapacityCommitment) GetEdition() Edition
- func (x *CapacityCommitment) GetFailureStatus() *status.Status
- func (x *CapacityCommitment) GetIsFlatRate() bool
- func (x *CapacityCommitment) GetMultiRegionAuxiliary() booldeprecated
- func (x *CapacityCommitment) GetName() string
- func (x *CapacityCommitment) GetPlan() CapacityCommitment_CommitmentPlan
- func (x *CapacityCommitment) GetRenewalPlan() CapacityCommitment_CommitmentPlan
- func (x *CapacityCommitment) GetSlotCount() int64
- func (x *CapacityCommitment) GetState() CapacityCommitment_State
- func (*CapacityCommitment) ProtoMessage()
- func (x *CapacityCommitment) ProtoReflect() protoreflect.Message
- func (x *CapacityCommitment) Reset()
- func (x *CapacityCommitment) String() string
- type CapacityCommitment_CommitmentPlan
- func (CapacityCommitment_CommitmentPlan) Descriptor() protoreflect.EnumDescriptor
- func (x CapacityCommitment_CommitmentPlan) Enum() *CapacityCommitment_CommitmentPlan
- func (CapacityCommitment_CommitmentPlan) EnumDescriptor() ([]byte, []int)deprecated
- func (x CapacityCommitment_CommitmentPlan) Number() protoreflect.EnumNumber
- func (x CapacityCommitment_CommitmentPlan) String() string
- func (CapacityCommitment_CommitmentPlan) Type() protoreflect.EnumType
- type CapacityCommitment_State
- func (CapacityCommitment_State) Descriptor() protoreflect.EnumDescriptor
- func (x CapacityCommitment_State) Enum() *CapacityCommitment_State
- func (CapacityCommitment_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x CapacityCommitment_State) Number() protoreflect.EnumNumber
- func (x CapacityCommitment_State) String() string
- func (CapacityCommitment_State) Type() protoreflect.EnumType
- type CreateAssignmentRequest
- func (*CreateAssignmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAssignmentRequest) GetAssignment() *Assignment
- func (x *CreateAssignmentRequest) GetAssignmentId() string
- func (x *CreateAssignmentRequest) GetParent() string
- func (*CreateAssignmentRequest) ProtoMessage()
- func (x *CreateAssignmentRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAssignmentRequest) Reset()
- func (x *CreateAssignmentRequest) String() string
- type CreateCapacityCommitmentRequest
- func (*CreateCapacityCommitmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCapacityCommitmentRequest) GetCapacityCommitment() *CapacityCommitment
- func (x *CreateCapacityCommitmentRequest) GetCapacityCommitmentId() string
- func (x *CreateCapacityCommitmentRequest) GetEnforceSingleAdminProjectPerOrg() bool
- func (x *CreateCapacityCommitmentRequest) GetParent() string
- func (*CreateCapacityCommitmentRequest) ProtoMessage()
- func (x *CreateCapacityCommitmentRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCapacityCommitmentRequest) Reset()
- func (x *CreateCapacityCommitmentRequest) String() string
- type CreateReservationGroupRequest
- func (*CreateReservationGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateReservationGroupRequest) GetParent() string
- func (x *CreateReservationGroupRequest) GetReservationGroup() *ReservationGroup
- func (x *CreateReservationGroupRequest) GetReservationGroupId() string
- func (*CreateReservationGroupRequest) ProtoMessage()
- func (x *CreateReservationGroupRequest) ProtoReflect() protoreflect.Message
- func (x *CreateReservationGroupRequest) Reset()
- func (x *CreateReservationGroupRequest) String() string
- type CreateReservationRequest
- func (*CreateReservationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateReservationRequest) GetParent() string
- func (x *CreateReservationRequest) GetReservation() *Reservation
- func (x *CreateReservationRequest) GetReservationId() string
- func (*CreateReservationRequest) ProtoMessage()
- func (x *CreateReservationRequest) ProtoReflect() protoreflect.Message
- func (x *CreateReservationRequest) Reset()
- func (x *CreateReservationRequest) String() string
- type DeleteAssignmentRequest
- func (*DeleteAssignmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAssignmentRequest) GetName() string
- func (*DeleteAssignmentRequest) ProtoMessage()
- func (x *DeleteAssignmentRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteAssignmentRequest) Reset()
- func (x *DeleteAssignmentRequest) String() string
- type DeleteCapacityCommitmentRequest
- func (*DeleteCapacityCommitmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCapacityCommitmentRequest) GetForce() bool
- func (x *DeleteCapacityCommitmentRequest) GetName() string
- func (*DeleteCapacityCommitmentRequest) ProtoMessage()
- func (x *DeleteCapacityCommitmentRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCapacityCommitmentRequest) Reset()
- func (x *DeleteCapacityCommitmentRequest) String() string
- type DeleteReservationGroupRequest
- func (*DeleteReservationGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteReservationGroupRequest) GetName() string
- func (*DeleteReservationGroupRequest) ProtoMessage()
- func (x *DeleteReservationGroupRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteReservationGroupRequest) Reset()
- func (x *DeleteReservationGroupRequest) String() string
- type DeleteReservationRequest
- func (*DeleteReservationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteReservationRequest) GetName() string
- func (*DeleteReservationRequest) ProtoMessage()
- func (x *DeleteReservationRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteReservationRequest) Reset()
- func (x *DeleteReservationRequest) String() string
- type Edition
- type FailoverMode
- func (FailoverMode) Descriptor() protoreflect.EnumDescriptor
- func (x FailoverMode) Enum() *FailoverMode
- func (FailoverMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x FailoverMode) Number() protoreflect.EnumNumber
- func (x FailoverMode) String() string
- func (FailoverMode) Type() protoreflect.EnumType
- type FailoverReservationRequest
- func (*FailoverReservationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FailoverReservationRequest) GetFailoverMode() FailoverMode
- func (x *FailoverReservationRequest) GetName() string
- func (*FailoverReservationRequest) ProtoMessage()
- func (x *FailoverReservationRequest) ProtoReflect() protoreflect.Message
- func (x *FailoverReservationRequest) Reset()
- func (x *FailoverReservationRequest) String() string
- type GetBiReservationRequest
- func (*GetBiReservationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBiReservationRequest) GetName() string
- func (*GetBiReservationRequest) ProtoMessage()
- func (x *GetBiReservationRequest) ProtoReflect() protoreflect.Message
- func (x *GetBiReservationRequest) Reset()
- func (x *GetBiReservationRequest) String() string
- type GetCapacityCommitmentRequest
- func (*GetCapacityCommitmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCapacityCommitmentRequest) GetName() string
- func (*GetCapacityCommitmentRequest) ProtoMessage()
- func (x *GetCapacityCommitmentRequest) ProtoReflect() protoreflect.Message
- func (x *GetCapacityCommitmentRequest) Reset()
- func (x *GetCapacityCommitmentRequest) String() string
- type GetReservationGroupRequest
- func (*GetReservationGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetReservationGroupRequest) GetName() string
- func (*GetReservationGroupRequest) ProtoMessage()
- func (x *GetReservationGroupRequest) ProtoReflect() protoreflect.Message
- func (x *GetReservationGroupRequest) Reset()
- func (x *GetReservationGroupRequest) String() string
- type GetReservationRequest
- func (*GetReservationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetReservationRequest) GetName() string
- func (*GetReservationRequest) ProtoMessage()
- func (x *GetReservationRequest) ProtoReflect() protoreflect.Message
- func (x *GetReservationRequest) Reset()
- func (x *GetReservationRequest) String() string
- type ListAssignmentsRequest
- func (*ListAssignmentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAssignmentsRequest) GetPageSize() int32
- func (x *ListAssignmentsRequest) GetPageToken() string
- func (x *ListAssignmentsRequest) GetParent() string
- func (*ListAssignmentsRequest) ProtoMessage()
- func (x *ListAssignmentsRequest) ProtoReflect() protoreflect.Message
- func (x *ListAssignmentsRequest) Reset()
- func (x *ListAssignmentsRequest) String() string
- type ListAssignmentsResponse
- func (*ListAssignmentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAssignmentsResponse) GetAssignments() []*Assignment
- func (x *ListAssignmentsResponse) GetNextPageToken() string
- func (*ListAssignmentsResponse) ProtoMessage()
- func (x *ListAssignmentsResponse) ProtoReflect() protoreflect.Message
- func (x *ListAssignmentsResponse) Reset()
- func (x *ListAssignmentsResponse) String() string
- type ListCapacityCommitmentsRequest
- func (*ListCapacityCommitmentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCapacityCommitmentsRequest) GetPageSize() int32
- func (x *ListCapacityCommitmentsRequest) GetPageToken() string
- func (x *ListCapacityCommitmentsRequest) GetParent() string
- func (*ListCapacityCommitmentsRequest) ProtoMessage()
- func (x *ListCapacityCommitmentsRequest) ProtoReflect() protoreflect.Message
- func (x *ListCapacityCommitmentsRequest) Reset()
- func (x *ListCapacityCommitmentsRequest) String() string
- type ListCapacityCommitmentsResponse
- func (*ListCapacityCommitmentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCapacityCommitmentsResponse) GetCapacityCommitments() []*CapacityCommitment
- func (x *ListCapacityCommitmentsResponse) GetNextPageToken() string
- func (*ListCapacityCommitmentsResponse) ProtoMessage()
- func (x *ListCapacityCommitmentsResponse) ProtoReflect() protoreflect.Message
- func (x *ListCapacityCommitmentsResponse) Reset()
- func (x *ListCapacityCommitmentsResponse) String() string
- type ListReservationGroupsRequest
- func (*ListReservationGroupsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListReservationGroupsRequest) GetPageSize() int32
- func (x *ListReservationGroupsRequest) GetPageToken() string
- func (x *ListReservationGroupsRequest) GetParent() string
- func (*ListReservationGroupsRequest) ProtoMessage()
- func (x *ListReservationGroupsRequest) ProtoReflect() protoreflect.Message
- func (x *ListReservationGroupsRequest) Reset()
- func (x *ListReservationGroupsRequest) String() string
- type ListReservationGroupsResponse
- func (*ListReservationGroupsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListReservationGroupsResponse) GetNextPageToken() string
- func (x *ListReservationGroupsResponse) GetReservationGroups() []*ReservationGroup
- func (*ListReservationGroupsResponse) ProtoMessage()
- func (x *ListReservationGroupsResponse) ProtoReflect() protoreflect.Message
- func (x *ListReservationGroupsResponse) Reset()
- func (x *ListReservationGroupsResponse) String() string
- type ListReservationsRequest
- func (*ListReservationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListReservationsRequest) GetPageSize() int32
- func (x *ListReservationsRequest) GetPageToken() string
- func (x *ListReservationsRequest) GetParent() string
- func (*ListReservationsRequest) ProtoMessage()
- func (x *ListReservationsRequest) ProtoReflect() protoreflect.Message
- func (x *ListReservationsRequest) Reset()
- func (x *ListReservationsRequest) String() string
- type ListReservationsResponse
- func (*ListReservationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListReservationsResponse) GetNextPageToken() string
- func (x *ListReservationsResponse) GetReservations() []*Reservation
- func (*ListReservationsResponse) ProtoMessage()
- func (x *ListReservationsResponse) ProtoReflect() protoreflect.Message
- func (x *ListReservationsResponse) Reset()
- func (x *ListReservationsResponse) String() string
- type MergeCapacityCommitmentsRequest
- func (*MergeCapacityCommitmentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MergeCapacityCommitmentsRequest) GetCapacityCommitmentId() string
- func (x *MergeCapacityCommitmentsRequest) GetCapacityCommitmentIds() []string
- func (x *MergeCapacityCommitmentsRequest) GetParent() string
- func (*MergeCapacityCommitmentsRequest) ProtoMessage()
- func (x *MergeCapacityCommitmentsRequest) ProtoReflect() protoreflect.Message
- func (x *MergeCapacityCommitmentsRequest) Reset()
- func (x *MergeCapacityCommitmentsRequest) String() string
- type MoveAssignmentRequest
- func (*MoveAssignmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MoveAssignmentRequest) GetAssignmentId() string
- func (x *MoveAssignmentRequest) GetDestinationId() string
- func (x *MoveAssignmentRequest) GetName() string
- func (*MoveAssignmentRequest) ProtoMessage()
- func (x *MoveAssignmentRequest) ProtoReflect() protoreflect.Message
- func (x *MoveAssignmentRequest) Reset()
- func (x *MoveAssignmentRequest) String() string
- type Reservation
- func (*Reservation) Descriptor() ([]byte, []int)deprecated
- func (x *Reservation) GetAutoscale() *Reservation_Autoscale
- func (x *Reservation) GetConcurrency() int64
- func (x *Reservation) GetCreationTime() *timestamppb.Timestamp
- func (x *Reservation) GetEdition() Edition
- func (x *Reservation) GetIgnoreIdleSlots() bool
- func (x *Reservation) GetLabels() map[string]string
- func (x *Reservation) GetMaxSlots() int64
- func (x *Reservation) GetMultiRegionAuxiliary() booldeprecated
- func (x *Reservation) GetName() string
- func (x *Reservation) GetOriginalPrimaryLocation() string
- func (x *Reservation) GetPrimaryLocation() string
- func (x *Reservation) GetReplicationStatus() *Reservation_ReplicationStatus
- func (x *Reservation) GetReservationGroup() string
- func (x *Reservation) GetScalingMode() Reservation_ScalingMode
- func (x *Reservation) GetSchedulingPolicy() *SchedulingPolicy
- func (x *Reservation) GetSecondaryLocation() string
- func (x *Reservation) GetSlotCapacity() int64
- func (x *Reservation) GetUpdateTime() *timestamppb.Timestamp
- func (*Reservation) ProtoMessage()
- func (x *Reservation) ProtoReflect() protoreflect.Message
- func (x *Reservation) Reset()
- func (x *Reservation) String() string
- type ReservationGroup
- type ReservationServiceClient
- type ReservationServiceServer
- type Reservation_Autoscale
- func (*Reservation_Autoscale) Descriptor() ([]byte, []int)deprecated
- func (x *Reservation_Autoscale) GetCurrentSlots() int64
- func (x *Reservation_Autoscale) GetMaxSlots() int64
- func (*Reservation_Autoscale) ProtoMessage()
- func (x *Reservation_Autoscale) ProtoReflect() protoreflect.Message
- func (x *Reservation_Autoscale) Reset()
- func (x *Reservation_Autoscale) String() string
- type Reservation_ReplicationStatus
- func (*Reservation_ReplicationStatus) Descriptor() ([]byte, []int)deprecated
- func (x *Reservation_ReplicationStatus) GetError() *status.Status
- func (x *Reservation_ReplicationStatus) GetLastErrorTime() *timestamppb.Timestamp
- func (x *Reservation_ReplicationStatus) GetLastReplicationTime() *timestamppb.Timestamp
- func (x *Reservation_ReplicationStatus) GetSoftFailoverStartTime() *timestamppb.Timestamp
- func (*Reservation_ReplicationStatus) ProtoMessage()
- func (x *Reservation_ReplicationStatus) ProtoReflect() protoreflect.Message
- func (x *Reservation_ReplicationStatus) Reset()
- func (x *Reservation_ReplicationStatus) String() string
- type Reservation_ScalingMode
- func (Reservation_ScalingMode) Descriptor() protoreflect.EnumDescriptor
- func (x Reservation_ScalingMode) Enum() *Reservation_ScalingMode
- func (Reservation_ScalingMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x Reservation_ScalingMode) Number() protoreflect.EnumNumber
- func (x Reservation_ScalingMode) String() string
- func (Reservation_ScalingMode) Type() protoreflect.EnumType
- type SchedulingPolicy
- func (*SchedulingPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *SchedulingPolicy) GetConcurrency() int64
- func (x *SchedulingPolicy) GetMaxSlots() int64
- func (*SchedulingPolicy) ProtoMessage()
- func (x *SchedulingPolicy) ProtoReflect() protoreflect.Message
- func (x *SchedulingPolicy) Reset()
- func (x *SchedulingPolicy) String() string
- type SearchAllAssignmentsRequest
- func (*SearchAllAssignmentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchAllAssignmentsRequest) GetPageSize() int32
- func (x *SearchAllAssignmentsRequest) GetPageToken() string
- func (x *SearchAllAssignmentsRequest) GetParent() string
- func (x *SearchAllAssignmentsRequest) GetQuery() string
- func (*SearchAllAssignmentsRequest) ProtoMessage()
- func (x *SearchAllAssignmentsRequest) ProtoReflect() protoreflect.Message
- func (x *SearchAllAssignmentsRequest) Reset()
- func (x *SearchAllAssignmentsRequest) String() string
- type SearchAllAssignmentsResponse
- func (*SearchAllAssignmentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchAllAssignmentsResponse) GetAssignments() []*Assignment
- func (x *SearchAllAssignmentsResponse) GetNextPageToken() string
- func (*SearchAllAssignmentsResponse) ProtoMessage()
- func (x *SearchAllAssignmentsResponse) ProtoReflect() protoreflect.Message
- func (x *SearchAllAssignmentsResponse) Reset()
- func (x *SearchAllAssignmentsResponse) String() string
- type SearchAssignmentsRequest
- func (*SearchAssignmentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchAssignmentsRequest) GetPageSize() int32
- func (x *SearchAssignmentsRequest) GetPageToken() string
- func (x *SearchAssignmentsRequest) GetParent() string
- func (x *SearchAssignmentsRequest) GetQuery() string
- func (*SearchAssignmentsRequest) ProtoMessage()
- func (x *SearchAssignmentsRequest) ProtoReflect() protoreflect.Message
- func (x *SearchAssignmentsRequest) Reset()
- func (x *SearchAssignmentsRequest) String() string
- type SearchAssignmentsResponse
- func (*SearchAssignmentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchAssignmentsResponse) GetAssignments() []*Assignment
- func (x *SearchAssignmentsResponse) GetNextPageToken() string
- func (*SearchAssignmentsResponse) ProtoMessage()
- func (x *SearchAssignmentsResponse) ProtoReflect() protoreflect.Message
- func (x *SearchAssignmentsResponse) Reset()
- func (x *SearchAssignmentsResponse) String() string
- type SplitCapacityCommitmentRequest
- func (*SplitCapacityCommitmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SplitCapacityCommitmentRequest) GetName() string
- func (x *SplitCapacityCommitmentRequest) GetSlotCount() int64
- func (*SplitCapacityCommitmentRequest) ProtoMessage()
- func (x *SplitCapacityCommitmentRequest) ProtoReflect() protoreflect.Message
- func (x *SplitCapacityCommitmentRequest) Reset()
- func (x *SplitCapacityCommitmentRequest) String() string
- type SplitCapacityCommitmentResponse
- func (*SplitCapacityCommitmentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SplitCapacityCommitmentResponse) GetFirst() *CapacityCommitment
- func (x *SplitCapacityCommitmentResponse) GetSecond() *CapacityCommitment
- func (*SplitCapacityCommitmentResponse) ProtoMessage()
- func (x *SplitCapacityCommitmentResponse) ProtoReflect() protoreflect.Message
- func (x *SplitCapacityCommitmentResponse) Reset()
- func (x *SplitCapacityCommitmentResponse) String() string
- type TableReference
- func (*TableReference) Descriptor() ([]byte, []int)deprecated
- func (x *TableReference) GetDatasetId() string
- func (x *TableReference) GetProjectId() string
- func (x *TableReference) GetTableId() string
- func (*TableReference) ProtoMessage()
- func (x *TableReference) ProtoReflect() protoreflect.Message
- func (x *TableReference) Reset()
- func (x *TableReference) String() string
- type UnimplementedReservationServiceServer
- func (UnimplementedReservationServiceServer) CreateAssignment(context.Context, *CreateAssignmentRequest) (*Assignment, error)
- func (UnimplementedReservationServiceServer) CreateCapacityCommitment(context.Context, *CreateCapacityCommitmentRequest) (*CapacityCommitment, error)
- func (UnimplementedReservationServiceServer) CreateReservation(context.Context, *CreateReservationRequest) (*Reservation, error)
- func (UnimplementedReservationServiceServer) CreateReservationGroup(context.Context, *CreateReservationGroupRequest) (*ReservationGroup, error)
- func (UnimplementedReservationServiceServer) DeleteAssignment(context.Context, *DeleteAssignmentRequest) (*emptypb.Empty, error)
- func (UnimplementedReservationServiceServer) DeleteCapacityCommitment(context.Context, *DeleteCapacityCommitmentRequest) (*emptypb.Empty, error)
- func (UnimplementedReservationServiceServer) DeleteReservation(context.Context, *DeleteReservationRequest) (*emptypb.Empty, error)
- func (UnimplementedReservationServiceServer) DeleteReservationGroup(context.Context, *DeleteReservationGroupRequest) (*emptypb.Empty, error)
- func (UnimplementedReservationServiceServer) FailoverReservation(context.Context, *FailoverReservationRequest) (*Reservation, error)
- func (UnimplementedReservationServiceServer) GetBiReservation(context.Context, *GetBiReservationRequest) (*BiReservation, error)
- func (UnimplementedReservationServiceServer) GetCapacityCommitment(context.Context, *GetCapacityCommitmentRequest) (*CapacityCommitment, error)
- func (UnimplementedReservationServiceServer) GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
- func (UnimplementedReservationServiceServer) GetReservation(context.Context, *GetReservationRequest) (*Reservation, error)
- func (UnimplementedReservationServiceServer) GetReservationGroup(context.Context, *GetReservationGroupRequest) (*ReservationGroup, error)
- func (UnimplementedReservationServiceServer) ListAssignments(context.Context, *ListAssignmentsRequest) (*ListAssignmentsResponse, error)
- func (UnimplementedReservationServiceServer) ListCapacityCommitments(context.Context, *ListCapacityCommitmentsRequest) (*ListCapacityCommitmentsResponse, error)
- func (UnimplementedReservationServiceServer) ListReservationGroups(context.Context, *ListReservationGroupsRequest) (*ListReservationGroupsResponse, error)
- func (UnimplementedReservationServiceServer) ListReservations(context.Context, *ListReservationsRequest) (*ListReservationsResponse, error)
- func (UnimplementedReservationServiceServer) MergeCapacityCommitments(context.Context, *MergeCapacityCommitmentsRequest) (*CapacityCommitment, error)
- func (UnimplementedReservationServiceServer) MoveAssignment(context.Context, *MoveAssignmentRequest) (*Assignment, error)
- func (UnimplementedReservationServiceServer) SearchAllAssignments(context.Context, *SearchAllAssignmentsRequest) (*SearchAllAssignmentsResponse, error)
- func (UnimplementedReservationServiceServer) SearchAssignments(context.Context, *SearchAssignmentsRequest) (*SearchAssignmentsResponse, error)
- func (UnimplementedReservationServiceServer) SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
- func (UnimplementedReservationServiceServer) SplitCapacityCommitment(context.Context, *SplitCapacityCommitmentRequest) (*SplitCapacityCommitmentResponse, error)
- func (UnimplementedReservationServiceServer) TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
- func (UnimplementedReservationServiceServer) UpdateAssignment(context.Context, *UpdateAssignmentRequest) (*Assignment, error)
- func (UnimplementedReservationServiceServer) UpdateBiReservation(context.Context, *UpdateBiReservationRequest) (*BiReservation, error)
- func (UnimplementedReservationServiceServer) UpdateCapacityCommitment(context.Context, *UpdateCapacityCommitmentRequest) (*CapacityCommitment, error)
- func (UnimplementedReservationServiceServer) UpdateReservation(context.Context, *UpdateReservationRequest) (*Reservation, error)
- type UnsafeReservationServiceServer
- type UpdateAssignmentRequest
- func (*UpdateAssignmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAssignmentRequest) GetAssignment() *Assignment
- func (x *UpdateAssignmentRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateAssignmentRequest) ProtoMessage()
- func (x *UpdateAssignmentRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAssignmentRequest) Reset()
- func (x *UpdateAssignmentRequest) String() string
- type UpdateBiReservationRequest
- func (*UpdateBiReservationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBiReservationRequest) GetBiReservation() *BiReservation
- func (x *UpdateBiReservationRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateBiReservationRequest) ProtoMessage()
- func (x *UpdateBiReservationRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateBiReservationRequest) Reset()
- func (x *UpdateBiReservationRequest) String() string
- type UpdateCapacityCommitmentRequest
- func (*UpdateCapacityCommitmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCapacityCommitmentRequest) GetCapacityCommitment() *CapacityCommitment
- func (x *UpdateCapacityCommitmentRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateCapacityCommitmentRequest) ProtoMessage()
- func (x *UpdateCapacityCommitmentRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCapacityCommitmentRequest) Reset()
- func (x *UpdateCapacityCommitmentRequest) String() string
- type UpdateReservationRequest
- func (*UpdateReservationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateReservationRequest) GetReservation() *Reservation
- func (x *UpdateReservationRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateReservationRequest) ProtoMessage()
- func (x *UpdateReservationRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateReservationRequest) Reset()
- func (x *UpdateReservationRequest) String() string
Constants ¶
const ( ReservationService_CreateReservation_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/CreateReservation" ReservationService_ListReservations_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/ListReservations" ReservationService_GetReservation_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/GetReservation" ReservationService_DeleteReservation_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/DeleteReservation" ReservationService_UpdateReservation_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/UpdateReservation" ReservationService_FailoverReservation_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/FailoverReservation" ReservationService_CreateCapacityCommitment_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/CreateCapacityCommitment" ReservationService_ListCapacityCommitments_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/ListCapacityCommitments" ReservationService_GetCapacityCommitment_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/GetCapacityCommitment" ReservationService_DeleteCapacityCommitment_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/DeleteCapacityCommitment" ReservationService_UpdateCapacityCommitment_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/UpdateCapacityCommitment" ReservationService_SplitCapacityCommitment_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/SplitCapacityCommitment" ReservationService_MergeCapacityCommitments_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/MergeCapacityCommitments" ReservationService_CreateAssignment_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/CreateAssignment" ReservationService_ListAssignments_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/ListAssignments" ReservationService_DeleteAssignment_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/DeleteAssignment" ReservationService_SearchAssignments_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/SearchAssignments" ReservationService_SearchAllAssignments_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/SearchAllAssignments" ReservationService_MoveAssignment_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/MoveAssignment" ReservationService_UpdateAssignment_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/UpdateAssignment" ReservationService_GetBiReservation_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/GetBiReservation" ReservationService_UpdateBiReservation_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/UpdateBiReservation" ReservationService_GetIamPolicy_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/GetIamPolicy" ReservationService_SetIamPolicy_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/SetIamPolicy" ReservationService_TestIamPermissions_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/TestIamPermissions" ReservationService_CreateReservationGroup_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/CreateReservationGroup" ReservationService_GetReservationGroup_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/GetReservationGroup" ReservationService_DeleteReservationGroup_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/DeleteReservationGroup" ReservationService_ListReservationGroups_FullMethodName = "/google.cloud.bigquery.reservation.v1.ReservationService/ListReservationGroups" )
Variables ¶
var ( Edition_name = map[int32]string{ 0: "EDITION_UNSPECIFIED", 1: "STANDARD", 2: "ENTERPRISE", 3: "ENTERPRISE_PLUS", } Edition_value = map[string]int32{ "EDITION_UNSPECIFIED": 0, "STANDARD": 1, "ENTERPRISE": 2, "ENTERPRISE_PLUS": 3, } )
Enum value maps for Edition.
var ( FailoverMode_name = map[int32]string{ 0: "FAILOVER_MODE_UNSPECIFIED", 1: "SOFT", 2: "HARD", } FailoverMode_value = map[string]int32{ "FAILOVER_MODE_UNSPECIFIED": 0, "SOFT": 1, "HARD": 2, } )
Enum value maps for FailoverMode.
var ( Reservation_ScalingMode_name = map[int32]string{ 0: "SCALING_MODE_UNSPECIFIED", 1: "AUTOSCALE_ONLY", 2: "IDLE_SLOTS_ONLY", 3: "ALL_SLOTS", } Reservation_ScalingMode_value = map[string]int32{ "SCALING_MODE_UNSPECIFIED": 0, "AUTOSCALE_ONLY": 1, "IDLE_SLOTS_ONLY": 2, "ALL_SLOTS": 3, } )
Enum value maps for Reservation_ScalingMode.
var ( CapacityCommitment_CommitmentPlan_name = map[int32]string{ 0: "COMMITMENT_PLAN_UNSPECIFIED", 3: "FLEX", 7: "FLEX_FLAT_RATE", 5: "TRIAL", 2: "MONTHLY", 8: "MONTHLY_FLAT_RATE", 4: "ANNUAL", 9: "ANNUAL_FLAT_RATE", 10: "THREE_YEAR", 6: "NONE", } CapacityCommitment_CommitmentPlan_value = map[string]int32{ "COMMITMENT_PLAN_UNSPECIFIED": 0, "FLEX": 3, "FLEX_FLAT_RATE": 7, "TRIAL": 5, "MONTHLY": 2, "MONTHLY_FLAT_RATE": 8, "ANNUAL": 4, "ANNUAL_FLAT_RATE": 9, "THREE_YEAR": 10, "NONE": 6, } )
Enum value maps for CapacityCommitment_CommitmentPlan.
var ( CapacityCommitment_State_name = map[int32]string{ 0: "STATE_UNSPECIFIED", 1: "PENDING", 2: "ACTIVE", 3: "FAILED", } CapacityCommitment_State_value = map[string]int32{ "STATE_UNSPECIFIED": 0, "PENDING": 1, "ACTIVE": 2, "FAILED": 3, } )
Enum value maps for CapacityCommitment_State.
var ( Assignment_JobType_name = map[int32]string{ 0: "JOB_TYPE_UNSPECIFIED", 1: "PIPELINE", 2: "QUERY", 3: "ML_EXTERNAL", 4: "BACKGROUND", 6: "CONTINUOUS", 7: "BACKGROUND_CHANGE_DATA_CAPTURE", 8: "BACKGROUND_COLUMN_METADATA_INDEX", 9: "BACKGROUND_SEARCH_INDEX_REFRESH", } Assignment_JobType_value = map[string]int32{ "JOB_TYPE_UNSPECIFIED": 0, "PIPELINE": 1, "QUERY": 2, "ML_EXTERNAL": 3, "BACKGROUND": 4, "CONTINUOUS": 6, "BACKGROUND_CHANGE_DATA_CAPTURE": 7, "BACKGROUND_COLUMN_METADATA_INDEX": 8, "BACKGROUND_SEARCH_INDEX_REFRESH": 9, } )
Enum value maps for Assignment_JobType.
var ( Assignment_State_name = map[int32]string{ 0: "STATE_UNSPECIFIED", 1: "PENDING", 2: "ACTIVE", } Assignment_State_value = map[string]int32{ "STATE_UNSPECIFIED": 0, "PENDING": 1, "ACTIVE": 2, } )
Enum value maps for Assignment_State.
var File_google_cloud_bigquery_reservation_v1_reservation_proto protoreflect.FileDescriptor
var ReservationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "google.cloud.bigquery.reservation.v1.ReservationService", HandlerType: (*ReservationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateReservation", Handler: _ReservationService_CreateReservation_Handler, }, { MethodName: "ListReservations", Handler: _ReservationService_ListReservations_Handler, }, { MethodName: "GetReservation", Handler: _ReservationService_GetReservation_Handler, }, { MethodName: "DeleteReservation", Handler: _ReservationService_DeleteReservation_Handler, }, { MethodName: "UpdateReservation", Handler: _ReservationService_UpdateReservation_Handler, }, { MethodName: "FailoverReservation", Handler: _ReservationService_FailoverReservation_Handler, }, { MethodName: "CreateCapacityCommitment", Handler: _ReservationService_CreateCapacityCommitment_Handler, }, { MethodName: "ListCapacityCommitments", Handler: _ReservationService_ListCapacityCommitments_Handler, }, { MethodName: "GetCapacityCommitment", Handler: _ReservationService_GetCapacityCommitment_Handler, }, { MethodName: "DeleteCapacityCommitment", Handler: _ReservationService_DeleteCapacityCommitment_Handler, }, { MethodName: "UpdateCapacityCommitment", Handler: _ReservationService_UpdateCapacityCommitment_Handler, }, { MethodName: "SplitCapacityCommitment", Handler: _ReservationService_SplitCapacityCommitment_Handler, }, { MethodName: "MergeCapacityCommitments", Handler: _ReservationService_MergeCapacityCommitments_Handler, }, { MethodName: "CreateAssignment", Handler: _ReservationService_CreateAssignment_Handler, }, { MethodName: "ListAssignments", Handler: _ReservationService_ListAssignments_Handler, }, { MethodName: "DeleteAssignment", Handler: _ReservationService_DeleteAssignment_Handler, }, { MethodName: "SearchAssignments", Handler: _ReservationService_SearchAssignments_Handler, }, { MethodName: "SearchAllAssignments", Handler: _ReservationService_SearchAllAssignments_Handler, }, { MethodName: "MoveAssignment", Handler: _ReservationService_MoveAssignment_Handler, }, { MethodName: "UpdateAssignment", Handler: _ReservationService_UpdateAssignment_Handler, }, { MethodName: "GetBiReservation", Handler: _ReservationService_GetBiReservation_Handler, }, { MethodName: "UpdateBiReservation", Handler: _ReservationService_UpdateBiReservation_Handler, }, { MethodName: "GetIamPolicy", Handler: _ReservationService_GetIamPolicy_Handler, }, { MethodName: "SetIamPolicy", Handler: _ReservationService_SetIamPolicy_Handler, }, { MethodName: "TestIamPermissions", Handler: _ReservationService_TestIamPermissions_Handler, }, { MethodName: "CreateReservationGroup", Handler: _ReservationService_CreateReservationGroup_Handler, }, { MethodName: "GetReservationGroup", Handler: _ReservationService_GetReservationGroup_Handler, }, { MethodName: "DeleteReservationGroup", Handler: _ReservationService_DeleteReservationGroup_Handler, }, { MethodName: "ListReservationGroups", Handler: _ReservationService_ListReservationGroups_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "google/cloud/bigquery/reservation/v1/reservation.proto", }
ReservationService_ServiceDesc is the grpc.ServiceDesc for ReservationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterReservationServiceServer ¶
func RegisterReservationServiceServer(s grpc.ServiceRegistrar, srv ReservationServiceServer)
Types ¶
type Assignment ¶
type Assignment struct {
// 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.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The resource which will use the reservation. E.g.
// `projects/myproject`, `folders/123`, or `organizations/456`.
Assignee string `protobuf:"bytes,4,opt,name=assignee,proto3" json:"assignee,omitempty"`
// Optional. Which type of jobs will use the reservation.
JobType Assignment_JobType `` /* 144-byte string literal not displayed */
// Output only. State of the assignment.
State Assignment_State `protobuf:"varint,6,opt,name=state,proto3,enum=google.cloud.bigquery.reservation.v1.Assignment_State" json:"state,omitempty"`
// Optional. Deprecated: "Gemini in BigQuery" is now available by
// default for all BigQuery editions and should not be explicitly set.
// Controls if "Gemini in BigQuery"
// (https://cloud.google.com/gemini/docs/bigquery/overview) features should be
// enabled for this reservation assignment.
//
// Deprecated: Marked as deprecated in google/cloud/bigquery/reservation/v1/reservation.proto.
EnableGeminiInBigquery bool `` /* 133-byte string literal not displayed */
// Optional. The scheduling policy to use for jobs and queries of this
// assignee when running under the associated reservation. The scheduling
// policy controls how the reservation's resources are distributed. This
// overrides the default scheduling policy specified on the reservation.
//
// This feature is not yet generally available.
SchedulingPolicy *SchedulingPolicy `protobuf:"bytes,11,opt,name=scheduling_policy,json=schedulingPolicy,proto3" json:"scheduling_policy,omitempty"`
// contains filtered or unexported fields
}
An assignment allows a project to submit jobs of a certain type using slots from the specified reservation.
func (*Assignment) Descriptor
deprecated
func (*Assignment) Descriptor() ([]byte, []int)
Deprecated: Use Assignment.ProtoReflect.Descriptor instead.
func (*Assignment) GetAssignee ¶
func (x *Assignment) GetAssignee() string
func (*Assignment) GetEnableGeminiInBigquery
deprecated
added in
v1.67.0
func (x *Assignment) GetEnableGeminiInBigquery() bool
Deprecated: Marked as deprecated in google/cloud/bigquery/reservation/v1/reservation.proto.
func (*Assignment) GetJobType ¶
func (x *Assignment) GetJobType() Assignment_JobType
func (*Assignment) GetName ¶
func (x *Assignment) GetName() string
func (*Assignment) GetSchedulingPolicy ¶ added in v1.72.0
func (x *Assignment) GetSchedulingPolicy() *SchedulingPolicy
func (*Assignment) GetState ¶
func (x *Assignment) GetState() Assignment_State
func (*Assignment) ProtoMessage ¶
func (*Assignment) ProtoMessage()
func (*Assignment) ProtoReflect ¶
func (x *Assignment) ProtoReflect() protoreflect.Message
func (*Assignment) Reset ¶
func (x *Assignment) Reset()
func (*Assignment) String ¶
func (x *Assignment) String() string
type Assignment_JobType ¶
type Assignment_JobType int32
Types of job, which could be specified when using the reservation.
const ( // Invalid type. Requests with this value will be rejected with // error code `google.rpc.Code.INVALID_ARGUMENT`. Assignment_JOB_TYPE_UNSPECIFIED Assignment_JobType = 0 // Pipeline (load/export) jobs from the project will use the reservation. Assignment_PIPELINE Assignment_JobType = 1 // Query jobs from the project will use the reservation. Assignment_QUERY Assignment_JobType = 2 // BigQuery ML jobs that use services external to BigQuery for model // training. These jobs will not utilize idle slots from other reservations. Assignment_ML_EXTERNAL Assignment_JobType = 3 // Background jobs that BigQuery runs for the customers in the background. Assignment_BACKGROUND Assignment_JobType = 4 // Continuous SQL jobs will use this reservation. Reservations with // continuous assignments cannot be mixed with non-continuous assignments. Assignment_CONTINUOUS Assignment_JobType = 6 // Finer granularity background jobs for capturing changes in a source // database and streaming them into BigQuery. Reservations with this job // type take priority over a default BACKGROUND reservation assignment (if // it exists). Assignment_BACKGROUND_CHANGE_DATA_CAPTURE Assignment_JobType = 7 // Finer granularity background jobs for refreshing cached metadata for // BigQuery tables. Reservations with this job type take priority over a // default BACKGROUND reservation assignment (if it exists). Assignment_BACKGROUND_COLUMN_METADATA_INDEX Assignment_JobType = 8 // Finer granularity background jobs for refreshing search indexes upon // BigQuery table columns. Reservations with this job type // take priority over a default BACKGROUND reservation assignment (if it // exists). Assignment_BACKGROUND_SEARCH_INDEX_REFRESH Assignment_JobType = 9 )
func (Assignment_JobType) Descriptor ¶
func (Assignment_JobType) Descriptor() protoreflect.EnumDescriptor
func (Assignment_JobType) Enum ¶
func (x Assignment_JobType) Enum() *Assignment_JobType
func (Assignment_JobType) EnumDescriptor
deprecated
func (Assignment_JobType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Assignment_JobType.Descriptor instead.
func (Assignment_JobType) Number ¶
func (x Assignment_JobType) Number() protoreflect.EnumNumber
func (Assignment_JobType) String ¶
func (x Assignment_JobType) String() string
func (Assignment_JobType) Type ¶
func (Assignment_JobType) Type() protoreflect.EnumType
type Assignment_State ¶
type Assignment_State int32
Assignment will remain in PENDING state if no active capacity commitment is present. It will become ACTIVE when some capacity commitment becomes active.
const ( // Invalid state value. Assignment_STATE_UNSPECIFIED Assignment_State = 0 // Queries from assignee will be executed as on-demand, if related // assignment is pending. Assignment_PENDING Assignment_State = 1 // Assignment is ready. Assignment_ACTIVE Assignment_State = 2 )
func (Assignment_State) Descriptor ¶
func (Assignment_State) Descriptor() protoreflect.EnumDescriptor
func (Assignment_State) Enum ¶
func (x Assignment_State) Enum() *Assignment_State
func (Assignment_State) EnumDescriptor
deprecated
func (Assignment_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use Assignment_State.Descriptor instead.
func (Assignment_State) Number ¶
func (x Assignment_State) Number() protoreflect.EnumNumber
func (Assignment_State) String ¶
func (x Assignment_State) String() string
func (Assignment_State) Type ¶
func (Assignment_State) Type() protoreflect.EnumType
type BiReservation ¶
type BiReservation struct {
// Identifier. The resource name of the singleton BI reservation.
// Reservation names have the form
// `projects/{project_id}/locations/{location_id}/biReservation`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The last update timestamp of a reservation.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. Size of a reservation, in bytes.
Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
// Optional. Preferred tables to use BI capacity for.
PreferredTables []*TableReference `protobuf:"bytes,5,rep,name=preferred_tables,json=preferredTables,proto3" json:"preferred_tables,omitempty"`
// contains filtered or unexported fields
}
Represents a BI Reservation.
func (*BiReservation) Descriptor
deprecated
func (*BiReservation) Descriptor() ([]byte, []int)
Deprecated: Use BiReservation.ProtoReflect.Descriptor instead.
func (*BiReservation) GetName ¶
func (x *BiReservation) GetName() string
func (*BiReservation) GetPreferredTables ¶
func (x *BiReservation) GetPreferredTables() []*TableReference
func (*BiReservation) GetSize ¶
func (x *BiReservation) GetSize() int64
func (*BiReservation) GetUpdateTime ¶
func (x *BiReservation) GetUpdateTime() *timestamppb.Timestamp
func (*BiReservation) ProtoMessage ¶
func (*BiReservation) ProtoMessage()
func (*BiReservation) ProtoReflect ¶
func (x *BiReservation) ProtoReflect() protoreflect.Message
func (*BiReservation) Reset ¶
func (x *BiReservation) Reset()
func (*BiReservation) String ¶
func (x *BiReservation) String() string
type CapacityCommitment ¶
type CapacityCommitment struct {
// Output only. The resource name of the capacity commitment, e.g.,
// `projects/myproject/locations/US/capacityCommitments/123`
// The commitment_id must only contain lower case alphanumeric characters or
// dashes. It must start with a letter and must not end
// with a dash. Its maximum length is 64 characters.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Number of slots in this commitment.
SlotCount int64 `protobuf:"varint,2,opt,name=slot_count,json=slotCount,proto3" json:"slot_count,omitempty"`
// Optional. Capacity commitment commitment plan.
Plan CapacityCommitment_CommitmentPlan `` /* 138-byte string literal not displayed */
// Output only. State of the commitment.
State CapacityCommitment_State `` /* 131-byte string literal not displayed */
// Output only. The start of the current commitment period. It is applicable
// only for ACTIVE capacity commitments. Note after the commitment is renewed,
// commitment_start_time won't be changed. It refers to the start time of the
// original commitment.
CommitmentStartTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=commitment_start_time,json=commitmentStartTime,proto3" json:"commitment_start_time,omitempty"`
// Output only. The end of the current commitment period. It is applicable
// only for ACTIVE capacity commitments. Note after renewal,
// commitment_end_time is the time the renewed commitment expires. So itwould
// be at a time after commitment_start_time + committed period, because we
// don't change commitment_start_time ,
CommitmentEndTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=commitment_end_time,json=commitmentEndTime,proto3" json:"commitment_end_time,omitempty"`
// Output only. For FAILED commitment plan, provides the reason of failure.
FailureStatus *status.Status `protobuf:"bytes,7,opt,name=failure_status,json=failureStatus,proto3" json:"failure_status,omitempty"`
// Optional. The plan this capacity commitment is converted to after
// commitment_end_time passes. Once the plan is changed, committed period is
// extended according to commitment plan. Only applicable for ANNUAL and TRIAL
// commitments.
RenewalPlan CapacityCommitment_CommitmentPlan `` /* 171-byte string literal not displayed */
// Applicable only for commitments located within one of the BigQuery
// multi-regions (US or EU).
//
// If set to true, this commitment is placed in the organization's
// secondary region which is designated for disaster recovery purposes.
// If false, this commitment is placed in the organization's default region.
//
// NOTE: this is a preview feature. Project must be allow-listed in order to
// set this field.
//
// Deprecated: Marked as deprecated in google/cloud/bigquery/reservation/v1/reservation.proto.
MultiRegionAuxiliary bool `protobuf:"varint,10,opt,name=multi_region_auxiliary,json=multiRegionAuxiliary,proto3" json:"multi_region_auxiliary,omitempty"`
// Optional. Edition of the capacity commitment.
Edition Edition `protobuf:"varint,12,opt,name=edition,proto3,enum=google.cloud.bigquery.reservation.v1.Edition" json:"edition,omitempty"`
// Output only. If true, the commitment is a flat-rate commitment, otherwise,
// it's an edition commitment.
IsFlatRate bool `protobuf:"varint,14,opt,name=is_flat_rate,json=isFlatRate,proto3" json:"is_flat_rate,omitempty"`
// contains filtered or unexported fields
}
Capacity commitment is a way to purchase compute capacity for BigQuery jobs (in the form of slots) with some committed period of usage. Annual commitments renew by default. Commitments can be removed after their commitment end time passes.
In order to remove annual commitment, its plan needs to be changed to monthly or flex first.
A capacity commitment resource exists as a child resource of the admin project.
func (*CapacityCommitment) Descriptor
deprecated
func (*CapacityCommitment) Descriptor() ([]byte, []int)
Deprecated: Use CapacityCommitment.ProtoReflect.Descriptor instead.
func (*CapacityCommitment) GetCommitmentEndTime ¶
func (x *CapacityCommitment) GetCommitmentEndTime() *timestamppb.Timestamp
func (*CapacityCommitment) GetCommitmentStartTime ¶
func (x *CapacityCommitment) GetCommitmentStartTime() *timestamppb.Timestamp
func (*CapacityCommitment) GetEdition ¶ added in v1.50.0
func (x *CapacityCommitment) GetEdition() Edition
func (*CapacityCommitment) GetFailureStatus ¶
func (x *CapacityCommitment) GetFailureStatus() *status.Status
func (*CapacityCommitment) GetIsFlatRate ¶ added in v1.65.0
func (x *CapacityCommitment) GetIsFlatRate() bool
func (*CapacityCommitment) GetMultiRegionAuxiliary
deprecated
func (x *CapacityCommitment) GetMultiRegionAuxiliary() bool
Deprecated: Marked as deprecated in google/cloud/bigquery/reservation/v1/reservation.proto.
func (*CapacityCommitment) GetName ¶
func (x *CapacityCommitment) GetName() string
func (*CapacityCommitment) GetPlan ¶
func (x *CapacityCommitment) GetPlan() CapacityCommitment_CommitmentPlan
func (*CapacityCommitment) GetRenewalPlan ¶
func (x *CapacityCommitment) GetRenewalPlan() CapacityCommitment_CommitmentPlan
func (*CapacityCommitment) GetSlotCount ¶
func (x *CapacityCommitment) GetSlotCount() int64
func (*CapacityCommitment) GetState ¶
func (x *CapacityCommitment) GetState() CapacityCommitment_State
func (*CapacityCommitment) ProtoMessage ¶
func (*CapacityCommitment) ProtoMessage()
func (*CapacityCommitment) ProtoReflect ¶
func (x *CapacityCommitment) ProtoReflect() protoreflect.Message
func (*CapacityCommitment) Reset ¶
func (x *CapacityCommitment) Reset()
func (*CapacityCommitment) String ¶
func (x *CapacityCommitment) String() string
type CapacityCommitment_CommitmentPlan ¶
type CapacityCommitment_CommitmentPlan int32
Commitment plan defines the current committed period. Capacity commitment cannot be deleted during it's committed period.
const ( // Invalid plan value. Requests with this value will be rejected with // error code `google.rpc.Code.INVALID_ARGUMENT`. CapacityCommitment_COMMITMENT_PLAN_UNSPECIFIED CapacityCommitment_CommitmentPlan = 0 // Flex commitments have committed period of 1 minute after becoming ACTIVE. // After that, they are not in a committed period anymore and can be removed // any time. CapacityCommitment_FLEX CapacityCommitment_CommitmentPlan = 3 // Same as FLEX, should only be used if flat-rate commitments are still // available. // // Deprecated: Marked as deprecated in google/cloud/bigquery/reservation/v1/reservation.proto. CapacityCommitment_FLEX_FLAT_RATE CapacityCommitment_CommitmentPlan = 7 // Trial commitments have a committed period of 182 days after becoming // ACTIVE. After that, they are converted to a new commitment based on the // `renewal_plan`. Default `renewal_plan` for Trial commitment is Flex so // that it can be deleted right after committed period ends. // // Deprecated: Marked as deprecated in google/cloud/bigquery/reservation/v1/reservation.proto. CapacityCommitment_TRIAL CapacityCommitment_CommitmentPlan = 5 // Monthly commitments have a committed period of 30 days after becoming // ACTIVE. After that, they are not in a committed period anymore and can be // removed any time. CapacityCommitment_MONTHLY CapacityCommitment_CommitmentPlan = 2 // Same as MONTHLY, should only be used if flat-rate commitments are still // available. // // Deprecated: Marked as deprecated in google/cloud/bigquery/reservation/v1/reservation.proto. CapacityCommitment_MONTHLY_FLAT_RATE CapacityCommitment_CommitmentPlan = 8 // Annual commitments have a committed period of 365 days after becoming // ACTIVE. After that they are converted to a new commitment based on the // renewal_plan. CapacityCommitment_ANNUAL CapacityCommitment_CommitmentPlan = 4 // Same as ANNUAL, should only be used if flat-rate commitments are still // available. // // Deprecated: Marked as deprecated in google/cloud/bigquery/reservation/v1/reservation.proto. CapacityCommitment_ANNUAL_FLAT_RATE CapacityCommitment_CommitmentPlan = 9 // 3-year commitments have a committed period of 1095(3 * 365) days after // becoming ACTIVE. After that they are converted to a new commitment based // on the renewal_plan. CapacityCommitment_THREE_YEAR CapacityCommitment_CommitmentPlan = 10 // Should only be used for `renewal_plan` and is only meaningful if // edition is specified to values other than EDITION_UNSPECIFIED. Otherwise // CreateCapacityCommitmentRequest or UpdateCapacityCommitmentRequest will // be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`. If the // renewal_plan is NONE, capacity commitment will be removed at the end of // its commitment period. CapacityCommitment_NONE CapacityCommitment_CommitmentPlan = 6 )
func (CapacityCommitment_CommitmentPlan) Descriptor ¶
func (CapacityCommitment_CommitmentPlan) Descriptor() protoreflect.EnumDescriptor
func (CapacityCommitment_CommitmentPlan) Enum ¶
func (x CapacityCommitment_CommitmentPlan) Enum() *CapacityCommitment_CommitmentPlan
func (CapacityCommitment_CommitmentPlan) EnumDescriptor
deprecated
func (CapacityCommitment_CommitmentPlan) EnumDescriptor() ([]byte, []int)
Deprecated: Use CapacityCommitment_CommitmentPlan.Descriptor instead.
func (CapacityCommitment_CommitmentPlan) Number ¶
func (x CapacityCommitment_CommitmentPlan) Number() protoreflect.EnumNumber
func (CapacityCommitment_CommitmentPlan) String ¶
func (x CapacityCommitment_CommitmentPlan) String() string
func (CapacityCommitment_CommitmentPlan) Type ¶
func (CapacityCommitment_CommitmentPlan) Type() protoreflect.EnumType
type CapacityCommitment_State ¶
type CapacityCommitment_State int32
Capacity commitment can either become ACTIVE right away or transition from PENDING to ACTIVE or FAILED.
const ( // Invalid state value. CapacityCommitment_STATE_UNSPECIFIED CapacityCommitment_State = 0 // Capacity commitment is pending provisioning. Pending capacity commitment // does not contribute to the project's slot_capacity. CapacityCommitment_PENDING CapacityCommitment_State = 1 // Once slots are provisioned, capacity commitment becomes active. // slot_count is added to the project's slot_capacity. CapacityCommitment_ACTIVE CapacityCommitment_State = 2 // Capacity commitment is failed to be activated by the backend. CapacityCommitment_FAILED CapacityCommitment_State = 3 )
func (CapacityCommitment_State) Descriptor ¶
func (CapacityCommitment_State) Descriptor() protoreflect.EnumDescriptor
func (CapacityCommitment_State) Enum ¶
func (x CapacityCommitment_State) Enum() *CapacityCommitment_State
func (CapacityCommitment_State) EnumDescriptor
deprecated
func (CapacityCommitment_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use CapacityCommitment_State.Descriptor instead.
func (CapacityCommitment_State) Number ¶
func (x CapacityCommitment_State) Number() protoreflect.EnumNumber
func (CapacityCommitment_State) String ¶
func (x CapacityCommitment_State) String() string
func (CapacityCommitment_State) Type ¶
func (CapacityCommitment_State) Type() protoreflect.EnumType
type CreateAssignmentRequest ¶
type CreateAssignmentRequest struct {
// Required. The parent resource name of the assignment
// E.g. `projects/myproject/locations/US/reservations/team1-prod`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Assignment resource to create.
Assignment *Assignment `protobuf:"bytes,2,opt,name=assignment,proto3" json:"assignment,omitempty"`
// 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.
AssignmentId string `protobuf:"bytes,4,opt,name=assignment_id,json=assignmentId,proto3" json:"assignment_id,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.CreateAssignment][google.cloud.bigquery.reservation.v1.ReservationService.CreateAssignment]. Note: "bigquery.reservationAssignments.create" permission is required on the related assignee.
func (*CreateAssignmentRequest) Descriptor
deprecated
func (*CreateAssignmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAssignmentRequest.ProtoReflect.Descriptor instead.
func (*CreateAssignmentRequest) GetAssignment ¶
func (x *CreateAssignmentRequest) GetAssignment() *Assignment
func (*CreateAssignmentRequest) GetAssignmentId ¶
func (x *CreateAssignmentRequest) GetAssignmentId() string
func (*CreateAssignmentRequest) GetParent ¶
func (x *CreateAssignmentRequest) GetParent() string
func (*CreateAssignmentRequest) ProtoMessage ¶
func (*CreateAssignmentRequest) ProtoMessage()
func (*CreateAssignmentRequest) ProtoReflect ¶
func (x *CreateAssignmentRequest) ProtoReflect() protoreflect.Message
func (*CreateAssignmentRequest) Reset ¶
func (x *CreateAssignmentRequest) Reset()
func (*CreateAssignmentRequest) String ¶
func (x *CreateAssignmentRequest) String() string
type CreateCapacityCommitmentRequest ¶
type CreateCapacityCommitmentRequest struct {
// Required. Resource name of the parent reservation. E.g.,
//
// `projects/myproject/locations/US`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Content of the capacity commitment to create.
CapacityCommitment *CapacityCommitment `protobuf:"bytes,2,opt,name=capacity_commitment,json=capacityCommitment,proto3" json:"capacity_commitment,omitempty"`
// If true, fail the request if another project in the organization has a
// capacity commitment.
EnforceSingleAdminProjectPerOrg bool `` /* 163-byte string literal not displayed */
// The optional capacity commitment ID. Capacity commitment name will be
// generated automatically if this field is empty.
// This field must only contain lower case alphanumeric characters or dashes.
// The first and last character cannot be a dash. Max length is 64 characters.
// NOTE: this ID won't be kept if the capacity commitment is split or merged.
CapacityCommitmentId string `protobuf:"bytes,5,opt,name=capacity_commitment_id,json=capacityCommitmentId,proto3" json:"capacity_commitment_id,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.CreateCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.CreateCapacityCommitment].
func (*CreateCapacityCommitmentRequest) Descriptor
deprecated
func (*CreateCapacityCommitmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCapacityCommitmentRequest.ProtoReflect.Descriptor instead.
func (*CreateCapacityCommitmentRequest) GetCapacityCommitment ¶
func (x *CreateCapacityCommitmentRequest) GetCapacityCommitment() *CapacityCommitment
func (*CreateCapacityCommitmentRequest) GetCapacityCommitmentId ¶
func (x *CreateCapacityCommitmentRequest) GetCapacityCommitmentId() string
func (*CreateCapacityCommitmentRequest) GetEnforceSingleAdminProjectPerOrg ¶
func (x *CreateCapacityCommitmentRequest) GetEnforceSingleAdminProjectPerOrg() bool
func (*CreateCapacityCommitmentRequest) GetParent ¶
func (x *CreateCapacityCommitmentRequest) GetParent() string
func (*CreateCapacityCommitmentRequest) ProtoMessage ¶
func (*CreateCapacityCommitmentRequest) ProtoMessage()
func (*CreateCapacityCommitmentRequest) ProtoReflect ¶
func (x *CreateCapacityCommitmentRequest) ProtoReflect() protoreflect.Message
func (*CreateCapacityCommitmentRequest) Reset ¶
func (x *CreateCapacityCommitmentRequest) Reset()
func (*CreateCapacityCommitmentRequest) String ¶
func (x *CreateCapacityCommitmentRequest) String() string
type CreateReservationGroupRequest ¶ added in v1.72.0
type CreateReservationGroupRequest struct {
// Required. Project, location. E.g.,
// `projects/myproject/locations/US`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The reservation group ID. It must only contain lower case
// alphanumeric characters or dashes. It must start with a letter and must not
// end with a dash. Its maximum length is 64 characters.
ReservationGroupId string `protobuf:"bytes,2,opt,name=reservation_group_id,json=reservationGroupId,proto3" json:"reservation_group_id,omitempty"`
// Required. New Reservation Group to create.
ReservationGroup *ReservationGroup `protobuf:"bytes,3,opt,name=reservation_group,json=reservationGroup,proto3" json:"reservation_group,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.CreateReservationGroup][google.cloud.bigquery.reservation.v1.ReservationService.CreateReservationGroup].
func (*CreateReservationGroupRequest) Descriptor
deprecated
added in
v1.72.0
func (*CreateReservationGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateReservationGroupRequest.ProtoReflect.Descriptor instead.
func (*CreateReservationGroupRequest) GetParent ¶ added in v1.72.0
func (x *CreateReservationGroupRequest) GetParent() string
func (*CreateReservationGroupRequest) GetReservationGroup ¶ added in v1.72.0
func (x *CreateReservationGroupRequest) GetReservationGroup() *ReservationGroup
func (*CreateReservationGroupRequest) GetReservationGroupId ¶ added in v1.72.0
func (x *CreateReservationGroupRequest) GetReservationGroupId() string
func (*CreateReservationGroupRequest) ProtoMessage ¶ added in v1.72.0
func (*CreateReservationGroupRequest) ProtoMessage()
func (*CreateReservationGroupRequest) ProtoReflect ¶ added in v1.72.0
func (x *CreateReservationGroupRequest) ProtoReflect() protoreflect.Message
func (*CreateReservationGroupRequest) Reset ¶ added in v1.72.0
func (x *CreateReservationGroupRequest) Reset()
func (*CreateReservationGroupRequest) String ¶ added in v1.72.0
func (x *CreateReservationGroupRequest) String() string
type CreateReservationRequest ¶
type CreateReservationRequest struct {
// Required. Project, location. E.g.,
// `projects/myproject/locations/US`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The reservation ID. It must only contain lower case alphanumeric
// characters or dashes. It must start with a letter and must not end
// with a dash. Its maximum length is 64 characters.
ReservationId string `protobuf:"bytes,2,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"`
// Definition of the new reservation to create.
Reservation *Reservation `protobuf:"bytes,3,opt,name=reservation,proto3" json:"reservation,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.CreateReservation][google.cloud.bigquery.reservation.v1.ReservationService.CreateReservation].
func (*CreateReservationRequest) Descriptor
deprecated
func (*CreateReservationRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateReservationRequest.ProtoReflect.Descriptor instead.
func (*CreateReservationRequest) GetParent ¶
func (x *CreateReservationRequest) GetParent() string
func (*CreateReservationRequest) GetReservation ¶
func (x *CreateReservationRequest) GetReservation() *Reservation
func (*CreateReservationRequest) GetReservationId ¶
func (x *CreateReservationRequest) GetReservationId() string
func (*CreateReservationRequest) ProtoMessage ¶
func (*CreateReservationRequest) ProtoMessage()
func (*CreateReservationRequest) ProtoReflect ¶
func (x *CreateReservationRequest) ProtoReflect() protoreflect.Message
func (*CreateReservationRequest) Reset ¶
func (x *CreateReservationRequest) Reset()
func (*CreateReservationRequest) String ¶
func (x *CreateReservationRequest) String() string
type DeleteAssignmentRequest ¶
type DeleteAssignmentRequest struct {
// Required. Name of the resource, e.g.
//
// `projects/myproject/locations/US/reservations/team1-prod/assignments/123`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.DeleteAssignment][google.cloud.bigquery.reservation.v1.ReservationService.DeleteAssignment]. Note: "bigquery.reservationAssignments.delete" permission is required on the related assignee.
func (*DeleteAssignmentRequest) Descriptor
deprecated
func (*DeleteAssignmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAssignmentRequest.ProtoReflect.Descriptor instead.
func (*DeleteAssignmentRequest) GetName ¶
func (x *DeleteAssignmentRequest) GetName() string
func (*DeleteAssignmentRequest) ProtoMessage ¶
func (*DeleteAssignmentRequest) ProtoMessage()
func (*DeleteAssignmentRequest) ProtoReflect ¶
func (x *DeleteAssignmentRequest) ProtoReflect() protoreflect.Message
func (*DeleteAssignmentRequest) Reset ¶
func (x *DeleteAssignmentRequest) Reset()
func (*DeleteAssignmentRequest) String ¶
func (x *DeleteAssignmentRequest) String() string
type DeleteCapacityCommitmentRequest ¶
type DeleteCapacityCommitmentRequest struct {
// Required. Resource name of the capacity commitment to delete. E.g.,
//
// `projects/myproject/locations/US/capacityCommitments/123`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Can be used to force delete commitments even if assignments exist. Deleting
// commitments with assignments may cause queries to fail if they no longer
// have access to slots.
Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.DeleteCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.DeleteCapacityCommitment].
func (*DeleteCapacityCommitmentRequest) Descriptor
deprecated
func (*DeleteCapacityCommitmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCapacityCommitmentRequest.ProtoReflect.Descriptor instead.
func (*DeleteCapacityCommitmentRequest) GetForce ¶
func (x *DeleteCapacityCommitmentRequest) GetForce() bool
func (*DeleteCapacityCommitmentRequest) GetName ¶
func (x *DeleteCapacityCommitmentRequest) GetName() string
func (*DeleteCapacityCommitmentRequest) ProtoMessage ¶
func (*DeleteCapacityCommitmentRequest) ProtoMessage()
func (*DeleteCapacityCommitmentRequest) ProtoReflect ¶
func (x *DeleteCapacityCommitmentRequest) ProtoReflect() protoreflect.Message
func (*DeleteCapacityCommitmentRequest) Reset ¶
func (x *DeleteCapacityCommitmentRequest) Reset()
func (*DeleteCapacityCommitmentRequest) String ¶
func (x *DeleteCapacityCommitmentRequest) String() string
type DeleteReservationGroupRequest ¶ added in v1.72.0
type DeleteReservationGroupRequest struct {
// Required. Resource name of the reservation group to retrieve. E.g.,
//
// `projects/myproject/locations/US/reservationGroups/team1-prod`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.DeleteReservationGroup][google.cloud.bigquery.reservation.v1.ReservationService.DeleteReservationGroup].
func (*DeleteReservationGroupRequest) Descriptor
deprecated
added in
v1.72.0
func (*DeleteReservationGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteReservationGroupRequest.ProtoReflect.Descriptor instead.
func (*DeleteReservationGroupRequest) GetName ¶ added in v1.72.0
func (x *DeleteReservationGroupRequest) GetName() string
func (*DeleteReservationGroupRequest) ProtoMessage ¶ added in v1.72.0
func (*DeleteReservationGroupRequest) ProtoMessage()
func (*DeleteReservationGroupRequest) ProtoReflect ¶ added in v1.72.0
func (x *DeleteReservationGroupRequest) ProtoReflect() protoreflect.Message
func (*DeleteReservationGroupRequest) Reset ¶ added in v1.72.0
func (x *DeleteReservationGroupRequest) Reset()
func (*DeleteReservationGroupRequest) String ¶ added in v1.72.0
func (x *DeleteReservationGroupRequest) String() string
type DeleteReservationRequest ¶
type DeleteReservationRequest struct {
// Required. Resource name of the reservation to retrieve. E.g.,
//
// `projects/myproject/locations/US/reservations/team1-prod`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.DeleteReservation][google.cloud.bigquery.reservation.v1.ReservationService.DeleteReservation].
func (*DeleteReservationRequest) Descriptor
deprecated
func (*DeleteReservationRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteReservationRequest.ProtoReflect.Descriptor instead.
func (*DeleteReservationRequest) GetName ¶
func (x *DeleteReservationRequest) GetName() string
func (*DeleteReservationRequest) ProtoMessage ¶
func (*DeleteReservationRequest) ProtoMessage()
func (*DeleteReservationRequest) ProtoReflect ¶
func (x *DeleteReservationRequest) ProtoReflect() protoreflect.Message
func (*DeleteReservationRequest) Reset ¶
func (x *DeleteReservationRequest) Reset()
func (*DeleteReservationRequest) String ¶
func (x *DeleteReservationRequest) String() string
type Edition ¶ added in v1.50.0
type Edition int32
The type of editions. Different features and behaviors are provided to different editions Capacity commitments and reservations are linked to editions.
func (Edition) Descriptor ¶ added in v1.50.0
func (Edition) Descriptor() protoreflect.EnumDescriptor
func (Edition) EnumDescriptor
deprecated
added in
v1.50.0
func (Edition) Number ¶ added in v1.50.0
func (x Edition) Number() protoreflect.EnumNumber
func (Edition) Type ¶ added in v1.50.0
func (Edition) Type() protoreflect.EnumType
type FailoverMode ¶ added in v1.71.0
type FailoverMode int32
The failover mode when a user initiates a failover on a reservation determines how writes that are pending replication are handled after the failover is initiated.
const ( // Invalid value. FailoverMode_FAILOVER_MODE_UNSPECIFIED FailoverMode = 0 // When customers initiate a soft failover, BigQuery will wait until all // committed writes are replicated to the secondary. This mode requires both // regions to be available for the failover to succeed and prevents data loss. FailoverMode_SOFT FailoverMode = 1 // When customers initiate a hard failover, BigQuery will not wait until all // committed writes are replicated to the secondary. There can be data loss // for hard failover. FailoverMode_HARD FailoverMode = 2 )
func (FailoverMode) Descriptor ¶ added in v1.71.0
func (FailoverMode) Descriptor() protoreflect.EnumDescriptor
func (FailoverMode) Enum ¶ added in v1.71.0
func (x FailoverMode) Enum() *FailoverMode
func (FailoverMode) EnumDescriptor
deprecated
added in
v1.71.0
func (FailoverMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use FailoverMode.Descriptor instead.
func (FailoverMode) Number ¶ added in v1.71.0
func (x FailoverMode) Number() protoreflect.EnumNumber
func (FailoverMode) String ¶ added in v1.71.0
func (x FailoverMode) String() string
func (FailoverMode) Type ¶ added in v1.71.0
func (FailoverMode) Type() protoreflect.EnumType
type FailoverReservationRequest ¶ added in v1.65.0
type FailoverReservationRequest struct {
// Required. Resource name of the reservation to failover. E.g.,
//
// `projects/myproject/locations/US/reservations/team1-prod`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. A parameter that determines how writes that are pending
// replication are handled after a failover is initiated. If not specified,
// HARD failover mode is used by default.
FailoverMode FailoverMode `` /* 153-byte string literal not displayed */
// contains filtered or unexported fields
}
The request for ReservationService.FailoverReservation.
func (*FailoverReservationRequest) Descriptor
deprecated
added in
v1.65.0
func (*FailoverReservationRequest) Descriptor() ([]byte, []int)
Deprecated: Use FailoverReservationRequest.ProtoReflect.Descriptor instead.
func (*FailoverReservationRequest) GetFailoverMode ¶ added in v1.71.0
func (x *FailoverReservationRequest) GetFailoverMode() FailoverMode
func (*FailoverReservationRequest) GetName ¶ added in v1.65.0
func (x *FailoverReservationRequest) GetName() string
func (*FailoverReservationRequest) ProtoMessage ¶ added in v1.65.0
func (*FailoverReservationRequest) ProtoMessage()
func (*FailoverReservationRequest) ProtoReflect ¶ added in v1.65.0
func (x *FailoverReservationRequest) ProtoReflect() protoreflect.Message
func (*FailoverReservationRequest) Reset ¶ added in v1.65.0
func (x *FailoverReservationRequest) Reset()
func (*FailoverReservationRequest) String ¶ added in v1.65.0
func (x *FailoverReservationRequest) String() string
type GetBiReservationRequest ¶
type GetBiReservationRequest struct {
// Required. Name of the requested reservation, for example:
// `projects/{project_id}/locations/{location_id}/biReservation`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
A request to get a singleton BI reservation.
func (*GetBiReservationRequest) Descriptor
deprecated
func (*GetBiReservationRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBiReservationRequest.ProtoReflect.Descriptor instead.
func (*GetBiReservationRequest) GetName ¶
func (x *GetBiReservationRequest) GetName() string
func (*GetBiReservationRequest) ProtoMessage ¶
func (*GetBiReservationRequest) ProtoMessage()
func (*GetBiReservationRequest) ProtoReflect ¶
func (x *GetBiReservationRequest) ProtoReflect() protoreflect.Message
func (*GetBiReservationRequest) Reset ¶
func (x *GetBiReservationRequest) Reset()
func (*GetBiReservationRequest) String ¶
func (x *GetBiReservationRequest) String() string
type GetCapacityCommitmentRequest ¶
type GetCapacityCommitmentRequest struct {
// Required. Resource name of the capacity commitment to retrieve. E.g.,
//
// `projects/myproject/locations/US/capacityCommitments/123`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.GetCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.GetCapacityCommitment].
func (*GetCapacityCommitmentRequest) Descriptor
deprecated
func (*GetCapacityCommitmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCapacityCommitmentRequest.ProtoReflect.Descriptor instead.
func (*GetCapacityCommitmentRequest) GetName ¶
func (x *GetCapacityCommitmentRequest) GetName() string
func (*GetCapacityCommitmentRequest) ProtoMessage ¶
func (*GetCapacityCommitmentRequest) ProtoMessage()
func (*GetCapacityCommitmentRequest) ProtoReflect ¶
func (x *GetCapacityCommitmentRequest) ProtoReflect() protoreflect.Message
func (*GetCapacityCommitmentRequest) Reset ¶
func (x *GetCapacityCommitmentRequest) Reset()
func (*GetCapacityCommitmentRequest) String ¶
func (x *GetCapacityCommitmentRequest) String() string
type GetReservationGroupRequest ¶ added in v1.72.0
type GetReservationGroupRequest struct {
// Required. Resource name of the reservation group to retrieve. E.g.,
//
// `projects/myproject/locations/US/reservationGroups/team1-prod`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.GetReservationGroup][google.cloud.bigquery.reservation.v1.ReservationService.GetReservationGroup].
func (*GetReservationGroupRequest) Descriptor
deprecated
added in
v1.72.0
func (*GetReservationGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetReservationGroupRequest.ProtoReflect.Descriptor instead.
func (*GetReservationGroupRequest) GetName ¶ added in v1.72.0
func (x *GetReservationGroupRequest) GetName() string
func (*GetReservationGroupRequest) ProtoMessage ¶ added in v1.72.0
func (*GetReservationGroupRequest) ProtoMessage()
func (*GetReservationGroupRequest) ProtoReflect ¶ added in v1.72.0
func (x *GetReservationGroupRequest) ProtoReflect() protoreflect.Message
func (*GetReservationGroupRequest) Reset ¶ added in v1.72.0
func (x *GetReservationGroupRequest) Reset()
func (*GetReservationGroupRequest) String ¶ added in v1.72.0
func (x *GetReservationGroupRequest) String() string
type GetReservationRequest ¶
type GetReservationRequest struct {
// Required. Resource name of the reservation to retrieve. E.g.,
//
// `projects/myproject/locations/US/reservations/team1-prod`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.GetReservation][google.cloud.bigquery.reservation.v1.ReservationService.GetReservation].
func (*GetReservationRequest) Descriptor
deprecated
func (*GetReservationRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetReservationRequest.ProtoReflect.Descriptor instead.
func (*GetReservationRequest) GetName ¶
func (x *GetReservationRequest) GetName() string
func (*GetReservationRequest) ProtoMessage ¶
func (*GetReservationRequest) ProtoMessage()
func (*GetReservationRequest) ProtoReflect ¶
func (x *GetReservationRequest) ProtoReflect() protoreflect.Message
func (*GetReservationRequest) Reset ¶
func (x *GetReservationRequest) Reset()
func (*GetReservationRequest) String ¶
func (x *GetReservationRequest) String() string
type ListAssignmentsRequest ¶
type ListAssignmentsRequest struct {
// Required. The parent resource name e.g.:
//
// `projects/myproject/locations/US/reservations/team1-prod`
//
// Or:
//
// `projects/myproject/locations/US/reservations/-`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of items to return per page.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The next_page_token value returned from a previous List request, if any.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.ListAssignments][google.cloud.bigquery.reservation.v1.ReservationService.ListAssignments].
func (*ListAssignmentsRequest) Descriptor
deprecated
func (*ListAssignmentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAssignmentsRequest.ProtoReflect.Descriptor instead.
func (*ListAssignmentsRequest) GetPageSize ¶
func (x *ListAssignmentsRequest) GetPageSize() int32
func (*ListAssignmentsRequest) GetPageToken ¶
func (x *ListAssignmentsRequest) GetPageToken() string
func (*ListAssignmentsRequest) GetParent ¶
func (x *ListAssignmentsRequest) GetParent() string
func (*ListAssignmentsRequest) ProtoMessage ¶
func (*ListAssignmentsRequest) ProtoMessage()
func (*ListAssignmentsRequest) ProtoReflect ¶
func (x *ListAssignmentsRequest) ProtoReflect() protoreflect.Message
func (*ListAssignmentsRequest) Reset ¶
func (x *ListAssignmentsRequest) Reset()
func (*ListAssignmentsRequest) String ¶
func (x *ListAssignmentsRequest) String() string
type ListAssignmentsResponse ¶
type ListAssignmentsResponse struct {
// List of assignments visible to the user.
Assignments []*Assignment `protobuf:"bytes,1,rep,name=assignments,proto3" json:"assignments,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
The response for [ReservationService.ListAssignments][google.cloud.bigquery.reservation.v1.ReservationService.ListAssignments].
func (*ListAssignmentsResponse) Descriptor
deprecated
func (*ListAssignmentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAssignmentsResponse.ProtoReflect.Descriptor instead.
func (*ListAssignmentsResponse) GetAssignments ¶
func (x *ListAssignmentsResponse) GetAssignments() []*Assignment
func (*ListAssignmentsResponse) GetNextPageToken ¶
func (x *ListAssignmentsResponse) GetNextPageToken() string
func (*ListAssignmentsResponse) ProtoMessage ¶
func (*ListAssignmentsResponse) ProtoMessage()
func (*ListAssignmentsResponse) ProtoReflect ¶
func (x *ListAssignmentsResponse) ProtoReflect() protoreflect.Message
func (*ListAssignmentsResponse) Reset ¶
func (x *ListAssignmentsResponse) Reset()
func (*ListAssignmentsResponse) String ¶
func (x *ListAssignmentsResponse) String() string
type ListCapacityCommitmentsRequest ¶
type ListCapacityCommitmentsRequest struct {
// Required. Resource name of the parent reservation. E.g.,
//
// `projects/myproject/locations/US`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of items to return.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The next_page_token value returned from a previous List request, if any.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.ListCapacityCommitments][google.cloud.bigquery.reservation.v1.ReservationService.ListCapacityCommitments].
func (*ListCapacityCommitmentsRequest) Descriptor
deprecated
func (*ListCapacityCommitmentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCapacityCommitmentsRequest.ProtoReflect.Descriptor instead.
func (*ListCapacityCommitmentsRequest) GetPageSize ¶
func (x *ListCapacityCommitmentsRequest) GetPageSize() int32
func (*ListCapacityCommitmentsRequest) GetPageToken ¶
func (x *ListCapacityCommitmentsRequest) GetPageToken() string
func (*ListCapacityCommitmentsRequest) GetParent ¶
func (x *ListCapacityCommitmentsRequest) GetParent() string
func (*ListCapacityCommitmentsRequest) ProtoMessage ¶
func (*ListCapacityCommitmentsRequest) ProtoMessage()
func (*ListCapacityCommitmentsRequest) ProtoReflect ¶
func (x *ListCapacityCommitmentsRequest) ProtoReflect() protoreflect.Message
func (*ListCapacityCommitmentsRequest) Reset ¶
func (x *ListCapacityCommitmentsRequest) Reset()
func (*ListCapacityCommitmentsRequest) String ¶
func (x *ListCapacityCommitmentsRequest) String() string
type ListCapacityCommitmentsResponse ¶
type ListCapacityCommitmentsResponse struct {
// List of capacity commitments visible to the user.
CapacityCommitments []*CapacityCommitment `protobuf:"bytes,1,rep,name=capacity_commitments,json=capacityCommitments,proto3" json:"capacity_commitments,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
The response for [ReservationService.ListCapacityCommitments][google.cloud.bigquery.reservation.v1.ReservationService.ListCapacityCommitments].
func (*ListCapacityCommitmentsResponse) Descriptor
deprecated
func (*ListCapacityCommitmentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCapacityCommitmentsResponse.ProtoReflect.Descriptor instead.
func (*ListCapacityCommitmentsResponse) GetCapacityCommitments ¶
func (x *ListCapacityCommitmentsResponse) GetCapacityCommitments() []*CapacityCommitment
func (*ListCapacityCommitmentsResponse) GetNextPageToken ¶
func (x *ListCapacityCommitmentsResponse) GetNextPageToken() string
func (*ListCapacityCommitmentsResponse) ProtoMessage ¶
func (*ListCapacityCommitmentsResponse) ProtoMessage()
func (*ListCapacityCommitmentsResponse) ProtoReflect ¶
func (x *ListCapacityCommitmentsResponse) ProtoReflect() protoreflect.Message
func (*ListCapacityCommitmentsResponse) Reset ¶
func (x *ListCapacityCommitmentsResponse) Reset()
func (*ListCapacityCommitmentsResponse) String ¶
func (x *ListCapacityCommitmentsResponse) String() string
type ListReservationGroupsRequest ¶ added in v1.72.0
type ListReservationGroupsRequest struct {
// Required. The parent resource name containing project and location, e.g.:
//
// `projects/myproject/locations/US`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of items to return per page.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The next_page_token value returned from a previous List request, if any.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.ListReservationGroups][google.cloud.bigquery.reservation.v1.ReservationService.ListReservationGroups].
func (*ListReservationGroupsRequest) Descriptor
deprecated
added in
v1.72.0
func (*ListReservationGroupsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListReservationGroupsRequest.ProtoReflect.Descriptor instead.
func (*ListReservationGroupsRequest) GetPageSize ¶ added in v1.72.0
func (x *ListReservationGroupsRequest) GetPageSize() int32
func (*ListReservationGroupsRequest) GetPageToken ¶ added in v1.72.0
func (x *ListReservationGroupsRequest) GetPageToken() string
func (*ListReservationGroupsRequest) GetParent ¶ added in v1.72.0
func (x *ListReservationGroupsRequest) GetParent() string
func (*ListReservationGroupsRequest) ProtoMessage ¶ added in v1.72.0
func (*ListReservationGroupsRequest) ProtoMessage()
func (*ListReservationGroupsRequest) ProtoReflect ¶ added in v1.72.0
func (x *ListReservationGroupsRequest) ProtoReflect() protoreflect.Message
func (*ListReservationGroupsRequest) Reset ¶ added in v1.72.0
func (x *ListReservationGroupsRequest) Reset()
func (*ListReservationGroupsRequest) String ¶ added in v1.72.0
func (x *ListReservationGroupsRequest) String() string
type ListReservationGroupsResponse ¶ added in v1.72.0
type ListReservationGroupsResponse struct {
// List of reservations visible to the user.
ReservationGroups []*ReservationGroup `protobuf:"bytes,1,rep,name=reservation_groups,json=reservationGroups,proto3" json:"reservation_groups,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
The response for [ReservationService.ListReservationGroups][google.cloud.bigquery.reservation.v1.ReservationService.ListReservationGroups].
func (*ListReservationGroupsResponse) Descriptor
deprecated
added in
v1.72.0
func (*ListReservationGroupsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListReservationGroupsResponse.ProtoReflect.Descriptor instead.
func (*ListReservationGroupsResponse) GetNextPageToken ¶ added in v1.72.0
func (x *ListReservationGroupsResponse) GetNextPageToken() string
func (*ListReservationGroupsResponse) GetReservationGroups ¶ added in v1.72.0
func (x *ListReservationGroupsResponse) GetReservationGroups() []*ReservationGroup
func (*ListReservationGroupsResponse) ProtoMessage ¶ added in v1.72.0
func (*ListReservationGroupsResponse) ProtoMessage()
func (*ListReservationGroupsResponse) ProtoReflect ¶ added in v1.72.0
func (x *ListReservationGroupsResponse) ProtoReflect() protoreflect.Message
func (*ListReservationGroupsResponse) Reset ¶ added in v1.72.0
func (x *ListReservationGroupsResponse) Reset()
func (*ListReservationGroupsResponse) String ¶ added in v1.72.0
func (x *ListReservationGroupsResponse) String() string
type ListReservationsRequest ¶
type ListReservationsRequest struct {
// Required. The parent resource name containing project and location, e.g.:
//
// `projects/myproject/locations/US`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of items to return per page.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The next_page_token value returned from a previous List request, if any.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.ListReservations][google.cloud.bigquery.reservation.v1.ReservationService.ListReservations].
func (*ListReservationsRequest) Descriptor
deprecated
func (*ListReservationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListReservationsRequest.ProtoReflect.Descriptor instead.
func (*ListReservationsRequest) GetPageSize ¶
func (x *ListReservationsRequest) GetPageSize() int32
func (*ListReservationsRequest) GetPageToken ¶
func (x *ListReservationsRequest) GetPageToken() string
func (*ListReservationsRequest) GetParent ¶
func (x *ListReservationsRequest) GetParent() string
func (*ListReservationsRequest) ProtoMessage ¶
func (*ListReservationsRequest) ProtoMessage()
func (*ListReservationsRequest) ProtoReflect ¶
func (x *ListReservationsRequest) ProtoReflect() protoreflect.Message
func (*ListReservationsRequest) Reset ¶
func (x *ListReservationsRequest) Reset()
func (*ListReservationsRequest) String ¶
func (x *ListReservationsRequest) String() string
type ListReservationsResponse ¶
type ListReservationsResponse struct {
// List of reservations visible to the user.
Reservations []*Reservation `protobuf:"bytes,1,rep,name=reservations,proto3" json:"reservations,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
The response for [ReservationService.ListReservations][google.cloud.bigquery.reservation.v1.ReservationService.ListReservations].
func (*ListReservationsResponse) Descriptor
deprecated
func (*ListReservationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListReservationsResponse.ProtoReflect.Descriptor instead.
func (*ListReservationsResponse) GetNextPageToken ¶
func (x *ListReservationsResponse) GetNextPageToken() string
func (*ListReservationsResponse) GetReservations ¶
func (x *ListReservationsResponse) GetReservations() []*Reservation
func (*ListReservationsResponse) ProtoMessage ¶
func (*ListReservationsResponse) ProtoMessage()
func (*ListReservationsResponse) ProtoReflect ¶
func (x *ListReservationsResponse) ProtoReflect() protoreflect.Message
func (*ListReservationsResponse) Reset ¶
func (x *ListReservationsResponse) Reset()
func (*ListReservationsResponse) String ¶
func (x *ListReservationsResponse) String() string
type MergeCapacityCommitmentsRequest ¶
type MergeCapacityCommitmentsRequest struct {
// Parent resource that identifies admin project and location e.g.,
//
// `projects/myproject/locations/us`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Ids of capacity commitments to merge.
// These capacity commitments must exist under admin project and location
// specified in the parent.
// ID is the last portion of capacity commitment name e.g., 'abc' for
// projects/myproject/locations/US/capacityCommitments/abc
CapacityCommitmentIds []string `` /* 126-byte string literal not displayed */
// Optional. The optional resulting capacity commitment ID. Capacity
// commitment name will be generated automatically if this field is empty.
// This field must only contain lower case alphanumeric characters or dashes.
// The first and last character cannot be a dash. Max length is 64 characters.
CapacityCommitmentId string `protobuf:"bytes,3,opt,name=capacity_commitment_id,json=capacityCommitmentId,proto3" json:"capacity_commitment_id,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.MergeCapacityCommitments][google.cloud.bigquery.reservation.v1.ReservationService.MergeCapacityCommitments].
func (*MergeCapacityCommitmentsRequest) Descriptor
deprecated
func (*MergeCapacityCommitmentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use MergeCapacityCommitmentsRequest.ProtoReflect.Descriptor instead.
func (*MergeCapacityCommitmentsRequest) GetCapacityCommitmentId ¶ added in v1.72.0
func (x *MergeCapacityCommitmentsRequest) GetCapacityCommitmentId() string
func (*MergeCapacityCommitmentsRequest) GetCapacityCommitmentIds ¶
func (x *MergeCapacityCommitmentsRequest) GetCapacityCommitmentIds() []string
func (*MergeCapacityCommitmentsRequest) GetParent ¶
func (x *MergeCapacityCommitmentsRequest) GetParent() string
func (*MergeCapacityCommitmentsRequest) ProtoMessage ¶
func (*MergeCapacityCommitmentsRequest) ProtoMessage()
func (*MergeCapacityCommitmentsRequest) ProtoReflect ¶
func (x *MergeCapacityCommitmentsRequest) ProtoReflect() protoreflect.Message
func (*MergeCapacityCommitmentsRequest) Reset ¶
func (x *MergeCapacityCommitmentsRequest) Reset()
func (*MergeCapacityCommitmentsRequest) String ¶
func (x *MergeCapacityCommitmentsRequest) String() string
type MoveAssignmentRequest ¶
type MoveAssignmentRequest struct {
// Required. The resource name of the assignment,
// e.g.
// `projects/myproject/locations/US/reservations/team1-prod/assignments/123`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The new reservation ID, e.g.:
//
// `projects/myotherproject/locations/US/reservations/team2-prod`
DestinationId string `protobuf:"bytes,3,opt,name=destination_id,json=destinationId,proto3" json:"destination_id,omitempty"`
// The optional assignment ID. A new assignment name is generated if this
// field is empty.
//
// This field can contain only lowercase alphanumeric characters or dashes.
// Max length is 64 characters.
AssignmentId string `protobuf:"bytes,5,opt,name=assignment_id,json=assignmentId,proto3" json:"assignment_id,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.MoveAssignment][google.cloud.bigquery.reservation.v1.ReservationService.MoveAssignment].
**Note**: "bigquery.reservationAssignments.create" permission is required on the destination_id.
**Note**: "bigquery.reservationAssignments.create" and "bigquery.reservationAssignments.delete" permission are required on the related assignee.
func (*MoveAssignmentRequest) Descriptor
deprecated
func (*MoveAssignmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use MoveAssignmentRequest.ProtoReflect.Descriptor instead.
func (*MoveAssignmentRequest) GetAssignmentId ¶ added in v1.50.0
func (x *MoveAssignmentRequest) GetAssignmentId() string
func (*MoveAssignmentRequest) GetDestinationId ¶
func (x *MoveAssignmentRequest) GetDestinationId() string
func (*MoveAssignmentRequest) GetName ¶
func (x *MoveAssignmentRequest) GetName() string
func (*MoveAssignmentRequest) ProtoMessage ¶
func (*MoveAssignmentRequest) ProtoMessage()
func (*MoveAssignmentRequest) ProtoReflect ¶
func (x *MoveAssignmentRequest) ProtoReflect() protoreflect.Message
func (*MoveAssignmentRequest) Reset ¶
func (x *MoveAssignmentRequest) Reset()
func (*MoveAssignmentRequest) String ¶
func (x *MoveAssignmentRequest) String() string
type Reservation ¶
type Reservation struct {
// Identifier. The resource name of the reservation, e.g.,
// `projects/*/locations/*/reservations/team1-prod`.
// The reservation_id must only contain lower case alphanumeric characters or
// dashes. It must start with a letter and must not end with a dash. Its
// maximum length is 64 characters.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Baseline slots available to this reservation. A slot is a unit of
// computational power in BigQuery, and serves as the unit of parallelism.
//
// Queries using this reservation might use more slots during runtime if
// ignore_idle_slots is set to false, or autoscaling is enabled.
//
// The total slot_capacity of the reservation and its siblings
// may exceed the total slot_count of capacity commitments. In that case, the
// exceeding slots will be charged with the autoscale SKU. You can increase
// the number of baseline slots in a reservation every few minutes. If you
// want to decrease your baseline slots, you are limited to once an hour if
// you have recently changed your baseline slot capacity and your baseline
// slots exceed your committed slots. Otherwise, you can decrease your
// baseline slots every few minutes.
SlotCapacity int64 `protobuf:"varint,2,opt,name=slot_capacity,json=slotCapacity,proto3" json:"slot_capacity,omitempty"`
// Optional. If false, any query or pipeline job using this reservation will
// use idle slots from other reservations within the same admin project. If
// true, a query or pipeline job using this reservation will execute with the
// slot capacity specified in the slot_capacity field at most.
IgnoreIdleSlots bool `protobuf:"varint,4,opt,name=ignore_idle_slots,json=ignoreIdleSlots,proto3" json:"ignore_idle_slots,omitempty"`
// Optional. The configuration parameters for the auto scaling feature.
Autoscale *Reservation_Autoscale `protobuf:"bytes,7,opt,name=autoscale,proto3" json:"autoscale,omitempty"`
// Optional. Job concurrency target which sets a soft upper bound on the
// number of jobs that can run concurrently in this reservation. This is a
// soft target due to asynchronous nature of the system and various
// optimizations for small queries. Default value is 0 which means that
// concurrency target will be automatically computed by the system. NOTE: this
// field is exposed as target job concurrency in the Information Schema, DDL
// and BigQuery CLI.
Concurrency int64 `protobuf:"varint,16,opt,name=concurrency,proto3" json:"concurrency,omitempty"`
// Output only. Creation time of the reservation.
CreationTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
// Output only. Last update time of the reservation.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Applicable only for reservations located within one of the BigQuery
// multi-regions (US or EU).
//
// If set to true, this reservation is placed in the organization's
// secondary region which is designated for disaster recovery purposes.
// If false, this reservation is placed in the organization's default region.
//
// NOTE: this is a preview feature. Project must be allow-listed in order to
// set this field.
//
// Deprecated: Marked as deprecated in google/cloud/bigquery/reservation/v1/reservation.proto.
MultiRegionAuxiliary bool `protobuf:"varint,14,opt,name=multi_region_auxiliary,json=multiRegionAuxiliary,proto3" json:"multi_region_auxiliary,omitempty"`
// Optional. Edition of the reservation.
Edition Edition `protobuf:"varint,17,opt,name=edition,proto3,enum=google.cloud.bigquery.reservation.v1.Edition" json:"edition,omitempty"`
// Output only. The current location of the reservation's primary replica.
// This field is only set for reservations using the managed disaster recovery
// feature.
PrimaryLocation string `protobuf:"bytes,18,opt,name=primary_location,json=primaryLocation,proto3" json:"primary_location,omitempty"`
// Optional. The current location of the reservation's secondary replica. This
// field is only set for reservations using the managed disaster recovery
// feature. Users can set this in create reservation calls
// to create a failover reservation or in update reservation calls to convert
// a non-failover reservation to a failover reservation(or vice versa).
SecondaryLocation string `protobuf:"bytes,19,opt,name=secondary_location,json=secondaryLocation,proto3" json:"secondary_location,omitempty"`
// Output only. The location where the reservation was originally created.
// This is set only during the failover reservation's creation. All billing
// charges for the failover reservation will be applied to this location.
OriginalPrimaryLocation string `` /* 133-byte string literal not displayed */
// Optional. The overall max slots for the reservation, covering slot_capacity
// (baseline), idle slots (if ignore_idle_slots is false) and scaled slots.
// If present, the reservation won't use more than the specified number of
// slots, even if there is demand and supply (from idle slots).
// NOTE: capping a reservation's idle slot usage is best effort and its
// usage may exceed the max_slots value. However, in terms of
// autoscale.current_slots (which accounts for the additional added slots), it
// will never exceed the max_slots - baseline.
//
// This field must be set together with the scaling_mode enum value,
// otherwise the request will be rejected with error code
// `google.rpc.Code.INVALID_ARGUMENT`.
//
// If the max_slots and scaling_mode are set, the autoscale or
// autoscale.max_slots field must be unset. Otherwise the request will be
// rejected with error code `google.rpc.Code.INVALID_ARGUMENT`. However, the
// autoscale field may still be in the output. The autopscale.max_slots will
// always show as 0 and the autoscaler.current_slots will represent the
// current slots from autoscaler excluding idle slots.
// For example, if the max_slots is 1000 and scaling_mode is AUTOSCALE_ONLY,
// then in the output, the autoscaler.max_slots will be 0 and the
// autoscaler.current_slots may be any value between 0 and 1000.
//
// If the max_slots is 1000, scaling_mode is ALL_SLOTS, the baseline is 100
// and idle slots usage is 200, then in the output, the autoscaler.max_slots
// will be 0 and the autoscaler.current_slots will not be higher than 700.
//
// If the max_slots is 1000, scaling_mode is IDLE_SLOTS_ONLY, then in the
// output, the autoscaler field will be null.
//
// If the max_slots and scaling_mode are set, then the ignore_idle_slots field
// must be aligned with the scaling_mode enum value.(See details in
// ScalingMode comments). Otherwise the request will be rejected with
// error code `google.rpc.Code.INVALID_ARGUMENT`.
//
// Please note, the max_slots is for user to manage the part of slots greater
// than the baseline. Therefore, we don't allow users to set max_slots smaller
// or equal to the baseline as it will not be meaningful. If the field is
// present and slot_capacity>=max_slots, requests will be rejected with error
// code `google.rpc.Code.INVALID_ARGUMENT`.
//
// Please note that if max_slots is set to 0, we will treat it as unset.
// Customers can set max_slots to 0 and set scaling_mode to
// SCALING_MODE_UNSPECIFIED to disable the max_slots feature.
MaxSlots *int64 `protobuf:"varint,21,opt,name=max_slots,json=maxSlots,proto3,oneof" json:"max_slots,omitempty"`
// Optional. The scaling mode for the reservation.
// If the field is present but max_slots is not present, requests will be
// rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.
ScalingMode Reservation_ScalingMode `` /* 162-byte string literal not displayed */
// Optional. The labels associated with this reservation. You can use these
// to organize and group your reservations.
// You can set this property when you create or update a reservation.
Labels map[string]string `` /* 140-byte string literal not displayed */
// Optional. The reservation group that this reservation belongs to.
// You can set this property when you create or update a reservation.
// Reservations do not need to belong to a reservation group.
// Format:
// projects/{project}/locations/{location}/reservationGroups/{reservation_group}
// or just {reservation_group}
ReservationGroup string `protobuf:"bytes,25,opt,name=reservation_group,json=reservationGroup,proto3" json:"reservation_group,omitempty"`
// Output only. The Disaster Recovery(DR) replication status of the
// reservation. This is only available for the primary replicas of DR/failover
// reservations and provides information about the both the staleness of the
// secondary and the last error encountered while trying to replicate changes
// from the primary to the secondary. If this field is blank, it means that
// the reservation is either not a DR reservation or the reservation is a DR
// secondary or that any replication operations on the reservation have
// succeeded.
ReplicationStatus *Reservation_ReplicationStatus `protobuf:"bytes,24,opt,name=replication_status,json=replicationStatus,proto3" json:"replication_status,omitempty"`
// Optional. The scheduling policy to use for jobs and queries running under
// this reservation. The scheduling policy controls how the reservation's
// resources are distributed.
//
// This feature is not yet generally available.
SchedulingPolicy *SchedulingPolicy `protobuf:"bytes,27,opt,name=scheduling_policy,json=schedulingPolicy,proto3" json:"scheduling_policy,omitempty"`
// contains filtered or unexported fields
}
A reservation is a mechanism used to guarantee slots to users.
func (*Reservation) Descriptor
deprecated
func (*Reservation) Descriptor() ([]byte, []int)
Deprecated: Use Reservation.ProtoReflect.Descriptor instead.
func (*Reservation) GetAutoscale ¶ added in v1.50.0
func (x *Reservation) GetAutoscale() *Reservation_Autoscale
func (*Reservation) GetConcurrency ¶
func (x *Reservation) GetConcurrency() int64
func (*Reservation) GetCreationTime ¶
func (x *Reservation) GetCreationTime() *timestamppb.Timestamp
func (*Reservation) GetEdition ¶ added in v1.50.0
func (x *Reservation) GetEdition() Edition
func (*Reservation) GetIgnoreIdleSlots ¶
func (x *Reservation) GetIgnoreIdleSlots() bool
func (*Reservation) GetLabels ¶ added in v1.72.0
func (x *Reservation) GetLabels() map[string]string
func (*Reservation) GetMaxSlots ¶ added in v1.70.0
func (x *Reservation) GetMaxSlots() int64
func (*Reservation) GetMultiRegionAuxiliary
deprecated
func (x *Reservation) GetMultiRegionAuxiliary() bool
Deprecated: Marked as deprecated in google/cloud/bigquery/reservation/v1/reservation.proto.
func (*Reservation) GetName ¶
func (x *Reservation) GetName() string
func (*Reservation) GetOriginalPrimaryLocation ¶ added in v1.65.0
func (x *Reservation) GetOriginalPrimaryLocation() string
func (*Reservation) GetPrimaryLocation ¶ added in v1.65.0
func (x *Reservation) GetPrimaryLocation() string
func (*Reservation) GetReplicationStatus ¶ added in v1.67.0
func (x *Reservation) GetReplicationStatus() *Reservation_ReplicationStatus
func (*Reservation) GetReservationGroup ¶ added in v1.72.0
func (x *Reservation) GetReservationGroup() string
func (*Reservation) GetScalingMode ¶ added in v1.70.0
func (x *Reservation) GetScalingMode() Reservation_ScalingMode
func (*Reservation) GetSchedulingPolicy ¶ added in v1.72.0
func (x *Reservation) GetSchedulingPolicy() *SchedulingPolicy
func (*Reservation) GetSecondaryLocation ¶ added in v1.65.0
func (x *Reservation) GetSecondaryLocation() string
func (*Reservation) GetSlotCapacity ¶
func (x *Reservation) GetSlotCapacity() int64
func (*Reservation) GetUpdateTime ¶
func (x *Reservation) GetUpdateTime() *timestamppb.Timestamp
func (*Reservation) ProtoMessage ¶
func (*Reservation) ProtoMessage()
func (*Reservation) ProtoReflect ¶
func (x *Reservation) ProtoReflect() protoreflect.Message
func (*Reservation) Reset ¶
func (x *Reservation) Reset()
func (*Reservation) String ¶
func (x *Reservation) String() string
type ReservationGroup ¶ added in v1.72.0
type ReservationGroup struct {
// Identifier. The resource name of the reservation group, e.g.,
// `projects/*/locations/*/reservationGroups/team1-prod`.
// The reservation_group_id must only contain lower case alphanumeric
// characters or dashes. It must start with a letter and must not end with a
// dash. Its maximum length is 64 characters.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
A reservation group is a container for reservations.
func (*ReservationGroup) Descriptor
deprecated
added in
v1.72.0
func (*ReservationGroup) Descriptor() ([]byte, []int)
Deprecated: Use ReservationGroup.ProtoReflect.Descriptor instead.
func (*ReservationGroup) GetName ¶ added in v1.72.0
func (x *ReservationGroup) GetName() string
func (*ReservationGroup) ProtoMessage ¶ added in v1.72.0
func (*ReservationGroup) ProtoMessage()
func (*ReservationGroup) ProtoReflect ¶ added in v1.72.0
func (x *ReservationGroup) ProtoReflect() protoreflect.Message
func (*ReservationGroup) Reset ¶ added in v1.72.0
func (x *ReservationGroup) Reset()
func (*ReservationGroup) String ¶ added in v1.72.0
func (x *ReservationGroup) String() string
type ReservationServiceClient ¶
type ReservationServiceClient interface {
// Creates a new reservation resource.
CreateReservation(ctx context.Context, in *CreateReservationRequest, opts ...grpc.CallOption) (*Reservation, error)
// Lists all the reservations for the project in the specified location.
ListReservations(ctx context.Context, in *ListReservationsRequest, opts ...grpc.CallOption) (*ListReservationsResponse, error)
// Returns information about the reservation.
GetReservation(ctx context.Context, in *GetReservationRequest, opts ...grpc.CallOption) (*Reservation, error)
// Deletes a reservation.
// Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has
// assignments.
DeleteReservation(ctx context.Context, in *DeleteReservationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Updates an existing reservation resource.
UpdateReservation(ctx context.Context, in *UpdateReservationRequest, opts ...grpc.CallOption) (*Reservation, error)
// Fail over a reservation to the secondary location. The operation should be
// done in the current secondary location, which will be promoted to the
// new primary location for the reservation.
// Attempting to failover a reservation in the current primary location will
// fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.
FailoverReservation(ctx context.Context, in *FailoverReservationRequest, opts ...grpc.CallOption) (*Reservation, error)
// Creates a new capacity commitment resource.
CreateCapacityCommitment(ctx context.Context, in *CreateCapacityCommitmentRequest, opts ...grpc.CallOption) (*CapacityCommitment, error)
// Lists all the capacity commitments for the admin project.
ListCapacityCommitments(ctx context.Context, in *ListCapacityCommitmentsRequest, opts ...grpc.CallOption) (*ListCapacityCommitmentsResponse, error)
// Returns information about the capacity commitment.
GetCapacityCommitment(ctx context.Context, in *GetCapacityCommitmentRequest, opts ...grpc.CallOption) (*CapacityCommitment, error)
// Deletes a capacity commitment. Attempting to delete capacity commitment
// before its commitment_end_time will fail with the error code
// `google.rpc.Code.FAILED_PRECONDITION`.
DeleteCapacityCommitment(ctx context.Context, in *DeleteCapacityCommitmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Updates an existing capacity commitment.
//
// Only `plan` and `renewal_plan` fields can be updated.
//
// Plan can only be changed to a plan of a longer commitment period.
// Attempting to change to a plan with shorter commitment period will fail
// with the error code `google.rpc.Code.FAILED_PRECONDITION`.
UpdateCapacityCommitment(ctx context.Context, in *UpdateCapacityCommitmentRequest, opts ...grpc.CallOption) (*CapacityCommitment, error)
// Splits capacity commitment to two commitments of the same plan and
// `commitment_end_time`.
//
// A common use case is to enable downgrading commitments.
//
// For example, in order to downgrade from 10000 slots to 8000, you might
// split a 10000 capacity commitment into commitments of 2000 and 8000. Then,
// you delete the first one after the commitment end time passes.
SplitCapacityCommitment(ctx context.Context, in *SplitCapacityCommitmentRequest, opts ...grpc.CallOption) (*SplitCapacityCommitmentResponse, error)
// Merges capacity commitments of the same plan into a single commitment.
//
// The resulting capacity commitment has the greater commitment_end_time
// out of the to-be-merged capacity commitments.
//
// Attempting to merge capacity commitments of different plan will fail
// with the error code `google.rpc.Code.FAILED_PRECONDITION`.
MergeCapacityCommitments(ctx context.Context, in *MergeCapacityCommitmentsRequest, opts ...grpc.CallOption) (*CapacityCommitment, error)
// Creates an assignment object which allows the given project to submit jobs
// of a certain type using slots from the specified reservation.
//
// Currently a
// resource (project, folder, organization) can only have one assignment per
// each (job_type, location) combination, and that reservation will be used
// for all jobs of the matching type.
//
// Different assignments can be created on different levels of the
// projects, folders or organization hierarchy. During query execution,
// the assignment is looked up at the project, folder and organization levels
// in that order. The first assignment found is applied to the query.
//
// When creating assignments, it does not matter if other assignments exist at
// higher levels.
//
// Example:
//
// - The organization `organizationA` contains two projects, `project1`
// and `project2`.
// - Assignments for all three entities (`organizationA`, `project1`, and
// `project2`) could all be created and mapped to the same or different
// reservations.
//
// "None" assignments represent an absence of the assignment. Projects
// assigned to None use on-demand pricing. To create a "None" assignment, use
// "none" as a reservation_id in the parent. Example parent:
// `projects/myproject/locations/US/reservations/none`.
//
// Returns `google.rpc.Code.PERMISSION_DENIED` if user does not have
// 'bigquery.admin' permissions on the project using the reservation
// and the project that owns this reservation.
//
// Returns `google.rpc.Code.INVALID_ARGUMENT` when location of the assignment
// does not match location of the reservation.
CreateAssignment(ctx context.Context, in *CreateAssignmentRequest, opts ...grpc.CallOption) (*Assignment, error)
// Lists assignments.
//
// Only explicitly created assignments will be returned.
//
// Example:
//
// - Organization `organizationA` contains two projects, `project1` and
// `project2`.
// - Reservation `res1` exists and was created previously.
// - CreateAssignment was used previously to define the following
// associations between entities and reservations: `<organizationA, res1>`
// and `<project1, res1>`
//
// In this example, ListAssignments will just return the above two assignments
// for reservation `res1`, and no expansion/merge will happen.
//
// The wildcard "-" can be used for
// reservations in the request. In that case all assignments belongs to the
// specified project and location will be listed.
//
// **Note** "-" cannot be used for projects nor locations.
ListAssignments(ctx context.Context, in *ListAssignmentsRequest, opts ...grpc.CallOption) (*ListAssignmentsResponse, error)
// Deletes a assignment. No expansion will happen.
//
// Example:
//
// - Organization `organizationA` contains two projects, `project1` and
// `project2`.
// - Reservation `res1` exists and was created previously.
// - CreateAssignment was used previously to define the following
// associations between entities and reservations: `<organizationA, res1>`
// and `<project1, res1>`
//
// In this example, deletion of the `<organizationA, res1>` assignment won't
// affect the other assignment `<project1, res1>`. After said deletion,
// queries from `project1` will still use `res1` while queries from
// `project2` will switch to use on-demand mode.
DeleteAssignment(ctx context.Context, in *DeleteAssignmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Deprecated: Do not use.
// Deprecated: Looks up assignments for a specified resource for a particular
// region. If the request is about a project:
//
// 1. Assignments created on the project will be returned if they exist.
// 2. Otherwise assignments created on the closest ancestor will be
// returned.
// 3. Assignments for different JobTypes will all be returned.
//
// The same logic applies if the request is about a folder.
//
// If the request is about an organization, then assignments created on the
// organization will be returned (organization doesn't have ancestors).
//
// Comparing to ListAssignments, there are some behavior
// differences:
//
// 1. permission on the assignee will be verified in this API.
// 2. Hierarchy lookup (project->folder->organization) happens in this API.
// 3. Parent here is `projects/*/locations/*`, instead of
// `projects/*/locations/*reservations/*`.
//
// **Note** "-" cannot be used for projects
// nor locations.
SearchAssignments(ctx context.Context, in *SearchAssignmentsRequest, opts ...grpc.CallOption) (*SearchAssignmentsResponse, error)
// Looks up assignments for a specified resource for a particular region.
// If the request is about a project:
//
// 1. Assignments created on the project will be returned if they exist.
// 2. Otherwise assignments created on the closest ancestor will be
// returned.
// 3. Assignments for different JobTypes will all be returned.
//
// The same logic applies if the request is about a folder.
//
// If the request is about an organization, then assignments created on the
// organization will be returned (organization doesn't have ancestors).
//
// Comparing to ListAssignments, there are some behavior
// differences:
//
// 1. permission on the assignee will be verified in this API.
// 2. Hierarchy lookup (project->folder->organization) happens in this API.
// 3. Parent here is `projects/*/locations/*`, instead of
// `projects/*/locations/*reservations/*`.
SearchAllAssignments(ctx context.Context, in *SearchAllAssignmentsRequest, opts ...grpc.CallOption) (*SearchAllAssignmentsResponse, error)
// Moves an assignment under a new reservation.
//
// This differs from removing an existing assignment and recreating a new one
// by providing a transactional change that ensures an assignee always has an
// associated reservation.
MoveAssignment(ctx context.Context, in *MoveAssignmentRequest, opts ...grpc.CallOption) (*Assignment, error)
// Updates an existing assignment.
//
// Only the `priority` field can be updated.
UpdateAssignment(ctx context.Context, in *UpdateAssignmentRequest, opts ...grpc.CallOption) (*Assignment, error)
// Retrieves a BI reservation.
GetBiReservation(ctx context.Context, in *GetBiReservationRequest, opts ...grpc.CallOption) (*BiReservation, error)
// Updates a BI reservation.
//
// Only fields specified in the `field_mask` are updated.
//
// A singleton BI reservation always exists with default size 0.
// In order to reserve BI capacity it needs to be updated to an amount
// greater than 0. In order to release BI capacity reservation size
// must be set to 0.
UpdateBiReservation(ctx context.Context, in *UpdateBiReservationRequest, opts ...grpc.CallOption) (*BiReservation, error)
// Gets the access control policy for a resource.
// May return:
//
// - A`NOT_FOUND` error if the resource doesn't exist or you don't have the
// permission to view it.
// - An empty policy if the resource exists but doesn't have a set policy.
//
// Supported resources are:
// - Reservations
// - ReservationAssignments
//
// To call this method, you must have the following Google IAM permissions:
//
// - `bigqueryreservation.reservations.getIamPolicy` to get policies on
// reservations.
GetIamPolicy(ctx context.Context, in *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
// Sets an access control policy for a resource. Replaces any existing
// policy.
//
// Supported resources are:
// - Reservations
//
// To call this method, you must have the following Google IAM permissions:
//
// - `bigqueryreservation.reservations.setIamPolicy` to set policies on
// reservations.
SetIamPolicy(ctx context.Context, in *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
// Gets your permissions on a resource. Returns an empty set of permissions if
// the resource doesn't exist.
//
// Supported resources are:
// - Reservations
//
// No Google IAM permissions are required to call this method.
TestIamPermissions(ctx context.Context, in *iampb.TestIamPermissionsRequest, opts ...grpc.CallOption) (*iampb.TestIamPermissionsResponse, error)
// Creates a new reservation group.
CreateReservationGroup(ctx context.Context, in *CreateReservationGroupRequest, opts ...grpc.CallOption) (*ReservationGroup, error)
// Returns information about the reservation group.
GetReservationGroup(ctx context.Context, in *GetReservationGroupRequest, opts ...grpc.CallOption) (*ReservationGroup, error)
// Deletes a reservation.
// Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has
// assignments.
DeleteReservationGroup(ctx context.Context, in *DeleteReservationGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Lists all the reservation groups for the project in the specified location.
ListReservationGroups(ctx context.Context, in *ListReservationGroupsRequest, opts ...grpc.CallOption) (*ListReservationGroupsResponse, error)
}
ReservationServiceClient is the client API for ReservationService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewReservationServiceClient ¶
func NewReservationServiceClient(cc grpc.ClientConnInterface) ReservationServiceClient
type ReservationServiceServer ¶
type ReservationServiceServer interface {
// Creates a new reservation resource.
CreateReservation(context.Context, *CreateReservationRequest) (*Reservation, error)
// Lists all the reservations for the project in the specified location.
ListReservations(context.Context, *ListReservationsRequest) (*ListReservationsResponse, error)
// Returns information about the reservation.
GetReservation(context.Context, *GetReservationRequest) (*Reservation, error)
// Deletes a reservation.
// Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has
// assignments.
DeleteReservation(context.Context, *DeleteReservationRequest) (*emptypb.Empty, error)
// Updates an existing reservation resource.
UpdateReservation(context.Context, *UpdateReservationRequest) (*Reservation, error)
// Fail over a reservation to the secondary location. The operation should be
// done in the current secondary location, which will be promoted to the
// new primary location for the reservation.
// Attempting to failover a reservation in the current primary location will
// fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.
FailoverReservation(context.Context, *FailoverReservationRequest) (*Reservation, error)
// Creates a new capacity commitment resource.
CreateCapacityCommitment(context.Context, *CreateCapacityCommitmentRequest) (*CapacityCommitment, error)
// Lists all the capacity commitments for the admin project.
ListCapacityCommitments(context.Context, *ListCapacityCommitmentsRequest) (*ListCapacityCommitmentsResponse, error)
// Returns information about the capacity commitment.
GetCapacityCommitment(context.Context, *GetCapacityCommitmentRequest) (*CapacityCommitment, error)
// Deletes a capacity commitment. Attempting to delete capacity commitment
// before its commitment_end_time will fail with the error code
// `google.rpc.Code.FAILED_PRECONDITION`.
DeleteCapacityCommitment(context.Context, *DeleteCapacityCommitmentRequest) (*emptypb.Empty, error)
// Updates an existing capacity commitment.
//
// Only `plan` and `renewal_plan` fields can be updated.
//
// Plan can only be changed to a plan of a longer commitment period.
// Attempting to change to a plan with shorter commitment period will fail
// with the error code `google.rpc.Code.FAILED_PRECONDITION`.
UpdateCapacityCommitment(context.Context, *UpdateCapacityCommitmentRequest) (*CapacityCommitment, error)
// Splits capacity commitment to two commitments of the same plan and
// `commitment_end_time`.
//
// A common use case is to enable downgrading commitments.
//
// For example, in order to downgrade from 10000 slots to 8000, you might
// split a 10000 capacity commitment into commitments of 2000 and 8000. Then,
// you delete the first one after the commitment end time passes.
SplitCapacityCommitment(context.Context, *SplitCapacityCommitmentRequest) (*SplitCapacityCommitmentResponse, error)
// Merges capacity commitments of the same plan into a single commitment.
//
// The resulting capacity commitment has the greater commitment_end_time
// out of the to-be-merged capacity commitments.
//
// Attempting to merge capacity commitments of different plan will fail
// with the error code `google.rpc.Code.FAILED_PRECONDITION`.
MergeCapacityCommitments(context.Context, *MergeCapacityCommitmentsRequest) (*CapacityCommitment, error)
// Creates an assignment object which allows the given project to submit jobs
// of a certain type using slots from the specified reservation.
//
// Currently a
// resource (project, folder, organization) can only have one assignment per
// each (job_type, location) combination, and that reservation will be used
// for all jobs of the matching type.
//
// Different assignments can be created on different levels of the
// projects, folders or organization hierarchy. During query execution,
// the assignment is looked up at the project, folder and organization levels
// in that order. The first assignment found is applied to the query.
//
// When creating assignments, it does not matter if other assignments exist at
// higher levels.
//
// Example:
//
// - The organization `organizationA` contains two projects, `project1`
// and `project2`.
// - Assignments for all three entities (`organizationA`, `project1`, and
// `project2`) could all be created and mapped to the same or different
// reservations.
//
// "None" assignments represent an absence of the assignment. Projects
// assigned to None use on-demand pricing. To create a "None" assignment, use
// "none" as a reservation_id in the parent. Example parent:
// `projects/myproject/locations/US/reservations/none`.
//
// Returns `google.rpc.Code.PERMISSION_DENIED` if user does not have
// 'bigquery.admin' permissions on the project using the reservation
// and the project that owns this reservation.
//
// Returns `google.rpc.Code.INVALID_ARGUMENT` when location of the assignment
// does not match location of the reservation.
CreateAssignment(context.Context, *CreateAssignmentRequest) (*Assignment, error)
// Lists assignments.
//
// Only explicitly created assignments will be returned.
//
// Example:
//
// - Organization `organizationA` contains two projects, `project1` and
// `project2`.
// - Reservation `res1` exists and was created previously.
// - CreateAssignment was used previously to define the following
// associations between entities and reservations: `<organizationA, res1>`
// and `<project1, res1>`
//
// In this example, ListAssignments will just return the above two assignments
// for reservation `res1`, and no expansion/merge will happen.
//
// The wildcard "-" can be used for
// reservations in the request. In that case all assignments belongs to the
// specified project and location will be listed.
//
// **Note** "-" cannot be used for projects nor locations.
ListAssignments(context.Context, *ListAssignmentsRequest) (*ListAssignmentsResponse, error)
// Deletes a assignment. No expansion will happen.
//
// Example:
//
// - Organization `organizationA` contains two projects, `project1` and
// `project2`.
// - Reservation `res1` exists and was created previously.
// - CreateAssignment was used previously to define the following
// associations between entities and reservations: `<organizationA, res1>`
// and `<project1, res1>`
//
// In this example, deletion of the `<organizationA, res1>` assignment won't
// affect the other assignment `<project1, res1>`. After said deletion,
// queries from `project1` will still use `res1` while queries from
// `project2` will switch to use on-demand mode.
DeleteAssignment(context.Context, *DeleteAssignmentRequest) (*emptypb.Empty, error)
// Deprecated: Do not use.
// Deprecated: Looks up assignments for a specified resource for a particular
// region. If the request is about a project:
//
// 1. Assignments created on the project will be returned if they exist.
// 2. Otherwise assignments created on the closest ancestor will be
// returned.
// 3. Assignments for different JobTypes will all be returned.
//
// The same logic applies if the request is about a folder.
//
// If the request is about an organization, then assignments created on the
// organization will be returned (organization doesn't have ancestors).
//
// Comparing to ListAssignments, there are some behavior
// differences:
//
// 1. permission on the assignee will be verified in this API.
// 2. Hierarchy lookup (project->folder->organization) happens in this API.
// 3. Parent here is `projects/*/locations/*`, instead of
// `projects/*/locations/*reservations/*`.
//
// **Note** "-" cannot be used for projects
// nor locations.
SearchAssignments(context.Context, *SearchAssignmentsRequest) (*SearchAssignmentsResponse, error)
// Looks up assignments for a specified resource for a particular region.
// If the request is about a project:
//
// 1. Assignments created on the project will be returned if they exist.
// 2. Otherwise assignments created on the closest ancestor will be
// returned.
// 3. Assignments for different JobTypes will all be returned.
//
// The same logic applies if the request is about a folder.
//
// If the request is about an organization, then assignments created on the
// organization will be returned (organization doesn't have ancestors).
//
// Comparing to ListAssignments, there are some behavior
// differences:
//
// 1. permission on the assignee will be verified in this API.
// 2. Hierarchy lookup (project->folder->organization) happens in this API.
// 3. Parent here is `projects/*/locations/*`, instead of
// `projects/*/locations/*reservations/*`.
SearchAllAssignments(context.Context, *SearchAllAssignmentsRequest) (*SearchAllAssignmentsResponse, error)
// Moves an assignment under a new reservation.
//
// This differs from removing an existing assignment and recreating a new one
// by providing a transactional change that ensures an assignee always has an
// associated reservation.
MoveAssignment(context.Context, *MoveAssignmentRequest) (*Assignment, error)
// Updates an existing assignment.
//
// Only the `priority` field can be updated.
UpdateAssignment(context.Context, *UpdateAssignmentRequest) (*Assignment, error)
// Retrieves a BI reservation.
GetBiReservation(context.Context, *GetBiReservationRequest) (*BiReservation, error)
// Updates a BI reservation.
//
// Only fields specified in the `field_mask` are updated.
//
// A singleton BI reservation always exists with default size 0.
// In order to reserve BI capacity it needs to be updated to an amount
// greater than 0. In order to release BI capacity reservation size
// must be set to 0.
UpdateBiReservation(context.Context, *UpdateBiReservationRequest) (*BiReservation, error)
// Gets the access control policy for a resource.
// May return:
//
// - A`NOT_FOUND` error if the resource doesn't exist or you don't have the
// permission to view it.
// - An empty policy if the resource exists but doesn't have a set policy.
//
// Supported resources are:
// - Reservations
// - ReservationAssignments
//
// To call this method, you must have the following Google IAM permissions:
//
// - `bigqueryreservation.reservations.getIamPolicy` to get policies on
// reservations.
GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
// Sets an access control policy for a resource. Replaces any existing
// policy.
//
// Supported resources are:
// - Reservations
//
// To call this method, you must have the following Google IAM permissions:
//
// - `bigqueryreservation.reservations.setIamPolicy` to set policies on
// reservations.
SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
// Gets your permissions on a resource. Returns an empty set of permissions if
// the resource doesn't exist.
//
// Supported resources are:
// - Reservations
//
// No Google IAM permissions are required to call this method.
TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
// Creates a new reservation group.
CreateReservationGroup(context.Context, *CreateReservationGroupRequest) (*ReservationGroup, error)
// Returns information about the reservation group.
GetReservationGroup(context.Context, *GetReservationGroupRequest) (*ReservationGroup, error)
// Deletes a reservation.
// Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has
// assignments.
DeleteReservationGroup(context.Context, *DeleteReservationGroupRequest) (*emptypb.Empty, error)
// Lists all the reservation groups for the project in the specified location.
ListReservationGroups(context.Context, *ListReservationGroupsRequest) (*ListReservationGroupsResponse, error)
}
ReservationServiceServer is the server API for ReservationService service. All implementations should embed UnimplementedReservationServiceServer for forward compatibility
type Reservation_Autoscale ¶ added in v1.50.0
type Reservation_Autoscale struct {
// Output only. The slot capacity added to this reservation when autoscale
// happens. Will be between [0, max_slots]. Note: after users reduce
// max_slots, it may take a while before it can be propagated, so
// current_slots may stay in the original value and could be larger than
// max_slots for that brief period (less than one minute)
CurrentSlots int64 `protobuf:"varint,1,opt,name=current_slots,json=currentSlots,proto3" json:"current_slots,omitempty"`
// Optional. Number of slots to be scaled when needed.
MaxSlots int64 `protobuf:"varint,2,opt,name=max_slots,json=maxSlots,proto3" json:"max_slots,omitempty"`
// contains filtered or unexported fields
}
Auto scaling settings.
func (*Reservation_Autoscale) Descriptor
deprecated
added in
v1.50.0
func (*Reservation_Autoscale) Descriptor() ([]byte, []int)
Deprecated: Use Reservation_Autoscale.ProtoReflect.Descriptor instead.
func (*Reservation_Autoscale) GetCurrentSlots ¶ added in v1.50.0
func (x *Reservation_Autoscale) GetCurrentSlots() int64
func (*Reservation_Autoscale) GetMaxSlots ¶ added in v1.50.0
func (x *Reservation_Autoscale) GetMaxSlots() int64
func (*Reservation_Autoscale) ProtoMessage ¶ added in v1.50.0
func (*Reservation_Autoscale) ProtoMessage()
func (*Reservation_Autoscale) ProtoReflect ¶ added in v1.50.0
func (x *Reservation_Autoscale) ProtoReflect() protoreflect.Message
func (*Reservation_Autoscale) Reset ¶ added in v1.50.0
func (x *Reservation_Autoscale) Reset()
func (*Reservation_Autoscale) String ¶ added in v1.50.0
func (x *Reservation_Autoscale) String() string
type Reservation_ReplicationStatus ¶ added in v1.67.0
type Reservation_ReplicationStatus struct {
// Output only. The last error encountered while trying to replicate changes
// from the primary to the secondary. This field is only available if the
// replication has not succeeded since.
Error *status.Status `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
// Output only. The time at which the last error was encountered while
// trying to replicate changes from the primary to the secondary. This field
// is only available if the replication has not succeeded since.
LastErrorTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_error_time,json=lastErrorTime,proto3" json:"last_error_time,omitempty"`
// Output only. A timestamp corresponding to the last change on the primary
// that was successfully replicated to the secondary.
LastReplicationTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_replication_time,json=lastReplicationTime,proto3" json:"last_replication_time,omitempty"`
// Output only. The time at which a soft failover for the reservation and
// its associated datasets was initiated. After this field is set, all
// subsequent changes to the reservation will be rejected unless a hard
// failover overrides this operation. This field will be cleared once the
// failover is complete.
SoftFailoverStartTime *timestamppb.Timestamp `` /* 128-byte string literal not displayed */
// contains filtered or unexported fields
}
Disaster Recovery(DR) replication status of the reservation.
func (*Reservation_ReplicationStatus) Descriptor
deprecated
added in
v1.67.0
func (*Reservation_ReplicationStatus) Descriptor() ([]byte, []int)
Deprecated: Use Reservation_ReplicationStatus.ProtoReflect.Descriptor instead.
func (*Reservation_ReplicationStatus) GetError ¶ added in v1.67.0
func (x *Reservation_ReplicationStatus) GetError() *status.Status
func (*Reservation_ReplicationStatus) GetLastErrorTime ¶ added in v1.67.0
func (x *Reservation_ReplicationStatus) GetLastErrorTime() *timestamppb.Timestamp
func (*Reservation_ReplicationStatus) GetLastReplicationTime ¶ added in v1.67.0
func (x *Reservation_ReplicationStatus) GetLastReplicationTime() *timestamppb.Timestamp
func (*Reservation_ReplicationStatus) GetSoftFailoverStartTime ¶ added in v1.71.0
func (x *Reservation_ReplicationStatus) GetSoftFailoverStartTime() *timestamppb.Timestamp
func (*Reservation_ReplicationStatus) ProtoMessage ¶ added in v1.67.0
func (*Reservation_ReplicationStatus) ProtoMessage()
func (*Reservation_ReplicationStatus) ProtoReflect ¶ added in v1.67.0
func (x *Reservation_ReplicationStatus) ProtoReflect() protoreflect.Message
func (*Reservation_ReplicationStatus) Reset ¶ added in v1.67.0
func (x *Reservation_ReplicationStatus) Reset()
func (*Reservation_ReplicationStatus) String ¶ added in v1.67.0
func (x *Reservation_ReplicationStatus) String() string
type Reservation_ScalingMode ¶ added in v1.70.0
type Reservation_ScalingMode int32
The scaling mode for the reservation. This enum determines how the reservation scales up and down.
const ( // Default value of ScalingMode. Reservation_SCALING_MODE_UNSPECIFIED Reservation_ScalingMode = 0 // The reservation will scale up only using slots from autoscaling. It will // not use any idle slots even if there may be some available. The upper // limit that autoscaling can scale up to will be max_slots - baseline. // For example, if max_slots is 1000, baseline is 200 and customer sets // ScalingMode to AUTOSCALE_ONLY, then autoscalerg will scale up to 800 // slots and no idle slots will be used. // // Please note, in this mode, the ignore_idle_slots field must be set to // true. Otherwise the request will be rejected with error code // `google.rpc.Code.INVALID_ARGUMENT`. Reservation_AUTOSCALE_ONLY Reservation_ScalingMode = 1 // The reservation will scale up using only idle slots contributed by // other reservations or from unassigned commitments. If no idle slots are // available it will not scale up further. If the idle slots which it is // using are reclaimed by the contributing reservation(s) it may be forced // to scale down. The max idle slots the reservation can be max_slots - // baseline capacity. For example, if max_slots is 1000, baseline is 200 and // customer sets ScalingMode to IDLE_SLOTS_ONLY, // 1. if there are 1000 idle slots available in other reservations, the // reservation will scale up to 1000 slots with 200 baseline and 800 idle // slots. // 2. if there are 500 idle slots available in other reservations, the // reservation will scale up to 700 slots with 200 baseline and 300 idle // slots. // Please note, in this mode, the reservation might not be able to scale up // to max_slots. // // Please note, in this mode, the ignore_idle_slots field must be set to // false. Otherwise the request will be rejected with error code // `google.rpc.Code.INVALID_ARGUMENT`. Reservation_IDLE_SLOTS_ONLY Reservation_ScalingMode = 2 // The reservation will scale up using all slots available to it. It will // use idle slots contributed by other reservations or from unassigned // commitments first. If no idle slots are available it will scale up using // autoscaling. For example, if max_slots is 1000, baseline is 200 and // customer sets ScalingMode to ALL_SLOTS, // 1. if there are 800 idle slots available in other reservations, the // reservation will scale up to 1000 slots with 200 baseline and 800 idle // slots. // 2. if there are 500 idle slots available in other reservations, the // reservation will scale up to 1000 slots with 200 baseline, 500 idle // slots and 300 autoscaling slots. // 3. if there are no idle slots available in other reservations, it will // scale up to 1000 slots with 200 baseline and 800 autoscaling slots. // // Please note, in this mode, the ignore_idle_slots field must be set to // false. Otherwise the request will be rejected with error code // `google.rpc.Code.INVALID_ARGUMENT`. Reservation_ALL_SLOTS Reservation_ScalingMode = 3 )
func (Reservation_ScalingMode) Descriptor ¶ added in v1.70.0
func (Reservation_ScalingMode) Descriptor() protoreflect.EnumDescriptor
func (Reservation_ScalingMode) Enum ¶ added in v1.70.0
func (x Reservation_ScalingMode) Enum() *Reservation_ScalingMode
func (Reservation_ScalingMode) EnumDescriptor
deprecated
added in
v1.70.0
func (Reservation_ScalingMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use Reservation_ScalingMode.Descriptor instead.
func (Reservation_ScalingMode) Number ¶ added in v1.70.0
func (x Reservation_ScalingMode) Number() protoreflect.EnumNumber
func (Reservation_ScalingMode) String ¶ added in v1.70.0
func (x Reservation_ScalingMode) String() string
func (Reservation_ScalingMode) Type ¶ added in v1.70.0
func (Reservation_ScalingMode) Type() protoreflect.EnumType
type SchedulingPolicy ¶ added in v1.72.0
type SchedulingPolicy struct {
// Optional. If present and > 0, the reservation will attempt to limit the
// concurrency of jobs running for any particular project within it to the
// given value.
//
// This feature is not yet generally available.
Concurrency *int64 `protobuf:"varint,1,opt,name=concurrency,proto3,oneof" json:"concurrency,omitempty"`
// Optional. If present and > 0, the reservation will attempt to limit the
// slot consumption of queries running for any particular project within it to
// the given value.
//
// This feature is not yet generally available.
MaxSlots *int64 `protobuf:"varint,2,opt,name=max_slots,json=maxSlots,proto3,oneof" json:"max_slots,omitempty"`
// contains filtered or unexported fields
}
The scheduling policy controls how a reservation's resources are distributed.
func (*SchedulingPolicy) Descriptor
deprecated
added in
v1.72.0
func (*SchedulingPolicy) Descriptor() ([]byte, []int)
Deprecated: Use SchedulingPolicy.ProtoReflect.Descriptor instead.
func (*SchedulingPolicy) GetConcurrency ¶ added in v1.72.0
func (x *SchedulingPolicy) GetConcurrency() int64
func (*SchedulingPolicy) GetMaxSlots ¶ added in v1.72.0
func (x *SchedulingPolicy) GetMaxSlots() int64
func (*SchedulingPolicy) ProtoMessage ¶ added in v1.72.0
func (*SchedulingPolicy) ProtoMessage()
func (*SchedulingPolicy) ProtoReflect ¶ added in v1.72.0
func (x *SchedulingPolicy) ProtoReflect() protoreflect.Message
func (*SchedulingPolicy) Reset ¶ added in v1.72.0
func (x *SchedulingPolicy) Reset()
func (*SchedulingPolicy) String ¶ added in v1.72.0
func (x *SchedulingPolicy) String() string
type SearchAllAssignmentsRequest ¶
type SearchAllAssignmentsRequest struct {
// Required. The resource name with location (project name could be the
// wildcard '-'), e.g.:
//
// `projects/-/locations/US`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Please specify resource name as assignee in the query.
//
// Examples:
//
// * `assignee=projects/myproject`
// * `assignee=folders/123`
// * `assignee=organizations/456`
Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
// The maximum number of items to return per page.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The next_page_token value returned from a previous List request, if any.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.SearchAllAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAllAssignments]. Note: "bigquery.reservationAssignments.search" permission is required on the related assignee.
func (*SearchAllAssignmentsRequest) Descriptor
deprecated
func (*SearchAllAssignmentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchAllAssignmentsRequest.ProtoReflect.Descriptor instead.
func (*SearchAllAssignmentsRequest) GetPageSize ¶
func (x *SearchAllAssignmentsRequest) GetPageSize() int32
func (*SearchAllAssignmentsRequest) GetPageToken ¶
func (x *SearchAllAssignmentsRequest) GetPageToken() string
func (*SearchAllAssignmentsRequest) GetParent ¶
func (x *SearchAllAssignmentsRequest) GetParent() string
func (*SearchAllAssignmentsRequest) GetQuery ¶
func (x *SearchAllAssignmentsRequest) GetQuery() string
func (*SearchAllAssignmentsRequest) ProtoMessage ¶
func (*SearchAllAssignmentsRequest) ProtoMessage()
func (*SearchAllAssignmentsRequest) ProtoReflect ¶
func (x *SearchAllAssignmentsRequest) ProtoReflect() protoreflect.Message
func (*SearchAllAssignmentsRequest) Reset ¶
func (x *SearchAllAssignmentsRequest) Reset()
func (*SearchAllAssignmentsRequest) String ¶
func (x *SearchAllAssignmentsRequest) String() string
type SearchAllAssignmentsResponse ¶
type SearchAllAssignmentsResponse struct {
// List of assignments visible to the user.
Assignments []*Assignment `protobuf:"bytes,1,rep,name=assignments,proto3" json:"assignments,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
The response for [ReservationService.SearchAllAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAllAssignments].
func (*SearchAllAssignmentsResponse) Descriptor
deprecated
func (*SearchAllAssignmentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchAllAssignmentsResponse.ProtoReflect.Descriptor instead.
func (*SearchAllAssignmentsResponse) GetAssignments ¶
func (x *SearchAllAssignmentsResponse) GetAssignments() []*Assignment
func (*SearchAllAssignmentsResponse) GetNextPageToken ¶
func (x *SearchAllAssignmentsResponse) GetNextPageToken() string
func (*SearchAllAssignmentsResponse) ProtoMessage ¶
func (*SearchAllAssignmentsResponse) ProtoMessage()
func (*SearchAllAssignmentsResponse) ProtoReflect ¶
func (x *SearchAllAssignmentsResponse) ProtoReflect() protoreflect.Message
func (*SearchAllAssignmentsResponse) Reset ¶
func (x *SearchAllAssignmentsResponse) Reset()
func (*SearchAllAssignmentsResponse) String ¶
func (x *SearchAllAssignmentsResponse) String() string
type SearchAssignmentsRequest ¶
type SearchAssignmentsRequest struct {
// Required. The resource name of the admin project(containing project and
// location), e.g.:
//
// `projects/myproject/locations/US`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Please specify resource name as assignee in the query.
//
// Examples:
//
// * `assignee=projects/myproject`
// * `assignee=folders/123`
// * `assignee=organizations/456`
Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
// The maximum number of items to return per page.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The next_page_token value returned from a previous List request, if any.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.SearchAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAssignments]. Note: "bigquery.reservationAssignments.search" permission is required on the related assignee.
func (*SearchAssignmentsRequest) Descriptor
deprecated
func (*SearchAssignmentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchAssignmentsRequest.ProtoReflect.Descriptor instead.
func (*SearchAssignmentsRequest) GetPageSize ¶
func (x *SearchAssignmentsRequest) GetPageSize() int32
func (*SearchAssignmentsRequest) GetPageToken ¶
func (x *SearchAssignmentsRequest) GetPageToken() string
func (*SearchAssignmentsRequest) GetParent ¶
func (x *SearchAssignmentsRequest) GetParent() string
func (*SearchAssignmentsRequest) GetQuery ¶
func (x *SearchAssignmentsRequest) GetQuery() string
func (*SearchAssignmentsRequest) ProtoMessage ¶
func (*SearchAssignmentsRequest) ProtoMessage()
func (*SearchAssignmentsRequest) ProtoReflect ¶
func (x *SearchAssignmentsRequest) ProtoReflect() protoreflect.Message
func (*SearchAssignmentsRequest) Reset ¶
func (x *SearchAssignmentsRequest) Reset()
func (*SearchAssignmentsRequest) String ¶
func (x *SearchAssignmentsRequest) String() string
type SearchAssignmentsResponse ¶
type SearchAssignmentsResponse struct {
// List of assignments visible to the user.
Assignments []*Assignment `protobuf:"bytes,1,rep,name=assignments,proto3" json:"assignments,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
The response for [ReservationService.SearchAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAssignments].
func (*SearchAssignmentsResponse) Descriptor
deprecated
func (*SearchAssignmentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchAssignmentsResponse.ProtoReflect.Descriptor instead.
func (*SearchAssignmentsResponse) GetAssignments ¶
func (x *SearchAssignmentsResponse) GetAssignments() []*Assignment
func (*SearchAssignmentsResponse) GetNextPageToken ¶
func (x *SearchAssignmentsResponse) GetNextPageToken() string
func (*SearchAssignmentsResponse) ProtoMessage ¶
func (*SearchAssignmentsResponse) ProtoMessage()
func (*SearchAssignmentsResponse) ProtoReflect ¶
func (x *SearchAssignmentsResponse) ProtoReflect() protoreflect.Message
func (*SearchAssignmentsResponse) Reset ¶
func (x *SearchAssignmentsResponse) Reset()
func (*SearchAssignmentsResponse) String ¶
func (x *SearchAssignmentsResponse) String() string
type SplitCapacityCommitmentRequest ¶
type SplitCapacityCommitmentRequest struct {
// Required. The resource name e.g.,:
//
// `projects/myproject/locations/US/capacityCommitments/123`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Number of slots in the capacity commitment after the split.
SlotCount int64 `protobuf:"varint,2,opt,name=slot_count,json=slotCount,proto3" json:"slot_count,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.SplitCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.SplitCapacityCommitment].
func (*SplitCapacityCommitmentRequest) Descriptor
deprecated
func (*SplitCapacityCommitmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use SplitCapacityCommitmentRequest.ProtoReflect.Descriptor instead.
func (*SplitCapacityCommitmentRequest) GetName ¶
func (x *SplitCapacityCommitmentRequest) GetName() string
func (*SplitCapacityCommitmentRequest) GetSlotCount ¶
func (x *SplitCapacityCommitmentRequest) GetSlotCount() int64
func (*SplitCapacityCommitmentRequest) ProtoMessage ¶
func (*SplitCapacityCommitmentRequest) ProtoMessage()
func (*SplitCapacityCommitmentRequest) ProtoReflect ¶
func (x *SplitCapacityCommitmentRequest) ProtoReflect() protoreflect.Message
func (*SplitCapacityCommitmentRequest) Reset ¶
func (x *SplitCapacityCommitmentRequest) Reset()
func (*SplitCapacityCommitmentRequest) String ¶
func (x *SplitCapacityCommitmentRequest) String() string
type SplitCapacityCommitmentResponse ¶
type SplitCapacityCommitmentResponse struct {
// First capacity commitment, result of a split.
First *CapacityCommitment `protobuf:"bytes,1,opt,name=first,proto3" json:"first,omitempty"`
// Second capacity commitment, result of a split.
Second *CapacityCommitment `protobuf:"bytes,2,opt,name=second,proto3" json:"second,omitempty"`
// contains filtered or unexported fields
}
The response for [ReservationService.SplitCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.SplitCapacityCommitment].
func (*SplitCapacityCommitmentResponse) Descriptor
deprecated
func (*SplitCapacityCommitmentResponse) Descriptor() ([]byte, []int)
Deprecated: Use SplitCapacityCommitmentResponse.ProtoReflect.Descriptor instead.
func (*SplitCapacityCommitmentResponse) GetFirst ¶
func (x *SplitCapacityCommitmentResponse) GetFirst() *CapacityCommitment
func (*SplitCapacityCommitmentResponse) GetSecond ¶
func (x *SplitCapacityCommitmentResponse) GetSecond() *CapacityCommitment
func (*SplitCapacityCommitmentResponse) ProtoMessage ¶
func (*SplitCapacityCommitmentResponse) ProtoMessage()
func (*SplitCapacityCommitmentResponse) ProtoReflect ¶
func (x *SplitCapacityCommitmentResponse) ProtoReflect() protoreflect.Message
func (*SplitCapacityCommitmentResponse) Reset ¶
func (x *SplitCapacityCommitmentResponse) Reset()
func (*SplitCapacityCommitmentResponse) String ¶
func (x *SplitCapacityCommitmentResponse) String() string
type TableReference ¶
type TableReference struct {
// Optional. The assigned project ID of the project.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Optional. The ID of the dataset in the above project.
DatasetId string `protobuf:"bytes,2,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"`
// Optional. The ID of the table in the above dataset.
TableId string `protobuf:"bytes,3,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
// contains filtered or unexported fields
}
Fully qualified reference to BigQuery table. Internally stored as google.cloud.bi.v1.BqTableReference.
func (*TableReference) Descriptor
deprecated
func (*TableReference) Descriptor() ([]byte, []int)
Deprecated: Use TableReference.ProtoReflect.Descriptor instead.
func (*TableReference) GetDatasetId ¶
func (x *TableReference) GetDatasetId() string
func (*TableReference) GetProjectId ¶
func (x *TableReference) GetProjectId() string
func (*TableReference) GetTableId ¶
func (x *TableReference) GetTableId() string
func (*TableReference) ProtoMessage ¶
func (*TableReference) ProtoMessage()
func (*TableReference) ProtoReflect ¶
func (x *TableReference) ProtoReflect() protoreflect.Message
func (*TableReference) Reset ¶
func (x *TableReference) Reset()
func (*TableReference) String ¶
func (x *TableReference) String() string
type UnimplementedReservationServiceServer ¶
type UnimplementedReservationServiceServer struct {
}
UnimplementedReservationServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedReservationServiceServer) CreateAssignment ¶
func (UnimplementedReservationServiceServer) CreateAssignment(context.Context, *CreateAssignmentRequest) (*Assignment, error)
func (UnimplementedReservationServiceServer) CreateCapacityCommitment ¶
func (UnimplementedReservationServiceServer) CreateCapacityCommitment(context.Context, *CreateCapacityCommitmentRequest) (*CapacityCommitment, error)
func (UnimplementedReservationServiceServer) CreateReservation ¶
func (UnimplementedReservationServiceServer) CreateReservation(context.Context, *CreateReservationRequest) (*Reservation, error)
func (UnimplementedReservationServiceServer) CreateReservationGroup ¶ added in v1.72.0
func (UnimplementedReservationServiceServer) CreateReservationGroup(context.Context, *CreateReservationGroupRequest) (*ReservationGroup, error)
func (UnimplementedReservationServiceServer) DeleteAssignment ¶
func (UnimplementedReservationServiceServer) DeleteAssignment(context.Context, *DeleteAssignmentRequest) (*emptypb.Empty, error)
func (UnimplementedReservationServiceServer) DeleteCapacityCommitment ¶
func (UnimplementedReservationServiceServer) DeleteCapacityCommitment(context.Context, *DeleteCapacityCommitmentRequest) (*emptypb.Empty, error)
func (UnimplementedReservationServiceServer) DeleteReservation ¶
func (UnimplementedReservationServiceServer) DeleteReservation(context.Context, *DeleteReservationRequest) (*emptypb.Empty, error)
func (UnimplementedReservationServiceServer) DeleteReservationGroup ¶ added in v1.72.0
func (UnimplementedReservationServiceServer) DeleteReservationGroup(context.Context, *DeleteReservationGroupRequest) (*emptypb.Empty, error)
func (UnimplementedReservationServiceServer) FailoverReservation ¶ added in v1.65.0
func (UnimplementedReservationServiceServer) FailoverReservation(context.Context, *FailoverReservationRequest) (*Reservation, error)
func (UnimplementedReservationServiceServer) GetBiReservation ¶
func (UnimplementedReservationServiceServer) GetBiReservation(context.Context, *GetBiReservationRequest) (*BiReservation, error)
func (UnimplementedReservationServiceServer) GetCapacityCommitment ¶
func (UnimplementedReservationServiceServer) GetCapacityCommitment(context.Context, *GetCapacityCommitmentRequest) (*CapacityCommitment, error)
func (UnimplementedReservationServiceServer) GetIamPolicy ¶ added in v1.72.0
func (UnimplementedReservationServiceServer) GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
func (UnimplementedReservationServiceServer) GetReservation ¶
func (UnimplementedReservationServiceServer) GetReservation(context.Context, *GetReservationRequest) (*Reservation, error)
func (UnimplementedReservationServiceServer) GetReservationGroup ¶ added in v1.72.0
func (UnimplementedReservationServiceServer) GetReservationGroup(context.Context, *GetReservationGroupRequest) (*ReservationGroup, error)
func (UnimplementedReservationServiceServer) ListAssignments ¶
func (UnimplementedReservationServiceServer) ListAssignments(context.Context, *ListAssignmentsRequest) (*ListAssignmentsResponse, error)
func (UnimplementedReservationServiceServer) ListCapacityCommitments ¶
func (UnimplementedReservationServiceServer) ListCapacityCommitments(context.Context, *ListCapacityCommitmentsRequest) (*ListCapacityCommitmentsResponse, error)
func (UnimplementedReservationServiceServer) ListReservationGroups ¶ added in v1.72.0
func (UnimplementedReservationServiceServer) ListReservationGroups(context.Context, *ListReservationGroupsRequest) (*ListReservationGroupsResponse, error)
func (UnimplementedReservationServiceServer) ListReservations ¶
func (UnimplementedReservationServiceServer) ListReservations(context.Context, *ListReservationsRequest) (*ListReservationsResponse, error)
func (UnimplementedReservationServiceServer) MergeCapacityCommitments ¶
func (UnimplementedReservationServiceServer) MergeCapacityCommitments(context.Context, *MergeCapacityCommitmentsRequest) (*CapacityCommitment, error)
func (UnimplementedReservationServiceServer) MoveAssignment ¶
func (UnimplementedReservationServiceServer) MoveAssignment(context.Context, *MoveAssignmentRequest) (*Assignment, error)
func (UnimplementedReservationServiceServer) SearchAllAssignments ¶
func (UnimplementedReservationServiceServer) SearchAllAssignments(context.Context, *SearchAllAssignmentsRequest) (*SearchAllAssignmentsResponse, error)
func (UnimplementedReservationServiceServer) SearchAssignments ¶
func (UnimplementedReservationServiceServer) SearchAssignments(context.Context, *SearchAssignmentsRequest) (*SearchAssignmentsResponse, error)
func (UnimplementedReservationServiceServer) SetIamPolicy ¶ added in v1.72.0
func (UnimplementedReservationServiceServer) SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
func (UnimplementedReservationServiceServer) SplitCapacityCommitment ¶
func (UnimplementedReservationServiceServer) SplitCapacityCommitment(context.Context, *SplitCapacityCommitmentRequest) (*SplitCapacityCommitmentResponse, error)
func (UnimplementedReservationServiceServer) TestIamPermissions ¶ added in v1.72.0
func (UnimplementedReservationServiceServer) TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
func (UnimplementedReservationServiceServer) UpdateAssignment ¶
func (UnimplementedReservationServiceServer) UpdateAssignment(context.Context, *UpdateAssignmentRequest) (*Assignment, error)
func (UnimplementedReservationServiceServer) UpdateBiReservation ¶
func (UnimplementedReservationServiceServer) UpdateBiReservation(context.Context, *UpdateBiReservationRequest) (*BiReservation, error)
func (UnimplementedReservationServiceServer) UpdateCapacityCommitment ¶
func (UnimplementedReservationServiceServer) UpdateCapacityCommitment(context.Context, *UpdateCapacityCommitmentRequest) (*CapacityCommitment, error)
func (UnimplementedReservationServiceServer) UpdateReservation ¶
func (UnimplementedReservationServiceServer) UpdateReservation(context.Context, *UpdateReservationRequest) (*Reservation, error)
type UnsafeReservationServiceServer ¶ added in v1.72.0
type UnsafeReservationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeReservationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReservationServiceServer will result in compilation errors.
type UpdateAssignmentRequest ¶
type UpdateAssignmentRequest struct {
// Content of the assignment to update.
Assignment *Assignment `protobuf:"bytes,1,opt,name=assignment,proto3" json:"assignment,omitempty"`
// Standard field mask for the set of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.UpdateAssignment][google.cloud.bigquery.reservation.v1.ReservationService.UpdateAssignment].
func (*UpdateAssignmentRequest) Descriptor
deprecated
func (*UpdateAssignmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAssignmentRequest.ProtoReflect.Descriptor instead.
func (*UpdateAssignmentRequest) GetAssignment ¶
func (x *UpdateAssignmentRequest) GetAssignment() *Assignment
func (*UpdateAssignmentRequest) GetUpdateMask ¶
func (x *UpdateAssignmentRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateAssignmentRequest) ProtoMessage ¶
func (*UpdateAssignmentRequest) ProtoMessage()
func (*UpdateAssignmentRequest) ProtoReflect ¶
func (x *UpdateAssignmentRequest) ProtoReflect() protoreflect.Message
func (*UpdateAssignmentRequest) Reset ¶
func (x *UpdateAssignmentRequest) Reset()
func (*UpdateAssignmentRequest) String ¶
func (x *UpdateAssignmentRequest) String() string
type UpdateBiReservationRequest ¶
type UpdateBiReservationRequest struct {
// A reservation to update.
BiReservation *BiReservation `protobuf:"bytes,1,opt,name=bi_reservation,json=biReservation,proto3" json:"bi_reservation,omitempty"`
// A list of fields to be updated in this request.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
A request to update a BI reservation.
func (*UpdateBiReservationRequest) Descriptor
deprecated
func (*UpdateBiReservationRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBiReservationRequest.ProtoReflect.Descriptor instead.
func (*UpdateBiReservationRequest) GetBiReservation ¶
func (x *UpdateBiReservationRequest) GetBiReservation() *BiReservation
func (*UpdateBiReservationRequest) GetUpdateMask ¶
func (x *UpdateBiReservationRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateBiReservationRequest) ProtoMessage ¶
func (*UpdateBiReservationRequest) ProtoMessage()
func (*UpdateBiReservationRequest) ProtoReflect ¶
func (x *UpdateBiReservationRequest) ProtoReflect() protoreflect.Message
func (*UpdateBiReservationRequest) Reset ¶
func (x *UpdateBiReservationRequest) Reset()
func (*UpdateBiReservationRequest) String ¶
func (x *UpdateBiReservationRequest) String() string
type UpdateCapacityCommitmentRequest ¶
type UpdateCapacityCommitmentRequest struct {
// Content of the capacity commitment to update.
CapacityCommitment *CapacityCommitment `protobuf:"bytes,1,opt,name=capacity_commitment,json=capacityCommitment,proto3" json:"capacity_commitment,omitempty"`
// Standard field mask for the set of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.UpdateCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.UpdateCapacityCommitment].
func (*UpdateCapacityCommitmentRequest) Descriptor
deprecated
func (*UpdateCapacityCommitmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCapacityCommitmentRequest.ProtoReflect.Descriptor instead.
func (*UpdateCapacityCommitmentRequest) GetCapacityCommitment ¶
func (x *UpdateCapacityCommitmentRequest) GetCapacityCommitment() *CapacityCommitment
func (*UpdateCapacityCommitmentRequest) GetUpdateMask ¶
func (x *UpdateCapacityCommitmentRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateCapacityCommitmentRequest) ProtoMessage ¶
func (*UpdateCapacityCommitmentRequest) ProtoMessage()
func (*UpdateCapacityCommitmentRequest) ProtoReflect ¶
func (x *UpdateCapacityCommitmentRequest) ProtoReflect() protoreflect.Message
func (*UpdateCapacityCommitmentRequest) Reset ¶
func (x *UpdateCapacityCommitmentRequest) Reset()
func (*UpdateCapacityCommitmentRequest) String ¶
func (x *UpdateCapacityCommitmentRequest) String() string
type UpdateReservationRequest ¶
type UpdateReservationRequest struct {
// Content of the reservation to update.
Reservation *Reservation `protobuf:"bytes,1,opt,name=reservation,proto3" json:"reservation,omitempty"`
// Standard field mask for the set of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
The request for [ReservationService.UpdateReservation][google.cloud.bigquery.reservation.v1.ReservationService.UpdateReservation].
func (*UpdateReservationRequest) Descriptor
deprecated
func (*UpdateReservationRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateReservationRequest.ProtoReflect.Descriptor instead.
func (*UpdateReservationRequest) GetReservation ¶
func (x *UpdateReservationRequest) GetReservation() *Reservation
func (*UpdateReservationRequest) GetUpdateMask ¶
func (x *UpdateReservationRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateReservationRequest) ProtoMessage ¶
func (*UpdateReservationRequest) ProtoMessage()
func (*UpdateReservationRequest) ProtoReflect ¶
func (x *UpdateReservationRequest) ProtoReflect() protoreflect.Message
func (*UpdateReservationRequest) Reset ¶
func (x *UpdateReservationRequest) Reset()
func (*UpdateReservationRequest) String ¶
func (x *UpdateReservationRequest) String() string