// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v6.33.2
// source: google/cloud/bigquery/migration/v2alpha/migration_entities.proto

package migrationpb

import (
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"

	_ "google.golang.org/genproto/googleapis/api/annotations"
	errdetails "google.golang.org/genproto/googleapis/rpc/errdetails"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	anypb "google.golang.org/protobuf/types/known/anypb"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

// Possible migration workflow states.
type MigrationWorkflow_State int32

const (
	// Workflow state is unspecified.
	MigrationWorkflow_STATE_UNSPECIFIED MigrationWorkflow_State = 0
	// Workflow is in draft status, i.e. tasks are not yet eligible for
	// execution.
	MigrationWorkflow_DRAFT MigrationWorkflow_State = 1
	// Workflow is running (i.e. tasks are eligible for execution).
	MigrationWorkflow_RUNNING MigrationWorkflow_State = 2
	// Workflow is paused. Tasks currently in progress may continue, but no
	// further tasks will be scheduled.
	MigrationWorkflow_PAUSED MigrationWorkflow_State = 3
	// Workflow is complete. There should not be any task in a non-terminal
	// state, but if they are (e.g. forced termination), they will not be
	// scheduled.
	MigrationWorkflow_COMPLETED MigrationWorkflow_State = 4
)

// Enum value maps for MigrationWorkflow_State.
var (
	MigrationWorkflow_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "DRAFT",
		2: "RUNNING",
		3: "PAUSED",
		4: "COMPLETED",
	}
	MigrationWorkflow_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"DRAFT":             1,
		"RUNNING":           2,
		"PAUSED":            3,
		"COMPLETED":         4,
	}
)

func (x MigrationWorkflow_State) Enum() *MigrationWorkflow_State {
	p := new(MigrationWorkflow_State)
	*p = x
	return p
}

func (x MigrationWorkflow_State) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (MigrationWorkflow_State) Descriptor() protoreflect.EnumDescriptor {
	return file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_enumTypes[0].Descriptor()
}

func (MigrationWorkflow_State) Type() protoreflect.EnumType {
	return &file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_enumTypes[0]
}

func (x MigrationWorkflow_State) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use MigrationWorkflow_State.Descriptor instead.
func (MigrationWorkflow_State) EnumDescriptor() ([]byte, []int) {
	return file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_rawDescGZIP(), []int{0, 0}
}

// Possible states of a migration task.
type MigrationTask_State int32

const (
	// The state is unspecified.
	MigrationTask_STATE_UNSPECIFIED MigrationTask_State = 0
	// The task is waiting for orchestration.
	MigrationTask_PENDING MigrationTask_State = 1
	// The task is assigned to an orchestrator.
	MigrationTask_ORCHESTRATING MigrationTask_State = 2
	// The task is running, i.e. its subtasks are ready for execution.
	MigrationTask_RUNNING MigrationTask_State = 3
	// Tha task is paused. Assigned subtasks can continue, but no new subtasks
	// will be scheduled.
	MigrationTask_PAUSED MigrationTask_State = 4
	// The task finished successfully.
	MigrationTask_SUCCEEDED MigrationTask_State = 5
	// The task finished unsuccessfully.
	MigrationTask_FAILED MigrationTask_State = 6
)

// Enum value maps for MigrationTask_State.
var (
	MigrationTask_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "PENDING",
		2: "ORCHESTRATING",
		3: "RUNNING",
		4: "PAUSED",
		5: "SUCCEEDED",
		6: "FAILED",
	}
	MigrationTask_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"PENDING":           1,
		"ORCHESTRATING":     2,
		"RUNNING":           3,
		"PAUSED":            4,
		"SUCCEEDED":         5,
		"FAILED":            6,
	}
)

func (x MigrationTask_State) Enum() *MigrationTask_State {
	p := new(MigrationTask_State)
	*p = x
	return p
}

func (x MigrationTask_State) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (MigrationTask_State) Descriptor() protoreflect.EnumDescriptor {
	return file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_enumTypes[1].Descriptor()
}

func (MigrationTask_State) Type() protoreflect.EnumType {
	return &file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_enumTypes[1]
}

func (x MigrationTask_State) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use MigrationTask_State.Descriptor instead.
func (MigrationTask_State) EnumDescriptor() ([]byte, []int) {
	return file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_rawDescGZIP(), []int{1, 0}
}

// Possible states of a migration subtask.
type MigrationSubtask_State int32

const (
	// The state is unspecified.
	MigrationSubtask_STATE_UNSPECIFIED MigrationSubtask_State = 0
	// The subtask is ready, i.e. it is ready for execution.
	MigrationSubtask_ACTIVE MigrationSubtask_State = 1
	// The subtask is running, i.e. it is assigned to a worker for execution.
	MigrationSubtask_RUNNING MigrationSubtask_State = 2
	// The subtask finished successfully.
	MigrationSubtask_SUCCEEDED MigrationSubtask_State = 3
	// The subtask finished unsuccessfully.
	MigrationSubtask_FAILED MigrationSubtask_State = 4
	// The subtask is paused, i.e., it will not be scheduled. If it was already
	// assigned,it might still finish but no new lease renewals will be granted.
	MigrationSubtask_PAUSED MigrationSubtask_State = 5
)

// Enum value maps for MigrationSubtask_State.
var (
	MigrationSubtask_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "ACTIVE",
		2: "RUNNING",
		3: "SUCCEEDED",
		4: "FAILED",
		5: "PAUSED",
	}
	MigrationSubtask_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"ACTIVE":            1,
		"RUNNING":           2,
		"SUCCEEDED":         3,
		"FAILED":            4,
		"PAUSED":            5,
	}
)

func (x MigrationSubtask_State) Enum() *MigrationSubtask_State {
	p := new(MigrationSubtask_State)
	*p = x
	return p
}

func (x MigrationSubtask_State) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (MigrationSubtask_State) Descriptor() protoreflect.EnumDescriptor {
	return file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_enumTypes[2].Descriptor()
}

func (MigrationSubtask_State) Type() protoreflect.EnumType {
	return &file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_enumTypes[2]
}

func (x MigrationSubtask_State) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use MigrationSubtask_State.Descriptor instead.
func (MigrationSubtask_State) EnumDescriptor() ([]byte, []int) {
	return file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_rawDescGZIP(), []int{2, 0}
}

// A migration workflow which specifies what needs to be done for an EDW
// migration.
type MigrationWorkflow struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Output only. Immutable. The unique identifier for the migration workflow. The ID is
	// server-generated.
	//
	// Example: `projects/123/locations/us/workflows/345`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The display name of the workflow. This can be set to give a workflow
	// a descriptive name. There is no guarantee or enforcement of uniqueness.
	DisplayName string `protobuf:"bytes,6,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// The tasks in a workflow in a named map. The name (i.e. key) has no
	// meaning and is merely a convenient way to address a specific task
	// in a workflow.
	Tasks map[string]*MigrationTask `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Output only. That status of the workflow.
	State MigrationWorkflow_State `protobuf:"varint,3,opt,name=state,proto3,enum=google.cloud.bigquery.migration.v2alpha.MigrationWorkflow_State" json:"state,omitempty"`
	// Time when the workflow was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Time when the workflow was last updated.
	LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

func (x *MigrationWorkflow) Reset() {
	*x = MigrationWorkflow{}
	mi := &file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *MigrationWorkflow) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*MigrationWorkflow) ProtoMessage() {}

func (x *MigrationWorkflow) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use MigrationWorkflow.ProtoReflect.Descriptor instead.
func (*MigrationWorkflow) Descriptor() ([]byte, []int) {
	return file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_rawDescGZIP(), []int{0}
}

func (x *MigrationWorkflow) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *MigrationWorkflow) GetDisplayName() string {
	if x != nil {
		return x.DisplayName
	}
	return ""
}

func (x *MigrationWorkflow) GetTasks() map[string]*MigrationTask {
	if x != nil {
		return x.Tasks
	}
	return nil
}

func (x *MigrationWorkflow) GetState() MigrationWorkflow_State {
	if x != nil {
		return x.State
	}
	return MigrationWorkflow_STATE_UNSPECIFIED
}

func (x *MigrationWorkflow) GetCreateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.CreateTime
	}
	return nil
}

func (x *MigrationWorkflow) GetLastUpdateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.LastUpdateTime
	}
	return nil
}

// A single task for a migration which has details about the configuration of
// the task.
type MigrationTask struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The details of the task.
	//
	// Types that are valid to be assigned to TaskDetails:
	//
	//	*MigrationTask_AssessmentTaskDetails
	//	*MigrationTask_TranslationTaskDetails
	TaskDetails isMigrationTask_TaskDetails `protobuf_oneof:"task_details"`
	// Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The type of the task. This must be a supported task type.
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// DEPRECATED! Use one of the task_details below.
	// The details of the task. The type URL must be one of the supported task
	// details messages and correspond to the Task's type.
	Details *anypb.Any `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"`
	// Output only. The current state of the task.
	State MigrationTask_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.bigquery.migration.v2alpha.MigrationTask_State" json:"state,omitempty"`
	// Output only. An explanation that may be populated when the task is in FAILED state.
	ProcessingError *errdetails.ErrorInfo `protobuf:"bytes,5,opt,name=processing_error,json=processingError,proto3" json:"processing_error,omitempty"`
	// Time when the task was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Time when the task was last updated.
	LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
	// Output only. Additional information about the orchestration.
	OrchestrationResult *MigrationTaskOrchestrationResult `protobuf:"bytes,10,opt,name=orchestration_result,json=orchestrationResult,proto3" json:"orchestration_result,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

func (x *MigrationTask) Reset() {
	*x = MigrationTask{}
	mi := &file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *MigrationTask) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*MigrationTask) ProtoMessage() {}

func (x *MigrationTask) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use MigrationTask.ProtoReflect.Descriptor instead.
func (*MigrationTask) Descriptor() ([]byte, []int) {
	return file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_rawDescGZIP(), []int{1}
}

func (x *MigrationTask) GetTaskDetails() isMigrationTask_TaskDetails {
	if x != nil {
		return x.TaskDetails
	}
	return nil
}

func (x *MigrationTask) GetAssessmentTaskDetails() *AssessmentTaskDetails {
	if x != nil {
		if x, ok := x.TaskDetails.(*MigrationTask_AssessmentTaskDetails); ok {
			return x.AssessmentTaskDetails
		}
	}
	return nil
}

func (x *MigrationTask) GetTranslationTaskDetails() *TranslationTaskDetails {
	if x != nil {
		if x, ok := x.TaskDetails.(*MigrationTask_TranslationTaskDetails); ok {
			return x.TranslationTaskDetails
		}
	}
	return nil
}

func (x *MigrationTask) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *MigrationTask) GetType() string {
	if x != nil {
		return x.Type
	}
	return ""
}

func (x *MigrationTask) GetDetails() *anypb.Any {
	if x != nil {
		return x.Details
	}
	return nil
}

func (x *MigrationTask) GetState() MigrationTask_State {
	if x != nil {
		return x.State
	}
	return MigrationTask_STATE_UNSPECIFIED
}

func (x *MigrationTask) GetProcessingError() *errdetails.ErrorInfo {
	if x != nil {
		return x.ProcessingError
	}
	return nil
}

func (x *MigrationTask) GetCreateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.CreateTime
	}
	return nil
}

func (x *MigrationTask) GetLastUpdateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.LastUpdateTime
	}
	return nil
}

func (x *MigrationTask) GetOrchestrationResult() *MigrationTaskOrchestrationResult {
	if x != nil {
		return x.OrchestrationResult
	}
	return nil
}

type isMigrationTask_TaskDetails interface {
	isMigrationTask_TaskDetails()
}

type MigrationTask_AssessmentTaskDetails struct {
	// Task configuration for Assessment.
	AssessmentTaskDetails *AssessmentTaskDetails `protobuf:"bytes,12,opt,name=assessment_task_details,json=assessmentTaskDetails,proto3,oneof"`
}

type MigrationTask_TranslationTaskDetails struct {
	// Task configuration for Batch/Offline SQL Translation.
	TranslationTaskDetails *TranslationTaskDetails `protobuf:"bytes,13,opt,name=translation_task_details,json=translationTaskDetails,proto3,oneof"`
}

func (*MigrationTask_AssessmentTaskDetails) isMigrationTask_TaskDetails() {}

func (*MigrationTask_TranslationTaskDetails) isMigrationTask_TaskDetails() {}

// A subtask for a migration which carries details about the configuration of
// the subtask. The content of the details should not matter to the end user,
// but is a contract between the subtask creator and subtask worker.
type MigrationSubtask struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Output only. Immutable. The resource name for the migration subtask. The ID is
	// server-generated.
	//
	// Example: `projects/123/locations/us/workflows/345/subtasks/678`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The unique ID of the task to which this subtask belongs.
	TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	// The type of the Subtask. The migration service does not check whether this
	// is a known type. It is up to the task creator (i.e. orchestrator or worker)
	// to ensure it only creates subtasks for which there are compatible workers
	// polling for Subtasks.
	Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	// Output only. The current state of the subtask.
	State MigrationSubtask_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.cloud.bigquery.migration.v2alpha.MigrationSubtask_State" json:"state,omitempty"`
	// Output only. An explanation that may be populated when the task is in FAILED state.
	ProcessingError *errdetails.ErrorInfo `protobuf:"bytes,6,opt,name=processing_error,json=processingError,proto3" json:"processing_error,omitempty"`
	// Output only. Provides details to errors and issues encountered while processing the
	// subtask. Presence of error details does not mean that the subtask failed.
	ResourceErrorDetails []*ResourceErrorDetail `protobuf:"bytes,12,rep,name=resource_error_details,json=resourceErrorDetails,proto3" json:"resource_error_details,omitempty"`
	// The number or resources with errors. Note: This is not the total
	// number of errors as each resource can have more than one error.
	// This is used to indicate truncation by having a `resource_error_count`
	// that is higher than the size of `resource_error_details`.
	ResourceErrorCount int32 `protobuf:"varint,13,opt,name=resource_error_count,json=resourceErrorCount,proto3" json:"resource_error_count,omitempty"`
	// Time when the subtask was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Time when the subtask was last updated.
	LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
	// The metrics for the subtask.
	Metrics       []*TimeSeries `protobuf:"bytes,11,rep,name=metrics,proto3" json:"metrics,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *MigrationSubtask) Reset() {
	*x = MigrationSubtask{}
	mi := &file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *MigrationSubtask) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*MigrationSubtask) ProtoMessage() {}

func (x *MigrationSubtask) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use MigrationSubtask.ProtoReflect.Descriptor instead.
func (*MigrationSubtask) Descriptor() ([]byte, []int) {
	return file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_rawDescGZIP(), []int{2}
}

func (x *MigrationSubtask) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *MigrationSubtask) GetTaskId() string {
	if x != nil {
		return x.TaskId
	}
	return ""
}

func (x *MigrationSubtask) GetType() string {
	if x != nil {
		return x.Type
	}
	return ""
}

func (x *MigrationSubtask) GetState() MigrationSubtask_State {
	if x != nil {
		return x.State
	}
	return MigrationSubtask_STATE_UNSPECIFIED
}

func (x *MigrationSubtask) GetProcessingError() *errdetails.ErrorInfo {
	if x != nil {
		return x.ProcessingError
	}
	return nil
}

func (x *MigrationSubtask) GetResourceErrorDetails() []*ResourceErrorDetail {
	if x != nil {
		return x.ResourceErrorDetails
	}
	return nil
}

func (x *MigrationSubtask) GetResourceErrorCount() int32 {
	if x != nil {
		return x.ResourceErrorCount
	}
	return 0
}

func (x *MigrationSubtask) GetCreateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.CreateTime
	}
	return nil
}

func (x *MigrationSubtask) GetLastUpdateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.LastUpdateTime
	}
	return nil
}

func (x *MigrationSubtask) GetMetrics() []*TimeSeries {
	if x != nil {
		return x.Metrics
	}
	return nil
}

// Additional information from the orchestrator when it is done with the
// task orchestration.
type MigrationTaskOrchestrationResult struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Details specific to the task type.
	//
	// Types that are valid to be assigned to Details:
	//
	//	*MigrationTaskOrchestrationResult_AssessmentDetails
	Details       isMigrationTaskOrchestrationResult_Details `protobuf_oneof:"details"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *MigrationTaskOrchestrationResult) Reset() {
	*x = MigrationTaskOrchestrationResult{}
	mi := &file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *MigrationTaskOrchestrationResult) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*MigrationTaskOrchestrationResult) ProtoMessage() {}

func (x *MigrationTaskOrchestrationResult) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_msgTypes[3]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use MigrationTaskOrchestrationResult.ProtoReflect.Descriptor instead.
func (*MigrationTaskOrchestrationResult) Descriptor() ([]byte, []int) {
	return file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_rawDescGZIP(), []int{3}
}

func (x *MigrationTaskOrchestrationResult) GetDetails() isMigrationTaskOrchestrationResult_Details {
	if x != nil {
		return x.Details
	}
	return nil
}

func (x *MigrationTaskOrchestrationResult) GetAssessmentDetails() *AssessmentOrchestrationResultDetails {
	if x != nil {
		if x, ok := x.Details.(*MigrationTaskOrchestrationResult_AssessmentDetails); ok {
			return x.AssessmentDetails
		}
	}
	return nil
}

type isMigrationTaskOrchestrationResult_Details interface {
	isMigrationTaskOrchestrationResult_Details()
}

type MigrationTaskOrchestrationResult_AssessmentDetails struct {
	// Details specific to assessment task types.
	AssessmentDetails *AssessmentOrchestrationResultDetails `protobuf:"bytes,1,opt,name=assessment_details,json=assessmentDetails,proto3,oneof"`
}

func (*MigrationTaskOrchestrationResult_AssessmentDetails) isMigrationTaskOrchestrationResult_Details() {
}

var File_google_cloud_bigquery_migration_v2alpha_migration_entities_proto protoreflect.FileDescriptor

const file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_rawDesc = "" +
	"\n" +
	"@google/cloud/bigquery/migration/v2alpha/migration_entities.proto\x12'google.cloud.bigquery.migration.v2alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a=google/cloud/bigquery/migration/v2alpha/assessment_task.proto\x1aEgoogle/cloud/bigquery/migration/v2alpha/migration_error_details.proto\x1a?google/cloud/bigquery/migration/v2alpha/migration_metrics.proto\x1a>google/cloud/bigquery/migration/v2alpha/translation_task.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/rpc/error_details.proto\"\xcb\x05\n" +
	"\x11MigrationWorkflow\x12\x1a\n" +
	"\x04name\x18\x01 \x01(\tB\x06\xe0A\x03\xe0A\x05R\x04name\x12!\n" +
	"\fdisplay_name\x18\x06 \x01(\tR\vdisplayName\x12[\n" +
	"\x05tasks\x18\x02 \x03(\v2E.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.TasksEntryR\x05tasks\x12[\n" +
	"\x05state\x18\x03 \x01(\x0e2@.google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.StateB\x03\xe0A\x03R\x05state\x12;\n" +
	"\vcreate_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\n" +
	"createTime\x12D\n" +
	"\x10last_update_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\x0elastUpdateTime\x1ap\n" +
	"\n" +
	"TasksEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12L\n" +
	"\x05value\x18\x02 \x01(\v26.google.cloud.bigquery.migration.v2alpha.MigrationTaskR\x05value:\x028\x01\"Q\n" +
	"\x05State\x12\x15\n" +
	"\x11STATE_UNSPECIFIED\x10\x00\x12\t\n" +
	"\x05DRAFT\x10\x01\x12\v\n" +
	"\aRUNNING\x10\x02\x12\n" +
	"\n" +
	"\x06PAUSED\x10\x03\x12\r\n" +
	"\tCOMPLETED\x10\x04:u\xeaAr\n" +
	"2bigquerymigration.googleapis.com/MigrationWorkflow\x12<projects/{project}/locations/{location}/workflows/{workflow}\"\x8d\a\n" +
	"\rMigrationTask\x12x\n" +
	"\x17assessment_task_details\x18\f \x01(\v2>.google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetailsH\x00R\x15assessmentTaskDetails\x12{\n" +
	"\x18translation_task_details\x18\r \x01(\v2?.google.cloud.bigquery.migration.v2alpha.TranslationTaskDetailsH\x00R\x16translationTaskDetails\x12\x16\n" +
	"\x02id\x18\x01 \x01(\tB\x06\xe0A\x03\xe0A\x05R\x02id\x12\x12\n" +
	"\x04type\x18\x02 \x01(\tR\x04type\x12.\n" +
	"\adetails\x18\x03 \x01(\v2\x14.google.protobuf.AnyR\adetails\x12W\n" +
	"\x05state\x18\x04 \x01(\x0e2<.google.cloud.bigquery.migration.v2alpha.MigrationTask.StateB\x03\xe0A\x03R\x05state\x12E\n" +
	"\x10processing_error\x18\x05 \x01(\v2\x15.google.rpc.ErrorInfoB\x03\xe0A\x03R\x0fprocessingError\x12;\n" +
	"\vcreate_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\n" +
	"createTime\x12D\n" +
	"\x10last_update_time\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\x0elastUpdateTime\x12\x81\x01\n" +
	"\x14orchestration_result\x18\n" +
	" \x01(\v2I.google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResultB\x03\xe0A\x03R\x13orchestrationResult\"r\n" +
	"\x05State\x12\x15\n" +
	"\x11STATE_UNSPECIFIED\x10\x00\x12\v\n" +
	"\aPENDING\x10\x01\x12\x11\n" +
	"\rORCHESTRATING\x10\x02\x12\v\n" +
	"\aRUNNING\x10\x03\x12\n" +
	"\n" +
	"\x06PAUSED\x10\x04\x12\r\n" +
	"\tSUCCEEDED\x10\x05\x12\n" +
	"\n" +
	"\x06FAILED\x10\x06B\x0e\n" +
	"\ftask_details\"\xe6\x06\n" +
	"\x10MigrationSubtask\x12\x1a\n" +
	"\x04name\x18\x01 \x01(\tB\x06\xe0A\x03\xe0A\x05R\x04name\x12\x17\n" +
	"\atask_id\x18\x02 \x01(\tR\x06taskId\x12\x12\n" +
	"\x04type\x18\x03 \x01(\tR\x04type\x12Z\n" +
	"\x05state\x18\x05 \x01(\x0e2?.google.cloud.bigquery.migration.v2alpha.MigrationSubtask.StateB\x03\xe0A\x03R\x05state\x12E\n" +
	"\x10processing_error\x18\x06 \x01(\v2\x15.google.rpc.ErrorInfoB\x03\xe0A\x03R\x0fprocessingError\x12w\n" +
	"\x16resource_error_details\x18\f \x03(\v2<.google.cloud.bigquery.migration.v2alpha.ResourceErrorDetailB\x03\xe0A\x03R\x14resourceErrorDetails\x120\n" +
	"\x14resource_error_count\x18\r \x01(\x05R\x12resourceErrorCount\x12;\n" +
	"\vcreate_time\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\n" +
	"createTime\x12D\n" +
	"\x10last_update_time\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\x0elastUpdateTime\x12M\n" +
	"\ametrics\x18\v \x03(\v23.google.cloud.bigquery.migration.v2alpha.TimeSeriesR\ametrics\"^\n" +
	"\x05State\x12\x15\n" +
	"\x11STATE_UNSPECIFIED\x10\x00\x12\n" +
	"\n" +
	"\x06ACTIVE\x10\x01\x12\v\n" +
	"\aRUNNING\x10\x02\x12\r\n" +
	"\tSUCCEEDED\x10\x03\x12\n" +
	"\n" +
	"\x06FAILED\x10\x04\x12\n" +
	"\n" +
	"\x06PAUSED\x10\x05:\x88\x01\xeaA\x84\x01\n" +
	"1bigquerymigration.googleapis.com/MigrationSubtask\x12Oprojects/{project}/locations/{location}/workflows/{workflow}/subtasks/{subtask}\"\xad\x01\n" +
	" MigrationTaskOrchestrationResult\x12~\n" +
	"\x12assessment_details\x18\x01 \x01(\v2M.google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetailsH\x00R\x11assessmentDetailsB\t\n" +
	"\adetailsB\xe6\x01\n" +
	"+com.google.cloud.bigquery.migration.v2alphaB\x16MigrationEntitiesProtoP\x01ZIcloud.google.com/go/bigquery/migration/apiv2alpha/migrationpb;migrationpb\xaa\x02'Google.Cloud.BigQuery.Migration.V2Alpha\xca\x02'Google\\Cloud\\BigQuery\\Migration\\V2alphab\x06proto3"

var (
	file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_rawDescOnce sync.Once
	file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_rawDescData []byte
)

func file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_rawDescGZIP() []byte {
	file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_rawDescOnce.Do(func() {
		file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_rawDesc), len(file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_rawDesc)))
	})
	return file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_rawDescData
}

var file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
var file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_goTypes = []any{
	(MigrationWorkflow_State)(0),                 // 0: google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State
	(MigrationTask_State)(0),                     // 1: google.cloud.bigquery.migration.v2alpha.MigrationTask.State
	(MigrationSubtask_State)(0),                  // 2: google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State
	(*MigrationWorkflow)(nil),                    // 3: google.cloud.bigquery.migration.v2alpha.MigrationWorkflow
	(*MigrationTask)(nil),                        // 4: google.cloud.bigquery.migration.v2alpha.MigrationTask
	(*MigrationSubtask)(nil),                     // 5: google.cloud.bigquery.migration.v2alpha.MigrationSubtask
	(*MigrationTaskOrchestrationResult)(nil),     // 6: google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult
	nil,                                          // 7: google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.TasksEntry
	(*timestamppb.Timestamp)(nil),                // 8: google.protobuf.Timestamp
	(*AssessmentTaskDetails)(nil),                // 9: google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails
	(*TranslationTaskDetails)(nil),               // 10: google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails
	(*anypb.Any)(nil),                            // 11: google.protobuf.Any
	(*errdetails.ErrorInfo)(nil),                 // 12: google.rpc.ErrorInfo
	(*ResourceErrorDetail)(nil),                  // 13: google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail
	(*TimeSeries)(nil),                           // 14: google.cloud.bigquery.migration.v2alpha.TimeSeries
	(*AssessmentOrchestrationResultDetails)(nil), // 15: google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails
}
var file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_depIdxs = []int32{
	7,  // 0: google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.tasks:type_name -> google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.TasksEntry
	0,  // 1: google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.state:type_name -> google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.State
	8,  // 2: google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.create_time:type_name -> google.protobuf.Timestamp
	8,  // 3: google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.last_update_time:type_name -> google.protobuf.Timestamp
	9,  // 4: google.cloud.bigquery.migration.v2alpha.MigrationTask.assessment_task_details:type_name -> google.cloud.bigquery.migration.v2alpha.AssessmentTaskDetails
	10, // 5: google.cloud.bigquery.migration.v2alpha.MigrationTask.translation_task_details:type_name -> google.cloud.bigquery.migration.v2alpha.TranslationTaskDetails
	11, // 6: google.cloud.bigquery.migration.v2alpha.MigrationTask.details:type_name -> google.protobuf.Any
	1,  // 7: google.cloud.bigquery.migration.v2alpha.MigrationTask.state:type_name -> google.cloud.bigquery.migration.v2alpha.MigrationTask.State
	12, // 8: google.cloud.bigquery.migration.v2alpha.MigrationTask.processing_error:type_name -> google.rpc.ErrorInfo
	8,  // 9: google.cloud.bigquery.migration.v2alpha.MigrationTask.create_time:type_name -> google.protobuf.Timestamp
	8,  // 10: google.cloud.bigquery.migration.v2alpha.MigrationTask.last_update_time:type_name -> google.protobuf.Timestamp
	6,  // 11: google.cloud.bigquery.migration.v2alpha.MigrationTask.orchestration_result:type_name -> google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult
	2,  // 12: google.cloud.bigquery.migration.v2alpha.MigrationSubtask.state:type_name -> google.cloud.bigquery.migration.v2alpha.MigrationSubtask.State
	12, // 13: google.cloud.bigquery.migration.v2alpha.MigrationSubtask.processing_error:type_name -> google.rpc.ErrorInfo
	13, // 14: google.cloud.bigquery.migration.v2alpha.MigrationSubtask.resource_error_details:type_name -> google.cloud.bigquery.migration.v2alpha.ResourceErrorDetail
	8,  // 15: google.cloud.bigquery.migration.v2alpha.MigrationSubtask.create_time:type_name -> google.protobuf.Timestamp
	8,  // 16: google.cloud.bigquery.migration.v2alpha.MigrationSubtask.last_update_time:type_name -> google.protobuf.Timestamp
	14, // 17: google.cloud.bigquery.migration.v2alpha.MigrationSubtask.metrics:type_name -> google.cloud.bigquery.migration.v2alpha.TimeSeries
	15, // 18: google.cloud.bigquery.migration.v2alpha.MigrationTaskOrchestrationResult.assessment_details:type_name -> google.cloud.bigquery.migration.v2alpha.AssessmentOrchestrationResultDetails
	4,  // 19: google.cloud.bigquery.migration.v2alpha.MigrationWorkflow.TasksEntry.value:type_name -> google.cloud.bigquery.migration.v2alpha.MigrationTask
	20, // [20:20] is the sub-list for method output_type
	20, // [20:20] is the sub-list for method input_type
	20, // [20:20] is the sub-list for extension type_name
	20, // [20:20] is the sub-list for extension extendee
	0,  // [0:20] is the sub-list for field type_name
}

func init() { file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_init() }
func file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_init() {
	if File_google_cloud_bigquery_migration_v2alpha_migration_entities_proto != nil {
		return
	}
	file_google_cloud_bigquery_migration_v2alpha_assessment_task_proto_init()
	file_google_cloud_bigquery_migration_v2alpha_migration_error_details_proto_init()
	file_google_cloud_bigquery_migration_v2alpha_migration_metrics_proto_init()
	file_google_cloud_bigquery_migration_v2alpha_translation_task_proto_init()
	file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_msgTypes[1].OneofWrappers = []any{
		(*MigrationTask_AssessmentTaskDetails)(nil),
		(*MigrationTask_TranslationTaskDetails)(nil),
	}
	file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_msgTypes[3].OneofWrappers = []any{
		(*MigrationTaskOrchestrationResult_AssessmentDetails)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_rawDesc), len(file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_rawDesc)),
			NumEnums:      3,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_goTypes,
		DependencyIndexes: file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_depIdxs,
		EnumInfos:         file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_enumTypes,
		MessageInfos:      file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_msgTypes,
	}.Build()
	File_google_cloud_bigquery_migration_v2alpha_migration_entities_proto = out.File
	file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_goTypes = nil
	file_google_cloud_bigquery_migration_v2alpha_migration_entities_proto_depIdxs = nil
}
