Skip to content

Commit e29d085

Browse files
authored
feat!: re-run the generator (googleapis#66)
Signed-off-by: Grant Timmerman <timmerman+devrel@google.com>
1 parent e914848 commit e29d085

File tree

109 files changed

+343
-150
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+343
-150
lines changed

src/main/java/com/google/events/cloud/audit/v1/Auth.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Google LLC
2+
* Copyright 2021 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/com/google/events/cloud/audit/v1/AuthenticationInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Google LLC
2+
* Copyright 2021 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/com/google/events/cloud/audit/v1/AuthenticationInfoThirdPartyPrincipal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Google LLC
2+
* Copyright 2021 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/com/google/events/cloud/audit/v1/AuthorizationInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Google LLC
2+
* Copyright 2021 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/com/google/events/cloud/audit/v1/Claims.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Google LLC
2+
* Copyright 2021 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/com/google/events/cloud/audit/v1/DestinationAttributes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Google LLC
2+
* Copyright 2021 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/com/google/events/cloud/audit/v1/Detail.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Google LLC
2+
* Copyright 2021 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/com/google/events/cloud/audit/v1/FirstPartyPrincipal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Google LLC
2+
* Copyright 2021 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Copyright 2021 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.events.cloud.audit.v1;
18+
19+
import java.io.IOException;
20+
21+
public enum InsertID {
22+
ALERT, CRITICAL, DEBUG, DEFAULT, EMERGENCY, ERROR, INFO, NOTICE, WARNING;
23+
24+
public String toValue() {
25+
switch (this) {
26+
case ALERT: return "ALERT";
27+
case CRITICAL: return "CRITICAL";
28+
case DEBUG: return "DEBUG";
29+
case DEFAULT: return "DEFAULT";
30+
case EMERGENCY: return "EMERGENCY";
31+
case ERROR: return "ERROR";
32+
case INFO: return "INFO";
33+
case NOTICE: return "NOTICE";
34+
case WARNING: return "WARNING";
35+
}
36+
return null;
37+
}
38+
39+
public static InsertID forValue(String value) throws IOException {
40+
if (value.equals("ALERT")) return ALERT;
41+
if (value.equals("CRITICAL")) return CRITICAL;
42+
if (value.equals("DEBUG")) return DEBUG;
43+
if (value.equals("DEFAULT")) return DEFAULT;
44+
if (value.equals("EMERGENCY")) return EMERGENCY;
45+
if (value.equals("ERROR")) return ERROR;
46+
if (value.equals("INFO")) return INFO;
47+
if (value.equals("NOTICE")) return NOTICE;
48+
if (value.equals("WARNING")) return WARNING;
49+
throw new IOException("Cannot deserialize InsertID");
50+
}
51+
}

src/main/java/com/google/events/cloud/audit/v1/LogEntryData.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Google LLC
2+
* Copyright 2021 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -55,13 +55,15 @@ public class LogEntryData {
5555
public void setLogName(String value) { this.logName = value; }
5656

5757
/**
58-
* Information about an operation associated with the log entry, if applicable.
58+
* Information about an operation associated with the log entry, if
59+
* applicable.
5960
*/
6061
public Operation getOperation() { return operation; }
6162
public void setOperation(Operation value) { this.operation = value; }
6263

6364
/**
64-
* The log entry payload, which is always an AuditLog for Cloud Audit Log events.
65+
* The log entry payload, which is always an AuditLog for Cloud Audit Log
66+
* events.
6567
*/
6668
public ProtoPayload getProtoPayload() { return protoPayload; }
6769
public void setProtoPayload(ProtoPayload value) { this.protoPayload = value; }

0 commit comments

Comments
 (0)