cloud.google.com/go/aiplatform@v1.106.0/apiv1/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/v1/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_v1_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_v1_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_v1_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_v1_value_proto protoreflect.FileDescriptor 135 136 var file_google_cloud_aiplatform_v1_value_proto_rawDesc = []byte{ 137 0x0a, 0x26, 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, 0x2f, 0x76, 0x61, 0x6c, 139 0x75, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 140 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 141 0x6d, 0x2e, 0x76, 0x31, 0x22, 0x79, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 142 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 143 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 144 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 145 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 146 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 147 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 148 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 149 0xc8, 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 150 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 151 0x76, 0x31, 0x42, 0x0a, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 152 0x5a, 0x3e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 153 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 154 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 155 0x6d, 0x70, 0x62, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x70, 0x62, 156 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 157 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 158 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 159 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 160 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 161 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 162 0x6f, 0x33, 163 } 164 165 var ( 166 file_google_cloud_aiplatform_v1_value_proto_rawDescOnce sync.Once 167 file_google_cloud_aiplatform_v1_value_proto_rawDescData = file_google_cloud_aiplatform_v1_value_proto_rawDesc 168 ) 169 170 func file_google_cloud_aiplatform_v1_value_proto_rawDescGZIP() []byte { 171 file_google_cloud_aiplatform_v1_value_proto_rawDescOnce.Do(func() { 172 file_google_cloud_aiplatform_v1_value_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1_value_proto_rawDescData) 173 }) 174 return file_google_cloud_aiplatform_v1_value_proto_rawDescData 175 } 176 177 var file_google_cloud_aiplatform_v1_value_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 178 var file_google_cloud_aiplatform_v1_value_proto_goTypes = []any{ 179 (*Value)(nil), // 0: google.cloud.aiplatform.v1.Value 180 } 181 var file_google_cloud_aiplatform_v1_value_proto_depIdxs = []int32{ 182 0, // [0:0] is the sub-list for method output_type 183 0, // [0:0] is the sub-list for method input_type 184 0, // [0:0] is the sub-list for extension type_name 185 0, // [0:0] is the sub-list for extension extendee 186 0, // [0:0] is the sub-list for field type_name 187 } 188 189 func init() { file_google_cloud_aiplatform_v1_value_proto_init() } 190 func file_google_cloud_aiplatform_v1_value_proto_init() { 191 if File_google_cloud_aiplatform_v1_value_proto != nil { 192 return 193 } 194 file_google_cloud_aiplatform_v1_value_proto_msgTypes[0].OneofWrappers = []any{ 195 (*Value_IntValue)(nil), 196 (*Value_DoubleValue)(nil), 197 (*Value_StringValue)(nil), 198 } 199 type x struct{} 200 out := protoimpl.TypeBuilder{ 201 File: protoimpl.DescBuilder{ 202 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 203 RawDescriptor: file_google_cloud_aiplatform_v1_value_proto_rawDesc, 204 NumEnums: 0, 205 NumMessages: 1, 206 NumExtensions: 0, 207 NumServices: 0, 208 }, 209 GoTypes: file_google_cloud_aiplatform_v1_value_proto_goTypes, 210 DependencyIndexes: file_google_cloud_aiplatform_v1_value_proto_depIdxs, 211 MessageInfos: file_google_cloud_aiplatform_v1_value_proto_msgTypes, 212 }.Build() 213 File_google_cloud_aiplatform_v1_value_proto = out.File 214 file_google_cloud_aiplatform_v1_value_proto_rawDesc = nil 215 file_google_cloud_aiplatform_v1_value_proto_goTypes = nil 216 file_google_cloud_aiplatform_v1_value_proto_depIdxs = nil 217 }