// 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/aiplatform/v1beta1/ui_pipeline_spec.proto

package aiplatformpb

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

	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	structpb "google.golang.org/protobuf/types/known/structpb"
)

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)
)

// The definition of a artifact type in MLMD.
type ArtifactTypeSchema struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Kind:
	//
	//	*ArtifactTypeSchema_SchemaTitle
	//	*ArtifactTypeSchema_SchemaUri
	//	*ArtifactTypeSchema_InstanceSchema
	Kind isArtifactTypeSchema_Kind `protobuf_oneof:"kind"`
	// The schema version of the artifact. If the value is not set, it defaults
	// to the latest version in the system.
	SchemaVersion string `protobuf:"bytes,4,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ArtifactTypeSchema) ProtoMessage() {}

func (x *ArtifactTypeSchema) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_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 ArtifactTypeSchema.ProtoReflect.Descriptor instead.
func (*ArtifactTypeSchema) Descriptor() ([]byte, []int) {
	return file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_rawDescGZIP(), []int{0}
}

func (x *ArtifactTypeSchema) GetKind() isArtifactTypeSchema_Kind {
	if x != nil {
		return x.Kind
	}
	return nil
}

func (x *ArtifactTypeSchema) GetSchemaTitle() string {
	if x != nil {
		if x, ok := x.Kind.(*ArtifactTypeSchema_SchemaTitle); ok {
			return x.SchemaTitle
		}
	}
	return ""
}

// Deprecated: Marked as deprecated in google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto.
func (x *ArtifactTypeSchema) GetSchemaUri() string {
	if x != nil {
		if x, ok := x.Kind.(*ArtifactTypeSchema_SchemaUri); ok {
			return x.SchemaUri
		}
	}
	return ""
}

func (x *ArtifactTypeSchema) GetInstanceSchema() string {
	if x != nil {
		if x, ok := x.Kind.(*ArtifactTypeSchema_InstanceSchema); ok {
			return x.InstanceSchema
		}
	}
	return ""
}

func (x *ArtifactTypeSchema) GetSchemaVersion() string {
	if x != nil {
		return x.SchemaVersion
	}
	return ""
}

type isArtifactTypeSchema_Kind interface {
	isArtifactTypeSchema_Kind()
}

type ArtifactTypeSchema_SchemaTitle struct {
	// The name of the type. The format of the title must be:
	// `<namespace>.<title>`.
	// Examples:
	//   - `aiplatform.Model`
	//   - `acme.CustomModel`
	//
	// When this field is set, the type must be pre-registered in the MLMD
	// store.
	SchemaTitle string `protobuf:"bytes,1,opt,name=schema_title,json=schemaTitle,proto3,oneof"`
}

type ArtifactTypeSchema_SchemaUri struct {
	// Points to a YAML file stored on Cloud Storage describing the
	// format.
	// Deprecated. Use [PipelineArtifactTypeSchema.schema_title][] or
	// [PipelineArtifactTypeSchema.instance_schema][] instead.
	//
	// Deprecated: Marked as deprecated in google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto.
	SchemaUri string `protobuf:"bytes,2,opt,name=schema_uri,json=schemaUri,proto3,oneof"`
}

type ArtifactTypeSchema_InstanceSchema struct {
	// Contains a raw YAML string, describing the format of
	// the properties of the type.
	InstanceSchema string `protobuf:"bytes,3,opt,name=instance_schema,json=instanceSchema,proto3,oneof"`
}

func (*ArtifactTypeSchema_SchemaTitle) isArtifactTypeSchema_Kind() {}

func (*ArtifactTypeSchema_SchemaUri) isArtifactTypeSchema_Kind() {}

func (*ArtifactTypeSchema_InstanceSchema) isArtifactTypeSchema_Kind() {}

// The definition of a runtime artifact.
type RuntimeArtifact struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The name of an artifact.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The type of the artifact.
	Type *ArtifactTypeSchema `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// The URI of the artifact.
	Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"`
	// The properties of the artifact.
	// Deprecated. Use
	// [RuntimeArtifact.metadata][google.cloud.aiplatform.v1beta1.RuntimeArtifact.metadata]
	// instead.
	//
	// Deprecated: Marked as deprecated in google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto.
	Properties map[string]*Value `protobuf:"bytes,4,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// The custom properties of the artifact.
	// Deprecated. Use
	// [RuntimeArtifact.metadata][google.cloud.aiplatform.v1beta1.RuntimeArtifact.metadata]
	// instead.
	//
	// Deprecated: Marked as deprecated in google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto.
	CustomProperties map[string]*Value `protobuf:"bytes,5,rep,name=custom_properties,json=customProperties,proto3" json:"custom_properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Properties of the Artifact.
	Metadata      *structpb.Struct `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*RuntimeArtifact) ProtoMessage() {}

func (x *RuntimeArtifact) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_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 RuntimeArtifact.ProtoReflect.Descriptor instead.
func (*RuntimeArtifact) Descriptor() ([]byte, []int) {
	return file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_rawDescGZIP(), []int{1}
}

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

func (x *RuntimeArtifact) GetType() *ArtifactTypeSchema {
	if x != nil {
		return x.Type
	}
	return nil
}

func (x *RuntimeArtifact) GetUri() string {
	if x != nil {
		return x.Uri
	}
	return ""
}

// Deprecated: Marked as deprecated in google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto.
func (x *RuntimeArtifact) GetProperties() map[string]*Value {
	if x != nil {
		return x.Properties
	}
	return nil
}

// Deprecated: Marked as deprecated in google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto.
func (x *RuntimeArtifact) GetCustomProperties() map[string]*Value {
	if x != nil {
		return x.CustomProperties
	}
	return nil
}

func (x *RuntimeArtifact) GetMetadata() *structpb.Struct {
	if x != nil {
		return x.Metadata
	}
	return nil
}

var File_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto protoreflect.FileDescriptor

const file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_rawDesc = "" +
	"\n" +
	"6google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto\x12\x1fgoogle.cloud.aiplatform.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/aiplatform/v1beta1/value.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xb8\x01\n" +
	"\x12ArtifactTypeSchema\x12#\n" +
	"\fschema_title\x18\x01 \x01(\tH\x00R\vschemaTitle\x12#\n" +
	"\n" +
	"schema_uri\x18\x02 \x01(\tB\x02\x18\x01H\x00R\tschemaUri\x12)\n" +
	"\x0finstance_schema\x18\x03 \x01(\tH\x00R\x0einstanceSchema\x12%\n" +
	"\x0eschema_version\x18\x04 \x01(\tR\rschemaVersionB\x06\n" +
	"\x04kind\"\xe8\x04\n" +
	"\x0fRuntimeArtifact\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12G\n" +
	"\x04type\x18\x02 \x01(\v23.google.cloud.aiplatform.v1beta1.ArtifactTypeSchemaR\x04type\x12\x10\n" +
	"\x03uri\x18\x03 \x01(\tR\x03uri\x12d\n" +
	"\n" +
	"properties\x18\x04 \x03(\v2@.google.cloud.aiplatform.v1beta1.RuntimeArtifact.PropertiesEntryB\x02\x18\x01R\n" +
	"properties\x12w\n" +
	"\x11custom_properties\x18\x05 \x03(\v2F.google.cloud.aiplatform.v1beta1.RuntimeArtifact.CustomPropertiesEntryB\x02\x18\x01R\x10customProperties\x123\n" +
	"\bmetadata\x18\x06 \x01(\v2\x17.google.protobuf.StructR\bmetadata\x1ae\n" +
	"\x0fPropertiesEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12<\n" +
	"\x05value\x18\x02 \x01(\v2&.google.cloud.aiplatform.v1beta1.ValueR\x05value:\x028\x01\x1ak\n" +
	"\x15CustomPropertiesEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12<\n" +
	"\x05value\x18\x02 \x01(\v2&.google.cloud.aiplatform.v1beta1.ValueR\x05value:\x028\x01B\xea\x01\n" +
	"#com.google.cloud.aiplatform.v1beta1B\x13UiPipelineSpecProtoP\x01ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb\xaa\x02\x1fGoogle.Cloud.AIPlatform.V1Beta1\xca\x02\x1fGoogle\\Cloud\\AIPlatform\\V1beta1\xea\x02\"Google::Cloud::AIPlatform::V1beta1b\x06proto3"

var (
	file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_rawDescOnce sync.Once
	file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_rawDescData []byte
)

func file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_rawDescGZIP() []byte {
	file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_rawDescOnce.Do(func() {
		file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_rawDesc), len(file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_rawDesc)))
	})
	return file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_rawDescData
}

var file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_goTypes = []any{
	(*ArtifactTypeSchema)(nil), // 0: google.cloud.aiplatform.v1beta1.ArtifactTypeSchema
	(*RuntimeArtifact)(nil),    // 1: google.cloud.aiplatform.v1beta1.RuntimeArtifact
	nil,                        // 2: google.cloud.aiplatform.v1beta1.RuntimeArtifact.PropertiesEntry
	nil,                        // 3: google.cloud.aiplatform.v1beta1.RuntimeArtifact.CustomPropertiesEntry
	(*structpb.Struct)(nil),    // 4: google.protobuf.Struct
	(*Value)(nil),              // 5: google.cloud.aiplatform.v1beta1.Value
}
var file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_depIdxs = []int32{
	0, // 0: google.cloud.aiplatform.v1beta1.RuntimeArtifact.type:type_name -> google.cloud.aiplatform.v1beta1.ArtifactTypeSchema
	2, // 1: google.cloud.aiplatform.v1beta1.RuntimeArtifact.properties:type_name -> google.cloud.aiplatform.v1beta1.RuntimeArtifact.PropertiesEntry
	3, // 2: google.cloud.aiplatform.v1beta1.RuntimeArtifact.custom_properties:type_name -> google.cloud.aiplatform.v1beta1.RuntimeArtifact.CustomPropertiesEntry
	4, // 3: google.cloud.aiplatform.v1beta1.RuntimeArtifact.metadata:type_name -> google.protobuf.Struct
	5, // 4: google.cloud.aiplatform.v1beta1.RuntimeArtifact.PropertiesEntry.value:type_name -> google.cloud.aiplatform.v1beta1.Value
	5, // 5: google.cloud.aiplatform.v1beta1.RuntimeArtifact.CustomPropertiesEntry.value:type_name -> google.cloud.aiplatform.v1beta1.Value
	6, // [6:6] is the sub-list for method output_type
	6, // [6:6] is the sub-list for method input_type
	6, // [6:6] is the sub-list for extension type_name
	6, // [6:6] is the sub-list for extension extendee
	0, // [0:6] is the sub-list for field type_name
}

func init() { file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_init() }
func file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_init() {
	if File_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto != nil {
		return
	}
	file_google_cloud_aiplatform_v1beta1_value_proto_init()
	file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_msgTypes[0].OneofWrappers = []any{
		(*ArtifactTypeSchema_SchemaTitle)(nil),
		(*ArtifactTypeSchema_SchemaUri)(nil),
		(*ArtifactTypeSchema_InstanceSchema)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_rawDesc), len(file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_goTypes,
		DependencyIndexes: file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_depIdxs,
		MessageInfos:      file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_msgTypes,
	}.Build()
	File_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto = out.File
	file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_goTypes = nil
	file_google_cloud_aiplatform_v1beta1_ui_pipeline_spec_proto_depIdxs = nil
}
