cloud.google.com/go/aiplatform@v1.106.0/apiv1beta1/aiplatformpb/llm_utility_service.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/llm_utility_service.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 reflect "reflect" 29 sync "sync" 30 ) 31 32 const ( 33 // Verify that this generated code is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 35 // Verify that runtime/protoimpl is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 37 ) 38 39 // Request message for ComputeTokens RPC call. 40 type ComputeTokensRequest struct { 41 state protoimpl.MessageState 42 sizeCache protoimpl.SizeCache 43 unknownFields protoimpl.UnknownFields 44 45 // Required. The name of the Endpoint requested to get lists of tokens and 46 // token ids. 47 Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` 48 // Optional. The instances that are the input to token computing API call. 49 // Schema is identical to the prediction schema of the text model, even for 50 // the non-text models, like chat models, or Codey models. 51 Instances []*structpb.Value `protobuf:"bytes,2,rep,name=instances,proto3" json:"instances,omitempty"` 52 // Optional. The name of the publisher model requested to serve the 53 // prediction. Format: 54 // projects/{project}/locations/{location}/publishers/*/models/* 55 Model string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"` 56 // Optional. Input content. 57 Contents []*Content `protobuf:"bytes,4,rep,name=contents,proto3" json:"contents,omitempty"` 58 } 59 60 func (x *ComputeTokensRequest) Reset() { 61 *x = ComputeTokensRequest{} 62 mi := &file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_msgTypes[0] 63 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 64 ms.StoreMessageInfo(mi) 65 } 66 67 func (x *ComputeTokensRequest) String() string { 68 return protoimpl.X.MessageStringOf(x) 69 } 70 71 func (*ComputeTokensRequest) ProtoMessage() {} 72 73 func (x *ComputeTokensRequest) ProtoReflect() protoreflect.Message { 74 mi := &file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_msgTypes[0] 75 if x != nil { 76 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 77 if ms.LoadMessageInfo() == nil { 78 ms.StoreMessageInfo(mi) 79 } 80 return ms 81 } 82 return mi.MessageOf(x) 83 } 84 85 // Deprecated: Use ComputeTokensRequest.ProtoReflect.Descriptor instead. 86 func (*ComputeTokensRequest) Descriptor() ([]byte, []int) { 87 return file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_rawDescGZIP(), []int{0} 88 } 89 90 func (x *ComputeTokensRequest) GetEndpoint() string { 91 if x != nil { 92 return x.Endpoint 93 } 94 return "" 95 } 96 97 func (x *ComputeTokensRequest) GetInstances() []*structpb.Value { 98 if x != nil { 99 return x.Instances 100 } 101 return nil 102 } 103 104 func (x *ComputeTokensRequest) GetModel() string { 105 if x != nil { 106 return x.Model 107 } 108 return "" 109 } 110 111 func (x *ComputeTokensRequest) GetContents() []*Content { 112 if x != nil { 113 return x.Contents 114 } 115 return nil 116 } 117 118 // Tokens info with a list of tokens and the corresponding list of token ids. 119 type TokensInfo struct { 120 state protoimpl.MessageState 121 sizeCache protoimpl.SizeCache 122 unknownFields protoimpl.UnknownFields 123 124 // A list of tokens from the input. 125 Tokens [][]byte `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` 126 // A list of token ids from the input. 127 TokenIds []int64 `protobuf:"varint,2,rep,packed,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"` 128 // Optional. Optional fields for the role from the corresponding Content. 129 Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"` 130 } 131 132 func (x *TokensInfo) Reset() { 133 *x = TokensInfo{} 134 mi := &file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_msgTypes[1] 135 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 136 ms.StoreMessageInfo(mi) 137 } 138 139 func (x *TokensInfo) String() string { 140 return protoimpl.X.MessageStringOf(x) 141 } 142 143 func (*TokensInfo) ProtoMessage() {} 144 145 func (x *TokensInfo) ProtoReflect() protoreflect.Message { 146 mi := &file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_msgTypes[1] 147 if x != nil { 148 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 149 if ms.LoadMessageInfo() == nil { 150 ms.StoreMessageInfo(mi) 151 } 152 return ms 153 } 154 return mi.MessageOf(x) 155 } 156 157 // Deprecated: Use TokensInfo.ProtoReflect.Descriptor instead. 158 func (*TokensInfo) Descriptor() ([]byte, []int) { 159 return file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_rawDescGZIP(), []int{1} 160 } 161 162 func (x *TokensInfo) GetTokens() [][]byte { 163 if x != nil { 164 return x.Tokens 165 } 166 return nil 167 } 168 169 func (x *TokensInfo) GetTokenIds() []int64 { 170 if x != nil { 171 return x.TokenIds 172 } 173 return nil 174 } 175 176 func (x *TokensInfo) GetRole() string { 177 if x != nil { 178 return x.Role 179 } 180 return "" 181 } 182 183 // Response message for ComputeTokens RPC call. 184 type ComputeTokensResponse struct { 185 state protoimpl.MessageState 186 sizeCache protoimpl.SizeCache 187 unknownFields protoimpl.UnknownFields 188 189 // Lists of tokens info from the input. A ComputeTokensRequest could have 190 // multiple instances with a prompt in each instance. We also need to return 191 // lists of tokens info for the request with multiple instances. 192 TokensInfo []*TokensInfo `protobuf:"bytes,1,rep,name=tokens_info,json=tokensInfo,proto3" json:"tokens_info,omitempty"` 193 } 194 195 func (x *ComputeTokensResponse) Reset() { 196 *x = ComputeTokensResponse{} 197 mi := &file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_msgTypes[2] 198 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 199 ms.StoreMessageInfo(mi) 200 } 201 202 func (x *ComputeTokensResponse) String() string { 203 return protoimpl.X.MessageStringOf(x) 204 } 205 206 func (*ComputeTokensResponse) ProtoMessage() {} 207 208 func (x *ComputeTokensResponse) ProtoReflect() protoreflect.Message { 209 mi := &file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_msgTypes[2] 210 if x != nil { 211 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 212 if ms.LoadMessageInfo() == nil { 213 ms.StoreMessageInfo(mi) 214 } 215 return ms 216 } 217 return mi.MessageOf(x) 218 } 219 220 // Deprecated: Use ComputeTokensResponse.ProtoReflect.Descriptor instead. 221 func (*ComputeTokensResponse) Descriptor() ([]byte, []int) { 222 return file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_rawDescGZIP(), []int{2} 223 } 224 225 func (x *ComputeTokensResponse) GetTokensInfo() []*TokensInfo { 226 if x != nil { 227 return x.TokensInfo 228 } 229 return nil 230 } 231 232 var File_google_cloud_aiplatform_v1beta1_llm_utility_service_proto protoreflect.FileDescriptor 233 234 var file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_rawDesc = []byte{ 235 0x0a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 236 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 237 0x31, 0x2f, 0x6c, 0x6c, 0x6d, 0x5f, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x65, 238 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x67, 0x6f, 0x6f, 239 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 240 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 241 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 242 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 243 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 244 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 245 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 246 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 247 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 248 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 249 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 250 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 251 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 252 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xff, 0x01, 0x0a, 253 0x14, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 254 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 255 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 256 0x22, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 257 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x45, 0x6e, 0x64, 0x70, 0x6f, 258 0x69, 0x6e, 0x74, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x39, 0x0a, 259 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 260 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 261 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x69, 262 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 263 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x6d, 0x6f, 264 0x64, 0x65, 0x6c, 0x12, 0x49, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 265 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 266 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 267 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 268 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x5a, 269 0x0a, 0x0a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 270 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x74, 0x6f, 271 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 272 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x03, 0x52, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 273 0x73, 0x12, 0x17, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 274 0x03, 0xe0, 0x41, 0x01, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x65, 0x0a, 0x15, 0x43, 0x6f, 275 0x6d, 0x70, 0x75, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 276 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x5f, 0x69, 0x6e, 277 0x66, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 278 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 279 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 280 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x49, 0x6e, 0x66, 281 0x6f, 0x32, 0x92, 0x04, 0x0a, 0x11, 0x4c, 0x6c, 0x6d, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x74, 0x79, 282 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xad, 0x03, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x70, 283 0x75, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 284 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 285 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 286 0x75, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 287 0x1a, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 288 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 289 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 290 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xac, 0x02, 0xda, 0x41, 0x12, 0x65, 0x6e, 291 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 292 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x90, 0x02, 0x3a, 0x01, 0x2a, 0x5a, 0x53, 0x3a, 0x01, 0x2a, 0x22, 293 0x4e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x65, 0x6e, 0x64, 0x70, 0x6f, 294 0x69, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 295 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 296 0x73, 0x68, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 297 0x7d, 0x3a, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x5a, 298 0x32, 0x3a, 0x01, 0x2a, 0x22, 0x2d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 299 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 300 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x54, 0x6f, 0x6b, 301 0x65, 0x6e, 0x73, 0x5a, 0x3c, 0x3a, 0x01, 0x2a, 0x22, 0x37, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 302 0x61, 0x31, 0x2f, 0x7b, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x3d, 0x70, 0x75, 0x62, 303 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 304 0x2f, 0x2a, 0x7d, 0x3a, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 305 0x73, 0x22, 0x44, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x65, 0x6e, 0x64, 306 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 307 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x6e, 0x64, 308 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 309 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x1a, 0x4d, 0xca, 0x41, 0x19, 0x61, 0x69, 0x70, 0x6c, 310 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 311 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 312 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 313 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 314 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xed, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 315 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 316 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x16, 317 0x4c, 0x6c, 0x6d, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 318 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 319 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x69, 320 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 321 0x74, 0x61, 0x31, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x70, 0x62, 322 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x70, 0x62, 0xaa, 0x02, 0x1f, 323 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 324 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 325 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 326 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 327 0x31, 0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 328 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 329 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 330 } 331 332 var ( 333 file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_rawDescOnce sync.Once 334 file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_rawDescData = file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_rawDesc 335 ) 336 337 func file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_rawDescGZIP() []byte { 338 file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_rawDescOnce.Do(func() { 339 file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_rawDescData) 340 }) 341 return file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_rawDescData 342 } 343 344 var file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 345 var file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_goTypes = []any{ 346 (*ComputeTokensRequest)(nil), // 0: google.cloud.aiplatform.v1beta1.ComputeTokensRequest 347 (*TokensInfo)(nil), // 1: google.cloud.aiplatform.v1beta1.TokensInfo 348 (*ComputeTokensResponse)(nil), // 2: google.cloud.aiplatform.v1beta1.ComputeTokensResponse 349 (*structpb.Value)(nil), // 3: google.protobuf.Value 350 (*Content)(nil), // 4: google.cloud.aiplatform.v1beta1.Content 351 } 352 var file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_depIdxs = []int32{ 353 3, // 0: google.cloud.aiplatform.v1beta1.ComputeTokensRequest.instances:type_name -> google.protobuf.Value 354 4, // 1: google.cloud.aiplatform.v1beta1.ComputeTokensRequest.contents:type_name -> google.cloud.aiplatform.v1beta1.Content 355 1, // 2: google.cloud.aiplatform.v1beta1.ComputeTokensResponse.tokens_info:type_name -> google.cloud.aiplatform.v1beta1.TokensInfo 356 0, // 3: google.cloud.aiplatform.v1beta1.LlmUtilityService.ComputeTokens:input_type -> google.cloud.aiplatform.v1beta1.ComputeTokensRequest 357 2, // 4: google.cloud.aiplatform.v1beta1.LlmUtilityService.ComputeTokens:output_type -> google.cloud.aiplatform.v1beta1.ComputeTokensResponse 358 4, // [4:5] is the sub-list for method output_type 359 3, // [3:4] is the sub-list for method input_type 360 3, // [3:3] is the sub-list for extension type_name 361 3, // [3:3] is the sub-list for extension extendee 362 0, // [0:3] is the sub-list for field type_name 363 } 364 365 func init() { file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_init() } 366 func file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_init() { 367 if File_google_cloud_aiplatform_v1beta1_llm_utility_service_proto != nil { 368 return 369 } 370 file_google_cloud_aiplatform_v1beta1_content_proto_init() 371 type x struct{} 372 out := protoimpl.TypeBuilder{ 373 File: protoimpl.DescBuilder{ 374 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 375 RawDescriptor: file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_rawDesc, 376 NumEnums: 0, 377 NumMessages: 3, 378 NumExtensions: 0, 379 NumServices: 1, 380 }, 381 GoTypes: file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_goTypes, 382 DependencyIndexes: file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_depIdxs, 383 MessageInfos: file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_msgTypes, 384 }.Build() 385 File_google_cloud_aiplatform_v1beta1_llm_utility_service_proto = out.File 386 file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_rawDesc = nil 387 file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_goTypes = nil 388 file_google_cloud_aiplatform_v1beta1_llm_utility_service_proto_depIdxs = nil 389 }