cloud.google.com/go/aiplatform@v1.106.0/apiv1beta1/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/v1beta1/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_v1beta1_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_v1beta1_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_v1beta1_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_v1beta1_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_v1beta1_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_v1beta1_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_v1beta1_cached_content_proto protoreflect.FileDescriptor 321 322 var file_google_cloud_aiplatform_v1beta1_cached_content_proto_rawDesc = []byte{ 323 0x0a, 0x34, 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, 0x62, 0x65, 0x74, 0x61, 325 0x31, 0x2f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 326 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 327 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 328 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 329 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 330 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 331 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 332 0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 333 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 334 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 335 0x74, 0x6f, 0x1a, 0x35, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 336 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 337 0x74, 0x61, 0x31, 0x2f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 338 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 339 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 340 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x6f, 0x6f, 0x6c, 0x2e, 341 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 342 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 343 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 344 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 345 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9a, 0x0a, 0x0a, 0x0d, 0x43, 0x61, 0x63, 0x68, 0x65, 346 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x3d, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 347 0x72, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 348 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 349 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x0a, 0x65, 0x78, 0x70, 350 0x69, 0x72, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x03, 0x74, 0x74, 0x6c, 0x18, 0x0a, 351 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 352 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 353 0x03, 0xe0, 0x41, 0x04, 0x48, 0x00, 0x52, 0x03, 0x74, 0x74, 0x6c, 0x12, 0x1a, 0x0a, 0x04, 0x6e, 354 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe0, 0x41, 0x08, 0xe0, 0x41, 355 0x05, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 356 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe0, 357 0x41, 0x01, 0xe0, 0x41, 0x05, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 358 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 359 0x09, 0x42, 0x03, 0xe0, 0x41, 0x05, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x62, 0x0a, 360 0x12, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 361 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 362 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 363 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 364 0x65, 0x6e, 0x74, 0x42, 0x09, 0xe0, 0x41, 0x01, 0xe0, 0x41, 0x05, 0xe0, 0x41, 0x04, 0x52, 0x11, 365 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x49, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x69, 0x6f, 366 0x6e, 0x12, 0x4f, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 367 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 368 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 369 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x09, 0xe0, 370 0x41, 0x01, 0xe0, 0x41, 0x05, 0xe0, 0x41, 0x04, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 371 0x74, 0x73, 0x12, 0x46, 0x0a, 0x05, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 372 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 373 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 374 0x74, 0x61, 0x31, 0x2e, 0x54, 0x6f, 0x6f, 0x6c, 0x42, 0x09, 0xe0, 0x41, 0x01, 0xe0, 0x41, 0x05, 375 0xe0, 0x41, 0x04, 0x52, 0x05, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x12, 0x57, 0x0a, 0x0b, 0x74, 0x6f, 376 0x6f, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 377 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 378 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 379 0x31, 0x2e, 0x54, 0x6f, 0x6f, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x09, 0xe0, 0x41, 380 0x01, 0xe0, 0x41, 0x05, 0xe0, 0x41, 0x04, 0x52, 0x0a, 0x74, 0x6f, 0x6f, 0x6c, 0x43, 0x6f, 0x6e, 381 0x66, 0x69, 0x67, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 382 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 383 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 384 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 385 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 386 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 387 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 388 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 389 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x68, 0x0a, 0x0e, 0x75, 0x73, 0x61, 0x67, 0x65, 390 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 391 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 392 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 393 0x31, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 394 0x55, 0x73, 0x61, 0x67, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x03, 0xe0, 395 0x41, 0x03, 0x52, 0x0d, 0x75, 0x73, 0x61, 0x67, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 396 0x61, 0x12, 0x60, 0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 397 0x73, 0x70, 0x65, 0x63, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 398 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 399 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x45, 0x6e, 0x63, 400 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x42, 0x06, 0xe0, 0x41, 0x04, 401 0xe0, 0x41, 0x05, 0x52, 0x0e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 402 0x70, 0x65, 0x63, 0x1a, 0xe7, 0x01, 0x0a, 0x0d, 0x55, 0x73, 0x61, 0x67, 0x65, 0x4d, 0x65, 0x74, 403 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x74, 404 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 405 0x52, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 406 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 407 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x74, 0x65, 0x78, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 408 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 409 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x75, 0x6e, 410 0x74, 0x12, 0x34, 0x0a, 0x16, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 411 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 412 0x05, 0x52, 0x14, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 413 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x61, 0x75, 0x64, 0x69, 0x6f, 414 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 415 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x44, 0x75, 416 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x3a, 0x95, 0x01, 417 0xea, 0x41, 0x91, 0x01, 0x0a, 0x27, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 418 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 419 0x43, 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x47, 0x70, 420 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 421 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 422 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6e, 423 0x74, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x61, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x63, 0x6f, 424 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x7d, 0x2a, 0x0e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 0x6f, 425 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x32, 0x0d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 0x6f, 426 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x0c, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 427 0x69, 0x6f, 0x6e, 0x42, 0xe9, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 428 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 429 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x12, 0x43, 0x61, 0x63, 430 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 431 0x01, 0x5a, 0x43, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 432 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 433 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x69, 0x70, 434 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x70, 0x62, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 435 0x66, 0x6f, 0x72, 0x6d, 0x70, 0x62, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 436 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 437 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 438 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 439 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, 440 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 441 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 442 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 443 } 444 445 var ( 446 file_google_cloud_aiplatform_v1beta1_cached_content_proto_rawDescOnce sync.Once 447 file_google_cloud_aiplatform_v1beta1_cached_content_proto_rawDescData = file_google_cloud_aiplatform_v1beta1_cached_content_proto_rawDesc 448 ) 449 450 func file_google_cloud_aiplatform_v1beta1_cached_content_proto_rawDescGZIP() []byte { 451 file_google_cloud_aiplatform_v1beta1_cached_content_proto_rawDescOnce.Do(func() { 452 file_google_cloud_aiplatform_v1beta1_cached_content_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1beta1_cached_content_proto_rawDescData) 453 }) 454 return file_google_cloud_aiplatform_v1beta1_cached_content_proto_rawDescData 455 } 456 457 var file_google_cloud_aiplatform_v1beta1_cached_content_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 458 var file_google_cloud_aiplatform_v1beta1_cached_content_proto_goTypes = []any{ 459 (*CachedContent)(nil), // 0: google.cloud.aiplatform.v1beta1.CachedContent 460 (*CachedContent_UsageMetadata)(nil), // 1: google.cloud.aiplatform.v1beta1.CachedContent.UsageMetadata 461 (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp 462 (*durationpb.Duration)(nil), // 3: google.protobuf.Duration 463 (*Content)(nil), // 4: google.cloud.aiplatform.v1beta1.Content 464 (*Tool)(nil), // 5: google.cloud.aiplatform.v1beta1.Tool 465 (*ToolConfig)(nil), // 6: google.cloud.aiplatform.v1beta1.ToolConfig 466 (*EncryptionSpec)(nil), // 7: google.cloud.aiplatform.v1beta1.EncryptionSpec 467 } 468 var file_google_cloud_aiplatform_v1beta1_cached_content_proto_depIdxs = []int32{ 469 2, // 0: google.cloud.aiplatform.v1beta1.CachedContent.expire_time:type_name -> google.protobuf.Timestamp 470 3, // 1: google.cloud.aiplatform.v1beta1.CachedContent.ttl:type_name -> google.protobuf.Duration 471 4, // 2: google.cloud.aiplatform.v1beta1.CachedContent.system_instruction:type_name -> google.cloud.aiplatform.v1beta1.Content 472 4, // 3: google.cloud.aiplatform.v1beta1.CachedContent.contents:type_name -> google.cloud.aiplatform.v1beta1.Content 473 5, // 4: google.cloud.aiplatform.v1beta1.CachedContent.tools:type_name -> google.cloud.aiplatform.v1beta1.Tool 474 6, // 5: google.cloud.aiplatform.v1beta1.CachedContent.tool_config:type_name -> google.cloud.aiplatform.v1beta1.ToolConfig 475 2, // 6: google.cloud.aiplatform.v1beta1.CachedContent.create_time:type_name -> google.protobuf.Timestamp 476 2, // 7: google.cloud.aiplatform.v1beta1.CachedContent.update_time:type_name -> google.protobuf.Timestamp 477 1, // 8: google.cloud.aiplatform.v1beta1.CachedContent.usage_metadata:type_name -> google.cloud.aiplatform.v1beta1.CachedContent.UsageMetadata 478 7, // 9: google.cloud.aiplatform.v1beta1.CachedContent.encryption_spec:type_name -> google.cloud.aiplatform.v1beta1.EncryptionSpec 479 10, // [10:10] is the sub-list for method output_type 480 10, // [10:10] is the sub-list for method input_type 481 10, // [10:10] is the sub-list for extension type_name 482 10, // [10:10] is the sub-list for extension extendee 483 0, // [0:10] is the sub-list for field type_name 484 } 485 486 func init() { file_google_cloud_aiplatform_v1beta1_cached_content_proto_init() } 487 func file_google_cloud_aiplatform_v1beta1_cached_content_proto_init() { 488 if File_google_cloud_aiplatform_v1beta1_cached_content_proto != nil { 489 return 490 } 491 file_google_cloud_aiplatform_v1beta1_content_proto_init() 492 file_google_cloud_aiplatform_v1beta1_encryption_spec_proto_init() 493 file_google_cloud_aiplatform_v1beta1_tool_proto_init() 494 file_google_cloud_aiplatform_v1beta1_cached_content_proto_msgTypes[0].OneofWrappers = []any{ 495 (*CachedContent_ExpireTime)(nil), 496 (*CachedContent_Ttl)(nil), 497 } 498 type x struct{} 499 out := protoimpl.TypeBuilder{ 500 File: protoimpl.DescBuilder{ 501 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 502 RawDescriptor: file_google_cloud_aiplatform_v1beta1_cached_content_proto_rawDesc, 503 NumEnums: 0, 504 NumMessages: 2, 505 NumExtensions: 0, 506 NumServices: 0, 507 }, 508 GoTypes: file_google_cloud_aiplatform_v1beta1_cached_content_proto_goTypes, 509 DependencyIndexes: file_google_cloud_aiplatform_v1beta1_cached_content_proto_depIdxs, 510 MessageInfos: file_google_cloud_aiplatform_v1beta1_cached_content_proto_msgTypes, 511 }.Build() 512 File_google_cloud_aiplatform_v1beta1_cached_content_proto = out.File 513 file_google_cloud_aiplatform_v1beta1_cached_content_proto_rawDesc = nil 514 file_google_cloud_aiplatform_v1beta1_cached_content_proto_goTypes = nil 515 file_google_cloud_aiplatform_v1beta1_cached_content_proto_depIdxs = nil 516 }