-
Notifications
You must be signed in to change notification settings - Fork 385
/
Copy pathgolden_config.textproto
73 lines (70 loc) · 2.3 KB
/
golden_config.textproto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https:#www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# proto-file: generator/generator_config.proto
# proto-message: GeneratorConfiguration
service {
service_proto_path: "generator/integration_tests/test.proto"
additional_proto_files: "generator/integration_tests/backup.proto"
product_path: "generator/integration_tests/golden/v1"
initial_copyright_year: "2022"
omitted_rpcs: [
"Omitted1",
"GoldenKitchenSink.Omitted2",
"Deprecated1",
"Deprecated2(std::string const&)"
]
service_endpoint_env_var: "GOLDEN_KITCHEN_SINK_ENDPOINT"
emulator_endpoint_env_var: "GOLDEN_KITCHEN_SINK_EMULATOR_HOST"
gen_async_rpcs: [
"GetDatabase",
"DropDatabase",
"StreamingRead",
"StreamingWrite"
]
retryable_status_codes: [
"GoldenKitchenSink.kInternal",
"kUnavailable",
"GoldenThingAdmin.kDeadlineExceeded"
]
generate_round_robin_decorator: true
generate_rest_transport: true
forwarding_product_path: "generator/integration_tests/golden"
idempotency_overrides: [
{rpc_name: "GoldenThingAdmin.DropDatabase", idempotency: IDEMPOTENT},
{rpc_name: "GoldenKitchenSink.ListLogs", idempotency: NON_IDEMPOTENT}
]
omit_repo_metadata: true
}
service {
service_proto_path: "generator/integration_tests/test2.proto"
product_path: "generator/integration_tests/golden/v1"
initial_copyright_year: "2023"
generate_rest_transport: true
generate_grpc_transport: false
retryable_status_codes: [
"kUnavailable"
]
}
service {
service_proto_path: "generator/integration_tests/test_request_id.proto"
product_path: "generator/integration_tests/golden/v1"
initial_copyright_year: "2024"
retryable_status_codes: [
"kUnavailable"
]
gen_async_rpcs: [
"CreateFoo"
]
override_service_config_yaml_name: "generator/integration_tests/test_request_id.yaml"
}