1// Copyright 2021 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.25.0-devel 18// protoc v3.13.0 19// source: google/cloud/aiplatform/v1beta1/data_item.proto 20 21package aiplatform 22 23import ( 24 reflect "reflect" 25 sync "sync" 26 27 proto "github.com/golang/protobuf/proto" 28 _ "google.golang.org/genproto/googleapis/api/annotations" 29 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 30 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 31 structpb "google.golang.org/protobuf/types/known/structpb" 32 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 33) 34 35const ( 36 // Verify that this generated code is sufficiently up-to-date. 37 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 38 // Verify that runtime/protoimpl is sufficiently up-to-date. 39 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 40) 41 42// This is a compile-time assertion that a sufficiently up-to-date version 43// of the legacy proto package is being used. 44const _ = proto.ProtoPackageIsVersion4 45 46// A piece of data in a Dataset. Could be an image, a video, a document or plain 47// text. 48type DataItem struct { 49 state protoimpl.MessageState 50 sizeCache protoimpl.SizeCache 51 unknownFields protoimpl.UnknownFields 52 53 // Output only. The resource name of the DataItem. 54 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 55 // Output only. Timestamp when this DataItem was created. 56 CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` 57 // Output only. Timestamp when this DataItem was last updated. 58 UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` 59 // Optional. The labels with user-defined metadata to organize your DataItems. 60 // 61 // Label keys and values can be no longer than 64 characters 62 // (Unicode codepoints), can only contain lowercase letters, numeric 63 // characters, underscores and dashes. International characters are allowed. 64 // No more than 64 user labels can be associated with one DataItem(System 65 // labels are excluded). 66 // 67 // See https://goo.gl/xmQnxf for more information and examples of labels. 68 // System reserved label keys are prefixed with "aiplatform.googleapis.com/" 69 // and are immutable. 70 Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 71 // Required. The data that the DataItem represents (for example, an image or a text 72 // snippet). The schema of the payload is stored in the parent Dataset's 73 // [metadata schema's][google.cloud.aiplatform.v1beta1.Dataset.metadata_schema_uri] dataItemSchemaUri field. 74 Payload *structpb.Value `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` 75 // Optional. Used to perform consistent read-modify-write updates. If not set, a blind 76 // "overwrite" update happens. 77 Etag string `protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"` 78} 79 80func (x *DataItem) Reset() { 81 *x = DataItem{} 82 if protoimpl.UnsafeEnabled { 83 mi := &file_google_cloud_aiplatform_v1beta1_data_item_proto_msgTypes[0] 84 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 85 ms.StoreMessageInfo(mi) 86 } 87} 88 89func (x *DataItem) String() string { 90 return protoimpl.X.MessageStringOf(x) 91} 92 93func (*DataItem) ProtoMessage() {} 94 95func (x *DataItem) ProtoReflect() protoreflect.Message { 96 mi := &file_google_cloud_aiplatform_v1beta1_data_item_proto_msgTypes[0] 97 if protoimpl.UnsafeEnabled && x != nil { 98 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 99 if ms.LoadMessageInfo() == nil { 100 ms.StoreMessageInfo(mi) 101 } 102 return ms 103 } 104 return mi.MessageOf(x) 105} 106 107// Deprecated: Use DataItem.ProtoReflect.Descriptor instead. 108func (*DataItem) Descriptor() ([]byte, []int) { 109 return file_google_cloud_aiplatform_v1beta1_data_item_proto_rawDescGZIP(), []int{0} 110} 111 112func (x *DataItem) GetName() string { 113 if x != nil { 114 return x.Name 115 } 116 return "" 117} 118 119func (x *DataItem) GetCreateTime() *timestamppb.Timestamp { 120 if x != nil { 121 return x.CreateTime 122 } 123 return nil 124} 125 126func (x *DataItem) GetUpdateTime() *timestamppb.Timestamp { 127 if x != nil { 128 return x.UpdateTime 129 } 130 return nil 131} 132 133func (x *DataItem) GetLabels() map[string]string { 134 if x != nil { 135 return x.Labels 136 } 137 return nil 138} 139 140func (x *DataItem) GetPayload() *structpb.Value { 141 if x != nil { 142 return x.Payload 143 } 144 return nil 145} 146 147func (x *DataItem) GetEtag() string { 148 if x != nil { 149 return x.Etag 150 } 151 return "" 152} 153 154var File_google_cloud_aiplatform_v1beta1_data_item_proto protoreflect.FileDescriptor 155 156var file_google_cloud_aiplatform_v1beta1_data_item_proto_rawDesc = []byte{ 157 0x0a, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 158 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 159 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 160 0x6f, 0x12, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 161 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 162 0x61, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 163 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 164 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 165 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 166 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 167 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 168 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 169 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 170 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 171 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x81, 0x04, 0x0a, 0x08, 172 0x44, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 173 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 174 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 175 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 176 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 177 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 178 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 179 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 180 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 181 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 182 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x52, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 183 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 184 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 185 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 186 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x03, 0xe0, 0x41, 187 0x01, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x35, 0x0a, 0x07, 0x70, 0x61, 0x79, 188 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 189 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 190 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 191 0x12, 0x17, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 192 0xe0, 0x41, 0x01, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 193 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 194 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 195 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 196 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x79, 0xea, 0x41, 0x76, 0x0a, 0x22, 0x61, 0x69, 0x70, 0x6c, 0x61, 197 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 198 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x50, 0x70, 199 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 200 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 201 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x73, 0x2f, 202 0x7b, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x49, 0x74, 203 0x65, 0x6d, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x7d, 0x42, 204 0x81, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 205 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 206 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0d, 0x44, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 207 0x6d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 208 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 209 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 210 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 211 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 212 0x6f, 0x72, 0x6d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 213} 214 215var ( 216 file_google_cloud_aiplatform_v1beta1_data_item_proto_rawDescOnce sync.Once 217 file_google_cloud_aiplatform_v1beta1_data_item_proto_rawDescData = file_google_cloud_aiplatform_v1beta1_data_item_proto_rawDesc 218) 219 220func file_google_cloud_aiplatform_v1beta1_data_item_proto_rawDescGZIP() []byte { 221 file_google_cloud_aiplatform_v1beta1_data_item_proto_rawDescOnce.Do(func() { 222 file_google_cloud_aiplatform_v1beta1_data_item_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1beta1_data_item_proto_rawDescData) 223 }) 224 return file_google_cloud_aiplatform_v1beta1_data_item_proto_rawDescData 225} 226 227var file_google_cloud_aiplatform_v1beta1_data_item_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 228var file_google_cloud_aiplatform_v1beta1_data_item_proto_goTypes = []interface{}{ 229 (*DataItem)(nil), // 0: google.cloud.aiplatform.v1beta1.DataItem 230 nil, // 1: google.cloud.aiplatform.v1beta1.DataItem.LabelsEntry 231 (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp 232 (*structpb.Value)(nil), // 3: google.protobuf.Value 233} 234var file_google_cloud_aiplatform_v1beta1_data_item_proto_depIdxs = []int32{ 235 2, // 0: google.cloud.aiplatform.v1beta1.DataItem.create_time:type_name -> google.protobuf.Timestamp 236 2, // 1: google.cloud.aiplatform.v1beta1.DataItem.update_time:type_name -> google.protobuf.Timestamp 237 1, // 2: google.cloud.aiplatform.v1beta1.DataItem.labels:type_name -> google.cloud.aiplatform.v1beta1.DataItem.LabelsEntry 238 3, // 3: google.cloud.aiplatform.v1beta1.DataItem.payload:type_name -> google.protobuf.Value 239 4, // [4:4] is the sub-list for method output_type 240 4, // [4:4] is the sub-list for method input_type 241 4, // [4:4] is the sub-list for extension type_name 242 4, // [4:4] is the sub-list for extension extendee 243 0, // [0:4] is the sub-list for field type_name 244} 245 246func init() { file_google_cloud_aiplatform_v1beta1_data_item_proto_init() } 247func file_google_cloud_aiplatform_v1beta1_data_item_proto_init() { 248 if File_google_cloud_aiplatform_v1beta1_data_item_proto != nil { 249 return 250 } 251 if !protoimpl.UnsafeEnabled { 252 file_google_cloud_aiplatform_v1beta1_data_item_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 253 switch v := v.(*DataItem); i { 254 case 0: 255 return &v.state 256 case 1: 257 return &v.sizeCache 258 case 2: 259 return &v.unknownFields 260 default: 261 return nil 262 } 263 } 264 } 265 type x struct{} 266 out := protoimpl.TypeBuilder{ 267 File: protoimpl.DescBuilder{ 268 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 269 RawDescriptor: file_google_cloud_aiplatform_v1beta1_data_item_proto_rawDesc, 270 NumEnums: 0, 271 NumMessages: 2, 272 NumExtensions: 0, 273 NumServices: 0, 274 }, 275 GoTypes: file_google_cloud_aiplatform_v1beta1_data_item_proto_goTypes, 276 DependencyIndexes: file_google_cloud_aiplatform_v1beta1_data_item_proto_depIdxs, 277 MessageInfos: file_google_cloud_aiplatform_v1beta1_data_item_proto_msgTypes, 278 }.Build() 279 File_google_cloud_aiplatform_v1beta1_data_item_proto = out.File 280 file_google_cloud_aiplatform_v1beta1_data_item_proto_rawDesc = nil 281 file_google_cloud_aiplatform_v1beta1_data_item_proto_goTypes = nil 282 file_google_cloud_aiplatform_v1beta1_data_item_proto_depIdxs = nil 283} 284