Skip to content

Commit dbc094b

Browse files
yoshi-automationtseaver
authored andcommitted
Copy lintified proto files (via synth). (#7450)
1 parent 14ef16d commit dbc094b

File tree

5 files changed

+46
-112
lines changed

5 files changed

+46
-112
lines changed

google/cloud/logging_v2/proto/log_entry.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ option java_outer_classname = "LogEntryProto";
3333
option java_package = "com.google.logging.v2";
3434
option php_namespace = "Google\\Cloud\\Logging\\V2";
3535

36-
3736
// An individual entry in a log.
3837
message LogEntry {
3938
// Required. The resource name of the log to which this log entry belongs:

google/cloud/logging_v2/proto/logging.proto

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ option java_outer_classname = "LoggingProto";
3333
option java_package = "com.google.logging.v2";
3434
option php_namespace = "Google\\Cloud\\Logging\\V2";
3535

36-
3736
// Service for ingesting and querying logs.
3837
service LoggingServiceV2 {
3938
// Deletes all the log entries in a log.
@@ -43,15 +42,9 @@ service LoggingServiceV2 {
4342
rpc DeleteLog(DeleteLogRequest) returns (google.protobuf.Empty) {
4443
option (google.api.http) = {
4544
delete: "/v2/{log_name=projects/*/logs/*}"
46-
additional_bindings {
47-
delete: "/v2/{log_name=organizations/*/logs/*}"
48-
}
49-
additional_bindings {
50-
delete: "/v2/{log_name=folders/*/logs/*}"
51-
}
52-
additional_bindings {
53-
delete: "/v2/{log_name=billingAccounts/*/logs/*}"
54-
}
45+
additional_bindings { delete: "/v2/{log_name=organizations/*/logs/*}" }
46+
additional_bindings { delete: "/v2/{log_name=folders/*/logs/*}" }
47+
additional_bindings { delete: "/v2/{log_name=billingAccounts/*/logs/*}" }
5548
};
5649
}
5750

@@ -62,7 +55,8 @@ service LoggingServiceV2 {
6255
// A single request may contain log entries for a maximum of 1000
6356
// different resources (projects, organizations, billing accounts or
6457
// folders)
65-
rpc WriteLogEntries(WriteLogEntriesRequest) returns (WriteLogEntriesResponse) {
58+
rpc WriteLogEntries(WriteLogEntriesRequest)
59+
returns (WriteLogEntriesResponse) {
6660
option (google.api.http) = {
6761
post: "/v2/entries:write"
6862
body: "*"
@@ -80,7 +74,8 @@ service LoggingServiceV2 {
8074
}
8175

8276
// Lists the descriptors for monitored resource types used by Logging.
83-
rpc ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest) returns (ListMonitoredResourceDescriptorsResponse) {
77+
rpc ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest)
78+
returns (ListMonitoredResourceDescriptorsResponse) {
8479
option (google.api.http) = {
8580
get: "/v2/monitoredResourceDescriptors"
8681
};
@@ -91,18 +86,10 @@ service LoggingServiceV2 {
9186
rpc ListLogs(ListLogsRequest) returns (ListLogsResponse) {
9287
option (google.api.http) = {
9388
get: "/v2/{parent=*/*}/logs"
94-
additional_bindings {
95-
get: "/v2/{parent=projects/*}/logs"
96-
}
97-
additional_bindings {
98-
get: "/v2/{parent=organizations/*}/logs"
99-
}
100-
additional_bindings {
101-
get: "/v2/{parent=folders/*}/logs"
102-
}
103-
additional_bindings {
104-
get: "/v2/{parent=billingAccounts/*}/logs"
105-
}
89+
additional_bindings { get: "/v2/{parent=projects/*}/logs" }
90+
additional_bindings { get: "/v2/{parent=organizations/*}/logs" }
91+
additional_bindings { get: "/v2/{parent=folders/*}/logs" }
92+
additional_bindings { get: "/v2/{parent=billingAccounts/*}/logs" }
10693
};
10794
}
10895
}
@@ -201,9 +188,7 @@ message WriteLogEntriesRequest {
201188

202189
// Result returned from WriteLogEntries.
203190
// empty
204-
message WriteLogEntriesResponse {
205-
206-
}
191+
message WriteLogEntriesResponse {}
207192

208193
// Error details for WriteLogEntries with partial success.
209194
message WriteLogEntriesPartialErrors {

google/cloud/logging_v2/proto/logging_config.proto

Lines changed: 29 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -30,45 +30,28 @@ option java_outer_classname = "LoggingConfigProto";
3030
option java_package = "com.google.logging.v2";
3131
option php_namespace = "Google\\Cloud\\Logging\\V2";
3232

33-
3433
// Service for configuring sinks used to export log entries out of
3534
// Logging.
3635
service ConfigServiceV2 {
3736
// Lists sinks.
3837
rpc ListSinks(ListSinksRequest) returns (ListSinksResponse) {
3938
option (google.api.http) = {
4039
get: "/v2/{parent=*/*}/sinks"
41-
additional_bindings {
42-
get: "/v2/{parent=projects/*}/sinks"
43-
}
44-
additional_bindings {
45-
get: "/v2/{parent=organizations/*}/sinks"
46-
}
47-
additional_bindings {
48-
get: "/v2/{parent=folders/*}/sinks"
49-
}
50-
additional_bindings {
51-
get: "/v2/{parent=billingAccounts/*}/sinks"
52-
}
40+
additional_bindings { get: "/v2/{parent=projects/*}/sinks" }
41+
additional_bindings { get: "/v2/{parent=organizations/*}/sinks" }
42+
additional_bindings { get: "/v2/{parent=folders/*}/sinks" }
43+
additional_bindings { get: "/v2/{parent=billingAccounts/*}/sinks" }
5344
};
5445
}
5546

5647
// Gets a sink.
5748
rpc GetSink(GetSinkRequest) returns (LogSink) {
5849
option (google.api.http) = {
5950
get: "/v2/{sink_name=*/*/sinks/*}"
60-
additional_bindings {
61-
get: "/v2/{sink_name=projects/*/sinks/*}"
62-
}
63-
additional_bindings {
64-
get: "/v2/{sink_name=organizations/*/sinks/*}"
65-
}
66-
additional_bindings {
67-
get: "/v2/{sink_name=folders/*/sinks/*}"
68-
}
69-
additional_bindings {
70-
get: "/v2/{sink_name=billingAccounts/*/sinks/*}"
71-
}
51+
additional_bindings { get: "/v2/{sink_name=projects/*/sinks/*}" }
52+
additional_bindings { get: "/v2/{sink_name=organizations/*/sinks/*}" }
53+
additional_bindings { get: "/v2/{sink_name=folders/*/sinks/*}" }
54+
additional_bindings { get: "/v2/{sink_name=billingAccounts/*/sinks/*}" }
7255
};
7356
}
7457

@@ -80,18 +63,12 @@ service ConfigServiceV2 {
8063
option (google.api.http) = {
8164
post: "/v2/{parent=*/*}/sinks"
8265
body: "sink"
83-
additional_bindings {
84-
post: "/v2/{parent=projects/*}/sinks"
85-
body: "sink"
86-
}
66+
additional_bindings { post: "/v2/{parent=projects/*}/sinks" body: "sink" }
8767
additional_bindings {
8868
post: "/v2/{parent=organizations/*}/sinks"
8969
body: "sink"
9070
}
91-
additional_bindings {
92-
post: "/v2/{parent=folders/*}/sinks"
93-
body: "sink"
94-
}
71+
additional_bindings { post: "/v2/{parent=folders/*}/sinks" body: "sink" }
9572
additional_bindings {
9673
post: "/v2/{parent=billingAccounts/*}/sinks"
9774
body: "sink"
@@ -147,15 +124,9 @@ service ConfigServiceV2 {
147124
rpc DeleteSink(DeleteSinkRequest) returns (google.protobuf.Empty) {
148125
option (google.api.http) = {
149126
delete: "/v2/{sink_name=*/*/sinks/*}"
150-
additional_bindings {
151-
delete: "/v2/{sink_name=projects/*/sinks/*}"
152-
}
153-
additional_bindings {
154-
delete: "/v2/{sink_name=organizations/*/sinks/*}"
155-
}
156-
additional_bindings {
157-
delete: "/v2/{sink_name=folders/*/sinks/*}"
158-
}
127+
additional_bindings { delete: "/v2/{sink_name=projects/*/sinks/*}" }
128+
additional_bindings { delete: "/v2/{sink_name=organizations/*/sinks/*}" }
129+
additional_bindings { delete: "/v2/{sink_name=folders/*/sinks/*}" }
159130
additional_bindings {
160131
delete: "/v2/{sink_name=billingAccounts/*/sinks/*}"
161132
}
@@ -166,37 +137,21 @@ service ConfigServiceV2 {
166137
rpc ListExclusions(ListExclusionsRequest) returns (ListExclusionsResponse) {
167138
option (google.api.http) = {
168139
get: "/v2/{parent=*/*}/exclusions"
169-
additional_bindings {
170-
get: "/v2/{parent=projects/*}/exclusions"
171-
}
172-
additional_bindings {
173-
get: "/v2/{parent=organizations/*}/exclusions"
174-
}
175-
additional_bindings {
176-
get: "/v2/{parent=folders/*}/exclusions"
177-
}
178-
additional_bindings {
179-
get: "/v2/{parent=billingAccounts/*}/exclusions"
180-
}
140+
additional_bindings { get: "/v2/{parent=projects/*}/exclusions" }
141+
additional_bindings { get: "/v2/{parent=organizations/*}/exclusions" }
142+
additional_bindings { get: "/v2/{parent=folders/*}/exclusions" }
143+
additional_bindings { get: "/v2/{parent=billingAccounts/*}/exclusions" }
181144
};
182145
}
183146

184147
// Gets the description of an exclusion.
185148
rpc GetExclusion(GetExclusionRequest) returns (LogExclusion) {
186149
option (google.api.http) = {
187150
get: "/v2/{name=*/*/exclusions/*}"
188-
additional_bindings {
189-
get: "/v2/{name=projects/*/exclusions/*}"
190-
}
191-
additional_bindings {
192-
get: "/v2/{name=organizations/*/exclusions/*}"
193-
}
194-
additional_bindings {
195-
get: "/v2/{name=folders/*/exclusions/*}"
196-
}
197-
additional_bindings {
198-
get: "/v2/{name=billingAccounts/*/exclusions/*}"
199-
}
151+
additional_bindings { get: "/v2/{name=projects/*/exclusions/*}" }
152+
additional_bindings { get: "/v2/{name=organizations/*/exclusions/*}" }
153+
additional_bindings { get: "/v2/{name=folders/*/exclusions/*}" }
154+
additional_bindings { get: "/v2/{name=billingAccounts/*/exclusions/*}" }
200155
};
201156
}
202157

@@ -254,15 +209,9 @@ service ConfigServiceV2 {
254209
rpc DeleteExclusion(DeleteExclusionRequest) returns (google.protobuf.Empty) {
255210
option (google.api.http) = {
256211
delete: "/v2/{name=*/*/exclusions/*}"
257-
additional_bindings {
258-
delete: "/v2/{name=projects/*/exclusions/*}"
259-
}
260-
additional_bindings {
261-
delete: "/v2/{name=organizations/*/exclusions/*}"
262-
}
263-
additional_bindings {
264-
delete: "/v2/{name=folders/*/exclusions/*}"
265-
}
212+
additional_bindings { delete: "/v2/{name=projects/*/exclusions/*}" }
213+
additional_bindings { delete: "/v2/{name=organizations/*/exclusions/*}" }
214+
additional_bindings { delete: "/v2/{name=folders/*/exclusions/*}" }
266215
additional_bindings {
267216
delete: "/v2/{name=billingAccounts/*/exclusions/*}"
268217
}
@@ -431,7 +380,8 @@ message CreateSinkRequest {
431380
// If this field is set to true, or if the sink is owned by a non-project
432381
// resource such as an organization, then the value of `writer_identity` will
433382
// be a unique service account used only for exports from the new sink. For
434-
// more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink].
383+
// more information, see `writer_identity` in
384+
// [LogSink][google.logging.v2.LogSink].
435385
bool unique_writer_identity = 3;
436386
}
437387

@@ -611,8 +561,9 @@ message UpdateExclusionRequest {
611561

612562
// Required. A nonempty list of fields to change in the existing exclusion.
613563
// New values for the fields are taken from the corresponding fields in the
614-
// [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
615-
// `update_mask` are not changed and are ignored in the request.
564+
// [LogExclusion][google.logging.v2.LogExclusion] included in this request.
565+
// Fields not mentioned in `update_mask` are not changed and are ignored in
566+
// the request.
616567
//
617568
// For example, to change the filter and description of an exclusion,
618569
// specify an `update_mask` of `"filter,description"`.

google/cloud/logging_v2/proto/logging_metrics.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ option java_outer_classname = "LoggingMetricsProto";
3232
option java_package = "com.google.logging.v2";
3333
option php_namespace = "Google\\Cloud\\Logging\\V2";
3434

35-
3635
// Service for configuring logs-based metrics.
3736
service MetricsServiceV2 {
3837
// Lists logs-based metrics.

synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-01-30T13:24:12.640581Z",
2+
"updateTime": "2019-02-26T13:20:43.903128Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.7",
8-
"dockerImage": "googleapis/artman@sha256:d6c8ced606eb49973ca95d2af7c55a681acc042db0f87d135968349e7bf6dd80"
7+
"version": "0.16.14",
8+
"dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "f0195b40fd5f5f412e6819ac01df08cedb8e5fd7",
16-
"internalRef": "231440809"
15+
"sha": "29f098cb03a9983cc9cb15993de5da64419046f2",
16+
"internalRef": "235621085"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)