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