cloud.google.com/go/aiplatform@v1.106.0/apiv1beta1/aiplatformpb/value.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/v1beta1/value.proto 20 21 package aiplatformpb 22 23 import ( 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 reflect "reflect" 27 sync "sync" 28 ) 29 30 const ( 31 // Verify that this generated code is sufficiently up-to-date. 32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 33 // Verify that runtime/protoimpl is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 35 ) 36 37 // Value is the value of the field. 38 type Value struct { 39 state protoimpl.MessageState 40 sizeCache protoimpl.SizeCache 41 unknownFields protoimpl.UnknownFields 42 43 // Types that are assignable to Value: 44 // 45 // *Value_IntValue 46 // *Value_DoubleValue 47 // *Value_StringValue 48 Value isValue_Value `protobuf_oneof:"value"` 49 } 50 51 func (x *Value) Reset() { 52 *x = Value{} 53 mi := &file_google_cloud_aiplatform_v1beta1_value_proto_msgTypes[0] 54 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 55 ms.StoreMessageInfo(mi) 56 } 57 58 func (x *Value) String() string { 59 return protoimpl.X.MessageStringOf(x) 60 } 61 62 func (*Value) ProtoMessage() {} 63 64 func (x *Value) ProtoReflect() protoreflect.Message { 65 mi := &file_google_cloud_aiplatform_v1beta1_value_proto_msgTypes[0] 66 if x != nil { 67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 68 if ms.LoadMessageInfo() == nil { 69 ms.StoreMessageInfo(mi) 70 } 71 return ms 72 } 73 return mi.MessageOf(x) 74 } 75 76 // Deprecated: Use Value.ProtoReflect.Descriptor instead. 77 func (*Value) Descriptor() ([]byte, []int) { 78 return file_google_cloud_aiplatform_v1beta1_value_proto_rawDescGZIP(), []int{0} 79 } 80 81 func (m *Value) GetValue() isValue_Value { 82 if m != nil { 83 return m.Value 84 } 85 return nil 86 } 87 88 func (x *Value) GetIntValue() int64 { 89 if x, ok := x.GetValue().(*Value_IntValue); ok { 90 return x.IntValue 91 } 92 return 0 93 } 94 95 func (x *Value) GetDoubleValue() float64 { 96 if x, ok := x.GetValue().(*Value_DoubleValue); ok { 97 return x.DoubleValue 98 } 99 return 0 100 } 101 102 func (x *Value) GetStringValue() string { 103 if x, ok := x.GetValue().(*Value_StringValue); ok { 104 return x.StringValue 105 } 106 return "" 107 } 108 109 type isValue_Value interface { 110 isValue_Value() 111 } 112 113 type Value_IntValue struct { 114 // An integer value. 115 IntValue int64 `protobuf:"varint,1,opt,name=int_value,json=intValue,proto3,oneof"` 116 } 117 118 type Value_DoubleValue struct { 119 // A double value. 120 DoubleValue float64 `protobuf:"fixed64,2,opt,name=double_value,json=doubleValue,proto3,oneof"` 121 } 122 123 type Value_StringValue struct { 124 // A string value. 125 StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof"` 126 } 127 128 func (*Value_IntValue) isValue_Value() {} 129 130 func (*Value_DoubleValue) isValue_Value() {} 131 132 func (*Value_StringValue) isValue_Value() {} 133 134 var File_google_cloud_aiplatform_v1beta1_value_proto protoreflect.FileDescriptor 135 136 var file_google_cloud_aiplatform_v1beta1_value_proto_rawDesc = []byte{ 137 0x0a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 138 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 139 0x31, 0x2f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x67, 140 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 141 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x22, 0x79, 142 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 143 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 144 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 145 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 146 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 147 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 148 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 149 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0xe1, 0x01, 0x0a, 0x23, 0x63, 0x6f, 150 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 151 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 152 0x31, 0x42, 0x0a, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 153 0x43, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 154 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 155 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 156 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x70, 0x62, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 157 0x72, 0x6d, 0x70, 0x62, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 158 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 159 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 160 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 161 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 162 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 163 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 164 0x72, 0x6f, 0x74, 0x6f, 0x33, 165 } 166 167 var ( 168 file_google_cloud_aiplatform_v1beta1_value_proto_rawDescOnce sync.Once 169 file_google_cloud_aiplatform_v1beta1_value_proto_rawDescData = file_google_cloud_aiplatform_v1beta1_value_proto_rawDesc 170 ) 171 172 func file_google_cloud_aiplatform_v1beta1_value_proto_rawDescGZIP() []byte { 173 file_google_cloud_aiplatform_v1beta1_value_proto_rawDescOnce.Do(func() { 174 file_google_cloud_aiplatform_v1beta1_value_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1beta1_value_proto_rawDescData) 175 }) 176 return file_google_cloud_aiplatform_v1beta1_value_proto_rawDescData 177 } 178 179 var file_google_cloud_aiplatform_v1beta1_value_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 180 var file_google_cloud_aiplatform_v1beta1_value_proto_goTypes = []any{ 181 (*Value)(nil), // 0: google.cloud.aiplatform.v1beta1.Value 182 } 183 var file_google_cloud_aiplatform_v1beta1_value_proto_depIdxs = []int32{ 184 0, // [0:0] is the sub-list for method output_type 185 0, // [0:0] is the sub-list for method input_type 186 0, // [0:0] is the sub-list for extension type_name 187 0, // [0:0] is the sub-list for extension extendee 188 0, // [0:0] is the sub-list for field type_name 189 } 190 191 func init() { file_google_cloud_aiplatform_v1beta1_value_proto_init() } 192 func file_google_cloud_aiplatform_v1beta1_value_proto_init() { 193 if File_google_cloud_aiplatform_v1beta1_value_proto != nil { 194 return 195 } 196 file_google_cloud_aiplatform_v1beta1_value_proto_msgTypes[0].OneofWrappers = []any{ 197 (*Value_IntValue)(nil), 198 (*Value_DoubleValue)(nil), 199 (*Value_StringValue)(nil), 200 } 201 type x struct{} 202 out := protoimpl.TypeBuilder{ 203 File: protoimpl.DescBuilder{ 204 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 205 RawDescriptor: file_google_cloud_aiplatform_v1beta1_value_proto_rawDesc, 206 NumEnums: 0, 207 NumMessages: 1, 208 NumExtensions: 0, 209 NumServices: 0, 210 }, 211 GoTypes: file_google_cloud_aiplatform_v1beta1_value_proto_goTypes, 212 DependencyIndexes: file_google_cloud_aiplatform_v1beta1_value_proto_depIdxs, 213 MessageInfos: file_google_cloud_aiplatform_v1beta1_value_proto_msgTypes, 214 }.Build() 215 File_google_cloud_aiplatform_v1beta1_value_proto = out.File 216 file_google_cloud_aiplatform_v1beta1_value_proto_rawDesc = nil 217 file_google_cloud_aiplatform_v1beta1_value_proto_goTypes = nil 218 file_google_cloud_aiplatform_v1beta1_value_proto_depIdxs = nil 219 }