cloud.google.com/go/aiplatform@v1.106.0/apiv1/aiplatformpb/env_var.pb.go (about)

     1  // Copyright 2025 Google LLC
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.35.2
    18  // 	protoc        v4.25.7
    19  // source: google/cloud/aiplatform/v1/env_var.proto
    20  
    21  package aiplatformpb
    22  
    23  import (
    24  	_ "google.golang.org/genproto/googleapis/api/annotations"
    25  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    26  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    27  	reflect "reflect"
    28  	sync "sync"
    29  )
    30  
    31  const (
    32  	// Verify that this generated code is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    34  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    36  )
    37  
    38  // Represents an environment variable present in a Container or Python Module.
    39  type EnvVar struct {
    40  	state         protoimpl.MessageState
    41  	sizeCache     protoimpl.SizeCache
    42  	unknownFields protoimpl.UnknownFields
    43  
    44  	// Required. Name of the environment variable. Must be a valid C identifier.
    45  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    46  	// Required. Variables that reference a $(VAR_NAME) are expanded
    47  	// using the previous defined environment variables in the container and
    48  	// any service environment variables. If a variable cannot be resolved,
    49  	// the reference in the input string will be unchanged. The $(VAR_NAME)
    50  	// syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
    51  	// references will never be expanded, regardless of whether the variable
    52  	// exists or not.
    53  	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    54  }
    55  
    56  func (x *EnvVar) Reset() {
    57  	*x = EnvVar{}
    58  	mi := &file_google_cloud_aiplatform_v1_env_var_proto_msgTypes[0]
    59  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    60  	ms.StoreMessageInfo(mi)
    61  }
    62  
    63  func (x *EnvVar) String() string {
    64  	return protoimpl.X.MessageStringOf(x)
    65  }
    66  
    67  func (*EnvVar) ProtoMessage() {}
    68  
    69  func (x *EnvVar) ProtoReflect() protoreflect.Message {
    70  	mi := &file_google_cloud_aiplatform_v1_env_var_proto_msgTypes[0]
    71  	if x != nil {
    72  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    73  		if ms.LoadMessageInfo() == nil {
    74  			ms.StoreMessageInfo(mi)
    75  		}
    76  		return ms
    77  	}
    78  	return mi.MessageOf(x)
    79  }
    80  
    81  // Deprecated: Use EnvVar.ProtoReflect.Descriptor instead.
    82  func (*EnvVar) Descriptor() ([]byte, []int) {
    83  	return file_google_cloud_aiplatform_v1_env_var_proto_rawDescGZIP(), []int{0}
    84  }
    85  
    86  func (x *EnvVar) GetName() string {
    87  	if x != nil {
    88  		return x.Name
    89  	}
    90  	return ""
    91  }
    92  
    93  func (x *EnvVar) GetValue() string {
    94  	if x != nil {
    95  		return x.Value
    96  	}
    97  	return ""
    98  }
    99  
   100  // Reference to a secret stored in the Cloud Secret Manager that will
   101  // provide the value for this environment variable.
   102  type SecretRef struct {
   103  	state         protoimpl.MessageState
   104  	sizeCache     protoimpl.SizeCache
   105  	unknownFields protoimpl.UnknownFields
   106  
   107  	// Required. The name of the secret in Cloud Secret Manager.
   108  	// Format: {secret_name}.
   109  	Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
   110  	// The Cloud Secret Manager secret version.
   111  	// Can be 'latest' for the latest version, an integer for a specific
   112  	// version, or a version alias.
   113  	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
   114  }
   115  
   116  func (x *SecretRef) Reset() {
   117  	*x = SecretRef{}
   118  	mi := &file_google_cloud_aiplatform_v1_env_var_proto_msgTypes[1]
   119  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   120  	ms.StoreMessageInfo(mi)
   121  }
   122  
   123  func (x *SecretRef) String() string {
   124  	return protoimpl.X.MessageStringOf(x)
   125  }
   126  
   127  func (*SecretRef) ProtoMessage() {}
   128  
   129  func (x *SecretRef) ProtoReflect() protoreflect.Message {
   130  	mi := &file_google_cloud_aiplatform_v1_env_var_proto_msgTypes[1]
   131  	if x != nil {
   132  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   133  		if ms.LoadMessageInfo() == nil {
   134  			ms.StoreMessageInfo(mi)
   135  		}
   136  		return ms
   137  	}
   138  	return mi.MessageOf(x)
   139  }
   140  
   141  // Deprecated: Use SecretRef.ProtoReflect.Descriptor instead.
   142  func (*SecretRef) Descriptor() ([]byte, []int) {
   143  	return file_google_cloud_aiplatform_v1_env_var_proto_rawDescGZIP(), []int{1}
   144  }
   145  
   146  func (x *SecretRef) GetSecret() string {
   147  	if x != nil {
   148  		return x.Secret
   149  	}
   150  	return ""
   151  }
   152  
   153  func (x *SecretRef) GetVersion() string {
   154  	if x != nil {
   155  		return x.Version
   156  	}
   157  	return ""
   158  }
   159  
   160  // Represents an environment variable where the value is a secret in Cloud
   161  // Secret Manager.
   162  type SecretEnvVar struct {
   163  	state         protoimpl.MessageState
   164  	sizeCache     protoimpl.SizeCache
   165  	unknownFields protoimpl.UnknownFields
   166  
   167  	// Required. Name of the secret environment variable.
   168  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   169  	// Required. Reference to a secret stored in the Cloud Secret Manager that
   170  	// will provide the value for this environment variable.
   171  	SecretRef *SecretRef `protobuf:"bytes,2,opt,name=secret_ref,json=secretRef,proto3" json:"secret_ref,omitempty"`
   172  }
   173  
   174  func (x *SecretEnvVar) Reset() {
   175  	*x = SecretEnvVar{}
   176  	mi := &file_google_cloud_aiplatform_v1_env_var_proto_msgTypes[2]
   177  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   178  	ms.StoreMessageInfo(mi)
   179  }
   180  
   181  func (x *SecretEnvVar) String() string {
   182  	return protoimpl.X.MessageStringOf(x)
   183  }
   184  
   185  func (*SecretEnvVar) ProtoMessage() {}
   186  
   187  func (x *SecretEnvVar) ProtoReflect() protoreflect.Message {
   188  	mi := &file_google_cloud_aiplatform_v1_env_var_proto_msgTypes[2]
   189  	if x != nil {
   190  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   191  		if ms.LoadMessageInfo() == nil {
   192  			ms.StoreMessageInfo(mi)
   193  		}
   194  		return ms
   195  	}
   196  	return mi.MessageOf(x)
   197  }
   198  
   199  // Deprecated: Use SecretEnvVar.ProtoReflect.Descriptor instead.
   200  func (*SecretEnvVar) Descriptor() ([]byte, []int) {
   201  	return file_google_cloud_aiplatform_v1_env_var_proto_rawDescGZIP(), []int{2}
   202  }
   203  
   204  func (x *SecretEnvVar) GetName() string {
   205  	if x != nil {
   206  		return x.Name
   207  	}
   208  	return ""
   209  }
   210  
   211  func (x *SecretEnvVar) GetSecretRef() *SecretRef {
   212  	if x != nil {
   213  		return x.SecretRef
   214  	}
   215  	return nil
   216  }
   217  
   218  var File_google_cloud_aiplatform_v1_env_var_proto protoreflect.FileDescriptor
   219  
   220  var file_google_cloud_aiplatform_v1_env_var_proto_rawDesc = []byte{
   221  	0x0a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
   222  	0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x6e, 0x76,
   223  	0x5f, 0x76, 0x61, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67,
   224  	0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66,
   225  	0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
   226  	0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f,
   227  	0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3c, 0x0a, 0x06, 0x45, 0x6e, 0x76, 0x56, 0x61,
   228  	0x72, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
   229  	0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x76, 0x61,
   230  	0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05,
   231  	0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x42, 0x0a, 0x09, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52,
   232  	0x65, 0x66, 0x12, 0x1b, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01,
   233  	0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12,
   234  	0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
   235  	0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x72, 0x0a, 0x0c, 0x53, 0x65, 0x63,
   236  	0x72, 0x65, 0x74, 0x45, 0x6e, 0x76, 0x56, 0x61, 0x72, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
   237  	0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61,
   238  	0x6d, 0x65, 0x12, 0x49, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x66,
   239  	0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   240  	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
   241  	0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x66, 0x42, 0x03, 0xe0,
   242  	0x41, 0x02, 0x52, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x66, 0x42, 0xc9, 0x01,
   243  	0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
   244  	0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31,
   245  	0x42, 0x0b, 0x45, 0x6e, 0x76, 0x56, 0x61, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
   246  	0x3e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f,
   247  	0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f,
   248  	0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
   249  	0x70, 0x62, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x70, 0x62, 0xaa,
   250  	0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41,
   251  	0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x47,
   252  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c,
   253  	0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67,
   254  	0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61,
   255  	0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   256  	0x33,
   257  }
   258  
   259  var (
   260  	file_google_cloud_aiplatform_v1_env_var_proto_rawDescOnce sync.Once
   261  	file_google_cloud_aiplatform_v1_env_var_proto_rawDescData = file_google_cloud_aiplatform_v1_env_var_proto_rawDesc
   262  )
   263  
   264  func file_google_cloud_aiplatform_v1_env_var_proto_rawDescGZIP() []byte {
   265  	file_google_cloud_aiplatform_v1_env_var_proto_rawDescOnce.Do(func() {
   266  		file_google_cloud_aiplatform_v1_env_var_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1_env_var_proto_rawDescData)
   267  	})
   268  	return file_google_cloud_aiplatform_v1_env_var_proto_rawDescData
   269  }
   270  
   271  var file_google_cloud_aiplatform_v1_env_var_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   272  var file_google_cloud_aiplatform_v1_env_var_proto_goTypes = []any{
   273  	(*EnvVar)(nil),       // 0: google.cloud.aiplatform.v1.EnvVar
   274  	(*SecretRef)(nil),    // 1: google.cloud.aiplatform.v1.SecretRef
   275  	(*SecretEnvVar)(nil), // 2: google.cloud.aiplatform.v1.SecretEnvVar
   276  }
   277  var file_google_cloud_aiplatform_v1_env_var_proto_depIdxs = []int32{
   278  	1, // 0: google.cloud.aiplatform.v1.SecretEnvVar.secret_ref:type_name -> google.cloud.aiplatform.v1.SecretRef
   279  	1, // [1:1] is the sub-list for method output_type
   280  	1, // [1:1] is the sub-list for method input_type
   281  	1, // [1:1] is the sub-list for extension type_name
   282  	1, // [1:1] is the sub-list for extension extendee
   283  	0, // [0:1] is the sub-list for field type_name
   284  }
   285  
   286  func init() { file_google_cloud_aiplatform_v1_env_var_proto_init() }
   287  func file_google_cloud_aiplatform_v1_env_var_proto_init() {
   288  	if File_google_cloud_aiplatform_v1_env_var_proto != nil {
   289  		return
   290  	}
   291  	type x struct{}
   292  	out := protoimpl.TypeBuilder{
   293  		File: protoimpl.DescBuilder{
   294  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   295  			RawDescriptor: file_google_cloud_aiplatform_v1_env_var_proto_rawDesc,
   296  			NumEnums:      0,
   297  			NumMessages:   3,
   298  			NumExtensions: 0,
   299  			NumServices:   0,
   300  		},
   301  		GoTypes:           file_google_cloud_aiplatform_v1_env_var_proto_goTypes,
   302  		DependencyIndexes: file_google_cloud_aiplatform_v1_env_var_proto_depIdxs,
   303  		MessageInfos:      file_google_cloud_aiplatform_v1_env_var_proto_msgTypes,
   304  	}.Build()
   305  	File_google_cloud_aiplatform_v1_env_var_proto = out.File
   306  	file_google_cloud_aiplatform_v1_env_var_proto_rawDesc = nil
   307  	file_google_cloud_aiplatform_v1_env_var_proto_goTypes = nil
   308  	file_google_cloud_aiplatform_v1_env_var_proto_depIdxs = nil
   309  }