// 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/v1/artifact.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"
	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)
)

// Describes the state of the Artifact.
type Artifact_State int32

const (
	// Unspecified state for the Artifact.
	Artifact_STATE_UNSPECIFIED Artifact_State = 0
	// A state used by systems like Vertex AI Pipelines to indicate that the
	// underlying data item represented by this Artifact is being created.
	Artifact_PENDING Artifact_State = 1
	// A state indicating that the Artifact should exist, unless something
	// external to the system deletes it.
	Artifact_LIVE Artifact_State = 2
)

// Enum value maps for Artifact_State.
var (
	Artifact_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "PENDING",
		2: "LIVE",
	}
	Artifact_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"PENDING":           1,
		"LIVE":              2,
	}
)

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

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

func (Artifact_State) Descriptor() protoreflect.EnumDescriptor {
	return file_google_cloud_aiplatform_v1_artifact_proto_enumTypes[0].Descriptor()
}

func (Artifact_State) Type() protoreflect.EnumType {
	return &file_google_cloud_aiplatform_v1_artifact_proto_enumTypes[0]
}

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

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

// Instance of a general artifact.
type Artifact struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Output only. The resource name of the Artifact.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// User provided display name of the Artifact.
	// May be up to 128 Unicode characters.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// The uniform resource identifier of the artifact file.
	// May be empty if there is no actual artifact file.
	Uri string `protobuf:"bytes,6,opt,name=uri,proto3" json:"uri,omitempty"`
	// An eTag used to perform consistent read-modify-write updates. If not set, a
	// blind "overwrite" update happens.
	Etag string `protobuf:"bytes,9,opt,name=etag,proto3" json:"etag,omitempty"`
	// The labels with user-defined metadata to organize your Artifacts.
	//
	// Label keys and values can be no longer than 64 characters
	// (Unicode codepoints), can only contain lowercase letters, numeric
	// characters, underscores and dashes. International characters are allowed.
	// No more than 64 user labels can be associated with one Artifact (System
	// labels are excluded).
	Labels map[string]string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Output only. Timestamp when this Artifact was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. Timestamp when this Artifact was last updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// The state of this Artifact. This is a property of the Artifact, and does
	// not imply or capture any ongoing process. This property is managed by
	// clients (such as Vertex AI Pipelines), and the system does not prescribe
	// or check the validity of state transitions.
	State Artifact_State `protobuf:"varint,13,opt,name=state,proto3,enum=google.cloud.aiplatform.v1.Artifact_State" json:"state,omitempty"`
	// The title of the schema describing the metadata.
	//
	// Schema title and version is expected to be registered in earlier Create
	// Schema calls. And both are used together as unique identifiers to identify
	// schemas within the local metadata store.
	SchemaTitle string `protobuf:"bytes,14,opt,name=schema_title,json=schemaTitle,proto3" json:"schema_title,omitempty"`
	// The version of the schema in schema_name to use.
	//
	// Schema title and version is expected to be registered in earlier Create
	// Schema calls. And both are used together as unique identifiers to identify
	// schemas within the local metadata store.
	SchemaVersion string `protobuf:"bytes,15,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
	// Properties of the Artifact.
	// Top level metadata keys' heading and trailing spaces will be trimmed.
	// The size of this field should not exceed 200KB.
	Metadata *structpb.Struct `protobuf:"bytes,16,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Description of the Artifact
	Description   string `protobuf:"bytes,17,opt,name=description,proto3" json:"description,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Artifact) ProtoMessage() {}

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

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

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

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

func (x *Artifact) GetEtag() string {
	if x != nil {
		return x.Etag
	}
	return ""
}

func (x *Artifact) GetLabels() map[string]string {
	if x != nil {
		return x.Labels
	}
	return nil
}

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

func (x *Artifact) GetUpdateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.UpdateTime
	}
	return nil
}

func (x *Artifact) GetState() Artifact_State {
	if x != nil {
		return x.State
	}
	return Artifact_STATE_UNSPECIFIED
}

func (x *Artifact) GetSchemaTitle() string {
	if x != nil {
		return x.SchemaTitle
	}
	return ""
}

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

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

func (x *Artifact) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

var File_google_cloud_aiplatform_v1_artifact_proto protoreflect.FileDescriptor

const file_google_cloud_aiplatform_v1_artifact_proto_rawDesc = "" +
	"\n" +
	")google/cloud/aiplatform/v1/artifact.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x98\x06\n" +
	"\bArtifact\x12\x17\n" +
	"\x04name\x18\x01 \x01(\tB\x03\xe0A\x03R\x04name\x12!\n" +
	"\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x12\x10\n" +
	"\x03uri\x18\x06 \x01(\tR\x03uri\x12\x12\n" +
	"\x04etag\x18\t \x01(\tR\x04etag\x12H\n" +
	"\x06labels\x18\n" +
	" \x03(\v20.google.cloud.aiplatform.v1.Artifact.LabelsEntryR\x06labels\x12@\n" +
	"\vcreate_time\x18\v \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
	"createTime\x12@\n" +
	"\vupdate_time\x18\f \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
	"updateTime\x12@\n" +
	"\x05state\x18\r \x01(\x0e2*.google.cloud.aiplatform.v1.Artifact.StateR\x05state\x12!\n" +
	"\fschema_title\x18\x0e \x01(\tR\vschemaTitle\x12%\n" +
	"\x0eschema_version\x18\x0f \x01(\tR\rschemaVersion\x123\n" +
	"\bmetadata\x18\x10 \x01(\v2\x17.google.protobuf.StructR\bmetadata\x12 \n" +
	"\vdescription\x18\x11 \x01(\tR\vdescription\x1a9\n" +
	"\vLabelsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"5\n" +
	"\x05State\x12\x15\n" +
	"\x11STATE_UNSPECIFIED\x10\x00\x12\v\n" +
	"\aPENDING\x10\x01\x12\b\n" +
	"\x04LIVE\x10\x02:\x86\x01\xeaA\x82\x01\n" +
	"\"aiplatform.googleapis.com/Artifact\x12\\projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}B\xcb\x01\n" +
	"\x1ecom.google.cloud.aiplatform.v1B\rArtifactProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\x06proto3"

var (
	file_google_cloud_aiplatform_v1_artifact_proto_rawDescOnce sync.Once
	file_google_cloud_aiplatform_v1_artifact_proto_rawDescData []byte
)

func file_google_cloud_aiplatform_v1_artifact_proto_rawDescGZIP() []byte {
	file_google_cloud_aiplatform_v1_artifact_proto_rawDescOnce.Do(func() {
		file_google_cloud_aiplatform_v1_artifact_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_aiplatform_v1_artifact_proto_rawDesc), len(file_google_cloud_aiplatform_v1_artifact_proto_rawDesc)))
	})
	return file_google_cloud_aiplatform_v1_artifact_proto_rawDescData
}

var file_google_cloud_aiplatform_v1_artifact_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_google_cloud_aiplatform_v1_artifact_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_google_cloud_aiplatform_v1_artifact_proto_goTypes = []any{
	(Artifact_State)(0),           // 0: google.cloud.aiplatform.v1.Artifact.State
	(*Artifact)(nil),              // 1: google.cloud.aiplatform.v1.Artifact
	nil,                           // 2: google.cloud.aiplatform.v1.Artifact.LabelsEntry
	(*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
	(*structpb.Struct)(nil),       // 4: google.protobuf.Struct
}
var file_google_cloud_aiplatform_v1_artifact_proto_depIdxs = []int32{
	2, // 0: google.cloud.aiplatform.v1.Artifact.labels:type_name -> google.cloud.aiplatform.v1.Artifact.LabelsEntry
	3, // 1: google.cloud.aiplatform.v1.Artifact.create_time:type_name -> google.protobuf.Timestamp
	3, // 2: google.cloud.aiplatform.v1.Artifact.update_time:type_name -> google.protobuf.Timestamp
	0, // 3: google.cloud.aiplatform.v1.Artifact.state:type_name -> google.cloud.aiplatform.v1.Artifact.State
	4, // 4: google.cloud.aiplatform.v1.Artifact.metadata:type_name -> google.protobuf.Struct
	5, // [5:5] is the sub-list for method output_type
	5, // [5:5] is the sub-list for method input_type
	5, // [5:5] is the sub-list for extension type_name
	5, // [5:5] is the sub-list for extension extendee
	0, // [0:5] is the sub-list for field type_name
}

func init() { file_google_cloud_aiplatform_v1_artifact_proto_init() }
func file_google_cloud_aiplatform_v1_artifact_proto_init() {
	if File_google_cloud_aiplatform_v1_artifact_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_cloud_aiplatform_v1_artifact_proto_rawDesc), len(file_google_cloud_aiplatform_v1_artifact_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_google_cloud_aiplatform_v1_artifact_proto_goTypes,
		DependencyIndexes: file_google_cloud_aiplatform_v1_artifact_proto_depIdxs,
		EnumInfos:         file_google_cloud_aiplatform_v1_artifact_proto_enumTypes,
		MessageInfos:      file_google_cloud_aiplatform_v1_artifact_proto_msgTypes,
	}.Build()
	File_google_cloud_aiplatform_v1_artifact_proto = out.File
	file_google_cloud_aiplatform_v1_artifact_proto_goTypes = nil
	file_google_cloud_aiplatform_v1_artifact_proto_depIdxs = nil
}
