// Copyright 2021 The Kubeflow Authors
//
// 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.6
// 	protoc        v6.31.1
// source: cache_key.proto

package cachekey

import (
	pipelinespec "github.com/kubeflow/pipelines/api/v2alpha1/go/pipelinespec"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	structpb "google.golang.org/protobuf/types/known/structpb"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

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

type CacheKey struct {
	state              protoimpl.MessageState       `protogen:"open.v1"`
	InputArtifactNames map[string]*ArtifactNameList `protobuf:"bytes,1,rep,name=inputArtifactNames,proto3" json:"inputArtifactNames,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Deprecated: Marked as deprecated in cache_key.proto.
	InputParameters      map[string]*pipelinespec.Value           `protobuf:"bytes,2,rep,name=inputParameters,proto3" json:"inputParameters,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	OutputArtifactsSpec  map[string]*pipelinespec.RuntimeArtifact `protobuf:"bytes,3,rep,name=outputArtifactsSpec,proto3" json:"outputArtifactsSpec,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	OutputParametersSpec map[string]string                        `protobuf:"bytes,4,rep,name=outputParametersSpec,proto3" json:"outputParametersSpec,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	ContainerSpec        *ContainerSpec                           `protobuf:"bytes,5,opt,name=containerSpec,proto3" json:"containerSpec,omitempty"`
	InputParameterValues map[string]*structpb.Value               `protobuf:"bytes,6,rep,name=input_parameter_values,json=inputParameterValues,proto3" json:"input_parameter_values,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	unknownFields        protoimpl.UnknownFields
	sizeCache            protoimpl.SizeCache
}

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

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

func (*CacheKey) ProtoMessage() {}

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

func (x *CacheKey) GetInputArtifactNames() map[string]*ArtifactNameList {
	if x != nil {
		return x.InputArtifactNames
	}
	return nil
}

// Deprecated: Marked as deprecated in cache_key.proto.
func (x *CacheKey) GetInputParameters() map[string]*pipelinespec.Value {
	if x != nil {
		return x.InputParameters
	}
	return nil
}

func (x *CacheKey) GetOutputArtifactsSpec() map[string]*pipelinespec.RuntimeArtifact {
	if x != nil {
		return x.OutputArtifactsSpec
	}
	return nil
}

func (x *CacheKey) GetOutputParametersSpec() map[string]string {
	if x != nil {
		return x.OutputParametersSpec
	}
	return nil
}

func (x *CacheKey) GetContainerSpec() *ContainerSpec {
	if x != nil {
		return x.ContainerSpec
	}
	return nil
}

func (x *CacheKey) GetInputParameterValues() map[string]*structpb.Value {
	if x != nil {
		return x.InputParameterValues
	}
	return nil
}

type ContainerSpec struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Image         string                 `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	CmdArgs       []string               `protobuf:"bytes,2,rep,name=cmdArgs,proto3" json:"cmdArgs,omitempty"`
	PvcNames      []string               `protobuf:"bytes,3,rep,name=pvcNames,proto3" json:"pvcNames,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ContainerSpec) ProtoMessage() {}

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

func (x *ContainerSpec) GetImage() string {
	if x != nil {
		return x.Image
	}
	return ""
}

func (x *ContainerSpec) GetCmdArgs() []string {
	if x != nil {
		return x.CmdArgs
	}
	return nil
}

func (x *ContainerSpec) GetPvcNames() []string {
	if x != nil {
		return x.PvcNames
	}
	return nil
}

type ArtifactNameList struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	ArtifactNames []string               `protobuf:"bytes,1,rep,name=artifactNames,proto3" json:"artifactNames,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ArtifactNameList) ProtoMessage() {}

func (x *ArtifactNameList) ProtoReflect() protoreflect.Message {
	mi := &file_cache_key_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 ArtifactNameList.ProtoReflect.Descriptor instead.
func (*ArtifactNameList) Descriptor() ([]byte, []int) {
	return file_cache_key_proto_rawDescGZIP(), []int{2}
}

func (x *ArtifactNameList) GetArtifactNames() []string {
	if x != nil {
		return x.ArtifactNames
	}
	return nil
}

var File_cache_key_proto protoreflect.FileDescriptor

const file_cache_key_proto_rawDesc = "" +
	"\n" +
	"\x0fcache_key.proto\x12\fml_pipelines\x1a\x1cgoogle/protobuf/struct.proto\x1a\x13pipeline_spec.proto\"\x8a\b\n" +
	"\bCacheKey\x12^\n" +
	"\x12inputArtifactNames\x18\x01 \x03(\v2..ml_pipelines.CacheKey.InputArtifactNamesEntryR\x12inputArtifactNames\x12Y\n" +
	"\x0finputParameters\x18\x02 \x03(\v2+.ml_pipelines.CacheKey.InputParametersEntryB\x02\x18\x01R\x0finputParameters\x12a\n" +
	"\x13outputArtifactsSpec\x18\x03 \x03(\v2/.ml_pipelines.CacheKey.OutputArtifactsSpecEntryR\x13outputArtifactsSpec\x12d\n" +
	"\x14outputParametersSpec\x18\x04 \x03(\v20.ml_pipelines.CacheKey.OutputParametersSpecEntryR\x14outputParametersSpec\x12A\n" +
	"\rcontainerSpec\x18\x05 \x01(\v2\x1b.ml_pipelines.ContainerSpecR\rcontainerSpec\x12f\n" +
	"\x16input_parameter_values\x18\x06 \x03(\v20.ml_pipelines.CacheKey.InputParameterValuesEntryR\x14inputParameterValues\x1ae\n" +
	"\x17InputArtifactNamesEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x124\n" +
	"\x05value\x18\x02 \x01(\v2\x1e.ml_pipelines.ArtifactNameListR\x05value:\x028\x01\x1aW\n" +
	"\x14InputParametersEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12)\n" +
	"\x05value\x18\x02 \x01(\v2\x13.ml_pipelines.ValueR\x05value:\x028\x01\x1ae\n" +
	"\x18OutputArtifactsSpecEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x123\n" +
	"\x05value\x18\x02 \x01(\v2\x1d.ml_pipelines.RuntimeArtifactR\x05value:\x028\x01\x1aG\n" +
	"\x19OutputParametersSpecEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a_\n" +
	"\x19InputParameterValuesEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12,\n" +
	"\x05value\x18\x02 \x01(\v2\x16.google.protobuf.ValueR\x05value:\x028\x01\"[\n" +
	"\rContainerSpec\x12\x14\n" +
	"\x05image\x18\x01 \x01(\tR\x05image\x12\x18\n" +
	"\acmdArgs\x18\x02 \x03(\tR\acmdArgs\x12\x1a\n" +
	"\bpvcNames\x18\x03 \x03(\tR\bpvcNames\"8\n" +
	"\x10ArtifactNameList\x12$\n" +
	"\rartifactNames\x18\x01 \x03(\tR\rartifactNamesB8Z6github.com/kubeflow/pipelines/api/v2alpha1/go/cachekeyb\x06proto3"

var (
	file_cache_key_proto_rawDescOnce sync.Once
	file_cache_key_proto_rawDescData []byte
)

func file_cache_key_proto_rawDescGZIP() []byte {
	file_cache_key_proto_rawDescOnce.Do(func() {
		file_cache_key_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cache_key_proto_rawDesc), len(file_cache_key_proto_rawDesc)))
	})
	return file_cache_key_proto_rawDescData
}

var file_cache_key_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_cache_key_proto_goTypes = []any{
	(*CacheKey)(nil),                     // 0: ml_pipelines.CacheKey
	(*ContainerSpec)(nil),                // 1: ml_pipelines.ContainerSpec
	(*ArtifactNameList)(nil),             // 2: ml_pipelines.ArtifactNameList
	nil,                                  // 3: ml_pipelines.CacheKey.InputArtifactNamesEntry
	nil,                                  // 4: ml_pipelines.CacheKey.InputParametersEntry
	nil,                                  // 5: ml_pipelines.CacheKey.OutputArtifactsSpecEntry
	nil,                                  // 6: ml_pipelines.CacheKey.OutputParametersSpecEntry
	nil,                                  // 7: ml_pipelines.CacheKey.InputParameterValuesEntry
	(*pipelinespec.Value)(nil),           // 8: ml_pipelines.Value
	(*pipelinespec.RuntimeArtifact)(nil), // 9: ml_pipelines.RuntimeArtifact
	(*structpb.Value)(nil),               // 10: google.protobuf.Value
}
var file_cache_key_proto_depIdxs = []int32{
	3,  // 0: ml_pipelines.CacheKey.inputArtifactNames:type_name -> ml_pipelines.CacheKey.InputArtifactNamesEntry
	4,  // 1: ml_pipelines.CacheKey.inputParameters:type_name -> ml_pipelines.CacheKey.InputParametersEntry
	5,  // 2: ml_pipelines.CacheKey.outputArtifactsSpec:type_name -> ml_pipelines.CacheKey.OutputArtifactsSpecEntry
	6,  // 3: ml_pipelines.CacheKey.outputParametersSpec:type_name -> ml_pipelines.CacheKey.OutputParametersSpecEntry
	1,  // 4: ml_pipelines.CacheKey.containerSpec:type_name -> ml_pipelines.ContainerSpec
	7,  // 5: ml_pipelines.CacheKey.input_parameter_values:type_name -> ml_pipelines.CacheKey.InputParameterValuesEntry
	2,  // 6: ml_pipelines.CacheKey.InputArtifactNamesEntry.value:type_name -> ml_pipelines.ArtifactNameList
	8,  // 7: ml_pipelines.CacheKey.InputParametersEntry.value:type_name -> ml_pipelines.Value
	9,  // 8: ml_pipelines.CacheKey.OutputArtifactsSpecEntry.value:type_name -> ml_pipelines.RuntimeArtifact
	10, // 9: ml_pipelines.CacheKey.InputParameterValuesEntry.value:type_name -> google.protobuf.Value
	10, // [10:10] is the sub-list for method output_type
	10, // [10:10] is the sub-list for method input_type
	10, // [10:10] is the sub-list for extension type_name
	10, // [10:10] is the sub-list for extension extendee
	0,  // [0:10] is the sub-list for field type_name
}

func init() { file_cache_key_proto_init() }
func file_cache_key_proto_init() {
	if File_cache_key_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_cache_key_proto_rawDesc), len(file_cache_key_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   8,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_cache_key_proto_goTypes,
		DependencyIndexes: file_cache_key_proto_depIdxs,
		MessageInfos:      file_cache_key_proto_msgTypes,
	}.Build()
	File_cache_key_proto = out.File
	file_cache_key_proto_goTypes = nil
	file_cache_key_proto_depIdxs = nil
}
