cloud.google.com/go/aiplatform@v1.106.0/apiv1/aiplatformpb/cached_content.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/cached_content.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 durationpb "google.golang.org/protobuf/types/known/durationpb" 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 resource used in LLM queries for users to explicitly specify what to cache 41 // and how to cache. 42 type CachedContent struct { 43 state protoimpl.MessageState 44 sizeCache protoimpl.SizeCache 45 unknownFields protoimpl.UnknownFields 46 47 // Expiration time of the cached content. 48 // 49 // Types that are assignable to Expiration: 50 // 51 // *CachedContent_ExpireTime 52 // *CachedContent_Ttl 53 Expiration isCachedContent_Expiration `protobuf_oneof:"expiration"` 54 // Immutable. Identifier. The server-generated resource name of the cached 55 // content Format: 56 // projects/{project}/locations/{location}/cachedContents/{cached_content} 57 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 58 // Optional. Immutable. The user-generated meaningful display name of the 59 // cached content. 60 DisplayName string `protobuf:"bytes,11,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` 61 // Immutable. The name of the `Model` to use for cached content. Currently, 62 // only the published Gemini base models are supported, in form of 63 // projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL} 64 Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"` 65 // Optional. Input only. Immutable. Developer set system instruction. 66 // Currently, text only 67 SystemInstruction *Content `protobuf:"bytes,3,opt,name=system_instruction,json=systemInstruction,proto3" json:"system_instruction,omitempty"` 68 // Optional. Input only. Immutable. The content to cache 69 Contents []*Content `protobuf:"bytes,4,rep,name=contents,proto3" json:"contents,omitempty"` 70 // Optional. Input only. Immutable. A list of `Tools` the model may use to 71 // generate the next response 72 Tools []*Tool `protobuf:"bytes,5,rep,name=tools,proto3" json:"tools,omitempty"` 73 // Optional. Input only. Immutable. Tool config. This config is shared for all 74 // tools 75 ToolConfig *ToolConfig `protobuf:"bytes,6,opt,name=tool_config,json=toolConfig,proto3" json:"tool_config,omitempty"` 76 // Output only. Creation time of the cache entry. 77 CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` 78 // Output only. When the cache entry was last updated in UTC time. 79 UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` 80 // Output only. Metadata on the usage of the cached content. 81 UsageMetadata *CachedContent_UsageMetadata `protobuf:"bytes,12,opt,name=usage_metadata,json=usageMetadata,proto3" json:"usage_metadata,omitempty"` 82 // Input only. Immutable. Customer-managed encryption key spec for a 83 // `CachedContent`. If set, this `CachedContent` and all its sub-resources 84 // will be secured by this key. 85 EncryptionSpec *EncryptionSpec `protobuf:"bytes,13,opt,name=encryption_spec,json=encryptionSpec,proto3" json:"encryption_spec,omitempty"` 86 } 87 88 func (x *CachedContent) Reset() { 89 *x = CachedContent{} 90 mi := &file_google_cloud_aiplatform_v1_cached_content_proto_msgTypes[0] 91 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 92 ms.StoreMessageInfo(mi) 93 } 94 95 func (x *CachedContent) String() string { 96 return protoimpl.X.MessageStringOf(x) 97 } 98 99 func (*CachedContent) ProtoMessage() {} 100 101 func (x *CachedContent) ProtoReflect() protoreflect.Message { 102 mi := &file_google_cloud_aiplatform_v1_cached_content_proto_msgTypes[0] 103 if x != nil { 104 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 105 if ms.LoadMessageInfo() == nil { 106 ms.StoreMessageInfo(mi) 107 } 108 return ms 109 } 110 return mi.MessageOf(x) 111 } 112 113 // Deprecated: Use CachedContent.ProtoReflect.Descriptor instead. 114 func (*CachedContent) Descriptor() ([]byte, []int) { 115 return file_google_cloud_aiplatform_v1_cached_content_proto_rawDescGZIP(), []int{0} 116 } 117 118 func (m *CachedContent) GetExpiration() isCachedContent_Expiration { 119 if m != nil { 120 return m.Expiration 121 } 122 return nil 123 } 124 125 func (x *CachedContent) GetExpireTime() *timestamppb.Timestamp { 126 if x, ok := x.GetExpiration().(*CachedContent_ExpireTime); ok { 127 return x.ExpireTime 128 } 129 return nil 130 } 131 132 func (x *CachedContent) GetTtl() *durationpb.Duration { 133 if x, ok := x.GetExpiration().(*CachedContent_Ttl); ok { 134 return x.Ttl 135 } 136 return nil 137 } 138 139 func (x *CachedContent) GetName() string { 140 if x != nil { 141 return x.Name 142 } 143 return "" 144 } 145 146 func (x *CachedContent) GetDisplayName() string { 147 if x != nil { 148 return x.DisplayName 149 } 150 return "" 151 } 152 153 func (x *CachedContent) GetModel() string { 154 if x != nil { 155 return x.Model 156 } 157 return "" 158 } 159 160 func (x *CachedContent) GetSystemInstruction() *Content { 161 if x != nil { 162 return x.SystemInstruction 163 } 164 return nil 165 } 166 167 func (x *CachedContent) GetContents() []*Content { 168 if x != nil { 169 return x.Contents 170 } 171 return nil 172 } 173 174 func (x *CachedContent) GetTools() []*Tool { 175 if x != nil { 176 return x.Tools 177 } 178 return nil 179 } 180 181 func (x *CachedContent) GetToolConfig() *ToolConfig { 182 if x != nil { 183 return x.ToolConfig 184 } 185 return nil 186 } 187 188 func (x *CachedContent) GetCreateTime() *timestamppb.Timestamp { 189 if x != nil { 190 return x.CreateTime 191 } 192 return nil 193 } 194 195 func (x *CachedContent) GetUpdateTime() *timestamppb.Timestamp { 196 if x != nil { 197 return x.UpdateTime 198 } 199 return nil 200 } 201 202 func (x *CachedContent) GetUsageMetadata() *CachedContent_UsageMetadata { 203 if x != nil { 204 return x.UsageMetadata 205 } 206 return nil 207 } 208 209 func (x *CachedContent) GetEncryptionSpec() *EncryptionSpec { 210 if x != nil { 211 return x.EncryptionSpec 212 } 213 return nil 214 } 215 216 type isCachedContent_Expiration interface { 217 isCachedContent_Expiration() 218 } 219 220 type CachedContent_ExpireTime struct { 221 // Timestamp of when this resource is considered expired. 222 // This is *always* provided on output, regardless of what was sent 223 // on input. 224 ExpireTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=expire_time,json=expireTime,proto3,oneof"` 225 } 226 227 type CachedContent_Ttl struct { 228 // Input only. The TTL for this resource. The expiration time is computed: 229 // now + TTL. 230 Ttl *durationpb.Duration `protobuf:"bytes,10,opt,name=ttl,proto3,oneof"` 231 } 232 233 func (*CachedContent_ExpireTime) isCachedContent_Expiration() {} 234 235 func (*CachedContent_Ttl) isCachedContent_Expiration() {} 236 237 // Metadata on the usage of the cached content. 238 type CachedContent_UsageMetadata struct { 239 state protoimpl.MessageState 240 sizeCache protoimpl.SizeCache 241 unknownFields protoimpl.UnknownFields 242 243 // Total number of tokens that the cached content consumes. 244 TotalTokenCount int32 `protobuf:"varint,1,opt,name=total_token_count,json=totalTokenCount,proto3" json:"total_token_count,omitempty"` 245 // Number of text characters. 246 TextCount int32 `protobuf:"varint,2,opt,name=text_count,json=textCount,proto3" json:"text_count,omitempty"` 247 // Number of images. 248 ImageCount int32 `protobuf:"varint,3,opt,name=image_count,json=imageCount,proto3" json:"image_count,omitempty"` 249 // Duration of video in seconds. 250 VideoDurationSeconds int32 `protobuf:"varint,4,opt,name=video_duration_seconds,json=videoDurationSeconds,proto3" json:"video_duration_seconds,omitempty"` 251 // Duration of audio in seconds. 252 AudioDurationSeconds int32 `protobuf:"varint,5,opt,name=audio_duration_seconds,json=audioDurationSeconds,proto3" json:"audio_duration_seconds,omitempty"` 253 } 254 255 func (x *CachedContent_UsageMetadata) Reset() { 256 *x = CachedContent_UsageMetadata{} 257 mi := &file_google_cloud_aiplatform_v1_cached_content_proto_msgTypes[1] 258 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 259 ms.StoreMessageInfo(mi) 260 } 261 262 func (x *CachedContent_UsageMetadata) String() string { 263 return protoimpl.X.MessageStringOf(x) 264 } 265 266 func (*CachedContent_UsageMetadata) ProtoMessage() {} 267 268 func (x *CachedContent_UsageMetadata) ProtoReflect() protoreflect.Message { 269 mi := &file_google_cloud_aiplatform_v1_cached_content_proto_msgTypes[1] 270 if x != nil { 271 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 272 if ms.LoadMessageInfo() == nil { 273 ms.StoreMessageInfo(mi) 274 } 275 return ms 276 } 277 return mi.MessageOf(x) 278 } 279 280 // Deprecated: Use CachedContent_UsageMetadata.ProtoReflect.Descriptor instead. 281 func (*CachedContent_UsageMetadata) Descriptor() ([]byte, []int) { 282 return file_google_cloud_aiplatform_v1_cached_content_proto_rawDescGZIP(), []int{0, 0} 283 } 284 285 func (x *CachedContent_UsageMetadata) GetTotalTokenCount() int32 { 286 if x != nil { 287 return x.TotalTokenCount 288 } 289 return 0 290 } 291 292 func (x *CachedContent_UsageMetadata) GetTextCount() int32 { 293 if x != nil { 294 return x.TextCount 295 } 296 return 0 297 } 298 299 func (x *CachedContent_UsageMetadata) GetImageCount() int32 { 300 if x != nil { 301 return x.ImageCount 302 } 303 return 0 304 } 305 306 func (x *CachedContent_UsageMetadata) GetVideoDurationSeconds() int32 { 307 if x != nil { 308 return x.VideoDurationSeconds 309 } 310 return 0 311 } 312 313 func (x *CachedContent_UsageMetadata) GetAudioDurationSeconds() int32 { 314 if x != nil { 315 return x.AudioDurationSeconds 316 } 317 return 0 318 } 319 320 var File_google_cloud_aiplatform_v1_cached_content_proto protoreflect.FileDescriptor 321 322 var file_google_cloud_aiplatform_v1_cached_content_proto_rawDesc = []byte{ 323 0x0a, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 324 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x61, 0x63, 325 0x68, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 326 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 327 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 328 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 329 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 330 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 331 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 332 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 333 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 334 0x6f, 0x74, 0x6f, 0x1a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 335 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 336 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 337 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 338 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 339 0x31, 0x2f, 0x74, 0x6f, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 340 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 341 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 342 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 343 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfc, 0x09, 344 0x0a, 0x0d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 345 0x3d, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 346 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 347 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 348 0x48, 0x00, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x32, 349 0x0a, 0x03, 0x74, 0x74, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 350 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 351 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x48, 0x00, 0x52, 0x03, 0x74, 352 0x74, 0x6c, 0x12, 0x1a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 353 0x42, 0x06, 0xe0, 0x41, 0x08, 0xe0, 0x41, 0x05, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x29, 354 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0b, 355 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe0, 0x41, 0x01, 0xe0, 0x41, 0x05, 0x52, 0x0b, 0x64, 0x69, 356 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 357 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x05, 0x52, 0x05, 0x6d, 358 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x5d, 0x0a, 0x12, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x69, 359 0x6e, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 360 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 361 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 362 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x09, 0xe0, 0x41, 0x01, 0xe0, 0x41, 0x05, 0xe0, 0x41, 0x04, 363 0x52, 0x11, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x49, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 364 0x69, 0x6f, 0x6e, 0x12, 0x4a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 365 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 366 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 367 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x09, 0xe0, 0x41, 0x01, 0xe0, 368 0x41, 0x05, 0xe0, 0x41, 0x04, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 369 0x41, 0x0a, 0x05, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 370 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 371 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6f, 0x6c, 372 0x42, 0x09, 0xe0, 0x41, 0x01, 0xe0, 0x41, 0x05, 0xe0, 0x41, 0x04, 0x52, 0x05, 0x74, 0x6f, 0x6f, 373 0x6c, 0x73, 0x12, 0x52, 0x0a, 0x0b, 0x74, 0x6f, 0x6f, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 374 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 375 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 376 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6f, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 377 0x09, 0xe0, 0x41, 0x01, 0xe0, 0x41, 0x05, 0xe0, 0x41, 0x04, 0x52, 0x0a, 0x74, 0x6f, 0x6f, 0x6c, 378 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 379 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 380 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 381 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 382 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 383 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 384 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 385 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 386 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x63, 0x0a, 0x0e, 0x75, 0x73, 387 0x61, 0x67, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0c, 0x20, 0x01, 388 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 389 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 390 0x43, 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x55, 0x73, 391 0x61, 0x67, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x03, 0xe0, 0x41, 0x03, 392 0x52, 0x0d, 0x75, 0x73, 0x61, 0x67, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 393 0x5b, 0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x70, 394 0x65, 0x63, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 395 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 396 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 397 0x53, 0x70, 0x65, 0x63, 0x42, 0x06, 0xe0, 0x41, 0x04, 0xe0, 0x41, 0x05, 0x52, 0x0e, 0x65, 0x6e, 398 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x1a, 0xe7, 0x01, 0x0a, 399 0x0d, 0x55, 0x73, 0x61, 0x67, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2a, 400 0x0a, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x63, 0x6f, 401 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 402 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x65, 403 0x78, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 404 0x74, 0x65, 0x78, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6d, 0x61, 405 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 406 0x69, 0x6d, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x76, 0x69, 407 0x64, 0x65, 0x6f, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x63, 408 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x76, 0x69, 0x64, 0x65, 409 0x6f, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 410 0x12, 0x34, 0x0a, 0x16, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 411 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 412 0x52, 0x14, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 413 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x3a, 0x95, 0x01, 0xea, 0x41, 0x91, 0x01, 0x0a, 0x27, 0x61, 414 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 415 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 416 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x47, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 417 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 418 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 419 0x63, 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 420 0x63, 0x61, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x7d, 0x2a, 421 0x0e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x32, 422 0x0d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x0c, 423 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xd0, 0x01, 0x0a, 424 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 425 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x42, 426 0x12, 0x43, 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x50, 0x72, 427 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 428 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 429 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x61, 0x69, 0x70, 0x6c, 430 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x70, 0x62, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 431 0x6f, 0x72, 0x6d, 0x70, 0x62, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 432 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 433 0x56, 0x31, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 434 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0xea, 435 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 436 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 437 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 438 } 439 440 var ( 441 file_google_cloud_aiplatform_v1_cached_content_proto_rawDescOnce sync.Once 442 file_google_cloud_aiplatform_v1_cached_content_proto_rawDescData = file_google_cloud_aiplatform_v1_cached_content_proto_rawDesc 443 ) 444 445 func file_google_cloud_aiplatform_v1_cached_content_proto_rawDescGZIP() []byte { 446 file_google_cloud_aiplatform_v1_cached_content_proto_rawDescOnce.Do(func() { 447 file_google_cloud_aiplatform_v1_cached_content_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1_cached_content_proto_rawDescData) 448 }) 449 return file_google_cloud_aiplatform_v1_cached_content_proto_rawDescData 450 } 451 452 var file_google_cloud_aiplatform_v1_cached_content_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 453 var file_google_cloud_aiplatform_v1_cached_content_proto_goTypes = []any{ 454 (*CachedContent)(nil), // 0: google.cloud.aiplatform.v1.CachedContent 455 (*CachedContent_UsageMetadata)(nil), // 1: google.cloud.aiplatform.v1.CachedContent.UsageMetadata 456 (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp 457 (*durationpb.Duration)(nil), // 3: google.protobuf.Duration 458 (*Content)(nil), // 4: google.cloud.aiplatform.v1.Content 459 (*Tool)(nil), // 5: google.cloud.aiplatform.v1.Tool 460 (*ToolConfig)(nil), // 6: google.cloud.aiplatform.v1.ToolConfig 461 (*EncryptionSpec)(nil), // 7: google.cloud.aiplatform.v1.EncryptionSpec 462 } 463 var file_google_cloud_aiplatform_v1_cached_content_proto_depIdxs = []int32{ 464 2, // 0: google.cloud.aiplatform.v1.CachedContent.expire_time:type_name -> google.protobuf.Timestamp 465 3, // 1: google.cloud.aiplatform.v1.CachedContent.ttl:type_name -> google.protobuf.Duration 466 4, // 2: google.cloud.aiplatform.v1.CachedContent.system_instruction:type_name -> google.cloud.aiplatform.v1.Content 467 4, // 3: google.cloud.aiplatform.v1.CachedContent.contents:type_name -> google.cloud.aiplatform.v1.Content 468 5, // 4: google.cloud.aiplatform.v1.CachedContent.tools:type_name -> google.cloud.aiplatform.v1.Tool 469 6, // 5: google.cloud.aiplatform.v1.CachedContent.tool_config:type_name -> google.cloud.aiplatform.v1.ToolConfig 470 2, // 6: google.cloud.aiplatform.v1.CachedContent.create_time:type_name -> google.protobuf.Timestamp 471 2, // 7: google.cloud.aiplatform.v1.CachedContent.update_time:type_name -> google.protobuf.Timestamp 472 1, // 8: google.cloud.aiplatform.v1.CachedContent.usage_metadata:type_name -> google.cloud.aiplatform.v1.CachedContent.UsageMetadata 473 7, // 9: google.cloud.aiplatform.v1.CachedContent.encryption_spec:type_name -> google.cloud.aiplatform.v1.EncryptionSpec 474 10, // [10:10] is the sub-list for method output_type 475 10, // [10:10] is the sub-list for method input_type 476 10, // [10:10] is the sub-list for extension type_name 477 10, // [10:10] is the sub-list for extension extendee 478 0, // [0:10] is the sub-list for field type_name 479 } 480 481 func init() { file_google_cloud_aiplatform_v1_cached_content_proto_init() } 482 func file_google_cloud_aiplatform_v1_cached_content_proto_init() { 483 if File_google_cloud_aiplatform_v1_cached_content_proto != nil { 484 return 485 } 486 file_google_cloud_aiplatform_v1_content_proto_init() 487 file_google_cloud_aiplatform_v1_encryption_spec_proto_init() 488 file_google_cloud_aiplatform_v1_tool_proto_init() 489 file_google_cloud_aiplatform_v1_cached_content_proto_msgTypes[0].OneofWrappers = []any{ 490 (*CachedContent_ExpireTime)(nil), 491 (*CachedContent_Ttl)(nil), 492 } 493 type x struct{} 494 out := protoimpl.TypeBuilder{ 495 File: protoimpl.DescBuilder{ 496 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 497 RawDescriptor: file_google_cloud_aiplatform_v1_cached_content_proto_rawDesc, 498 NumEnums: 0, 499 NumMessages: 2, 500 NumExtensions: 0, 501 NumServices: 0, 502 }, 503 GoTypes: file_google_cloud_aiplatform_v1_cached_content_proto_goTypes, 504 DependencyIndexes: file_google_cloud_aiplatform_v1_cached_content_proto_depIdxs, 505 MessageInfos: file_google_cloud_aiplatform_v1_cached_content_proto_msgTypes, 506 }.Build() 507 File_google_cloud_aiplatform_v1_cached_content_proto = out.File 508 file_google_cloud_aiplatform_v1_cached_content_proto_rawDesc = nil 509 file_google_cloud_aiplatform_v1_cached_content_proto_goTypes = nil 510 file_google_cloud_aiplatform_v1_cached_content_proto_depIdxs = nil 511 }