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

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

// Represents a notebook runtime post-startup script behavior.
type PostStartupScriptConfig_PostStartupScriptBehavior int32

const (
	// Unspecified post-startup script behavior.
	PostStartupScriptConfig_POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED PostStartupScriptConfig_PostStartupScriptBehavior = 0
	// Run the post-startup script only once, during runtime creation.
	PostStartupScriptConfig_RUN_ONCE PostStartupScriptConfig_PostStartupScriptBehavior = 1
	// Run the post-startup script after every start.
	PostStartupScriptConfig_RUN_EVERY_START PostStartupScriptConfig_PostStartupScriptBehavior = 2
	// After every start, download the post-startup script from its source and
	// run it.
	PostStartupScriptConfig_DOWNLOAD_AND_RUN_EVERY_START PostStartupScriptConfig_PostStartupScriptBehavior = 3
)

// Enum value maps for PostStartupScriptConfig_PostStartupScriptBehavior.
var (
	PostStartupScriptConfig_PostStartupScriptBehavior_name = map[int32]string{
		0: "POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED",
		1: "RUN_ONCE",
		2: "RUN_EVERY_START",
		3: "DOWNLOAD_AND_RUN_EVERY_START",
	}
	PostStartupScriptConfig_PostStartupScriptBehavior_value = map[string]int32{
		"POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED": 0,
		"RUN_ONCE":                     1,
		"RUN_EVERY_START":              2,
		"DOWNLOAD_AND_RUN_EVERY_START": 3,
	}
)

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

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

func (PostStartupScriptConfig_PostStartupScriptBehavior) Descriptor() protoreflect.EnumDescriptor {
	return file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_enumTypes[0].Descriptor()
}

func (PostStartupScriptConfig_PostStartupScriptBehavior) Type() protoreflect.EnumType {
	return &file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_enumTypes[0]
}

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

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

// Post-startup script config.
type PostStartupScriptConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Optional. Post-startup script to run after runtime is started.
	PostStartupScript string `protobuf:"bytes,1,opt,name=post_startup_script,json=postStartupScript,proto3" json:"post_startup_script,omitempty"`
	// Optional. Post-startup script url to download. Example:
	// https://bucket/script.sh
	PostStartupScriptUrl string `protobuf:"bytes,2,opt,name=post_startup_script_url,json=postStartupScriptUrl,proto3" json:"post_startup_script_url,omitempty"`
	// Optional. Post-startup script behavior that defines download and execution
	// behavior.
	PostStartupScriptBehavior PostStartupScriptConfig_PostStartupScriptBehavior `protobuf:"varint,3,opt,name=post_startup_script_behavior,json=postStartupScriptBehavior,proto3,enum=google.cloud.aiplatform.v1beta1.PostStartupScriptConfig_PostStartupScriptBehavior" json:"post_startup_script_behavior,omitempty"`
	unknownFields             protoimpl.UnknownFields
	sizeCache                 protoimpl.SizeCache
}

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

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

func (*PostStartupScriptConfig) ProtoMessage() {}

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

func (x *PostStartupScriptConfig) GetPostStartupScript() string {
	if x != nil {
		return x.PostStartupScript
	}
	return ""
}

func (x *PostStartupScriptConfig) GetPostStartupScriptUrl() string {
	if x != nil {
		return x.PostStartupScriptUrl
	}
	return ""
}

func (x *PostStartupScriptConfig) GetPostStartupScriptBehavior() PostStartupScriptConfig_PostStartupScriptBehavior {
	if x != nil {
		return x.PostStartupScriptBehavior
	}
	return PostStartupScriptConfig_POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED
}

// Colab image of the runtime.
type ColabImage struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Optional. The release name of the NotebookRuntime Colab image, e.g.
	// "py310". If not specified, detault to the latest release.
	ReleaseName string `protobuf:"bytes,1,opt,name=release_name,json=releaseName,proto3" json:"release_name,omitempty"`
	// Output only. A human-readable description of the specified colab image
	// release, populated by the system. Example: "Python 3.10", "Latest - current
	// Python 3.11"
	Description   string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ColabImage) ProtoMessage() {}

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

func (x *ColabImage) GetReleaseName() string {
	if x != nil {
		return x.ReleaseName
	}
	return ""
}

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

// Notebook Software Config. This is passed to the backend when user
// makes software configurations in UI.
type NotebookSoftwareConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The image to be used by the notebook runtime.
	//
	// Types that are valid to be assigned to RuntimeImage:
	//
	//	*NotebookSoftwareConfig_ColabImage
	RuntimeImage isNotebookSoftwareConfig_RuntimeImage `protobuf_oneof:"runtime_image"`
	// Optional. Environment variables to be passed to the container.
	// Maximum limit is 100.
	Env []*EnvVar `protobuf:"bytes,1,rep,name=env,proto3" json:"env,omitempty"`
	// Optional. Post-startup script config.
	PostStartupScriptConfig *PostStartupScriptConfig `protobuf:"bytes,2,opt,name=post_startup_script_config,json=postStartupScriptConfig,proto3" json:"post_startup_script_config,omitempty"`
	unknownFields           protoimpl.UnknownFields
	sizeCache               protoimpl.SizeCache
}

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

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

func (*NotebookSoftwareConfig) ProtoMessage() {}

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

func (x *NotebookSoftwareConfig) GetRuntimeImage() isNotebookSoftwareConfig_RuntimeImage {
	if x != nil {
		return x.RuntimeImage
	}
	return nil
}

func (x *NotebookSoftwareConfig) GetColabImage() *ColabImage {
	if x != nil {
		if x, ok := x.RuntimeImage.(*NotebookSoftwareConfig_ColabImage); ok {
			return x.ColabImage
		}
	}
	return nil
}

func (x *NotebookSoftwareConfig) GetEnv() []*EnvVar {
	if x != nil {
		return x.Env
	}
	return nil
}

func (x *NotebookSoftwareConfig) GetPostStartupScriptConfig() *PostStartupScriptConfig {
	if x != nil {
		return x.PostStartupScriptConfig
	}
	return nil
}

type isNotebookSoftwareConfig_RuntimeImage interface {
	isNotebookSoftwareConfig_RuntimeImage()
}

type NotebookSoftwareConfig_ColabImage struct {
	// Optional. Google-managed NotebookRuntime colab image.
	ColabImage *ColabImage `protobuf:"bytes,5,opt,name=colab_image,json=colabImage,proto3,oneof"`
}

func (*NotebookSoftwareConfig_ColabImage) isNotebookSoftwareConfig_RuntimeImage() {}

var File_google_cloud_aiplatform_v1beta1_notebook_software_config_proto protoreflect.FileDescriptor

const file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_rawDesc = "" +
	"\n" +
	">google/cloud/aiplatform/v1beta1/notebook_software_config.proto\x12\x1fgoogle.cloud.aiplatform.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a-google/cloud/aiplatform/v1beta1/env_var.proto\"\xb6\x03\n" +
	"\x17PostStartupScriptConfig\x123\n" +
	"\x13post_startup_script\x18\x01 \x01(\tB\x03\xe0A\x01R\x11postStartupScript\x12:\n" +
	"\x17post_startup_script_url\x18\x02 \x01(\tB\x03\xe0A\x01R\x14postStartupScriptUrl\x12\x98\x01\n" +
	"\x1cpost_startup_script_behavior\x18\x03 \x01(\x0e2R.google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehaviorB\x03\xe0A\x01R\x19postStartupScriptBehavior\"\x8e\x01\n" +
	"\x19PostStartupScriptBehavior\x12,\n" +
	"(POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED\x10\x00\x12\f\n" +
	"\bRUN_ONCE\x10\x01\x12\x13\n" +
	"\x0fRUN_EVERY_START\x10\x02\x12 \n" +
	"\x1cDOWNLOAD_AND_RUN_EVERY_START\x10\x03\"[\n" +
	"\n" +
	"ColabImage\x12&\n" +
	"\frelease_name\x18\x01 \x01(\tB\x03\xe0A\x01R\vreleaseName\x12%\n" +
	"\vdescription\x18\x02 \x01(\tB\x03\xe0A\x03R\vdescription\"\xba\x02\n" +
	"\x16NotebookSoftwareConfig\x12S\n" +
	"\vcolab_image\x18\x05 \x01(\v2+.google.cloud.aiplatform.v1beta1.ColabImageB\x03\xe0A\x01H\x00R\n" +
	"colabImage\x12>\n" +
	"\x03env\x18\x01 \x03(\v2'.google.cloud.aiplatform.v1beta1.EnvVarB\x03\xe0A\x01R\x03env\x12z\n" +
	"\x1apost_startup_script_config\x18\x02 \x01(\v28.google.cloud.aiplatform.v1beta1.PostStartupScriptConfigB\x03\xe0A\x01R\x17postStartupScriptConfigB\x0f\n" +
	"\rruntime_imageB\xf2\x01\n" +
	"#com.google.cloud.aiplatform.v1beta1B\x1bNotebookSoftwareConfigProtoP\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_notebook_software_config_proto_rawDescOnce sync.Once
	file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_rawDescData []byte
)

func file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_rawDescGZIP() []byte {
	file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_rawDescOnce.Do(func() {
		file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_rawDesc), len(file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_rawDesc)))
	})
	return file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_rawDescData
}

var file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_goTypes = []any{
	(PostStartupScriptConfig_PostStartupScriptBehavior)(0), // 0: google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior
	(*PostStartupScriptConfig)(nil),                        // 1: google.cloud.aiplatform.v1beta1.PostStartupScriptConfig
	(*ColabImage)(nil),                                     // 2: google.cloud.aiplatform.v1beta1.ColabImage
	(*NotebookSoftwareConfig)(nil),                         // 3: google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig
	(*EnvVar)(nil),                                         // 4: google.cloud.aiplatform.v1beta1.EnvVar
}
var file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_depIdxs = []int32{
	0, // 0: google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.post_startup_script_behavior:type_name -> google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior
	2, // 1: google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig.colab_image:type_name -> google.cloud.aiplatform.v1beta1.ColabImage
	4, // 2: google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig.env:type_name -> google.cloud.aiplatform.v1beta1.EnvVar
	1, // 3: google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig.post_startup_script_config:type_name -> google.cloud.aiplatform.v1beta1.PostStartupScriptConfig
	4, // [4:4] is the sub-list for method output_type
	4, // [4:4] is the sub-list for method input_type
	4, // [4:4] is the sub-list for extension type_name
	4, // [4:4] is the sub-list for extension extendee
	0, // [0:4] is the sub-list for field type_name
}

func init() { file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_init() }
func file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_init() {
	if File_google_cloud_aiplatform_v1beta1_notebook_software_config_proto != nil {
		return
	}
	file_google_cloud_aiplatform_v1beta1_env_var_proto_init()
	file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_msgTypes[2].OneofWrappers = []any{
		(*NotebookSoftwareConfig_ColabImage)(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_notebook_software_config_proto_rawDesc), len(file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_goTypes,
		DependencyIndexes: file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_depIdxs,
		EnumInfos:         file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_enumTypes,
		MessageInfos:      file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_msgTypes,
	}.Build()
	File_google_cloud_aiplatform_v1beta1_notebook_software_config_proto = out.File
	file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_goTypes = nil
	file_google_cloud_aiplatform_v1beta1_notebook_software_config_proto_depIdxs = nil
}
