Skip to content

Commit 685fb65

Browse files
AUTO GENERATED ELIXIR GOOGLEAPIS PROTOBUF (#974)
Co-authored-by: Hany Rock <rudebono@gmail.com>
1 parent 4568017 commit 685fb65

File tree

11 files changed

+2293
-1
lines changed

11 files changed

+2293
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
defmodule Google.Cloud.Aiplatform.V1.CachedContent.UsageMetadata do
2+
@moduledoc false
3+
4+
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3
5+
6+
field :total_token_count, 1, type: :int32, json_name: "totalTokenCount"
7+
field :text_count, 2, type: :int32, json_name: "textCount"
8+
field :image_count, 3, type: :int32, json_name: "imageCount"
9+
field :video_duration_seconds, 4, type: :int32, json_name: "videoDurationSeconds"
10+
field :audio_duration_seconds, 5, type: :int32, json_name: "audioDurationSeconds"
11+
end
12+
13+
defmodule Google.Cloud.Aiplatform.V1.CachedContent do
14+
@moduledoc false
15+
16+
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3
17+
18+
oneof :expiration, 0
19+
20+
field :expire_time, 9, type: Google.Protobuf.Timestamp, json_name: "expireTime", oneof: 0
21+
field :ttl, 10, type: Google.Protobuf.Duration, oneof: 0, deprecated: false
22+
field :name, 1, type: :string, deprecated: false
23+
field :display_name, 11, type: :string, json_name: "displayName", deprecated: false
24+
field :model, 2, type: :string, deprecated: false
25+
26+
field :system_instruction, 3,
27+
type: Google.Cloud.Aiplatform.V1.Content,
28+
json_name: "systemInstruction",
29+
deprecated: false
30+
31+
field :contents, 4, repeated: true, type: Google.Cloud.Aiplatform.V1.Content, deprecated: false
32+
field :tools, 5, repeated: true, type: Google.Cloud.Aiplatform.V1.Tool, deprecated: false
33+
34+
field :tool_config, 6,
35+
type: Google.Cloud.Aiplatform.V1.ToolConfig,
36+
json_name: "toolConfig",
37+
deprecated: false
38+
39+
field :create_time, 7,
40+
type: Google.Protobuf.Timestamp,
41+
json_name: "createTime",
42+
deprecated: false
43+
44+
field :update_time, 8,
45+
type: Google.Protobuf.Timestamp,
46+
json_name: "updateTime",
47+
deprecated: false
48+
49+
field :usage_metadata, 12,
50+
type: Google.Cloud.Aiplatform.V1.CachedContent.UsageMetadata,
51+
json_name: "usageMetadata",
52+
deprecated: false
53+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
defmodule Google.Cloud.Aiplatform.V1.CreateCachedContentRequest do
2+
@moduledoc false
3+
4+
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3
5+
6+
field :parent, 1, type: :string, deprecated: false
7+
8+
field :cached_content, 2,
9+
type: Google.Cloud.Aiplatform.V1.CachedContent,
10+
json_name: "cachedContent",
11+
deprecated: false
12+
end
13+
14+
defmodule Google.Cloud.Aiplatform.V1.GetCachedContentRequest do
15+
@moduledoc false
16+
17+
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3
18+
19+
field :name, 1, type: :string, deprecated: false
20+
end
21+
22+
defmodule Google.Cloud.Aiplatform.V1.UpdateCachedContentRequest do
23+
@moduledoc false
24+
25+
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3
26+
27+
field :cached_content, 1,
28+
type: Google.Cloud.Aiplatform.V1.CachedContent,
29+
json_name: "cachedContent",
30+
deprecated: false
31+
32+
field :update_mask, 2,
33+
type: Google.Protobuf.FieldMask,
34+
json_name: "updateMask",
35+
deprecated: false
36+
end
37+
38+
defmodule Google.Cloud.Aiplatform.V1.DeleteCachedContentRequest do
39+
@moduledoc false
40+
41+
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3
42+
43+
field :name, 1, type: :string, deprecated: false
44+
end
45+
46+
defmodule Google.Cloud.Aiplatform.V1.ListCachedContentsRequest do
47+
@moduledoc false
48+
49+
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3
50+
51+
field :parent, 1, type: :string, deprecated: false
52+
field :page_size, 2, type: :int32, json_name: "pageSize", deprecated: false
53+
field :page_token, 3, type: :string, json_name: "pageToken", deprecated: false
54+
end
55+
56+
defmodule Google.Cloud.Aiplatform.V1.ListCachedContentsResponse do
57+
@moduledoc false
58+
59+
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3
60+
61+
field :cached_contents, 1,
62+
repeated: true,
63+
type: Google.Cloud.Aiplatform.V1.CachedContent,
64+
json_name: "cachedContents"
65+
66+
field :next_page_token, 2, type: :string, json_name: "nextPageToken"
67+
end
68+
69+
defmodule Google.Cloud.Aiplatform.V1.GenAiCacheService.Service do
70+
@moduledoc false
71+
72+
use GRPC.Service,
73+
name: "google.cloud.aiplatform.v1.GenAiCacheService",
74+
protoc_gen_elixir_version: "0.13.0"
75+
76+
rpc :CreateCachedContent,
77+
Google.Cloud.Aiplatform.V1.CreateCachedContentRequest,
78+
Google.Cloud.Aiplatform.V1.CachedContent
79+
80+
rpc :GetCachedContent,
81+
Google.Cloud.Aiplatform.V1.GetCachedContentRequest,
82+
Google.Cloud.Aiplatform.V1.CachedContent
83+
84+
rpc :UpdateCachedContent,
85+
Google.Cloud.Aiplatform.V1.UpdateCachedContentRequest,
86+
Google.Cloud.Aiplatform.V1.CachedContent
87+
88+
rpc :DeleteCachedContent,
89+
Google.Cloud.Aiplatform.V1.DeleteCachedContentRequest,
90+
Google.Protobuf.Empty
91+
92+
rpc :ListCachedContents,
93+
Google.Cloud.Aiplatform.V1.ListCachedContentsRequest,
94+
Google.Cloud.Aiplatform.V1.ListCachedContentsResponse
95+
end
96+
97+
defmodule Google.Cloud.Aiplatform.V1.GenAiCacheService.Stub do
98+
@moduledoc false
99+
100+
use GRPC.Stub, service: Google.Cloud.Aiplatform.V1.GenAiCacheService.Service
101+
end

lib/google/cloud/aiplatform/v1/prediction_service.pb.ex

+6
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ defmodule Google.Cloud.Aiplatform.V1.GenerateContentRequest do
245245
json_name: "systemInstruction",
246246
deprecated: false
247247

248+
field :cached_content, 9, type: :string, json_name: "cachedContent", deprecated: false
248249
field :tools, 6, repeated: true, type: Google.Cloud.Aiplatform.V1.Tool, deprecated: false
249250

250251
field :tool_config, 7,
@@ -301,6 +302,11 @@ defmodule Google.Cloud.Aiplatform.V1.GenerateContentResponse.UsageMetadata do
301302
field :prompt_token_count, 1, type: :int32, json_name: "promptTokenCount"
302303
field :candidates_token_count, 2, type: :int32, json_name: "candidatesTokenCount"
303304
field :total_token_count, 3, type: :int32, json_name: "totalTokenCount"
305+
306+
field :cached_content_token_count, 5,
307+
type: :int32,
308+
json_name: "cachedContentTokenCount",
309+
deprecated: false
304310
end
305311

306312
defmodule Google.Cloud.Aiplatform.V1.GenerateContentResponse do

lib/google/cloud/aiplatform/v1/tool.pb.ex

+14
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ defmodule Google.Cloud.Aiplatform.V1.ToolConfig do
170170
type: Google.Cloud.Aiplatform.V1.FunctionCallingConfig,
171171
json_name: "functionCallingConfig",
172172
deprecated: false
173+
174+
field :retrieval_config, 2,
175+
type: Google.Cloud.Aiplatform.V1.RetrievalConfig,
176+
json_name: "retrievalConfig",
177+
deprecated: false
173178
end
174179

175180
defmodule Google.Cloud.Aiplatform.V1.FunctionCallingConfig do
@@ -189,6 +194,15 @@ defmodule Google.Cloud.Aiplatform.V1.FunctionCallingConfig do
189194
deprecated: false
190195
end
191196

197+
defmodule Google.Cloud.Aiplatform.V1.RetrievalConfig do
198+
@moduledoc false
199+
200+
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3
201+
202+
field :lat_lng, 1, proto3_optional: true, type: Google.Type.LatLng, json_name: "latLng"
203+
field :language_code, 2, proto3_optional: true, type: :string, json_name: "languageCode"
204+
end
205+
192206
defmodule Google.Cloud.Aiplatform.V1.RagRetrievalConfig.Filter do
193207
@moduledoc false
194208

lib/google/cloud/aiplatform/v1beta1/tool.pb.ex

+14
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,11 @@ defmodule Google.Cloud.Aiplatform.V1beta1.ToolConfig do
269269
type: Google.Cloud.Aiplatform.V1beta1.FunctionCallingConfig,
270270
json_name: "functionCallingConfig",
271271
deprecated: false
272+
273+
field :retrieval_config, 2,
274+
type: Google.Cloud.Aiplatform.V1beta1.RetrievalConfig,
275+
json_name: "retrievalConfig",
276+
deprecated: false
272277
end
273278

274279
defmodule Google.Cloud.Aiplatform.V1beta1.FunctionCallingConfig do
@@ -288,6 +293,15 @@ defmodule Google.Cloud.Aiplatform.V1beta1.FunctionCallingConfig do
288293
deprecated: false
289294
end
290295

296+
defmodule Google.Cloud.Aiplatform.V1beta1.RetrievalConfig do
297+
@moduledoc false
298+
299+
use Protobuf, protoc_gen_elixir_version: "0.13.0", syntax: :proto3
300+
301+
field :lat_lng, 1, proto3_optional: true, type: Google.Type.LatLng, json_name: "latLng"
302+
field :language_code, 2, proto3_optional: true, type: :string, json_name: "languageCode"
303+
end
304+
291305
defmodule Google.Cloud.Aiplatform.V1beta1.RagRetrievalConfig.HybridSearch do
292306
@moduledoc false
293307

0 commit comments

Comments
 (0)