From e29d085f460e8d5196ad4a036f4fe94d6fa1b2d0 Mon Sep 17 00:00:00 2001 From: Grant Timmerman <744973+grant@users.noreply.github.com> Date: Wed, 10 Mar 2021 12:20:28 -0600 Subject: [PATCH] feat!: re-run the generator (#66) Signed-off-by: Grant Timmerman --- .../google/events/cloud/audit/v1/Auth.java | 2 +- .../cloud/audit/v1/AuthenticationInfo.java | 2 +- ...AuthenticationInfoThirdPartyPrincipal.java | 2 +- .../cloud/audit/v1/AuthorizationInfo.java | 2 +- .../google/events/cloud/audit/v1/Claims.java | 2 +- .../cloud/audit/v1/DestinationAttributes.java | 2 +- .../google/events/cloud/audit/v1/Detail.java | 2 +- .../cloud/audit/v1/FirstPartyPrincipal.java | 2 +- .../events/cloud/audit/v1/InsertID.java | 51 +++++++++++++++++++ .../events/cloud/audit/v1/LogEntryData.java | 8 +-- .../events/cloud/audit/v1/Metadata.java | 2 +- .../events/cloud/audit/v1/Operation.java | 5 +- .../events/cloud/audit/v1/ProtoPayload.java | 5 +- .../google/events/cloud/audit/v1/Request.java | 2 +- .../cloud/audit/v1/RequestAttributes.java | 2 +- .../cloud/audit/v1/RequestMetadata.java | 2 +- .../events/cloud/audit/v1/Resource.java | 2 +- .../cloud/audit/v1/ResourceAttributes.java | 2 +- .../cloud/audit/v1/ResourceLocation.java | 2 +- .../cloud/audit/v1/ResourceOriginalState.java | 2 +- .../events/cloud/audit/v1/Response.java | 2 +- .../v1/ServiceAccountDelegationInfo.java | 2 +- ...ountDelegationInfoThirdPartyPrincipal.java | 2 +- .../events/cloud/audit/v1/ServiceData.java | 2 +- .../cloud/audit/v1/ServiceMetadata.java | 2 +- .../events/cloud/audit/v1/Severity.java | 4 +- .../google/events/cloud/audit/v1/Status.java | 2 +- .../cloud/audit/v1/ThirdPartyClaims.java | 2 +- .../cloud/cloudbuild/v1/ArtifactTiming.java | 2 +- .../events/cloud/cloudbuild/v1/Artifacts.java | 2 +- .../cloud/cloudbuild/v1/BuildEventData.java | 8 +-- .../cloudbuild/v1/BuildEventDataTimeout.java | 2 +- .../cloud/cloudbuild/v1/FileHashElement.java | 2 +- .../cloud/cloudbuild/v1/FileHashValue.java | 2 +- .../events/cloud/cloudbuild/v1/Image.java | 2 +- .../cloudbuild/v1/LogStreamingOption.java | 2 +- .../cloudbuild/v1/LogStreamingOptionEnum.java | 2 +- .../events/cloud/cloudbuild/v1/Logging.java | 2 +- .../cloud/cloudbuild/v1/LoggingEnum.java | 2 +- .../cloud/cloudbuild/v1/MachineType.java | 2 +- .../cloud/cloudbuild/v1/MachineTypeEnum.java | 2 +- .../events/cloud/cloudbuild/v1/Objects.java | 2 +- .../cloud/cloudbuild/v1/ObjectsTiming.java | 2 +- .../events/cloud/cloudbuild/v1/Options.java | 8 +-- .../cloud/cloudbuild/v1/PullTiming.java | 2 +- .../cloud/cloudbuild/v1/PushTiming.java | 2 +- .../events/cloud/cloudbuild/v1/QueueTTL.java | 2 +- .../cloud/cloudbuild/v1/RepoSourceClass.java | 2 +- .../cloudbuild/v1/RequestedVerifyOption.java | 2 +- .../v1/RequestedVerifyOptionEnum.java | 2 +- .../v1/ResolvedRepoSourceClass.java | 2 +- .../v1/ResolvedStorageSourceClass.java | 2 +- .../events/cloud/cloudbuild/v1/Results.java | 2 +- .../events/cloud/cloudbuild/v1/Secret.java | 2 +- .../events/cloud/cloudbuild/v1/Source.java | 2 +- .../cloud/cloudbuild/v1/SourceProvenance.java | 2 +- ...aStatus.java => SourceProvenanceHash.java} | 10 ++-- ...num.java => SourceProvenanceHashEnum.java} | 8 +-- .../v1/{StepStatus.java => Status.java} | 6 +-- .../cloud/cloudbuild/v1/StatusEnum.java | 2 +- .../events/cloud/cloudbuild/v1/Step.java | 8 +-- .../cloud/cloudbuild/v1/StepTimeout.java | 2 +- .../cloud/cloudbuild/v1/StepTiming.java | 2 +- .../cloudbuild/v1/StorageSourceClass.java | 2 +- .../cloudbuild/v1/SubstitutionOption.java | 2 +- .../cloudbuild/v1/SubstitutionOptionEnum.java | 2 +- .../events/cloud/cloudbuild/v1/TimeSpan.java | 2 +- .../events/cloud/cloudbuild/v1/Type.java | 4 +- .../events/cloud/cloudbuild/v1/Volume.java | 2 +- .../events/cloud/firestore/v1/ArrayValue.java | 2 +- .../events/cloud/firestore/v1/BytesValue.java | 35 +++++++++++++ .../cloud/firestore/v1/DocumentEventData.java | 2 +- .../cloud/firestore/v1/GeoPointValue.java | 2 +- .../events/cloud/firestore/v1/MapValue.java | 2 +- .../cloud/firestore/v1/MapValueField.java | 2 +- .../events/cloud/firestore/v1/NullValue.java | 4 +- .../events/cloud/firestore/v1/OldValue.java | 2 +- .../cloud/firestore/v1/OldValueField.java | 2 +- .../events/cloud/firestore/v1/UpdateMask.java | 2 +- .../events/cloud/firestore/v1/Value.java | 2 +- .../cloud/firestore/v1/ValueElement.java | 2 +- .../events/cloud/pubsub/v1/Message.java | 11 +++- .../cloud/pubsub/v1/MessagePublishedData.java | 2 +- .../cloud/scheduler/v1/SchedulerJobData.java | 2 +- .../cloud/storage/v1/CustomerEncryption.java | 2 +- .../cloud/storage/v1/StorageObjectData.java | 2 +- .../analytics/v1/AnalyticsLogData.java | 2 +- .../firebase/analytics/v1/AnalyticsValue.java | 2 +- .../events/firebase/analytics/v1/AppInfo.java | 2 +- .../firebase/analytics/v1/BundleInfo.java | 2 +- .../firebase/analytics/v1/DeviceInfo.java | 2 +- .../firebase/analytics/v1/EventDim.java | 2 +- .../events/firebase/analytics/v1/GeoInfo.java | 2 +- .../events/firebase/analytics/v1/LtvInfo.java | 2 +- .../firebase/analytics/v1/TrafficSource.java | 2 +- .../events/firebase/analytics/v1/UserDim.java | 2 +- .../firebase/analytics/v1/UserProperty.java | 2 +- .../events/firebase/analytics/v1/Value.java | 2 +- .../firebase/auth/v1/AuthEventData.java | 2 +- .../events/firebase/auth/v1/CustomClaims.java | 2 +- .../events/firebase/auth/v1/Metadata.java | 14 ++--- .../firebase/auth/v1/ProviderDatum.java | 2 +- .../database/v1/ReferenceEventData.java | 8 ++- .../v1/RemoteConfigEventData.java | 17 ++++--- .../remoteconfig/v1/UpdateOrigin.java} | 11 ++-- .../remoteconfig/v1/UpdateOriginEnum.java | 41 +++++++++++++++ .../v1/{Update.java => UpdateType.java} | 9 ++-- .../remoteconfig/v1/UpdateTypeEnum.java | 41 +++++++++++++++ .../firebase/remoteconfig/v1/UpdateUser.java | 5 +- 109 files changed, 343 insertions(+), 150 deletions(-) create mode 100644 src/main/java/com/google/events/cloud/audit/v1/InsertID.java rename src/main/java/com/google/events/cloud/cloudbuild/v1/{BuildEventDataStatus.java => SourceProvenanceHash.java} (82%) rename src/main/java/com/google/events/cloud/cloudbuild/v1/{TypeEnum.java => SourceProvenanceHashEnum.java} (81%) rename src/main/java/com/google/events/cloud/cloudbuild/v1/{StepStatus.java => Status.java} (88%) create mode 100644 src/main/java/com/google/events/cloud/firestore/v1/BytesValue.java rename src/main/java/com/google/events/{cloud/cloudbuild/v1/SourceProvenanceHashElement.java => firebase/remoteconfig/v1/UpdateOrigin.java} (76%) create mode 100644 src/main/java/com/google/events/firebase/remoteconfig/v1/UpdateOriginEnum.java rename src/main/java/com/google/events/firebase/remoteconfig/v1/{Update.java => UpdateType.java} (83%) create mode 100644 src/main/java/com/google/events/firebase/remoteconfig/v1/UpdateTypeEnum.java diff --git a/src/main/java/com/google/events/cloud/audit/v1/Auth.java b/src/main/java/com/google/events/cloud/audit/v1/Auth.java index 91bc97b5..6a9fa33d 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/Auth.java +++ b/src/main/java/com/google/events/cloud/audit/v1/Auth.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/AuthenticationInfo.java b/src/main/java/com/google/events/cloud/audit/v1/AuthenticationInfo.java index ab276041..74131ebd 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/AuthenticationInfo.java +++ b/src/main/java/com/google/events/cloud/audit/v1/AuthenticationInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/AuthenticationInfoThirdPartyPrincipal.java b/src/main/java/com/google/events/cloud/audit/v1/AuthenticationInfoThirdPartyPrincipal.java index f76ca94e..e357e41f 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/AuthenticationInfoThirdPartyPrincipal.java +++ b/src/main/java/com/google/events/cloud/audit/v1/AuthenticationInfoThirdPartyPrincipal.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/AuthorizationInfo.java b/src/main/java/com/google/events/cloud/audit/v1/AuthorizationInfo.java index d0a067a7..e60539b2 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/AuthorizationInfo.java +++ b/src/main/java/com/google/events/cloud/audit/v1/AuthorizationInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/Claims.java b/src/main/java/com/google/events/cloud/audit/v1/Claims.java index 9665e8b6..6cbdc8da 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/Claims.java +++ b/src/main/java/com/google/events/cloud/audit/v1/Claims.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/DestinationAttributes.java b/src/main/java/com/google/events/cloud/audit/v1/DestinationAttributes.java index 797ec8ef..532dc8ba 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/DestinationAttributes.java +++ b/src/main/java/com/google/events/cloud/audit/v1/DestinationAttributes.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/Detail.java b/src/main/java/com/google/events/cloud/audit/v1/Detail.java index df524f98..189fb1f1 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/Detail.java +++ b/src/main/java/com/google/events/cloud/audit/v1/Detail.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/FirstPartyPrincipal.java b/src/main/java/com/google/events/cloud/audit/v1/FirstPartyPrincipal.java index 9ef2a40a..ad24ddaf 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/FirstPartyPrincipal.java +++ b/src/main/java/com/google/events/cloud/audit/v1/FirstPartyPrincipal.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/InsertID.java b/src/main/java/com/google/events/cloud/audit/v1/InsertID.java new file mode 100644 index 00000000..bfea4df7 --- /dev/null +++ b/src/main/java/com/google/events/cloud/audit/v1/InsertID.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 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. + */ + +package com.google.events.cloud.audit.v1; + +import java.io.IOException; + +public enum InsertID { + ALERT, CRITICAL, DEBUG, DEFAULT, EMERGENCY, ERROR, INFO, NOTICE, WARNING; + + public String toValue() { + switch (this) { + case ALERT: return "ALERT"; + case CRITICAL: return "CRITICAL"; + case DEBUG: return "DEBUG"; + case DEFAULT: return "DEFAULT"; + case EMERGENCY: return "EMERGENCY"; + case ERROR: return "ERROR"; + case INFO: return "INFO"; + case NOTICE: return "NOTICE"; + case WARNING: return "WARNING"; + } + return null; + } + + public static InsertID forValue(String value) throws IOException { + if (value.equals("ALERT")) return ALERT; + if (value.equals("CRITICAL")) return CRITICAL; + if (value.equals("DEBUG")) return DEBUG; + if (value.equals("DEFAULT")) return DEFAULT; + if (value.equals("EMERGENCY")) return EMERGENCY; + if (value.equals("ERROR")) return ERROR; + if (value.equals("INFO")) return INFO; + if (value.equals("NOTICE")) return NOTICE; + if (value.equals("WARNING")) return WARNING; + throw new IOException("Cannot deserialize InsertID"); + } +} diff --git a/src/main/java/com/google/events/cloud/audit/v1/LogEntryData.java b/src/main/java/com/google/events/cloud/audit/v1/LogEntryData.java index c40356b9..98400d8e 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/LogEntryData.java +++ b/src/main/java/com/google/events/cloud/audit/v1/LogEntryData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -55,13 +55,15 @@ public class LogEntryData { public void setLogName(String value) { this.logName = value; } /** - * Information about an operation associated with the log entry, if applicable. + * Information about an operation associated with the log entry, if + * applicable. */ public Operation getOperation() { return operation; } public void setOperation(Operation value) { this.operation = value; } /** - * The log entry payload, which is always an AuditLog for Cloud Audit Log events. + * The log entry payload, which is always an AuditLog for Cloud Audit Log + * events. */ public ProtoPayload getProtoPayload() { return protoPayload; } public void setProtoPayload(ProtoPayload value) { this.protoPayload = value; } diff --git a/src/main/java/com/google/events/cloud/audit/v1/Metadata.java b/src/main/java/com/google/events/cloud/audit/v1/Metadata.java index 6ad586a4..1e621588 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/Metadata.java +++ b/src/main/java/com/google/events/cloud/audit/v1/Metadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/Operation.java b/src/main/java/com/google/events/cloud/audit/v1/Operation.java index 6f97f23d..158944ac 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/Operation.java +++ b/src/main/java/com/google/events/cloud/audit/v1/Operation.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,8 @@ package com.google.events.cloud.audit.v1; /** - * Information about an operation associated with the log entry, if applicable. + * Information about an operation associated with the log entry, if + * applicable. */ public class Operation { private Boolean first; diff --git a/src/main/java/com/google/events/cloud/audit/v1/ProtoPayload.java b/src/main/java/com/google/events/cloud/audit/v1/ProtoPayload.java index 8e223e3c..d0b03996 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/ProtoPayload.java +++ b/src/main/java/com/google/events/cloud/audit/v1/ProtoPayload.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,8 @@ package com.google.events.cloud.audit.v1; /** - * The log entry payload, which is always an AuditLog for Cloud Audit Log events. + * The log entry payload, which is always an AuditLog for Cloud Audit Log + * events. */ public class ProtoPayload { private AuthenticationInfo authenticationInfo; diff --git a/src/main/java/com/google/events/cloud/audit/v1/Request.java b/src/main/java/com/google/events/cloud/audit/v1/Request.java index 4c425bb9..6e3a270f 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/Request.java +++ b/src/main/java/com/google/events/cloud/audit/v1/Request.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/RequestAttributes.java b/src/main/java/com/google/events/cloud/audit/v1/RequestAttributes.java index adafbbaf..ca9b9355 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/RequestAttributes.java +++ b/src/main/java/com/google/events/cloud/audit/v1/RequestAttributes.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/RequestMetadata.java b/src/main/java/com/google/events/cloud/audit/v1/RequestMetadata.java index fa1524f8..8f049a09 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/RequestMetadata.java +++ b/src/main/java/com/google/events/cloud/audit/v1/RequestMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/Resource.java b/src/main/java/com/google/events/cloud/audit/v1/Resource.java index f64a029b..3d112d8b 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/Resource.java +++ b/src/main/java/com/google/events/cloud/audit/v1/Resource.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/ResourceAttributes.java b/src/main/java/com/google/events/cloud/audit/v1/ResourceAttributes.java index 98c3411c..449b5451 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/ResourceAttributes.java +++ b/src/main/java/com/google/events/cloud/audit/v1/ResourceAttributes.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/ResourceLocation.java b/src/main/java/com/google/events/cloud/audit/v1/ResourceLocation.java index 55167a53..678c84f0 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/ResourceLocation.java +++ b/src/main/java/com/google/events/cloud/audit/v1/ResourceLocation.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/ResourceOriginalState.java b/src/main/java/com/google/events/cloud/audit/v1/ResourceOriginalState.java index 1ad3434b..13c1e8be 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/ResourceOriginalState.java +++ b/src/main/java/com/google/events/cloud/audit/v1/ResourceOriginalState.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/Response.java b/src/main/java/com/google/events/cloud/audit/v1/Response.java index 32dd5b7f..61ff32ef 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/Response.java +++ b/src/main/java/com/google/events/cloud/audit/v1/Response.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/ServiceAccountDelegationInfo.java b/src/main/java/com/google/events/cloud/audit/v1/ServiceAccountDelegationInfo.java index 896429df..da404666 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/ServiceAccountDelegationInfo.java +++ b/src/main/java/com/google/events/cloud/audit/v1/ServiceAccountDelegationInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/ServiceAccountDelegationInfoThirdPartyPrincipal.java b/src/main/java/com/google/events/cloud/audit/v1/ServiceAccountDelegationInfoThirdPartyPrincipal.java index 03a130ac..1496a276 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/ServiceAccountDelegationInfoThirdPartyPrincipal.java +++ b/src/main/java/com/google/events/cloud/audit/v1/ServiceAccountDelegationInfoThirdPartyPrincipal.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/ServiceData.java b/src/main/java/com/google/events/cloud/audit/v1/ServiceData.java index 66aedad6..eb4f9c20 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/ServiceData.java +++ b/src/main/java/com/google/events/cloud/audit/v1/ServiceData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/ServiceMetadata.java b/src/main/java/com/google/events/cloud/audit/v1/ServiceMetadata.java index 0eea2b13..c31dc5b6 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/ServiceMetadata.java +++ b/src/main/java/com/google/events/cloud/audit/v1/ServiceMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/Severity.java b/src/main/java/com/google/events/cloud/audit/v1/Severity.java index 4f93a4b1..bf5f765e 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/Severity.java +++ b/src/main/java/com/google/events/cloud/audit/v1/Severity.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,5 +23,5 @@ */ public class Severity { public Long integerValue; - public String stringValue; + public InsertID enumValue; } diff --git a/src/main/java/com/google/events/cloud/audit/v1/Status.java b/src/main/java/com/google/events/cloud/audit/v1/Status.java index 81ab4a0e..70b2e94f 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/Status.java +++ b/src/main/java/com/google/events/cloud/audit/v1/Status.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/audit/v1/ThirdPartyClaims.java b/src/main/java/com/google/events/cloud/audit/v1/ThirdPartyClaims.java index 18733a16..829a683f 100644 --- a/src/main/java/com/google/events/cloud/audit/v1/ThirdPartyClaims.java +++ b/src/main/java/com/google/events/cloud/audit/v1/ThirdPartyClaims.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/ArtifactTiming.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/ArtifactTiming.java index 6c422cbb..80d68a6e 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/ArtifactTiming.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/ArtifactTiming.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/Artifacts.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/Artifacts.java index 8dc130ed..35a8e0f8 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/Artifacts.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/Artifacts.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/BuildEventData.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/BuildEventData.java index cde79ba9..df6b0934 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/BuildEventData.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/BuildEventData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -39,7 +39,7 @@ public class BuildEventData { private Source source; private SourceProvenance sourceProvenance; private OffsetDateTime startTime; - private BuildEventDataStatus status; + private Status status; private String statusDetail; private Step[] steps; private Map substitutions; @@ -167,8 +167,8 @@ public class BuildEventData { /** * Status of the build. */ - public BuildEventDataStatus getStatus() { return status; } - public void setStatus(BuildEventDataStatus value) { this.status = value; } + public Status getStatus() { return status; } + public void setStatus(Status value) { this.status = value; } /** * Customer-readable message about the current status. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/BuildEventDataTimeout.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/BuildEventDataTimeout.java index 020a30aa..9a38f9c8 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/BuildEventDataTimeout.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/BuildEventDataTimeout.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/FileHashElement.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/FileHashElement.java index f7d797c5..c62e4b5d 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/FileHashElement.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/FileHashElement.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/FileHashValue.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/FileHashValue.java index a52e2c4b..a619e541 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/FileHashValue.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/FileHashValue.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/Image.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/Image.java index a704f963..fb6e240e 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/Image.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/Image.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/LogStreamingOption.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/LogStreamingOption.java index 4f233f13..ce7839e5 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/LogStreamingOption.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/LogStreamingOption.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/LogStreamingOptionEnum.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/LogStreamingOptionEnum.java index d3ee4566..4a5d3881 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/LogStreamingOptionEnum.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/LogStreamingOptionEnum.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/Logging.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/Logging.java index e9ba7e6b..cb288b02 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/Logging.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/Logging.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/LoggingEnum.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/LoggingEnum.java index a4d07733..0a8fc5e6 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/LoggingEnum.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/LoggingEnum.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/MachineType.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/MachineType.java index e6c4f891..921e8a0f 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/MachineType.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/MachineType.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/MachineTypeEnum.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/MachineTypeEnum.java index 97151df8..49c0e4d5 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/MachineTypeEnum.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/MachineTypeEnum.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/Objects.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/Objects.java index 1524ef3a..e2b52b21 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/Objects.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/Objects.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/ObjectsTiming.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/ObjectsTiming.java index 49491448..134798ed 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/ObjectsTiming.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/ObjectsTiming.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/Options.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/Options.java index 16e652ca..0810d02b 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/Options.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/Options.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ public class Options { private MachineType machineType; private RequestedVerifyOption requestedVerifyOption; private String[] secretEnv; - private SourceProvenanceHashElement[] sourceProvenanceHash; + private SourceProvenanceHash[] sourceProvenanceHash; private SubstitutionOption substitutionOption; private Volume[] volumes; private String workerPool; @@ -92,8 +92,8 @@ public class Options { /** * Requested hash for SourceProvenance. */ - public SourceProvenanceHashElement[] getSourceProvenanceHash() { return sourceProvenanceHash; } - public void setSourceProvenanceHash(SourceProvenanceHashElement[] value) { this.sourceProvenanceHash = value; } + public SourceProvenanceHash[] getSourceProvenanceHash() { return sourceProvenanceHash; } + public void setSourceProvenanceHash(SourceProvenanceHash[] value) { this.sourceProvenanceHash = value; } /** * Option to specify behavior when there is an error in the substitution diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/PullTiming.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/PullTiming.java index b655c6a0..280fb1ea 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/PullTiming.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/PullTiming.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/PushTiming.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/PushTiming.java index 9f786678..1daf10d6 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/PushTiming.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/PushTiming.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/QueueTTL.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/QueueTTL.java index d25f4de4..2f0cc787 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/QueueTTL.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/QueueTTL.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/RepoSourceClass.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/RepoSourceClass.java index dcb98a10..0d3e63ad 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/RepoSourceClass.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/RepoSourceClass.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/RequestedVerifyOption.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/RequestedVerifyOption.java index c0f82f95..87f9d00d 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/RequestedVerifyOption.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/RequestedVerifyOption.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/RequestedVerifyOptionEnum.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/RequestedVerifyOptionEnum.java index ba66d778..777ff414 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/RequestedVerifyOptionEnum.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/RequestedVerifyOptionEnum.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/ResolvedRepoSourceClass.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/ResolvedRepoSourceClass.java index 5a12a519..92ca6536 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/ResolvedRepoSourceClass.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/ResolvedRepoSourceClass.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/ResolvedStorageSourceClass.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/ResolvedStorageSourceClass.java index a2d1ac15..cc87d927 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/ResolvedStorageSourceClass.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/ResolvedStorageSourceClass.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/Results.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/Results.java index ff302f04..8261bf66 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/Results.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/Results.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/Secret.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/Secret.java index 2f368f89..6e43e21e 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/Secret.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/Secret.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/Source.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/Source.java index aee19c08..92cbcfa9 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/Source.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/Source.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/SourceProvenance.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/SourceProvenance.java index 5dd0cf84..29a70941 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/SourceProvenance.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/SourceProvenance.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/BuildEventDataStatus.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/SourceProvenanceHash.java similarity index 82% rename from src/main/java/com/google/events/cloud/cloudbuild/v1/BuildEventDataStatus.java rename to src/main/java/com/google/events/cloud/cloudbuild/v1/SourceProvenanceHash.java index 38a6547c..8a4ae73e 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/BuildEventDataStatus.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/SourceProvenanceHash.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,10 +18,8 @@ import java.io.IOException; -/** - * Status of the build. - */ -public class BuildEventDataStatus { +public class SourceProvenanceHash { + public Double doubleValue; public Long integerValue; - public StatusEnum enumValue; + public SourceProvenanceHashEnum enumValue; } diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/TypeEnum.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/SourceProvenanceHashEnum.java similarity index 81% rename from src/main/java/com/google/events/cloud/cloudbuild/v1/TypeEnum.java rename to src/main/java/com/google/events/cloud/cloudbuild/v1/SourceProvenanceHashEnum.java index be397e2b..bfcffe5b 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/TypeEnum.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/SourceProvenanceHashEnum.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,7 @@ import java.io.IOException; -public enum TypeEnum { +public enum SourceProvenanceHashEnum { MD5, NONE, SHA256; public String toValue() { @@ -30,10 +30,10 @@ public String toValue() { return null; } - public static TypeEnum forValue(String value) throws IOException { + public static SourceProvenanceHashEnum forValue(String value) throws IOException { if (value.equals("MD5")) return MD5; if (value.equals("NONE")) return NONE; if (value.equals("SHA256")) return SHA256; - throw new IOException("Cannot deserialize TypeEnum"); + throw new IOException("Cannot deserialize SourceProvenanceHashEnum"); } } diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/StepStatus.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/Status.java similarity index 88% rename from src/main/java/com/google/events/cloud/cloudbuild/v1/StepStatus.java rename to src/main/java/com/google/events/cloud/cloudbuild/v1/Status.java index 6dc1f1d1..7caeb629 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/StepStatus.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/Status.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,7 @@ import java.io.IOException; -public class StepStatus { +public class Status { public Long integerValue; - public String stringValue; + public StatusEnum enumValue; } diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/StatusEnum.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/StatusEnum.java index 22f2f157..9ef11f08 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/StatusEnum.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/StatusEnum.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/Step.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/Step.java index bbc57b5e..3cd975cb 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/Step.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/Step.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ public class Step { private String name; private PullTiming pullTiming; private String[] secretEnv; - private StepStatus status; + private Status status; private StepTimeout timeout; private StepTiming timing; private Volume[] volumes; @@ -126,8 +126,8 @@ public class Step { * only updated on build completion; step status is not updated in real-time * as the build progresses. */ - public StepStatus getStatus() { return status; } - public void setStatus(StepStatus value) { this.status = value; } + public Status getStatus() { return status; } + public void setStatus(Status value) { this.status = value; } /** * Time limit for executing this build step. If not defined, the step has no diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/StepTimeout.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/StepTimeout.java index 66a4f844..20fffb95 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/StepTimeout.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/StepTimeout.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/StepTiming.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/StepTiming.java index 8e5d0af2..5c5b57ae 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/StepTiming.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/StepTiming.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/StorageSourceClass.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/StorageSourceClass.java index 7a94997f..6a620fa7 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/StorageSourceClass.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/StorageSourceClass.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/SubstitutionOption.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/SubstitutionOption.java index 197dbfd3..dd246586 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/SubstitutionOption.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/SubstitutionOption.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/SubstitutionOptionEnum.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/SubstitutionOptionEnum.java index 6b667409..8f2bfb96 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/SubstitutionOptionEnum.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/SubstitutionOptionEnum.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/TimeSpan.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/TimeSpan.java index 176373a6..9f755d4f 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/TimeSpan.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/TimeSpan.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/Type.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/Type.java index 178eec10..9222a3ec 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/Type.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/Type.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,5 +23,5 @@ */ public class Type { public Long integerValue; - public TypeEnum enumValue; + public SourceProvenanceHashEnum enumValue; } diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/Volume.java b/src/main/java/com/google/events/cloud/cloudbuild/v1/Volume.java index 855538ec..517e7f0a 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/Volume.java +++ b/src/main/java/com/google/events/cloud/cloudbuild/v1/Volume.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/firestore/v1/ArrayValue.java b/src/main/java/com/google/events/cloud/firestore/v1/ArrayValue.java index 33ec44bb..53223174 100644 --- a/src/main/java/com/google/events/cloud/firestore/v1/ArrayValue.java +++ b/src/main/java/com/google/events/cloud/firestore/v1/ArrayValue.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/firestore/v1/BytesValue.java b/src/main/java/com/google/events/cloud/firestore/v1/BytesValue.java new file mode 100644 index 00000000..512745de --- /dev/null +++ b/src/main/java/com/google/events/cloud/firestore/v1/BytesValue.java @@ -0,0 +1,35 @@ +/* + * Copyright 2021 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. + */ + +package com.google.events.cloud.firestore.v1; + +import java.io.IOException; + +public enum BytesValue { + NULL_VALUE; + + public String toValue() { + switch (this) { + case NULL_VALUE: return "NULL_VALUE"; + } + return null; + } + + public static BytesValue forValue(String value) throws IOException { + if (value.equals("NULL_VALUE")) return NULL_VALUE; + throw new IOException("Cannot deserialize BytesValue"); + } +} diff --git a/src/main/java/com/google/events/cloud/firestore/v1/DocumentEventData.java b/src/main/java/com/google/events/cloud/firestore/v1/DocumentEventData.java index f407cc7e..892047f0 100644 --- a/src/main/java/com/google/events/cloud/firestore/v1/DocumentEventData.java +++ b/src/main/java/com/google/events/cloud/firestore/v1/DocumentEventData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/firestore/v1/GeoPointValue.java b/src/main/java/com/google/events/cloud/firestore/v1/GeoPointValue.java index 110ed6ac..9c7e287e 100644 --- a/src/main/java/com/google/events/cloud/firestore/v1/GeoPointValue.java +++ b/src/main/java/com/google/events/cloud/firestore/v1/GeoPointValue.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/firestore/v1/MapValue.java b/src/main/java/com/google/events/cloud/firestore/v1/MapValue.java index a4fdc785..c4d0467b 100644 --- a/src/main/java/com/google/events/cloud/firestore/v1/MapValue.java +++ b/src/main/java/com/google/events/cloud/firestore/v1/MapValue.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/firestore/v1/MapValueField.java b/src/main/java/com/google/events/cloud/firestore/v1/MapValueField.java index 6475673b..0abd3d2b 100644 --- a/src/main/java/com/google/events/cloud/firestore/v1/MapValueField.java +++ b/src/main/java/com/google/events/cloud/firestore/v1/MapValueField.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/firestore/v1/NullValue.java b/src/main/java/com/google/events/cloud/firestore/v1/NullValue.java index 20799a11..d0d14034 100644 --- a/src/main/java/com/google/events/cloud/firestore/v1/NullValue.java +++ b/src/main/java/com/google/events/cloud/firestore/v1/NullValue.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,5 +23,5 @@ */ public class NullValue { public Long integerValue; - public String stringValue; + public BytesValue enumValue; } diff --git a/src/main/java/com/google/events/cloud/firestore/v1/OldValue.java b/src/main/java/com/google/events/cloud/firestore/v1/OldValue.java index 9e313d35..d4980530 100644 --- a/src/main/java/com/google/events/cloud/firestore/v1/OldValue.java +++ b/src/main/java/com/google/events/cloud/firestore/v1/OldValue.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/firestore/v1/OldValueField.java b/src/main/java/com/google/events/cloud/firestore/v1/OldValueField.java index 947f1b62..02f76968 100644 --- a/src/main/java/com/google/events/cloud/firestore/v1/OldValueField.java +++ b/src/main/java/com/google/events/cloud/firestore/v1/OldValueField.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/firestore/v1/UpdateMask.java b/src/main/java/com/google/events/cloud/firestore/v1/UpdateMask.java index 34ba067b..c16c72df 100644 --- a/src/main/java/com/google/events/cloud/firestore/v1/UpdateMask.java +++ b/src/main/java/com/google/events/cloud/firestore/v1/UpdateMask.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/firestore/v1/Value.java b/src/main/java/com/google/events/cloud/firestore/v1/Value.java index 27e3bfbd..dd5507a5 100644 --- a/src/main/java/com/google/events/cloud/firestore/v1/Value.java +++ b/src/main/java/com/google/events/cloud/firestore/v1/Value.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/firestore/v1/ValueElement.java b/src/main/java/com/google/events/cloud/firestore/v1/ValueElement.java index 92887728..ed888eb1 100644 --- a/src/main/java/com/google/events/cloud/firestore/v1/ValueElement.java +++ b/src/main/java/com/google/events/cloud/firestore/v1/ValueElement.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/pubsub/v1/Message.java b/src/main/java/com/google/events/cloud/pubsub/v1/Message.java index 17223ce0..d5da75f9 100644 --- a/src/main/java/com/google/events/cloud/pubsub/v1/Message.java +++ b/src/main/java/com/google/events/cloud/pubsub/v1/Message.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ package com.google.events.cloud.pubsub.v1; +import java.time.OffsetDateTime; import java.util.Map; /** @@ -25,6 +26,7 @@ public class Message { private Map attributes; private String data; private String messageID; + private OffsetDateTime publishTime; /** * Attributes for this message. @@ -44,4 +46,11 @@ public class Message { */ public String getMessageID() { return messageID; } public void setMessageID(String value) { this.messageID = value; } + + /** + * The time at which the message was published, populated by the server when + * it receives the `Publish` call. + */ + public OffsetDateTime getPublishTime() { return publishTime; } + public void setPublishTime(OffsetDateTime value) { this.publishTime = value; } } diff --git a/src/main/java/com/google/events/cloud/pubsub/v1/MessagePublishedData.java b/src/main/java/com/google/events/cloud/pubsub/v1/MessagePublishedData.java index 218546b9..28e6e3cc 100644 --- a/src/main/java/com/google/events/cloud/pubsub/v1/MessagePublishedData.java +++ b/src/main/java/com/google/events/cloud/pubsub/v1/MessagePublishedData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/scheduler/v1/SchedulerJobData.java b/src/main/java/com/google/events/cloud/scheduler/v1/SchedulerJobData.java index 2095cc0f..29455b90 100644 --- a/src/main/java/com/google/events/cloud/scheduler/v1/SchedulerJobData.java +++ b/src/main/java/com/google/events/cloud/scheduler/v1/SchedulerJobData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/storage/v1/CustomerEncryption.java b/src/main/java/com/google/events/cloud/storage/v1/CustomerEncryption.java index 1a55c933..2d678d6f 100644 --- a/src/main/java/com/google/events/cloud/storage/v1/CustomerEncryption.java +++ b/src/main/java/com/google/events/cloud/storage/v1/CustomerEncryption.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/cloud/storage/v1/StorageObjectData.java b/src/main/java/com/google/events/cloud/storage/v1/StorageObjectData.java index caacf9b4..5fc40132 100644 --- a/src/main/java/com/google/events/cloud/storage/v1/StorageObjectData.java +++ b/src/main/java/com/google/events/cloud/storage/v1/StorageObjectData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/firebase/analytics/v1/AnalyticsLogData.java b/src/main/java/com/google/events/firebase/analytics/v1/AnalyticsLogData.java index 0863258f..5e4151a1 100644 --- a/src/main/java/com/google/events/firebase/analytics/v1/AnalyticsLogData.java +++ b/src/main/java/com/google/events/firebase/analytics/v1/AnalyticsLogData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/firebase/analytics/v1/AnalyticsValue.java b/src/main/java/com/google/events/firebase/analytics/v1/AnalyticsValue.java index bfad9b8a..6b57e250 100644 --- a/src/main/java/com/google/events/firebase/analytics/v1/AnalyticsValue.java +++ b/src/main/java/com/google/events/firebase/analytics/v1/AnalyticsValue.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/firebase/analytics/v1/AppInfo.java b/src/main/java/com/google/events/firebase/analytics/v1/AppInfo.java index 3b2df2ca..b6f8bf49 100644 --- a/src/main/java/com/google/events/firebase/analytics/v1/AppInfo.java +++ b/src/main/java/com/google/events/firebase/analytics/v1/AppInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/firebase/analytics/v1/BundleInfo.java b/src/main/java/com/google/events/firebase/analytics/v1/BundleInfo.java index 9291145b..5b71f8a4 100644 --- a/src/main/java/com/google/events/firebase/analytics/v1/BundleInfo.java +++ b/src/main/java/com/google/events/firebase/analytics/v1/BundleInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/firebase/analytics/v1/DeviceInfo.java b/src/main/java/com/google/events/firebase/analytics/v1/DeviceInfo.java index 612ed679..8055b6c8 100644 --- a/src/main/java/com/google/events/firebase/analytics/v1/DeviceInfo.java +++ b/src/main/java/com/google/events/firebase/analytics/v1/DeviceInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/firebase/analytics/v1/EventDim.java b/src/main/java/com/google/events/firebase/analytics/v1/EventDim.java index eebb93c8..2e291d09 100644 --- a/src/main/java/com/google/events/firebase/analytics/v1/EventDim.java +++ b/src/main/java/com/google/events/firebase/analytics/v1/EventDim.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/firebase/analytics/v1/GeoInfo.java b/src/main/java/com/google/events/firebase/analytics/v1/GeoInfo.java index b4ef9dec..ccb9066d 100644 --- a/src/main/java/com/google/events/firebase/analytics/v1/GeoInfo.java +++ b/src/main/java/com/google/events/firebase/analytics/v1/GeoInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/firebase/analytics/v1/LtvInfo.java b/src/main/java/com/google/events/firebase/analytics/v1/LtvInfo.java index ab89ba8c..1d9fc123 100644 --- a/src/main/java/com/google/events/firebase/analytics/v1/LtvInfo.java +++ b/src/main/java/com/google/events/firebase/analytics/v1/LtvInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/firebase/analytics/v1/TrafficSource.java b/src/main/java/com/google/events/firebase/analytics/v1/TrafficSource.java index 24c8f6e0..13e08e6f 100644 --- a/src/main/java/com/google/events/firebase/analytics/v1/TrafficSource.java +++ b/src/main/java/com/google/events/firebase/analytics/v1/TrafficSource.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/firebase/analytics/v1/UserDim.java b/src/main/java/com/google/events/firebase/analytics/v1/UserDim.java index 621d0fec..58cf540b 100644 --- a/src/main/java/com/google/events/firebase/analytics/v1/UserDim.java +++ b/src/main/java/com/google/events/firebase/analytics/v1/UserDim.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/firebase/analytics/v1/UserProperty.java b/src/main/java/com/google/events/firebase/analytics/v1/UserProperty.java index 3e049fa5..b5285ac8 100644 --- a/src/main/java/com/google/events/firebase/analytics/v1/UserProperty.java +++ b/src/main/java/com/google/events/firebase/analytics/v1/UserProperty.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/firebase/analytics/v1/Value.java b/src/main/java/com/google/events/firebase/analytics/v1/Value.java index b9028c16..5b1ef5fc 100644 --- a/src/main/java/com/google/events/firebase/analytics/v1/Value.java +++ b/src/main/java/com/google/events/firebase/analytics/v1/Value.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/firebase/auth/v1/AuthEventData.java b/src/main/java/com/google/events/firebase/auth/v1/AuthEventData.java index 0724ea1f..8e9a85d4 100644 --- a/src/main/java/com/google/events/firebase/auth/v1/AuthEventData.java +++ b/src/main/java/com/google/events/firebase/auth/v1/AuthEventData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/firebase/auth/v1/CustomClaims.java b/src/main/java/com/google/events/firebase/auth/v1/CustomClaims.java index 6d008564..bd2c5acd 100644 --- a/src/main/java/com/google/events/firebase/auth/v1/CustomClaims.java +++ b/src/main/java/com/google/events/firebase/auth/v1/CustomClaims.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/firebase/auth/v1/Metadata.java b/src/main/java/com/google/events/firebase/auth/v1/Metadata.java index 1a68a031..3a0ee142 100644 --- a/src/main/java/com/google/events/firebase/auth/v1/Metadata.java +++ b/src/main/java/com/google/events/firebase/auth/v1/Metadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,18 +22,18 @@ * Additional metadata about the user. */ public class Metadata { - private OffsetDateTime createdAt; - private OffsetDateTime lastSignedInAt; + private OffsetDateTime createTime; + private OffsetDateTime lastSignInTime; /** * The date the user was created. */ - public OffsetDateTime getCreatedAt() { return createdAt; } - public void setCreatedAt(OffsetDateTime value) { this.createdAt = value; } + public OffsetDateTime getCreateTime() { return createTime; } + public void setCreateTime(OffsetDateTime value) { this.createTime = value; } /** * The date the user last signed in. */ - public OffsetDateTime getLastSignedInAt() { return lastSignedInAt; } - public void setLastSignedInAt(OffsetDateTime value) { this.lastSignedInAt = value; } + public OffsetDateTime getLastSignInTime() { return lastSignInTime; } + public void setLastSignInTime(OffsetDateTime value) { this.lastSignInTime = value; } } diff --git a/src/main/java/com/google/events/firebase/auth/v1/ProviderDatum.java b/src/main/java/com/google/events/firebase/auth/v1/ProviderDatum.java index 68c7a558..115d655f 100644 --- a/src/main/java/com/google/events/firebase/auth/v1/ProviderDatum.java +++ b/src/main/java/com/google/events/firebase/auth/v1/ProviderDatum.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/google/events/firebase/database/v1/ReferenceEventData.java b/src/main/java/com/google/events/firebase/database/v1/ReferenceEventData.java index a8054b1e..78262a46 100644 --- a/src/main/java/com/google/events/firebase/database/v1/ReferenceEventData.java +++ b/src/main/java/com/google/events/firebase/database/v1/ReferenceEventData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,9 +25,15 @@ public class ReferenceEventData { private Map data; private Map delta; + /** + * The original data for the reference. + */ public Map getData() { return data; } public void setData(Map value) { this.data = value; } + /** + * The change in the reference data. + */ public Map getDelta() { return delta; } public void setDelta(Map value) { this.delta = value; } } diff --git a/src/main/java/com/google/events/firebase/remoteconfig/v1/RemoteConfigEventData.java b/src/main/java/com/google/events/firebase/remoteconfig/v1/RemoteConfigEventData.java index 333aa376..48d45601 100644 --- a/src/main/java/com/google/events/firebase/remoteconfig/v1/RemoteConfigEventData.java +++ b/src/main/java/com/google/events/firebase/remoteconfig/v1/RemoteConfigEventData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,9 +24,9 @@ public class RemoteConfigEventData { private String description; private Long rollbackSource; - private Update updateOrigin; + private UpdateOrigin updateOrigin; private OffsetDateTime updateTime; - private Update updateType; + private UpdateType updateType; private UpdateUser updateUser; private Long versionNumber; @@ -46,8 +46,8 @@ public class RemoteConfigEventData { /** * Where the update action originated. */ - public Update getUpdateOrigin() { return updateOrigin; } - public void setUpdateOrigin(Update value) { this.updateOrigin = value; } + public UpdateOrigin getUpdateOrigin() { return updateOrigin; } + public void setUpdateOrigin(UpdateOrigin value) { this.updateOrigin = value; } /** * When the Remote Config template was written to the Remote Config server. @@ -58,11 +58,12 @@ public class RemoteConfigEventData { /** * What type of update was made. */ - public Update getUpdateType() { return updateType; } - public void setUpdateType(Update value) { this.updateType = value; } + public UpdateType getUpdateType() { return updateType; } + public void setUpdateType(UpdateType value) { this.updateType = value; } /** - * Aggregation of all metadata fields about the account that performed the update. + * Aggregation of all metadata fields about the account that performed the + * update. */ public UpdateUser getUpdateUser() { return updateUser; } public void setUpdateUser(UpdateUser value) { this.updateUser = value; } diff --git a/src/main/java/com/google/events/cloud/cloudbuild/v1/SourceProvenanceHashElement.java b/src/main/java/com/google/events/firebase/remoteconfig/v1/UpdateOrigin.java similarity index 76% rename from src/main/java/com/google/events/cloud/cloudbuild/v1/SourceProvenanceHashElement.java rename to src/main/java/com/google/events/firebase/remoteconfig/v1/UpdateOrigin.java index 9a398e58..962434bd 100644 --- a/src/main/java/com/google/events/cloud/cloudbuild/v1/SourceProvenanceHashElement.java +++ b/src/main/java/com/google/events/firebase/remoteconfig/v1/UpdateOrigin.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,11 +14,14 @@ * limitations under the License. */ -package com.google.events.cloud.cloudbuild.v1; +package com.google.events.firebase.remoteconfig.v1; import java.io.IOException; -public class SourceProvenanceHashElement { +/** + * Where the update action originated. + */ +public class UpdateOrigin { public Long integerValue; - public String stringValue; + public UpdateOriginEnum enumValue; } diff --git a/src/main/java/com/google/events/firebase/remoteconfig/v1/UpdateOriginEnum.java b/src/main/java/com/google/events/firebase/remoteconfig/v1/UpdateOriginEnum.java new file mode 100644 index 00000000..fbbbca48 --- /dev/null +++ b/src/main/java/com/google/events/firebase/remoteconfig/v1/UpdateOriginEnum.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 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. + */ + +package com.google.events.firebase.remoteconfig.v1; + +import java.io.IOException; + +public enum UpdateOriginEnum { + ADMIN_SDK_NODE, CONSOLE, REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED, REST_API; + + public String toValue() { + switch (this) { + case ADMIN_SDK_NODE: return "ADMIN_SDK_NODE"; + case CONSOLE: return "CONSOLE"; + case REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED: return "REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED"; + case REST_API: return "REST_API"; + } + return null; + } + + public static UpdateOriginEnum forValue(String value) throws IOException { + if (value.equals("ADMIN_SDK_NODE")) return ADMIN_SDK_NODE; + if (value.equals("CONSOLE")) return CONSOLE; + if (value.equals("REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED")) return REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED; + if (value.equals("REST_API")) return REST_API; + throw new IOException("Cannot deserialize UpdateOriginEnum"); + } +} diff --git a/src/main/java/com/google/events/firebase/remoteconfig/v1/Update.java b/src/main/java/com/google/events/firebase/remoteconfig/v1/UpdateType.java similarity index 83% rename from src/main/java/com/google/events/firebase/remoteconfig/v1/Update.java rename to src/main/java/com/google/events/firebase/remoteconfig/v1/UpdateType.java index 179e8b1c..ac10d8a5 100644 --- a/src/main/java/com/google/events/firebase/remoteconfig/v1/Update.java +++ b/src/main/java/com/google/events/firebase/remoteconfig/v1/UpdateType.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,10 @@ import java.io.IOException; -public class Update { +/** + * What type of update was made. + */ +public class UpdateType { public Long integerValue; - public String stringValue; + public UpdateTypeEnum enumValue; } diff --git a/src/main/java/com/google/events/firebase/remoteconfig/v1/UpdateTypeEnum.java b/src/main/java/com/google/events/firebase/remoteconfig/v1/UpdateTypeEnum.java new file mode 100644 index 00000000..fb0d5631 --- /dev/null +++ b/src/main/java/com/google/events/firebase/remoteconfig/v1/UpdateTypeEnum.java @@ -0,0 +1,41 @@ +/* + * Copyright 2021 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. + */ + +package com.google.events.firebase.remoteconfig.v1; + +import java.io.IOException; + +public enum UpdateTypeEnum { + FORCED_UPDATE, INCREMENTAL_UPDATE, REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED, ROLLBACK; + + public String toValue() { + switch (this) { + case FORCED_UPDATE: return "FORCED_UPDATE"; + case INCREMENTAL_UPDATE: return "INCREMENTAL_UPDATE"; + case REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED: return "REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED"; + case ROLLBACK: return "ROLLBACK"; + } + return null; + } + + public static UpdateTypeEnum forValue(String value) throws IOException { + if (value.equals("FORCED_UPDATE")) return FORCED_UPDATE; + if (value.equals("INCREMENTAL_UPDATE")) return INCREMENTAL_UPDATE; + if (value.equals("REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED")) return REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED; + if (value.equals("ROLLBACK")) return ROLLBACK; + throw new IOException("Cannot deserialize UpdateTypeEnum"); + } +} diff --git a/src/main/java/com/google/events/firebase/remoteconfig/v1/UpdateUser.java b/src/main/java/com/google/events/firebase/remoteconfig/v1/UpdateUser.java index c6139df9..2a2b1a96 100644 --- a/src/main/java/com/google/events/firebase/remoteconfig/v1/UpdateUser.java +++ b/src/main/java/com/google/events/firebase/remoteconfig/v1/UpdateUser.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,8 @@ package com.google.events.firebase.remoteconfig.v1; /** - * Aggregation of all metadata fields about the account that performed the update. + * Aggregation of all metadata fields about the account that performed the + * update. */ public class UpdateUser { private String email;