From 73787064189354e1194932b85d55b29dc3f2336e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 18 Aug 2022 15:36:19 +0200 Subject: [PATCH 01/15] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.4.1 (#412) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-javadoc-plugin](https://maven.apache.org/plugins/) ([source](https://togithub.com/apache/maven-javadoc-plugin)) | `3.4.0` -> `3.4.1` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/compatibility-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/confidence-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-notebooks). --- README.md | 4 ++-- pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 73db3428..a5cedaee 100644 --- a/README.md +++ b/README.md @@ -27,13 +27,13 @@ If you are using Maven, add this to your pom.xml file: If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-notebooks:1.1.1' +implementation 'com.google.cloud:google-cloud-notebooks:1.1.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.1.1" +libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.1.2" ``` ## Authentication diff --git a/pom.xml b/pom.xml index 743397d4..e7310644 100644 --- a/pom.xml +++ b/pom.xml @@ -159,7 +159,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 html From 4df4fc432cabd8d2953d2fe7671577eddc362727 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 18 Aug 2022 16:58:16 +0200 Subject: [PATCH 02/15] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.4.1 (#413) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.4.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e7310644..c9b2b2e2 100644 --- a/pom.xml +++ b/pom.xml @@ -132,7 +132,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.4.0 + 3.4.1 From 7ca3d1293a87a6a74d58279c710f01e230df8022 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 22 Aug 2022 14:20:17 +0000 Subject: [PATCH 03/15] chore: remove unused proto imports (#414) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 468735472 Source-Link: https://github.com/googleapis/googleapis/commit/cfa1b3782da7ccae31673d45401a0b79d2d4a84b Source-Link: https://github.com/googleapis/googleapis-gen/commit/09b7666656510f5b00b893f003a0ba5766f9e250 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDliNzY2NjY1NjUxMGY1YjAwYjg5M2YwMDNhMGJhNTc2NmY5ZTI1MCJ9 --- .../notebooks/v1beta1/EnvironmentProto.java | 44 +++---- .../notebooks/v1beta1/InstanceProto.java | 123 +++++++++--------- .../cloud/notebooks/v1beta1/environment.proto | 1 - .../cloud/notebooks/v1beta1/instance.proto | 1 - .../SyncCreateSetCredentialsProvider.java | 42 ++++++ .../create/SyncCreateSetEndpoint.java | 39 ++++++ .../createruntime/AsyncCreateRuntime.java | 52 ++++++++ .../createruntime/AsyncCreateRuntimeLRO.java | 52 ++++++++ .../createruntime/SyncCreateRuntime.java | 47 +++++++ ...CreateRuntimeRuntimenameStringRuntime.java | 43 ++++++ .../SyncCreateRuntimeStringStringRuntime.java | 43 ++++++ .../deleteruntime/AsyncDeleteRuntime.java | 49 +++++++ .../deleteruntime/AsyncDeleteRuntimeLRO.java | 50 +++++++ .../deleteruntime/SyncDeleteRuntime.java | 45 +++++++ .../SyncDeleteRuntimeRuntimename.java | 40 ++++++ .../SyncDeleteRuntimeString.java | 40 ++++++ .../getruntime/AsyncGetRuntime.java | 48 +++++++ .../getruntime/SyncGetRuntime.java | 44 +++++++ .../getruntime/SyncGetRuntimeRuntimename.java | 40 ++++++ .../getruntime/SyncGetRuntimeString.java | 40 ++++++ .../listruntimes/AsyncListRuntimes.java | 52 ++++++++ .../listruntimes/AsyncListRuntimesPaged.java | 60 +++++++++ .../listruntimes/SyncListRuntimes.java | 48 +++++++ .../SyncListRuntimesLocationname.java | 42 ++++++ .../listruntimes/SyncListRuntimesString.java | 42 ++++++ .../AsyncRefreshRuntimeTokenInternal.java | 49 +++++++ .../SyncRefreshRuntimeTokenInternal.java | 46 +++++++ ...RuntimeTokenInternalRuntimenameString.java | 42 ++++++ ...freshRuntimeTokenInternalStringString.java | 42 ++++++ .../AsyncReportRuntimeEvent.java | 51 ++++++++ .../AsyncReportRuntimeEventLRO.java | 52 ++++++++ .../SyncReportRuntimeEvent.java | 47 +++++++ .../SyncReportRuntimeEventRuntimename.java | 40 ++++++ .../SyncReportRuntimeEventString.java | 40 ++++++ .../resetruntime/AsyncResetRuntime.java | 48 +++++++ .../resetruntime/AsyncResetRuntimeLRO.java | 49 +++++++ .../resetruntime/SyncResetRuntime.java | 44 +++++++ .../resetruntime/SyncResetRuntimeString.java | 39 ++++++ .../startruntime/AsyncStartRuntime.java | 48 +++++++ .../startruntime/AsyncStartRuntimeLRO.java | 49 +++++++ .../startruntime/SyncStartRuntime.java | 44 +++++++ .../startruntime/SyncStartRuntimeString.java | 39 ++++++ .../stopruntime/AsyncStopRuntime.java | 48 +++++++ .../stopruntime/AsyncStopRuntimeLRO.java | 49 +++++++ .../stopruntime/SyncStopRuntime.java | 44 +++++++ .../stopruntime/SyncStopRuntimeString.java | 39 ++++++ .../switchruntime/AsyncSwitchRuntime.java | 51 ++++++++ .../switchruntime/AsyncSwitchRuntimeLRO.java | 52 ++++++++ .../switchruntime/SyncSwitchRuntime.java | 47 +++++++ .../SyncSwitchRuntimeString.java | 39 ++++++ .../getruntime/SyncGetRuntime.java | 47 +++++++ .../SyncCreateSetCredentialsProvider.java | 42 ++++++ .../create/SyncCreateSetEndpoint.java | 39 ++++++ .../AsyncCreateEnvironment.java | 49 +++++++ .../AsyncCreateEnvironmentLRO.java | 49 +++++++ .../SyncCreateEnvironment.java | 44 +++++++ ...ateEnvironmentStringEnvironmentString.java | 41 ++++++ .../createexecution/AsyncCreateExecution.java | 50 +++++++ .../AsyncCreateExecutionLRO.java | 50 +++++++ .../createexecution/SyncCreateExecution.java | 45 +++++++ ...ExecutionExecutionnameExecutionString.java | 42 ++++++ ...cCreateExecutionStringExecutionString.java | 42 ++++++ .../createinstance/AsyncCreateInstance.java | 49 +++++++ .../AsyncCreateInstanceLRO.java | 49 +++++++ .../createinstance/SyncCreateInstance.java | 44 +++++++ ...yncCreateInstanceStringInstanceString.java | 41 ++++++ .../createschedule/AsyncCreateSchedule.java | 50 +++++++ .../AsyncCreateScheduleLRO.java | 50 +++++++ .../createschedule/SyncCreateSchedule.java | 45 +++++++ ...ateScheduleSchedulenameScheduleString.java | 42 ++++++ ...yncCreateScheduleStringScheduleString.java | 42 ++++++ .../AsyncDeleteEnvironment.java | 44 +++++++ .../AsyncDeleteEnvironmentLRO.java | 45 +++++++ .../SyncDeleteEnvironment.java | 40 ++++++ .../SyncDeleteEnvironmentString.java | 38 ++++++ .../deleteexecution/AsyncDeleteExecution.java | 47 +++++++ .../AsyncDeleteExecutionLRO.java | 48 +++++++ .../deleteexecution/SyncDeleteExecution.java | 43 ++++++ .../SyncDeleteExecutionExecutionname.java | 39 ++++++ .../SyncDeleteExecutionString.java | 39 ++++++ .../deleteinstance/AsyncDeleteInstance.java | 44 +++++++ .../AsyncDeleteInstanceLRO.java | 45 +++++++ .../deleteinstance/SyncDeleteInstance.java | 40 ++++++ .../SyncDeleteInstanceString.java | 38 ++++++ .../deleteschedule/AsyncDeleteSchedule.java | 47 +++++++ .../AsyncDeleteScheduleLRO.java | 48 +++++++ .../deleteschedule/SyncDeleteSchedule.java | 43 ++++++ .../SyncDeleteScheduleSchedulename.java | 39 ++++++ .../SyncDeleteScheduleString.java | 39 ++++++ .../getenvironment/AsyncGetEnvironment.java | 44 +++++++ .../getenvironment/SyncGetEnvironment.java | 40 ++++++ .../SyncGetEnvironmentString.java | 38 ++++++ .../getexecution/AsyncGetExecution.java | 47 +++++++ .../getexecution/SyncGetExecution.java | 43 ++++++ .../SyncGetExecutionExecutionname.java | 39 ++++++ .../getexecution/SyncGetExecutionString.java | 39 ++++++ .../getinstance/AsyncGetInstance.java | 42 ++++++ .../getinstance/SyncGetInstance.java | 39 ++++++ .../getinstance/SyncGetInstanceString.java | 38 ++++++ .../AsyncGetInstanceHealth.java | 47 +++++++ .../SyncGetInstanceHealth.java | 43 ++++++ .../SyncGetInstanceHealthInstancename.java | 39 ++++++ .../SyncGetInstanceHealthString.java | 39 ++++++ .../getschedule/AsyncGetSchedule.java | 46 +++++++ .../getschedule/SyncGetSchedule.java | 43 ++++++ .../SyncGetScheduleSchedulename.java | 39 ++++++ .../getschedule/SyncGetScheduleString.java | 39 ++++++ .../AsyncIsInstanceUpgradeable.java | 48 +++++++ .../SyncIsInstanceUpgradeable.java | 44 +++++++ .../AsyncListEnvironments.java | 50 +++++++ .../AsyncListEnvironmentsPaged.java | 58 +++++++++ .../SyncListEnvironments.java | 46 +++++++ .../SyncListEnvironmentsString.java | 40 ++++++ .../listexecutions/AsyncListExecutions.java | 53 ++++++++ .../AsyncListExecutionsPaged.java | 61 +++++++++ .../listexecutions/SyncListExecutions.java | 49 +++++++ .../SyncListExecutionsExecutionname.java | 41 ++++++ .../SyncListExecutionsString.java | 41 ++++++ .../listinstances/AsyncListInstances.java | 50 +++++++ .../AsyncListInstancesPaged.java | 58 +++++++++ .../listinstances/SyncListInstances.java | 46 +++++++ .../SyncListInstancesString.java | 40 ++++++ .../listschedules/AsyncListSchedules.java | 53 ++++++++ .../AsyncListSchedulesPaged.java | 61 +++++++++ .../listschedules/SyncListSchedules.java | 49 +++++++ .../SyncListSchedulesSchedulename.java | 41 ++++++ .../SyncListSchedulesString.java | 41 ++++++ .../AsyncRegisterInstance.java | 47 +++++++ .../AsyncRegisterInstanceLRO.java | 48 +++++++ .../SyncRegisterInstance.java | 43 ++++++ .../AsyncReportInstanceInfo.java | 49 +++++++ .../AsyncReportInstanceInfoLRO.java | 50 +++++++ .../SyncReportInstanceInfo.java | 45 +++++++ .../resetinstance/AsyncResetInstance.java | 44 +++++++ .../resetinstance/AsyncResetInstanceLRO.java | 45 +++++++ .../resetinstance/SyncResetInstance.java | 40 ++++++ .../AsyncRollbackInstance.java | 47 +++++++ .../AsyncRollbackInstanceLRO.java | 48 +++++++ .../SyncRollbackInstance.java | 43 ++++++ .../AsyncSetInstanceAccelerator.java | 47 +++++++ .../AsyncSetInstanceAcceleratorLRO.java | 48 +++++++ .../SyncSetInstanceAccelerator.java | 43 ++++++ .../AsyncSetInstanceLabels.java | 48 +++++++ .../AsyncSetInstanceLabelsLRO.java | 49 +++++++ .../SyncSetInstanceLabels.java | 44 +++++++ .../AsyncSetInstanceMachineType.java | 47 +++++++ .../AsyncSetInstanceMachineTypeLRO.java | 48 +++++++ .../SyncSetInstanceMachineType.java | 43 ++++++ .../startinstance/AsyncStartInstance.java | 44 +++++++ .../startinstance/AsyncStartInstanceLRO.java | 45 +++++++ .../startinstance/SyncStartInstance.java | 40 ++++++ .../stopinstance/AsyncStopInstance.java | 43 ++++++ .../stopinstance/AsyncStopInstanceLRO.java | 44 +++++++ .../stopinstance/SyncStopInstance.java | 39 ++++++ .../triggerschedule/AsyncTriggerSchedule.java | 47 +++++++ .../AsyncTriggerScheduleLRO.java | 48 +++++++ .../triggerschedule/SyncTriggerSchedule.java | 43 ++++++ .../AsyncUpdateInstanceConfig.java | 48 +++++++ .../AsyncUpdateInstanceConfigLRO.java | 49 +++++++ .../SyncUpdateInstanceConfig.java | 44 +++++++ .../AsyncUpdateInstanceMetadataItems.java | 48 +++++++ .../SyncUpdateInstanceMetadataItems.java | 45 +++++++ .../AsyncUpdateShieldedInstanceConfig.java | 48 +++++++ .../AsyncUpdateShieldedInstanceConfigLRO.java | 48 +++++++ .../SyncUpdateShieldedInstanceConfig.java | 43 ++++++ .../upgradeinstance/AsyncUpgradeInstance.java | 48 +++++++ .../AsyncUpgradeInstanceLRO.java | 49 +++++++ .../upgradeinstance/SyncUpgradeInstance.java | 44 +++++++ .../AsyncUpgradeInstanceInternal.java | 49 +++++++ .../AsyncUpgradeInstanceInternalLRO.java | 50 +++++++ .../SyncUpgradeInstanceInternal.java | 45 +++++++ .../getinstance/SyncGetInstance.java | 46 +++++++ .../getruntime/SyncGetRuntime.java | 47 +++++++ .../getinstance/SyncGetInstance.java | 46 +++++++ .../SyncCreateSetCredentialsProvider.java | 42 ++++++ .../create/SyncCreateSetEndpoint.java | 39 ++++++ .../AsyncCreateEnvironment.java | 49 +++++++ .../AsyncCreateEnvironmentLRO.java | 49 +++++++ .../SyncCreateEnvironment.java | 44 +++++++ .../createinstance/AsyncCreateInstance.java | 49 +++++++ .../AsyncCreateInstanceLRO.java | 49 +++++++ .../createinstance/SyncCreateInstance.java | 44 +++++++ .../AsyncDeleteEnvironment.java | 44 +++++++ .../AsyncDeleteEnvironmentLRO.java | 45 +++++++ .../SyncDeleteEnvironment.java | 40 ++++++ .../deleteinstance/AsyncDeleteInstance.java | 44 +++++++ .../AsyncDeleteInstanceLRO.java | 45 +++++++ .../deleteinstance/SyncDeleteInstance.java | 40 ++++++ .../getenvironment/AsyncGetEnvironment.java | 44 +++++++ .../getenvironment/SyncGetEnvironment.java | 40 ++++++ .../getinstance/AsyncGetInstance.java | 42 ++++++ .../getinstance/SyncGetInstance.java | 39 ++++++ .../AsyncIsInstanceUpgradeable.java | 46 +++++++ .../SyncIsInstanceUpgradeable.java | 42 ++++++ .../AsyncListEnvironments.java | 50 +++++++ .../AsyncListEnvironmentsPaged.java | 58 +++++++++ .../SyncListEnvironments.java | 46 +++++++ .../listinstances/AsyncListInstances.java | 50 +++++++ .../AsyncListInstancesPaged.java | 58 +++++++++ .../listinstances/SyncListInstances.java | 46 +++++++ .../AsyncRegisterInstance.java | 47 +++++++ .../AsyncRegisterInstanceLRO.java | 48 +++++++ .../SyncRegisterInstance.java | 43 ++++++ .../AsyncReportInstanceInfo.java | 49 +++++++ .../AsyncReportInstanceInfoLRO.java | 50 +++++++ .../SyncReportInstanceInfo.java | 45 +++++++ .../resetinstance/AsyncResetInstance.java | 44 +++++++ .../resetinstance/AsyncResetInstanceLRO.java | 45 +++++++ .../resetinstance/SyncResetInstance.java | 40 ++++++ .../AsyncSetInstanceAccelerator.java | 47 +++++++ .../AsyncSetInstanceAcceleratorLRO.java | 48 +++++++ .../SyncSetInstanceAccelerator.java | 43 ++++++ .../AsyncSetInstanceLabels.java | 48 +++++++ .../AsyncSetInstanceLabelsLRO.java | 49 +++++++ .../SyncSetInstanceLabels.java | 44 +++++++ .../AsyncSetInstanceMachineType.java | 47 +++++++ .../AsyncSetInstanceMachineTypeLRO.java | 48 +++++++ .../SyncSetInstanceMachineType.java | 43 ++++++ .../startinstance/AsyncStartInstance.java | 44 +++++++ .../startinstance/AsyncStartInstanceLRO.java | 45 +++++++ .../startinstance/SyncStartInstance.java | 40 ++++++ .../stopinstance/AsyncStopInstance.java | 43 ++++++ .../stopinstance/AsyncStopInstanceLRO.java | 44 +++++++ .../stopinstance/SyncStopInstance.java | 39 ++++++ .../upgradeinstance/AsyncUpgradeInstance.java | 44 +++++++ .../AsyncUpgradeInstanceLRO.java | 45 +++++++ .../upgradeinstance/SyncUpgradeInstance.java | 40 ++++++ .../AsyncUpgradeInstanceInternal.java | 47 +++++++ .../AsyncUpgradeInstanceInternalLRO.java | 48 +++++++ .../SyncUpgradeInstanceInternal.java | 43 ++++++ .../getinstance/SyncGetInstance.java | 46 +++++++ .../getinstance/SyncGetInstance.java | 46 +++++++ 232 files changed, 10391 insertions(+), 88 deletions(-) create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/AsyncCreateRuntime.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/AsyncCreateRuntimeLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntime.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntimeRuntimenameStringRuntime.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntimeStringStringRuntime.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/AsyncDeleteRuntime.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/AsyncDeleteRuntimeLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntime.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntimeRuntimename.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntimeString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/AsyncGetRuntime.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntime.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntimeRuntimename.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntimeString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/AsyncListRuntimes.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/AsyncListRuntimesPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimes.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimesLocationname.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimesString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/AsyncRefreshRuntimeTokenInternal.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternal.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalRuntimenameString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalStringString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/AsyncReportRuntimeEvent.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/AsyncReportRuntimeEventLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEvent.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEventRuntimename.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEventString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/AsyncResetRuntime.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/AsyncResetRuntimeLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/SyncResetRuntime.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/SyncResetRuntimeString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/AsyncStartRuntime.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/AsyncStartRuntimeLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/SyncStartRuntime.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/SyncStartRuntimeString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/AsyncStopRuntime.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/AsyncStopRuntimeLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/SyncStopRuntime.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/SyncStopRuntimeString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/AsyncSwitchRuntime.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/AsyncSwitchRuntimeLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/SyncSwitchRuntime.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/SyncSwitchRuntimeString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservicesettings/getruntime/SyncGetRuntime.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/AsyncCreateEnvironment.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/AsyncCreateEnvironmentLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/SyncCreateEnvironment.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/SyncCreateEnvironmentStringEnvironmentString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/AsyncCreateExecution.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/AsyncCreateExecutionLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecution.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecutionExecutionnameExecutionString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecutionStringExecutionString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/AsyncCreateInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/AsyncCreateInstanceLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/SyncCreateInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/SyncCreateInstanceStringInstanceString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/AsyncCreateSchedule.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/AsyncCreateScheduleLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateSchedule.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateScheduleSchedulenameScheduleString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateScheduleStringScheduleString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironment.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironmentLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironment.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironmentString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/AsyncDeleteExecution.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/AsyncDeleteExecutionLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecution.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecutionExecutionname.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecutionString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/AsyncDeleteInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/AsyncDeleteInstanceLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/SyncDeleteInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/SyncDeleteInstanceString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/AsyncDeleteSchedule.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/AsyncDeleteScheduleLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteSchedule.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteScheduleSchedulename.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteScheduleString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/AsyncGetEnvironment.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/SyncGetEnvironment.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/SyncGetEnvironmentString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/AsyncGetExecution.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecution.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecutionExecutionname.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecutionString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/AsyncGetInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/SyncGetInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/SyncGetInstanceString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/AsyncGetInstanceHealth.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealth.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealthInstancename.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealthString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/AsyncGetSchedule.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetSchedule.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetScheduleSchedulename.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetScheduleString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/isinstanceupgradeable/SyncIsInstanceUpgradeable.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/AsyncListEnvironments.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/AsyncListEnvironmentsPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/SyncListEnvironments.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/SyncListEnvironmentsString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/AsyncListExecutions.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/AsyncListExecutionsPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutions.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutionsExecutionname.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutionsString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/AsyncListInstances.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/AsyncListInstancesPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/SyncListInstances.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/SyncListInstancesString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/AsyncListSchedules.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/AsyncListSchedulesPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedules.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedulesSchedulename.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedulesString.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/AsyncRegisterInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/AsyncRegisterInstanceLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/SyncRegisterInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfo.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfoLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/SyncReportInstanceInfo.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/AsyncResetInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/AsyncResetInstanceLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/SyncResetInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/AsyncRollbackInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/AsyncRollbackInstanceLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/SyncRollbackInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAccelerator.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/SyncSetInstanceAccelerator.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabels.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabelsLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/SyncSetInstanceLabels.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineType.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/SyncSetInstanceMachineType.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/AsyncStartInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/AsyncStartInstanceLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/SyncStartInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/AsyncStopInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/AsyncStopInstanceLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/SyncStopInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/AsyncTriggerSchedule.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/AsyncTriggerScheduleLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/SyncTriggerSchedule.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/AsyncUpdateInstanceConfig.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/AsyncUpdateInstanceConfigLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/SyncUpdateInstanceConfig.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstancemetadataitems/AsyncUpdateInstanceMetadataItems.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstancemetadataitems/SyncUpdateInstanceMetadataItems.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfig.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfigLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/SyncUpdateShieldedInstanceConfig.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstanceLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/SyncUpgradeInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservicesettings/getinstance/SyncGetInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/stub/managednotebookservicestubsettings/getruntime/SyncGetRuntime.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/AsyncCreateEnvironment.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/AsyncCreateEnvironmentLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/SyncCreateEnvironment.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/AsyncCreateInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/AsyncCreateInstanceLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/SyncCreateInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironment.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironmentLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironment.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/AsyncDeleteInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/AsyncDeleteInstanceLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/SyncDeleteInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getenvironment/AsyncGetEnvironment.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getenvironment/SyncGetEnvironment.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getinstance/AsyncGetInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getinstance/SyncGetInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/isinstanceupgradeable/SyncIsInstanceUpgradeable.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/AsyncListEnvironments.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/AsyncListEnvironmentsPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/SyncListEnvironments.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/AsyncListInstances.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/AsyncListInstancesPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/SyncListInstances.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/AsyncRegisterInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/AsyncRegisterInstanceLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/SyncRegisterInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfo.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfoLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/SyncReportInstanceInfo.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/AsyncResetInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/AsyncResetInstanceLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/SyncResetInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAccelerator.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/SyncSetInstanceAccelerator.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabels.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabelsLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/SyncSetInstanceLabels.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineType.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/SyncSetInstanceMachineType.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/AsyncStartInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/AsyncStartInstanceLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/SyncStartInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/AsyncStopInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/AsyncStopInstanceLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/SyncStopInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstanceLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/SyncUpgradeInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservicesettings/getinstance/SyncGetInstance.java create mode 100644 samples/snippets/generated/com/google/cloud/notebooks/v1beta1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentProto.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentProto.java index 6d9030bf..34ec96fb 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentProto.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentProto.java @@ -52,27 +52,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ment.proto\022\036google.cloud.notebooks.v1bet" + "a1\032\037google/api/field_behavior.proto\032\031goo" + "gle/api/resource.proto\032\037google/protobuf/" - + "timestamp.proto\032\034google/api/annotations." - + "proto\"\216\003\n\013Environment\022\021\n\004name\030\001 \001(\tB\003\340A\003" - + "\022\024\n\014display_name\030\002 \001(\t\022\023\n\013description\030\003 " - + "\001(\t\022;\n\010vm_image\030\006 \001(\0132\'.google.cloud.not" - + "ebooks.v1beta1.VmImageH\000\022I\n\017container_im" - + "age\030\007 \001(\0132..google.cloud.notebooks.v1bet" - + "a1.ContainerImageH\000\022\033\n\023post_startup_scri" - + "pt\030\010 \001(\t\0224\n\013create_time\030\t \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003:X\352AU\n$notebooks.g" - + "oogleapis.com/Environment\022-projects/{pro" - + "ject}/environments/{environment}B\014\n\nimag" - + "e_type\"V\n\007VmImage\022\024\n\007project\030\001 \001(\tB\003\340A\002\022" - + "\024\n\nimage_name\030\002 \001(\tH\000\022\026\n\014image_family\030\003 " - + "\001(\tH\000B\007\n\005image\"6\n\016ContainerImage\022\027\n\nrepo" - + "sitory\030\001 \001(\tB\003\340A\002\022\013\n\003tag\030\002 \001(\tB\347\001\n\"com.g" - + "oogle.cloud.notebooks.v1beta1B\020Environme" - + "ntProtoP\001ZGgoogle.golang.org/genproto/go" - + "ogleapis/cloud/notebooks/v1beta1;noteboo" - + "ks\252\002\036Google.Cloud.Notebooks.V1Beta1\312\002\036Go" - + "ogle\\Cloud\\Notebooks\\V1beta1\352\002!Google::C" - + "loud::Notebooks::V1beta1b\006proto3" + + "timestamp.proto\"\216\003\n\013Environment\022\021\n\004name\030" + + "\001 \001(\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t\022\023\n\013desc" + + "ription\030\003 \001(\t\022;\n\010vm_image\030\006 \001(\0132\'.google" + + ".cloud.notebooks.v1beta1.VmImageH\000\022I\n\017co" + + "ntainer_image\030\007 \001(\0132..google.cloud.noteb" + + "ooks.v1beta1.ContainerImageH\000\022\033\n\023post_st" + + "artup_script\030\010 \001(\t\0224\n\013create_time\030\t \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003:X\352AU\n$n" + + "otebooks.googleapis.com/Environment\022-pro" + + "jects/{project}/environments/{environmen" + + "t}B\014\n\nimage_type\"V\n\007VmImage\022\024\n\007project\030\001" + + " \001(\tB\003\340A\002\022\024\n\nimage_name\030\002 \001(\tH\000\022\026\n\014image" + + "_family\030\003 \001(\tH\000B\007\n\005image\"6\n\016ContainerIma" + + "ge\022\027\n\nrepository\030\001 \001(\tB\003\340A\002\022\013\n\003tag\030\002 \001(\t" + + "B\347\001\n\"com.google.cloud.notebooks.v1beta1B" + + "\020EnvironmentProtoP\001ZGgoogle.golang.org/g" + + "enproto/googleapis/cloud/notebooks/v1bet" + + "a1;notebooks\252\002\036Google.Cloud.Notebooks.V1" + + "Beta1\312\002\036Google\\Cloud\\Notebooks\\V1beta1\352\002" + + "!Google::Cloud::Notebooks::V1beta1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -81,7 +81,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_cloud_notebooks_v1beta1_Environment_descriptor = getDescriptor().getMessageTypes().get(0); @@ -123,7 +122,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceProto.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceProto.java index e49c59e0..ded0c5cd 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceProto.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceProto.java @@ -57,67 +57,66 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037google/api/field_behavior.proto\032\031google" + "/api/resource.proto\0320google/cloud/notebo" + "oks/v1beta1/environment.proto\032\037google/pr" - + "otobuf/timestamp.proto\032\034google/api/annot" - + "ations.proto\"\274\020\n\010Instance\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\003\022;\n\010vm_image\030\002 \001(\0132\'.google.cloud.no" - + "tebooks.v1beta1.VmImageH\000\022I\n\017container_i" - + "mage\030\003 \001(\0132..google.cloud.notebooks.v1be" - + "ta1.ContainerImageH\000\022\033\n\023post_startup_scr" - + "ipt\030\004 \001(\t\022\026\n\tproxy_uri\030\005 \001(\tB\003\340A\003\022\034\n\017ins" - + "tance_owners\030\006 \003(\tB\003\340A\004\022\027\n\017service_accou" - + "nt\030\007 \001(\t\022\031\n\014machine_type\030\010 \001(\tB\003\340A\002\022V\n\022a" - + "ccelerator_config\030\t \001(\0132:.google.cloud.n" - + "otebooks.v1beta1.Instance.AcceleratorCon" - + "fig\022B\n\005state\030\n \001(\0162..google.cloud.notebo" - + "oks.v1beta1.Instance.StateB\003\340A\003\022\032\n\022insta" - + "ll_gpu_driver\030\013 \001(\010\022\036\n\026custom_gpu_driver" - + "_path\030\014 \001(\t\022N\n\016boot_disk_type\030\r \001(\01621.go" - + "ogle.cloud.notebooks.v1beta1.Instance.Di" - + "skTypeB\003\340A\004\022\036\n\021boot_disk_size_gb\030\016 \001(\003B\003" - + "\340A\004\022N\n\016data_disk_type\030\031 \001(\01621.google.clo" - + "ud.notebooks.v1beta1.Instance.DiskTypeB\003" - + "\340A\004\022\036\n\021data_disk_size_gb\030\032 \001(\003B\003\340A\004\022 \n\023n" - + "o_remove_data_disk\030\033 \001(\010B\003\340A\004\022U\n\017disk_en" - + "cryption\030\017 \001(\01627.google.cloud.notebooks." - + "v1beta1.Instance.DiskEncryptionB\003\340A\004\022\024\n\007" - + "kms_key\030\020 \001(\tB\003\340A\004\022\024\n\014no_public_ip\030\021 \001(\010" - + "\022\027\n\017no_proxy_access\030\022 \001(\010\022\017\n\007network\030\023 \001" - + "(\t\022\016\n\006subnet\030\024 \001(\t\022D\n\006labels\030\025 \003(\01324.goo" - + "gle.cloud.notebooks.v1beta1.Instance.Lab" - + "elsEntry\022H\n\010metadata\030\026 \003(\01326.google.clou" - + "d.notebooks.v1beta1.Instance.MetadataEnt" - + "ry\0224\n\013create_time\030\027 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\0224\n\013update_time\030\030 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\032o\n\021Accele" - + "ratorConfig\022F\n\004type\030\001 \001(\01628.google.cloud" - + ".notebooks.v1beta1.Instance.AcceleratorT" - + "ype\022\022\n\ncore_count\030\002 \001(\003\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032/\n\rMetada" - + "taEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" - + "\206\002\n\017AcceleratorType\022 \n\034ACCELERATOR_TYPE_" - + "UNSPECIFIED\020\000\022\024\n\020NVIDIA_TESLA_K80\020\001\022\025\n\021N" - + "VIDIA_TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V100\020" - + "\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017NVIDIA_TESLA_T" - + "4\020\005\022\027\n\023NVIDIA_TESLA_T4_VWS\020\010\022\031\n\025NVIDIA_T" - + "ESLA_P100_VWS\020\t\022\027\n\023NVIDIA_TESLA_P4_VWS\020\n" - + "\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020\007\"\244\001\n\005State\022\025\n\021ST" - + "ATE_UNSPECIFIED\020\000\022\014\n\010STARTING\020\001\022\020\n\014PROVI" - + "SIONING\020\002\022\n\n\006ACTIVE\020\003\022\014\n\010STOPPING\020\004\022\013\n\007S" - + "TOPPED\020\005\022\013\n\007DELETED\020\006\022\r\n\tUPGRADING\020\007\022\020\n\014" - + "INITIALIZING\020\010\022\017\n\013REGISTERING\020\t\"S\n\010DiskT" - + "ype\022\031\n\025DISK_TYPE_UNSPECIFIED\020\000\022\017\n\013PD_STA" - + "NDARD\020\001\022\n\n\006PD_SSD\020\002\022\017\n\013PD_BALANCED\020\003\"E\n\016" - + "DiskEncryption\022\037\n\033DISK_ENCRYPTION_UNSPEC" - + "IFIED\020\000\022\010\n\004GMEK\020\001\022\010\n\004CMEK\020\002:O\352AL\n!notebo" - + "oks.googleapis.com/Instance\022\'projects/{p" - + "roject}/instances/{instance}B\r\n\013environm" - + "entB\344\001\n\"com.google.cloud.notebooks.v1bet" - + "a1B\rInstanceProtoP\001ZGgoogle.golang.org/g" - + "enproto/googleapis/cloud/notebooks/v1bet" - + "a1;notebooks\252\002\036Google.Cloud.Notebooks.V1" - + "Beta1\312\002\036Google\\Cloud\\Notebooks\\V1beta1\352\002" - + "!Google::Cloud::Notebooks::V1beta1b\006prot" - + "o3" + + "otobuf/timestamp.proto\"\274\020\n\010Instance\022\021\n\004n" + + "ame\030\001 \001(\tB\003\340A\003\022;\n\010vm_image\030\002 \001(\0132\'.googl" + + "e.cloud.notebooks.v1beta1.VmImageH\000\022I\n\017c" + + "ontainer_image\030\003 \001(\0132..google.cloud.note" + + "books.v1beta1.ContainerImageH\000\022\033\n\023post_s" + + "tartup_script\030\004 \001(\t\022\026\n\tproxy_uri\030\005 \001(\tB\003" + + "\340A\003\022\034\n\017instance_owners\030\006 \003(\tB\003\340A\004\022\027\n\017ser" + + "vice_account\030\007 \001(\t\022\031\n\014machine_type\030\010 \001(\t" + + "B\003\340A\002\022V\n\022accelerator_config\030\t \001(\0132:.goog" + + "le.cloud.notebooks.v1beta1.Instance.Acce" + + "leratorConfig\022B\n\005state\030\n \001(\0162..google.cl" + + "oud.notebooks.v1beta1.Instance.StateB\003\340A" + + "\003\022\032\n\022install_gpu_driver\030\013 \001(\010\022\036\n\026custom_" + + "gpu_driver_path\030\014 \001(\t\022N\n\016boot_disk_type\030" + + "\r \001(\01621.google.cloud.notebooks.v1beta1.I" + + "nstance.DiskTypeB\003\340A\004\022\036\n\021boot_disk_size_" + + "gb\030\016 \001(\003B\003\340A\004\022N\n\016data_disk_type\030\031 \001(\01621." + + "google.cloud.notebooks.v1beta1.Instance." + + "DiskTypeB\003\340A\004\022\036\n\021data_disk_size_gb\030\032 \001(\003" + + "B\003\340A\004\022 \n\023no_remove_data_disk\030\033 \001(\010B\003\340A\004\022" + + "U\n\017disk_encryption\030\017 \001(\01627.google.cloud." + + "notebooks.v1beta1.Instance.DiskEncryptio" + + "nB\003\340A\004\022\024\n\007kms_key\030\020 \001(\tB\003\340A\004\022\024\n\014no_publi" + + "c_ip\030\021 \001(\010\022\027\n\017no_proxy_access\030\022 \001(\010\022\017\n\007n" + + "etwork\030\023 \001(\t\022\016\n\006subnet\030\024 \001(\t\022D\n\006labels\030\025" + + " \003(\01324.google.cloud.notebooks.v1beta1.In" + + "stance.LabelsEntry\022H\n\010metadata\030\026 \003(\01326.g" + + "oogle.cloud.notebooks.v1beta1.Instance.M" + + "etadataEntry\0224\n\013create_time\030\027 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim" + + "e\030\030 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\032o\n\021AcceleratorConfig\022F\n\004type\030\001 \001(\01628.go" + + "ogle.cloud.notebooks.v1beta1.Instance.Ac" + + "celeratorType\022\022\n\ncore_count\030\002 \001(\003\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"\206\002\n\017AcceleratorType\022 \n\034ACCELER" + + "ATOR_TYPE_UNSPECIFIED\020\000\022\024\n\020NVIDIA_TESLA_" + + "K80\020\001\022\025\n\021NVIDIA_TESLA_P100\020\002\022\025\n\021NVIDIA_T" + + "ESLA_V100\020\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017NVID" + + "IA_TESLA_T4\020\005\022\027\n\023NVIDIA_TESLA_T4_VWS\020\010\022\031" + + "\n\025NVIDIA_TESLA_P100_VWS\020\t\022\027\n\023NVIDIA_TESL" + + "A_P4_VWS\020\n\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020\007\"\244\001\n\005S" + + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010STARTING\020" + + "\001\022\020\n\014PROVISIONING\020\002\022\n\n\006ACTIVE\020\003\022\014\n\010STOPP" + + "ING\020\004\022\013\n\007STOPPED\020\005\022\013\n\007DELETED\020\006\022\r\n\tUPGRA" + + "DING\020\007\022\020\n\014INITIALIZING\020\010\022\017\n\013REGISTERING\020" + + "\t\"S\n\010DiskType\022\031\n\025DISK_TYPE_UNSPECIFIED\020\000" + + "\022\017\n\013PD_STANDARD\020\001\022\n\n\006PD_SSD\020\002\022\017\n\013PD_BALA" + + "NCED\020\003\"E\n\016DiskEncryption\022\037\n\033DISK_ENCRYPT" + + "ION_UNSPECIFIED\020\000\022\010\n\004GMEK\020\001\022\010\n\004CMEK\020\002:O\352" + + "AL\n!notebooks.googleapis.com/Instance\022\'p" + + "rojects/{project}/instances/{instance}B\r" + + "\n\013environmentB\344\001\n\"com.google.cloud.noteb" + + "ooks.v1beta1B\rInstanceProtoP\001ZGgoogle.go" + + "lang.org/genproto/googleapis/cloud/noteb" + + "ooks/v1beta1;notebooks\252\002\036Google.Cloud.No" + + "tebooks.V1Beta1\312\002\036Google\\Cloud\\Notebooks" + + "\\V1beta1\352\002!Google::Cloud::Notebooks::V1b" + + "eta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -127,7 +126,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.notebooks.v1beta1.EnvironmentProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_cloud_notebooks_v1beta1_Instance_descriptor = getDescriptor().getMessageTypes().get(0); @@ -198,7 +196,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.notebooks.v1beta1.EnvironmentProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/environment.proto b/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/environment.proto index ceee46cd..c047877e 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/environment.proto +++ b/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/environment.proto @@ -19,7 +19,6 @@ package google.cloud.notebooks.v1beta1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1;notebooks"; option csharp_namespace = "Google.Cloud.Notebooks.V1Beta1"; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/instance.proto b/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/instance.proto index c35d8e51..c7a4e999 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/instance.proto +++ b/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/instance.proto @@ -20,7 +20,6 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/notebooks/v1beta1/environment.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.Notebooks.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1;notebooks"; diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..77627e21 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceSettings; +import com.google.cloud.notebooks.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ManagedNotebookServiceSettings managedNotebookServiceSettings = + ManagedNotebookServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create(managedNotebookServiceSettings); + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..a9112e94 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_create_setendpoint_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceSettings; +import com.google.cloud.notebooks.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ManagedNotebookServiceSettings managedNotebookServiceSettings = + ManagedNotebookServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create(managedNotebookServiceSettings); + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/AsyncCreateRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/AsyncCreateRuntime.java new file mode 100644 index 00000000..9f8960b7 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/AsyncCreateRuntime.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_createruntime_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.CreateRuntimeRequest; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.cloud.notebooks.v1.RuntimeName; +import com.google.longrunning.Operation; + +public class AsyncCreateRuntime { + + public static void main(String[] args) throws Exception { + asyncCreateRuntime(); + } + + public static void asyncCreateRuntime() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + CreateRuntimeRequest request = + CreateRuntimeRequest.newBuilder() + .setParent(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString()) + .setRuntimeId("runtimeId121455379") + .setRuntime(Runtime.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + managedNotebookServiceClient.createRuntimeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_createruntime_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/AsyncCreateRuntimeLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/AsyncCreateRuntimeLRO.java new file mode 100644 index 00000000..5375e759 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/AsyncCreateRuntimeLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_createruntime_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.CreateRuntimeRequest; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.cloud.notebooks.v1.RuntimeName; + +public class AsyncCreateRuntimeLRO { + + public static void main(String[] args) throws Exception { + asyncCreateRuntimeLRO(); + } + + public static void asyncCreateRuntimeLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + CreateRuntimeRequest request = + CreateRuntimeRequest.newBuilder() + .setParent(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString()) + .setRuntimeId("runtimeId121455379") + .setRuntime(Runtime.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + managedNotebookServiceClient.createRuntimeOperationCallable().futureCall(request); + // Do something. + Runtime response = future.get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_createruntime_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntime.java new file mode 100644 index 00000000..96392c93 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntime.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_createruntime_sync] +import com.google.cloud.notebooks.v1.CreateRuntimeRequest; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.cloud.notebooks.v1.RuntimeName; + +public class SyncCreateRuntime { + + public static void main(String[] args) throws Exception { + syncCreateRuntime(); + } + + public static void syncCreateRuntime() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + CreateRuntimeRequest request = + CreateRuntimeRequest.newBuilder() + .setParent(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString()) + .setRuntimeId("runtimeId121455379") + .setRuntime(Runtime.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Runtime response = managedNotebookServiceClient.createRuntimeAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_createruntime_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntimeRuntimenameStringRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntimeRuntimenameStringRuntime.java new file mode 100644 index 00000000..e6bebe32 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntimeRuntimenameStringRuntime.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_createruntime_runtimenamestringruntime_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.cloud.notebooks.v1.RuntimeName; + +public class SyncCreateRuntimeRuntimenameStringRuntime { + + public static void main(String[] args) throws Exception { + syncCreateRuntimeRuntimenameStringRuntime(); + } + + public static void syncCreateRuntimeRuntimenameStringRuntime() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + RuntimeName parent = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]"); + String runtimeId = "runtimeId121455379"; + Runtime runtime = Runtime.newBuilder().build(); + Runtime response = + managedNotebookServiceClient.createRuntimeAsync(parent, runtimeId, runtime).get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_createruntime_runtimenamestringruntime_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntimeStringStringRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntimeStringStringRuntime.java new file mode 100644 index 00000000..250b0b46 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntimeStringStringRuntime.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_createruntime_stringstringruntime_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.cloud.notebooks.v1.RuntimeName; + +public class SyncCreateRuntimeStringStringRuntime { + + public static void main(String[] args) throws Exception { + syncCreateRuntimeStringStringRuntime(); + } + + public static void syncCreateRuntimeStringStringRuntime() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + String parent = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString(); + String runtimeId = "runtimeId121455379"; + Runtime runtime = Runtime.newBuilder().build(); + Runtime response = + managedNotebookServiceClient.createRuntimeAsync(parent, runtimeId, runtime).get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_createruntime_stringstringruntime_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/AsyncDeleteRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/AsyncDeleteRuntime.java new file mode 100644 index 00000000..4e5b539b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/AsyncDeleteRuntime.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_deleteruntime_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.DeleteRuntimeRequest; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.RuntimeName; +import com.google.longrunning.Operation; + +public class AsyncDeleteRuntime { + + public static void main(String[] args) throws Exception { + asyncDeleteRuntime(); + } + + public static void asyncDeleteRuntime() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + DeleteRuntimeRequest request = + DeleteRuntimeRequest.newBuilder() + .setName(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + managedNotebookServiceClient.deleteRuntimeCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_deleteruntime_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/AsyncDeleteRuntimeLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/AsyncDeleteRuntimeLRO.java new file mode 100644 index 00000000..f3d006b0 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/AsyncDeleteRuntimeLRO.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_deleteruntime_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.DeleteRuntimeRequest; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.RuntimeName; +import com.google.protobuf.Empty; + +public class AsyncDeleteRuntimeLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteRuntimeLRO(); + } + + public static void asyncDeleteRuntimeLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + DeleteRuntimeRequest request = + DeleteRuntimeRequest.newBuilder() + .setName(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + managedNotebookServiceClient.deleteRuntimeOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_deleteruntime_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntime.java new file mode 100644 index 00000000..338ac6cd --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntime.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_deleteruntime_sync] +import com.google.cloud.notebooks.v1.DeleteRuntimeRequest; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.RuntimeName; +import com.google.protobuf.Empty; + +public class SyncDeleteRuntime { + + public static void main(String[] args) throws Exception { + syncDeleteRuntime(); + } + + public static void syncDeleteRuntime() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + DeleteRuntimeRequest request = + DeleteRuntimeRequest.newBuilder() + .setName(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString()) + .setRequestId("requestId693933066") + .build(); + managedNotebookServiceClient.deleteRuntimeAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_deleteruntime_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntimeRuntimename.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntimeRuntimename.java new file mode 100644 index 00000000..7cf52957 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntimeRuntimename.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_deleteruntime_runtimename_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.RuntimeName; +import com.google.protobuf.Empty; + +public class SyncDeleteRuntimeRuntimename { + + public static void main(String[] args) throws Exception { + syncDeleteRuntimeRuntimename(); + } + + public static void syncDeleteRuntimeRuntimename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + RuntimeName name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]"); + managedNotebookServiceClient.deleteRuntimeAsync(name).get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_deleteruntime_runtimename_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntimeString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntimeString.java new file mode 100644 index 00000000..b56f63fe --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntimeString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_deleteruntime_string_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.RuntimeName; +import com.google.protobuf.Empty; + +public class SyncDeleteRuntimeString { + + public static void main(String[] args) throws Exception { + syncDeleteRuntimeString(); + } + + public static void syncDeleteRuntimeString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + String name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString(); + managedNotebookServiceClient.deleteRuntimeAsync(name).get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_deleteruntime_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/AsyncGetRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/AsyncGetRuntime.java new file mode 100644 index 00000000..2211f720 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/AsyncGetRuntime.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_getruntime_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.GetRuntimeRequest; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.cloud.notebooks.v1.RuntimeName; + +public class AsyncGetRuntime { + + public static void main(String[] args) throws Exception { + asyncGetRuntime(); + } + + public static void asyncGetRuntime() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + GetRuntimeRequest request = + GetRuntimeRequest.newBuilder() + .setName(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString()) + .build(); + ApiFuture future = + managedNotebookServiceClient.getRuntimeCallable().futureCall(request); + // Do something. + Runtime response = future.get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_getruntime_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntime.java new file mode 100644 index 00000000..36dbe035 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntime.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_getruntime_sync] +import com.google.cloud.notebooks.v1.GetRuntimeRequest; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.cloud.notebooks.v1.RuntimeName; + +public class SyncGetRuntime { + + public static void main(String[] args) throws Exception { + syncGetRuntime(); + } + + public static void syncGetRuntime() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + GetRuntimeRequest request = + GetRuntimeRequest.newBuilder() + .setName(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString()) + .build(); + Runtime response = managedNotebookServiceClient.getRuntime(request); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_getruntime_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntimeRuntimename.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntimeRuntimename.java new file mode 100644 index 00000000..0cb61a42 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntimeRuntimename.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_getruntime_runtimename_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.cloud.notebooks.v1.RuntimeName; + +public class SyncGetRuntimeRuntimename { + + public static void main(String[] args) throws Exception { + syncGetRuntimeRuntimename(); + } + + public static void syncGetRuntimeRuntimename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + RuntimeName name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]"); + Runtime response = managedNotebookServiceClient.getRuntime(name); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_getruntime_runtimename_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntimeString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntimeString.java new file mode 100644 index 00000000..15e52fa5 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntimeString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_getruntime_string_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.cloud.notebooks.v1.RuntimeName; + +public class SyncGetRuntimeString { + + public static void main(String[] args) throws Exception { + syncGetRuntimeString(); + } + + public static void syncGetRuntimeString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + String name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString(); + Runtime response = managedNotebookServiceClient.getRuntime(name); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_getruntime_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/AsyncListRuntimes.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/AsyncListRuntimes.java new file mode 100644 index 00000000..873921d4 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/AsyncListRuntimes.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_listruntimes_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.ListRuntimesRequest; +import com.google.cloud.notebooks.v1.LocationName; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; + +public class AsyncListRuntimes { + + public static void main(String[] args) throws Exception { + asyncListRuntimes(); + } + + public static void asyncListRuntimes() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + ListRuntimesRequest request = + ListRuntimesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + managedNotebookServiceClient.listRuntimesPagedCallable().futureCall(request); + // Do something. + for (Runtime element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_listruntimes_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/AsyncListRuntimesPaged.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/AsyncListRuntimesPaged.java new file mode 100644 index 00000000..5fceca73 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/AsyncListRuntimesPaged.java @@ -0,0 +1,60 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_listruntimes_paged_async] +import com.google.cloud.notebooks.v1.ListRuntimesRequest; +import com.google.cloud.notebooks.v1.ListRuntimesResponse; +import com.google.cloud.notebooks.v1.LocationName; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.common.base.Strings; + +public class AsyncListRuntimesPaged { + + public static void main(String[] args) throws Exception { + asyncListRuntimesPaged(); + } + + public static void asyncListRuntimesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + ListRuntimesRequest request = + ListRuntimesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListRuntimesResponse response = + managedNotebookServiceClient.listRuntimesCallable().call(request); + for (Runtime element : response.getRuntimesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_listruntimes_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimes.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimes.java new file mode 100644 index 00000000..6c7e5d9b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimes.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_listruntimes_sync] +import com.google.cloud.notebooks.v1.ListRuntimesRequest; +import com.google.cloud.notebooks.v1.LocationName; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; + +public class SyncListRuntimes { + + public static void main(String[] args) throws Exception { + syncListRuntimes(); + } + + public static void syncListRuntimes() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + ListRuntimesRequest request = + ListRuntimesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Runtime element : managedNotebookServiceClient.listRuntimes(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_listruntimes_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimesLocationname.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimesLocationname.java new file mode 100644 index 00000000..f176e4b3 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimesLocationname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_listruntimes_locationname_sync] +import com.google.cloud.notebooks.v1.LocationName; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; + +public class SyncListRuntimesLocationname { + + public static void main(String[] args) throws Exception { + syncListRuntimesLocationname(); + } + + public static void syncListRuntimesLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Runtime element : managedNotebookServiceClient.listRuntimes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_listruntimes_locationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimesString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimesString.java new file mode 100644 index 00000000..d3d510f9 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimesString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_listruntimes_string_sync] +import com.google.cloud.notebooks.v1.LocationName; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; + +public class SyncListRuntimesString { + + public static void main(String[] args) throws Exception { + syncListRuntimesString(); + } + + public static void syncListRuntimesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Runtime element : managedNotebookServiceClient.listRuntimes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_listruntimes_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/AsyncRefreshRuntimeTokenInternal.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/AsyncRefreshRuntimeTokenInternal.java new file mode 100644 index 00000000..d64dddeb --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/AsyncRefreshRuntimeTokenInternal.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_refreshruntimetokeninternal_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest; +import com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse; +import com.google.cloud.notebooks.v1.RuntimeName; + +public class AsyncRefreshRuntimeTokenInternal { + + public static void main(String[] args) throws Exception { + asyncRefreshRuntimeTokenInternal(); + } + + public static void asyncRefreshRuntimeTokenInternal() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + RefreshRuntimeTokenInternalRequest request = + RefreshRuntimeTokenInternalRequest.newBuilder() + .setName(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString()) + .setVmId("vmId3622450") + .build(); + ApiFuture future = + managedNotebookServiceClient.refreshRuntimeTokenInternalCallable().futureCall(request); + // Do something. + RefreshRuntimeTokenInternalResponse response = future.get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_refreshruntimetokeninternal_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternal.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternal.java new file mode 100644 index 00000000..0d57840a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternal.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_refreshruntimetokeninternal_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest; +import com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse; +import com.google.cloud.notebooks.v1.RuntimeName; + +public class SyncRefreshRuntimeTokenInternal { + + public static void main(String[] args) throws Exception { + syncRefreshRuntimeTokenInternal(); + } + + public static void syncRefreshRuntimeTokenInternal() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + RefreshRuntimeTokenInternalRequest request = + RefreshRuntimeTokenInternalRequest.newBuilder() + .setName(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString()) + .setVmId("vmId3622450") + .build(); + RefreshRuntimeTokenInternalResponse response = + managedNotebookServiceClient.refreshRuntimeTokenInternal(request); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_refreshruntimetokeninternal_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalRuntimenameString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalRuntimenameString.java new file mode 100644 index 00000000..0ecea14a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalRuntimenameString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_refreshruntimetokeninternal_runtimenamestring_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse; +import com.google.cloud.notebooks.v1.RuntimeName; + +public class SyncRefreshRuntimeTokenInternalRuntimenameString { + + public static void main(String[] args) throws Exception { + syncRefreshRuntimeTokenInternalRuntimenameString(); + } + + public static void syncRefreshRuntimeTokenInternalRuntimenameString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + RuntimeName name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]"); + String vmId = "vmId3622450"; + RefreshRuntimeTokenInternalResponse response = + managedNotebookServiceClient.refreshRuntimeTokenInternal(name, vmId); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_refreshruntimetokeninternal_runtimenamestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalStringString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalStringString.java new file mode 100644 index 00000000..ff710db6 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalStringString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_refreshruntimetokeninternal_stringstring_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse; +import com.google.cloud.notebooks.v1.RuntimeName; + +public class SyncRefreshRuntimeTokenInternalStringString { + + public static void main(String[] args) throws Exception { + syncRefreshRuntimeTokenInternalStringString(); + } + + public static void syncRefreshRuntimeTokenInternalStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + String name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString(); + String vmId = "vmId3622450"; + RefreshRuntimeTokenInternalResponse response = + managedNotebookServiceClient.refreshRuntimeTokenInternal(name, vmId); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_refreshruntimetokeninternal_stringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/AsyncReportRuntimeEvent.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/AsyncReportRuntimeEvent.java new file mode 100644 index 00000000..35463ba3 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/AsyncReportRuntimeEvent.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_reportruntimeevent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.Event; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.ReportRuntimeEventRequest; +import com.google.cloud.notebooks.v1.RuntimeName; +import com.google.longrunning.Operation; + +public class AsyncReportRuntimeEvent { + + public static void main(String[] args) throws Exception { + asyncReportRuntimeEvent(); + } + + public static void asyncReportRuntimeEvent() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + ReportRuntimeEventRequest request = + ReportRuntimeEventRequest.newBuilder() + .setName(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString()) + .setVmId("vmId3622450") + .setEvent(Event.newBuilder().build()) + .build(); + ApiFuture future = + managedNotebookServiceClient.reportRuntimeEventCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_reportruntimeevent_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/AsyncReportRuntimeEventLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/AsyncReportRuntimeEventLRO.java new file mode 100644 index 00000000..4d999420 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/AsyncReportRuntimeEventLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_reportruntimeevent_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.Event; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.ReportRuntimeEventRequest; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.cloud.notebooks.v1.RuntimeName; + +public class AsyncReportRuntimeEventLRO { + + public static void main(String[] args) throws Exception { + asyncReportRuntimeEventLRO(); + } + + public static void asyncReportRuntimeEventLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + ReportRuntimeEventRequest request = + ReportRuntimeEventRequest.newBuilder() + .setName(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString()) + .setVmId("vmId3622450") + .setEvent(Event.newBuilder().build()) + .build(); + OperationFuture future = + managedNotebookServiceClient.reportRuntimeEventOperationCallable().futureCall(request); + // Do something. + Runtime response = future.get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_reportruntimeevent_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEvent.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEvent.java new file mode 100644 index 00000000..6c7910b9 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEvent.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_reportruntimeevent_sync] +import com.google.cloud.notebooks.v1.Event; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.ReportRuntimeEventRequest; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.cloud.notebooks.v1.RuntimeName; + +public class SyncReportRuntimeEvent { + + public static void main(String[] args) throws Exception { + syncReportRuntimeEvent(); + } + + public static void syncReportRuntimeEvent() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + ReportRuntimeEventRequest request = + ReportRuntimeEventRequest.newBuilder() + .setName(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString()) + .setVmId("vmId3622450") + .setEvent(Event.newBuilder().build()) + .build(); + Runtime response = managedNotebookServiceClient.reportRuntimeEventAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_reportruntimeevent_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEventRuntimename.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEventRuntimename.java new file mode 100644 index 00000000..869ce7c0 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEventRuntimename.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_reportruntimeevent_runtimename_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.cloud.notebooks.v1.RuntimeName; + +public class SyncReportRuntimeEventRuntimename { + + public static void main(String[] args) throws Exception { + syncReportRuntimeEventRuntimename(); + } + + public static void syncReportRuntimeEventRuntimename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + RuntimeName name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]"); + Runtime response = managedNotebookServiceClient.reportRuntimeEventAsync(name).get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_reportruntimeevent_runtimename_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEventString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEventString.java new file mode 100644 index 00000000..fc80b866 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEventString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_reportruntimeevent_string_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.cloud.notebooks.v1.RuntimeName; + +public class SyncReportRuntimeEventString { + + public static void main(String[] args) throws Exception { + syncReportRuntimeEventString(); + } + + public static void syncReportRuntimeEventString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + String name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString(); + Runtime response = managedNotebookServiceClient.reportRuntimeEventAsync(name).get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_reportruntimeevent_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/AsyncResetRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/AsyncResetRuntime.java new file mode 100644 index 00000000..e1a023a5 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/AsyncResetRuntime.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_resetruntime_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.ResetRuntimeRequest; +import com.google.longrunning.Operation; + +public class AsyncResetRuntime { + + public static void main(String[] args) throws Exception { + asyncResetRuntime(); + } + + public static void asyncResetRuntime() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + ResetRuntimeRequest request = + ResetRuntimeRequest.newBuilder() + .setName("name3373707") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + managedNotebookServiceClient.resetRuntimeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_resetruntime_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/AsyncResetRuntimeLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/AsyncResetRuntimeLRO.java new file mode 100644 index 00000000..3ccbcf6b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/AsyncResetRuntimeLRO.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_resetruntime_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.ResetRuntimeRequest; +import com.google.cloud.notebooks.v1.Runtime; + +public class AsyncResetRuntimeLRO { + + public static void main(String[] args) throws Exception { + asyncResetRuntimeLRO(); + } + + public static void asyncResetRuntimeLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + ResetRuntimeRequest request = + ResetRuntimeRequest.newBuilder() + .setName("name3373707") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + managedNotebookServiceClient.resetRuntimeOperationCallable().futureCall(request); + // Do something. + Runtime response = future.get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_resetruntime_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/SyncResetRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/SyncResetRuntime.java new file mode 100644 index 00000000..e45929ca --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/SyncResetRuntime.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_resetruntime_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.ResetRuntimeRequest; +import com.google.cloud.notebooks.v1.Runtime; + +public class SyncResetRuntime { + + public static void main(String[] args) throws Exception { + syncResetRuntime(); + } + + public static void syncResetRuntime() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + ResetRuntimeRequest request = + ResetRuntimeRequest.newBuilder() + .setName("name3373707") + .setRequestId("requestId693933066") + .build(); + Runtime response = managedNotebookServiceClient.resetRuntimeAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_resetruntime_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/SyncResetRuntimeString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/SyncResetRuntimeString.java new file mode 100644 index 00000000..a327697b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/SyncResetRuntimeString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_resetruntime_string_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; + +public class SyncResetRuntimeString { + + public static void main(String[] args) throws Exception { + syncResetRuntimeString(); + } + + public static void syncResetRuntimeString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + String name = "name3373707"; + Runtime response = managedNotebookServiceClient.resetRuntimeAsync(name).get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_resetruntime_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/AsyncStartRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/AsyncStartRuntime.java new file mode 100644 index 00000000..3a0bb624 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/AsyncStartRuntime.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_startruntime_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.StartRuntimeRequest; +import com.google.longrunning.Operation; + +public class AsyncStartRuntime { + + public static void main(String[] args) throws Exception { + asyncStartRuntime(); + } + + public static void asyncStartRuntime() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + StartRuntimeRequest request = + StartRuntimeRequest.newBuilder() + .setName("name3373707") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + managedNotebookServiceClient.startRuntimeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_startruntime_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/AsyncStartRuntimeLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/AsyncStartRuntimeLRO.java new file mode 100644 index 00000000..f297db9a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/AsyncStartRuntimeLRO.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_startruntime_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.cloud.notebooks.v1.StartRuntimeRequest; + +public class AsyncStartRuntimeLRO { + + public static void main(String[] args) throws Exception { + asyncStartRuntimeLRO(); + } + + public static void asyncStartRuntimeLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + StartRuntimeRequest request = + StartRuntimeRequest.newBuilder() + .setName("name3373707") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + managedNotebookServiceClient.startRuntimeOperationCallable().futureCall(request); + // Do something. + Runtime response = future.get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_startruntime_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/SyncStartRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/SyncStartRuntime.java new file mode 100644 index 00000000..e495adee --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/SyncStartRuntime.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_startruntime_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.cloud.notebooks.v1.StartRuntimeRequest; + +public class SyncStartRuntime { + + public static void main(String[] args) throws Exception { + syncStartRuntime(); + } + + public static void syncStartRuntime() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + StartRuntimeRequest request = + StartRuntimeRequest.newBuilder() + .setName("name3373707") + .setRequestId("requestId693933066") + .build(); + Runtime response = managedNotebookServiceClient.startRuntimeAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_startruntime_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/SyncStartRuntimeString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/SyncStartRuntimeString.java new file mode 100644 index 00000000..7aa6a35d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/SyncStartRuntimeString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_startruntime_string_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; + +public class SyncStartRuntimeString { + + public static void main(String[] args) throws Exception { + syncStartRuntimeString(); + } + + public static void syncStartRuntimeString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + String name = "name3373707"; + Runtime response = managedNotebookServiceClient.startRuntimeAsync(name).get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_startruntime_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/AsyncStopRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/AsyncStopRuntime.java new file mode 100644 index 00000000..70277cec --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/AsyncStopRuntime.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_stopruntime_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.StopRuntimeRequest; +import com.google.longrunning.Operation; + +public class AsyncStopRuntime { + + public static void main(String[] args) throws Exception { + asyncStopRuntime(); + } + + public static void asyncStopRuntime() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + StopRuntimeRequest request = + StopRuntimeRequest.newBuilder() + .setName("name3373707") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + managedNotebookServiceClient.stopRuntimeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_stopruntime_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/AsyncStopRuntimeLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/AsyncStopRuntimeLRO.java new file mode 100644 index 00000000..6af041ef --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/AsyncStopRuntimeLRO.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_stopruntime_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.cloud.notebooks.v1.StopRuntimeRequest; + +public class AsyncStopRuntimeLRO { + + public static void main(String[] args) throws Exception { + asyncStopRuntimeLRO(); + } + + public static void asyncStopRuntimeLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + StopRuntimeRequest request = + StopRuntimeRequest.newBuilder() + .setName("name3373707") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + managedNotebookServiceClient.stopRuntimeOperationCallable().futureCall(request); + // Do something. + Runtime response = future.get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_stopruntime_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/SyncStopRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/SyncStopRuntime.java new file mode 100644 index 00000000..534dacfd --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/SyncStopRuntime.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_stopruntime_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.cloud.notebooks.v1.StopRuntimeRequest; + +public class SyncStopRuntime { + + public static void main(String[] args) throws Exception { + syncStopRuntime(); + } + + public static void syncStopRuntime() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + StopRuntimeRequest request = + StopRuntimeRequest.newBuilder() + .setName("name3373707") + .setRequestId("requestId693933066") + .build(); + Runtime response = managedNotebookServiceClient.stopRuntimeAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_stopruntime_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/SyncStopRuntimeString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/SyncStopRuntimeString.java new file mode 100644 index 00000000..a29d2c0b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/SyncStopRuntimeString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_stopruntime_string_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; + +public class SyncStopRuntimeString { + + public static void main(String[] args) throws Exception { + syncStopRuntimeString(); + } + + public static void syncStopRuntimeString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + String name = "name3373707"; + Runtime response = managedNotebookServiceClient.stopRuntimeAsync(name).get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_stopruntime_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/AsyncSwitchRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/AsyncSwitchRuntime.java new file mode 100644 index 00000000..c7bb27ed --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/AsyncSwitchRuntime.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_switchruntime_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig; +import com.google.cloud.notebooks.v1.SwitchRuntimeRequest; +import com.google.longrunning.Operation; + +public class AsyncSwitchRuntime { + + public static void main(String[] args) throws Exception { + asyncSwitchRuntime(); + } + + public static void asyncSwitchRuntime() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + SwitchRuntimeRequest request = + SwitchRuntimeRequest.newBuilder() + .setName("name3373707") + .setMachineType("machineType-218117087") + .setAcceleratorConfig(RuntimeAcceleratorConfig.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + managedNotebookServiceClient.switchRuntimeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_switchruntime_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/AsyncSwitchRuntimeLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/AsyncSwitchRuntimeLRO.java new file mode 100644 index 00000000..70e313f2 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/AsyncSwitchRuntimeLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_switchruntime_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig; +import com.google.cloud.notebooks.v1.SwitchRuntimeRequest; + +public class AsyncSwitchRuntimeLRO { + + public static void main(String[] args) throws Exception { + asyncSwitchRuntimeLRO(); + } + + public static void asyncSwitchRuntimeLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + SwitchRuntimeRequest request = + SwitchRuntimeRequest.newBuilder() + .setName("name3373707") + .setMachineType("machineType-218117087") + .setAcceleratorConfig(RuntimeAcceleratorConfig.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + managedNotebookServiceClient.switchRuntimeOperationCallable().futureCall(request); + // Do something. + Runtime response = future.get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_switchruntime_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/SyncSwitchRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/SyncSwitchRuntime.java new file mode 100644 index 00000000..9b7b1bb0 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/SyncSwitchRuntime.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_switchruntime_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; +import com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig; +import com.google.cloud.notebooks.v1.SwitchRuntimeRequest; + +public class SyncSwitchRuntime { + + public static void main(String[] args) throws Exception { + syncSwitchRuntime(); + } + + public static void syncSwitchRuntime() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + SwitchRuntimeRequest request = + SwitchRuntimeRequest.newBuilder() + .setName("name3373707") + .setMachineType("machineType-218117087") + .setAcceleratorConfig(RuntimeAcceleratorConfig.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Runtime response = managedNotebookServiceClient.switchRuntimeAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_switchruntime_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/SyncSwitchRuntimeString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/SyncSwitchRuntimeString.java new file mode 100644 index 00000000..4ecfaeec --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/SyncSwitchRuntimeString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookserviceclient_switchruntime_string_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceClient; +import com.google.cloud.notebooks.v1.Runtime; + +public class SyncSwitchRuntimeString { + + public static void main(String[] args) throws Exception { + syncSwitchRuntimeString(); + } + + public static void syncSwitchRuntimeString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ManagedNotebookServiceClient managedNotebookServiceClient = + ManagedNotebookServiceClient.create()) { + String name = "name3373707"; + Runtime response = managedNotebookServiceClient.switchRuntimeAsync(name).get(); + } + } +} +// [END notebooks_v1_generated_managednotebookserviceclient_switchruntime_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservicesettings/getruntime/SyncGetRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservicesettings/getruntime/SyncGetRuntime.java new file mode 100644 index 00000000..ef7948c5 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservicesettings/getruntime/SyncGetRuntime.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_managednotebookservicesettings_getruntime_sync] +import com.google.cloud.notebooks.v1.ManagedNotebookServiceSettings; +import java.time.Duration; + +public class SyncGetRuntime { + + public static void main(String[] args) throws Exception { + syncGetRuntime(); + } + + public static void syncGetRuntime() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ManagedNotebookServiceSettings.Builder managedNotebookServiceSettingsBuilder = + ManagedNotebookServiceSettings.newBuilder(); + managedNotebookServiceSettingsBuilder + .getRuntimeSettings() + .setRetrySettings( + managedNotebookServiceSettingsBuilder + .getRuntimeSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ManagedNotebookServiceSettings managedNotebookServiceSettings = + managedNotebookServiceSettingsBuilder.build(); + } +} +// [END notebooks_v1_generated_managednotebookservicesettings_getruntime_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..3d5e2538 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.NotebookServiceSettings; +import com.google.cloud.notebooks.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + NotebookServiceSettings notebookServiceSettings = + NotebookServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + NotebookServiceClient notebookServiceClient = + NotebookServiceClient.create(notebookServiceSettings); + } +} +// [END notebooks_v1_generated_notebookserviceclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..307530e4 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_create_setendpoint_sync] +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.NotebookServiceSettings; +import com.google.cloud.notebooks.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + NotebookServiceSettings notebookServiceSettings = + NotebookServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + NotebookServiceClient notebookServiceClient = + NotebookServiceClient.create(notebookServiceSettings); + } +} +// [END notebooks_v1_generated_notebookserviceclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/AsyncCreateEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/AsyncCreateEnvironment.java new file mode 100644 index 00000000..8b6196b8 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/AsyncCreateEnvironment.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_createenvironment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.CreateEnvironmentRequest; +import com.google.cloud.notebooks.v1.Environment; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCreateEnvironment { + + public static void main(String[] args) throws Exception { + asyncCreateEnvironment(); + } + + public static void asyncCreateEnvironment() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + CreateEnvironmentRequest request = + CreateEnvironmentRequest.newBuilder() + .setParent("parent-995424086") + .setEnvironmentId("environmentId-950205810") + .setEnvironment(Environment.newBuilder().build()) + .build(); + ApiFuture future = + notebookServiceClient.createEnvironmentCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_createenvironment_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/AsyncCreateEnvironmentLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/AsyncCreateEnvironmentLRO.java new file mode 100644 index 00000000..95d6611f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/AsyncCreateEnvironmentLRO.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_createenvironment_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.CreateEnvironmentRequest; +import com.google.cloud.notebooks.v1.Environment; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; + +public class AsyncCreateEnvironmentLRO { + + public static void main(String[] args) throws Exception { + asyncCreateEnvironmentLRO(); + } + + public static void asyncCreateEnvironmentLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + CreateEnvironmentRequest request = + CreateEnvironmentRequest.newBuilder() + .setParent("parent-995424086") + .setEnvironmentId("environmentId-950205810") + .setEnvironment(Environment.newBuilder().build()) + .build(); + OperationFuture future = + notebookServiceClient.createEnvironmentOperationCallable().futureCall(request); + // Do something. + Environment response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_createenvironment_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/SyncCreateEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/SyncCreateEnvironment.java new file mode 100644 index 00000000..2305e62a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/SyncCreateEnvironment.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_createenvironment_sync] +import com.google.cloud.notebooks.v1.CreateEnvironmentRequest; +import com.google.cloud.notebooks.v1.Environment; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncCreateEnvironment { + + public static void main(String[] args) throws Exception { + syncCreateEnvironment(); + } + + public static void syncCreateEnvironment() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + CreateEnvironmentRequest request = + CreateEnvironmentRequest.newBuilder() + .setParent("parent-995424086") + .setEnvironmentId("environmentId-950205810") + .setEnvironment(Environment.newBuilder().build()) + .build(); + Environment response = notebookServiceClient.createEnvironmentAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_createenvironment_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/SyncCreateEnvironmentStringEnvironmentString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/SyncCreateEnvironmentStringEnvironmentString.java new file mode 100644 index 00000000..98d18b21 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/SyncCreateEnvironmentStringEnvironmentString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_createenvironment_stringenvironmentstring_sync] +import com.google.cloud.notebooks.v1.Environment; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncCreateEnvironmentStringEnvironmentString { + + public static void main(String[] args) throws Exception { + syncCreateEnvironmentStringEnvironmentString(); + } + + public static void syncCreateEnvironmentStringEnvironmentString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + String parent = "parent-995424086"; + Environment environment = Environment.newBuilder().build(); + String environmentId = "environmentId-950205810"; + Environment response = + notebookServiceClient.createEnvironmentAsync(parent, environment, environmentId).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_createenvironment_stringenvironmentstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/AsyncCreateExecution.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/AsyncCreateExecution.java new file mode 100644 index 00000000..e3591866 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/AsyncCreateExecution.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_createexecution_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.CreateExecutionRequest; +import com.google.cloud.notebooks.v1.Execution; +import com.google.cloud.notebooks.v1.ExecutionName; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCreateExecution { + + public static void main(String[] args) throws Exception { + asyncCreateExecution(); + } + + public static void asyncCreateExecution() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + CreateExecutionRequest request = + CreateExecutionRequest.newBuilder() + .setParent(ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString()) + .setExecutionId("executionId-454906285") + .setExecution(Execution.newBuilder().build()) + .build(); + ApiFuture future = + notebookServiceClient.createExecutionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_createexecution_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/AsyncCreateExecutionLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/AsyncCreateExecutionLRO.java new file mode 100644 index 00000000..9b8c9c3f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/AsyncCreateExecutionLRO.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_createexecution_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.CreateExecutionRequest; +import com.google.cloud.notebooks.v1.Execution; +import com.google.cloud.notebooks.v1.ExecutionName; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; + +public class AsyncCreateExecutionLRO { + + public static void main(String[] args) throws Exception { + asyncCreateExecutionLRO(); + } + + public static void asyncCreateExecutionLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + CreateExecutionRequest request = + CreateExecutionRequest.newBuilder() + .setParent(ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString()) + .setExecutionId("executionId-454906285") + .setExecution(Execution.newBuilder().build()) + .build(); + OperationFuture future = + notebookServiceClient.createExecutionOperationCallable().futureCall(request); + // Do something. + Execution response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_createexecution_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecution.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecution.java new file mode 100644 index 00000000..9f7d12d2 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecution.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_createexecution_sync] +import com.google.cloud.notebooks.v1.CreateExecutionRequest; +import com.google.cloud.notebooks.v1.Execution; +import com.google.cloud.notebooks.v1.ExecutionName; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncCreateExecution { + + public static void main(String[] args) throws Exception { + syncCreateExecution(); + } + + public static void syncCreateExecution() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + CreateExecutionRequest request = + CreateExecutionRequest.newBuilder() + .setParent(ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString()) + .setExecutionId("executionId-454906285") + .setExecution(Execution.newBuilder().build()) + .build(); + Execution response = notebookServiceClient.createExecutionAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_createexecution_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecutionExecutionnameExecutionString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecutionExecutionnameExecutionString.java new file mode 100644 index 00000000..ce190296 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecutionExecutionnameExecutionString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_createexecution_executionnameexecutionstring_sync] +import com.google.cloud.notebooks.v1.Execution; +import com.google.cloud.notebooks.v1.ExecutionName; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncCreateExecutionExecutionnameExecutionString { + + public static void main(String[] args) throws Exception { + syncCreateExecutionExecutionnameExecutionString(); + } + + public static void syncCreateExecutionExecutionnameExecutionString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ExecutionName parent = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]"); + Execution execution = Execution.newBuilder().build(); + String executionId = "executionId-454906285"; + Execution response = + notebookServiceClient.createExecutionAsync(parent, execution, executionId).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_createexecution_executionnameexecutionstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecutionStringExecutionString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecutionStringExecutionString.java new file mode 100644 index 00000000..104acf4f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecutionStringExecutionString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_createexecution_stringexecutionstring_sync] +import com.google.cloud.notebooks.v1.Execution; +import com.google.cloud.notebooks.v1.ExecutionName; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncCreateExecutionStringExecutionString { + + public static void main(String[] args) throws Exception { + syncCreateExecutionStringExecutionString(); + } + + public static void syncCreateExecutionStringExecutionString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + String parent = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString(); + Execution execution = Execution.newBuilder().build(); + String executionId = "executionId-454906285"; + Execution response = + notebookServiceClient.createExecutionAsync(parent, execution, executionId).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_createexecution_stringexecutionstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/AsyncCreateInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/AsyncCreateInstance.java new file mode 100644 index 00000000..84a89954 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/AsyncCreateInstance.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_createinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.CreateInstanceRequest; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCreateInstance { + + public static void main(String[] args) throws Exception { + asyncCreateInstance(); + } + + public static void asyncCreateInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + CreateInstanceRequest request = + CreateInstanceRequest.newBuilder() + .setParent("parent-995424086") + .setInstanceId("instanceId902024336") + .setInstance(Instance.newBuilder().build()) + .build(); + ApiFuture future = + notebookServiceClient.createInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_createinstance_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/AsyncCreateInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/AsyncCreateInstanceLRO.java new file mode 100644 index 00000000..f14beb06 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/AsyncCreateInstanceLRO.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_createinstance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.CreateInstanceRequest; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; + +public class AsyncCreateInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncCreateInstanceLRO(); + } + + public static void asyncCreateInstanceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + CreateInstanceRequest request = + CreateInstanceRequest.newBuilder() + .setParent("parent-995424086") + .setInstanceId("instanceId902024336") + .setInstance(Instance.newBuilder().build()) + .build(); + OperationFuture future = + notebookServiceClient.createInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_createinstance_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/SyncCreateInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/SyncCreateInstance.java new file mode 100644 index 00000000..957f989d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/SyncCreateInstance.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_createinstance_sync] +import com.google.cloud.notebooks.v1.CreateInstanceRequest; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncCreateInstance { + + public static void main(String[] args) throws Exception { + syncCreateInstance(); + } + + public static void syncCreateInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + CreateInstanceRequest request = + CreateInstanceRequest.newBuilder() + .setParent("parent-995424086") + .setInstanceId("instanceId902024336") + .setInstance(Instance.newBuilder().build()) + .build(); + Instance response = notebookServiceClient.createInstanceAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_createinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/SyncCreateInstanceStringInstanceString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/SyncCreateInstanceStringInstanceString.java new file mode 100644 index 00000000..5cdec53b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/SyncCreateInstanceStringInstanceString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_createinstance_stringinstancestring_sync] +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncCreateInstanceStringInstanceString { + + public static void main(String[] args) throws Exception { + syncCreateInstanceStringInstanceString(); + } + + public static void syncCreateInstanceStringInstanceString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + String parent = "parent-995424086"; + Instance instance = Instance.newBuilder().build(); + String instanceId = "instanceId902024336"; + Instance response = + notebookServiceClient.createInstanceAsync(parent, instance, instanceId).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_createinstance_stringinstancestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/AsyncCreateSchedule.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/AsyncCreateSchedule.java new file mode 100644 index 00000000..3eae5ca2 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/AsyncCreateSchedule.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_createschedule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.CreateScheduleRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.Schedule; +import com.google.cloud.notebooks.v1.ScheduleName; +import com.google.longrunning.Operation; + +public class AsyncCreateSchedule { + + public static void main(String[] args) throws Exception { + asyncCreateSchedule(); + } + + public static void asyncCreateSchedule() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + CreateScheduleRequest request = + CreateScheduleRequest.newBuilder() + .setParent(ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString()) + .setScheduleId("scheduleId-687058414") + .setSchedule(Schedule.newBuilder().build()) + .build(); + ApiFuture future = + notebookServiceClient.createScheduleCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_createschedule_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/AsyncCreateScheduleLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/AsyncCreateScheduleLRO.java new file mode 100644 index 00000000..67bc1236 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/AsyncCreateScheduleLRO.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_createschedule_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.CreateScheduleRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.Schedule; +import com.google.cloud.notebooks.v1.ScheduleName; + +public class AsyncCreateScheduleLRO { + + public static void main(String[] args) throws Exception { + asyncCreateScheduleLRO(); + } + + public static void asyncCreateScheduleLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + CreateScheduleRequest request = + CreateScheduleRequest.newBuilder() + .setParent(ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString()) + .setScheduleId("scheduleId-687058414") + .setSchedule(Schedule.newBuilder().build()) + .build(); + OperationFuture future = + notebookServiceClient.createScheduleOperationCallable().futureCall(request); + // Do something. + Schedule response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_createschedule_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateSchedule.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateSchedule.java new file mode 100644 index 00000000..8c199c0c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateSchedule.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_createschedule_sync] +import com.google.cloud.notebooks.v1.CreateScheduleRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.Schedule; +import com.google.cloud.notebooks.v1.ScheduleName; + +public class SyncCreateSchedule { + + public static void main(String[] args) throws Exception { + syncCreateSchedule(); + } + + public static void syncCreateSchedule() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + CreateScheduleRequest request = + CreateScheduleRequest.newBuilder() + .setParent(ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString()) + .setScheduleId("scheduleId-687058414") + .setSchedule(Schedule.newBuilder().build()) + .build(); + Schedule response = notebookServiceClient.createScheduleAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_createschedule_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateScheduleSchedulenameScheduleString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateScheduleSchedulenameScheduleString.java new file mode 100644 index 00000000..39682192 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateScheduleSchedulenameScheduleString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_createschedule_schedulenameschedulestring_sync] +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.Schedule; +import com.google.cloud.notebooks.v1.ScheduleName; + +public class SyncCreateScheduleSchedulenameScheduleString { + + public static void main(String[] args) throws Exception { + syncCreateScheduleSchedulenameScheduleString(); + } + + public static void syncCreateScheduleSchedulenameScheduleString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ScheduleName parent = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]"); + Schedule schedule = Schedule.newBuilder().build(); + String scheduleId = "scheduleId-687058414"; + Schedule response = + notebookServiceClient.createScheduleAsync(parent, schedule, scheduleId).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_createschedule_schedulenameschedulestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateScheduleStringScheduleString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateScheduleStringScheduleString.java new file mode 100644 index 00000000..a45c62a8 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateScheduleStringScheduleString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_createschedule_stringschedulestring_sync] +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.Schedule; +import com.google.cloud.notebooks.v1.ScheduleName; + +public class SyncCreateScheduleStringScheduleString { + + public static void main(String[] args) throws Exception { + syncCreateScheduleStringScheduleString(); + } + + public static void syncCreateScheduleStringScheduleString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + String parent = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString(); + Schedule schedule = Schedule.newBuilder().build(); + String scheduleId = "scheduleId-687058414"; + Schedule response = + notebookServiceClient.createScheduleAsync(parent, schedule, scheduleId).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_createschedule_stringschedulestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironment.java new file mode 100644 index 00000000..54d676e8 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironment.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_deleteenvironment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.DeleteEnvironmentRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteEnvironment { + + public static void main(String[] args) throws Exception { + asyncDeleteEnvironment(); + } + + public static void asyncDeleteEnvironment() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + DeleteEnvironmentRequest request = + DeleteEnvironmentRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + notebookServiceClient.deleteEnvironmentCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_deleteenvironment_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironmentLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironmentLRO.java new file mode 100644 index 00000000..2826c1e7 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironmentLRO.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_deleteenvironment_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.DeleteEnvironmentRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteEnvironmentLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteEnvironmentLRO(); + } + + public static void asyncDeleteEnvironmentLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + DeleteEnvironmentRequest request = + DeleteEnvironmentRequest.newBuilder().setName("name3373707").build(); + OperationFuture future = + notebookServiceClient.deleteEnvironmentOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_deleteenvironment_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironment.java new file mode 100644 index 00000000..99e96ab7 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironment.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_deleteenvironment_sync] +import com.google.cloud.notebooks.v1.DeleteEnvironmentRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteEnvironment { + + public static void main(String[] args) throws Exception { + syncDeleteEnvironment(); + } + + public static void syncDeleteEnvironment() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + DeleteEnvironmentRequest request = + DeleteEnvironmentRequest.newBuilder().setName("name3373707").build(); + notebookServiceClient.deleteEnvironmentAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_deleteenvironment_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironmentString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironmentString.java new file mode 100644 index 00000000..7ba9e71e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironmentString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_deleteenvironment_string_sync] +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteEnvironmentString { + + public static void main(String[] args) throws Exception { + syncDeleteEnvironmentString(); + } + + public static void syncDeleteEnvironmentString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + String name = "name3373707"; + notebookServiceClient.deleteEnvironmentAsync(name).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_deleteenvironment_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/AsyncDeleteExecution.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/AsyncDeleteExecution.java new file mode 100644 index 00000000..fd498a2d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/AsyncDeleteExecution.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_deleteexecution_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.DeleteExecutionRequest; +import com.google.cloud.notebooks.v1.ExecutionName; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteExecution { + + public static void main(String[] args) throws Exception { + asyncDeleteExecution(); + } + + public static void asyncDeleteExecution() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + DeleteExecutionRequest request = + DeleteExecutionRequest.newBuilder() + .setName(ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString()) + .build(); + ApiFuture future = + notebookServiceClient.deleteExecutionCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_deleteexecution_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/AsyncDeleteExecutionLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/AsyncDeleteExecutionLRO.java new file mode 100644 index 00000000..5c7596ae --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/AsyncDeleteExecutionLRO.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_deleteexecution_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.DeleteExecutionRequest; +import com.google.cloud.notebooks.v1.ExecutionName; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteExecutionLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteExecutionLRO(); + } + + public static void asyncDeleteExecutionLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + DeleteExecutionRequest request = + DeleteExecutionRequest.newBuilder() + .setName(ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString()) + .build(); + OperationFuture future = + notebookServiceClient.deleteExecutionOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_deleteexecution_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecution.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecution.java new file mode 100644 index 00000000..ba4272cf --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecution.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_deleteexecution_sync] +import com.google.cloud.notebooks.v1.DeleteExecutionRequest; +import com.google.cloud.notebooks.v1.ExecutionName; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteExecution { + + public static void main(String[] args) throws Exception { + syncDeleteExecution(); + } + + public static void syncDeleteExecution() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + DeleteExecutionRequest request = + DeleteExecutionRequest.newBuilder() + .setName(ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString()) + .build(); + notebookServiceClient.deleteExecutionAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_deleteexecution_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecutionExecutionname.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecutionExecutionname.java new file mode 100644 index 00000000..1a0ee0c3 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecutionExecutionname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_deleteexecution_executionname_sync] +import com.google.cloud.notebooks.v1.ExecutionName; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteExecutionExecutionname { + + public static void main(String[] args) throws Exception { + syncDeleteExecutionExecutionname(); + } + + public static void syncDeleteExecutionExecutionname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]"); + notebookServiceClient.deleteExecutionAsync(name).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_deleteexecution_executionname_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecutionString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecutionString.java new file mode 100644 index 00000000..ccafb1d6 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecutionString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_deleteexecution_string_sync] +import com.google.cloud.notebooks.v1.ExecutionName; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteExecutionString { + + public static void main(String[] args) throws Exception { + syncDeleteExecutionString(); + } + + public static void syncDeleteExecutionString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + String name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString(); + notebookServiceClient.deleteExecutionAsync(name).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_deleteexecution_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/AsyncDeleteInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/AsyncDeleteInstance.java new file mode 100644 index 00000000..781329c6 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/AsyncDeleteInstance.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_deleteinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.DeleteInstanceRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteInstance { + + public static void main(String[] args) throws Exception { + asyncDeleteInstance(); + } + + public static void asyncDeleteInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + DeleteInstanceRequest request = + DeleteInstanceRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + notebookServiceClient.deleteInstanceCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_deleteinstance_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/AsyncDeleteInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/AsyncDeleteInstanceLRO.java new file mode 100644 index 00000000..9019cecc --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/AsyncDeleteInstanceLRO.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_deleteinstance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.DeleteInstanceRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteInstanceLRO(); + } + + public static void asyncDeleteInstanceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + DeleteInstanceRequest request = + DeleteInstanceRequest.newBuilder().setName("name3373707").build(); + OperationFuture future = + notebookServiceClient.deleteInstanceOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_deleteinstance_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/SyncDeleteInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/SyncDeleteInstance.java new file mode 100644 index 00000000..86dffdc8 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/SyncDeleteInstance.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_deleteinstance_sync] +import com.google.cloud.notebooks.v1.DeleteInstanceRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteInstance { + + public static void main(String[] args) throws Exception { + syncDeleteInstance(); + } + + public static void syncDeleteInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + DeleteInstanceRequest request = + DeleteInstanceRequest.newBuilder().setName("name3373707").build(); + notebookServiceClient.deleteInstanceAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_deleteinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/SyncDeleteInstanceString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/SyncDeleteInstanceString.java new file mode 100644 index 00000000..aeecf712 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/SyncDeleteInstanceString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_deleteinstance_string_sync] +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteInstanceString { + + public static void main(String[] args) throws Exception { + syncDeleteInstanceString(); + } + + public static void syncDeleteInstanceString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + String name = "name3373707"; + notebookServiceClient.deleteInstanceAsync(name).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_deleteinstance_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/AsyncDeleteSchedule.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/AsyncDeleteSchedule.java new file mode 100644 index 00000000..4438a2f4 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/AsyncDeleteSchedule.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_deleteschedule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.DeleteScheduleRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.ScheduleName; +import com.google.longrunning.Operation; + +public class AsyncDeleteSchedule { + + public static void main(String[] args) throws Exception { + asyncDeleteSchedule(); + } + + public static void asyncDeleteSchedule() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + DeleteScheduleRequest request = + DeleteScheduleRequest.newBuilder() + .setName(ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString()) + .build(); + ApiFuture future = + notebookServiceClient.deleteScheduleCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_deleteschedule_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/AsyncDeleteScheduleLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/AsyncDeleteScheduleLRO.java new file mode 100644 index 00000000..a8a77cff --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/AsyncDeleteScheduleLRO.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_deleteschedule_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.DeleteScheduleRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.ScheduleName; +import com.google.protobuf.Empty; + +public class AsyncDeleteScheduleLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteScheduleLRO(); + } + + public static void asyncDeleteScheduleLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + DeleteScheduleRequest request = + DeleteScheduleRequest.newBuilder() + .setName(ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString()) + .build(); + OperationFuture future = + notebookServiceClient.deleteScheduleOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_deleteschedule_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteSchedule.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteSchedule.java new file mode 100644 index 00000000..414fb717 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteSchedule.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_deleteschedule_sync] +import com.google.cloud.notebooks.v1.DeleteScheduleRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.ScheduleName; +import com.google.protobuf.Empty; + +public class SyncDeleteSchedule { + + public static void main(String[] args) throws Exception { + syncDeleteSchedule(); + } + + public static void syncDeleteSchedule() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + DeleteScheduleRequest request = + DeleteScheduleRequest.newBuilder() + .setName(ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString()) + .build(); + notebookServiceClient.deleteScheduleAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_deleteschedule_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteScheduleSchedulename.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteScheduleSchedulename.java new file mode 100644 index 00000000..abb3419c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteScheduleSchedulename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_deleteschedule_schedulename_sync] +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.ScheduleName; +import com.google.protobuf.Empty; + +public class SyncDeleteScheduleSchedulename { + + public static void main(String[] args) throws Exception { + syncDeleteScheduleSchedulename(); + } + + public static void syncDeleteScheduleSchedulename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ScheduleName name = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]"); + notebookServiceClient.deleteScheduleAsync(name).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_deleteschedule_schedulename_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteScheduleString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteScheduleString.java new file mode 100644 index 00000000..d1599980 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteScheduleString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_deleteschedule_string_sync] +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.ScheduleName; +import com.google.protobuf.Empty; + +public class SyncDeleteScheduleString { + + public static void main(String[] args) throws Exception { + syncDeleteScheduleString(); + } + + public static void syncDeleteScheduleString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + String name = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString(); + notebookServiceClient.deleteScheduleAsync(name).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_deleteschedule_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/AsyncGetEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/AsyncGetEnvironment.java new file mode 100644 index 00000000..3ca0103e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/AsyncGetEnvironment.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_getenvironment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.Environment; +import com.google.cloud.notebooks.v1.GetEnvironmentRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class AsyncGetEnvironment { + + public static void main(String[] args) throws Exception { + asyncGetEnvironment(); + } + + public static void asyncGetEnvironment() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + GetEnvironmentRequest request = + GetEnvironmentRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + notebookServiceClient.getEnvironmentCallable().futureCall(request); + // Do something. + Environment response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_getenvironment_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/SyncGetEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/SyncGetEnvironment.java new file mode 100644 index 00000000..dd9f55a9 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/SyncGetEnvironment.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_getenvironment_sync] +import com.google.cloud.notebooks.v1.Environment; +import com.google.cloud.notebooks.v1.GetEnvironmentRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncGetEnvironment { + + public static void main(String[] args) throws Exception { + syncGetEnvironment(); + } + + public static void syncGetEnvironment() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + GetEnvironmentRequest request = + GetEnvironmentRequest.newBuilder().setName("name3373707").build(); + Environment response = notebookServiceClient.getEnvironment(request); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_getenvironment_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/SyncGetEnvironmentString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/SyncGetEnvironmentString.java new file mode 100644 index 00000000..7add7c5b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/SyncGetEnvironmentString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_getenvironment_string_sync] +import com.google.cloud.notebooks.v1.Environment; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncGetEnvironmentString { + + public static void main(String[] args) throws Exception { + syncGetEnvironmentString(); + } + + public static void syncGetEnvironmentString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + String name = "name3373707"; + Environment response = notebookServiceClient.getEnvironment(name); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_getenvironment_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/AsyncGetExecution.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/AsyncGetExecution.java new file mode 100644 index 00000000..4045ee65 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/AsyncGetExecution.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_getexecution_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.Execution; +import com.google.cloud.notebooks.v1.ExecutionName; +import com.google.cloud.notebooks.v1.GetExecutionRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class AsyncGetExecution { + + public static void main(String[] args) throws Exception { + asyncGetExecution(); + } + + public static void asyncGetExecution() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + GetExecutionRequest request = + GetExecutionRequest.newBuilder() + .setName(ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString()) + .build(); + ApiFuture future = + notebookServiceClient.getExecutionCallable().futureCall(request); + // Do something. + Execution response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_getexecution_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecution.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecution.java new file mode 100644 index 00000000..f68ca9ef --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecution.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_getexecution_sync] +import com.google.cloud.notebooks.v1.Execution; +import com.google.cloud.notebooks.v1.ExecutionName; +import com.google.cloud.notebooks.v1.GetExecutionRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncGetExecution { + + public static void main(String[] args) throws Exception { + syncGetExecution(); + } + + public static void syncGetExecution() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + GetExecutionRequest request = + GetExecutionRequest.newBuilder() + .setName(ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString()) + .build(); + Execution response = notebookServiceClient.getExecution(request); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_getexecution_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecutionExecutionname.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecutionExecutionname.java new file mode 100644 index 00000000..6e753979 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecutionExecutionname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_getexecution_executionname_sync] +import com.google.cloud.notebooks.v1.Execution; +import com.google.cloud.notebooks.v1.ExecutionName; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncGetExecutionExecutionname { + + public static void main(String[] args) throws Exception { + syncGetExecutionExecutionname(); + } + + public static void syncGetExecutionExecutionname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]"); + Execution response = notebookServiceClient.getExecution(name); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_getexecution_executionname_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecutionString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecutionString.java new file mode 100644 index 00000000..aa28d436 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecutionString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_getexecution_string_sync] +import com.google.cloud.notebooks.v1.Execution; +import com.google.cloud.notebooks.v1.ExecutionName; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncGetExecutionString { + + public static void main(String[] args) throws Exception { + syncGetExecutionString(); + } + + public static void syncGetExecutionString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + String name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString(); + Execution response = notebookServiceClient.getExecution(name); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_getexecution_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/AsyncGetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/AsyncGetInstance.java new file mode 100644 index 00000000..4c4af382 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/AsyncGetInstance.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_getinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.GetInstanceRequest; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class AsyncGetInstance { + + public static void main(String[] args) throws Exception { + asyncGetInstance(); + } + + public static void asyncGetInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + GetInstanceRequest request = GetInstanceRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = notebookServiceClient.getInstanceCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_getinstance_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/SyncGetInstance.java new file mode 100644 index 00000000..ac2061c0 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/SyncGetInstance.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_getinstance_sync] +import com.google.cloud.notebooks.v1.GetInstanceRequest; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncGetInstance { + + public static void main(String[] args) throws Exception { + syncGetInstance(); + } + + public static void syncGetInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + GetInstanceRequest request = GetInstanceRequest.newBuilder().setName("name3373707").build(); + Instance response = notebookServiceClient.getInstance(request); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_getinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/SyncGetInstanceString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/SyncGetInstanceString.java new file mode 100644 index 00000000..c0950a90 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/SyncGetInstanceString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_getinstance_string_sync] +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncGetInstanceString { + + public static void main(String[] args) throws Exception { + syncGetInstanceString(); + } + + public static void syncGetInstanceString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + String name = "name3373707"; + Instance response = notebookServiceClient.getInstance(name); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_getinstance_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/AsyncGetInstanceHealth.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/AsyncGetInstanceHealth.java new file mode 100644 index 00000000..69ab027d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/AsyncGetInstanceHealth.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_getinstancehealth_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.GetInstanceHealthRequest; +import com.google.cloud.notebooks.v1.GetInstanceHealthResponse; +import com.google.cloud.notebooks.v1.InstanceName; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class AsyncGetInstanceHealth { + + public static void main(String[] args) throws Exception { + asyncGetInstanceHealth(); + } + + public static void asyncGetInstanceHealth() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + GetInstanceHealthRequest request = + GetInstanceHealthRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .build(); + ApiFuture future = + notebookServiceClient.getInstanceHealthCallable().futureCall(request); + // Do something. + GetInstanceHealthResponse response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_getinstancehealth_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealth.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealth.java new file mode 100644 index 00000000..d8fd265e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealth.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_getinstancehealth_sync] +import com.google.cloud.notebooks.v1.GetInstanceHealthRequest; +import com.google.cloud.notebooks.v1.GetInstanceHealthResponse; +import com.google.cloud.notebooks.v1.InstanceName; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncGetInstanceHealth { + + public static void main(String[] args) throws Exception { + syncGetInstanceHealth(); + } + + public static void syncGetInstanceHealth() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + GetInstanceHealthRequest request = + GetInstanceHealthRequest.newBuilder() + .setName(InstanceName.of("[PROJECT]", "[INSTANCE]").toString()) + .build(); + GetInstanceHealthResponse response = notebookServiceClient.getInstanceHealth(request); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_getinstancehealth_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealthInstancename.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealthInstancename.java new file mode 100644 index 00000000..a49ca50f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealthInstancename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_getinstancehealth_instancename_sync] +import com.google.cloud.notebooks.v1.GetInstanceHealthResponse; +import com.google.cloud.notebooks.v1.InstanceName; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncGetInstanceHealthInstancename { + + public static void main(String[] args) throws Exception { + syncGetInstanceHealthInstancename(); + } + + public static void syncGetInstanceHealthInstancename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + InstanceName name = InstanceName.of("[PROJECT]", "[INSTANCE]"); + GetInstanceHealthResponse response = notebookServiceClient.getInstanceHealth(name); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_getinstancehealth_instancename_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealthString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealthString.java new file mode 100644 index 00000000..3e83631a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealthString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_getinstancehealth_string_sync] +import com.google.cloud.notebooks.v1.GetInstanceHealthResponse; +import com.google.cloud.notebooks.v1.InstanceName; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncGetInstanceHealthString { + + public static void main(String[] args) throws Exception { + syncGetInstanceHealthString(); + } + + public static void syncGetInstanceHealthString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + String name = InstanceName.of("[PROJECT]", "[INSTANCE]").toString(); + GetInstanceHealthResponse response = notebookServiceClient.getInstanceHealth(name); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_getinstancehealth_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/AsyncGetSchedule.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/AsyncGetSchedule.java new file mode 100644 index 00000000..31a43b2c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/AsyncGetSchedule.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_getschedule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.GetScheduleRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.Schedule; +import com.google.cloud.notebooks.v1.ScheduleName; + +public class AsyncGetSchedule { + + public static void main(String[] args) throws Exception { + asyncGetSchedule(); + } + + public static void asyncGetSchedule() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + GetScheduleRequest request = + GetScheduleRequest.newBuilder() + .setName(ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString()) + .build(); + ApiFuture future = notebookServiceClient.getScheduleCallable().futureCall(request); + // Do something. + Schedule response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_getschedule_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetSchedule.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetSchedule.java new file mode 100644 index 00000000..a0a64405 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetSchedule.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_getschedule_sync] +import com.google.cloud.notebooks.v1.GetScheduleRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.Schedule; +import com.google.cloud.notebooks.v1.ScheduleName; + +public class SyncGetSchedule { + + public static void main(String[] args) throws Exception { + syncGetSchedule(); + } + + public static void syncGetSchedule() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + GetScheduleRequest request = + GetScheduleRequest.newBuilder() + .setName(ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString()) + .build(); + Schedule response = notebookServiceClient.getSchedule(request); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_getschedule_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetScheduleSchedulename.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetScheduleSchedulename.java new file mode 100644 index 00000000..385760a6 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetScheduleSchedulename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_getschedule_schedulename_sync] +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.Schedule; +import com.google.cloud.notebooks.v1.ScheduleName; + +public class SyncGetScheduleSchedulename { + + public static void main(String[] args) throws Exception { + syncGetScheduleSchedulename(); + } + + public static void syncGetScheduleSchedulename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ScheduleName name = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]"); + Schedule response = notebookServiceClient.getSchedule(name); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_getschedule_schedulename_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetScheduleString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetScheduleString.java new file mode 100644 index 00000000..86e26108 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetScheduleString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_getschedule_string_sync] +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.Schedule; +import com.google.cloud.notebooks.v1.ScheduleName; + +public class SyncGetScheduleString { + + public static void main(String[] args) throws Exception { + syncGetScheduleString(); + } + + public static void syncGetScheduleString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + String name = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString(); + Schedule response = notebookServiceClient.getSchedule(name); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_getschedule_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java new file mode 100644 index 00000000..dfd27c1a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_isinstanceupgradeable_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest; +import com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.UpgradeType; + +public class AsyncIsInstanceUpgradeable { + + public static void main(String[] args) throws Exception { + asyncIsInstanceUpgradeable(); + } + + public static void asyncIsInstanceUpgradeable() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + IsInstanceUpgradeableRequest request = + IsInstanceUpgradeableRequest.newBuilder() + .setNotebookInstance("notebookInstance-544239728") + .setType(UpgradeType.forNumber(0)) + .build(); + ApiFuture future = + notebookServiceClient.isInstanceUpgradeableCallable().futureCall(request); + // Do something. + IsInstanceUpgradeableResponse response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_isinstanceupgradeable_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/isinstanceupgradeable/SyncIsInstanceUpgradeable.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/isinstanceupgradeable/SyncIsInstanceUpgradeable.java new file mode 100644 index 00000000..b1273ebb --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/isinstanceupgradeable/SyncIsInstanceUpgradeable.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_isinstanceupgradeable_sync] +import com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest; +import com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.UpgradeType; + +public class SyncIsInstanceUpgradeable { + + public static void main(String[] args) throws Exception { + syncIsInstanceUpgradeable(); + } + + public static void syncIsInstanceUpgradeable() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + IsInstanceUpgradeableRequest request = + IsInstanceUpgradeableRequest.newBuilder() + .setNotebookInstance("notebookInstance-544239728") + .setType(UpgradeType.forNumber(0)) + .build(); + IsInstanceUpgradeableResponse response = notebookServiceClient.isInstanceUpgradeable(request); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_isinstanceupgradeable_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/AsyncListEnvironments.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/AsyncListEnvironments.java new file mode 100644 index 00000000..92c92bf3 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/AsyncListEnvironments.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_listenvironments_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.Environment; +import com.google.cloud.notebooks.v1.ListEnvironmentsRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class AsyncListEnvironments { + + public static void main(String[] args) throws Exception { + asyncListEnvironments(); + } + + public static void asyncListEnvironments() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ListEnvironmentsRequest request = + ListEnvironmentsRequest.newBuilder() + .setParent("parent-995424086") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + notebookServiceClient.listEnvironmentsPagedCallable().futureCall(request); + // Do something. + for (Environment element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_listenvironments_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/AsyncListEnvironmentsPaged.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/AsyncListEnvironmentsPaged.java new file mode 100644 index 00000000..21d6a08d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/AsyncListEnvironmentsPaged.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_listenvironments_paged_async] +import com.google.cloud.notebooks.v1.Environment; +import com.google.cloud.notebooks.v1.ListEnvironmentsRequest; +import com.google.cloud.notebooks.v1.ListEnvironmentsResponse; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.common.base.Strings; + +public class AsyncListEnvironmentsPaged { + + public static void main(String[] args) throws Exception { + asyncListEnvironmentsPaged(); + } + + public static void asyncListEnvironmentsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ListEnvironmentsRequest request = + ListEnvironmentsRequest.newBuilder() + .setParent("parent-995424086") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListEnvironmentsResponse response = + notebookServiceClient.listEnvironmentsCallable().call(request); + for (Environment element : response.getEnvironmentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_listenvironments_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/SyncListEnvironments.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/SyncListEnvironments.java new file mode 100644 index 00000000..d03a09aa --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/SyncListEnvironments.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_listenvironments_sync] +import com.google.cloud.notebooks.v1.Environment; +import com.google.cloud.notebooks.v1.ListEnvironmentsRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncListEnvironments { + + public static void main(String[] args) throws Exception { + syncListEnvironments(); + } + + public static void syncListEnvironments() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ListEnvironmentsRequest request = + ListEnvironmentsRequest.newBuilder() + .setParent("parent-995424086") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Environment element : notebookServiceClient.listEnvironments(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_listenvironments_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/SyncListEnvironmentsString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/SyncListEnvironmentsString.java new file mode 100644 index 00000000..28cbe3e3 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/SyncListEnvironmentsString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_listenvironments_string_sync] +import com.google.cloud.notebooks.v1.Environment; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncListEnvironmentsString { + + public static void main(String[] args) throws Exception { + syncListEnvironmentsString(); + } + + public static void syncListEnvironmentsString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + String parent = "parent-995424086"; + for (Environment element : notebookServiceClient.listEnvironments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_listenvironments_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/AsyncListExecutions.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/AsyncListExecutions.java new file mode 100644 index 00000000..9a4b5e7b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/AsyncListExecutions.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_listexecutions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.Execution; +import com.google.cloud.notebooks.v1.ExecutionName; +import com.google.cloud.notebooks.v1.ListExecutionsRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class AsyncListExecutions { + + public static void main(String[] args) throws Exception { + asyncListExecutions(); + } + + public static void asyncListExecutions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ListExecutionsRequest request = + ListExecutionsRequest.newBuilder() + .setParent(ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + notebookServiceClient.listExecutionsPagedCallable().futureCall(request); + // Do something. + for (Execution element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_listexecutions_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/AsyncListExecutionsPaged.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/AsyncListExecutionsPaged.java new file mode 100644 index 00000000..ff274691 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/AsyncListExecutionsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_listexecutions_paged_async] +import com.google.cloud.notebooks.v1.Execution; +import com.google.cloud.notebooks.v1.ExecutionName; +import com.google.cloud.notebooks.v1.ListExecutionsRequest; +import com.google.cloud.notebooks.v1.ListExecutionsResponse; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.common.base.Strings; + +public class AsyncListExecutionsPaged { + + public static void main(String[] args) throws Exception { + asyncListExecutionsPaged(); + } + + public static void asyncListExecutionsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ListExecutionsRequest request = + ListExecutionsRequest.newBuilder() + .setParent(ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListExecutionsResponse response = + notebookServiceClient.listExecutionsCallable().call(request); + for (Execution element : response.getExecutionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_listexecutions_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutions.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutions.java new file mode 100644 index 00000000..c56910d5 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutions.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_listexecutions_sync] +import com.google.cloud.notebooks.v1.Execution; +import com.google.cloud.notebooks.v1.ExecutionName; +import com.google.cloud.notebooks.v1.ListExecutionsRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncListExecutions { + + public static void main(String[] args) throws Exception { + syncListExecutions(); + } + + public static void syncListExecutions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ListExecutionsRequest request = + ListExecutionsRequest.newBuilder() + .setParent(ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Execution element : notebookServiceClient.listExecutions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_listexecutions_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutionsExecutionname.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutionsExecutionname.java new file mode 100644 index 00000000..4bbf1b26 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutionsExecutionname.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_listexecutions_executionname_sync] +import com.google.cloud.notebooks.v1.Execution; +import com.google.cloud.notebooks.v1.ExecutionName; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncListExecutionsExecutionname { + + public static void main(String[] args) throws Exception { + syncListExecutionsExecutionname(); + } + + public static void syncListExecutionsExecutionname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ExecutionName parent = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]"); + for (Execution element : notebookServiceClient.listExecutions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_listexecutions_executionname_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutionsString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutionsString.java new file mode 100644 index 00000000..cf800236 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutionsString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_listexecutions_string_sync] +import com.google.cloud.notebooks.v1.Execution; +import com.google.cloud.notebooks.v1.ExecutionName; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncListExecutionsString { + + public static void main(String[] args) throws Exception { + syncListExecutionsString(); + } + + public static void syncListExecutionsString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + String parent = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString(); + for (Execution element : notebookServiceClient.listExecutions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_listexecutions_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/AsyncListInstances.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/AsyncListInstances.java new file mode 100644 index 00000000..c9daf7e6 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/AsyncListInstances.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_listinstances_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.ListInstancesRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class AsyncListInstances { + + public static void main(String[] args) throws Exception { + asyncListInstances(); + } + + public static void asyncListInstances() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ListInstancesRequest request = + ListInstancesRequest.newBuilder() + .setParent("parent-995424086") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + notebookServiceClient.listInstancesPagedCallable().futureCall(request); + // Do something. + for (Instance element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_listinstances_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/AsyncListInstancesPaged.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/AsyncListInstancesPaged.java new file mode 100644 index 00000000..c12d738e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/AsyncListInstancesPaged.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_listinstances_paged_async] +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.ListInstancesRequest; +import com.google.cloud.notebooks.v1.ListInstancesResponse; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.common.base.Strings; + +public class AsyncListInstancesPaged { + + public static void main(String[] args) throws Exception { + asyncListInstancesPaged(); + } + + public static void asyncListInstancesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ListInstancesRequest request = + ListInstancesRequest.newBuilder() + .setParent("parent-995424086") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListInstancesResponse response = + notebookServiceClient.listInstancesCallable().call(request); + for (Instance element : response.getInstancesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_listinstances_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/SyncListInstances.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/SyncListInstances.java new file mode 100644 index 00000000..d83d8dd2 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/SyncListInstances.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_listinstances_sync] +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.ListInstancesRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncListInstances { + + public static void main(String[] args) throws Exception { + syncListInstances(); + } + + public static void syncListInstances() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ListInstancesRequest request = + ListInstancesRequest.newBuilder() + .setParent("parent-995424086") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Instance element : notebookServiceClient.listInstances(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_listinstances_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/SyncListInstancesString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/SyncListInstancesString.java new file mode 100644 index 00000000..454f1f96 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/SyncListInstancesString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_listinstances_string_sync] +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; + +public class SyncListInstancesString { + + public static void main(String[] args) throws Exception { + syncListInstancesString(); + } + + public static void syncListInstancesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + String parent = "parent-995424086"; + for (Instance element : notebookServiceClient.listInstances(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_listinstances_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/AsyncListSchedules.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/AsyncListSchedules.java new file mode 100644 index 00000000..f7b58864 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/AsyncListSchedules.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_listschedules_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.ListSchedulesRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.Schedule; +import com.google.cloud.notebooks.v1.ScheduleName; + +public class AsyncListSchedules { + + public static void main(String[] args) throws Exception { + asyncListSchedules(); + } + + public static void asyncListSchedules() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ListSchedulesRequest request = + ListSchedulesRequest.newBuilder() + .setParent(ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + notebookServiceClient.listSchedulesPagedCallable().futureCall(request); + // Do something. + for (Schedule element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_listschedules_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/AsyncListSchedulesPaged.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/AsyncListSchedulesPaged.java new file mode 100644 index 00000000..02559702 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/AsyncListSchedulesPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_listschedules_paged_async] +import com.google.cloud.notebooks.v1.ListSchedulesRequest; +import com.google.cloud.notebooks.v1.ListSchedulesResponse; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.Schedule; +import com.google.cloud.notebooks.v1.ScheduleName; +import com.google.common.base.Strings; + +public class AsyncListSchedulesPaged { + + public static void main(String[] args) throws Exception { + asyncListSchedulesPaged(); + } + + public static void asyncListSchedulesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ListSchedulesRequest request = + ListSchedulesRequest.newBuilder() + .setParent(ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListSchedulesResponse response = + notebookServiceClient.listSchedulesCallable().call(request); + for (Schedule element : response.getSchedulesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_listschedules_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedules.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedules.java new file mode 100644 index 00000000..7712203c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedules.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_listschedules_sync] +import com.google.cloud.notebooks.v1.ListSchedulesRequest; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.Schedule; +import com.google.cloud.notebooks.v1.ScheduleName; + +public class SyncListSchedules { + + public static void main(String[] args) throws Exception { + syncListSchedules(); + } + + public static void syncListSchedules() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ListSchedulesRequest request = + ListSchedulesRequest.newBuilder() + .setParent(ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Schedule element : notebookServiceClient.listSchedules(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_listschedules_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedulesSchedulename.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedulesSchedulename.java new file mode 100644 index 00000000..d8721e9a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedulesSchedulename.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_listschedules_schedulename_sync] +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.Schedule; +import com.google.cloud.notebooks.v1.ScheduleName; + +public class SyncListSchedulesSchedulename { + + public static void main(String[] args) throws Exception { + syncListSchedulesSchedulename(); + } + + public static void syncListSchedulesSchedulename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ScheduleName parent = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]"); + for (Schedule element : notebookServiceClient.listSchedules(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_listschedules_schedulename_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedulesString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedulesString.java new file mode 100644 index 00000000..e4ce91cc --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedulesString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_listschedules_string_sync] +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.Schedule; +import com.google.cloud.notebooks.v1.ScheduleName; + +public class SyncListSchedulesString { + + public static void main(String[] args) throws Exception { + syncListSchedulesString(); + } + + public static void syncListSchedulesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + String parent = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString(); + for (Schedule element : notebookServiceClient.listSchedules(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_listschedules_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/AsyncRegisterInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/AsyncRegisterInstance.java new file mode 100644 index 00000000..08251759 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/AsyncRegisterInstance.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_registerinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.RegisterInstanceRequest; +import com.google.longrunning.Operation; + +public class AsyncRegisterInstance { + + public static void main(String[] args) throws Exception { + asyncRegisterInstance(); + } + + public static void asyncRegisterInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + RegisterInstanceRequest request = + RegisterInstanceRequest.newBuilder() + .setParent("parent-995424086") + .setInstanceId("instanceId902024336") + .build(); + ApiFuture future = + notebookServiceClient.registerInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_registerinstance_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/AsyncRegisterInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/AsyncRegisterInstanceLRO.java new file mode 100644 index 00000000..2a13ed01 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/AsyncRegisterInstanceLRO.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_registerinstance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.RegisterInstanceRequest; + +public class AsyncRegisterInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncRegisterInstanceLRO(); + } + + public static void asyncRegisterInstanceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + RegisterInstanceRequest request = + RegisterInstanceRequest.newBuilder() + .setParent("parent-995424086") + .setInstanceId("instanceId902024336") + .build(); + OperationFuture future = + notebookServiceClient.registerInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_registerinstance_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/SyncRegisterInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/SyncRegisterInstance.java new file mode 100644 index 00000000..c8b513a5 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/SyncRegisterInstance.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_registerinstance_sync] +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.RegisterInstanceRequest; + +public class SyncRegisterInstance { + + public static void main(String[] args) throws Exception { + syncRegisterInstance(); + } + + public static void syncRegisterInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + RegisterInstanceRequest request = + RegisterInstanceRequest.newBuilder() + .setParent("parent-995424086") + .setInstanceId("instanceId902024336") + .build(); + Instance response = notebookServiceClient.registerInstanceAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_registerinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfo.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfo.java new file mode 100644 index 00000000..9c5d6cab --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfo.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_reportinstanceinfo_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.ReportInstanceInfoRequest; +import com.google.longrunning.Operation; +import java.util.HashMap; + +public class AsyncReportInstanceInfo { + + public static void main(String[] args) throws Exception { + asyncReportInstanceInfo(); + } + + public static void asyncReportInstanceInfo() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ReportInstanceInfoRequest request = + ReportInstanceInfoRequest.newBuilder() + .setName("name3373707") + .setVmId("vmId3622450") + .putAllMetadata(new HashMap()) + .build(); + ApiFuture future = + notebookServiceClient.reportInstanceInfoCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_reportinstanceinfo_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfoLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfoLRO.java new file mode 100644 index 00000000..55ec58b1 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfoLRO.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_reportinstanceinfo_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.ReportInstanceInfoRequest; +import java.util.HashMap; + +public class AsyncReportInstanceInfoLRO { + + public static void main(String[] args) throws Exception { + asyncReportInstanceInfoLRO(); + } + + public static void asyncReportInstanceInfoLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ReportInstanceInfoRequest request = + ReportInstanceInfoRequest.newBuilder() + .setName("name3373707") + .setVmId("vmId3622450") + .putAllMetadata(new HashMap()) + .build(); + OperationFuture future = + notebookServiceClient.reportInstanceInfoOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_reportinstanceinfo_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/SyncReportInstanceInfo.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/SyncReportInstanceInfo.java new file mode 100644 index 00000000..166ad378 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/SyncReportInstanceInfo.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_reportinstanceinfo_sync] +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.ReportInstanceInfoRequest; +import java.util.HashMap; + +public class SyncReportInstanceInfo { + + public static void main(String[] args) throws Exception { + syncReportInstanceInfo(); + } + + public static void syncReportInstanceInfo() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ReportInstanceInfoRequest request = + ReportInstanceInfoRequest.newBuilder() + .setName("name3373707") + .setVmId("vmId3622450") + .putAllMetadata(new HashMap()) + .build(); + Instance response = notebookServiceClient.reportInstanceInfoAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_reportinstanceinfo_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/AsyncResetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/AsyncResetInstance.java new file mode 100644 index 00000000..37fa7b3c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/AsyncResetInstance.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_resetinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.ResetInstanceRequest; +import com.google.longrunning.Operation; + +public class AsyncResetInstance { + + public static void main(String[] args) throws Exception { + asyncResetInstance(); + } + + public static void asyncResetInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ResetInstanceRequest request = + ResetInstanceRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + notebookServiceClient.resetInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_resetinstance_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/AsyncResetInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/AsyncResetInstanceLRO.java new file mode 100644 index 00000000..17fcc0db --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/AsyncResetInstanceLRO.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_resetinstance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.ResetInstanceRequest; + +public class AsyncResetInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncResetInstanceLRO(); + } + + public static void asyncResetInstanceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ResetInstanceRequest request = + ResetInstanceRequest.newBuilder().setName("name3373707").build(); + OperationFuture future = + notebookServiceClient.resetInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_resetinstance_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/SyncResetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/SyncResetInstance.java new file mode 100644 index 00000000..1da7a072 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/SyncResetInstance.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_resetinstance_sync] +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.ResetInstanceRequest; + +public class SyncResetInstance { + + public static void main(String[] args) throws Exception { + syncResetInstance(); + } + + public static void syncResetInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ResetInstanceRequest request = + ResetInstanceRequest.newBuilder().setName("name3373707").build(); + Instance response = notebookServiceClient.resetInstanceAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_resetinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/AsyncRollbackInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/AsyncRollbackInstance.java new file mode 100644 index 00000000..005547d3 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/AsyncRollbackInstance.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_rollbackinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.RollbackInstanceRequest; +import com.google.longrunning.Operation; + +public class AsyncRollbackInstance { + + public static void main(String[] args) throws Exception { + asyncRollbackInstance(); + } + + public static void asyncRollbackInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + RollbackInstanceRequest request = + RollbackInstanceRequest.newBuilder() + .setName("name3373707") + .setTargetSnapshot("targetSnapshot-1307211147") + .build(); + ApiFuture future = + notebookServiceClient.rollbackInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_rollbackinstance_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/AsyncRollbackInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/AsyncRollbackInstanceLRO.java new file mode 100644 index 00000000..1325517c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/AsyncRollbackInstanceLRO.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_rollbackinstance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.RollbackInstanceRequest; + +public class AsyncRollbackInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncRollbackInstanceLRO(); + } + + public static void asyncRollbackInstanceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + RollbackInstanceRequest request = + RollbackInstanceRequest.newBuilder() + .setName("name3373707") + .setTargetSnapshot("targetSnapshot-1307211147") + .build(); + OperationFuture future = + notebookServiceClient.rollbackInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_rollbackinstance_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/SyncRollbackInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/SyncRollbackInstance.java new file mode 100644 index 00000000..b6d24172 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/SyncRollbackInstance.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_rollbackinstance_sync] +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.RollbackInstanceRequest; + +public class SyncRollbackInstance { + + public static void main(String[] args) throws Exception { + syncRollbackInstance(); + } + + public static void syncRollbackInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + RollbackInstanceRequest request = + RollbackInstanceRequest.newBuilder() + .setName("name3373707") + .setTargetSnapshot("targetSnapshot-1307211147") + .build(); + Instance response = notebookServiceClient.rollbackInstanceAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_rollbackinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAccelerator.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAccelerator.java new file mode 100644 index 00000000..0f6405d0 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAccelerator.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_setinstanceaccelerator_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest; +import com.google.longrunning.Operation; + +public class AsyncSetInstanceAccelerator { + + public static void main(String[] args) throws Exception { + asyncSetInstanceAccelerator(); + } + + public static void asyncSetInstanceAccelerator() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + SetInstanceAcceleratorRequest request = + SetInstanceAcceleratorRequest.newBuilder() + .setName("name3373707") + .setCoreCount(-1963855761) + .build(); + ApiFuture future = + notebookServiceClient.setInstanceAcceleratorCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_setinstanceaccelerator_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java new file mode 100644 index 00000000..04f1ce36 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_setinstanceaccelerator_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest; + +public class AsyncSetInstanceAcceleratorLRO { + + public static void main(String[] args) throws Exception { + asyncSetInstanceAcceleratorLRO(); + } + + public static void asyncSetInstanceAcceleratorLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + SetInstanceAcceleratorRequest request = + SetInstanceAcceleratorRequest.newBuilder() + .setName("name3373707") + .setCoreCount(-1963855761) + .build(); + OperationFuture future = + notebookServiceClient.setInstanceAcceleratorOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_setinstanceaccelerator_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/SyncSetInstanceAccelerator.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/SyncSetInstanceAccelerator.java new file mode 100644 index 00000000..b65d216f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/SyncSetInstanceAccelerator.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_setinstanceaccelerator_sync] +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest; + +public class SyncSetInstanceAccelerator { + + public static void main(String[] args) throws Exception { + syncSetInstanceAccelerator(); + } + + public static void syncSetInstanceAccelerator() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + SetInstanceAcceleratorRequest request = + SetInstanceAcceleratorRequest.newBuilder() + .setName("name3373707") + .setCoreCount(-1963855761) + .build(); + Instance response = notebookServiceClient.setInstanceAcceleratorAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_setinstanceaccelerator_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabels.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabels.java new file mode 100644 index 00000000..f9ac5ef8 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabels.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_setinstancelabels_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.SetInstanceLabelsRequest; +import com.google.longrunning.Operation; +import java.util.HashMap; + +public class AsyncSetInstanceLabels { + + public static void main(String[] args) throws Exception { + asyncSetInstanceLabels(); + } + + public static void asyncSetInstanceLabels() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + SetInstanceLabelsRequest request = + SetInstanceLabelsRequest.newBuilder() + .setName("name3373707") + .putAllLabels(new HashMap()) + .build(); + ApiFuture future = + notebookServiceClient.setInstanceLabelsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_setinstancelabels_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabelsLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabelsLRO.java new file mode 100644 index 00000000..a704fd33 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabelsLRO.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_setinstancelabels_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.SetInstanceLabelsRequest; +import java.util.HashMap; + +public class AsyncSetInstanceLabelsLRO { + + public static void main(String[] args) throws Exception { + asyncSetInstanceLabelsLRO(); + } + + public static void asyncSetInstanceLabelsLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + SetInstanceLabelsRequest request = + SetInstanceLabelsRequest.newBuilder() + .setName("name3373707") + .putAllLabels(new HashMap()) + .build(); + OperationFuture future = + notebookServiceClient.setInstanceLabelsOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_setinstancelabels_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/SyncSetInstanceLabels.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/SyncSetInstanceLabels.java new file mode 100644 index 00000000..cc242d0f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/SyncSetInstanceLabels.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_setinstancelabels_sync] +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.SetInstanceLabelsRequest; +import java.util.HashMap; + +public class SyncSetInstanceLabels { + + public static void main(String[] args) throws Exception { + syncSetInstanceLabels(); + } + + public static void syncSetInstanceLabels() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + SetInstanceLabelsRequest request = + SetInstanceLabelsRequest.newBuilder() + .setName("name3373707") + .putAllLabels(new HashMap()) + .build(); + Instance response = notebookServiceClient.setInstanceLabelsAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_setinstancelabels_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineType.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineType.java new file mode 100644 index 00000000..3e9df162 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineType.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_setinstancemachinetype_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest; +import com.google.longrunning.Operation; + +public class AsyncSetInstanceMachineType { + + public static void main(String[] args) throws Exception { + asyncSetInstanceMachineType(); + } + + public static void asyncSetInstanceMachineType() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + SetInstanceMachineTypeRequest request = + SetInstanceMachineTypeRequest.newBuilder() + .setName("name3373707") + .setMachineType("machineType-218117087") + .build(); + ApiFuture future = + notebookServiceClient.setInstanceMachineTypeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_setinstancemachinetype_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java new file mode 100644 index 00000000..25f59fcf --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_setinstancemachinetype_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest; + +public class AsyncSetInstanceMachineTypeLRO { + + public static void main(String[] args) throws Exception { + asyncSetInstanceMachineTypeLRO(); + } + + public static void asyncSetInstanceMachineTypeLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + SetInstanceMachineTypeRequest request = + SetInstanceMachineTypeRequest.newBuilder() + .setName("name3373707") + .setMachineType("machineType-218117087") + .build(); + OperationFuture future = + notebookServiceClient.setInstanceMachineTypeOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_setinstancemachinetype_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/SyncSetInstanceMachineType.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/SyncSetInstanceMachineType.java new file mode 100644 index 00000000..6e120dcd --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/SyncSetInstanceMachineType.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_setinstancemachinetype_sync] +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest; + +public class SyncSetInstanceMachineType { + + public static void main(String[] args) throws Exception { + syncSetInstanceMachineType(); + } + + public static void syncSetInstanceMachineType() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + SetInstanceMachineTypeRequest request = + SetInstanceMachineTypeRequest.newBuilder() + .setName("name3373707") + .setMachineType("machineType-218117087") + .build(); + Instance response = notebookServiceClient.setInstanceMachineTypeAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_setinstancemachinetype_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/AsyncStartInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/AsyncStartInstance.java new file mode 100644 index 00000000..3f9e7890 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/AsyncStartInstance.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_startinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.StartInstanceRequest; +import com.google.longrunning.Operation; + +public class AsyncStartInstance { + + public static void main(String[] args) throws Exception { + asyncStartInstance(); + } + + public static void asyncStartInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + StartInstanceRequest request = + StartInstanceRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + notebookServiceClient.startInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_startinstance_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/AsyncStartInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/AsyncStartInstanceLRO.java new file mode 100644 index 00000000..70dbc71f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/AsyncStartInstanceLRO.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_startinstance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.StartInstanceRequest; + +public class AsyncStartInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncStartInstanceLRO(); + } + + public static void asyncStartInstanceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + StartInstanceRequest request = + StartInstanceRequest.newBuilder().setName("name3373707").build(); + OperationFuture future = + notebookServiceClient.startInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_startinstance_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/SyncStartInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/SyncStartInstance.java new file mode 100644 index 00000000..9d63c70a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/SyncStartInstance.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_startinstance_sync] +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.StartInstanceRequest; + +public class SyncStartInstance { + + public static void main(String[] args) throws Exception { + syncStartInstance(); + } + + public static void syncStartInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + StartInstanceRequest request = + StartInstanceRequest.newBuilder().setName("name3373707").build(); + Instance response = notebookServiceClient.startInstanceAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_startinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/AsyncStopInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/AsyncStopInstance.java new file mode 100644 index 00000000..2629c635 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/AsyncStopInstance.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_stopinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.StopInstanceRequest; +import com.google.longrunning.Operation; + +public class AsyncStopInstance { + + public static void main(String[] args) throws Exception { + asyncStopInstance(); + } + + public static void asyncStopInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + notebookServiceClient.stopInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_stopinstance_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/AsyncStopInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/AsyncStopInstanceLRO.java new file mode 100644 index 00000000..3d85e656 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/AsyncStopInstanceLRO.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_stopinstance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.StopInstanceRequest; + +public class AsyncStopInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncStopInstanceLRO(); + } + + public static void asyncStopInstanceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build(); + OperationFuture future = + notebookServiceClient.stopInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_stopinstance_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/SyncStopInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/SyncStopInstance.java new file mode 100644 index 00000000..8d9cf652 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/SyncStopInstance.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_stopinstance_sync] +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.StopInstanceRequest; + +public class SyncStopInstance { + + public static void main(String[] args) throws Exception { + syncStopInstance(); + } + + public static void syncStopInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build(); + Instance response = notebookServiceClient.stopInstanceAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_stopinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/AsyncTriggerSchedule.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/AsyncTriggerSchedule.java new file mode 100644 index 00000000..3d2d610c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/AsyncTriggerSchedule.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_triggerschedule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.ScheduleName; +import com.google.cloud.notebooks.v1.TriggerScheduleRequest; +import com.google.longrunning.Operation; + +public class AsyncTriggerSchedule { + + public static void main(String[] args) throws Exception { + asyncTriggerSchedule(); + } + + public static void asyncTriggerSchedule() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + TriggerScheduleRequest request = + TriggerScheduleRequest.newBuilder() + .setName(ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString()) + .build(); + ApiFuture future = + notebookServiceClient.triggerScheduleCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_triggerschedule_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/AsyncTriggerScheduleLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/AsyncTriggerScheduleLRO.java new file mode 100644 index 00000000..f438df39 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/AsyncTriggerScheduleLRO.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_triggerschedule_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.Schedule; +import com.google.cloud.notebooks.v1.ScheduleName; +import com.google.cloud.notebooks.v1.TriggerScheduleRequest; + +public class AsyncTriggerScheduleLRO { + + public static void main(String[] args) throws Exception { + asyncTriggerScheduleLRO(); + } + + public static void asyncTriggerScheduleLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + TriggerScheduleRequest request = + TriggerScheduleRequest.newBuilder() + .setName(ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString()) + .build(); + OperationFuture future = + notebookServiceClient.triggerScheduleOperationCallable().futureCall(request); + // Do something. + Schedule response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_triggerschedule_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/SyncTriggerSchedule.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/SyncTriggerSchedule.java new file mode 100644 index 00000000..aee4dd7e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/SyncTriggerSchedule.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_triggerschedule_sync] +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.Schedule; +import com.google.cloud.notebooks.v1.ScheduleName; +import com.google.cloud.notebooks.v1.TriggerScheduleRequest; + +public class SyncTriggerSchedule { + + public static void main(String[] args) throws Exception { + syncTriggerSchedule(); + } + + public static void syncTriggerSchedule() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + TriggerScheduleRequest request = + TriggerScheduleRequest.newBuilder() + .setName(ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString()) + .build(); + Schedule response = notebookServiceClient.triggerScheduleAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_triggerschedule_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/AsyncUpdateInstanceConfig.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/AsyncUpdateInstanceConfig.java new file mode 100644 index 00000000..4db2944a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/AsyncUpdateInstanceConfig.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_updateinstanceconfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.InstanceConfig; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest; +import com.google.longrunning.Operation; + +public class AsyncUpdateInstanceConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateInstanceConfig(); + } + + public static void asyncUpdateInstanceConfig() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpdateInstanceConfigRequest request = + UpdateInstanceConfigRequest.newBuilder() + .setName("name3373707") + .setConfig(InstanceConfig.newBuilder().build()) + .build(); + ApiFuture future = + notebookServiceClient.updateInstanceConfigCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_updateinstanceconfig_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/AsyncUpdateInstanceConfigLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/AsyncUpdateInstanceConfigLRO.java new file mode 100644 index 00000000..5e3f3a5a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/AsyncUpdateInstanceConfigLRO.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_updateinstanceconfig_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.InstanceConfig; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest; + +public class AsyncUpdateInstanceConfigLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateInstanceConfigLRO(); + } + + public static void asyncUpdateInstanceConfigLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpdateInstanceConfigRequest request = + UpdateInstanceConfigRequest.newBuilder() + .setName("name3373707") + .setConfig(InstanceConfig.newBuilder().build()) + .build(); + OperationFuture future = + notebookServiceClient.updateInstanceConfigOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_updateinstanceconfig_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/SyncUpdateInstanceConfig.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/SyncUpdateInstanceConfig.java new file mode 100644 index 00000000..40446b31 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/SyncUpdateInstanceConfig.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_updateinstanceconfig_sync] +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.InstanceConfig; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest; + +public class SyncUpdateInstanceConfig { + + public static void main(String[] args) throws Exception { + syncUpdateInstanceConfig(); + } + + public static void syncUpdateInstanceConfig() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpdateInstanceConfigRequest request = + UpdateInstanceConfigRequest.newBuilder() + .setName("name3373707") + .setConfig(InstanceConfig.newBuilder().build()) + .build(); + Instance response = notebookServiceClient.updateInstanceConfigAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_updateinstanceconfig_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstancemetadataitems/AsyncUpdateInstanceMetadataItems.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstancemetadataitems/AsyncUpdateInstanceMetadataItems.java new file mode 100644 index 00000000..f0a107ee --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstancemetadataitems/AsyncUpdateInstanceMetadataItems.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_updateinstancemetadataitems_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest; +import com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse; +import java.util.HashMap; + +public class AsyncUpdateInstanceMetadataItems { + + public static void main(String[] args) throws Exception { + asyncUpdateInstanceMetadataItems(); + } + + public static void asyncUpdateInstanceMetadataItems() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpdateInstanceMetadataItemsRequest request = + UpdateInstanceMetadataItemsRequest.newBuilder() + .setName("name3373707") + .putAllItems(new HashMap()) + .build(); + ApiFuture future = + notebookServiceClient.updateInstanceMetadataItemsCallable().futureCall(request); + // Do something. + UpdateInstanceMetadataItemsResponse response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_updateinstancemetadataitems_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstancemetadataitems/SyncUpdateInstanceMetadataItems.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstancemetadataitems/SyncUpdateInstanceMetadataItems.java new file mode 100644 index 00000000..efbfc3b2 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstancemetadataitems/SyncUpdateInstanceMetadataItems.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_updateinstancemetadataitems_sync] +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest; +import com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse; +import java.util.HashMap; + +public class SyncUpdateInstanceMetadataItems { + + public static void main(String[] args) throws Exception { + syncUpdateInstanceMetadataItems(); + } + + public static void syncUpdateInstanceMetadataItems() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpdateInstanceMetadataItemsRequest request = + UpdateInstanceMetadataItemsRequest.newBuilder() + .setName("name3373707") + .putAllItems(new HashMap()) + .build(); + UpdateInstanceMetadataItemsResponse response = + notebookServiceClient.updateInstanceMetadataItems(request); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_updateinstancemetadataitems_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfig.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfig.java new file mode 100644 index 00000000..b5c8b722 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfig.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_updateshieldedinstanceconfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest; +import com.google.longrunning.Operation; + +public class AsyncUpdateShieldedInstanceConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateShieldedInstanceConfig(); + } + + public static void asyncUpdateShieldedInstanceConfig() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpdateShieldedInstanceConfigRequest request = + UpdateShieldedInstanceConfigRequest.newBuilder() + .setName("name3373707") + .setShieldedInstanceConfig(Instance.ShieldedInstanceConfig.newBuilder().build()) + .build(); + ApiFuture future = + notebookServiceClient.updateShieldedInstanceConfigCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_updateshieldedinstanceconfig_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfigLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfigLRO.java new file mode 100644 index 00000000..70c79265 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfigLRO.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_updateshieldedinstanceconfig_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest; + +public class AsyncUpdateShieldedInstanceConfigLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateShieldedInstanceConfigLRO(); + } + + public static void asyncUpdateShieldedInstanceConfigLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpdateShieldedInstanceConfigRequest request = + UpdateShieldedInstanceConfigRequest.newBuilder() + .setName("name3373707") + .setShieldedInstanceConfig(Instance.ShieldedInstanceConfig.newBuilder().build()) + .build(); + OperationFuture future = + notebookServiceClient.updateShieldedInstanceConfigOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_updateshieldedinstanceconfig_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/SyncUpdateShieldedInstanceConfig.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/SyncUpdateShieldedInstanceConfig.java new file mode 100644 index 00000000..1a921bc3 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/SyncUpdateShieldedInstanceConfig.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_updateshieldedinstanceconfig_sync] +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest; + +public class SyncUpdateShieldedInstanceConfig { + + public static void main(String[] args) throws Exception { + syncUpdateShieldedInstanceConfig(); + } + + public static void syncUpdateShieldedInstanceConfig() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpdateShieldedInstanceConfigRequest request = + UpdateShieldedInstanceConfigRequest.newBuilder() + .setName("name3373707") + .setShieldedInstanceConfig(Instance.ShieldedInstanceConfig.newBuilder().build()) + .build(); + Instance response = notebookServiceClient.updateShieldedInstanceConfigAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_updateshieldedinstanceconfig_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstance.java new file mode 100644 index 00000000..900ba653 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstance.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_upgradeinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.UpgradeInstanceRequest; +import com.google.cloud.notebooks.v1.UpgradeType; +import com.google.longrunning.Operation; + +public class AsyncUpgradeInstance { + + public static void main(String[] args) throws Exception { + asyncUpgradeInstance(); + } + + public static void asyncUpgradeInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpgradeInstanceRequest request = + UpgradeInstanceRequest.newBuilder() + .setName("name3373707") + .setType(UpgradeType.forNumber(0)) + .build(); + ApiFuture future = + notebookServiceClient.upgradeInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_upgradeinstance_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstanceLRO.java new file mode 100644 index 00000000..bc7a3850 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstanceLRO.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_upgradeinstance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.UpgradeInstanceRequest; +import com.google.cloud.notebooks.v1.UpgradeType; + +public class AsyncUpgradeInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncUpgradeInstanceLRO(); + } + + public static void asyncUpgradeInstanceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpgradeInstanceRequest request = + UpgradeInstanceRequest.newBuilder() + .setName("name3373707") + .setType(UpgradeType.forNumber(0)) + .build(); + OperationFuture future = + notebookServiceClient.upgradeInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_upgradeinstance_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/SyncUpgradeInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/SyncUpgradeInstance.java new file mode 100644 index 00000000..c339f0dd --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/SyncUpgradeInstance.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_upgradeinstance_sync] +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.UpgradeInstanceRequest; +import com.google.cloud.notebooks.v1.UpgradeType; + +public class SyncUpgradeInstance { + + public static void main(String[] args) throws Exception { + syncUpgradeInstance(); + } + + public static void syncUpgradeInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpgradeInstanceRequest request = + UpgradeInstanceRequest.newBuilder() + .setName("name3373707") + .setType(UpgradeType.forNumber(0)) + .build(); + Instance response = notebookServiceClient.upgradeInstanceAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_upgradeinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java new file mode 100644 index 00000000..d8b313f5 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_upgradeinstanceinternal_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest; +import com.google.cloud.notebooks.v1.UpgradeType; +import com.google.longrunning.Operation; + +public class AsyncUpgradeInstanceInternal { + + public static void main(String[] args) throws Exception { + asyncUpgradeInstanceInternal(); + } + + public static void asyncUpgradeInstanceInternal() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpgradeInstanceInternalRequest request = + UpgradeInstanceInternalRequest.newBuilder() + .setName("name3373707") + .setVmId("vmId3622450") + .setType(UpgradeType.forNumber(0)) + .build(); + ApiFuture future = + notebookServiceClient.upgradeInstanceInternalCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_upgradeinstanceinternal_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java new file mode 100644 index 00000000..d560aa42 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_upgradeinstanceinternal_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.OperationMetadata; +import com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest; +import com.google.cloud.notebooks.v1.UpgradeType; + +public class AsyncUpgradeInstanceInternalLRO { + + public static void main(String[] args) throws Exception { + asyncUpgradeInstanceInternalLRO(); + } + + public static void asyncUpgradeInstanceInternalLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpgradeInstanceInternalRequest request = + UpgradeInstanceInternalRequest.newBuilder() + .setName("name3373707") + .setVmId("vmId3622450") + .setType(UpgradeType.forNumber(0)) + .build(); + OperationFuture future = + notebookServiceClient.upgradeInstanceInternalOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_upgradeinstanceinternal_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java new file mode 100644 index 00000000..6e7a322e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookserviceclient_upgradeinstanceinternal_sync] +import com.google.cloud.notebooks.v1.Instance; +import com.google.cloud.notebooks.v1.NotebookServiceClient; +import com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest; +import com.google.cloud.notebooks.v1.UpgradeType; + +public class SyncUpgradeInstanceInternal { + + public static void main(String[] args) throws Exception { + syncUpgradeInstanceInternal(); + } + + public static void syncUpgradeInstanceInternal() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpgradeInstanceInternalRequest request = + UpgradeInstanceInternalRequest.newBuilder() + .setName("name3373707") + .setVmId("vmId3622450") + .setType(UpgradeType.forNumber(0)) + .build(); + Instance response = notebookServiceClient.upgradeInstanceInternalAsync(request).get(); + } + } +} +// [END notebooks_v1_generated_notebookserviceclient_upgradeinstanceinternal_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservicesettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservicesettings/getinstance/SyncGetInstance.java new file mode 100644 index 00000000..b4bba327 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservicesettings/getinstance/SyncGetInstance.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.samples; + +// [START notebooks_v1_generated_notebookservicesettings_getinstance_sync] +import com.google.cloud.notebooks.v1.NotebookServiceSettings; +import java.time.Duration; + +public class SyncGetInstance { + + public static void main(String[] args) throws Exception { + syncGetInstance(); + } + + public static void syncGetInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + NotebookServiceSettings.Builder notebookServiceSettingsBuilder = + NotebookServiceSettings.newBuilder(); + notebookServiceSettingsBuilder + .getInstanceSettings() + .setRetrySettings( + notebookServiceSettingsBuilder + .getInstanceSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + NotebookServiceSettings notebookServiceSettings = notebookServiceSettingsBuilder.build(); + } +} +// [END notebooks_v1_generated_notebookservicesettings_getinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/managednotebookservicestubsettings/getruntime/SyncGetRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/managednotebookservicestubsettings/getruntime/SyncGetRuntime.java new file mode 100644 index 00000000..7ede1477 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/managednotebookservicestubsettings/getruntime/SyncGetRuntime.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.stub.samples; + +// [START notebooks_v1_generated_managednotebookservicestubsettings_getruntime_sync] +import com.google.cloud.notebooks.v1.stub.ManagedNotebookServiceStubSettings; +import java.time.Duration; + +public class SyncGetRuntime { + + public static void main(String[] args) throws Exception { + syncGetRuntime(); + } + + public static void syncGetRuntime() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ManagedNotebookServiceStubSettings.Builder managedNotebookServiceSettingsBuilder = + ManagedNotebookServiceStubSettings.newBuilder(); + managedNotebookServiceSettingsBuilder + .getRuntimeSettings() + .setRetrySettings( + managedNotebookServiceSettingsBuilder + .getRuntimeSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ManagedNotebookServiceStubSettings managedNotebookServiceSettings = + managedNotebookServiceSettingsBuilder.build(); + } +} +// [END notebooks_v1_generated_managednotebookservicestubsettings_getruntime_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java new file mode 100644 index 00000000..31608a94 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1.stub.samples; + +// [START notebooks_v1_generated_notebookservicestubsettings_getinstance_sync] +import com.google.cloud.notebooks.v1.stub.NotebookServiceStubSettings; +import java.time.Duration; + +public class SyncGetInstance { + + public static void main(String[] args) throws Exception { + syncGetInstance(); + } + + public static void syncGetInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + NotebookServiceStubSettings.Builder notebookServiceSettingsBuilder = + NotebookServiceStubSettings.newBuilder(); + notebookServiceSettingsBuilder + .getInstanceSettings() + .setRetrySettings( + notebookServiceSettingsBuilder + .getInstanceSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + NotebookServiceStubSettings notebookServiceSettings = notebookServiceSettingsBuilder.build(); + } +} +// [END notebooks_v1_generated_notebookservicestubsettings_getinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..cfdd3bc4 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.NotebookServiceSettings; +import com.google.cloud.notebooks.v1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + NotebookServiceSettings notebookServiceSettings = + NotebookServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + NotebookServiceClient notebookServiceClient = + NotebookServiceClient.create(notebookServiceSettings); + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..6a04b950 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_create_setendpoint_sync] +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.NotebookServiceSettings; +import com.google.cloud.notebooks.v1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + NotebookServiceSettings notebookServiceSettings = + NotebookServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + NotebookServiceClient notebookServiceClient = + NotebookServiceClient.create(notebookServiceSettings); + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/AsyncCreateEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/AsyncCreateEnvironment.java new file mode 100644 index 00000000..7c1444a4 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/AsyncCreateEnvironment.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_createenvironment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest; +import com.google.cloud.notebooks.v1beta1.Environment; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCreateEnvironment { + + public static void main(String[] args) throws Exception { + asyncCreateEnvironment(); + } + + public static void asyncCreateEnvironment() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + CreateEnvironmentRequest request = + CreateEnvironmentRequest.newBuilder() + .setParent("parent-995424086") + .setEnvironmentId("environmentId-950205810") + .setEnvironment(Environment.newBuilder().build()) + .build(); + ApiFuture future = + notebookServiceClient.createEnvironmentCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_createenvironment_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/AsyncCreateEnvironmentLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/AsyncCreateEnvironmentLRO.java new file mode 100644 index 00000000..5677c95c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/AsyncCreateEnvironmentLRO.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_createenvironment_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest; +import com.google.cloud.notebooks.v1beta1.Environment; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.OperationMetadata; + +public class AsyncCreateEnvironmentLRO { + + public static void main(String[] args) throws Exception { + asyncCreateEnvironmentLRO(); + } + + public static void asyncCreateEnvironmentLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + CreateEnvironmentRequest request = + CreateEnvironmentRequest.newBuilder() + .setParent("parent-995424086") + .setEnvironmentId("environmentId-950205810") + .setEnvironment(Environment.newBuilder().build()) + .build(); + OperationFuture future = + notebookServiceClient.createEnvironmentOperationCallable().futureCall(request); + // Do something. + Environment response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_createenvironment_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/SyncCreateEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/SyncCreateEnvironment.java new file mode 100644 index 00000000..640dd502 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/SyncCreateEnvironment.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_createenvironment_sync] +import com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest; +import com.google.cloud.notebooks.v1beta1.Environment; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; + +public class SyncCreateEnvironment { + + public static void main(String[] args) throws Exception { + syncCreateEnvironment(); + } + + public static void syncCreateEnvironment() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + CreateEnvironmentRequest request = + CreateEnvironmentRequest.newBuilder() + .setParent("parent-995424086") + .setEnvironmentId("environmentId-950205810") + .setEnvironment(Environment.newBuilder().build()) + .build(); + Environment response = notebookServiceClient.createEnvironmentAsync(request).get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_createenvironment_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/AsyncCreateInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/AsyncCreateInstance.java new file mode 100644 index 00000000..66d8c5b1 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/AsyncCreateInstance.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_createinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1beta1.CreateInstanceRequest; +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCreateInstance { + + public static void main(String[] args) throws Exception { + asyncCreateInstance(); + } + + public static void asyncCreateInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + CreateInstanceRequest request = + CreateInstanceRequest.newBuilder() + .setParent("parent-995424086") + .setInstanceId("instanceId902024336") + .setInstance(Instance.newBuilder().build()) + .build(); + ApiFuture future = + notebookServiceClient.createInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_createinstance_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/AsyncCreateInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/AsyncCreateInstanceLRO.java new file mode 100644 index 00000000..efa11731 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/AsyncCreateInstanceLRO.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_createinstance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1beta1.CreateInstanceRequest; +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.OperationMetadata; + +public class AsyncCreateInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncCreateInstanceLRO(); + } + + public static void asyncCreateInstanceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + CreateInstanceRequest request = + CreateInstanceRequest.newBuilder() + .setParent("parent-995424086") + .setInstanceId("instanceId902024336") + .setInstance(Instance.newBuilder().build()) + .build(); + OperationFuture future = + notebookServiceClient.createInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_createinstance_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/SyncCreateInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/SyncCreateInstance.java new file mode 100644 index 00000000..c83ce365 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/SyncCreateInstance.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_createinstance_sync] +import com.google.cloud.notebooks.v1beta1.CreateInstanceRequest; +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; + +public class SyncCreateInstance { + + public static void main(String[] args) throws Exception { + syncCreateInstance(); + } + + public static void syncCreateInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + CreateInstanceRequest request = + CreateInstanceRequest.newBuilder() + .setParent("parent-995424086") + .setInstanceId("instanceId902024336") + .setInstance(Instance.newBuilder().build()) + .build(); + Instance response = notebookServiceClient.createInstanceAsync(request).get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_createinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironment.java new file mode 100644 index 00000000..88dbd896 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironment.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_deleteenvironment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteEnvironment { + + public static void main(String[] args) throws Exception { + asyncDeleteEnvironment(); + } + + public static void asyncDeleteEnvironment() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + DeleteEnvironmentRequest request = + DeleteEnvironmentRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + notebookServiceClient.deleteEnvironmentCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_deleteenvironment_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironmentLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironmentLRO.java new file mode 100644 index 00000000..92b1a9c7 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironmentLRO.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_deleteenvironment_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteEnvironmentLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteEnvironmentLRO(); + } + + public static void asyncDeleteEnvironmentLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + DeleteEnvironmentRequest request = + DeleteEnvironmentRequest.newBuilder().setName("name3373707").build(); + OperationFuture future = + notebookServiceClient.deleteEnvironmentOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_deleteenvironment_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironment.java new file mode 100644 index 00000000..016b3557 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironment.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_deleteenvironment_sync] +import com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteEnvironment { + + public static void main(String[] args) throws Exception { + syncDeleteEnvironment(); + } + + public static void syncDeleteEnvironment() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + DeleteEnvironmentRequest request = + DeleteEnvironmentRequest.newBuilder().setName("name3373707").build(); + notebookServiceClient.deleteEnvironmentAsync(request).get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_deleteenvironment_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/AsyncDeleteInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/AsyncDeleteInstance.java new file mode 100644 index 00000000..8f7ef6d9 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/AsyncDeleteInstance.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_deleteinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteInstance { + + public static void main(String[] args) throws Exception { + asyncDeleteInstance(); + } + + public static void asyncDeleteInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + DeleteInstanceRequest request = + DeleteInstanceRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + notebookServiceClient.deleteInstanceCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_deleteinstance_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/AsyncDeleteInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/AsyncDeleteInstanceLRO.java new file mode 100644 index 00000000..9635ac21 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/AsyncDeleteInstanceLRO.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_deleteinstance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteInstanceLRO(); + } + + public static void asyncDeleteInstanceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + DeleteInstanceRequest request = + DeleteInstanceRequest.newBuilder().setName("name3373707").build(); + OperationFuture future = + notebookServiceClient.deleteInstanceOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_deleteinstance_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/SyncDeleteInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/SyncDeleteInstance.java new file mode 100644 index 00000000..ebfc5c21 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/SyncDeleteInstance.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_deleteinstance_sync] +import com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteInstance { + + public static void main(String[] args) throws Exception { + syncDeleteInstance(); + } + + public static void syncDeleteInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + DeleteInstanceRequest request = + DeleteInstanceRequest.newBuilder().setName("name3373707").build(); + notebookServiceClient.deleteInstanceAsync(request).get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_deleteinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getenvironment/AsyncGetEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getenvironment/AsyncGetEnvironment.java new file mode 100644 index 00000000..ea81a022 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getenvironment/AsyncGetEnvironment.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_getenvironment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1beta1.Environment; +import com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; + +public class AsyncGetEnvironment { + + public static void main(String[] args) throws Exception { + asyncGetEnvironment(); + } + + public static void asyncGetEnvironment() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + GetEnvironmentRequest request = + GetEnvironmentRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + notebookServiceClient.getEnvironmentCallable().futureCall(request); + // Do something. + Environment response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_getenvironment_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getenvironment/SyncGetEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getenvironment/SyncGetEnvironment.java new file mode 100644 index 00000000..5e92ece9 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getenvironment/SyncGetEnvironment.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_getenvironment_sync] +import com.google.cloud.notebooks.v1beta1.Environment; +import com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; + +public class SyncGetEnvironment { + + public static void main(String[] args) throws Exception { + syncGetEnvironment(); + } + + public static void syncGetEnvironment() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + GetEnvironmentRequest request = + GetEnvironmentRequest.newBuilder().setName("name3373707").build(); + Environment response = notebookServiceClient.getEnvironment(request); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_getenvironment_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getinstance/AsyncGetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getinstance/AsyncGetInstance.java new file mode 100644 index 00000000..c529e91a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getinstance/AsyncGetInstance.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_getinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1beta1.GetInstanceRequest; +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; + +public class AsyncGetInstance { + + public static void main(String[] args) throws Exception { + asyncGetInstance(); + } + + public static void asyncGetInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + GetInstanceRequest request = GetInstanceRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = notebookServiceClient.getInstanceCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_getinstance_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getinstance/SyncGetInstance.java new file mode 100644 index 00000000..537a0b07 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getinstance/SyncGetInstance.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_getinstance_sync] +import com.google.cloud.notebooks.v1beta1.GetInstanceRequest; +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; + +public class SyncGetInstance { + + public static void main(String[] args) throws Exception { + syncGetInstance(); + } + + public static void syncGetInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + GetInstanceRequest request = GetInstanceRequest.newBuilder().setName("name3373707").build(); + Instance response = notebookServiceClient.getInstance(request); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_getinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java new file mode 100644 index 00000000..11d04ea7 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_isinstanceupgradeable_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest; +import com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; + +public class AsyncIsInstanceUpgradeable { + + public static void main(String[] args) throws Exception { + asyncIsInstanceUpgradeable(); + } + + public static void asyncIsInstanceUpgradeable() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + IsInstanceUpgradeableRequest request = + IsInstanceUpgradeableRequest.newBuilder() + .setNotebookInstance("notebookInstance-544239728") + .build(); + ApiFuture future = + notebookServiceClient.isInstanceUpgradeableCallable().futureCall(request); + // Do something. + IsInstanceUpgradeableResponse response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_isinstanceupgradeable_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/isinstanceupgradeable/SyncIsInstanceUpgradeable.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/isinstanceupgradeable/SyncIsInstanceUpgradeable.java new file mode 100644 index 00000000..57585750 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/isinstanceupgradeable/SyncIsInstanceUpgradeable.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_isinstanceupgradeable_sync] +import com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest; +import com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; + +public class SyncIsInstanceUpgradeable { + + public static void main(String[] args) throws Exception { + syncIsInstanceUpgradeable(); + } + + public static void syncIsInstanceUpgradeable() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + IsInstanceUpgradeableRequest request = + IsInstanceUpgradeableRequest.newBuilder() + .setNotebookInstance("notebookInstance-544239728") + .build(); + IsInstanceUpgradeableResponse response = notebookServiceClient.isInstanceUpgradeable(request); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_isinstanceupgradeable_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/AsyncListEnvironments.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/AsyncListEnvironments.java new file mode 100644 index 00000000..7a47b840 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/AsyncListEnvironments.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_listenvironments_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1beta1.Environment; +import com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; + +public class AsyncListEnvironments { + + public static void main(String[] args) throws Exception { + asyncListEnvironments(); + } + + public static void asyncListEnvironments() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ListEnvironmentsRequest request = + ListEnvironmentsRequest.newBuilder() + .setParent("parent-995424086") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + notebookServiceClient.listEnvironmentsPagedCallable().futureCall(request); + // Do something. + for (Environment element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_listenvironments_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/AsyncListEnvironmentsPaged.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/AsyncListEnvironmentsPaged.java new file mode 100644 index 00000000..93c207fa --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/AsyncListEnvironmentsPaged.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_listenvironments_paged_async] +import com.google.cloud.notebooks.v1beta1.Environment; +import com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest; +import com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.common.base.Strings; + +public class AsyncListEnvironmentsPaged { + + public static void main(String[] args) throws Exception { + asyncListEnvironmentsPaged(); + } + + public static void asyncListEnvironmentsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ListEnvironmentsRequest request = + ListEnvironmentsRequest.newBuilder() + .setParent("parent-995424086") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListEnvironmentsResponse response = + notebookServiceClient.listEnvironmentsCallable().call(request); + for (Environment element : response.getEnvironmentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_listenvironments_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/SyncListEnvironments.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/SyncListEnvironments.java new file mode 100644 index 00000000..bc3d4039 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/SyncListEnvironments.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_listenvironments_sync] +import com.google.cloud.notebooks.v1beta1.Environment; +import com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; + +public class SyncListEnvironments { + + public static void main(String[] args) throws Exception { + syncListEnvironments(); + } + + public static void syncListEnvironments() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ListEnvironmentsRequest request = + ListEnvironmentsRequest.newBuilder() + .setParent("parent-995424086") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Environment element : notebookServiceClient.listEnvironments(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_listenvironments_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/AsyncListInstances.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/AsyncListInstances.java new file mode 100644 index 00000000..aec73d28 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/AsyncListInstances.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_listinstances_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.ListInstancesRequest; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; + +public class AsyncListInstances { + + public static void main(String[] args) throws Exception { + asyncListInstances(); + } + + public static void asyncListInstances() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ListInstancesRequest request = + ListInstancesRequest.newBuilder() + .setParent("parent-995424086") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + notebookServiceClient.listInstancesPagedCallable().futureCall(request); + // Do something. + for (Instance element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_listinstances_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/AsyncListInstancesPaged.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/AsyncListInstancesPaged.java new file mode 100644 index 00000000..0ce8e20f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/AsyncListInstancesPaged.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_listinstances_paged_async] +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.ListInstancesRequest; +import com.google.cloud.notebooks.v1beta1.ListInstancesResponse; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.common.base.Strings; + +public class AsyncListInstancesPaged { + + public static void main(String[] args) throws Exception { + asyncListInstancesPaged(); + } + + public static void asyncListInstancesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ListInstancesRequest request = + ListInstancesRequest.newBuilder() + .setParent("parent-995424086") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListInstancesResponse response = + notebookServiceClient.listInstancesCallable().call(request); + for (Instance element : response.getInstancesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_listinstances_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/SyncListInstances.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/SyncListInstances.java new file mode 100644 index 00000000..f1fd4ecd --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/SyncListInstances.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_listinstances_sync] +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.ListInstancesRequest; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; + +public class SyncListInstances { + + public static void main(String[] args) throws Exception { + syncListInstances(); + } + + public static void syncListInstances() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ListInstancesRequest request = + ListInstancesRequest.newBuilder() + .setParent("parent-995424086") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Instance element : notebookServiceClient.listInstances(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_listinstances_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/AsyncRegisterInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/AsyncRegisterInstance.java new file mode 100644 index 00000000..8a6d4e6b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/AsyncRegisterInstance.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_registerinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest; +import com.google.longrunning.Operation; + +public class AsyncRegisterInstance { + + public static void main(String[] args) throws Exception { + asyncRegisterInstance(); + } + + public static void asyncRegisterInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + RegisterInstanceRequest request = + RegisterInstanceRequest.newBuilder() + .setParent("parent-995424086") + .setInstanceId("instanceId902024336") + .build(); + ApiFuture future = + notebookServiceClient.registerInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_registerinstance_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/AsyncRegisterInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/AsyncRegisterInstanceLRO.java new file mode 100644 index 00000000..f9380e7c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/AsyncRegisterInstanceLRO.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_registerinstance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.OperationMetadata; +import com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest; + +public class AsyncRegisterInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncRegisterInstanceLRO(); + } + + public static void asyncRegisterInstanceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + RegisterInstanceRequest request = + RegisterInstanceRequest.newBuilder() + .setParent("parent-995424086") + .setInstanceId("instanceId902024336") + .build(); + OperationFuture future = + notebookServiceClient.registerInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_registerinstance_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/SyncRegisterInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/SyncRegisterInstance.java new file mode 100644 index 00000000..1fdcd39a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/SyncRegisterInstance.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_registerinstance_sync] +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest; + +public class SyncRegisterInstance { + + public static void main(String[] args) throws Exception { + syncRegisterInstance(); + } + + public static void syncRegisterInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + RegisterInstanceRequest request = + RegisterInstanceRequest.newBuilder() + .setParent("parent-995424086") + .setInstanceId("instanceId902024336") + .build(); + Instance response = notebookServiceClient.registerInstanceAsync(request).get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_registerinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfo.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfo.java new file mode 100644 index 00000000..15872560 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfo.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_reportinstanceinfo_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest; +import com.google.longrunning.Operation; +import java.util.HashMap; + +public class AsyncReportInstanceInfo { + + public static void main(String[] args) throws Exception { + asyncReportInstanceInfo(); + } + + public static void asyncReportInstanceInfo() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ReportInstanceInfoRequest request = + ReportInstanceInfoRequest.newBuilder() + .setName("name3373707") + .setVmId("vmId3622450") + .putAllMetadata(new HashMap()) + .build(); + ApiFuture future = + notebookServiceClient.reportInstanceInfoCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_reportinstanceinfo_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfoLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfoLRO.java new file mode 100644 index 00000000..1c480e7c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfoLRO.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_reportinstanceinfo_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.OperationMetadata; +import com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest; +import java.util.HashMap; + +public class AsyncReportInstanceInfoLRO { + + public static void main(String[] args) throws Exception { + asyncReportInstanceInfoLRO(); + } + + public static void asyncReportInstanceInfoLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ReportInstanceInfoRequest request = + ReportInstanceInfoRequest.newBuilder() + .setName("name3373707") + .setVmId("vmId3622450") + .putAllMetadata(new HashMap()) + .build(); + OperationFuture future = + notebookServiceClient.reportInstanceInfoOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_reportinstanceinfo_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/SyncReportInstanceInfo.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/SyncReportInstanceInfo.java new file mode 100644 index 00000000..52a5761b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/SyncReportInstanceInfo.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_reportinstanceinfo_sync] +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest; +import java.util.HashMap; + +public class SyncReportInstanceInfo { + + public static void main(String[] args) throws Exception { + syncReportInstanceInfo(); + } + + public static void syncReportInstanceInfo() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ReportInstanceInfoRequest request = + ReportInstanceInfoRequest.newBuilder() + .setName("name3373707") + .setVmId("vmId3622450") + .putAllMetadata(new HashMap()) + .build(); + Instance response = notebookServiceClient.reportInstanceInfoAsync(request).get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_reportinstanceinfo_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/AsyncResetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/AsyncResetInstance.java new file mode 100644 index 00000000..1d28c6c9 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/AsyncResetInstance.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_resetinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.ResetInstanceRequest; +import com.google.longrunning.Operation; + +public class AsyncResetInstance { + + public static void main(String[] args) throws Exception { + asyncResetInstance(); + } + + public static void asyncResetInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ResetInstanceRequest request = + ResetInstanceRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + notebookServiceClient.resetInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_resetinstance_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/AsyncResetInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/AsyncResetInstanceLRO.java new file mode 100644 index 00000000..264670a2 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/AsyncResetInstanceLRO.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_resetinstance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.OperationMetadata; +import com.google.cloud.notebooks.v1beta1.ResetInstanceRequest; + +public class AsyncResetInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncResetInstanceLRO(); + } + + public static void asyncResetInstanceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ResetInstanceRequest request = + ResetInstanceRequest.newBuilder().setName("name3373707").build(); + OperationFuture future = + notebookServiceClient.resetInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_resetinstance_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/SyncResetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/SyncResetInstance.java new file mode 100644 index 00000000..bb7c7b29 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/SyncResetInstance.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_resetinstance_sync] +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.ResetInstanceRequest; + +public class SyncResetInstance { + + public static void main(String[] args) throws Exception { + syncResetInstance(); + } + + public static void syncResetInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + ResetInstanceRequest request = + ResetInstanceRequest.newBuilder().setName("name3373707").build(); + Instance response = notebookServiceClient.resetInstanceAsync(request).get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_resetinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAccelerator.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAccelerator.java new file mode 100644 index 00000000..d2b43d15 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAccelerator.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_setinstanceaccelerator_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest; +import com.google.longrunning.Operation; + +public class AsyncSetInstanceAccelerator { + + public static void main(String[] args) throws Exception { + asyncSetInstanceAccelerator(); + } + + public static void asyncSetInstanceAccelerator() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + SetInstanceAcceleratorRequest request = + SetInstanceAcceleratorRequest.newBuilder() + .setName("name3373707") + .setCoreCount(-1963855761) + .build(); + ApiFuture future = + notebookServiceClient.setInstanceAcceleratorCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_setinstanceaccelerator_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java new file mode 100644 index 00000000..a737fb99 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_setinstanceaccelerator_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.OperationMetadata; +import com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest; + +public class AsyncSetInstanceAcceleratorLRO { + + public static void main(String[] args) throws Exception { + asyncSetInstanceAcceleratorLRO(); + } + + public static void asyncSetInstanceAcceleratorLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + SetInstanceAcceleratorRequest request = + SetInstanceAcceleratorRequest.newBuilder() + .setName("name3373707") + .setCoreCount(-1963855761) + .build(); + OperationFuture future = + notebookServiceClient.setInstanceAcceleratorOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_setinstanceaccelerator_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/SyncSetInstanceAccelerator.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/SyncSetInstanceAccelerator.java new file mode 100644 index 00000000..67f56450 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/SyncSetInstanceAccelerator.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_setinstanceaccelerator_sync] +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest; + +public class SyncSetInstanceAccelerator { + + public static void main(String[] args) throws Exception { + syncSetInstanceAccelerator(); + } + + public static void syncSetInstanceAccelerator() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + SetInstanceAcceleratorRequest request = + SetInstanceAcceleratorRequest.newBuilder() + .setName("name3373707") + .setCoreCount(-1963855761) + .build(); + Instance response = notebookServiceClient.setInstanceAcceleratorAsync(request).get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_setinstanceaccelerator_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabels.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabels.java new file mode 100644 index 00000000..ff0c414d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabels.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_setinstancelabels_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest; +import com.google.longrunning.Operation; +import java.util.HashMap; + +public class AsyncSetInstanceLabels { + + public static void main(String[] args) throws Exception { + asyncSetInstanceLabels(); + } + + public static void asyncSetInstanceLabels() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + SetInstanceLabelsRequest request = + SetInstanceLabelsRequest.newBuilder() + .setName("name3373707") + .putAllLabels(new HashMap()) + .build(); + ApiFuture future = + notebookServiceClient.setInstanceLabelsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_setinstancelabels_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabelsLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabelsLRO.java new file mode 100644 index 00000000..f2721ee6 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabelsLRO.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_setinstancelabels_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.OperationMetadata; +import com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest; +import java.util.HashMap; + +public class AsyncSetInstanceLabelsLRO { + + public static void main(String[] args) throws Exception { + asyncSetInstanceLabelsLRO(); + } + + public static void asyncSetInstanceLabelsLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + SetInstanceLabelsRequest request = + SetInstanceLabelsRequest.newBuilder() + .setName("name3373707") + .putAllLabels(new HashMap()) + .build(); + OperationFuture future = + notebookServiceClient.setInstanceLabelsOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_setinstancelabels_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/SyncSetInstanceLabels.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/SyncSetInstanceLabels.java new file mode 100644 index 00000000..3a9210be --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/SyncSetInstanceLabels.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_setinstancelabels_sync] +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest; +import java.util.HashMap; + +public class SyncSetInstanceLabels { + + public static void main(String[] args) throws Exception { + syncSetInstanceLabels(); + } + + public static void syncSetInstanceLabels() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + SetInstanceLabelsRequest request = + SetInstanceLabelsRequest.newBuilder() + .setName("name3373707") + .putAllLabels(new HashMap()) + .build(); + Instance response = notebookServiceClient.setInstanceLabelsAsync(request).get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_setinstancelabels_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineType.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineType.java new file mode 100644 index 00000000..1d8d3016 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineType.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_setinstancemachinetype_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest; +import com.google.longrunning.Operation; + +public class AsyncSetInstanceMachineType { + + public static void main(String[] args) throws Exception { + asyncSetInstanceMachineType(); + } + + public static void asyncSetInstanceMachineType() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + SetInstanceMachineTypeRequest request = + SetInstanceMachineTypeRequest.newBuilder() + .setName("name3373707") + .setMachineType("machineType-218117087") + .build(); + ApiFuture future = + notebookServiceClient.setInstanceMachineTypeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_setinstancemachinetype_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java new file mode 100644 index 00000000..3c28d258 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_setinstancemachinetype_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.OperationMetadata; +import com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest; + +public class AsyncSetInstanceMachineTypeLRO { + + public static void main(String[] args) throws Exception { + asyncSetInstanceMachineTypeLRO(); + } + + public static void asyncSetInstanceMachineTypeLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + SetInstanceMachineTypeRequest request = + SetInstanceMachineTypeRequest.newBuilder() + .setName("name3373707") + .setMachineType("machineType-218117087") + .build(); + OperationFuture future = + notebookServiceClient.setInstanceMachineTypeOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_setinstancemachinetype_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/SyncSetInstanceMachineType.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/SyncSetInstanceMachineType.java new file mode 100644 index 00000000..b8cd5998 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/SyncSetInstanceMachineType.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_setinstancemachinetype_sync] +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest; + +public class SyncSetInstanceMachineType { + + public static void main(String[] args) throws Exception { + syncSetInstanceMachineType(); + } + + public static void syncSetInstanceMachineType() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + SetInstanceMachineTypeRequest request = + SetInstanceMachineTypeRequest.newBuilder() + .setName("name3373707") + .setMachineType("machineType-218117087") + .build(); + Instance response = notebookServiceClient.setInstanceMachineTypeAsync(request).get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_setinstancemachinetype_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/AsyncStartInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/AsyncStartInstance.java new file mode 100644 index 00000000..d656fb60 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/AsyncStartInstance.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_startinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.StartInstanceRequest; +import com.google.longrunning.Operation; + +public class AsyncStartInstance { + + public static void main(String[] args) throws Exception { + asyncStartInstance(); + } + + public static void asyncStartInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + StartInstanceRequest request = + StartInstanceRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + notebookServiceClient.startInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_startinstance_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/AsyncStartInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/AsyncStartInstanceLRO.java new file mode 100644 index 00000000..b6913337 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/AsyncStartInstanceLRO.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_startinstance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.OperationMetadata; +import com.google.cloud.notebooks.v1beta1.StartInstanceRequest; + +public class AsyncStartInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncStartInstanceLRO(); + } + + public static void asyncStartInstanceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + StartInstanceRequest request = + StartInstanceRequest.newBuilder().setName("name3373707").build(); + OperationFuture future = + notebookServiceClient.startInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_startinstance_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/SyncStartInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/SyncStartInstance.java new file mode 100644 index 00000000..ddeb2700 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/SyncStartInstance.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_startinstance_sync] +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.StartInstanceRequest; + +public class SyncStartInstance { + + public static void main(String[] args) throws Exception { + syncStartInstance(); + } + + public static void syncStartInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + StartInstanceRequest request = + StartInstanceRequest.newBuilder().setName("name3373707").build(); + Instance response = notebookServiceClient.startInstanceAsync(request).get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_startinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/AsyncStopInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/AsyncStopInstance.java new file mode 100644 index 00000000..de657651 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/AsyncStopInstance.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_stopinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.StopInstanceRequest; +import com.google.longrunning.Operation; + +public class AsyncStopInstance { + + public static void main(String[] args) throws Exception { + asyncStopInstance(); + } + + public static void asyncStopInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + notebookServiceClient.stopInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_stopinstance_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/AsyncStopInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/AsyncStopInstanceLRO.java new file mode 100644 index 00000000..542a66eb --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/AsyncStopInstanceLRO.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_stopinstance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.OperationMetadata; +import com.google.cloud.notebooks.v1beta1.StopInstanceRequest; + +public class AsyncStopInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncStopInstanceLRO(); + } + + public static void asyncStopInstanceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build(); + OperationFuture future = + notebookServiceClient.stopInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_stopinstance_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/SyncStopInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/SyncStopInstance.java new file mode 100644 index 00000000..9e7818ae --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/SyncStopInstance.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_stopinstance_sync] +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.StopInstanceRequest; + +public class SyncStopInstance { + + public static void main(String[] args) throws Exception { + syncStopInstance(); + } + + public static void syncStopInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build(); + Instance response = notebookServiceClient.stopInstanceAsync(request).get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_stopinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstance.java new file mode 100644 index 00000000..719099ac --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstance.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_upgradeinstance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest; +import com.google.longrunning.Operation; + +public class AsyncUpgradeInstance { + + public static void main(String[] args) throws Exception { + asyncUpgradeInstance(); + } + + public static void asyncUpgradeInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpgradeInstanceRequest request = + UpgradeInstanceRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + notebookServiceClient.upgradeInstanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_upgradeinstance_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstanceLRO.java new file mode 100644 index 00000000..5a4d0112 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstanceLRO.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_upgradeinstance_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.OperationMetadata; +import com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest; + +public class AsyncUpgradeInstanceLRO { + + public static void main(String[] args) throws Exception { + asyncUpgradeInstanceLRO(); + } + + public static void asyncUpgradeInstanceLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpgradeInstanceRequest request = + UpgradeInstanceRequest.newBuilder().setName("name3373707").build(); + OperationFuture future = + notebookServiceClient.upgradeInstanceOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_upgradeinstance_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/SyncUpgradeInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/SyncUpgradeInstance.java new file mode 100644 index 00000000..a4264338 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/SyncUpgradeInstance.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_upgradeinstance_sync] +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest; + +public class SyncUpgradeInstance { + + public static void main(String[] args) throws Exception { + syncUpgradeInstance(); + } + + public static void syncUpgradeInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpgradeInstanceRequest request = + UpgradeInstanceRequest.newBuilder().setName("name3373707").build(); + Instance response = notebookServiceClient.upgradeInstanceAsync(request).get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_upgradeinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java new file mode 100644 index 00000000..4634002f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_upgradeinstanceinternal_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest; +import com.google.longrunning.Operation; + +public class AsyncUpgradeInstanceInternal { + + public static void main(String[] args) throws Exception { + asyncUpgradeInstanceInternal(); + } + + public static void asyncUpgradeInstanceInternal() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpgradeInstanceInternalRequest request = + UpgradeInstanceInternalRequest.newBuilder() + .setName("name3373707") + .setVmId("vmId3622450") + .build(); + ApiFuture future = + notebookServiceClient.upgradeInstanceInternalCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_upgradeinstanceinternal_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java new file mode 100644 index 00000000..9e564cee --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_upgradeinstanceinternal_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.OperationMetadata; +import com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest; + +public class AsyncUpgradeInstanceInternalLRO { + + public static void main(String[] args) throws Exception { + asyncUpgradeInstanceInternalLRO(); + } + + public static void asyncUpgradeInstanceInternalLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpgradeInstanceInternalRequest request = + UpgradeInstanceInternalRequest.newBuilder() + .setName("name3373707") + .setVmId("vmId3622450") + .build(); + OperationFuture future = + notebookServiceClient.upgradeInstanceInternalOperationCallable().futureCall(request); + // Do something. + Instance response = future.get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_upgradeinstanceinternal_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java new file mode 100644 index 00000000..4da43024 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookserviceclient_upgradeinstanceinternal_sync] +import com.google.cloud.notebooks.v1beta1.Instance; +import com.google.cloud.notebooks.v1beta1.NotebookServiceClient; +import com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest; + +public class SyncUpgradeInstanceInternal { + + public static void main(String[] args) throws Exception { + syncUpgradeInstanceInternal(); + } + + public static void syncUpgradeInstanceInternal() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + UpgradeInstanceInternalRequest request = + UpgradeInstanceInternalRequest.newBuilder() + .setName("name3373707") + .setVmId("vmId3622450") + .build(); + Instance response = notebookServiceClient.upgradeInstanceInternalAsync(request).get(); + } + } +} +// [END notebooks_v1beta1_generated_notebookserviceclient_upgradeinstanceinternal_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservicesettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservicesettings/getinstance/SyncGetInstance.java new file mode 100644 index 00000000..c8264e3a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservicesettings/getinstance/SyncGetInstance.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.samples; + +// [START notebooks_v1beta1_generated_notebookservicesettings_getinstance_sync] +import com.google.cloud.notebooks.v1beta1.NotebookServiceSettings; +import java.time.Duration; + +public class SyncGetInstance { + + public static void main(String[] args) throws Exception { + syncGetInstance(); + } + + public static void syncGetInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + NotebookServiceSettings.Builder notebookServiceSettingsBuilder = + NotebookServiceSettings.newBuilder(); + notebookServiceSettingsBuilder + .getInstanceSettings() + .setRetrySettings( + notebookServiceSettingsBuilder + .getInstanceSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + NotebookServiceSettings notebookServiceSettings = notebookServiceSettingsBuilder.build(); + } +} +// [END notebooks_v1beta1_generated_notebookservicesettings_getinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java new file mode 100644 index 00000000..2321fc39 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.notebooks.v1beta1.stub.samples; + +// [START notebooks_v1beta1_generated_notebookservicestubsettings_getinstance_sync] +import com.google.cloud.notebooks.v1beta1.stub.NotebookServiceStubSettings; +import java.time.Duration; + +public class SyncGetInstance { + + public static void main(String[] args) throws Exception { + syncGetInstance(); + } + + public static void syncGetInstance() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + NotebookServiceStubSettings.Builder notebookServiceSettingsBuilder = + NotebookServiceStubSettings.newBuilder(); + notebookServiceSettingsBuilder + .getInstanceSettings() + .setRetrySettings( + notebookServiceSettingsBuilder + .getInstanceSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + NotebookServiceStubSettings notebookServiceSettings = notebookServiceSettingsBuilder.build(); + } +} +// [END notebooks_v1beta1_generated_notebookservicestubsettings_getinstance_sync] From 0f1675c83c23fc6f874ed13ed2fd5cb4154cefbd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 22 Aug 2022 21:24:13 +0200 Subject: [PATCH 04/15] chore(deps): update dependency com.google.cloud:google-cloud-notebooks to v1.1.2 (#411) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-notebooks](https://togithub.com/googleapis/java-notebooks) | `1.1.1` -> `1.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-notebooks/1.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-notebooks/1.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-notebooks/1.1.2/compatibility-slim/1.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-notebooks/1.1.2/confidence-slim/1.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-notebooks). --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a5cedaee..63bd91ff 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-notebooks - 1.1.1 + 1.1.2 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 77575b82..80ec009c 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-notebooks - 1.1.1 + 1.1.2 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 678f24be..25fba639 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-notebooks - 1.1.1 + 1.1.2 From 22c42f9554d0b130f60a5a8d8e748efffb93fe8b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 8 Sep 2022 20:28:19 +0000 Subject: [PATCH 05/15] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#416) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- .../v1/ManagedNotebookServiceClient.java | 329 +++++-- .../v1/ManagedNotebookServiceSettings.java | 7 +- .../notebooks/v1/NotebookServiceClient.java | 847 +++++++++++++----- .../notebooks/v1/NotebookServiceSettings.java | 12 +- .../cloud/notebooks/v1/package-info.java | 14 +- .../ManagedNotebookServiceStubSettings.java | 7 +- .../v1/stub/NotebookServiceStubSettings.java | 12 +- .../v1beta1/NotebookServiceClient.java | 399 ++++++--- .../v1beta1/NotebookServiceSettings.java | 12 +- .../cloud/notebooks/v1beta1/package-info.java | 7 +- .../stub/NotebookServiceStubSettings.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createruntime/AsyncCreateRuntime.java | 7 +- .../createruntime/AsyncCreateRuntimeLRO.java | 7 +- .../createruntime/SyncCreateRuntime.java | 7 +- ...CreateRuntimeRuntimenameStringRuntime.java | 7 +- .../SyncCreateRuntimeStringStringRuntime.java | 7 +- .../deleteruntime/AsyncDeleteRuntime.java | 7 +- .../deleteruntime/AsyncDeleteRuntimeLRO.java | 7 +- .../deleteruntime/SyncDeleteRuntime.java | 7 +- .../SyncDeleteRuntimeRuntimename.java | 7 +- .../SyncDeleteRuntimeString.java | 7 +- .../getruntime/AsyncGetRuntime.java | 7 +- .../getruntime/SyncGetRuntime.java | 7 +- .../getruntime/SyncGetRuntimeRuntimename.java | 7 +- .../getruntime/SyncGetRuntimeString.java | 7 +- .../listruntimes/AsyncListRuntimes.java | 7 +- .../listruntimes/AsyncListRuntimesPaged.java | 7 +- .../listruntimes/SyncListRuntimes.java | 7 +- .../SyncListRuntimesLocationname.java | 7 +- .../listruntimes/SyncListRuntimesString.java | 7 +- .../AsyncRefreshRuntimeTokenInternal.java | 7 +- .../SyncRefreshRuntimeTokenInternal.java | 7 +- ...RuntimeTokenInternalRuntimenameString.java | 7 +- ...freshRuntimeTokenInternalStringString.java | 7 +- .../AsyncReportRuntimeEvent.java | 7 +- .../AsyncReportRuntimeEventLRO.java | 7 +- .../SyncReportRuntimeEvent.java | 7 +- .../SyncReportRuntimeEventRuntimename.java | 7 +- .../SyncReportRuntimeEventString.java | 7 +- .../resetruntime/AsyncResetRuntime.java | 7 +- .../resetruntime/AsyncResetRuntimeLRO.java | 7 +- .../resetruntime/SyncResetRuntime.java | 7 +- .../resetruntime/SyncResetRuntimeString.java | 7 +- .../startruntime/AsyncStartRuntime.java | 7 +- .../startruntime/AsyncStartRuntimeLRO.java | 7 +- .../startruntime/SyncStartRuntime.java | 7 +- .../startruntime/SyncStartRuntimeString.java | 7 +- .../stopruntime/AsyncStopRuntime.java | 7 +- .../stopruntime/AsyncStopRuntimeLRO.java | 7 +- .../stopruntime/SyncStopRuntime.java | 7 +- .../stopruntime/SyncStopRuntimeString.java | 7 +- .../switchruntime/AsyncSwitchRuntime.java | 7 +- .../switchruntime/AsyncSwitchRuntimeLRO.java | 7 +- .../switchruntime/SyncSwitchRuntime.java | 7 +- .../SyncSwitchRuntimeString.java | 7 +- .../getruntime/SyncGetRuntime.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncCreateEnvironment.java | 7 +- .../AsyncCreateEnvironmentLRO.java | 7 +- .../SyncCreateEnvironment.java | 7 +- ...ateEnvironmentStringEnvironmentString.java | 7 +- .../createexecution/AsyncCreateExecution.java | 7 +- .../AsyncCreateExecutionLRO.java | 7 +- .../createexecution/SyncCreateExecution.java | 7 +- ...ExecutionExecutionnameExecutionString.java | 7 +- ...cCreateExecutionStringExecutionString.java | 7 +- .../createinstance/AsyncCreateInstance.java | 7 +- .../AsyncCreateInstanceLRO.java | 7 +- .../createinstance/SyncCreateInstance.java | 7 +- ...yncCreateInstanceStringInstanceString.java | 7 +- .../createschedule/AsyncCreateSchedule.java | 7 +- .../AsyncCreateScheduleLRO.java | 7 +- .../createschedule/SyncCreateSchedule.java | 7 +- ...ateScheduleSchedulenameScheduleString.java | 7 +- ...yncCreateScheduleStringScheduleString.java | 7 +- .../AsyncDeleteEnvironment.java | 7 +- .../AsyncDeleteEnvironmentLRO.java | 7 +- .../SyncDeleteEnvironment.java | 7 +- .../SyncDeleteEnvironmentString.java | 7 +- .../deleteexecution/AsyncDeleteExecution.java | 7 +- .../AsyncDeleteExecutionLRO.java | 7 +- .../deleteexecution/SyncDeleteExecution.java | 7 +- .../SyncDeleteExecutionExecutionname.java | 7 +- .../SyncDeleteExecutionString.java | 7 +- .../deleteinstance/AsyncDeleteInstance.java | 7 +- .../AsyncDeleteInstanceLRO.java | 7 +- .../deleteinstance/SyncDeleteInstance.java | 7 +- .../SyncDeleteInstanceString.java | 7 +- .../deleteschedule/AsyncDeleteSchedule.java | 7 +- .../AsyncDeleteScheduleLRO.java | 7 +- .../deleteschedule/SyncDeleteSchedule.java | 7 +- .../SyncDeleteScheduleSchedulename.java | 7 +- .../SyncDeleteScheduleString.java | 7 +- .../getenvironment/AsyncGetEnvironment.java | 7 +- .../getenvironment/SyncGetEnvironment.java | 7 +- .../SyncGetEnvironmentString.java | 7 +- .../getexecution/AsyncGetExecution.java | 7 +- .../getexecution/SyncGetExecution.java | 7 +- .../SyncGetExecutionExecutionname.java | 7 +- .../getexecution/SyncGetExecutionString.java | 7 +- .../getinstance/AsyncGetInstance.java | 7 +- .../getinstance/SyncGetInstance.java | 7 +- .../getinstance/SyncGetInstanceString.java | 7 +- .../AsyncGetInstanceHealth.java | 7 +- .../SyncGetInstanceHealth.java | 7 +- .../SyncGetInstanceHealthInstancename.java | 7 +- .../SyncGetInstanceHealthString.java | 7 +- .../getschedule/AsyncGetSchedule.java | 7 +- .../getschedule/SyncGetSchedule.java | 7 +- .../SyncGetScheduleSchedulename.java | 7 +- .../getschedule/SyncGetScheduleString.java | 7 +- .../AsyncIsInstanceUpgradeable.java | 7 +- .../SyncIsInstanceUpgradeable.java | 7 +- .../AsyncListEnvironments.java | 7 +- .../AsyncListEnvironmentsPaged.java | 7 +- .../SyncListEnvironments.java | 7 +- .../SyncListEnvironmentsString.java | 7 +- .../listexecutions/AsyncListExecutions.java | 7 +- .../AsyncListExecutionsPaged.java | 7 +- .../listexecutions/SyncListExecutions.java | 7 +- .../SyncListExecutionsExecutionname.java | 7 +- .../SyncListExecutionsString.java | 7 +- .../listinstances/AsyncListInstances.java | 7 +- .../AsyncListInstancesPaged.java | 7 +- .../listinstances/SyncListInstances.java | 7 +- .../SyncListInstancesString.java | 7 +- .../listschedules/AsyncListSchedules.java | 7 +- .../AsyncListSchedulesPaged.java | 7 +- .../listschedules/SyncListSchedules.java | 7 +- .../SyncListSchedulesSchedulename.java | 7 +- .../SyncListSchedulesString.java | 7 +- .../AsyncRegisterInstance.java | 7 +- .../AsyncRegisterInstanceLRO.java | 7 +- .../SyncRegisterInstance.java | 7 +- .../AsyncReportInstanceInfo.java | 7 +- .../AsyncReportInstanceInfoLRO.java | 7 +- .../SyncReportInstanceInfo.java | 7 +- .../resetinstance/AsyncResetInstance.java | 7 +- .../resetinstance/AsyncResetInstanceLRO.java | 7 +- .../resetinstance/SyncResetInstance.java | 7 +- .../AsyncRollbackInstance.java | 7 +- .../AsyncRollbackInstanceLRO.java | 7 +- .../SyncRollbackInstance.java | 7 +- .../AsyncSetInstanceAccelerator.java | 7 +- .../AsyncSetInstanceAcceleratorLRO.java | 7 +- .../SyncSetInstanceAccelerator.java | 7 +- .../AsyncSetInstanceLabels.java | 7 +- .../AsyncSetInstanceLabelsLRO.java | 7 +- .../SyncSetInstanceLabels.java | 7 +- .../AsyncSetInstanceMachineType.java | 7 +- .../AsyncSetInstanceMachineTypeLRO.java | 7 +- .../SyncSetInstanceMachineType.java | 7 +- .../startinstance/AsyncStartInstance.java | 7 +- .../startinstance/AsyncStartInstanceLRO.java | 7 +- .../startinstance/SyncStartInstance.java | 7 +- .../stopinstance/AsyncStopInstance.java | 7 +- .../stopinstance/AsyncStopInstanceLRO.java | 7 +- .../stopinstance/SyncStopInstance.java | 7 +- .../triggerschedule/AsyncTriggerSchedule.java | 7 +- .../AsyncTriggerScheduleLRO.java | 7 +- .../triggerschedule/SyncTriggerSchedule.java | 7 +- .../AsyncUpdateInstanceConfig.java | 7 +- .../AsyncUpdateInstanceConfigLRO.java | 7 +- .../SyncUpdateInstanceConfig.java | 7 +- .../AsyncUpdateInstanceMetadataItems.java | 7 +- .../SyncUpdateInstanceMetadataItems.java | 7 +- .../AsyncUpdateShieldedInstanceConfig.java | 7 +- .../AsyncUpdateShieldedInstanceConfigLRO.java | 7 +- .../SyncUpdateShieldedInstanceConfig.java | 7 +- .../upgradeinstance/AsyncUpgradeInstance.java | 7 +- .../AsyncUpgradeInstanceLRO.java | 7 +- .../upgradeinstance/SyncUpgradeInstance.java | 7 +- .../AsyncUpgradeInstanceInternal.java | 7 +- .../AsyncUpgradeInstanceInternalLRO.java | 7 +- .../SyncUpgradeInstanceInternal.java | 7 +- .../getinstance/SyncGetInstance.java | 12 +- .../getruntime/SyncGetRuntime.java | 7 +- .../getinstance/SyncGetInstance.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncCreateEnvironment.java | 7 +- .../AsyncCreateEnvironmentLRO.java | 7 +- .../SyncCreateEnvironment.java | 7 +- .../createinstance/AsyncCreateInstance.java | 7 +- .../AsyncCreateInstanceLRO.java | 7 +- .../createinstance/SyncCreateInstance.java | 7 +- .../AsyncDeleteEnvironment.java | 7 +- .../AsyncDeleteEnvironmentLRO.java | 7 +- .../SyncDeleteEnvironment.java | 7 +- .../deleteinstance/AsyncDeleteInstance.java | 7 +- .../AsyncDeleteInstanceLRO.java | 7 +- .../deleteinstance/SyncDeleteInstance.java | 7 +- .../getenvironment/AsyncGetEnvironment.java | 7 +- .../getenvironment/SyncGetEnvironment.java | 7 +- .../getinstance/AsyncGetInstance.java | 7 +- .../getinstance/SyncGetInstance.java | 7 +- .../AsyncIsInstanceUpgradeable.java | 7 +- .../SyncIsInstanceUpgradeable.java | 7 +- .../AsyncListEnvironments.java | 7 +- .../AsyncListEnvironmentsPaged.java | 7 +- .../SyncListEnvironments.java | 7 +- .../listinstances/AsyncListInstances.java | 7 +- .../AsyncListInstancesPaged.java | 7 +- .../listinstances/SyncListInstances.java | 7 +- .../AsyncRegisterInstance.java | 7 +- .../AsyncRegisterInstanceLRO.java | 7 +- .../SyncRegisterInstance.java | 7 +- .../AsyncReportInstanceInfo.java | 7 +- .../AsyncReportInstanceInfoLRO.java | 7 +- .../SyncReportInstanceInfo.java | 7 +- .../resetinstance/AsyncResetInstance.java | 7 +- .../resetinstance/AsyncResetInstanceLRO.java | 7 +- .../resetinstance/SyncResetInstance.java | 7 +- .../AsyncSetInstanceAccelerator.java | 7 +- .../AsyncSetInstanceAcceleratorLRO.java | 7 +- .../SyncSetInstanceAccelerator.java | 7 +- .../AsyncSetInstanceLabels.java | 7 +- .../AsyncSetInstanceLabelsLRO.java | 7 +- .../SyncSetInstanceLabels.java | 7 +- .../AsyncSetInstanceMachineType.java | 7 +- .../AsyncSetInstanceMachineTypeLRO.java | 7 +- .../SyncSetInstanceMachineType.java | 7 +- .../startinstance/AsyncStartInstance.java | 7 +- .../startinstance/AsyncStartInstanceLRO.java | 7 +- .../startinstance/SyncStartInstance.java | 7 +- .../stopinstance/AsyncStopInstance.java | 7 +- .../stopinstance/AsyncStopInstanceLRO.java | 7 +- .../stopinstance/SyncStopInstance.java | 7 +- .../upgradeinstance/AsyncUpgradeInstance.java | 7 +- .../AsyncUpgradeInstanceLRO.java | 7 +- .../upgradeinstance/SyncUpgradeInstance.java | 7 +- .../AsyncUpgradeInstanceInternal.java | 7 +- .../AsyncUpgradeInstanceInternalLRO.java | 7 +- .../SyncUpgradeInstanceInternal.java | 7 +- .../getinstance/SyncGetInstance.java | 12 +- .../getinstance/SyncGetInstance.java | 12 +- 239 files changed, 2318 insertions(+), 956 deletions(-) diff --git a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClient.java b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClient.java index 0fe64131..185157a7 100644 --- a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClient.java +++ b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClient.java @@ -45,8 +45,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (ManagedNotebookServiceClient managedNotebookServiceClient =
  *     ManagedNotebookServiceClient.create()) {
  *   RuntimeName name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]");
@@ -84,8 +87,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * ManagedNotebookServiceSettings managedNotebookServiceSettings =
  *     ManagedNotebookServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -97,8 +103,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * ManagedNotebookServiceSettings managedNotebookServiceSettings =
  *     ManagedNotebookServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * ManagedNotebookServiceClient managedNotebookServiceClient =
@@ -176,8 +185,11 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -205,8 +217,11 @@ public final ListRuntimesPagedResponse listRuntimes(LocationName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -231,8 +246,11 @@ public final ListRuntimesPagedResponse listRuntimes(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   ListRuntimesRequest request =
@@ -261,8 +279,11 @@ public final ListRuntimesPagedResponse listRuntimes(ListRuntimesRequest request)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   ListRuntimesRequest request =
@@ -292,8 +313,11 @@ public final ListRuntimesPagedResponse listRuntimes(ListRuntimesRequest request)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   ListRuntimesRequest request =
@@ -329,8 +353,11 @@ public final UnaryCallable listRuntim
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   RuntimeName name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]");
@@ -355,8 +382,11 @@ public final Runtime getRuntime(RuntimeName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   String name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString();
@@ -380,8 +410,11 @@ public final Runtime getRuntime(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   GetRuntimeRequest request =
@@ -406,8 +439,11 @@ public final Runtime getRuntime(GetRuntimeRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   GetRuntimeRequest request =
@@ -432,8 +468,11 @@ public final UnaryCallable getRuntimeCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   RuntimeName parent = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]");
@@ -467,8 +506,11 @@ public final OperationFuture createRuntimeAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   String parent = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString();
@@ -502,8 +544,11 @@ public final OperationFuture createRuntimeAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   CreateRuntimeRequest request =
@@ -532,8 +577,11 @@ public final OperationFuture createRuntimeAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   CreateRuntimeRequest request =
@@ -562,8 +610,11 @@ public final OperationFuture createRuntimeAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   CreateRuntimeRequest request =
@@ -591,8 +642,11 @@ public final UnaryCallable createRuntimeCallabl
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   RuntimeName name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]");
@@ -617,8 +671,11 @@ public final OperationFuture deleteRuntimeAsync(Runtim
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   String name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString();
@@ -642,8 +699,11 @@ public final OperationFuture deleteRuntimeAsync(String
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   DeleteRuntimeRequest request =
@@ -670,8 +730,11 @@ public final OperationFuture deleteRuntimeAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   DeleteRuntimeRequest request =
@@ -698,8 +761,11 @@ public final OperationFuture deleteRuntimeAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   DeleteRuntimeRequest request =
@@ -727,8 +793,11 @@ public final UnaryCallable deleteRuntimeCallabl
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   String name = "name3373707";
@@ -754,8 +823,11 @@ public final OperationFuture startRuntimeAsync(Strin
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   StartRuntimeRequest request =
@@ -784,8 +856,11 @@ public final OperationFuture startRuntimeAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   StartRuntimeRequest request =
@@ -814,8 +889,11 @@ public final OperationFuture startRuntimeAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   StartRuntimeRequest request =
@@ -843,8 +921,11 @@ public final UnaryCallable startRuntimeCallable(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   String name = "name3373707";
@@ -870,8 +951,11 @@ public final OperationFuture stopRuntimeAsync(String
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   StopRuntimeRequest request =
@@ -900,8 +984,11 @@ public final OperationFuture stopRuntimeAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   StopRuntimeRequest request =
@@ -930,8 +1017,11 @@ public final OperationFuture stopRuntimeAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   StopRuntimeRequest request =
@@ -957,8 +1047,11 @@ public final UnaryCallable stopRuntimeCallable()
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   String name = "name3373707";
@@ -982,8 +1075,11 @@ public final OperationFuture switchRuntimeAsync(Stri
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   SwitchRuntimeRequest request =
@@ -1012,8 +1108,11 @@ public final OperationFuture switchRuntimeAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   SwitchRuntimeRequest request =
@@ -1042,8 +1141,11 @@ public final OperationFuture switchRuntimeAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   SwitchRuntimeRequest request =
@@ -1071,8 +1173,11 @@ public final UnaryCallable switchRuntimeCallabl
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   String name = "name3373707";
@@ -1096,8 +1201,11 @@ public final OperationFuture resetRuntimeAsync(Strin
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   ResetRuntimeRequest request =
@@ -1124,8 +1232,11 @@ public final OperationFuture resetRuntimeAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   ResetRuntimeRequest request =
@@ -1152,8 +1263,11 @@ public final OperationFuture resetRuntimeAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   ResetRuntimeRequest request =
@@ -1179,8 +1293,11 @@ public final UnaryCallable resetRuntimeCallable(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   RuntimeName name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]");
@@ -1208,8 +1325,11 @@ public final OperationFuture reportRuntimeEventAsync
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   String name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString();
@@ -1234,8 +1354,11 @@ public final OperationFuture reportRuntimeEventAsync
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   ReportRuntimeEventRequest request =
@@ -1263,8 +1386,11 @@ public final OperationFuture reportRuntimeEventAsync
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   ReportRuntimeEventRequest request =
@@ -1292,8 +1418,11 @@ public final OperationFuture reportRuntimeEventAsync
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   ReportRuntimeEventRequest request =
@@ -1321,8 +1450,11 @@ public final UnaryCallable reportRuntimeEv
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   RuntimeName name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]");
@@ -1356,8 +1488,11 @@ public final RefreshRuntimeTokenInternalResponse refreshRuntimeTokenInternal(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   String name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString();
@@ -1388,8 +1523,11 @@ public final RefreshRuntimeTokenInternalResponse refreshRuntimeTokenInternal(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   RefreshRuntimeTokenInternalRequest request =
@@ -1418,8 +1556,11 @@ public final RefreshRuntimeTokenInternalResponse refreshRuntimeTokenInternal(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
    *   RefreshRuntimeTokenInternalRequest request =
diff --git a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceSettings.java b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceSettings.java
index 878b57d6..708b0b68 100644
--- a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceSettings.java
+++ b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceSettings.java
@@ -55,8 +55,11 @@
  * 

For example, to set the total timeout of getRuntime to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * ManagedNotebookServiceSettings.Builder managedNotebookServiceSettingsBuilder =
  *     ManagedNotebookServiceSettings.newBuilder();
  * managedNotebookServiceSettingsBuilder
diff --git a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceClient.java b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceClient.java
index e39ebedc..5f678a57 100644
--- a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceClient.java
+++ b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceClient.java
@@ -45,8 +45,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
  *   String name = "name3373707";
  *   Instance response = notebookServiceClient.getInstance(name);
@@ -83,8 +86,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * NotebookServiceSettings notebookServiceSettings =
  *     NotebookServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -96,8 +102,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * NotebookServiceSettings notebookServiceSettings =
  *     NotebookServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * NotebookServiceClient notebookServiceClient =
@@ -174,8 +183,11 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   String parent = "parent-995424086";
    *   for (Instance element : notebookServiceClient.listInstances(parent).iterateAll()) {
@@ -199,8 +211,11 @@ public final ListInstancesPagedResponse listInstances(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ListInstancesRequest request =
    *       ListInstancesRequest.newBuilder()
@@ -228,8 +243,11 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ListInstancesRequest request =
    *       ListInstancesRequest.newBuilder()
@@ -258,8 +276,11 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ListInstancesRequest request =
    *       ListInstancesRequest.newBuilder()
@@ -294,8 +315,11 @@ public final UnaryCallable listInst
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   String name = "name3373707";
    *   Instance response = notebookServiceClient.getInstance(name);
@@ -318,8 +342,11 @@ public final Instance getInstance(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   GetInstanceRequest request = GetInstanceRequest.newBuilder().setName("name3373707").build();
    *   Instance response = notebookServiceClient.getInstance(request);
@@ -340,8 +367,11 @@ public final Instance getInstance(GetInstanceRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   GetInstanceRequest request = GetInstanceRequest.newBuilder().setName("name3373707").build();
    *   ApiFuture future = notebookServiceClient.getInstanceCallable().futureCall(request);
@@ -361,8 +391,11 @@ public final UnaryCallable getInstanceCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   String parent = "parent-995424086";
    *   Instance instance = Instance.newBuilder().build();
@@ -395,8 +428,11 @@ public final OperationFuture createInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   CreateInstanceRequest request =
    *       CreateInstanceRequest.newBuilder()
@@ -423,8 +459,11 @@ public final OperationFuture createInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   CreateInstanceRequest request =
    *       CreateInstanceRequest.newBuilder()
@@ -451,8 +490,11 @@ public final OperationFuture createInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   CreateInstanceRequest request =
    *       CreateInstanceRequest.newBuilder()
@@ -480,8 +522,11 @@ public final UnaryCallable createInstanceCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   RegisterInstanceRequest request =
    *       RegisterInstanceRequest.newBuilder()
@@ -509,8 +554,11 @@ public final OperationFuture registerInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   RegisterInstanceRequest request =
    *       RegisterInstanceRequest.newBuilder()
@@ -538,8 +586,11 @@ public final OperationFuture registerInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   RegisterInstanceRequest request =
    *       RegisterInstanceRequest.newBuilder()
@@ -564,8 +615,11 @@ public final UnaryCallable registerInstanceC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   SetInstanceAcceleratorRequest request =
    *       SetInstanceAcceleratorRequest.newBuilder()
@@ -591,8 +645,11 @@ public final OperationFuture setInstanceAccelerator
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   SetInstanceAcceleratorRequest request =
    *       SetInstanceAcceleratorRequest.newBuilder()
@@ -618,8 +675,11 @@ public final OperationFuture setInstanceAccelerator
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   SetInstanceAcceleratorRequest request =
    *       SetInstanceAcceleratorRequest.newBuilder()
@@ -645,8 +705,11 @@ public final OperationFuture setInstanceAccelerator
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   SetInstanceMachineTypeRequest request =
    *       SetInstanceMachineTypeRequest.newBuilder()
@@ -672,8 +735,11 @@ public final OperationFuture setInstanceMachineType
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   SetInstanceMachineTypeRequest request =
    *       SetInstanceMachineTypeRequest.newBuilder()
@@ -699,8 +765,11 @@ public final OperationFuture setInstanceMachineType
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   SetInstanceMachineTypeRequest request =
    *       SetInstanceMachineTypeRequest.newBuilder()
@@ -726,8 +795,11 @@ public final OperationFuture setInstanceMachineType
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpdateInstanceConfigRequest request =
    *       UpdateInstanceConfigRequest.newBuilder()
@@ -753,8 +825,11 @@ public final OperationFuture updateInstanceConfigAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpdateInstanceConfigRequest request =
    *       UpdateInstanceConfigRequest.newBuilder()
@@ -780,8 +855,11 @@ public final OperationFuture updateInstanceConfigAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpdateInstanceConfigRequest request =
    *       UpdateInstanceConfigRequest.newBuilder()
@@ -807,8 +885,11 @@ public final OperationFuture updateInstanceConfigAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpdateShieldedInstanceConfigRequest request =
    *       UpdateShieldedInstanceConfigRequest.newBuilder()
@@ -834,8 +915,11 @@ public final OperationFuture updateShieldedInstance
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpdateShieldedInstanceConfigRequest request =
    *       UpdateShieldedInstanceConfigRequest.newBuilder()
@@ -861,8 +945,11 @@ public final OperationFuture updateShieldedInstance
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpdateShieldedInstanceConfigRequest request =
    *       UpdateShieldedInstanceConfigRequest.newBuilder()
@@ -888,8 +975,11 @@ public final OperationFuture updateShieldedInstance
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   SetInstanceLabelsRequest request =
    *       SetInstanceLabelsRequest.newBuilder()
@@ -915,8 +1005,11 @@ public final OperationFuture setInstanceLabelsAsync
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   SetInstanceLabelsRequest request =
    *       SetInstanceLabelsRequest.newBuilder()
@@ -942,8 +1035,11 @@ public final OperationFuture setInstanceLabelsAsync
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   SetInstanceLabelsRequest request =
    *       SetInstanceLabelsRequest.newBuilder()
@@ -968,8 +1064,11 @@ public final UnaryCallable setInstanceLabel
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpdateInstanceMetadataItemsRequest request =
    *       UpdateInstanceMetadataItemsRequest.newBuilder()
@@ -996,8 +1095,11 @@ public final UpdateInstanceMetadataItemsResponse updateInstanceMetadataItems(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpdateInstanceMetadataItemsRequest request =
    *       UpdateInstanceMetadataItemsRequest.newBuilder()
@@ -1024,8 +1126,11 @@ public final UpdateInstanceMetadataItemsResponse updateInstanceMetadataItems(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   String name = "name3373707";
    *   notebookServiceClient.deleteInstanceAsync(name).get();
@@ -1048,8 +1153,11 @@ public final OperationFuture deleteInstanceAsync(Strin
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   DeleteInstanceRequest request =
    *       DeleteInstanceRequest.newBuilder().setName("name3373707").build();
@@ -1072,8 +1180,11 @@ public final OperationFuture deleteInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   DeleteInstanceRequest request =
    *       DeleteInstanceRequest.newBuilder().setName("name3373707").build();
@@ -1096,8 +1207,11 @@ public final OperationFuture deleteInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   DeleteInstanceRequest request =
    *       DeleteInstanceRequest.newBuilder().setName("name3373707").build();
@@ -1119,8 +1233,11 @@ public final UnaryCallable deleteInstanceCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   StartInstanceRequest request =
    *       StartInstanceRequest.newBuilder().setName("name3373707").build();
@@ -1143,8 +1260,11 @@ public final OperationFuture startInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   StartInstanceRequest request =
    *       StartInstanceRequest.newBuilder().setName("name3373707").build();
@@ -1167,8 +1287,11 @@ public final OperationFuture startInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   StartInstanceRequest request =
    *       StartInstanceRequest.newBuilder().setName("name3373707").build();
@@ -1190,8 +1313,11 @@ public final UnaryCallable startInstanceCallabl
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build();
    *   Instance response = notebookServiceClient.stopInstanceAsync(request).get();
@@ -1213,8 +1339,11 @@ public final OperationFuture stopInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build();
    *   OperationFuture future =
@@ -1236,8 +1365,11 @@ public final OperationFuture stopInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build();
    *   ApiFuture future =
@@ -1258,8 +1390,11 @@ public final UnaryCallable stopInstanceCallable(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ResetInstanceRequest request =
    *       ResetInstanceRequest.newBuilder().setName("name3373707").build();
@@ -1282,8 +1417,11 @@ public final OperationFuture resetInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ResetInstanceRequest request =
    *       ResetInstanceRequest.newBuilder().setName("name3373707").build();
@@ -1306,8 +1444,11 @@ public final OperationFuture resetInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ResetInstanceRequest request =
    *       ResetInstanceRequest.newBuilder().setName("name3373707").build();
@@ -1331,8 +1472,11 @@ public final UnaryCallable resetInstanceCallabl
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ReportInstanceInfoRequest request =
    *       ReportInstanceInfoRequest.newBuilder()
@@ -1361,8 +1505,11 @@ public final OperationFuture reportInstanceInfoAsyn
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ReportInstanceInfoRequest request =
    *       ReportInstanceInfoRequest.newBuilder()
@@ -1391,8 +1538,11 @@ public final OperationFuture reportInstanceInfoAsyn
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ReportInstanceInfoRequest request =
    *       ReportInstanceInfoRequest.newBuilder()
@@ -1418,8 +1568,11 @@ public final UnaryCallable reportInstanceI
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   IsInstanceUpgradeableRequest request =
    *       IsInstanceUpgradeableRequest.newBuilder()
@@ -1445,8 +1598,11 @@ public final IsInstanceUpgradeableResponse isInstanceUpgradeable(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   IsInstanceUpgradeableRequest request =
    *       IsInstanceUpgradeableRequest.newBuilder()
@@ -1472,8 +1628,11 @@ public final IsInstanceUpgradeableResponse isInstanceUpgradeable(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   InstanceName name = InstanceName.of("[PROJECT]", "[INSTANCE]");
    *   GetInstanceHealthResponse response = notebookServiceClient.getInstanceHealth(name);
@@ -1499,8 +1658,11 @@ public final GetInstanceHealthResponse getInstanceHealth(InstanceName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   String name = InstanceName.of("[PROJECT]", "[INSTANCE]").toString();
    *   GetInstanceHealthResponse response = notebookServiceClient.getInstanceHealth(name);
@@ -1523,8 +1685,11 @@ public final GetInstanceHealthResponse getInstanceHealth(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   GetInstanceHealthRequest request =
    *       GetInstanceHealthRequest.newBuilder()
@@ -1548,8 +1713,11 @@ public final GetInstanceHealthResponse getInstanceHealth(GetInstanceHealthReques
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   GetInstanceHealthRequest request =
    *       GetInstanceHealthRequest.newBuilder()
@@ -1574,8 +1742,11 @@ public final GetInstanceHealthResponse getInstanceHealth(GetInstanceHealthReques
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpgradeInstanceRequest request =
    *       UpgradeInstanceRequest.newBuilder()
@@ -1601,8 +1772,11 @@ public final OperationFuture upgradeInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpgradeInstanceRequest request =
    *       UpgradeInstanceRequest.newBuilder()
@@ -1628,8 +1802,11 @@ public final OperationFuture upgradeInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpgradeInstanceRequest request =
    *       UpgradeInstanceRequest.newBuilder()
@@ -1654,8 +1831,11 @@ public final UnaryCallable upgradeInstanceCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   RollbackInstanceRequest request =
    *       RollbackInstanceRequest.newBuilder()
@@ -1681,8 +1861,11 @@ public final OperationFuture rollbackInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   RollbackInstanceRequest request =
    *       RollbackInstanceRequest.newBuilder()
@@ -1708,8 +1891,11 @@ public final OperationFuture rollbackInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   RollbackInstanceRequest request =
    *       RollbackInstanceRequest.newBuilder()
@@ -1735,8 +1921,11 @@ public final UnaryCallable rollbackInstanceC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpgradeInstanceInternalRequest request =
    *       UpgradeInstanceInternalRequest.newBuilder()
@@ -1764,8 +1953,11 @@ public final OperationFuture upgradeInstanceInterna
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpgradeInstanceInternalRequest request =
    *       UpgradeInstanceInternalRequest.newBuilder()
@@ -1793,8 +1985,11 @@ public final OperationFuture upgradeInstanceInterna
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpgradeInstanceInternalRequest request =
    *       UpgradeInstanceInternalRequest.newBuilder()
@@ -1821,8 +2016,11 @@ public final OperationFuture upgradeInstanceInterna
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   String parent = "parent-995424086";
    *   for (Environment element : notebookServiceClient.listEnvironments(parent).iterateAll()) {
@@ -1847,8 +2045,11 @@ public final ListEnvironmentsPagedResponse listEnvironments(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ListEnvironmentsRequest request =
    *       ListEnvironmentsRequest.newBuilder()
@@ -1876,8 +2077,11 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ListEnvironmentsRequest request =
    *       ListEnvironmentsRequest.newBuilder()
@@ -1906,8 +2110,11 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ListEnvironmentsRequest request =
    *       ListEnvironmentsRequest.newBuilder()
@@ -1943,8 +2150,11 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   String name = "name3373707";
    *   Environment response = notebookServiceClient.getEnvironment(name);
@@ -1967,8 +2177,11 @@ public final Environment getEnvironment(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   GetEnvironmentRequest request =
    *       GetEnvironmentRequest.newBuilder().setName("name3373707").build();
@@ -1990,8 +2203,11 @@ public final Environment getEnvironment(GetEnvironmentRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   GetEnvironmentRequest request =
    *       GetEnvironmentRequest.newBuilder().setName("name3373707").build();
@@ -2013,8 +2229,11 @@ public final UnaryCallable getEnvironmentCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   String parent = "parent-995424086";
    *   Environment environment = Environment.newBuilder().build();
@@ -2050,8 +2269,11 @@ public final OperationFuture createEnvironmentAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   CreateEnvironmentRequest request =
    *       CreateEnvironmentRequest.newBuilder()
@@ -2078,8 +2300,11 @@ public final OperationFuture createEnvironmentAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   CreateEnvironmentRequest request =
    *       CreateEnvironmentRequest.newBuilder()
@@ -2106,8 +2331,11 @@ public final OperationFuture createEnvironmentAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   CreateEnvironmentRequest request =
    *       CreateEnvironmentRequest.newBuilder()
@@ -2133,8 +2361,11 @@ public final UnaryCallable createEnvironmen
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   String name = "name3373707";
    *   notebookServiceClient.deleteEnvironmentAsync(name).get();
@@ -2157,8 +2388,11 @@ public final OperationFuture deleteEnvironmentAsync(St
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   DeleteEnvironmentRequest request =
    *       DeleteEnvironmentRequest.newBuilder().setName("name3373707").build();
@@ -2181,8 +2415,11 @@ public final OperationFuture deleteEnvironmentAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   DeleteEnvironmentRequest request =
    *       DeleteEnvironmentRequest.newBuilder().setName("name3373707").build();
@@ -2205,8 +2442,11 @@ public final OperationFuture deleteEnvironmentAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   DeleteEnvironmentRequest request =
    *       DeleteEnvironmentRequest.newBuilder().setName("name3373707").build();
@@ -2228,8 +2468,11 @@ public final UnaryCallable deleteEnvironmen
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ScheduleName parent = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]");
    *   for (Schedule element : notebookServiceClient.listSchedules(parent).iterateAll()) {
@@ -2256,8 +2499,11 @@ public final ListSchedulesPagedResponse listSchedules(ScheduleName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   String parent = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString();
    *   for (Schedule element : notebookServiceClient.listSchedules(parent).iterateAll()) {
@@ -2281,8 +2527,11 @@ public final ListSchedulesPagedResponse listSchedules(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ListSchedulesRequest request =
    *       ListSchedulesRequest.newBuilder()
@@ -2312,8 +2561,11 @@ public final ListSchedulesPagedResponse listSchedules(ListSchedulesRequest reque
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ListSchedulesRequest request =
    *       ListSchedulesRequest.newBuilder()
@@ -2344,8 +2596,11 @@ public final ListSchedulesPagedResponse listSchedules(ListSchedulesRequest reque
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ListSchedulesRequest request =
    *       ListSchedulesRequest.newBuilder()
@@ -2382,8 +2637,11 @@ public final UnaryCallable listSche
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ScheduleName name = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]");
    *   Schedule response = notebookServiceClient.getSchedule(name);
@@ -2407,8 +2665,11 @@ public final Schedule getSchedule(ScheduleName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   String name = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString();
    *   Schedule response = notebookServiceClient.getSchedule(name);
@@ -2431,8 +2692,11 @@ public final Schedule getSchedule(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   GetScheduleRequest request =
    *       GetScheduleRequest.newBuilder()
@@ -2456,8 +2720,11 @@ public final Schedule getSchedule(GetScheduleRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   GetScheduleRequest request =
    *       GetScheduleRequest.newBuilder()
@@ -2480,8 +2747,11 @@ public final UnaryCallable getScheduleCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ScheduleName name = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]");
    *   notebookServiceClient.deleteScheduleAsync(name).get();
@@ -2505,8 +2775,11 @@ public final OperationFuture deleteScheduleAsync(Sched
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   String name = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString();
    *   notebookServiceClient.deleteScheduleAsync(name).get();
@@ -2529,8 +2802,11 @@ public final OperationFuture deleteScheduleAsync(Strin
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   DeleteScheduleRequest request =
    *       DeleteScheduleRequest.newBuilder()
@@ -2555,8 +2831,11 @@ public final OperationFuture deleteScheduleAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   DeleteScheduleRequest request =
    *       DeleteScheduleRequest.newBuilder()
@@ -2581,8 +2860,11 @@ public final OperationFuture deleteScheduleAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   DeleteScheduleRequest request =
    *       DeleteScheduleRequest.newBuilder()
@@ -2606,8 +2888,11 @@ public final UnaryCallable deleteScheduleCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ScheduleName parent = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]");
    *   Schedule schedule = Schedule.newBuilder().build();
@@ -2640,8 +2925,11 @@ public final OperationFuture createScheduleAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   String parent = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString();
    *   Schedule schedule = Schedule.newBuilder().build();
@@ -2674,8 +2962,11 @@ public final OperationFuture createScheduleAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   CreateScheduleRequest request =
    *       CreateScheduleRequest.newBuilder()
@@ -2702,8 +2993,11 @@ public final OperationFuture createScheduleAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   CreateScheduleRequest request =
    *       CreateScheduleRequest.newBuilder()
@@ -2730,8 +3024,11 @@ public final OperationFuture createScheduleAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   CreateScheduleRequest request =
    *       CreateScheduleRequest.newBuilder()
@@ -2757,8 +3054,11 @@ public final UnaryCallable createScheduleCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   TriggerScheduleRequest request =
    *       TriggerScheduleRequest.newBuilder()
@@ -2783,8 +3083,11 @@ public final OperationFuture triggerScheduleAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   TriggerScheduleRequest request =
    *       TriggerScheduleRequest.newBuilder()
@@ -2809,8 +3112,11 @@ public final OperationFuture triggerScheduleAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   TriggerScheduleRequest request =
    *       TriggerScheduleRequest.newBuilder()
@@ -2834,8 +3140,11 @@ public final UnaryCallable triggerScheduleCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ExecutionName parent = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]");
    *   for (Execution element : notebookServiceClient.listExecutions(parent).iterateAll()) {
@@ -2862,8 +3171,11 @@ public final ListExecutionsPagedResponse listExecutions(ExecutionName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   String parent = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString();
    *   for (Execution element : notebookServiceClient.listExecutions(parent).iterateAll()) {
@@ -2887,8 +3199,11 @@ public final ListExecutionsPagedResponse listExecutions(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ListExecutionsRequest request =
    *       ListExecutionsRequest.newBuilder()
@@ -2918,8 +3233,11 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ListExecutionsRequest request =
    *       ListExecutionsRequest.newBuilder()
@@ -2950,8 +3268,11 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ListExecutionsRequest request =
    *       ListExecutionsRequest.newBuilder()
@@ -2989,8 +3310,11 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]");
    *   Execution response = notebookServiceClient.getExecution(name);
@@ -3014,8 +3338,11 @@ public final Execution getExecution(ExecutionName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   String name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString();
    *   Execution response = notebookServiceClient.getExecution(name);
@@ -3038,8 +3365,11 @@ public final Execution getExecution(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   GetExecutionRequest request =
    *       GetExecutionRequest.newBuilder()
@@ -3063,8 +3393,11 @@ public final Execution getExecution(GetExecutionRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   GetExecutionRequest request =
    *       GetExecutionRequest.newBuilder()
@@ -3088,8 +3421,11 @@ public final UnaryCallable getExecutionCallable(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]");
    *   notebookServiceClient.deleteExecutionAsync(name).get();
@@ -3113,8 +3449,11 @@ public final OperationFuture deleteExecutionAsync(Exec
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   String name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString();
    *   notebookServiceClient.deleteExecutionAsync(name).get();
@@ -3137,8 +3476,11 @@ public final OperationFuture deleteExecutionAsync(Stri
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   DeleteExecutionRequest request =
    *       DeleteExecutionRequest.newBuilder()
@@ -3163,8 +3505,11 @@ public final OperationFuture deleteExecutionAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   DeleteExecutionRequest request =
    *       DeleteExecutionRequest.newBuilder()
@@ -3189,8 +3534,11 @@ public final OperationFuture deleteExecutionAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   DeleteExecutionRequest request =
    *       DeleteExecutionRequest.newBuilder()
@@ -3214,8 +3562,11 @@ public final UnaryCallable deleteExecutionCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ExecutionName parent = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]");
    *   Execution execution = Execution.newBuilder().build();
@@ -3248,8 +3599,11 @@ public final OperationFuture createExecutionAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   String parent = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString();
    *   Execution execution = Execution.newBuilder().build();
@@ -3282,8 +3636,11 @@ public final OperationFuture createExecutionAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   CreateExecutionRequest request =
    *       CreateExecutionRequest.newBuilder()
@@ -3310,8 +3667,11 @@ public final OperationFuture createExecutionAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   CreateExecutionRequest request =
    *       CreateExecutionRequest.newBuilder()
@@ -3338,8 +3698,11 @@ public final OperationFuture createExecutionAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   CreateExecutionRequest request =
    *       CreateExecutionRequest.newBuilder()
diff --git a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceSettings.java b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceSettings.java
index 637b8bee..e151f487 100644
--- a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceSettings.java
+++ b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceSettings.java
@@ -58,17 +58,17 @@
  * 

For example, to set the total timeout of getInstance to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * NotebookServiceSettings.Builder notebookServiceSettingsBuilder =
  *     NotebookServiceSettings.newBuilder();
  * notebookServiceSettingsBuilder
  *     .getInstanceSettings()
  *     .setRetrySettings(
- *         notebookServiceSettingsBuilder
- *             .getInstanceSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         notebookServiceSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * NotebookServiceSettings notebookServiceSettings = notebookServiceSettingsBuilder.build();
diff --git a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/package-info.java b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/package-info.java
index d8359677..b5d0351e 100644
--- a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/package-info.java
+++ b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/package-info.java
@@ -26,8 +26,11 @@
  * 

Sample for ManagedNotebookServiceClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (ManagedNotebookServiceClient managedNotebookServiceClient =
  *     ManagedNotebookServiceClient.create()) {
  *   RuntimeName name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]");
@@ -42,8 +45,11 @@
  * 

Sample for NotebookServiceClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
  *   String name = "name3373707";
  *   Instance response = notebookServiceClient.getInstance(name);
diff --git a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStubSettings.java b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStubSettings.java
index 91fb3ae0..6082bd82 100644
--- a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStubSettings.java
+++ b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStubSettings.java
@@ -87,8 +87,11 @@
  * 

For example, to set the total timeout of getRuntime to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * ManagedNotebookServiceStubSettings.Builder managedNotebookServiceSettingsBuilder =
  *     ManagedNotebookServiceStubSettings.newBuilder();
  * managedNotebookServiceSettingsBuilder
diff --git a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStubSettings.java b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStubSettings.java
index 66831524..7db0b732 100644
--- a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStubSettings.java
+++ b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStubSettings.java
@@ -121,17 +121,17 @@
  * 

For example, to set the total timeout of getInstance to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * NotebookServiceStubSettings.Builder notebookServiceSettingsBuilder =
  *     NotebookServiceStubSettings.newBuilder();
  * notebookServiceSettingsBuilder
  *     .getInstanceSettings()
  *     .setRetrySettings(
- *         notebookServiceSettingsBuilder
- *             .getInstanceSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         notebookServiceSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * NotebookServiceStubSettings notebookServiceSettings = notebookServiceSettingsBuilder.build();
diff --git a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClient.java b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClient.java
index 7ea1dd2c..ac447a15 100644
--- a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClient.java
+++ b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClient.java
@@ -46,8 +46,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
  *   GetInstanceRequest request = GetInstanceRequest.newBuilder().setName("name3373707").build();
  *   Instance response = notebookServiceClient.getInstance(request);
@@ -84,8 +87,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * NotebookServiceSettings notebookServiceSettings =
  *     NotebookServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -97,8 +103,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * NotebookServiceSettings notebookServiceSettings =
  *     NotebookServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * NotebookServiceClient notebookServiceClient =
@@ -176,8 +185,11 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ListInstancesRequest request =
    *       ListInstancesRequest.newBuilder()
@@ -205,8 +217,11 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ListInstancesRequest request =
    *       ListInstancesRequest.newBuilder()
@@ -235,8 +250,11 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ListInstancesRequest request =
    *       ListInstancesRequest.newBuilder()
@@ -271,8 +289,11 @@ public final UnaryCallable listInst
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   GetInstanceRequest request = GetInstanceRequest.newBuilder().setName("name3373707").build();
    *   Instance response = notebookServiceClient.getInstance(request);
@@ -293,8 +314,11 @@ public final Instance getInstance(GetInstanceRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   GetInstanceRequest request = GetInstanceRequest.newBuilder().setName("name3373707").build();
    *   ApiFuture future = notebookServiceClient.getInstanceCallable().futureCall(request);
@@ -314,8 +338,11 @@ public final UnaryCallable getInstanceCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   CreateInstanceRequest request =
    *       CreateInstanceRequest.newBuilder()
@@ -342,8 +369,11 @@ public final OperationFuture createInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   CreateInstanceRequest request =
    *       CreateInstanceRequest.newBuilder()
@@ -370,8 +400,11 @@ public final OperationFuture createInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   CreateInstanceRequest request =
    *       CreateInstanceRequest.newBuilder()
@@ -399,8 +432,11 @@ public final UnaryCallable createInstanceCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   RegisterInstanceRequest request =
    *       RegisterInstanceRequest.newBuilder()
@@ -428,8 +464,11 @@ public final OperationFuture registerInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   RegisterInstanceRequest request =
    *       RegisterInstanceRequest.newBuilder()
@@ -457,8 +496,11 @@ public final OperationFuture registerInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   RegisterInstanceRequest request =
    *       RegisterInstanceRequest.newBuilder()
@@ -483,8 +525,11 @@ public final UnaryCallable registerInstanceC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   SetInstanceAcceleratorRequest request =
    *       SetInstanceAcceleratorRequest.newBuilder()
@@ -510,8 +555,11 @@ public final OperationFuture setInstanceAccelerator
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   SetInstanceAcceleratorRequest request =
    *       SetInstanceAcceleratorRequest.newBuilder()
@@ -537,8 +585,11 @@ public final OperationFuture setInstanceAccelerator
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   SetInstanceAcceleratorRequest request =
    *       SetInstanceAcceleratorRequest.newBuilder()
@@ -564,8 +615,11 @@ public final OperationFuture setInstanceAccelerator
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   SetInstanceMachineTypeRequest request =
    *       SetInstanceMachineTypeRequest.newBuilder()
@@ -591,8 +645,11 @@ public final OperationFuture setInstanceMachineType
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   SetInstanceMachineTypeRequest request =
    *       SetInstanceMachineTypeRequest.newBuilder()
@@ -618,8 +675,11 @@ public final OperationFuture setInstanceMachineType
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   SetInstanceMachineTypeRequest request =
    *       SetInstanceMachineTypeRequest.newBuilder()
@@ -645,8 +705,11 @@ public final OperationFuture setInstanceMachineType
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   SetInstanceLabelsRequest request =
    *       SetInstanceLabelsRequest.newBuilder()
@@ -672,8 +735,11 @@ public final OperationFuture setInstanceLabelsAsync
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   SetInstanceLabelsRequest request =
    *       SetInstanceLabelsRequest.newBuilder()
@@ -699,8 +765,11 @@ public final OperationFuture setInstanceLabelsAsync
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   SetInstanceLabelsRequest request =
    *       SetInstanceLabelsRequest.newBuilder()
@@ -725,8 +794,11 @@ public final UnaryCallable setInstanceLabel
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   DeleteInstanceRequest request =
    *       DeleteInstanceRequest.newBuilder().setName("name3373707").build();
@@ -749,8 +821,11 @@ public final OperationFuture deleteInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   DeleteInstanceRequest request =
    *       DeleteInstanceRequest.newBuilder().setName("name3373707").build();
@@ -773,8 +848,11 @@ public final OperationFuture deleteInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   DeleteInstanceRequest request =
    *       DeleteInstanceRequest.newBuilder().setName("name3373707").build();
@@ -796,8 +874,11 @@ public final UnaryCallable deleteInstanceCalla
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   StartInstanceRequest request =
    *       StartInstanceRequest.newBuilder().setName("name3373707").build();
@@ -820,8 +901,11 @@ public final OperationFuture startInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   StartInstanceRequest request =
    *       StartInstanceRequest.newBuilder().setName("name3373707").build();
@@ -844,8 +928,11 @@ public final OperationFuture startInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   StartInstanceRequest request =
    *       StartInstanceRequest.newBuilder().setName("name3373707").build();
@@ -867,8 +954,11 @@ public final UnaryCallable startInstanceCallabl
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build();
    *   Instance response = notebookServiceClient.stopInstanceAsync(request).get();
@@ -890,8 +980,11 @@ public final OperationFuture stopInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build();
    *   OperationFuture future =
@@ -913,8 +1006,11 @@ public final OperationFuture stopInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build();
    *   ApiFuture future =
@@ -935,8 +1031,11 @@ public final UnaryCallable stopInstanceCallable(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ResetInstanceRequest request =
    *       ResetInstanceRequest.newBuilder().setName("name3373707").build();
@@ -959,8 +1058,11 @@ public final OperationFuture resetInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ResetInstanceRequest request =
    *       ResetInstanceRequest.newBuilder().setName("name3373707").build();
@@ -983,8 +1085,11 @@ public final OperationFuture resetInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ResetInstanceRequest request =
    *       ResetInstanceRequest.newBuilder().setName("name3373707").build();
@@ -1008,8 +1113,11 @@ public final UnaryCallable resetInstanceCallabl
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ReportInstanceInfoRequest request =
    *       ReportInstanceInfoRequest.newBuilder()
@@ -1038,8 +1146,11 @@ public final OperationFuture reportInstanceInfoAsyn
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ReportInstanceInfoRequest request =
    *       ReportInstanceInfoRequest.newBuilder()
@@ -1068,8 +1179,11 @@ public final OperationFuture reportInstanceInfoAsyn
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ReportInstanceInfoRequest request =
    *       ReportInstanceInfoRequest.newBuilder()
@@ -1095,8 +1209,11 @@ public final UnaryCallable reportInstanceI
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   IsInstanceUpgradeableRequest request =
    *       IsInstanceUpgradeableRequest.newBuilder()
@@ -1121,8 +1238,11 @@ public final IsInstanceUpgradeableResponse isInstanceUpgradeable(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   IsInstanceUpgradeableRequest request =
    *       IsInstanceUpgradeableRequest.newBuilder()
@@ -1147,8 +1267,11 @@ public final IsInstanceUpgradeableResponse isInstanceUpgradeable(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpgradeInstanceRequest request =
    *       UpgradeInstanceRequest.newBuilder().setName("name3373707").build();
@@ -1171,8 +1294,11 @@ public final OperationFuture upgradeInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpgradeInstanceRequest request =
    *       UpgradeInstanceRequest.newBuilder().setName("name3373707").build();
@@ -1195,8 +1321,11 @@ public final OperationFuture upgradeInstanceAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpgradeInstanceRequest request =
    *       UpgradeInstanceRequest.newBuilder().setName("name3373707").build();
@@ -1219,8 +1348,11 @@ public final UnaryCallable upgradeInstanceCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpgradeInstanceInternalRequest request =
    *       UpgradeInstanceInternalRequest.newBuilder()
@@ -1247,8 +1379,11 @@ public final OperationFuture upgradeInstanceInterna
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpgradeInstanceInternalRequest request =
    *       UpgradeInstanceInternalRequest.newBuilder()
@@ -1275,8 +1410,11 @@ public final OperationFuture upgradeInstanceInterna
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   UpgradeInstanceInternalRequest request =
    *       UpgradeInstanceInternalRequest.newBuilder()
@@ -1302,8 +1440,11 @@ public final OperationFuture upgradeInstanceInterna
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ListEnvironmentsRequest request =
    *       ListEnvironmentsRequest.newBuilder()
@@ -1331,8 +1472,11 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ListEnvironmentsRequest request =
    *       ListEnvironmentsRequest.newBuilder()
@@ -1361,8 +1505,11 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   ListEnvironmentsRequest request =
    *       ListEnvironmentsRequest.newBuilder()
@@ -1398,8 +1545,11 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   GetEnvironmentRequest request =
    *       GetEnvironmentRequest.newBuilder().setName("name3373707").build();
@@ -1421,8 +1571,11 @@ public final Environment getEnvironment(GetEnvironmentRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   GetEnvironmentRequest request =
    *       GetEnvironmentRequest.newBuilder().setName("name3373707").build();
@@ -1444,8 +1597,11 @@ public final UnaryCallable getEnvironmentCal
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   CreateEnvironmentRequest request =
    *       CreateEnvironmentRequest.newBuilder()
@@ -1472,8 +1628,11 @@ public final OperationFuture createEnvironmentAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   CreateEnvironmentRequest request =
    *       CreateEnvironmentRequest.newBuilder()
@@ -1500,8 +1659,11 @@ public final OperationFuture createEnvironmentAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   CreateEnvironmentRequest request =
    *       CreateEnvironmentRequest.newBuilder()
@@ -1527,8 +1689,11 @@ public final UnaryCallable createEnvironmen
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   DeleteEnvironmentRequest request =
    *       DeleteEnvironmentRequest.newBuilder().setName("name3373707").build();
@@ -1551,8 +1716,11 @@ public final OperationFuture deleteEnvironmentAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   DeleteEnvironmentRequest request =
    *       DeleteEnvironmentRequest.newBuilder().setName("name3373707").build();
@@ -1575,8 +1743,11 @@ public final OperationFuture deleteEnvironmentAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
    *   DeleteEnvironmentRequest request =
    *       DeleteEnvironmentRequest.newBuilder().setName("name3373707").build();
diff --git a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceSettings.java b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceSettings.java
index 94720aca..03f6b2c4 100644
--- a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceSettings.java
+++ b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceSettings.java
@@ -56,17 +56,17 @@
  * 

For example, to set the total timeout of getInstance to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * NotebookServiceSettings.Builder notebookServiceSettingsBuilder =
  *     NotebookServiceSettings.newBuilder();
  * notebookServiceSettingsBuilder
  *     .getInstanceSettings()
  *     .setRetrySettings(
- *         notebookServiceSettingsBuilder
- *             .getInstanceSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         notebookServiceSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * NotebookServiceSettings notebookServiceSettings = notebookServiceSettingsBuilder.build();
diff --git a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/package-info.java b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/package-info.java
index a9311274..5c65ea42 100644
--- a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/package-info.java
+++ b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/package-info.java
@@ -24,8 +24,11 @@
  * 

Sample for NotebookServiceClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
  *   GetInstanceRequest request = GetInstanceRequest.newBuilder().setName("name3373707").build();
  *   Instance response = notebookServiceClient.getInstance(request);
diff --git a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.java b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.java
index 55fae8be..2e01b8dc 100644
--- a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.java
+++ b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.java
@@ -99,17 +99,17 @@
  * 

For example, to set the total timeout of getInstance to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * NotebookServiceStubSettings.Builder notebookServiceSettingsBuilder =
  *     NotebookServiceStubSettings.newBuilder();
  * notebookServiceSettingsBuilder
  *     .getInstanceSettings()
  *     .setRetrySettings(
- *         notebookServiceSettingsBuilder
- *             .getInstanceSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         notebookServiceSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * NotebookServiceStubSettings notebookServiceSettings = notebookServiceSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/create/SyncCreateSetCredentialsProvider.java
index 77627e21..ba33a44d 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     ManagedNotebookServiceSettings managedNotebookServiceSettings =
         ManagedNotebookServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/create/SyncCreateSetEndpoint.java
index a9112e94..16b43dd8 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     ManagedNotebookServiceSettings managedNotebookServiceSettings =
         ManagedNotebookServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     ManagedNotebookServiceClient managedNotebookServiceClient =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/AsyncCreateRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/AsyncCreateRuntime.java
index 9f8960b7..6b9e6fcf 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/AsyncCreateRuntime.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/AsyncCreateRuntime.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateRuntime() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       CreateRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/AsyncCreateRuntimeLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/AsyncCreateRuntimeLRO.java
index 5375e759..1b81fb75 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/AsyncCreateRuntimeLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/AsyncCreateRuntimeLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateRuntimeLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       CreateRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntime.java
index 96392c93..4204fd44 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntime.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntime.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateRuntime() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       CreateRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntimeRuntimenameStringRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntimeRuntimenameStringRuntime.java
index e6bebe32..e2b3524c 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntimeRuntimenameStringRuntime.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntimeRuntimenameStringRuntime.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateRuntimeRuntimenameStringRuntime() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       RuntimeName parent = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]");
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntimeStringStringRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntimeStringStringRuntime.java
index 250b0b46..376a7e9f 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntimeStringStringRuntime.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/createruntime/SyncCreateRuntimeStringStringRuntime.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateRuntimeStringStringRuntime() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       String parent = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/AsyncDeleteRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/AsyncDeleteRuntime.java
index 4e5b539b..7a8c9044 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/AsyncDeleteRuntime.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/AsyncDeleteRuntime.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteRuntime() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       DeleteRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/AsyncDeleteRuntimeLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/AsyncDeleteRuntimeLRO.java
index f3d006b0..32f8946f 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/AsyncDeleteRuntimeLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/AsyncDeleteRuntimeLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteRuntimeLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       DeleteRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntime.java
index 338ac6cd..4b825b1b 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntime.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntime.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteRuntime() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       DeleteRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntimeRuntimename.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntimeRuntimename.java
index 7cf52957..bc5ebdc8 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntimeRuntimename.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntimeRuntimename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteRuntimeRuntimename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       RuntimeName name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]");
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntimeString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntimeString.java
index b56f63fe..c0d08b41 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntimeString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/deleteruntime/SyncDeleteRuntimeString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteRuntimeString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       String name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/AsyncGetRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/AsyncGetRuntime.java
index 2211f720..9a6e7692 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/AsyncGetRuntime.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/AsyncGetRuntime.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetRuntime() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       GetRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntime.java
index 36dbe035..ed2744e2 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntime.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntime.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetRuntime() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       GetRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntimeRuntimename.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntimeRuntimename.java
index 0cb61a42..2818366c 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntimeRuntimename.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntimeRuntimename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetRuntimeRuntimename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       RuntimeName name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]");
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntimeString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntimeString.java
index 15e52fa5..242c72ea 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntimeString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/getruntime/SyncGetRuntimeString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetRuntimeString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       String name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/AsyncListRuntimes.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/AsyncListRuntimes.java
index 873921d4..f09c8910 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/AsyncListRuntimes.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/AsyncListRuntimes.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListRuntimes() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       ListRuntimesRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/AsyncListRuntimesPaged.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/AsyncListRuntimesPaged.java
index 5fceca73..82c4d52d 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/AsyncListRuntimesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/AsyncListRuntimesPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListRuntimesPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       ListRuntimesRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimes.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimes.java
index 6c7e5d9b..10a90ec4 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimes.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimes.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListRuntimes() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       ListRuntimesRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimesLocationname.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimesLocationname.java
index f176e4b3..4229b655 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimesLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListRuntimesLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimesString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimesString.java
index d3d510f9..e2d6bea8 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimesString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/listruntimes/SyncListRuntimesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListRuntimesString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/AsyncRefreshRuntimeTokenInternal.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/AsyncRefreshRuntimeTokenInternal.java
index d64dddeb..81069efb 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/AsyncRefreshRuntimeTokenInternal.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/AsyncRefreshRuntimeTokenInternal.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncRefreshRuntimeTokenInternal() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       RefreshRuntimeTokenInternalRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternal.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternal.java
index 0d57840a..9f124ec0 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternal.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternal.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRefreshRuntimeTokenInternal() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       RefreshRuntimeTokenInternalRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalRuntimenameString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalRuntimenameString.java
index 0ecea14a..a0bd6f06 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalRuntimenameString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalRuntimenameString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRefreshRuntimeTokenInternalRuntimenameString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       RuntimeName name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]");
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalStringString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalStringString.java
index ff710db6..57d2d876 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalStringString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalStringString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRefreshRuntimeTokenInternalStringString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       String name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/AsyncReportRuntimeEvent.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/AsyncReportRuntimeEvent.java
index 35463ba3..70a62c22 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/AsyncReportRuntimeEvent.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/AsyncReportRuntimeEvent.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncReportRuntimeEvent() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       ReportRuntimeEventRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/AsyncReportRuntimeEventLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/AsyncReportRuntimeEventLRO.java
index 4d999420..9b72b3cb 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/AsyncReportRuntimeEventLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/AsyncReportRuntimeEventLRO.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncReportRuntimeEventLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       ReportRuntimeEventRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEvent.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEvent.java
index 6c7910b9..f62f4209 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEvent.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEvent.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncReportRuntimeEvent() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       ReportRuntimeEventRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEventRuntimename.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEventRuntimename.java
index 869ce7c0..9af25900 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEventRuntimename.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEventRuntimename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncReportRuntimeEventRuntimename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       RuntimeName name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]");
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEventString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEventString.java
index fc80b866..1c5b740f 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEventString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/reportruntimeevent/SyncReportRuntimeEventString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncReportRuntimeEventString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       String name = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/AsyncResetRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/AsyncResetRuntime.java
index e1a023a5..21d45631 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/AsyncResetRuntime.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/AsyncResetRuntime.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncResetRuntime() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       ResetRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/AsyncResetRuntimeLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/AsyncResetRuntimeLRO.java
index 3ccbcf6b..a4d3fe14 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/AsyncResetRuntimeLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/AsyncResetRuntimeLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncResetRuntimeLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       ResetRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/SyncResetRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/SyncResetRuntime.java
index e45929ca..97b8645b 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/SyncResetRuntime.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/SyncResetRuntime.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResetRuntime() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       ResetRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/SyncResetRuntimeString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/SyncResetRuntimeString.java
index a327697b..6b41e682 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/SyncResetRuntimeString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/resetruntime/SyncResetRuntimeString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResetRuntimeString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       String name = "name3373707";
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/AsyncStartRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/AsyncStartRuntime.java
index 3a0bb624..5cc3b539 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/AsyncStartRuntime.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/AsyncStartRuntime.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStartRuntime() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       StartRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/AsyncStartRuntimeLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/AsyncStartRuntimeLRO.java
index f297db9a..8732ca5c 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/AsyncStartRuntimeLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/AsyncStartRuntimeLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStartRuntimeLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       StartRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/SyncStartRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/SyncStartRuntime.java
index e495adee..b2de3aea 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/SyncStartRuntime.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/SyncStartRuntime.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncStartRuntime() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       StartRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/SyncStartRuntimeString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/SyncStartRuntimeString.java
index 7aa6a35d..055e4a87 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/SyncStartRuntimeString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/startruntime/SyncStartRuntimeString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncStartRuntimeString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       String name = "name3373707";
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/AsyncStopRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/AsyncStopRuntime.java
index 70277cec..6775828d 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/AsyncStopRuntime.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/AsyncStopRuntime.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStopRuntime() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       StopRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/AsyncStopRuntimeLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/AsyncStopRuntimeLRO.java
index 6af041ef..2abcbfd1 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/AsyncStopRuntimeLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/AsyncStopRuntimeLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStopRuntimeLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       StopRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/SyncStopRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/SyncStopRuntime.java
index 534dacfd..11bafc63 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/SyncStopRuntime.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/SyncStopRuntime.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncStopRuntime() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       StopRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/SyncStopRuntimeString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/SyncStopRuntimeString.java
index a29d2c0b..e4005cbb 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/SyncStopRuntimeString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/stopruntime/SyncStopRuntimeString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncStopRuntimeString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       String name = "name3373707";
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/AsyncSwitchRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/AsyncSwitchRuntime.java
index c7bb27ed..feb305a9 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/AsyncSwitchRuntime.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/AsyncSwitchRuntime.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSwitchRuntime() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       SwitchRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/AsyncSwitchRuntimeLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/AsyncSwitchRuntimeLRO.java
index 70e313f2..8c8369c2 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/AsyncSwitchRuntimeLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/AsyncSwitchRuntimeLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSwitchRuntimeLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       SwitchRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/SyncSwitchRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/SyncSwitchRuntime.java
index 9b7b1bb0..2424cfc1 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/SyncSwitchRuntime.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/SyncSwitchRuntime.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSwitchRuntime() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       SwitchRuntimeRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/SyncSwitchRuntimeString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/SyncSwitchRuntimeString.java
index 4ecfaeec..1034f692 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/SyncSwitchRuntimeString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookserviceclient/switchruntime/SyncSwitchRuntimeString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSwitchRuntimeString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ManagedNotebookServiceClient managedNotebookServiceClient =
         ManagedNotebookServiceClient.create()) {
       String name = "name3373707";
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservicesettings/getruntime/SyncGetRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservicesettings/getruntime/SyncGetRuntime.java
index ef7948c5..93247de7 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservicesettings/getruntime/SyncGetRuntime.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservicesettings/getruntime/SyncGetRuntime.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetRuntime() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     ManagedNotebookServiceSettings.Builder managedNotebookServiceSettingsBuilder =
         ManagedNotebookServiceSettings.newBuilder();
     managedNotebookServiceSettingsBuilder
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/create/SyncCreateSetCredentialsProvider.java
index 3d5e2538..460e2c94 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     NotebookServiceSettings notebookServiceSettings =
         NotebookServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/create/SyncCreateSetEndpoint.java
index 307530e4..393cf4f6 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     NotebookServiceSettings notebookServiceSettings =
         NotebookServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     NotebookServiceClient notebookServiceClient =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/AsyncCreateEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/AsyncCreateEnvironment.java
index 8b6196b8..61a540a3 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/AsyncCreateEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/AsyncCreateEnvironment.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateEnvironment() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       CreateEnvironmentRequest request =
           CreateEnvironmentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/AsyncCreateEnvironmentLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/AsyncCreateEnvironmentLRO.java
index 95d6611f..ab6ff008 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/AsyncCreateEnvironmentLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/AsyncCreateEnvironmentLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateEnvironmentLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       CreateEnvironmentRequest request =
           CreateEnvironmentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/SyncCreateEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/SyncCreateEnvironment.java
index 2305e62a..e20d5ee1 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/SyncCreateEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/SyncCreateEnvironment.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateEnvironment() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       CreateEnvironmentRequest request =
           CreateEnvironmentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/SyncCreateEnvironmentStringEnvironmentString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/SyncCreateEnvironmentStringEnvironmentString.java
index 98d18b21..62949c81 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/SyncCreateEnvironmentStringEnvironmentString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createenvironment/SyncCreateEnvironmentStringEnvironmentString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateEnvironmentStringEnvironmentString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       String parent = "parent-995424086";
       Environment environment = Environment.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/AsyncCreateExecution.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/AsyncCreateExecution.java
index e3591866..0583ec19 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/AsyncCreateExecution.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/AsyncCreateExecution.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateExecution() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       CreateExecutionRequest request =
           CreateExecutionRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/AsyncCreateExecutionLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/AsyncCreateExecutionLRO.java
index 9b8c9c3f..ec3fff19 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/AsyncCreateExecutionLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/AsyncCreateExecutionLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateExecutionLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       CreateExecutionRequest request =
           CreateExecutionRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecution.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecution.java
index 9f7d12d2..9f9acb05 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecution.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecution.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateExecution() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       CreateExecutionRequest request =
           CreateExecutionRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecutionExecutionnameExecutionString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecutionExecutionnameExecutionString.java
index ce190296..7afd94f9 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecutionExecutionnameExecutionString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecutionExecutionnameExecutionString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateExecutionExecutionnameExecutionString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ExecutionName parent = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]");
       Execution execution = Execution.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecutionStringExecutionString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecutionStringExecutionString.java
index 104acf4f..b38bfb92 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecutionStringExecutionString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createexecution/SyncCreateExecutionStringExecutionString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateExecutionStringExecutionString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       String parent = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString();
       Execution execution = Execution.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/AsyncCreateInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/AsyncCreateInstance.java
index 84a89954..dcdb38ab 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/AsyncCreateInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/AsyncCreateInstance.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       CreateInstanceRequest request =
           CreateInstanceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/AsyncCreateInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/AsyncCreateInstanceLRO.java
index f14beb06..4aafe19b 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/AsyncCreateInstanceLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/AsyncCreateInstanceLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateInstanceLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       CreateInstanceRequest request =
           CreateInstanceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/SyncCreateInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/SyncCreateInstance.java
index 957f989d..ff4ca391 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/SyncCreateInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/SyncCreateInstance.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       CreateInstanceRequest request =
           CreateInstanceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/SyncCreateInstanceStringInstanceString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/SyncCreateInstanceStringInstanceString.java
index 5cdec53b..f168b99c 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/SyncCreateInstanceStringInstanceString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createinstance/SyncCreateInstanceStringInstanceString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateInstanceStringInstanceString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       String parent = "parent-995424086";
       Instance instance = Instance.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/AsyncCreateSchedule.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/AsyncCreateSchedule.java
index 3eae5ca2..a4e95aa4 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/AsyncCreateSchedule.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/AsyncCreateSchedule.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateSchedule() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       CreateScheduleRequest request =
           CreateScheduleRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/AsyncCreateScheduleLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/AsyncCreateScheduleLRO.java
index 67bc1236..74ee914d 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/AsyncCreateScheduleLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/AsyncCreateScheduleLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateScheduleLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       CreateScheduleRequest request =
           CreateScheduleRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateSchedule.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateSchedule.java
index 8c199c0c..f97328f8 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateSchedule.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateSchedule.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSchedule() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       CreateScheduleRequest request =
           CreateScheduleRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateScheduleSchedulenameScheduleString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateScheduleSchedulenameScheduleString.java
index 39682192..52362cbb 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateScheduleSchedulenameScheduleString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateScheduleSchedulenameScheduleString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateScheduleSchedulenameScheduleString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ScheduleName parent = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]");
       Schedule schedule = Schedule.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateScheduleStringScheduleString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateScheduleStringScheduleString.java
index a45c62a8..3077a105 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateScheduleStringScheduleString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/createschedule/SyncCreateScheduleStringScheduleString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateScheduleStringScheduleString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       String parent = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString();
       Schedule schedule = Schedule.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironment.java
index 54d676e8..73e0a281 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironment.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteEnvironment() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       DeleteEnvironmentRequest request =
           DeleteEnvironmentRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironmentLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironmentLRO.java
index 2826c1e7..66cfc741 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironmentLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironmentLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteEnvironmentLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       DeleteEnvironmentRequest request =
           DeleteEnvironmentRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironment.java
index 99e96ab7..fef04a97 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironment.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteEnvironment() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       DeleteEnvironmentRequest request =
           DeleteEnvironmentRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironmentString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironmentString.java
index 7ba9e71e..3087e2a4 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironmentString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironmentString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteEnvironmentString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       String name = "name3373707";
       notebookServiceClient.deleteEnvironmentAsync(name).get();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/AsyncDeleteExecution.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/AsyncDeleteExecution.java
index fd498a2d..9ac2fdcc 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/AsyncDeleteExecution.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/AsyncDeleteExecution.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteExecution() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       DeleteExecutionRequest request =
           DeleteExecutionRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/AsyncDeleteExecutionLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/AsyncDeleteExecutionLRO.java
index 5c7596ae..ad147f62 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/AsyncDeleteExecutionLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/AsyncDeleteExecutionLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteExecutionLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       DeleteExecutionRequest request =
           DeleteExecutionRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecution.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecution.java
index ba4272cf..54655b94 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecution.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecution.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteExecution() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       DeleteExecutionRequest request =
           DeleteExecutionRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecutionExecutionname.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecutionExecutionname.java
index 1a0ee0c3..a39caa7d 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecutionExecutionname.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecutionExecutionname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteExecutionExecutionname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]");
       notebookServiceClient.deleteExecutionAsync(name).get();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecutionString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecutionString.java
index ccafb1d6..55954acf 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecutionString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteexecution/SyncDeleteExecutionString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteExecutionString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       String name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString();
       notebookServiceClient.deleteExecutionAsync(name).get();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/AsyncDeleteInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/AsyncDeleteInstance.java
index 781329c6..e7cd0a68 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/AsyncDeleteInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/AsyncDeleteInstance.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       DeleteInstanceRequest request =
           DeleteInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/AsyncDeleteInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/AsyncDeleteInstanceLRO.java
index 9019cecc..22ac9f97 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/AsyncDeleteInstanceLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/AsyncDeleteInstanceLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteInstanceLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       DeleteInstanceRequest request =
           DeleteInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/SyncDeleteInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/SyncDeleteInstance.java
index 86dffdc8..38c25f67 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/SyncDeleteInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/SyncDeleteInstance.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       DeleteInstanceRequest request =
           DeleteInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/SyncDeleteInstanceString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/SyncDeleteInstanceString.java
index aeecf712..e3674039 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/SyncDeleteInstanceString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteinstance/SyncDeleteInstanceString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteInstanceString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       String name = "name3373707";
       notebookServiceClient.deleteInstanceAsync(name).get();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/AsyncDeleteSchedule.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/AsyncDeleteSchedule.java
index 4438a2f4..42dccf49 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/AsyncDeleteSchedule.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/AsyncDeleteSchedule.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteSchedule() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       DeleteScheduleRequest request =
           DeleteScheduleRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/AsyncDeleteScheduleLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/AsyncDeleteScheduleLRO.java
index a8a77cff..1d167994 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/AsyncDeleteScheduleLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/AsyncDeleteScheduleLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteScheduleLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       DeleteScheduleRequest request =
           DeleteScheduleRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteSchedule.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteSchedule.java
index 414fb717..698364c2 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteSchedule.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteSchedule.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteSchedule() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       DeleteScheduleRequest request =
           DeleteScheduleRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteScheduleSchedulename.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteScheduleSchedulename.java
index abb3419c..f60f8dff 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteScheduleSchedulename.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteScheduleSchedulename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteScheduleSchedulename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ScheduleName name = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]");
       notebookServiceClient.deleteScheduleAsync(name).get();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteScheduleString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteScheduleString.java
index d1599980..ac0acb5b 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteScheduleString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/deleteschedule/SyncDeleteScheduleString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteScheduleString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       String name = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString();
       notebookServiceClient.deleteScheduleAsync(name).get();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/AsyncGetEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/AsyncGetEnvironment.java
index 3ca0103e..42057db8 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/AsyncGetEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/AsyncGetEnvironment.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetEnvironment() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       GetEnvironmentRequest request =
           GetEnvironmentRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/SyncGetEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/SyncGetEnvironment.java
index dd9f55a9..27357a40 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/SyncGetEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/SyncGetEnvironment.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetEnvironment() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       GetEnvironmentRequest request =
           GetEnvironmentRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/SyncGetEnvironmentString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/SyncGetEnvironmentString.java
index 7add7c5b..0fb93c8e 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/SyncGetEnvironmentString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getenvironment/SyncGetEnvironmentString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetEnvironmentString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       String name = "name3373707";
       Environment response = notebookServiceClient.getEnvironment(name);
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/AsyncGetExecution.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/AsyncGetExecution.java
index 4045ee65..54574e30 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/AsyncGetExecution.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/AsyncGetExecution.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetExecution() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       GetExecutionRequest request =
           GetExecutionRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecution.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecution.java
index f68ca9ef..7e9ae8bd 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecution.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecution.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetExecution() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       GetExecutionRequest request =
           GetExecutionRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecutionExecutionname.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecutionExecutionname.java
index 6e753979..59eca847 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecutionExecutionname.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecutionExecutionname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetExecutionExecutionname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]");
       Execution response = notebookServiceClient.getExecution(name);
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecutionString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecutionString.java
index aa28d436..3e93bad9 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecutionString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getexecution/SyncGetExecutionString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetExecutionString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       String name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString();
       Execution response = notebookServiceClient.getExecution(name);
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/AsyncGetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/AsyncGetInstance.java
index 4c4af382..85f43ec6 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/AsyncGetInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/AsyncGetInstance.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       GetInstanceRequest request = GetInstanceRequest.newBuilder().setName("name3373707").build();
       ApiFuture future = notebookServiceClient.getInstanceCallable().futureCall(request);
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/SyncGetInstance.java
index ac2061c0..a4a17b2c 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/SyncGetInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/SyncGetInstance.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       GetInstanceRequest request = GetInstanceRequest.newBuilder().setName("name3373707").build();
       Instance response = notebookServiceClient.getInstance(request);
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/SyncGetInstanceString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/SyncGetInstanceString.java
index c0950a90..15a226e9 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/SyncGetInstanceString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstance/SyncGetInstanceString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetInstanceString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       String name = "name3373707";
       Instance response = notebookServiceClient.getInstance(name);
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/AsyncGetInstanceHealth.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/AsyncGetInstanceHealth.java
index 69ab027d..f85dced7 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/AsyncGetInstanceHealth.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/AsyncGetInstanceHealth.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetInstanceHealth() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       GetInstanceHealthRequest request =
           GetInstanceHealthRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealth.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealth.java
index d8fd265e..c8069c49 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealth.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealth.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetInstanceHealth() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       GetInstanceHealthRequest request =
           GetInstanceHealthRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealthInstancename.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealthInstancename.java
index a49ca50f..903f1ab4 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealthInstancename.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealthInstancename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetInstanceHealthInstancename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       InstanceName name = InstanceName.of("[PROJECT]", "[INSTANCE]");
       GetInstanceHealthResponse response = notebookServiceClient.getInstanceHealth(name);
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealthString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealthString.java
index 3e83631a..b7051d20 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealthString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getinstancehealth/SyncGetInstanceHealthString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetInstanceHealthString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       String name = InstanceName.of("[PROJECT]", "[INSTANCE]").toString();
       GetInstanceHealthResponse response = notebookServiceClient.getInstanceHealth(name);
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/AsyncGetSchedule.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/AsyncGetSchedule.java
index 31a43b2c..ff85d1b1 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/AsyncGetSchedule.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/AsyncGetSchedule.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetSchedule() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       GetScheduleRequest request =
           GetScheduleRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetSchedule.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetSchedule.java
index a0a64405..20c890fb 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetSchedule.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetSchedule.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetSchedule() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       GetScheduleRequest request =
           GetScheduleRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetScheduleSchedulename.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetScheduleSchedulename.java
index 385760a6..19f0a359 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetScheduleSchedulename.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetScheduleSchedulename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetScheduleSchedulename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ScheduleName name = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]");
       Schedule response = notebookServiceClient.getSchedule(name);
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetScheduleString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetScheduleString.java
index 86e26108..314b9e84 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetScheduleString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/getschedule/SyncGetScheduleString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetScheduleString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       String name = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString();
       Schedule response = notebookServiceClient.getSchedule(name);
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java
index dfd27c1a..ced1c0fe 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncIsInstanceUpgradeable() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       IsInstanceUpgradeableRequest request =
           IsInstanceUpgradeableRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/isinstanceupgradeable/SyncIsInstanceUpgradeable.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/isinstanceupgradeable/SyncIsInstanceUpgradeable.java
index b1273ebb..29840516 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/isinstanceupgradeable/SyncIsInstanceUpgradeable.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/isinstanceupgradeable/SyncIsInstanceUpgradeable.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncIsInstanceUpgradeable() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       IsInstanceUpgradeableRequest request =
           IsInstanceUpgradeableRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/AsyncListEnvironments.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/AsyncListEnvironments.java
index 92c92bf3..025b3e9d 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/AsyncListEnvironments.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/AsyncListEnvironments.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListEnvironments() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ListEnvironmentsRequest request =
           ListEnvironmentsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/AsyncListEnvironmentsPaged.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/AsyncListEnvironmentsPaged.java
index 21d6a08d..36d2d34e 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/AsyncListEnvironmentsPaged.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/AsyncListEnvironmentsPaged.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListEnvironmentsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ListEnvironmentsRequest request =
           ListEnvironmentsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/SyncListEnvironments.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/SyncListEnvironments.java
index d03a09aa..3bf15134 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/SyncListEnvironments.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/SyncListEnvironments.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListEnvironments() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ListEnvironmentsRequest request =
           ListEnvironmentsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/SyncListEnvironmentsString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/SyncListEnvironmentsString.java
index 28cbe3e3..31afd9e2 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/SyncListEnvironmentsString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listenvironments/SyncListEnvironmentsString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListEnvironmentsString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       String parent = "parent-995424086";
       for (Environment element : notebookServiceClient.listEnvironments(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/AsyncListExecutions.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/AsyncListExecutions.java
index 9a4b5e7b..eaa2e17c 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/AsyncListExecutions.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/AsyncListExecutions.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListExecutions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ListExecutionsRequest request =
           ListExecutionsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/AsyncListExecutionsPaged.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/AsyncListExecutionsPaged.java
index ff274691..dd2bcf0a 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/AsyncListExecutionsPaged.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/AsyncListExecutionsPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListExecutionsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ListExecutionsRequest request =
           ListExecutionsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutions.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutions.java
index c56910d5..b8137f05 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutions.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutions.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListExecutions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ListExecutionsRequest request =
           ListExecutionsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutionsExecutionname.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutionsExecutionname.java
index 4bbf1b26..06388317 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutionsExecutionname.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutionsExecutionname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListExecutionsExecutionname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ExecutionName parent = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]");
       for (Execution element : notebookServiceClient.listExecutions(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutionsString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutionsString.java
index cf800236..70d5c40a 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutionsString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listexecutions/SyncListExecutionsString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListExecutionsString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       String parent = ExecutionName.of("[PROJECT]", "[LOCATION]", "[EXECUTION]").toString();
       for (Execution element : notebookServiceClient.listExecutions(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/AsyncListInstances.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/AsyncListInstances.java
index c9daf7e6..6ea8ba87 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/AsyncListInstances.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/AsyncListInstances.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListInstances() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ListInstancesRequest request =
           ListInstancesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/AsyncListInstancesPaged.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/AsyncListInstancesPaged.java
index c12d738e..92727def 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/AsyncListInstancesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/AsyncListInstancesPaged.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListInstancesPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ListInstancesRequest request =
           ListInstancesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/SyncListInstances.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/SyncListInstances.java
index d83d8dd2..743615d6 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/SyncListInstances.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/SyncListInstances.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListInstances() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ListInstancesRequest request =
           ListInstancesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/SyncListInstancesString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/SyncListInstancesString.java
index 454f1f96..fd5b4169 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/SyncListInstancesString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listinstances/SyncListInstancesString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListInstancesString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       String parent = "parent-995424086";
       for (Instance element : notebookServiceClient.listInstances(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/AsyncListSchedules.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/AsyncListSchedules.java
index f7b58864..fe81f7f9 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/AsyncListSchedules.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/AsyncListSchedules.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListSchedules() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ListSchedulesRequest request =
           ListSchedulesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/AsyncListSchedulesPaged.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/AsyncListSchedulesPaged.java
index 02559702..39910845 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/AsyncListSchedulesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/AsyncListSchedulesPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListSchedulesPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ListSchedulesRequest request =
           ListSchedulesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedules.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedules.java
index 7712203c..63fd70ee 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedules.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedules.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListSchedules() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ListSchedulesRequest request =
           ListSchedulesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedulesSchedulename.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedulesSchedulename.java
index d8721e9a..15c410de 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedulesSchedulename.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedulesSchedulename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListSchedulesSchedulename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ScheduleName parent = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]");
       for (Schedule element : notebookServiceClient.listSchedules(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedulesString.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedulesString.java
index e4ce91cc..d6cde257 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedulesString.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/listschedules/SyncListSchedulesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListSchedulesString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       String parent = ScheduleName.of("[PROJECT]", "[LOCATION]", "[SCHEDULE]").toString();
       for (Schedule element : notebookServiceClient.listSchedules(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/AsyncRegisterInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/AsyncRegisterInstance.java
index 08251759..79b41af2 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/AsyncRegisterInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/AsyncRegisterInstance.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncRegisterInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       RegisterInstanceRequest request =
           RegisterInstanceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/AsyncRegisterInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/AsyncRegisterInstanceLRO.java
index 2a13ed01..6f6cbb72 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/AsyncRegisterInstanceLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/AsyncRegisterInstanceLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncRegisterInstanceLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       RegisterInstanceRequest request =
           RegisterInstanceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/SyncRegisterInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/SyncRegisterInstance.java
index c8b513a5..408535d6 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/SyncRegisterInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/registerinstance/SyncRegisterInstance.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRegisterInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       RegisterInstanceRequest request =
           RegisterInstanceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfo.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfo.java
index 9c5d6cab..9c7d35aa 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfo.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfo.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncReportInstanceInfo() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ReportInstanceInfoRequest request =
           ReportInstanceInfoRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfoLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfoLRO.java
index 55ec58b1..c6b90dcf 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfoLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfoLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncReportInstanceInfoLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ReportInstanceInfoRequest request =
           ReportInstanceInfoRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/SyncReportInstanceInfo.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/SyncReportInstanceInfo.java
index 166ad378..d42bc76a 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/SyncReportInstanceInfo.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/reportinstanceinfo/SyncReportInstanceInfo.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncReportInstanceInfo() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ReportInstanceInfoRequest request =
           ReportInstanceInfoRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/AsyncResetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/AsyncResetInstance.java
index 37fa7b3c..ced712f6 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/AsyncResetInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/AsyncResetInstance.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncResetInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ResetInstanceRequest request =
           ResetInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/AsyncResetInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/AsyncResetInstanceLRO.java
index 17fcc0db..fa9e9c92 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/AsyncResetInstanceLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/AsyncResetInstanceLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncResetInstanceLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ResetInstanceRequest request =
           ResetInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/SyncResetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/SyncResetInstance.java
index 1da7a072..756f3198 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/SyncResetInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/resetinstance/SyncResetInstance.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResetInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ResetInstanceRequest request =
           ResetInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/AsyncRollbackInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/AsyncRollbackInstance.java
index 005547d3..20c12715 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/AsyncRollbackInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/AsyncRollbackInstance.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncRollbackInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       RollbackInstanceRequest request =
           RollbackInstanceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/AsyncRollbackInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/AsyncRollbackInstanceLRO.java
index 1325517c..b19111d8 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/AsyncRollbackInstanceLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/AsyncRollbackInstanceLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncRollbackInstanceLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       RollbackInstanceRequest request =
           RollbackInstanceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/SyncRollbackInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/SyncRollbackInstance.java
index b6d24172..54f4bb20 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/SyncRollbackInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/rollbackinstance/SyncRollbackInstance.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRollbackInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       RollbackInstanceRequest request =
           RollbackInstanceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAccelerator.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAccelerator.java
index 0f6405d0..cef034f7 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAccelerator.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAccelerator.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetInstanceAccelerator() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       SetInstanceAcceleratorRequest request =
           SetInstanceAcceleratorRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java
index 04f1ce36..efbee037 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetInstanceAcceleratorLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       SetInstanceAcceleratorRequest request =
           SetInstanceAcceleratorRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/SyncSetInstanceAccelerator.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/SyncSetInstanceAccelerator.java
index b65d216f..e950cd30 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/SyncSetInstanceAccelerator.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstanceaccelerator/SyncSetInstanceAccelerator.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetInstanceAccelerator() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       SetInstanceAcceleratorRequest request =
           SetInstanceAcceleratorRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabels.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabels.java
index f9ac5ef8..6762eec0 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabels.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabels.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetInstanceLabels() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       SetInstanceLabelsRequest request =
           SetInstanceLabelsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabelsLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabelsLRO.java
index a704fd33..b86f96f6 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabelsLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabelsLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetInstanceLabelsLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       SetInstanceLabelsRequest request =
           SetInstanceLabelsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/SyncSetInstanceLabels.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/SyncSetInstanceLabels.java
index cc242d0f..bc180a30 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/SyncSetInstanceLabels.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancelabels/SyncSetInstanceLabels.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetInstanceLabels() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       SetInstanceLabelsRequest request =
           SetInstanceLabelsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineType.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineType.java
index 3e9df162..459a2011 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineType.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineType.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetInstanceMachineType() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       SetInstanceMachineTypeRequest request =
           SetInstanceMachineTypeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java
index 25f59fcf..92f3cdbc 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetInstanceMachineTypeLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       SetInstanceMachineTypeRequest request =
           SetInstanceMachineTypeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/SyncSetInstanceMachineType.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/SyncSetInstanceMachineType.java
index 6e120dcd..67bc2c5d 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/SyncSetInstanceMachineType.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/setinstancemachinetype/SyncSetInstanceMachineType.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetInstanceMachineType() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       SetInstanceMachineTypeRequest request =
           SetInstanceMachineTypeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/AsyncStartInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/AsyncStartInstance.java
index 3f9e7890..9e5c3479 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/AsyncStartInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/AsyncStartInstance.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStartInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       StartInstanceRequest request =
           StartInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/AsyncStartInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/AsyncStartInstanceLRO.java
index 70dbc71f..87655531 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/AsyncStartInstanceLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/AsyncStartInstanceLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStartInstanceLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       StartInstanceRequest request =
           StartInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/SyncStartInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/SyncStartInstance.java
index 9d63c70a..bc7aa9ab 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/SyncStartInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/startinstance/SyncStartInstance.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncStartInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       StartInstanceRequest request =
           StartInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/AsyncStopInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/AsyncStopInstance.java
index 2629c635..1e9b102a 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/AsyncStopInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/AsyncStopInstance.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStopInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build();
       ApiFuture future =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/AsyncStopInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/AsyncStopInstanceLRO.java
index 3d85e656..a7cc8b2a 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/AsyncStopInstanceLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/AsyncStopInstanceLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStopInstanceLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build();
       OperationFuture future =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/SyncStopInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/SyncStopInstance.java
index 8d9cf652..e0f0ae02 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/SyncStopInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/stopinstance/SyncStopInstance.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncStopInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build();
       Instance response = notebookServiceClient.stopInstanceAsync(request).get();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/AsyncTriggerSchedule.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/AsyncTriggerSchedule.java
index 3d2d610c..7319e283 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/AsyncTriggerSchedule.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/AsyncTriggerSchedule.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncTriggerSchedule() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       TriggerScheduleRequest request =
           TriggerScheduleRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/AsyncTriggerScheduleLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/AsyncTriggerScheduleLRO.java
index f438df39..e536c2fd 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/AsyncTriggerScheduleLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/AsyncTriggerScheduleLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncTriggerScheduleLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       TriggerScheduleRequest request =
           TriggerScheduleRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/SyncTriggerSchedule.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/SyncTriggerSchedule.java
index aee4dd7e..0c6e9932 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/SyncTriggerSchedule.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/triggerschedule/SyncTriggerSchedule.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTriggerSchedule() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       TriggerScheduleRequest request =
           TriggerScheduleRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/AsyncUpdateInstanceConfig.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/AsyncUpdateInstanceConfig.java
index 4db2944a..bded67a9 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/AsyncUpdateInstanceConfig.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/AsyncUpdateInstanceConfig.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateInstanceConfig() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpdateInstanceConfigRequest request =
           UpdateInstanceConfigRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/AsyncUpdateInstanceConfigLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/AsyncUpdateInstanceConfigLRO.java
index 5e3f3a5a..53a49632 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/AsyncUpdateInstanceConfigLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/AsyncUpdateInstanceConfigLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateInstanceConfigLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpdateInstanceConfigRequest request =
           UpdateInstanceConfigRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/SyncUpdateInstanceConfig.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/SyncUpdateInstanceConfig.java
index 40446b31..3421ed2b 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/SyncUpdateInstanceConfig.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstanceconfig/SyncUpdateInstanceConfig.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateInstanceConfig() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpdateInstanceConfigRequest request =
           UpdateInstanceConfigRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstancemetadataitems/AsyncUpdateInstanceMetadataItems.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstancemetadataitems/AsyncUpdateInstanceMetadataItems.java
index f0a107ee..a3e1d37c 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstancemetadataitems/AsyncUpdateInstanceMetadataItems.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstancemetadataitems/AsyncUpdateInstanceMetadataItems.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateInstanceMetadataItems() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpdateInstanceMetadataItemsRequest request =
           UpdateInstanceMetadataItemsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstancemetadataitems/SyncUpdateInstanceMetadataItems.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstancemetadataitems/SyncUpdateInstanceMetadataItems.java
index efbfc3b2..482e2744 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstancemetadataitems/SyncUpdateInstanceMetadataItems.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateinstancemetadataitems/SyncUpdateInstanceMetadataItems.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateInstanceMetadataItems() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpdateInstanceMetadataItemsRequest request =
           UpdateInstanceMetadataItemsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfig.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfig.java
index b5c8b722..d092d50a 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfig.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfig.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateShieldedInstanceConfig() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpdateShieldedInstanceConfigRequest request =
           UpdateShieldedInstanceConfigRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfigLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfigLRO.java
index 70c79265..cda41987 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfigLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfigLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateShieldedInstanceConfigLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpdateShieldedInstanceConfigRequest request =
           UpdateShieldedInstanceConfigRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/SyncUpdateShieldedInstanceConfig.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/SyncUpdateShieldedInstanceConfig.java
index 1a921bc3..21ac4420 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/SyncUpdateShieldedInstanceConfig.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/updateshieldedinstanceconfig/SyncUpdateShieldedInstanceConfig.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateShieldedInstanceConfig() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpdateShieldedInstanceConfigRequest request =
           UpdateShieldedInstanceConfigRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstance.java
index 900ba653..b30829c3 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstance.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpgradeInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpgradeInstanceRequest request =
           UpgradeInstanceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstanceLRO.java
index bc7a3850..7a616e6b 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstanceLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstanceLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpgradeInstanceLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpgradeInstanceRequest request =
           UpgradeInstanceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/SyncUpgradeInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/SyncUpgradeInstance.java
index c339f0dd..f508ea4d 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/SyncUpgradeInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstance/SyncUpgradeInstance.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpgradeInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpgradeInstanceRequest request =
           UpgradeInstanceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java
index d8b313f5..ff395df0 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpgradeInstanceInternal() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpgradeInstanceInternalRequest request =
           UpgradeInstanceInternalRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java
index d560aa42..b29dcc18 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpgradeInstanceInternalLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpgradeInstanceInternalRequest request =
           UpgradeInstanceInternalRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java
index 6e7a322e..0ecb5cdc 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookserviceclient/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpgradeInstanceInternal() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpgradeInstanceInternalRequest request =
           UpgradeInstanceInternalRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservicesettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservicesettings/getinstance/SyncGetInstance.java
index b4bba327..fd536427 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservicesettings/getinstance/SyncGetInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservicesettings/getinstance/SyncGetInstance.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     NotebookServiceSettings.Builder notebookServiceSettingsBuilder =
         NotebookServiceSettings.newBuilder();
     notebookServiceSettingsBuilder
         .getInstanceSettings()
         .setRetrySettings(
-            notebookServiceSettingsBuilder
-                .getInstanceSettings()
-                .getRetrySettings()
-                .toBuilder()
+            notebookServiceSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     NotebookServiceSettings notebookServiceSettings = notebookServiceSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/managednotebookservicestubsettings/getruntime/SyncGetRuntime.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/managednotebookservicestubsettings/getruntime/SyncGetRuntime.java
index 7ede1477..64144dda 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/managednotebookservicestubsettings/getruntime/SyncGetRuntime.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/managednotebookservicestubsettings/getruntime/SyncGetRuntime.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetRuntime() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     ManagedNotebookServiceStubSettings.Builder managedNotebookServiceSettingsBuilder =
         ManagedNotebookServiceStubSettings.newBuilder();
     managedNotebookServiceSettingsBuilder
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java
index 31608a94..74dc22ca 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     NotebookServiceStubSettings.Builder notebookServiceSettingsBuilder =
         NotebookServiceStubSettings.newBuilder();
     notebookServiceSettingsBuilder
         .getInstanceSettings()
         .setRetrySettings(
-            notebookServiceSettingsBuilder
-                .getInstanceSettings()
-                .getRetrySettings()
-                .toBuilder()
+            notebookServiceSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     NotebookServiceStubSettings notebookServiceSettings = notebookServiceSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/create/SyncCreateSetCredentialsProvider.java
index cfdd3bc4..6795bd27 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     NotebookServiceSettings notebookServiceSettings =
         NotebookServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/create/SyncCreateSetEndpoint.java
index 6a04b950..fe1c2f77 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     NotebookServiceSettings notebookServiceSettings =
         NotebookServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     NotebookServiceClient notebookServiceClient =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/AsyncCreateEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/AsyncCreateEnvironment.java
index 7c1444a4..5e1b2e6f 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/AsyncCreateEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/AsyncCreateEnvironment.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateEnvironment() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       CreateEnvironmentRequest request =
           CreateEnvironmentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/AsyncCreateEnvironmentLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/AsyncCreateEnvironmentLRO.java
index 5677c95c..e49d9163 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/AsyncCreateEnvironmentLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/AsyncCreateEnvironmentLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateEnvironmentLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       CreateEnvironmentRequest request =
           CreateEnvironmentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/SyncCreateEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/SyncCreateEnvironment.java
index 640dd502..d27a6d81 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/SyncCreateEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createenvironment/SyncCreateEnvironment.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateEnvironment() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       CreateEnvironmentRequest request =
           CreateEnvironmentRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/AsyncCreateInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/AsyncCreateInstance.java
index 66d8c5b1..31f93729 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/AsyncCreateInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/AsyncCreateInstance.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       CreateInstanceRequest request =
           CreateInstanceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/AsyncCreateInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/AsyncCreateInstanceLRO.java
index efa11731..21708879 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/AsyncCreateInstanceLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/AsyncCreateInstanceLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateInstanceLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       CreateInstanceRequest request =
           CreateInstanceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/SyncCreateInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/SyncCreateInstance.java
index c83ce365..7ff6d5bc 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/SyncCreateInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/createinstance/SyncCreateInstance.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       CreateInstanceRequest request =
           CreateInstanceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironment.java
index 88dbd896..3017463a 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironment.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteEnvironment() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       DeleteEnvironmentRequest request =
           DeleteEnvironmentRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironmentLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironmentLRO.java
index 92b1a9c7..ec0b8063 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironmentLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/AsyncDeleteEnvironmentLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteEnvironmentLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       DeleteEnvironmentRequest request =
           DeleteEnvironmentRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironment.java
index 016b3557..69384cc1 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteenvironment/SyncDeleteEnvironment.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteEnvironment() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       DeleteEnvironmentRequest request =
           DeleteEnvironmentRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/AsyncDeleteInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/AsyncDeleteInstance.java
index 8f7ef6d9..5abcc4aa 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/AsyncDeleteInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/AsyncDeleteInstance.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       DeleteInstanceRequest request =
           DeleteInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/AsyncDeleteInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/AsyncDeleteInstanceLRO.java
index 9635ac21..beab470d 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/AsyncDeleteInstanceLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/AsyncDeleteInstanceLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteInstanceLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       DeleteInstanceRequest request =
           DeleteInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/SyncDeleteInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/SyncDeleteInstance.java
index ebfc5c21..afeb5752 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/SyncDeleteInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/deleteinstance/SyncDeleteInstance.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       DeleteInstanceRequest request =
           DeleteInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getenvironment/AsyncGetEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getenvironment/AsyncGetEnvironment.java
index ea81a022..b2b7584f 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getenvironment/AsyncGetEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getenvironment/AsyncGetEnvironment.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetEnvironment() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       GetEnvironmentRequest request =
           GetEnvironmentRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getenvironment/SyncGetEnvironment.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getenvironment/SyncGetEnvironment.java
index 5e92ece9..169a7701 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getenvironment/SyncGetEnvironment.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getenvironment/SyncGetEnvironment.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetEnvironment() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       GetEnvironmentRequest request =
           GetEnvironmentRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getinstance/AsyncGetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getinstance/AsyncGetInstance.java
index c529e91a..083f5f71 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getinstance/AsyncGetInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getinstance/AsyncGetInstance.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       GetInstanceRequest request = GetInstanceRequest.newBuilder().setName("name3373707").build();
       ApiFuture future = notebookServiceClient.getInstanceCallable().futureCall(request);
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getinstance/SyncGetInstance.java
index 537a0b07..9648a5c1 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getinstance/SyncGetInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/getinstance/SyncGetInstance.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       GetInstanceRequest request = GetInstanceRequest.newBuilder().setName("name3373707").build();
       Instance response = notebookServiceClient.getInstance(request);
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java
index 11d04ea7..2cf78fc7 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncIsInstanceUpgradeable() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       IsInstanceUpgradeableRequest request =
           IsInstanceUpgradeableRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/isinstanceupgradeable/SyncIsInstanceUpgradeable.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/isinstanceupgradeable/SyncIsInstanceUpgradeable.java
index 57585750..b5711b27 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/isinstanceupgradeable/SyncIsInstanceUpgradeable.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/isinstanceupgradeable/SyncIsInstanceUpgradeable.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncIsInstanceUpgradeable() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       IsInstanceUpgradeableRequest request =
           IsInstanceUpgradeableRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/AsyncListEnvironments.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/AsyncListEnvironments.java
index 7a47b840..b8a05981 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/AsyncListEnvironments.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/AsyncListEnvironments.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListEnvironments() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ListEnvironmentsRequest request =
           ListEnvironmentsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/AsyncListEnvironmentsPaged.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/AsyncListEnvironmentsPaged.java
index 93c207fa..213bd089 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/AsyncListEnvironmentsPaged.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/AsyncListEnvironmentsPaged.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListEnvironmentsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ListEnvironmentsRequest request =
           ListEnvironmentsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/SyncListEnvironments.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/SyncListEnvironments.java
index bc3d4039..73d675a0 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/SyncListEnvironments.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listenvironments/SyncListEnvironments.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListEnvironments() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ListEnvironmentsRequest request =
           ListEnvironmentsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/AsyncListInstances.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/AsyncListInstances.java
index aec73d28..e4ab269e 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/AsyncListInstances.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/AsyncListInstances.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListInstances() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ListInstancesRequest request =
           ListInstancesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/AsyncListInstancesPaged.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/AsyncListInstancesPaged.java
index 0ce8e20f..68eb90d6 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/AsyncListInstancesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/AsyncListInstancesPaged.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListInstancesPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ListInstancesRequest request =
           ListInstancesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/SyncListInstances.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/SyncListInstances.java
index f1fd4ecd..36d9fea6 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/SyncListInstances.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/listinstances/SyncListInstances.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListInstances() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ListInstancesRequest request =
           ListInstancesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/AsyncRegisterInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/AsyncRegisterInstance.java
index 8a6d4e6b..79739322 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/AsyncRegisterInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/AsyncRegisterInstance.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncRegisterInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       RegisterInstanceRequest request =
           RegisterInstanceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/AsyncRegisterInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/AsyncRegisterInstanceLRO.java
index f9380e7c..d323a2f4 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/AsyncRegisterInstanceLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/AsyncRegisterInstanceLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncRegisterInstanceLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       RegisterInstanceRequest request =
           RegisterInstanceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/SyncRegisterInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/SyncRegisterInstance.java
index 1fdcd39a..6347572c 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/SyncRegisterInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/registerinstance/SyncRegisterInstance.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRegisterInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       RegisterInstanceRequest request =
           RegisterInstanceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfo.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfo.java
index 15872560..cab4e7d1 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfo.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfo.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncReportInstanceInfo() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ReportInstanceInfoRequest request =
           ReportInstanceInfoRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfoLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfoLRO.java
index 1c480e7c..78f9e400 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfoLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/AsyncReportInstanceInfoLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncReportInstanceInfoLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ReportInstanceInfoRequest request =
           ReportInstanceInfoRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/SyncReportInstanceInfo.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/SyncReportInstanceInfo.java
index 52a5761b..ed3d6007 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/SyncReportInstanceInfo.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/reportinstanceinfo/SyncReportInstanceInfo.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncReportInstanceInfo() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ReportInstanceInfoRequest request =
           ReportInstanceInfoRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/AsyncResetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/AsyncResetInstance.java
index 1d28c6c9..4f91abe4 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/AsyncResetInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/AsyncResetInstance.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncResetInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ResetInstanceRequest request =
           ResetInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/AsyncResetInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/AsyncResetInstanceLRO.java
index 264670a2..09dec35e 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/AsyncResetInstanceLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/AsyncResetInstanceLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncResetInstanceLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ResetInstanceRequest request =
           ResetInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/SyncResetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/SyncResetInstance.java
index bb7c7b29..2fea1c0e 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/SyncResetInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/resetinstance/SyncResetInstance.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResetInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       ResetInstanceRequest request =
           ResetInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAccelerator.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAccelerator.java
index d2b43d15..35a3f175 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAccelerator.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAccelerator.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetInstanceAccelerator() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       SetInstanceAcceleratorRequest request =
           SetInstanceAcceleratorRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java
index a737fb99..b155d9a9 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetInstanceAcceleratorLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       SetInstanceAcceleratorRequest request =
           SetInstanceAcceleratorRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/SyncSetInstanceAccelerator.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/SyncSetInstanceAccelerator.java
index 67f56450..9d532fb3 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/SyncSetInstanceAccelerator.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstanceaccelerator/SyncSetInstanceAccelerator.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetInstanceAccelerator() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       SetInstanceAcceleratorRequest request =
           SetInstanceAcceleratorRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabels.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabels.java
index ff0c414d..8eeb3b52 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabels.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabels.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetInstanceLabels() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       SetInstanceLabelsRequest request =
           SetInstanceLabelsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabelsLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabelsLRO.java
index f2721ee6..bce1b0fc 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabelsLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/AsyncSetInstanceLabelsLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetInstanceLabelsLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       SetInstanceLabelsRequest request =
           SetInstanceLabelsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/SyncSetInstanceLabels.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/SyncSetInstanceLabels.java
index 3a9210be..d2ce0ad4 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/SyncSetInstanceLabels.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancelabels/SyncSetInstanceLabels.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetInstanceLabels() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       SetInstanceLabelsRequest request =
           SetInstanceLabelsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineType.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineType.java
index 1d8d3016..316c2a44 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineType.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineType.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetInstanceMachineType() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       SetInstanceMachineTypeRequest request =
           SetInstanceMachineTypeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java
index 3c28d258..4aa25cbd 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetInstanceMachineTypeLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       SetInstanceMachineTypeRequest request =
           SetInstanceMachineTypeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/SyncSetInstanceMachineType.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/SyncSetInstanceMachineType.java
index b8cd5998..d1d3024c 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/SyncSetInstanceMachineType.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/setinstancemachinetype/SyncSetInstanceMachineType.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetInstanceMachineType() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       SetInstanceMachineTypeRequest request =
           SetInstanceMachineTypeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/AsyncStartInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/AsyncStartInstance.java
index d656fb60..b4b96282 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/AsyncStartInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/AsyncStartInstance.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStartInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       StartInstanceRequest request =
           StartInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/AsyncStartInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/AsyncStartInstanceLRO.java
index b6913337..29638546 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/AsyncStartInstanceLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/AsyncStartInstanceLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStartInstanceLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       StartInstanceRequest request =
           StartInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/SyncStartInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/SyncStartInstance.java
index ddeb2700..90939e4c 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/SyncStartInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/startinstance/SyncStartInstance.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncStartInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       StartInstanceRequest request =
           StartInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/AsyncStopInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/AsyncStopInstance.java
index de657651..23907a5c 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/AsyncStopInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/AsyncStopInstance.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStopInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build();
       ApiFuture future =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/AsyncStopInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/AsyncStopInstanceLRO.java
index 542a66eb..dda5df4a 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/AsyncStopInstanceLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/AsyncStopInstanceLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStopInstanceLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build();
       OperationFuture future =
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/SyncStopInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/SyncStopInstance.java
index 9e7818ae..844472b7 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/SyncStopInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/stopinstance/SyncStopInstance.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncStopInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       StopInstanceRequest request = StopInstanceRequest.newBuilder().setName("name3373707").build();
       Instance response = notebookServiceClient.stopInstanceAsync(request).get();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstance.java
index 719099ac..60569e09 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstance.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpgradeInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpgradeInstanceRequest request =
           UpgradeInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstanceLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstanceLRO.java
index 5a4d0112..5c98302b 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstanceLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/AsyncUpgradeInstanceLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpgradeInstanceLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpgradeInstanceRequest request =
           UpgradeInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/SyncUpgradeInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/SyncUpgradeInstance.java
index a4264338..412e0ae3 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/SyncUpgradeInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstance/SyncUpgradeInstance.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpgradeInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpgradeInstanceRequest request =
           UpgradeInstanceRequest.newBuilder().setName("name3373707").build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java
index 4634002f..bbfafa23 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpgradeInstanceInternal() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpgradeInstanceInternalRequest request =
           UpgradeInstanceInternalRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java
index 9e564cee..2cf1045d 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpgradeInstanceInternalLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpgradeInstanceInternalRequest request =
           UpgradeInstanceInternalRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java
index 4da43024..160e0657 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookserviceclient/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpgradeInstanceInternal() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
       UpgradeInstanceInternalRequest request =
           UpgradeInstanceInternalRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservicesettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservicesettings/getinstance/SyncGetInstance.java
index c8264e3a..ba0106b7 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservicesettings/getinstance/SyncGetInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservicesettings/getinstance/SyncGetInstance.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     NotebookServiceSettings.Builder notebookServiceSettingsBuilder =
         NotebookServiceSettings.newBuilder();
     notebookServiceSettingsBuilder
         .getInstanceSettings()
         .setRetrySettings(
-            notebookServiceSettingsBuilder
-                .getInstanceSettings()
-                .getRetrySettings()
-                .toBuilder()
+            notebookServiceSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     NotebookServiceSettings notebookServiceSettings = notebookServiceSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java
index 2321fc39..7ff41fa5 100644
--- a/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java
+++ b/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetInstance() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     NotebookServiceStubSettings.Builder notebookServiceSettingsBuilder =
         NotebookServiceStubSettings.newBuilder();
     notebookServiceSettingsBuilder
         .getInstanceSettings()
         .setRetrySettings(
-            notebookServiceSettingsBuilder
-                .getInstanceSettings()
-                .getRetrySettings()
-                .toBuilder()
+            notebookServiceSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     NotebookServiceStubSettings notebookServiceSettings = notebookServiceSettingsBuilder.build();

From 171bed914424b1c8c8a63e3f7aa460ae247dc32b Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Fri, 9 Sep 2022 18:44:22 +0200
Subject: [PATCH 06/15] deps: update dependency
 com.google.cloud:google-cloud-shared-dependencies to v3.0.2 (#417)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.1` -> `3.0.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/compatibility-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/confidence-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

googleapis/java-shared-dependencies ### [`v3.0.2`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​302-httpsgithubcomgoogleapisjava-shared-dependenciescomparev301v302-2022-09-08) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.1...v3.0.2) ##### Dependencies - Update dependency com.fasterxml.jackson:jackson-bom to v2.13.4 ([#​789](https://togithub.com/googleapis/java-shared-dependencies/issues/789)) ([6cf91a9](https://togithub.com/googleapis/java-shared-dependencies/commit/6cf91a96b9ea6af0fb845b50582dac7aa2892cab)) - Update dependency com.google.auth:google-auth-library-bom to v1.10.0 ([#​781](https://togithub.com/googleapis/java-shared-dependencies/issues/781)) ([8859e61](https://togithub.com/googleapis/java-shared-dependencies/commit/8859e61808bfc5cd9546e27e945fc855b36d2554)) - Update dependency com.google.auth:google-auth-library-bom to v1.11.0 ([#​790](https://togithub.com/googleapis/java-shared-dependencies/issues/790)) ([3431a47](https://togithub.com/googleapis/java-shared-dependencies/commit/3431a471cbf874a67a4f1a42e31f0ed891dedc92)) - Update dependency com.google.auth:google-auth-library-bom to v1.9.0 ([#​773](https://togithub.com/googleapis/java-shared-dependencies/issues/773)) ([27fc79f](https://togithub.com/googleapis/java-shared-dependencies/commit/27fc79f00ee70011df6a368bb8fcfad7f0ce41f0)) - Update dependency com.google.errorprone:error_prone_annotations to v2.15.0 ([#​776](https://togithub.com/googleapis/java-shared-dependencies/issues/776)) ([bf333b8](https://togithub.com/googleapis/java-shared-dependencies/commit/bf333b8c88072d21cb959db4d3328bbb55d9ef5c)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.5 ([#​780](https://togithub.com/googleapis/java-shared-dependencies/issues/780)) ([da7f44d](https://togithub.com/googleapis/java-shared-dependencies/commit/da7f44d71d6d7f372b5313dab68ce220308614d4)) - Update dependency io.grpc:grpc-bom to v1.48.1 ([#​768](https://togithub.com/googleapis/java-shared-dependencies/issues/768)) ([5c7768d](https://togithub.com/googleapis/java-shared-dependencies/commit/5c7768d3c9665dd356de6c39c0a6a5fa6e992f2e)) - Update dependency io.grpc:grpc-bom to v1.49.0 ([#​786](https://togithub.com/googleapis/java-shared-dependencies/issues/786)) ([8734812](https://togithub.com/googleapis/java-shared-dependencies/commit/8734812f1b4e2faaa48caf41eff59a85892ae344)) - Update dependency org.checkerframework:checker-qual to v3.24.0 ([#​775](https://togithub.com/googleapis/java-shared-dependencies/issues/775)) ([df74b7b](https://togithub.com/googleapis/java-shared-dependencies/commit/df74b7b0dd5dd592523f302d9fb36adb5991cb0b)) - Update dependency org.checkerframework:checker-qual to v3.25.0 ([#​788](https://togithub.com/googleapis/java-shared-dependencies/issues/788)) ([207035b](https://togithub.com/googleapis/java-shared-dependencies/commit/207035bd04c9305899eea540acbefaf06a7b1ec9)) - Update dependency org.threeten:threetenbp to v1.6.1 ([#​782](https://togithub.com/googleapis/java-shared-dependencies/issues/782)) ([0f218ae](https://togithub.com/googleapis/java-shared-dependencies/commit/0f218aeb6aa33cf1da4a8b1d6c82bbf87946dab9)) - Update gax.version to v2.19.0 ([#​785](https://togithub.com/googleapis/java-shared-dependencies/issues/785)) ([4448331](https://togithub.com/googleapis/java-shared-dependencies/commit/4448331c4c6d88ea8076260776d1d47d24aa19fa)) - Update google.core.version to v2.8.10 ([#​787](https://togithub.com/googleapis/java-shared-dependencies/issues/787)) ([3c344d5](https://togithub.com/googleapis/java-shared-dependencies/commit/3c344d515e3b9215db5a1f8ef550d800d974e558)) - Update google.core.version to v2.8.7 ([#​774](https://togithub.com/googleapis/java-shared-dependencies/issues/774)) ([d0cd5e8](https://togithub.com/googleapis/java-shared-dependencies/commit/d0cd5e8f6ca88787fe0dbf7f30c849cb4c4fae5e)) - Update google.core.version to v2.8.8 ([#​777](https://togithub.com/googleapis/java-shared-dependencies/issues/777)) ([f00571c](https://togithub.com/googleapis/java-shared-dependencies/commit/f00571cd1e9f1c4e011fba4a1e1674c1d8d60200)) - Update google.core.version to v2.8.9 ([#​784](https://togithub.com/googleapis/java-shared-dependencies/issues/784)) ([aa8e505](https://togithub.com/googleapis/java-shared-dependencies/commit/aa8e505dbb1214b2239e55d5ac83b00c167d77e4))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-notebooks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c9b2b2e2..41ab030f 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.1 + 3.0.2 pom import From 60f5e9535dfdf48432ac095809f262ed32889e96 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 15 Sep 2022 14:34:12 +0200 Subject: [PATCH 07/15] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 (#420) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.2` -> `3.0.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/compatibility-slim/3.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/confidence-slim/3.0.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v3.0.3`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​303-httpsgithubcomgoogleapisjava-shared-dependenciescomparev302v303-2022-09-14) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.2...v3.0.3) ##### Dependencies - Google-cloud-core 2.8.12 ([#​799](https://togithub.com/googleapis/java-shared-dependencies/issues/799)) ([1b3db8d](https://togithub.com/googleapis/java-shared-dependencies/commit/1b3db8d1e17c49ebae79fc96164fa9058e1df6e3)) - Moving gson to first-party-dependencies ([#​800](https://togithub.com/googleapis/java-shared-dependencies/issues/800)) ([a41fcc1](https://togithub.com/googleapis/java-shared-dependencies/commit/a41fcc11d32e02e5af2837561792e3919f6d4b3f)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.6 ([#​797](https://togithub.com/googleapis/java-shared-dependencies/issues/797)) ([bc5fdc9](https://togithub.com/googleapis/java-shared-dependencies/commit/bc5fdc9b3af7973c28f063a9ac156fe2af562814)) - Update gax.version to v2.19.1 ([#​798](https://togithub.com/googleapis/java-shared-dependencies/issues/798)) ([84e5487](https://togithub.com/googleapis/java-shared-dependencies/commit/84e5487b2e3dce4bb60badecebde788c3cb702b8)) - Update google.core.version to v2.8.11 ([#​793](https://togithub.com/googleapis/java-shared-dependencies/issues/793)) ([63c1297](https://togithub.com/googleapis/java-shared-dependencies/commit/63c129722aa0b821031ff5b4c11004adf7b12044))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-notebooks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 41ab030f..c98f439e 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.2 + 3.0.3 pom import From 42df4f1d6bacdc3da71a76b6b1976e90ab756164 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 20 Sep 2022 14:28:19 +0000 Subject: [PATCH 08/15] chore: Generated snippets should not be owned by samples reviewers (#1575) (#418) Source-Link: https://github.com/googleapis/synthtool/commit/2e9ac19d5b8181af77cdc5337cf922517813cc49 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93 --- .github/.OwlBot.lock.yaml | 3 +-- .github/CODEOWNERS | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 3cf4942f..62592923 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:b2e8f445ca0e605d4bbefbfdbdf7335692d75cf1647af62243828dcc0ea4e690 -# created: 2022-07-14T21:08:10.768472192Z \ No newline at end of file + digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93 diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 30fdb7b9..db2d8ad1 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -8,3 +8,6 @@ # The java-samples-reviewers team is the default owner for samples changes samples/**/*.java @googleapis/java-samples-reviewers + +# Generated snippets should not be owned by samples reviewers +samples/snippets/generated/ @googleapis/yoshi-java From f6e28dc3078f75d85069aae9dba3e3bc6b662f83 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 26 Sep 2022 21:52:22 +0000 Subject: [PATCH 09/15] chore: pin versions of dependencies for compatibility with Python 3.6 (#1588) (#421) * chore: pin versions of dependencies for compatibility with Python 3.6 * fix path of requirements file in synthtool Source-Link: https://github.com/googleapis/synthtool/commit/69cdb47824170d0b02bf694649ce66613c889040 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:6566dc8226f20993af18e5a4e7a2b1ba85a292b02dedb6a1634cf10e1b418fa5 --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/release/publish_javadoc.sh | 2 +- .kokoro/release/publish_javadoc11.sh | 2 +- .kokoro/release/stage.sh | 3 +- .kokoro/requirements.in | 31 ++ .kokoro/requirements.txt | 452 +++++++++++++++++++++++++++ 6 files changed, 488 insertions(+), 4 deletions(-) create mode 100644 .kokoro/requirements.in create mode 100644 .kokoro/requirements.txt diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 62592923..791e842d 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93 + digest: sha256:6566dc8226f20993af18e5a4e7a2b1ba85a292b02dedb6a1634cf10e1b418fa5 diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index 7f4fcb5f..cfccca5a 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -28,7 +28,7 @@ fi pushd $(dirname "$0")/../../ # install docuploader package -python3 -m pip install gcp-docuploader +python3 -m pip install --require-hashes -r .kokoro/requirements.txt # compile all packages mvn clean install -B -q -DskipTests=true diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index 3765b210..1ac26317 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -28,7 +28,7 @@ fi pushd $(dirname "$0")/../../ # install docuploader package -python3 -m pip install gcp-docuploader +python3 -m pip install --require-hashes -r .kokoro/requirements.txt # compile all packages mvn clean install -B -q -DskipTests=true diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh index 1dba8de1..61e714d6 100755 --- a/.kokoro/release/stage.sh +++ b/.kokoro/release/stage.sh @@ -16,7 +16,8 @@ set -eo pipefail # Start the releasetool reporter -python3 -m pip install gcp-releasetool +requirementsFile=$(realpath $(dirname "${BASH_SOURCE[0]}")/../requirements.txt) +python3 -m pip install --require-hashes -r $requirementsFile python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script source $(dirname "$0")/common.sh diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in new file mode 100644 index 00000000..cfdc2e7e --- /dev/null +++ b/.kokoro/requirements.in @@ -0,0 +1,31 @@ +gcp-docuploader==0.6.3 +google-crc32c==1.3.0 +googleapis-common-protos==1.56.3 +gcp-releasetool==1.8.7 +cachetools==4.2.4 +cffi==1.15.1 +jeepney==0.7.1 +jinja2==3.0.3 +markupsafe==2.0.1 +keyring==23.4.1 +packaging==21.3 +protobuf==3.19.5 +pyjwt==2.4.0 +pyparsing==3.0.9 +pycparser==2.21 +pyperclip==1.8.2 +python-dateutil==2.8.2 +requests==2.27.1 +importlib-metadata==4.8.3 +zipp==3.6.0 +google_api_core==2.8.2 +google-cloud-storage==2.0.0 +google-cloud-core==2.3.1 +typing-extensions==4.1.1 +urllib3==1.26.12 +zipp==3.6.0 +rsa==4.9 +six==1.16.0 +attrs==22.1.0 +google-auth==2.11.0 +idna==3.4 \ No newline at end of file diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt new file mode 100644 index 00000000..170f1c63 --- /dev/null +++ b/.kokoro/requirements.txt @@ -0,0 +1,452 @@ +# +# This file is autogenerated by pip-compile with python 3.10 +# To update, run: +# +# pip-compile --allow-unsafe --generate-hashes requirements.in +# +attrs==22.1.0 \ + --hash=sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6 \ + --hash=sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c + # via + # -r requirements.in + # gcp-releasetool +cachetools==4.2.4 \ + --hash=sha256:89ea6f1b638d5a73a4f9226be57ac5e4f399d22770b92355f92dcb0f7f001693 \ + --hash=sha256:92971d3cb7d2a97efff7c7bb1657f21a8f5fb309a37530537c71b1774189f2d1 + # via + # -r requirements.in + # google-auth +certifi==2022.9.14 \ + --hash=sha256:36973885b9542e6bd01dea287b2b4b3b21236307c56324fcc3f1160f2d655ed5 \ + --hash=sha256:e232343de1ab72c2aa521b625c80f699e356830fd0e2c620b465b304b17b0516 + # via requests +cffi==1.15.1 \ + --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ + --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \ + --hash=sha256:04ed324bda3cda42b9b695d51bb7d54b680b9719cfab04227cdd1e04e5de3104 \ + --hash=sha256:0e2642fe3142e4cc4af0799748233ad6da94c62a8bec3a6648bf8ee68b1c7426 \ + --hash=sha256:173379135477dc8cac4bc58f45db08ab45d228b3363adb7af79436135d028405 \ + --hash=sha256:198caafb44239b60e252492445da556afafc7d1e3ab7a1fb3f0584ef6d742375 \ + --hash=sha256:1e74c6b51a9ed6589199c787bf5f9875612ca4a8a0785fb2d4a84429badaf22a \ + --hash=sha256:2012c72d854c2d03e45d06ae57f40d78e5770d252f195b93f581acf3ba44496e \ + --hash=sha256:21157295583fe8943475029ed5abdcf71eb3911894724e360acff1d61c1d54bc \ + --hash=sha256:2470043b93ff09bf8fb1d46d1cb756ce6132c54826661a32d4e4d132e1977adf \ + --hash=sha256:285d29981935eb726a4399badae8f0ffdff4f5050eaa6d0cfc3f64b857b77185 \ + --hash=sha256:30d78fbc8ebf9c92c9b7823ee18eb92f2e6ef79b45ac84db507f52fbe3ec4497 \ + --hash=sha256:320dab6e7cb2eacdf0e658569d2575c4dad258c0fcc794f46215e1e39f90f2c3 \ + --hash=sha256:33ab79603146aace82c2427da5ca6e58f2b3f2fb5da893ceac0c42218a40be35 \ + --hash=sha256:3548db281cd7d2561c9ad9984681c95f7b0e38881201e157833a2342c30d5e8c \ + --hash=sha256:3799aecf2e17cf585d977b780ce79ff0dc9b78d799fc694221ce814c2c19db83 \ + --hash=sha256:39d39875251ca8f612b6f33e6b1195af86d1b3e60086068be9cc053aa4376e21 \ + --hash=sha256:3b926aa83d1edb5aa5b427b4053dc420ec295a08e40911296b9eb1b6170f6cca \ + --hash=sha256:3bcde07039e586f91b45c88f8583ea7cf7a0770df3a1649627bf598332cb6984 \ + --hash=sha256:3d08afd128ddaa624a48cf2b859afef385b720bb4b43df214f85616922e6a5ac \ + --hash=sha256:3eb6971dcff08619f8d91607cfc726518b6fa2a9eba42856be181c6d0d9515fd \ + --hash=sha256:40f4774f5a9d4f5e344f31a32b5096977b5d48560c5592e2f3d2c4374bd543ee \ + --hash=sha256:4289fc34b2f5316fbb762d75362931e351941fa95fa18789191b33fc4cf9504a \ + --hash=sha256:470c103ae716238bbe698d67ad020e1db9d9dba34fa5a899b5e21577e6d52ed2 \ + --hash=sha256:4f2c9f67e9821cad2e5f480bc8d83b8742896f1242dba247911072d4fa94c192 \ + --hash=sha256:50a74364d85fd319352182ef59c5c790484a336f6db772c1a9231f1c3ed0cbd7 \ + --hash=sha256:54a2db7b78338edd780e7ef7f9f6c442500fb0d41a5a4ea24fff1c929d5af585 \ + --hash=sha256:5635bd9cb9731e6d4a1132a498dd34f764034a8ce60cef4f5319c0541159392f \ + --hash=sha256:59c0b02d0a6c384d453fece7566d1c7e6b7bae4fc5874ef2ef46d56776d61c9e \ + --hash=sha256:5d598b938678ebf3c67377cdd45e09d431369c3b1a5b331058c338e201f12b27 \ + --hash=sha256:5df2768244d19ab7f60546d0c7c63ce1581f7af8b5de3eb3004b9b6fc8a9f84b \ + --hash=sha256:5ef34d190326c3b1f822a5b7a45f6c4535e2f47ed06fec77d3d799c450b2651e \ + --hash=sha256:6975a3fac6bc83c4a65c9f9fcab9e47019a11d3d2cf7f3c0d03431bf145a941e \ + --hash=sha256:6c9a799e985904922a4d207a94eae35c78ebae90e128f0c4e521ce339396be9d \ + --hash=sha256:70df4e3b545a17496c9b3f41f5115e69a4f2e77e94e1d2a8e1070bc0c38c8a3c \ + --hash=sha256:7473e861101c9e72452f9bf8acb984947aa1661a7704553a9f6e4baa5ba64415 \ + --hash=sha256:8102eaf27e1e448db915d08afa8b41d6c7ca7a04b7d73af6514df10a3e74bd82 \ + --hash=sha256:87c450779d0914f2861b8526e035c5e6da0a3199d8f1add1a665e1cbc6fc6d02 \ + --hash=sha256:8b7ee99e510d7b66cdb6c593f21c043c248537a32e0bedf02e01e9553a172314 \ + --hash=sha256:91fc98adde3d7881af9b59ed0294046f3806221863722ba7d8d120c575314325 \ + --hash=sha256:94411f22c3985acaec6f83c6df553f2dbe17b698cc7f8ae751ff2237d96b9e3c \ + --hash=sha256:98d85c6a2bef81588d9227dde12db8a7f47f639f4a17c9ae08e773aa9c697bf3 \ + --hash=sha256:9ad5db27f9cabae298d151c85cf2bad1d359a1b9c686a275df03385758e2f914 \ + --hash=sha256:a0b71b1b8fbf2b96e41c4d990244165e2c9be83d54962a9a1d118fd8657d2045 \ + --hash=sha256:a0f100c8912c114ff53e1202d0078b425bee3649ae34d7b070e9697f93c5d52d \ + --hash=sha256:a591fe9e525846e4d154205572a029f653ada1a78b93697f3b5a8f1f2bc055b9 \ + --hash=sha256:a5c84c68147988265e60416b57fc83425a78058853509c1b0629c180094904a5 \ + --hash=sha256:a66d3508133af6e8548451b25058d5812812ec3798c886bf38ed24a98216fab2 \ + --hash=sha256:a8c4917bd7ad33e8eb21e9a5bbba979b49d9a97acb3a803092cbc1133e20343c \ + --hash=sha256:b3bbeb01c2b273cca1e1e0c5df57f12dce9a4dd331b4fa1635b8bec26350bde3 \ + --hash=sha256:cba9d6b9a7d64d4bd46167096fc9d2f835e25d7e4c121fb2ddfc6528fb0413b2 \ + --hash=sha256:cc4d65aeeaa04136a12677d3dd0b1c0c94dc43abac5860ab33cceb42b801c1e8 \ + --hash=sha256:ce4bcc037df4fc5e3d184794f27bdaab018943698f4ca31630bc7f84a7b69c6d \ + --hash=sha256:cec7d9412a9102bdc577382c3929b337320c4c4c4849f2c5cdd14d7368c5562d \ + --hash=sha256:d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9 \ + --hash=sha256:d61f4695e6c866a23a21acab0509af1cdfd2c013cf256bbf5b6b5e2695827162 \ + --hash=sha256:db0fbb9c62743ce59a9ff687eb5f4afbe77e5e8403d6697f7446e5f609976f76 \ + --hash=sha256:dd86c085fae2efd48ac91dd7ccffcfc0571387fe1193d33b6394db7ef31fe2a4 \ + --hash=sha256:e00b098126fd45523dd056d2efba6c5a63b71ffe9f2bbe1a4fe1716e1d0c331e \ + --hash=sha256:e229a521186c75c8ad9490854fd8bbdd9a0c9aa3a524326b55be83b54d4e0ad9 \ + --hash=sha256:e263d77ee3dd201c3a142934a086a4450861778baaeeb45db4591ef65550b0a6 \ + --hash=sha256:ed9cb427ba5504c1dc15ede7d516b84757c3e3d7868ccc85121d9310d27eed0b \ + --hash=sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01 \ + --hash=sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0 + # via + # -r requirements.in + # cryptography +charset-normalizer==2.0.12 \ + --hash=sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597 \ + --hash=sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df + # via requests +click==8.0.4 \ + --hash=sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1 \ + --hash=sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb + # via + # gcp-docuploader + # gcp-releasetool +colorlog==6.7.0 \ + --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \ + --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5 + # via gcp-docuploader +cryptography==38.0.1 \ + --hash=sha256:0297ffc478bdd237f5ca3a7dc96fc0d315670bfa099c04dc3a4a2172008a405a \ + --hash=sha256:10d1f29d6292fc95acb597bacefd5b9e812099d75a6469004fd38ba5471a977f \ + --hash=sha256:16fa61e7481f4b77ef53991075de29fc5bacb582a1244046d2e8b4bb72ef66d0 \ + --hash=sha256:194044c6b89a2f9f169df475cc167f6157eb9151cc69af8a2a163481d45cc407 \ + --hash=sha256:1db3d807a14931fa317f96435695d9ec386be7b84b618cc61cfa5d08b0ae33d7 \ + --hash=sha256:3261725c0ef84e7592597606f6583385fed2a5ec3909f43bc475ade9729a41d6 \ + --hash=sha256:3b72c360427889b40f36dc214630e688c2fe03e16c162ef0aa41da7ab1455153 \ + --hash=sha256:3e3a2599e640927089f932295a9a247fc40a5bdf69b0484532f530471a382750 \ + --hash=sha256:3fc26e22840b77326a764ceb5f02ca2d342305fba08f002a8c1f139540cdfaad \ + --hash=sha256:5067ee7f2bce36b11d0e334abcd1ccf8c541fc0bbdaf57cdd511fdee53e879b6 \ + --hash=sha256:52e7bee800ec869b4031093875279f1ff2ed12c1e2f74923e8f49c916afd1d3b \ + --hash=sha256:64760ba5331e3f1794d0bcaabc0d0c39e8c60bf67d09c93dc0e54189dfd7cfe5 \ + --hash=sha256:765fa194a0f3372d83005ab83ab35d7c5526c4e22951e46059b8ac678b44fa5a \ + --hash=sha256:79473cf8a5cbc471979bd9378c9f425384980fcf2ab6534b18ed7d0d9843987d \ + --hash=sha256:896dd3a66959d3a5ddcfc140a53391f69ff1e8f25d93f0e2e7830c6de90ceb9d \ + --hash=sha256:89ed49784ba88c221756ff4d4755dbc03b3c8d2c5103f6d6b4f83a0fb1e85294 \ + --hash=sha256:ac7e48f7e7261207d750fa7e55eac2d45f720027d5703cd9007e9b37bbb59ac0 \ + --hash=sha256:ad7353f6ddf285aeadfaf79e5a6829110106ff8189391704c1d8801aa0bae45a \ + --hash=sha256:b0163a849b6f315bf52815e238bc2b2346604413fa7c1601eea84bcddb5fb9ac \ + --hash=sha256:b6c9b706316d7b5a137c35e14f4103e2115b088c412140fdbd5f87c73284df61 \ + --hash=sha256:c2e5856248a416767322c8668ef1845ad46ee62629266f84a8f007a317141013 \ + --hash=sha256:ca9f6784ea96b55ff41708b92c3f6aeaebde4c560308e5fbbd3173fbc466e94e \ + --hash=sha256:d1a5bd52d684e49a36582193e0b89ff267704cd4025abefb9e26803adeb3e5fb \ + --hash=sha256:d3971e2749a723e9084dd507584e2a2761f78ad2c638aa31e80bc7a15c9db4f9 \ + --hash=sha256:d4ef6cc305394ed669d4d9eebf10d3a101059bdcf2669c366ec1d14e4fb227bd \ + --hash=sha256:d9e69ae01f99abe6ad646947bba8941e896cb3aa805be2597a0400e0764b5818 + # via + # gcp-releasetool + # secretstorage +gcp-docuploader==0.6.3 \ + --hash=sha256:ba8c9d76b3bbac54b0311c503a373b00edc2dc02d6d54ea9507045adb8e870f7 \ + --hash=sha256:c0f5aaa82ce1854a386197e4e359b120ad6d4e57ae2c812fce42219a3288026b + # via -r requirements.in +gcp-releasetool==1.8.7 \ + --hash=sha256:3d2a67c9db39322194afb3b427e9cb0476ce8f2a04033695f0aeb63979fc2b37 \ + --hash=sha256:5e4d28f66e90780d77f3ecf1e9155852b0c3b13cbccb08ab07e66b2357c8da8d + # via -r requirements.in +google-api-core==2.8.2 \ + --hash=sha256:06f7244c640322b508b125903bb5701bebabce8832f85aba9335ec00b3d02edc \ + --hash=sha256:93c6a91ccac79079ac6bbf8b74ee75db970cc899278b97d53bc012f35908cf50 + # via + # -r requirements.in + # google-cloud-core + # google-cloud-storage +google-auth==2.11.0 \ + --hash=sha256:be62acaae38d0049c21ca90f27a23847245c9f161ff54ede13af2cb6afecbac9 \ + --hash=sha256:ed65ecf9f681832298e29328e1ef0a3676e3732b2e56f41532d45f70a22de0fb + # via + # -r requirements.in + # gcp-releasetool + # google-api-core + # google-cloud-core + # google-cloud-storage +google-cloud-core==2.3.1 \ + --hash=sha256:113ba4f492467d5bd442c8d724c1a25ad7384045c3178369038840ecdd19346c \ + --hash=sha256:34334359cb04187bdc80ddcf613e462dfd7a3aabbc3fe4d118517ab4b9303d53 + # via + # -r requirements.in + # google-cloud-storage +google-cloud-storage==2.0.0 \ + --hash=sha256:a57a15aead0f9dfbd4381f1bfdbe8bf89818a4bd75bab846cafcefb2db846c47 \ + --hash=sha256:ec4be60bb223a3a960f0d01697d849b86d91cad815a84915a32ed3635e93a5e7 + # via + # -r requirements.in + # gcp-docuploader +google-crc32c==1.3.0 \ + --hash=sha256:04e7c220798a72fd0f08242bc8d7a05986b2a08a0573396187fd32c1dcdd58b3 \ + --hash=sha256:05340b60bf05b574159e9bd940152a47d38af3fb43803ffe71f11d704b7696a6 \ + --hash=sha256:12674a4c3b56b706153a358eaa1018c4137a5a04635b92b4652440d3d7386206 \ + --hash=sha256:127f9cc3ac41b6a859bd9dc4321097b1a4f6aa7fdf71b4f9227b9e3ebffb4422 \ + --hash=sha256:13af315c3a0eec8bb8b8d80b8b128cb3fcd17d7e4edafc39647846345a3f003a \ + --hash=sha256:1926fd8de0acb9d15ee757175ce7242e235482a783cd4ec711cc999fc103c24e \ + --hash=sha256:226f2f9b8e128a6ca6a9af9b9e8384f7b53a801907425c9a292553a3a7218ce0 \ + --hash=sha256:276de6273eb074a35bc598f8efbc00c7869c5cf2e29c90748fccc8c898c244df \ + --hash=sha256:318f73f5484b5671f0c7f5f63741ab020a599504ed81d209b5c7129ee4667407 \ + --hash=sha256:3bbce1be3687bbfebe29abdb7631b83e6b25da3f4e1856a1611eb21854b689ea \ + --hash=sha256:42ae4781333e331a1743445931b08ebdad73e188fd554259e772556fc4937c48 \ + --hash=sha256:58be56ae0529c664cc04a9c76e68bb92b091e0194d6e3c50bea7e0f266f73713 \ + --hash=sha256:5da2c81575cc3ccf05d9830f9e8d3c70954819ca9a63828210498c0774fda1a3 \ + --hash=sha256:6311853aa2bba4064d0c28ca54e7b50c4d48e3de04f6770f6c60ebda1e975267 \ + --hash=sha256:650e2917660e696041ab3dcd7abac160b4121cd9a484c08406f24c5964099829 \ + --hash=sha256:6a4db36f9721fdf391646685ecffa404eb986cbe007a3289499020daf72e88a2 \ + --hash=sha256:779cbf1ce375b96111db98fca913c1f5ec11b1d870e529b1dc7354b2681a8c3a \ + --hash=sha256:7f6fe42536d9dcd3e2ffb9d3053f5d05221ae3bbcefbe472bdf2c71c793e3183 \ + --hash=sha256:891f712ce54e0d631370e1f4997b3f182f3368179198efc30d477c75d1f44942 \ + --hash=sha256:95c68a4b9b7828ba0428f8f7e3109c5d476ca44996ed9a5f8aac6269296e2d59 \ + --hash=sha256:96a8918a78d5d64e07c8ea4ed2bc44354e3f93f46a4866a40e8db934e4c0d74b \ + --hash=sha256:9c3cf890c3c0ecfe1510a452a165431b5831e24160c5fcf2071f0f85ca5a47cd \ + --hash=sha256:9f58099ad7affc0754ae42e6d87443299f15d739b0ce03c76f515153a5cda06c \ + --hash=sha256:a0b9e622c3b2b8d0ce32f77eba617ab0d6768b82836391e4f8f9e2074582bf02 \ + --hash=sha256:a7f9cbea4245ee36190f85fe1814e2d7b1e5f2186381b082f5d59f99b7f11328 \ + --hash=sha256:bab4aebd525218bab4ee615786c4581952eadc16b1ff031813a2fd51f0cc7b08 \ + --hash=sha256:c124b8c8779bf2d35d9b721e52d4adb41c9bfbde45e6a3f25f0820caa9aba73f \ + --hash=sha256:c9da0a39b53d2fab3e5467329ed50e951eb91386e9d0d5b12daf593973c3b168 \ + --hash=sha256:ca60076c388728d3b6ac3846842474f4250c91efbfe5afa872d3ffd69dd4b318 \ + --hash=sha256:cb6994fff247987c66a8a4e550ef374671c2b82e3c0d2115e689d21e511a652d \ + --hash=sha256:d1c1d6236feab51200272d79b3d3e0f12cf2cbb12b208c835b175a21efdb0a73 \ + --hash=sha256:dd7760a88a8d3d705ff562aa93f8445ead54f58fd482e4f9e2bafb7e177375d4 \ + --hash=sha256:dda4d8a3bb0b50f540f6ff4b6033f3a74e8bf0bd5320b70fab2c03e512a62812 \ + --hash=sha256:e0f1ff55dde0ebcfbef027edc21f71c205845585fffe30d4ec4979416613e9b3 \ + --hash=sha256:e7a539b9be7b9c00f11ef16b55486141bc2cdb0c54762f84e3c6fc091917436d \ + --hash=sha256:eb0b14523758e37802f27b7f8cd973f5f3d33be7613952c0df904b68c4842f0e \ + --hash=sha256:ed447680ff21c14aaceb6a9f99a5f639f583ccfe4ce1a5e1d48eb41c3d6b3217 \ + --hash=sha256:f52a4ad2568314ee713715b1e2d79ab55fab11e8b304fd1462ff5cccf4264b3e \ + --hash=sha256:fbd60c6aaa07c31d7754edbc2334aef50601b7f1ada67a96eb1eb57c7c72378f \ + --hash=sha256:fc28e0db232c62ca0c3600884933178f0825c99be4474cdd645e378a10588125 \ + --hash=sha256:fe31de3002e7b08eb20823b3735b97c86c5926dd0581c7710a680b418a8709d4 \ + --hash=sha256:fec221a051150eeddfdfcff162e6db92c65ecf46cb0f7bb1bf812a1520ec026b \ + --hash=sha256:ff71073ebf0e42258a42a0b34f2c09ec384977e7f6808999102eedd5b49920e3 + # via + # -r requirements.in + # google-resumable-media +google-resumable-media==2.3.3 \ + --hash=sha256:27c52620bd364d1c8116eaac4ea2afcbfb81ae9139fb3199652fcac1724bfb6c \ + --hash=sha256:5b52774ea7a829a8cdaa8bd2d4c3d4bc660c91b30857ab2668d0eb830f4ea8c5 + # via google-cloud-storage +googleapis-common-protos==1.56.3 \ + --hash=sha256:6f1369b58ed6cf3a4b7054a44ebe8d03b29c309257583a2bbdc064cd1e4a1442 \ + --hash=sha256:87955d7b3a73e6e803f2572a33179de23989ebba725e05ea42f24838b792e461 + # via + # -r requirements.in + # google-api-core +idna==3.4 \ + --hash=sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4 \ + --hash=sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2 + # via + # -r requirements.in + # requests +importlib-metadata==4.8.3 \ + --hash=sha256:65a9576a5b2d58ca44d133c42a241905cc45e34d2c06fd5ba2bafa221e5d7b5e \ + --hash=sha256:766abffff765960fcc18003801f7044eb6755ffae4521c8e8ce8e83b9c9b0668 + # via + # -r requirements.in + # keyring +jeepney==0.7.1 \ + --hash=sha256:1b5a0ea5c0e7b166b2f5895b91a08c14de8915afda4407fb5022a195224958ac \ + --hash=sha256:fa9e232dfa0c498bd0b8a3a73b8d8a31978304dcef0515adc859d4e096f96f4f + # via + # -r requirements.in + # keyring + # secretstorage +jinja2==3.0.3 \ + --hash=sha256:077ce6014f7b40d03b47d1f1ca4b0fc8328a692bd284016f806ed0eaca390ad8 \ + --hash=sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7 + # via + # -r requirements.in + # gcp-releasetool +keyring==23.4.1 \ + --hash=sha256:17e49fb0d6883c2b4445359434dba95aad84aabb29bbff044ad0ed7100232eca \ + --hash=sha256:89cbd74d4683ed164c8082fb38619341097741323b3786905c6dac04d6915a55 + # via + # -r requirements.in + # gcp-releasetool +markupsafe==2.0.1 \ + --hash=sha256:01a9b8ea66f1658938f65b93a85ebe8bc016e6769611be228d797c9d998dd298 \ + --hash=sha256:023cb26ec21ece8dc3907c0e8320058b2e0cb3c55cf9564da612bc325bed5e64 \ + --hash=sha256:0446679737af14f45767963a1a9ef7620189912317d095f2d9ffa183a4d25d2b \ + --hash=sha256:04635854b943835a6ea959e948d19dcd311762c5c0c6e1f0e16ee57022669194 \ + --hash=sha256:0717a7390a68be14b8c793ba258e075c6f4ca819f15edfc2a3a027c823718567 \ + --hash=sha256:0955295dd5eec6cb6cc2fe1698f4c6d84af2e92de33fbcac4111913cd100a6ff \ + --hash=sha256:0d4b31cc67ab36e3392bbf3862cfbadac3db12bdd8b02a2731f509ed5b829724 \ + --hash=sha256:10f82115e21dc0dfec9ab5c0223652f7197feb168c940f3ef61563fc2d6beb74 \ + --hash=sha256:168cd0a3642de83558a5153c8bd34f175a9a6e7f6dc6384b9655d2697312a646 \ + --hash=sha256:1d609f577dc6e1aa17d746f8bd3c31aa4d258f4070d61b2aa5c4166c1539de35 \ + --hash=sha256:1f2ade76b9903f39aa442b4aadd2177decb66525062db244b35d71d0ee8599b6 \ + --hash=sha256:20dca64a3ef2d6e4d5d615a3fd418ad3bde77a47ec8a23d984a12b5b4c74491a \ + --hash=sha256:2a7d351cbd8cfeb19ca00de495e224dea7e7d919659c2841bbb7f420ad03e2d6 \ + --hash=sha256:2d7d807855b419fc2ed3e631034685db6079889a1f01d5d9dac950f764da3dad \ + --hash=sha256:2ef54abee730b502252bcdf31b10dacb0a416229b72c18b19e24a4509f273d26 \ + --hash=sha256:36bc903cbb393720fad60fc28c10de6acf10dc6cc883f3e24ee4012371399a38 \ + --hash=sha256:37205cac2a79194e3750b0af2a5720d95f786a55ce7df90c3af697bfa100eaac \ + --hash=sha256:3c112550557578c26af18a1ccc9e090bfe03832ae994343cfdacd287db6a6ae7 \ + --hash=sha256:3dd007d54ee88b46be476e293f48c85048603f5f516008bee124ddd891398ed6 \ + --hash=sha256:4296f2b1ce8c86a6aea78613c34bb1a672ea0e3de9c6ba08a960efe0b0a09047 \ + --hash=sha256:47ab1e7b91c098ab893b828deafa1203de86d0bc6ab587b160f78fe6c4011f75 \ + --hash=sha256:49e3ceeabbfb9d66c3aef5af3a60cc43b85c33df25ce03d0031a608b0a8b2e3f \ + --hash=sha256:4dc8f9fb58f7364b63fd9f85013b780ef83c11857ae79f2feda41e270468dd9b \ + --hash=sha256:4efca8f86c54b22348a5467704e3fec767b2db12fc39c6d963168ab1d3fc9135 \ + --hash=sha256:53edb4da6925ad13c07b6d26c2a852bd81e364f95301c66e930ab2aef5b5ddd8 \ + --hash=sha256:5855f8438a7d1d458206a2466bf82b0f104a3724bf96a1c781ab731e4201731a \ + --hash=sha256:594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a \ + --hash=sha256:5b6d930f030f8ed98e3e6c98ffa0652bdb82601e7a016ec2ab5d7ff23baa78d1 \ + --hash=sha256:5bb28c636d87e840583ee3adeb78172efc47c8b26127267f54a9c0ec251d41a9 \ + --hash=sha256:60bf42e36abfaf9aff1f50f52644b336d4f0a3fd6d8a60ca0d054ac9f713a864 \ + --hash=sha256:611d1ad9a4288cf3e3c16014564df047fe08410e628f89805e475368bd304914 \ + --hash=sha256:6300b8454aa6930a24b9618fbb54b5a68135092bc666f7b06901f897fa5c2fee \ + --hash=sha256:63f3268ba69ace99cab4e3e3b5840b03340efed0948ab8f78d2fd87ee5442a4f \ + --hash=sha256:6557b31b5e2c9ddf0de32a691f2312a32f77cd7681d8af66c2692efdbef84c18 \ + --hash=sha256:693ce3f9e70a6cf7d2fb9e6c9d8b204b6b39897a2c4a1aa65728d5ac97dcc1d8 \ + --hash=sha256:6a7fae0dd14cf60ad5ff42baa2e95727c3d81ded453457771d02b7d2b3f9c0c2 \ + --hash=sha256:6c4ca60fa24e85fe25b912b01e62cb969d69a23a5d5867682dd3e80b5b02581d \ + --hash=sha256:6fcf051089389abe060c9cd7caa212c707e58153afa2c649f00346ce6d260f1b \ + --hash=sha256:7d91275b0245b1da4d4cfa07e0faedd5b0812efc15b702576d103293e252af1b \ + --hash=sha256:89c687013cb1cd489a0f0ac24febe8c7a666e6e221b783e53ac50ebf68e45d86 \ + --hash=sha256:8d206346619592c6200148b01a2142798c989edcb9c896f9ac9722a99d4e77e6 \ + --hash=sha256:905fec760bd2fa1388bb5b489ee8ee5f7291d692638ea5f67982d968366bef9f \ + --hash=sha256:97383d78eb34da7e1fa37dd273c20ad4320929af65d156e35a5e2d89566d9dfb \ + --hash=sha256:984d76483eb32f1bcb536dc27e4ad56bba4baa70be32fa87152832cdd9db0833 \ + --hash=sha256:99df47edb6bda1249d3e80fdabb1dab8c08ef3975f69aed437cb69d0a5de1e28 \ + --hash=sha256:9f02365d4e99430a12647f09b6cc8bab61a6564363f313126f775eb4f6ef798e \ + --hash=sha256:a30e67a65b53ea0a5e62fe23682cfe22712e01f453b95233b25502f7c61cb415 \ + --hash=sha256:ab3ef638ace319fa26553db0624c4699e31a28bb2a835c5faca8f8acf6a5a902 \ + --hash=sha256:aca6377c0cb8a8253e493c6b451565ac77e98c2951c45f913e0b52facdcff83f \ + --hash=sha256:add36cb2dbb8b736611303cd3bfcee00afd96471b09cda130da3581cbdc56a6d \ + --hash=sha256:b2f4bf27480f5e5e8ce285a8c8fd176c0b03e93dcc6646477d4630e83440c6a9 \ + --hash=sha256:b7f2d075102dc8c794cbde1947378051c4e5180d52d276987b8d28a3bd58c17d \ + --hash=sha256:baa1a4e8f868845af802979fcdbf0bb11f94f1cb7ced4c4b8a351bb60d108145 \ + --hash=sha256:be98f628055368795d818ebf93da628541e10b75b41c559fdf36d104c5787066 \ + --hash=sha256:bf5d821ffabf0ef3533c39c518f3357b171a1651c1ff6827325e4489b0e46c3c \ + --hash=sha256:c47adbc92fc1bb2b3274c4b3a43ae0e4573d9fbff4f54cd484555edbf030baf1 \ + --hash=sha256:cdfba22ea2f0029c9261a4bd07e830a8da012291fbe44dc794e488b6c9bb353a \ + --hash=sha256:d6c7ebd4e944c85e2c3421e612a7057a2f48d478d79e61800d81468a8d842207 \ + --hash=sha256:d7f9850398e85aba693bb640262d3611788b1f29a79f0c93c565694658f4071f \ + --hash=sha256:d8446c54dc28c01e5a2dbac5a25f071f6653e6e40f3a8818e8b45d790fe6ef53 \ + --hash=sha256:deb993cacb280823246a026e3b2d81c493c53de6acfd5e6bfe31ab3402bb37dd \ + --hash=sha256:e0f138900af21926a02425cf736db95be9f4af72ba1bb21453432a07f6082134 \ + --hash=sha256:e9936f0b261d4df76ad22f8fee3ae83b60d7c3e871292cd42f40b81b70afae85 \ + --hash=sha256:f0567c4dc99f264f49fe27da5f735f414c4e7e7dd850cfd8e69f0862d7c74ea9 \ + --hash=sha256:f5653a225f31e113b152e56f154ccbe59eeb1c7487b39b9d9f9cdb58e6c79dc5 \ + --hash=sha256:f826e31d18b516f653fe296d967d700fddad5901ae07c622bb3705955e1faa94 \ + --hash=sha256:f8ba0e8349a38d3001fae7eadded3f6606f0da5d748ee53cc1dab1d6527b9509 \ + --hash=sha256:f9081981fe268bd86831e5c75f7de206ef275defcb82bc70740ae6dc507aee51 \ + --hash=sha256:fa130dd50c57d53368c9d59395cb5526eda596d3ffe36666cd81a44d56e48872 + # via + # -r requirements.in + # jinja2 +packaging==21.3 \ + --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ + --hash=sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522 + # via + # -r requirements.in + # gcp-releasetool +protobuf==3.19.5 \ + --hash=sha256:1867f93b06a183f87696871bb8d1e99ee71dbb69d468ce1f0cc8bf3d30f982f3 \ + --hash=sha256:3c4160b601220627f7e91154e572baf5e161a9c3f445a8242d536ee3d0b7b17c \ + --hash=sha256:4ee2af7051d3b10c8a4fe6fd1a2c69f201fea36aeee7086cf202a692e1b99ee1 \ + --hash=sha256:5266c36cc0af3bb3dbf44f199d225b33da66a9a5c3bdc2b14865ad10eddf0e37 \ + --hash=sha256:5470f892961af464ae6eaf0f3099e2c1190ae8c7f36f174b89491281341f79ca \ + --hash=sha256:66d14b5b90090353efe75c9fb1bf65ef7267383034688d255b500822e37d5c2f \ + --hash=sha256:67efb5d20618020aa9596e17bfc37ca068c28ec0c1507d9507f73c93d46c9855 \ + --hash=sha256:696e6cfab94cc15a14946f2bf72719dced087d437adbd994fff34f38986628bc \ + --hash=sha256:6a02172b9650f819d01fb8e224fc69b0706458fc1ab4f1c669281243c71c1a5e \ + --hash=sha256:6eca9ae238ba615d702387a2ddea635d535d769994a9968c09a4ca920c487ab9 \ + --hash=sha256:950abd6c00e7b51f87ae8b18a0ce4d69fea217f62f171426e77de5061f6d9850 \ + --hash=sha256:9e1d74032f56ff25f417cfe84c8147047732e5059137ca42efad20cbbd25f5e0 \ + --hash=sha256:9e42b1cf2ecd8a1bd161239e693f22035ba99905ae6d7efeac8a0546c7ec1a27 \ + --hash=sha256:9f957ef53e872d58a0afd3bf6d80d48535d28c99b40e75e6634cbc33ea42fd54 \ + --hash=sha256:a89aa0c042e61e11ade320b802d6db4ee5391d8d973e46d3a48172c1597789f8 \ + --hash=sha256:c0f80876a8ff0ae7064084ed094eb86497bd5a3812e6fc96a05318b92301674e \ + --hash=sha256:c44e3282cff74ad18c7e8a0375f407f69ee50c2116364b44492a196293e08b21 \ + --hash=sha256:d249519ba5ecf5dd6b18150c9b6bcde510b273714b696f3923ff8308fc11ae49 \ + --hash=sha256:d3973a2d58aefc7d1230725c2447ce7f86a71cbc094b86a77c6ee1505ac7cdb1 \ + --hash=sha256:dca2284378a5f2a86ffed35c6ac147d14c48b525eefcd1083e5a9ce28dfa8657 \ + --hash=sha256:e63b0b3c42e51c94add62b010366cd4979cb6d5f06158bcae8faac4c294f91e1 \ + --hash=sha256:f2b599a21c9a32e171ec29a2ac54e03297736c578698e11b099d031f79da114b \ + --hash=sha256:f2bde37667b18c2b5280df83bc799204394a5d2d774e4deaf9de0eb741df6833 \ + --hash=sha256:f4f909f4dde413dec435a44b0894956d55bb928ded7d6e3c726556ca4c796e84 \ + --hash=sha256:f976234e20ab2785f54224bcdafa027674e23663b132fa3ca0caa291a6cfbde7 \ + --hash=sha256:f9cebda093c2f6bfed88f1c17cdade09d4d96096421b344026feee236532d4de + # via + # -r requirements.in + # gcp-docuploader + # gcp-releasetool + # google-api-core + # google-cloud-storage + # googleapis-common-protos +pyasn1==0.4.8 \ + --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ + --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba + # via + # pyasn1-modules + # rsa +pyasn1-modules==0.2.8 \ + --hash=sha256:905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e \ + --hash=sha256:a50b808ffeb97cb3601dd25981f6b016cbb3d31fbf57a8b8a87428e6158d0c74 + # via google-auth +pycparser==2.21 \ + --hash=sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9 \ + --hash=sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206 + # via + # -r requirements.in + # cffi +pyjwt==2.4.0 \ + --hash=sha256:72d1d253f32dbd4f5c88eaf1fdc62f3a19f676ccbadb9dbc5d07e951b2b26daf \ + --hash=sha256:d42908208c699b3b973cbeb01a969ba6a96c821eefb1c5bfe4c390c01d67abba + # via + # -r requirements.in + # gcp-releasetool +pyparsing==3.0.9 \ + --hash=sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb \ + --hash=sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc + # via + # -r requirements.in + # packaging +pyperclip==1.8.2 \ + --hash=sha256:105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57 + # via + # -r requirements.in + # gcp-releasetool +python-dateutil==2.8.2 \ + --hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \ + --hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9 + # via + # -r requirements.in + # gcp-releasetool +requests==2.27.1 \ + --hash=sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61 \ + --hash=sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d + # via + # -r requirements.in + # gcp-releasetool + # google-api-core + # google-cloud-storage +rsa==4.9 \ + --hash=sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7 \ + --hash=sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21 + # via + # -r requirements.in + # google-auth +secretstorage==3.3.3 \ + --hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \ + --hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99 + # via keyring +six==1.16.0 \ + --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \ + --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 + # via + # -r requirements.in + # gcp-docuploader + # google-auth + # python-dateutil +typing-extensions==4.1.1 \ + --hash=sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42 \ + --hash=sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2 + # via -r requirements.in +urllib3==1.26.12 \ + --hash=sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e \ + --hash=sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997 + # via + # -r requirements.in + # requests +zipp==3.6.0 \ + --hash=sha256:71c644c5369f4a6e07636f0aa966270449561fcea2e3d6747b8d23efaa9d7832 \ + --hash=sha256:9fe5ea21568a0a70e50f273397638d39b03353731e6cbbb3fd8502a33fec40bc + # via + # -r requirements.in + # importlib-metadata From 9d577ba632f819ba6f70d6bbea2d4d75926cdb34 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 28 Sep 2022 04:30:18 +0000 Subject: [PATCH 10/15] chore: exclude requirements.txt file from renovate-bot (#1594) (#422) Source-Link: https://github.com/googleapis/synthtool/commit/f58d3135a2fab20e225d98741dbc06d57459b816 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 --- .github/.OwlBot.lock.yaml | 2 +- renovate.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 791e842d..42327db5 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:6566dc8226f20993af18e5a4e7a2b1ba85a292b02dedb6a1634cf10e1b418fa5 + digest: sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 diff --git a/renovate.json b/renovate.json index 279e572c..a9970ea3 100644 --- a/renovate.json +++ b/renovate.json @@ -10,6 +10,7 @@ ":maintainLockFilesDisabled", ":autodetectPinVersions" ], + "ignorePaths": [".kokoro/requirements.txt"], "packageRules": [ { "packagePatterns": [ From e99bc2010818e13bad2a7d33d97d0e4181acae48 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 30 Sep 2022 16:46:20 +0200 Subject: [PATCH 11/15] deps: update dependency charset-normalizer to v2.1.1 (#437) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [charset-normalizer](https://togithub.com/ousret/charset_normalizer) | `==2.0.12` -> `==2.1.1` | [![age](https://badges.renovateapi.com/packages/pypi/charset-normalizer/2.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/charset-normalizer/2.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/charset-normalizer/2.1.1/compatibility-slim/2.0.12)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/charset-normalizer/2.1.1/confidence-slim/2.0.12)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
ousret/charset_normalizer ### [`v2.1.1`](https://togithub.com/ousret/charset_normalizer/blob/HEAD/CHANGELOG.md#​211-httpsgithubcomOusretcharsetnormalizercompare210211-2022-08-19) [Compare Source](https://togithub.com/ousret/charset_normalizer/compare/2.1.0...2.1.1) ##### Deprecated - Function `normalize` scheduled for removal in 3.0 ##### Changed - Removed useless call to decode in fn is_unprintable ([#​206](https://togithub.com/ousret/charset_normalizer/issues/206)) ##### Fixed - Third-party library (i18n xgettext) crashing not recognizing utf\_8 (PEP 263) with underscore from [@​aleksandernovikov](https://togithub.com/aleksandernovikov) ([#​204](https://togithub.com/ousret/charset_normalizer/issues/204)) ### [`v2.1.0`](https://togithub.com/ousret/charset_normalizer/blob/HEAD/CHANGELOG.md#​210-httpsgithubcomOusretcharsetnormalizercompare2012210-2022-06-19) [Compare Source](https://togithub.com/ousret/charset_normalizer/compare/2.0.12...2.1.0) ##### Added - Output the Unicode table version when running the CLI with `--version` (PR [#​194](https://togithub.com/ousret/charset_normalizer/issues/194)) ##### Changed - Re-use decoded buffer for single byte character sets from [@​nijel](https://togithub.com/nijel) (PR [#​175](https://togithub.com/ousret/charset_normalizer/issues/175)) - Fixing some performance bottlenecks from [@​deedy5](https://togithub.com/deedy5) (PR [#​183](https://togithub.com/ousret/charset_normalizer/issues/183)) ##### Fixed - Workaround potential bug in cpython with Zero Width No-Break Space located in Arabic Presentation Forms-B, Unicode 1.1 not acknowledged as space (PR [#​175](https://togithub.com/ousret/charset_normalizer/issues/175)) - CLI default threshold aligned with the API threshold from [@​oleksandr-kuzmenko](https://togithub.com/oleksandr-kuzmenko) (PR [#​181](https://togithub.com/ousret/charset_normalizer/issues/181)) ##### Removed - Support for Python 3.5 (PR [#​192](https://togithub.com/ousret/charset_normalizer/issues/192)) ##### Deprecated - Use of backport unicodedata from `unicodedata2` as Python is quickly catching up, scheduled for removal in 3.0 (PR [#​194](https://togithub.com/ousret/charset_normalizer/issues/194))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-notebooks). From 578bc6576ad3f5f4916c7d32f1decb4e072f57f9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 3 Oct 2022 16:02:29 +0200 Subject: [PATCH 12/15] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 (#446) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.3` -> `3.0.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/compatibility-slim/3.0.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/confidence-slim/3.0.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v3.0.4`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​304-httpsgithubcomgoogleapisjava-shared-dependenciescomparev303v304-2022-10-03) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.3...v3.0.4) ##### Dependencies - Update dependency cachetools to v5 ([#​816](https://togithub.com/googleapis/java-shared-dependencies/issues/816)) ([3f6c408](https://togithub.com/googleapis/java-shared-dependencies/commit/3f6c408210c931c286235f61c7aadea5bf5cfe4d)) - Update dependency certifi to v2022.9.24 ([#​818](https://togithub.com/googleapis/java-shared-dependencies/issues/818)) ([5f04b97](https://togithub.com/googleapis/java-shared-dependencies/commit/5f04b97c2343146600e8c9ee65afdeb58f5743a6)) - Update dependency charset-normalizer to v2.1.1 ([#​822](https://togithub.com/googleapis/java-shared-dependencies/issues/822)) ([6997c5a](https://togithub.com/googleapis/java-shared-dependencies/commit/6997c5acad937ebe3594330de73261a424d42cf3)) - Update dependency click to v8.1.3 ([#​823](https://togithub.com/googleapis/java-shared-dependencies/issues/823)) ([42bf9f8](https://togithub.com/googleapis/java-shared-dependencies/commit/42bf9f834fdafea60f2be7ccbf7d363e058cd7c2)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.7 ([#​837](https://togithub.com/googleapis/java-shared-dependencies/issues/837)) ([d31e507](https://togithub.com/googleapis/java-shared-dependencies/commit/d31e5077c7e036de5e238e9a611df7ced527574a)) - Update dependency gcp-releasetool to v1.8.8 ([#​819](https://togithub.com/googleapis/java-shared-dependencies/issues/819)) ([8245d97](https://togithub.com/googleapis/java-shared-dependencies/commit/8245d975fb12e81454ec7664f9a7c9809bbac697)) - Update dependency gcp-releasetool to v1.8.9 ([#​846](https://togithub.com/googleapis/java-shared-dependencies/issues/846)) ([04e3283](https://togithub.com/googleapis/java-shared-dependencies/commit/04e32831c6e87c372444901013a747d2d02ce38d)) - Update dependency google-api-core to v2.10.1 ([#​824](https://togithub.com/googleapis/java-shared-dependencies/issues/824)) ([818b9aa](https://togithub.com/googleapis/java-shared-dependencies/commit/818b9aa2ac99d8b1f9b39a74b626122aed5f1d94)) - Update dependency google-auth to v2.12.0 ([#​825](https://togithub.com/googleapis/java-shared-dependencies/issues/825)) ([07c544b](https://togithub.com/googleapis/java-shared-dependencies/commit/07c544b5e0fa9f7110bbc957570f7a405962072e)) - Update dependency google-cloud-core to v2.3.2 ([#​820](https://togithub.com/googleapis/java-shared-dependencies/issues/820)) ([2a219e8](https://togithub.com/googleapis/java-shared-dependencies/commit/2a219e86f187ba5ad72f2570bd58ca6100128c43)) - Update dependency google-cloud-storage to v2.5.0 ([#​826](https://togithub.com/googleapis/java-shared-dependencies/issues/826)) ([bb10d18](https://togithub.com/googleapis/java-shared-dependencies/commit/bb10d1858a515f09d365362ffa0110a5b362c96b)) - Update dependency google-crc32c to v1.5.0 ([#​827](https://togithub.com/googleapis/java-shared-dependencies/issues/827)) ([7e5dae6](https://togithub.com/googleapis/java-shared-dependencies/commit/7e5dae60d667cb84b9ee4f6c977bdc35e79e4cf6)) - Update dependency google-resumable-media to v2.4.0 ([#​838](https://togithub.com/googleapis/java-shared-dependencies/issues/838)) ([ad82d63](https://togithub.com/googleapis/java-shared-dependencies/commit/ad82d6378f64039da383509638fb4782908eb4bc)) - Update dependency googleapis-common-protos to v1.56.4 ([#​821](https://togithub.com/googleapis/java-shared-dependencies/issues/821)) ([93d7745](https://togithub.com/googleapis/java-shared-dependencies/commit/93d77458c9bbf84ec367cdb4caaa41e6f71675c6)) - Update dependency importlib-metadata to v4.12.0 ([#​832](https://togithub.com/googleapis/java-shared-dependencies/issues/832)) ([ee19fb1](https://togithub.com/googleapis/java-shared-dependencies/commit/ee19fb1ca5a2a2e1985297e3b72d44de68bc72e3)) - Update dependency importlib-metadata to v4.13.0 ([#​843](https://togithub.com/googleapis/java-shared-dependencies/issues/843)) ([d2ede60](https://togithub.com/googleapis/java-shared-dependencies/commit/d2ede601eee8c875780c7eb5924623537480c509)) - Update dependency importlib-metadata to v5 ([#​845](https://togithub.com/googleapis/java-shared-dependencies/issues/845)) ([03ac7e8](https://togithub.com/googleapis/java-shared-dependencies/commit/03ac7e800274c5f58d2bc4ddd0561bfcdea1bb27)) - Update dependency io.grpc:grpc-bom to v1.49.1 ([#​802](https://togithub.com/googleapis/java-shared-dependencies/issues/802)) ([b8c54bf](https://togithub.com/googleapis/java-shared-dependencies/commit/b8c54bf8f1ddecc788cee151f8afe42de45bdc9d)) - Update dependency io.grpc:grpc-bom to v1.49.2 ([#​842](https://togithub.com/googleapis/java-shared-dependencies/issues/842)) ([1b1cfa2](https://togithub.com/googleapis/java-shared-dependencies/commit/1b1cfa27d05f7732da12721305cf41dcbebda232)) - Update dependency jeepney to v0.8.0 ([#​833](https://togithub.com/googleapis/java-shared-dependencies/issues/833)) ([15d2f9f](https://togithub.com/googleapis/java-shared-dependencies/commit/15d2f9f52b5a3259db0813df3d2424e256ccb372)) - Update dependency jinja2 to v3.1.2 ([#​834](https://togithub.com/googleapis/java-shared-dependencies/issues/834)) ([c188f95](https://togithub.com/googleapis/java-shared-dependencies/commit/c188f95acdb3349f1c4b3ed56e5fffb75e8fbc8d)) - Update dependency keyring to v23.9.3 ([#​828](https://togithub.com/googleapis/java-shared-dependencies/issues/828)) ([b185aaa](https://togithub.com/googleapis/java-shared-dependencies/commit/b185aaae716d4d97cb64f0426cac0e778f11223d)) - Update dependency markupsafe to v2.1.1 ([#​829](https://togithub.com/googleapis/java-shared-dependencies/issues/829)) ([add2825](https://togithub.com/googleapis/java-shared-dependencies/commit/add2825bd34cd80f529dbe0dadb3c84219177916)) - Update dependency org.threeten:threetenbp to v1.6.2 ([#​808](https://togithub.com/googleapis/java-shared-dependencies/issues/808)) ([2d2eabd](https://togithub.com/googleapis/java-shared-dependencies/commit/2d2eabd14d8150207885ea47280c0f7ff3d2962f)) - Update dependency protobuf to v3.20.2 ([#​830](https://togithub.com/googleapis/java-shared-dependencies/issues/830)) ([5afa76f](https://togithub.com/googleapis/java-shared-dependencies/commit/5afa76f9ef4705aecba49abc7bb93982fb1ecf3e)) - Update dependency protobuf to v3.20.3 ([#​839](https://togithub.com/googleapis/java-shared-dependencies/issues/839)) ([d9fc7dd](https://togithub.com/googleapis/java-shared-dependencies/commit/d9fc7ddd3e663458e6ea3f78a3c6241377df0319)) - Update dependency protobuf to v4 ([#​817](https://togithub.com/googleapis/java-shared-dependencies/issues/817)) ([ee8d154](https://togithub.com/googleapis/java-shared-dependencies/commit/ee8d154287ccd256b4dcfa48f28f5ec61a91fe3e)) - Update dependency pyjwt to v2.5.0 ([#​812](https://togithub.com/googleapis/java-shared-dependencies/issues/812)) ([4d4528e](https://togithub.com/googleapis/java-shared-dependencies/commit/4d4528e8ce269d49b99d2dbc4fcda2dc37a058cb)) - Update dependency requests to v2.28.1 ([#​813](https://togithub.com/googleapis/java-shared-dependencies/issues/813)) ([a3a8d89](https://togithub.com/googleapis/java-shared-dependencies/commit/a3a8d89b0117007a7108553c70aa82dd289e1691)) - Update dependency typing-extensions to v4.3.0 ([#​814](https://togithub.com/googleapis/java-shared-dependencies/issues/814)) ([da875e5](https://togithub.com/googleapis/java-shared-dependencies/commit/da875e5e91fa9d8c177e6c3afc9e34242eb914b7)) - Update dependency zipp to v3.8.1 ([#​815](https://togithub.com/googleapis/java-shared-dependencies/issues/815)) ([15585fd](https://togithub.com/googleapis/java-shared-dependencies/commit/15585fd0216013fe93be011f93f391f6269aa777)) - Update gax.version to v2.19.2 ([#​847](https://togithub.com/googleapis/java-shared-dependencies/issues/847)) ([c4afe1f](https://togithub.com/googleapis/java-shared-dependencies/commit/c4afe1fdc88af29ab039cea618d52c15c90e43e9)) - Update google.common-protos.version to v2.9.3 ([#​803](https://togithub.com/googleapis/java-shared-dependencies/issues/803)) ([a3e8e5e](https://togithub.com/googleapis/java-shared-dependencies/commit/a3e8e5eb53a8da14abf3b8d81a4f34fbb2f3b8f9)) - Update google.common-protos.version to v2.9.5 ([#​831](https://togithub.com/googleapis/java-shared-dependencies/issues/831)) ([1c901db](https://togithub.com/googleapis/java-shared-dependencies/commit/1c901db8a7740afaec3e809e51d4d369fbf469c4)) - Update google.common-protos.version to v2.9.6 ([#​844](https://togithub.com/googleapis/java-shared-dependencies/issues/844)) ([9e156be](https://togithub.com/googleapis/java-shared-dependencies/commit/9e156be59bd89959f04252c3045b8cd7a8be8070)) - Update google.core.version to v2.8.13 ([#​804](https://togithub.com/googleapis/java-shared-dependencies/issues/804)) ([45ae571](https://togithub.com/googleapis/java-shared-dependencies/commit/45ae57142bd6d5334eedd46243736b200a459795)) - Update google.core.version to v2.8.14 ([#​805](https://togithub.com/googleapis/java-shared-dependencies/issues/805)) ([02c9397](https://togithub.com/googleapis/java-shared-dependencies/commit/02c9397a84bf3fcca8d04e4c9867cc47689abde2)) - Update google.core.version to v2.8.15 ([#​807](https://togithub.com/googleapis/java-shared-dependencies/issues/807)) ([980856c](https://togithub.com/googleapis/java-shared-dependencies/commit/980856c43981992a3d08f69eac83aeada752d244)) - Update google.core.version to v2.8.16 ([#​810](https://togithub.com/googleapis/java-shared-dependencies/issues/810)) ([c2b2c9a](https://togithub.com/googleapis/java-shared-dependencies/commit/c2b2c9a327fd588f69524bb93a17e5d4ae8f5a42)) - Update google.core.version to v2.8.17 ([#​835](https://togithub.com/googleapis/java-shared-dependencies/issues/835)) ([3def21d](https://togithub.com/googleapis/java-shared-dependencies/commit/3def21df2e4253e3df0da064b6c4e472df079d2b)) - Update google.core.version to v2.8.18 ([#​840](https://togithub.com/googleapis/java-shared-dependencies/issues/840)) ([46566dc](https://togithub.com/googleapis/java-shared-dependencies/commit/46566dc18c4b1ed41c482b4ce21b92651e2f9dc5)) - Update google.core.version to v2.8.19 ([#​841](https://togithub.com/googleapis/java-shared-dependencies/issues/841)) ([99afde9](https://togithub.com/googleapis/java-shared-dependencies/commit/99afde97ea498f549eb75cc58c4ed88edf81b20d)) - Update google.core.version to v2.8.20 ([#​848](https://togithub.com/googleapis/java-shared-dependencies/issues/848)) ([c980c4f](https://togithub.com/googleapis/java-shared-dependencies/commit/c980c4fdfc8890d812b4881ba5b87bfd21269a5f)) - Update iam.version to v1.6.1 ([#​806](https://togithub.com/googleapis/java-shared-dependencies/issues/806)) ([a50158d](https://togithub.com/googleapis/java-shared-dependencies/commit/a50158d3b83cf8e02d8ee08c94e512b5669a927b)) - Update iam.version to v1.6.2 ([#​849](https://togithub.com/googleapis/java-shared-dependencies/issues/849)) ([e43ac96](https://togithub.com/googleapis/java-shared-dependencies/commit/e43ac96bc189a096a9311c9b03e85c86bea07e99))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-notebooks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c98f439e..fafb687a 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.3 + 3.0.4 pom import From 09029c3358f7673c9c7534bc02c4bfe2136bb8fb Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 3 Oct 2022 12:20:00 -0400 Subject: [PATCH 13/15] chore(bazel): update protobuf to v3.21.7 (#445) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(bazel): update protobuf to v3.21.7 PiperOrigin-RevId: 477955264 Source-Link: https://github.com/googleapis/googleapis/commit/a724450af76d0001f23602684c49cd6a4b3a5654 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4abcbcaec855e74a0b22a4988cf9e0eb61a83094 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFiY2JjYWVjODU1ZTc0YTBiMjJhNDk4OGNmOWUwZWI2MWE4MzA5NCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../cloud/notebooks/v1/ContainerImage.java | 125 +- .../v1/CreateEnvironmentRequest.java | 148 +- .../notebooks/v1/CreateExecutionRequest.java | 148 +- .../notebooks/v1/CreateInstanceRequest.java | 148 +- .../notebooks/v1/CreateRuntimeRequest.java | 161 +- .../notebooks/v1/CreateScheduleRequest.java | 148 +- .../v1/DeleteEnvironmentRequest.java | 113 +- .../notebooks/v1/DeleteExecutionRequest.java | 113 +- .../notebooks/v1/DeleteInstanceRequest.java | 113 +- .../notebooks/v1/DeleteRuntimeRequest.java | 126 +- .../notebooks/v1/DeleteScheduleRequest.java | 113 +- .../cloud/notebooks/v1/EncryptionConfig.java | 112 +- .../cloud/notebooks/v1/Environment.java | 223 +-- .../com/google/cloud/notebooks/v1/Event.java | 159 +- .../google/cloud/notebooks/v1/Execution.java | 242 +-- .../cloud/notebooks/v1/ExecutionTemplate.java | 738 +++---- .../notebooks/v1/GetEnvironmentRequest.java | 113 +- .../notebooks/v1/GetExecutionRequest.java | 113 +- .../v1/GetInstanceHealthRequest.java | 113 +- .../v1/GetInstanceHealthResponse.java | 140 +- .../notebooks/v1/GetInstanceRequest.java | 112 +- .../cloud/notebooks/v1/GetRuntimeRequest.java | 112 +- .../notebooks/v1/GetScheduleRequest.java | 112 +- .../google/cloud/notebooks/v1/Instance.java | 1697 +++++++---------- .../cloud/notebooks/v1/InstanceConfig.java | 123 +- .../v1/IsInstanceUpgradeableRequest.java | 126 +- .../v1/IsInstanceUpgradeableResponse.java | 150 +- .../notebooks/v1/ListEnvironmentsRequest.java | 137 +- .../v1/ListEnvironmentsResponse.java | 167 +- .../notebooks/v1/ListExecutionsRequest.java | 163 +- .../notebooks/v1/ListExecutionsResponse.java | 166 +- .../notebooks/v1/ListInstancesRequest.java | 137 +- .../notebooks/v1/ListInstancesResponse.java | 166 +- .../notebooks/v1/ListRuntimesRequest.java | 137 +- .../notebooks/v1/ListRuntimesResponse.java | 166 +- .../notebooks/v1/ListSchedulesRequest.java | 163 +- .../notebooks/v1/ListSchedulesResponse.java | 166 +- .../google/cloud/notebooks/v1/LocalDisk.java | 406 ++-- .../v1/LocalDiskInitializeParams.java | 175 +- .../cloud/notebooks/v1/OperationMetadata.java | 217 +-- .../RefreshRuntimeTokenInternalRequest.java | 127 +- .../RefreshRuntimeTokenInternalResponse.java | 135 +- .../notebooks/v1/RegisterInstanceRequest.java | 126 +- .../v1/ReportInstanceInfoRequest.java | 153 +- .../v1/ReportRuntimeEventRequest.java | 148 +- .../notebooks/v1/ReservationAffinity.java | 147 +- .../notebooks/v1/ResetInstanceRequest.java | 113 +- .../notebooks/v1/ResetRuntimeRequest.java | 126 +- .../notebooks/v1/RollbackInstanceRequest.java | 126 +- .../google/cloud/notebooks/v1/Runtime.java | 274 +-- .../v1/RuntimeAcceleratorConfig.java | 124 +- .../notebooks/v1/RuntimeAccessConfig.java | 139 +- .../cloud/notebooks/v1/RuntimeMetrics.java | 128 +- .../v1/RuntimeShieldedInstanceConfig.java | 133 +- .../notebooks/v1/RuntimeSoftwareConfig.java | 230 +-- .../google/cloud/notebooks/v1/Schedule.java | 276 ++- .../v1/SetInstanceAcceleratorRequest.java | 137 +- .../v1/SetInstanceLabelsRequest.java | 138 +- .../v1/SetInstanceMachineTypeRequest.java | 126 +- .../notebooks/v1/StartInstanceRequest.java | 113 +- .../notebooks/v1/StartRuntimeRequest.java | 126 +- .../notebooks/v1/StopInstanceRequest.java | 113 +- .../notebooks/v1/StopRuntimeRequest.java | 125 +- .../notebooks/v1/SwitchRuntimeRequest.java | 163 +- .../notebooks/v1/TriggerScheduleRequest.java | 113 +- .../v1/UpdateInstanceConfigRequest.java | 135 +- .../UpdateInstanceMetadataItemsRequest.java | 136 +- .../UpdateInstanceMetadataItemsResponse.java | 123 +- .../UpdateShieldedInstanceConfigRequest.java | 139 +- .../v1/UpgradeInstanceInternalRequest.java | 139 +- .../notebooks/v1/UpgradeInstanceRequest.java | 126 +- .../cloud/notebooks/v1/VirtualMachine.java | 149 +- .../notebooks/v1/VirtualMachineConfig.java | 540 ++---- .../google/cloud/notebooks/v1/VmImage.java | 140 +- .../notebooks/v1beta1/ContainerImage.java | 126 +- .../v1beta1/CreateEnvironmentRequest.java | 148 +- .../v1beta1/CreateInstanceRequest.java | 148 +- .../v1beta1/DeleteEnvironmentRequest.java | 113 +- .../v1beta1/DeleteInstanceRequest.java | 113 +- .../cloud/notebooks/v1beta1/Environment.java | 225 +-- .../v1beta1/GetEnvironmentRequest.java | 113 +- .../notebooks/v1beta1/GetInstanceRequest.java | 113 +- .../cloud/notebooks/v1beta1/Instance.java | 652 +++---- .../v1beta1/IsInstanceUpgradeableRequest.java | 114 +- .../IsInstanceUpgradeableResponse.java | 138 +- .../v1beta1/ListEnvironmentsRequest.java | 137 +- .../v1beta1/ListEnvironmentsResponse.java | 167 +- .../v1beta1/ListInstancesRequest.java | 137 +- .../v1beta1/ListInstancesResponse.java | 166 +- .../notebooks/v1beta1/OperationMetadata.java | 218 +-- .../v1beta1/RegisterInstanceRequest.java | 126 +- .../v1beta1/ReportInstanceInfoRequest.java | 153 +- .../v1beta1/ResetInstanceRequest.java | 113 +- .../SetInstanceAcceleratorRequest.java | 138 +- .../v1beta1/SetInstanceLabelsRequest.java | 138 +- .../SetInstanceMachineTypeRequest.java | 127 +- .../v1beta1/StartInstanceRequest.java | 113 +- .../v1beta1/StopInstanceRequest.java | 113 +- .../UpgradeInstanceInternalRequest.java | 127 +- .../v1beta1/UpgradeInstanceRequest.java | 113 +- .../cloud/notebooks/v1beta1/VmImage.java | 140 +- 101 files changed, 7148 insertions(+), 10574 deletions(-) diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImage.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImage.java index 25354d36..b3d15179 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImage.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImage.java @@ -54,59 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ContainerImage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - repository_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - tag_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.EnvironmentProto .internal_static_google_cloud_notebooks_v1_ContainerImage_descriptor; @@ -244,7 +191,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -259,7 +206,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -277,7 +224,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRepository().equals(other.getRepository())) return false; if (!getTag().equals(other.getTag())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,7 +239,7 @@ public int hashCode() { hash = (53 * hash) + getRepository().hashCode(); hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTag().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -422,17 +369,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.ContainerImage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -528,7 +468,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ContainerImage other) { tag_ = other.tag_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -543,17 +483,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ContainerImage parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + repository_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + tag_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.ContainerImage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -811,7 +777,18 @@ public ContainerImage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ContainerImage(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequest.java index ab6b00d5..acdbc8b4 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequest.java @@ -53,75 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateEnvironmentRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - environmentId_ = s; - break; - } - case 26: - { - com.google.cloud.notebooks.v1.Environment.Builder subBuilder = null; - if (environment_ != null) { - subBuilder = environment_.toBuilder(); - } - environment_ = - input.readMessage( - com.google.cloud.notebooks.v1.Environment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(environment_); - environment_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_descriptor; @@ -318,7 +249,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (environment_ != null) { output.writeMessage(3, getEnvironment()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -336,7 +267,7 @@ public int getSerializedSize() { if (environment_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEnvironment()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -358,7 +289,7 @@ public boolean equals(final java.lang.Object obj) { if (hasEnvironment()) { if (!getEnvironment().equals(other.getEnvironment())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -377,7 +308,7 @@ public int hashCode() { hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; hash = (53 * hash) + getEnvironment().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -507,17 +438,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.CreateEnvironmentRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -628,7 +552,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.CreateEnvironmentRequest if (other.hasEnvironment()) { mergeEnvironment(other.getEnvironment()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -643,18 +567,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.CreateEnvironmentRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + environmentId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getEnvironmentFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.CreateEnvironmentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1121,7 +1076,18 @@ public CreateEnvironmentRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateEnvironmentRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequest.java index af6c2640..c372f379 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequest.java @@ -53,75 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateExecutionRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - executionId_ = s; - break; - } - case 26: - { - com.google.cloud.notebooks.v1.Execution.Builder subBuilder = null; - if (execution_ != null) { - subBuilder = execution_.toBuilder(); - } - execution_ = - input.readMessage( - com.google.cloud.notebooks.v1.Execution.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(execution_); - execution_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_descriptor; @@ -318,7 +249,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (execution_ != null) { output.writeMessage(3, getExecution()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -336,7 +267,7 @@ public int getSerializedSize() { if (execution_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExecution()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -358,7 +289,7 @@ public boolean equals(final java.lang.Object obj) { if (hasExecution()) { if (!getExecution().equals(other.getExecution())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -377,7 +308,7 @@ public int hashCode() { hash = (37 * hash) + EXECUTION_FIELD_NUMBER; hash = (53 * hash) + getExecution().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -506,17 +437,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.CreateExecutionRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -627,7 +551,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.CreateExecutionRequest ot if (other.hasExecution()) { mergeExecution(other.getExecution()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -642,18 +566,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.CreateExecutionRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + executionId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getExecutionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.CreateExecutionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1119,7 +1074,18 @@ public CreateExecutionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateExecutionRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequest.java index 2eeae627..f6a40c2a 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequest.java @@ -53,75 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateInstanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - instanceId_ = s; - break; - } - case 26: - { - com.google.cloud.notebooks.v1.Instance.Builder subBuilder = null; - if (instance_ != null) { - subBuilder = instance_.toBuilder(); - } - instance_ = - input.readMessage( - com.google.cloud.notebooks.v1.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instance_); - instance_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_descriptor; @@ -314,7 +245,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (instance_ != null) { output.writeMessage(3, getInstance()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -332,7 +263,7 @@ public int getSerializedSize() { if (instance_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstance()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -354,7 +285,7 @@ public boolean equals(final java.lang.Object obj) { if (hasInstance()) { if (!getInstance().equals(other.getInstance())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -373,7 +304,7 @@ public int hashCode() { hash = (37 * hash) + INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getInstance().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -502,17 +433,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.CreateInstanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -623,7 +547,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.CreateInstanceRequest oth if (other.hasInstance()) { mergeInstance(other.getInstance()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -638,18 +562,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.CreateInstanceRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + instanceId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.CreateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1105,7 +1060,18 @@ public CreateInstanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateInstanceRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequest.java index 50e5bd1a..848319f3 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequest.java @@ -54,82 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateRuntimeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - runtimeId_ = s; - break; - } - case 26: - { - com.google.cloud.notebooks.v1.Runtime.Builder subBuilder = null; - if (runtime_ != null) { - subBuilder = runtime_.toBuilder(); - } - runtime_ = - input.readMessage( - com.google.cloud.notebooks.v1.Runtime.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(runtime_); - runtime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.ManagedNotebooksProto .internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_descriptor; @@ -373,7 +297,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -394,7 +318,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -417,7 +341,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRuntime().equals(other.getRuntime())) return false; } if (!getRequestId().equals(other.getRequestId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -438,7 +362,7 @@ public int hashCode() { } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -567,17 +491,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.CreateRuntimeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -695,7 +612,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.CreateRuntimeRequest othe requestId_ = other.requestId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -710,18 +627,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.CreateRuntimeRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + runtimeId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getRuntimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.CreateRuntimeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1293,7 +1247,18 @@ public CreateRuntimeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateRuntimeRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequest.java index 45df6447..56fc48c5 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequest.java @@ -53,75 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateScheduleRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - scheduleId_ = s; - break; - } - case 26: - { - com.google.cloud.notebooks.v1.Schedule.Builder subBuilder = null; - if (schedule_ != null) { - subBuilder = schedule_.toBuilder(); - } - schedule_ = - input.readMessage( - com.google.cloud.notebooks.v1.Schedule.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schedule_); - schedule_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_descriptor; @@ -318,7 +249,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (schedule_ != null) { output.writeMessage(3, getSchedule()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -336,7 +267,7 @@ public int getSerializedSize() { if (schedule_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSchedule()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -358,7 +289,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSchedule()) { if (!getSchedule().equals(other.getSchedule())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -377,7 +308,7 @@ public int hashCode() { hash = (37 * hash) + SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getSchedule().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -506,17 +437,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.CreateScheduleRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -627,7 +551,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.CreateScheduleRequest oth if (other.hasSchedule()) { mergeSchedule(other.getSchedule()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -642,18 +566,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.CreateScheduleRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + scheduleId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getScheduleFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.CreateScheduleRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1119,7 +1074,18 @@ public CreateScheduleRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateScheduleRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequest.java index 3649aca6..a243b554 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteEnvironmentRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.DeleteEnvironmentRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -353,17 +307,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.DeleteEnvironmentRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -453,7 +400,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.DeleteEnvironmentRequest name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -468,18 +415,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.DeleteEnvironmentRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.DeleteEnvironmentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -626,7 +592,18 @@ public DeleteEnvironmentRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteEnvironmentRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequest.java index 0fa9dc5f..31ec5b3c 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteExecutionRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.DeleteExecutionRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.DeleteExecutionRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -456,7 +403,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.DeleteExecutionRequest ot name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -471,18 +418,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.DeleteExecutionRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.DeleteExecutionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -639,7 +605,18 @@ public DeleteExecutionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteExecutionRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequest.java index 8c0b9563..6de0716c 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteInstanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.DeleteInstanceRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -352,17 +306,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.DeleteInstanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -452,7 +399,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.DeleteInstanceRequest oth name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -467,18 +414,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.DeleteInstanceRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.DeleteInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -625,7 +591,18 @@ public DeleteInstanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteInstanceRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequest.java index 008e35a9..ee93d730 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequest.java @@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteRuntimeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.ManagedNotebooksProto .internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_descriptor; @@ -245,7 +192,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -260,7 +207,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -278,7 +225,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getRequestId().equals(other.getRequestId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -293,7 +240,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -422,17 +369,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.DeleteRuntimeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -529,7 +469,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.DeleteRuntimeRequest othe requestId_ = other.requestId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -544,18 +484,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.DeleteRuntimeRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.DeleteRuntimeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -818,7 +783,18 @@ public DeleteRuntimeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteRuntimeRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequest.java index 77f7b051..690bc028 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteScheduleRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.DeleteScheduleRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.DeleteScheduleRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -456,7 +403,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.DeleteScheduleRequest oth name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -471,18 +418,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.DeleteScheduleRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.DeleteScheduleRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -639,7 +605,18 @@ public DeleteScheduleRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteScheduleRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfig.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfig.java index 1b76395a..fad80ef5 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfig.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfig.java @@ -53,52 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private EncryptionConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - kmsKey_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.RuntimeProto .internal_static_google_cloud_notebooks_v1_EncryptionConfig_descriptor; @@ -186,7 +140,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKey_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -198,7 +152,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kmsKey_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -215,7 +169,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.EncryptionConfig) obj; if (!getKmsKey().equals(other.getKmsKey())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -228,7 +182,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KMS_KEY_FIELD_NUMBER; hash = (53 * hash) + getKmsKey().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -358,17 +312,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.EncryptionConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -457,7 +404,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.EncryptionConfig other) { kmsKey_ = other.kmsKey_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -472,17 +419,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.EncryptionConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + kmsKey_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.EncryptionConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -639,7 +606,18 @@ public EncryptionConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new EncryptionConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Environment.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Environment.java index c95315f8..e7da06bb 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Environment.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Environment.java @@ -56,121 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Environment( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 50: - { - com.google.cloud.notebooks.v1.VmImage.Builder subBuilder = null; - if (imageTypeCase_ == 6) { - subBuilder = ((com.google.cloud.notebooks.v1.VmImage) imageType_).toBuilder(); - } - imageType_ = - input.readMessage( - com.google.cloud.notebooks.v1.VmImage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.notebooks.v1.VmImage) imageType_); - imageType_ = subBuilder.buildPartial(); - } - imageTypeCase_ = 6; - break; - } - case 58: - { - com.google.cloud.notebooks.v1.ContainerImage.Builder subBuilder = null; - if (imageTypeCase_ == 7) { - subBuilder = - ((com.google.cloud.notebooks.v1.ContainerImage) imageType_).toBuilder(); - } - imageType_ = - input.readMessage( - com.google.cloud.notebooks.v1.ContainerImage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.notebooks.v1.ContainerImage) imageType_); - imageType_ = subBuilder.buildPartial(); - } - imageTypeCase_ = 7; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - postStartupScript_ = s; - break; - } - case 74: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.EnvironmentProto .internal_static_google_cloud_notebooks_v1_Environment_descriptor; @@ -623,7 +508,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(9, getCreateTime()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -657,7 +542,7 @@ public int getSerializedSize() { if (createTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -692,7 +577,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -727,7 +612,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -857,17 +742,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.Environment.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -879,6 +757,12 @@ public Builder clear() { description_ = ""; + if (vmImageBuilder_ != null) { + vmImageBuilder_.clear(); + } + if (containerImageBuilder_ != null) { + containerImageBuilder_.clear(); + } postStartupScript_ = ""; if (createTimeBuilder_ == null) { @@ -1024,7 +908,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.Environment other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1039,17 +923,73 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.Environment parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 50: + { + input.readMessage(getVmImageFieldBuilder().getBuilder(), extensionRegistry); + imageTypeCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getContainerImageFieldBuilder().getBuilder(), extensionRegistry); + imageTypeCase_ = 7; + break; + } // case 58 + case 66: + { + postStartupScript_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.Environment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2163,7 +2103,18 @@ public Environment parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Environment(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Event.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Event.java index 391e9948..0da42165 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Event.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Event.java @@ -52,82 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Event( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (reportTime_ != null) { - subBuilder = reportTime_.toBuilder(); - } - reportTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reportTime_); - reportTime_ = subBuilder.buildPartial(); - } - - break; - } - case 16: - { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - details_ = - com.google.protobuf.MapField.newMapField( - DetailsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry details__ = - input.readMessage( - DetailsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - details_.getMutableMap().put(details__.getKey(), details__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.EventProto .internal_static_google_cloud_notebooks_v1_Event_descriptor; @@ -569,7 +493,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetDetails(), DetailsDefaultEntryHolder.defaultEntry, 3); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -594,7 +518,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, details__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -615,7 +539,7 @@ public boolean equals(final java.lang.Object obj) { } if (type_ != other.type_) return false; if (!internalGetDetails().equals(other.internalGetDetails())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -636,7 +560,7 @@ public int hashCode() { hash = (37 * hash) + DETAILS_FIELD_NUMBER; hash = (53 * hash) + internalGetDetails().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -784,17 +708,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.notebooks.v1.Event.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -900,7 +817,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.Event other) { setTypeValue(other.getTypeValue()); } internalGetMutableDetails().mergeFrom(other.internalGetDetails()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -915,17 +832,54 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.Event parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getReportTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + + break; + } // case 16 + case 26: + { + com.google.protobuf.MapEntry details__ = + input.readMessage( + DetailsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableDetails() + .getMutableMap() + .put(details__.getKey(), details__.getValue()); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.Event) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1395,7 +1349,18 @@ public Event parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Event(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Execution.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Execution.java index 9814b18c..cdd4b3f2 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Execution.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Execution.java @@ -57,133 +57,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Execution( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.notebooks.v1.ExecutionTemplate.Builder subBuilder = null; - if (executionTemplate_ != null) { - subBuilder = executionTemplate_.toBuilder(); - } - executionTemplate_ = - input.readMessage( - com.google.cloud.notebooks.v1.ExecutionTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionTemplate_); - executionTemplate_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 56: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - outputNotebookFile_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.ExecutionProto .internal_static_google_cloud_notebooks_v1_Execution_descriptor; @@ -994,7 +867,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, jobUri_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1030,7 +903,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, jobUri_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1063,7 +936,7 @@ public boolean equals(final java.lang.Object obj) { if (state_ != other.state_) return false; if (!getOutputNotebookFile().equals(other.getOutputNotebookFile())) return false; if (!getJobUri().equals(other.getJobUri())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1098,7 +971,7 @@ public int hashCode() { hash = (53 * hash) + getOutputNotebookFile().hashCode(); hash = (37 * hash) + JOB_URI_FIELD_NUMBER; hash = (53 * hash) + getJobUri().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1227,17 +1100,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.Execution.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1402,7 +1268,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.Execution other) { jobUri_ = other.jobUri_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1417,17 +1283,86 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.Execution parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getExecutionTemplateFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + + break; + } // case 56 + case 66: + { + outputNotebookFile_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + jobUri_ = input.readStringRequireUtf8(); + + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.Execution) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2693,7 +2628,18 @@ public Execution parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Execution(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplate.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplate.java index 2fe7e3cb..bfb30499 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplate.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplate.java @@ -62,201 +62,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ExecutionTemplate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - scaleTier_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - masterType_ = s; - break; - } - case 26: - { - com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.Builder - subBuilder = null; - if (acceleratorConfig_ != null) { - subBuilder = acceleratorConfig_.toBuilder(); - } - acceleratorConfig_ = - input.readMessage( - com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(acceleratorConfig_); - acceleratorConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - inputNotebookFile_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - containerImageUri_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - outputNotebookFolder_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - paramsYamlFile_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - parameters_ = s; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - - serviceAccount_ = s; - break; - } - case 88: - { - int rawValue = input.readEnum(); - - jobType_ = rawValue; - break; - } - case 98: - { - com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.Builder - subBuilder = null; - if (jobParametersCase_ == 12) { - subBuilder = - ((com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) - jobParameters_) - .toBuilder(); - } - jobParameters_ = - input.readMessage( - com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) - jobParameters_); - jobParameters_ = subBuilder.buildPartial(); - } - jobParametersCase_ = 12; - break; - } - case 106: - { - com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.Builder - subBuilder = null; - if (jobParametersCase_ == 13) { - subBuilder = - ((com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) - jobParameters_) - .toBuilder(); - } - jobParameters_ = - input.readMessage( - com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) - jobParameters_); - jobParameters_ = subBuilder.buildPartial(); - } - jobParametersCase_ = 13; - break; - } - case 114: - { - java.lang.String s = input.readStringRequireUtf8(); - - kernelSpec_ = s; - break; - } - case 122: - { - java.lang.String s = input.readStringRequireUtf8(); - - tensorboard_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.ExecutionProto .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_descriptor; @@ -1075,57 +880,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SchedulerAcceleratorConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 16: - { - coreCount_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.ExecutionProto .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_descriptor; @@ -1221,7 +975,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (coreCount_ != 0L) { output.writeInt64(2, coreCount_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1239,7 +993,7 @@ public int getSerializedSize() { if (coreCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, coreCount_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1258,7 +1012,7 @@ public boolean equals(final java.lang.Object obj) { if (type_ != other.type_) return false; if (getCoreCount() != other.getCoreCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1273,7 +1027,7 @@ public int hashCode() { hash = (53 * hash) + type_; hash = (37 * hash) + CORE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCoreCount()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1416,17 +1170,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1531,7 +1278,7 @@ public Builder mergeFrom( if (other.getCoreCount() != 0L) { setCoreCount(other.getCoreCount()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1546,20 +1293,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig parsedMessage = - null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + type_ = input.readEnum(); + + break; + } // case 8 + case 16: + { + coreCount_ = input.readInt64(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1750,7 +1520,19 @@ public SchedulerAcceleratorConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SchedulerAcceleratorConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -1836,52 +1618,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DataprocParameters( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - cluster_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.ExecutionProto .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_descriptor; @@ -1965,7 +1701,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cluster_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1977,7 +1713,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cluster_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1994,7 +1730,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) obj; if (!getCluster().equals(other.getCluster())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2007,7 +1743,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getCluster().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2141,17 +1877,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -2248,7 +1977,7 @@ public Builder mergeFrom( cluster_ = other.cluster_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2263,19 +1992,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + cluster_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2425,7 +2172,19 @@ public DataprocParameters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DataprocParameters(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -2594,66 +2353,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private VertexAIParameters( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - network_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - env_ = - com.google.protobuf.MapField.newMapField(EnvDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry env__ = - input.readMessage( - EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - env_.getMutableMap().put(env__.getKey(), env__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.ExecutionProto .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_descriptor; @@ -2870,7 +2569,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetEnv(), EnvDefaultEntryHolder.defaultEntry, 2); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2892,7 +2591,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, env__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2910,7 +2609,7 @@ public boolean equals(final java.lang.Object obj) { if (!getNetwork().equals(other.getNetwork())) return false; if (!internalGetEnv().equals(other.internalGetEnv())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2927,7 +2626,7 @@ public int hashCode() { hash = (37 * hash) + ENV_FIELD_NUMBER; hash = (53 * hash) + internalGetEnv().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -3081,17 +2780,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { // Construct using // com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -3193,7 +2885,7 @@ public Builder mergeFrom( onChanged(); } internalGetMutableEnv().mergeFrom(other.internalGetEnv()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -3208,19 +2900,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + network_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry env__ = + input.readMessage( + EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableEnv().getMutableMap().put(env__.getKey(), env__.getValue()); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3578,7 +3296,19 @@ public VertexAIParameters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VertexAIParameters(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -4648,7 +4378,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tensorboard_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, tensorboard_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -4719,7 +4449,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tensorboard_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, tensorboard_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -4762,7 +4492,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4815,7 +4545,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -4964,17 +4694,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.notebooks.v1.ExecutionTemplate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -5005,6 +4728,12 @@ public Builder clear() { jobType_ = 0; + if (dataprocParametersBuilder_ != null) { + dataprocParametersBuilder_.clear(); + } + if (vertexAiParametersBuilder_ != null) { + vertexAiParametersBuilder_.clear(); + } kernelSpec_ = ""; tensorboard_ = ""; @@ -5184,7 +4913,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ExecutionTemplate other) break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -5199,17 +4928,129 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ExecutionTemplate parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + scaleTier_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + masterType_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage( + getAcceleratorConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 34 + case 42: + { + inputNotebookFile_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + containerImageUri_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + outputNotebookFolder_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + paramsYamlFile_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + parameters_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: + { + serviceAccount_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 88: + { + jobType_ = input.readEnum(); + + break; + } // case 88 + case 98: + { + input.readMessage( + getDataprocParametersFieldBuilder().getBuilder(), extensionRegistry); + jobParametersCase_ = 12; + break; + } // case 98 + case 106: + { + input.readMessage( + getVertexAiParametersFieldBuilder().getBuilder(), extensionRegistry); + jobParametersCase_ = 13; + break; + } // case 106 + case 114: + { + kernelSpec_ = input.readStringRequireUtf8(); + + break; + } // case 114 + case 122: + { + tensorboard_ = input.readStringRequireUtf8(); + + break; + } // case 122 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.ExecutionTemplate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -7629,7 +7470,18 @@ public ExecutionTemplate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionTemplate(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequest.java index 93ee1c69..96701d12 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetEnvironmentRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.GetEnvironmentRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -352,17 +306,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.GetEnvironmentRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -452,7 +399,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.GetEnvironmentRequest oth name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -467,18 +414,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.GetEnvironmentRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.GetEnvironmentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -625,7 +591,18 @@ public GetEnvironmentRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetEnvironmentRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequest.java index 7d8a5533..9a670e95 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetExecutionRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_GetExecutionRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.GetExecutionRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.GetExecutionRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -456,7 +403,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.GetExecutionRequest other name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -471,18 +418,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.GetExecutionRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.GetExecutionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -639,7 +605,18 @@ public GetExecutionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetExecutionRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequest.java index e5b8c7a7..62c00493 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetInstanceHealthRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.GetInstanceHealthRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -357,17 +311,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.GetInstanceHealthRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -457,7 +404,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.GetInstanceHealthRequest name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -472,18 +419,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.GetInstanceHealthRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.GetInstanceHealthRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -640,7 +606,18 @@ public GetInstanceHealthRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceHealthRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthResponse.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthResponse.java index 8b09d346..3c2e7bb1 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthResponse.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthResponse.java @@ -52,68 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetInstanceHealthResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - healthState_ = rawValue; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - healthInfo_ = - com.google.protobuf.MapField.newMapField( - HealthInfoDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry healthInfo__ = - input.readMessage( - HealthInfoDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - healthInfo_.getMutableMap().put(healthInfo__.getKey(), healthInfo__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_descriptor; @@ -554,7 +492,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetHealthInfo(), HealthInfoDefaultEntryHolder.defaultEntry, 2); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -579,7 +517,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, healthInfo__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -597,7 +535,7 @@ public boolean equals(final java.lang.Object obj) { if (healthState_ != other.healthState_) return false; if (!internalGetHealthInfo().equals(other.internalGetHealthInfo())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -614,7 +552,7 @@ public int hashCode() { hash = (37 * hash) + HEALTH_INFO_FIELD_NUMBER; hash = (53 * hash) + internalGetHealthInfo().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -764,17 +702,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.notebooks.v1.GetInstanceHealthResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -868,7 +799,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.GetInstanceHealthResponse setHealthStateValue(other.getHealthStateValue()); } internalGetMutableHealthInfo().mergeFrom(other.internalGetHealthInfo()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -883,18 +814,48 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.GetInstanceHealthResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + healthState_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + com.google.protobuf.MapEntry healthInfo__ = + input.readMessage( + HealthInfoDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableHealthInfo() + .getMutableMap() + .put(healthInfo__.getKey(), healthInfo__.getValue()); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.GetInstanceHealthResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1260,7 +1221,18 @@ public GetInstanceHealthResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceHealthResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequest.java index baec1f33..4ba50f0a 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetInstanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_GetInstanceRequest_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.GetInstanceRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -352,17 +306,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.GetInstanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -452,7 +399,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.GetInstanceRequest other) name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -467,17 +414,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.GetInstanceRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.GetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -624,7 +591,18 @@ public GetInstanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequest.java index 7aae9b58..716c1279 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetRuntimeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.ManagedNotebooksProto .internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.GetRuntimeRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.GetRuntimeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -456,7 +403,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.GetRuntimeRequest other) name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -471,17 +418,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.GetRuntimeRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.GetRuntimeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -638,7 +605,18 @@ public GetRuntimeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetRuntimeRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequest.java index 32b9eaab..dce663d4 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetScheduleRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_GetScheduleRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.GetScheduleRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.GetScheduleRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -456,7 +403,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.GetScheduleRequest other) name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -471,17 +418,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.GetScheduleRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.GetScheduleRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -638,7 +605,18 @@ public GetScheduleRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScheduleRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Instance.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Instance.java index 5c847d79..53d8e93c 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Instance.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Instance.java @@ -71,399 +71,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Instance( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.cloud.notebooks.v1.VmImage.Builder subBuilder = null; - if (environmentCase_ == 2) { - subBuilder = ((com.google.cloud.notebooks.v1.VmImage) environment_).toBuilder(); - } - environment_ = - input.readMessage( - com.google.cloud.notebooks.v1.VmImage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.notebooks.v1.VmImage) environment_); - environment_ = subBuilder.buildPartial(); - } - environmentCase_ = 2; - break; - } - case 26: - { - com.google.cloud.notebooks.v1.ContainerImage.Builder subBuilder = null; - if (environmentCase_ == 3) { - subBuilder = - ((com.google.cloud.notebooks.v1.ContainerImage) environment_).toBuilder(); - } - environment_ = - input.readMessage( - com.google.cloud.notebooks.v1.ContainerImage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.notebooks.v1.ContainerImage) environment_); - environment_ = subBuilder.buildPartial(); - } - environmentCase_ = 3; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - postStartupScript_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - proxyUri_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instanceOwners_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - instanceOwners_.add(s); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - serviceAccount_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - machineType_ = s; - break; - } - case 74: - { - com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.Builder subBuilder = null; - if (acceleratorConfig_ != null) { - subBuilder = acceleratorConfig_.toBuilder(); - } - acceleratorConfig_ = - input.readMessage( - com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(acceleratorConfig_); - acceleratorConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 80: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 88: - { - installGpuDriver_ = input.readBool(); - break; - } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - - customGpuDriverPath_ = s; - break; - } - case 104: - { - int rawValue = input.readEnum(); - - bootDiskType_ = rawValue; - break; - } - case 112: - { - bootDiskSizeGb_ = input.readInt64(); - break; - } - case 120: - { - int rawValue = input.readEnum(); - - diskEncryption_ = rawValue; - break; - } - case 130: - { - java.lang.String s = input.readStringRequireUtf8(); - - kmsKey_ = s; - break; - } - case 136: - { - noPublicIp_ = input.readBool(); - break; - } - case 144: - { - noProxyAccess_ = input.readBool(); - break; - } - case 154: - { - java.lang.String s = input.readStringRequireUtf8(); - - network_ = s; - break; - } - case 162: - { - java.lang.String s = input.readStringRequireUtf8(); - - subnet_ = s; - break; - } - case 170: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 178: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - metadata_ = - com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); - break; - } - case 186: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 194: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 200: - { - int rawValue = input.readEnum(); - - dataDiskType_ = rawValue; - break; - } - case 208: - { - dataDiskSizeGb_ = input.readInt64(); - break; - } - case 216: - { - noRemoveDataDisk_ = input.readBool(); - break; - } - case 226: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - disks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - disks_.add( - input.readMessage( - com.google.cloud.notebooks.v1.Instance.Disk.parser(), extensionRegistry)); - break; - } - case 234: - { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - upgradeHistory_ = - new java.util.ArrayList< - com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry>(); - mutable_bitField0_ |= 0x00000040; - } - upgradeHistory_.add( - input.readMessage( - com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.parser(), - extensionRegistry)); - break; - } - case 242: - { - com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder subBuilder = - null; - if (shieldedInstanceConfig_ != null) { - subBuilder = shieldedInstanceConfig_.toBuilder(); - } - shieldedInstanceConfig_ = - input.readMessage( - com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(shieldedInstanceConfig_); - shieldedInstanceConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 250: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - serviceAccountScopes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - serviceAccountScopes_.add(s); - break; - } - case 258: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000020; - } - tags_.add(s); - break; - } - case 264: - { - int rawValue = input.readEnum(); - - nicType_ = rawValue; - break; - } - case 274: - { - com.google.cloud.notebooks.v1.ReservationAffinity.Builder subBuilder = null; - if (reservationAffinity_ != null) { - subBuilder = reservationAffinity_.toBuilder(); - } - reservationAffinity_ = - input.readMessage( - com.google.cloud.notebooks.v1.ReservationAffinity.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reservationAffinity_); - reservationAffinity_ = subBuilder.buildPartial(); - } - - break; - } - case 290: - { - java.lang.String s = input.readStringRequireUtf8(); - - creator_ = s; - break; - } - case 312: - { - canIpForward_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - instanceOwners_ = instanceOwners_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - disks_ = java.util.Collections.unmodifiableList(disks_); - } - if (((mutable_bitField0_ & 0x00000040) != 0)) { - upgradeHistory_ = java.util.Collections.unmodifiableList(upgradeHistory_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - serviceAccountScopes_ = serviceAccountScopes_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - tags_ = tags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.InstanceProto .internal_static_google_cloud_notebooks_v1_Instance_descriptor; @@ -1803,57 +1410,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AcceleratorConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 16: - { - coreCount_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.InstanceProto .internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_descriptor; @@ -1947,7 +1503,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (coreCount_ != 0L) { output.writeInt64(2, coreCount_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1964,7 +1520,7 @@ public int getSerializedSize() { if (coreCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, coreCount_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1982,7 +1538,7 @@ public boolean equals(final java.lang.Object obj) { if (type_ != other.type_) return false; if (getCoreCount() != other.getCoreCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1997,7 +1553,7 @@ public int hashCode() { hash = (53 * hash) + type_; hash = (37 * hash) + CORE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCoreCount()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2132,17 +1688,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -2239,7 +1788,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.Instance.AcceleratorConfi if (other.getCoreCount() != 0L) { setCoreCount(other.getCoreCount()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2254,18 +1803,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.Instance.AcceleratorConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + type_ = input.readEnum(); + + break; + } // case 8 + case 16: + { + coreCount_ = input.readInt64(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.Instance.AcceleratorConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2447,7 +2021,19 @@ public AcceleratorConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AcceleratorConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -2892,138 +2478,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Disk( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - autoDelete_ = input.readBool(); - break; - } - case 16: - { - boot_ = input.readBool(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - deviceName_ = s; - break; - } - case 32: - { - diskSizeGb_ = input.readInt64(); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - guestOsFeatures_ = - new java.util.ArrayList< - com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature>(); - mutable_bitField0_ |= 0x00000001; - } - guestOsFeatures_.add( - input.readMessage( - com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.parser(), - extensionRegistry)); - break; - } - case 48: - { - index_ = input.readInt64(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - interface_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - kind_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - licenses_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - licenses_.add(s); - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - - mode_ = s; - break; - } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - - source_ = s; - break; - } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - guestOsFeatures_ = java.util.Collections.unmodifiableList(guestOsFeatures_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - licenses_ = licenses_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.InstanceProto .internal_static_google_cloud_notebooks_v1_Instance_Disk_descriptor; @@ -3108,62 +2562,15 @@ private GuestOsFeature() { type_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GuestOsFeature(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GuestOsFeature( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GuestOsFeature(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -3263,7 +2670,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -3275,7 +2682,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -3292,7 +2699,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature) obj; if (!getType().equals(other.getType())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3305,7 +2712,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -3437,17 +2844,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -3541,7 +2941,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeat type_ = other.type_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -3556,19 +2956,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + type_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3753,7 +3171,19 @@ public GuestOsFeature parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GuestOsFeature(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -4397,7 +3827,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, type_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -4448,7 +3878,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, type_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -4476,7 +3906,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMode().equals(other.getMode())) return false; if (!getSource().equals(other.getSource())) return false; if (!getType().equals(other.getType())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4515,7 +3945,7 @@ public int hashCode() { hash = (53 * hash) + getSource().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -4646,19 +4076,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.Instance.Disk.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getGuestOsFeaturesFieldBuilder(); - } } @java.lang.Override @@ -4674,10 +4095,11 @@ public Builder clear() { if (guestOsFeaturesBuilder_ == null) { guestOsFeatures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + guestOsFeatures_ = null; guestOsFeaturesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); index_ = 0L; interface_ = ""; @@ -4868,7 +4290,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.Instance.Disk other) { type_ = other.type_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -4883,17 +4305,112 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.Instance.Disk parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + autoDelete_ = input.readBool(); + + break; + } // case 8 + case 16: + { + boot_ = input.readBool(); + + break; + } // case 16 + case 26: + { + deviceName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + diskSizeGb_ = input.readInt64(); + + break; + } // case 32 + case 42: + { + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature m = + input.readMessage( + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.parser(), + extensionRegistry); + if (guestOsFeaturesBuilder_ == null) { + ensureGuestOsFeaturesIsMutable(); + guestOsFeatures_.add(m); + } else { + guestOsFeaturesBuilder_.addMessage(m); + } + break; + } // case 42 + case 48: + { + index_ = input.readInt64(); + + break; + } // case 48 + case 58: + { + interface_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + kind_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLicensesIsMutable(); + licenses_.add(s); + break; + } // case 74 + case 82: + { + mode_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: + { + source_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: + { + type_ = input.readStringRequireUtf8(); + + break; + } // case 98 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.Instance.Disk) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -6532,7 +6049,19 @@ public Disk parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Disk(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -6636,60 +6165,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ShieldedInstanceConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enableSecureBoot_ = input.readBool(); - break; - } - case 16: - { - enableVtpm_ = input.readBool(); - break; - } - case 24: - { - enableIntegrityMonitoring_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.InstanceProto .internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_descriptor; @@ -6789,7 +6264,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableIntegrityMonitoring_ != false) { output.writeBool(3, enableIntegrityMonitoring_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -6808,7 +6283,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableIntegrityMonitoring_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -6827,7 +6302,7 @@ public boolean equals(final java.lang.Object obj) { if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; if (getEnableVtpm() != other.getEnableVtpm()) return false; if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6844,7 +6319,7 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -6978,17 +6453,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -7094,7 +6562,7 @@ public Builder mergeFrom( if (other.getEnableIntegrityMonitoring() != false) { setEnableIntegrityMonitoring(other.getEnableIntegrityMonitoring()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -7109,19 +6577,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enableSecureBoot_ = input.readBool(); + + break; + } // case 8 + case 16: + { + enableVtpm_ = input.readBool(); + + break; + } // case 16 + case 24: + { + enableIntegrityMonitoring_ = input.readBool(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -7337,7 +6835,19 @@ public ShieldedInstanceConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ShieldedInstanceConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -7630,161 +7140,44 @@ public interface UpgradeHistoryEntryOrBuilder } /** * - * - *
-   * The entry of VM image upgrade history.
-   * 
- * - * Protobuf type {@code google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry} - */ - public static final class UpgradeHistoryEntry extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry) - UpgradeHistoryEntryOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpgradeHistoryEntry.newBuilder() to construct. - private UpgradeHistoryEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpgradeHistoryEntry() { - snapshot_ = ""; - vmImage_ = ""; - containerImage_ = ""; - framework_ = ""; - version_ = ""; - state_ = 0; - targetImage_ = ""; - action_ = 0; - targetVersion_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpgradeHistoryEntry(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpgradeHistoryEntry( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - snapshot_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - vmImage_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - containerImage_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - framework_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 48: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 58: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + * + *
+   * The entry of VM image upgrade history.
+   * 
+ * + * Protobuf type {@code google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry} + */ + public static final class UpgradeHistoryEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry) + UpgradeHistoryEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpgradeHistoryEntry.newBuilder() to construct. + private UpgradeHistoryEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - targetImage_ = s; - break; - } - case 72: - { - int rawValue = input.readEnum(); + private UpgradeHistoryEntry() { + snapshot_ = ""; + vmImage_ = ""; + containerImage_ = ""; + framework_ = ""; + version_ = ""; + state_ = 0; + targetImage_ = ""; + action_ = 0; + targetVersion_ = ""; + } - action_ = rawValue; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpgradeHistoryEntry(); + } - targetVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -8661,7 +8054,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, targetVersion_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -8704,7 +8097,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, targetVersion_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -8733,7 +8126,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTargetImage().equals(other.getTargetImage())) return false; if (action_ != other.action_) return false; if (!getTargetVersion().equals(other.getTargetVersion())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8766,7 +8159,7 @@ public int hashCode() { hash = (53 * hash) + action_; hash = (37 * hash) + TARGET_VERSION_FIELD_NUMBER; hash = (53 * hash) + getTargetVersion().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -8898,17 +8291,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -9070,7 +8456,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEn targetVersion_ = other.targetVersion_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -9085,18 +8471,91 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + snapshot_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + vmImage_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + containerImage_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + framework_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); + + break; + } // case 48 + case 58: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 66: + { + targetImage_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 72: + { + action_ = input.readEnum(); + + break; + } // case 72 + case 82: + { + targetVersion_ = input.readStringRequireUtf8(); + + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -10264,7 +9723,19 @@ public UpgradeHistoryEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpgradeHistoryEntry(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -12303,7 +11774,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (canIpForward_ != false) { output.writeBool(39, canIpForward_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -12460,7 +11931,7 @@ public int getSerializedSize() { if (canIpForward_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(39, canIpForward_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -12535,7 +12006,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -12650,7 +12121,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -12803,20 +12274,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.notebooks.v1.Instance.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDisksFieldBuilder(); - getUpgradeHistoryFieldBuilder(); - } } @java.lang.Override @@ -12824,6 +12285,12 @@ public Builder clear() { super.clear(); name_ = ""; + if (vmImageBuilder_ != null) { + vmImageBuilder_.clear(); + } + if (containerImageBuilder_ != null) { + containerImageBuilder_.clear(); + } postStartupScript_ = ""; proxyUri_ = ""; @@ -12864,10 +12331,11 @@ public Builder clear() { if (disksBuilder_ == null) { disks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); } else { + disks_ = null; disksBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); if (shieldedInstanceConfigBuilder_ == null) { shieldedInstanceConfig_ = null; } else { @@ -12888,10 +12356,11 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000020); if (upgradeHistoryBuilder_ == null) { upgradeHistory_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); } else { + upgradeHistory_ = null; upgradeHistoryBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000040); nicType_ = 0; if (reservationAffinityBuilder_ == null) { @@ -13287,7 +12756,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.Instance other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -13302,17 +12771,278 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.Instance parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getVmImageFieldBuilder().getBuilder(), extensionRegistry); + environmentCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getContainerImageFieldBuilder().getBuilder(), extensionRegistry); + environmentCase_ = 3; + break; + } // case 26 + case 34: + { + postStartupScript_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + proxyUri_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstanceOwnersIsMutable(); + instanceOwners_.add(s); + break; + } // case 50 + case 58: + { + serviceAccount_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + machineType_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + input.readMessage( + getAcceleratorConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 80: + { + state_ = input.readEnum(); + + break; + } // case 80 + case 88: + { + installGpuDriver_ = input.readBool(); + + break; + } // case 88 + case 98: + { + customGpuDriverPath_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 104: + { + bootDiskType_ = input.readEnum(); + + break; + } // case 104 + case 112: + { + bootDiskSizeGb_ = input.readInt64(); + + break; + } // case 112 + case 120: + { + diskEncryption_ = input.readEnum(); + + break; + } // case 120 + case 130: + { + kmsKey_ = input.readStringRequireUtf8(); + + break; + } // case 130 + case 136: + { + noPublicIp_ = input.readBool(); + + break; + } // case 136 + case 144: + { + noProxyAccess_ = input.readBool(); + + break; + } // case 144 + case 154: + { + network_ = input.readStringRequireUtf8(); + + break; + } // case 154 + case 162: + { + subnet_ = input.readStringRequireUtf8(); + + break; + } // case 162 + case 170: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 170 + case 178: + { + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMetadata() + .getMutableMap() + .put(metadata__.getKey(), metadata__.getValue()); + break; + } // case 178 + case 186: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 186 + case 194: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 194 + case 200: + { + dataDiskType_ = input.readEnum(); + + break; + } // case 200 + case 208: + { + dataDiskSizeGb_ = input.readInt64(); + + break; + } // case 208 + case 216: + { + noRemoveDataDisk_ = input.readBool(); + + break; + } // case 216 + case 226: + { + com.google.cloud.notebooks.v1.Instance.Disk m = + input.readMessage( + com.google.cloud.notebooks.v1.Instance.Disk.parser(), extensionRegistry); + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(m); + } else { + disksBuilder_.addMessage(m); + } + break; + } // case 226 + case 234: + { + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry m = + input.readMessage( + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.parser(), + extensionRegistry); + if (upgradeHistoryBuilder_ == null) { + ensureUpgradeHistoryIsMutable(); + upgradeHistory_.add(m); + } else { + upgradeHistoryBuilder_.addMessage(m); + } + break; + } // case 234 + case 242: + { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 242 + case 250: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureServiceAccountScopesIsMutable(); + serviceAccountScopes_.add(s); + break; + } // case 250 + case 258: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 258 + case 264: + { + nicType_ = input.readEnum(); + + break; + } // case 264 + case 274: + { + input.readMessage( + getReservationAffinityFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 274 + case 290: + { + creator_ = input.readStringRequireUtf8(); + + break; + } // case 290 + case 312: + { + canIpForward_ = input.readBool(); + + break; + } // case 312 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.Instance) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -18651,7 +18381,18 @@ public Instance parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Instance(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfig.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfig.java index c45068a3..489c99f2 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfig.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfig.java @@ -52,57 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private InstanceConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - notebookUpgradeSchedule_ = s; - break; - } - case 16: - { - enableHealthMonitoring_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.InstanceConfigProto .internal_static_google_cloud_notebooks_v1_InstanceConfig_descriptor; @@ -207,7 +156,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableHealthMonitoring_ != false) { output.writeBool(2, enableHealthMonitoring_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -222,7 +171,7 @@ public int getSerializedSize() { if (enableHealthMonitoring_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableHealthMonitoring_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -240,7 +189,7 @@ public boolean equals(final java.lang.Object obj) { if (!getNotebookUpgradeSchedule().equals(other.getNotebookUpgradeSchedule())) return false; if (getEnableHealthMonitoring() != other.getEnableHealthMonitoring()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -255,7 +204,7 @@ public int hashCode() { hash = (53 * hash) + getNotebookUpgradeSchedule().hashCode(); hash = (37 * hash) + ENABLE_HEALTH_MONITORING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableHealthMonitoring()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -384,17 +333,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.InstanceConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -489,7 +431,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.InstanceConfig other) { if (other.getEnableHealthMonitoring() != false) { setEnableHealthMonitoring(other.getEnableHealthMonitoring()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -504,17 +446,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.InstanceConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + notebookUpgradeSchedule_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + enableHealthMonitoring_ = input.readBool(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.InstanceConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -713,7 +681,18 @@ public InstanceConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new InstanceConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequest.java index 19071fc6..0441429f 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequest.java @@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private IsInstanceUpgradeableRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - notebookInstance_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_descriptor; @@ -234,7 +181,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (type_ != com.google.cloud.notebooks.v1.UpgradeType.UPGRADE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -249,7 +196,7 @@ public int getSerializedSize() { if (type_ != com.google.cloud.notebooks.v1.UpgradeType.UPGRADE_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -267,7 +214,7 @@ public boolean equals(final java.lang.Object obj) { if (!getNotebookInstance().equals(other.getNotebookInstance())) return false; if (type_ != other.type_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -282,7 +229,7 @@ public int hashCode() { hash = (53 * hash) + getNotebookInstance().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -412,17 +359,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -518,7 +458,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequ if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -533,18 +473,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + notebookInstance_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -797,7 +762,18 @@ public IsInstanceUpgradeableRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new IsInstanceUpgradeableRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponse.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponse.java index 6406a2ba..8e017fa7 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponse.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponse.java @@ -54,71 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private IsInstanceUpgradeableResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - upgradeable_ = input.readBool(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - upgradeVersion_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - upgradeInfo_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - upgradeImage_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_descriptor; @@ -331,7 +266,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeImage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, upgradeImage_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -352,7 +287,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeImage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, upgradeImage_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -372,7 +307,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUpgradeVersion().equals(other.getUpgradeVersion())) return false; if (!getUpgradeInfo().equals(other.getUpgradeInfo())) return false; if (!getUpgradeImage().equals(other.getUpgradeImage())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -391,7 +326,7 @@ public int hashCode() { hash = (53 * hash) + getUpgradeInfo().hashCode(); hash = (37 * hash) + UPGRADE_IMAGE_FIELD_NUMBER; hash = (53 * hash) + getUpgradeImage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -521,17 +456,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -641,7 +569,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.IsInstanceUpgradeableResp upgradeImage_ = other.upgradeImage_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -656,18 +584,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + upgradeable_ = input.readBool(); + + break; + } // case 8 + case 18: + { + upgradeVersion_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + upgradeInfo_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + upgradeImage_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1088,7 +1053,18 @@ public IsInstanceUpgradeableResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new IsInstanceUpgradeableResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequest.java index fce6ff53..177c3758 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequest.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListEnvironmentsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_descriptor; @@ -267,7 +209,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -285,7 +227,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -304,7 +246,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -321,7 +263,7 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -451,17 +393,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.ListEnvironmentsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -564,7 +499,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ListEnvironmentsRequest o pageToken_ = other.pageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -579,18 +514,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ListEnvironmentsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.ListEnvironmentsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -895,7 +861,18 @@ public ListEnvironmentsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListEnvironmentsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponse.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponse.java index bc8498e8..680ba56f 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponse.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponse.java @@ -54,81 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListEnvironmentsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - environments_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - environments_.add( - input.readMessage( - com.google.cloud.notebooks.v1.Environment.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - environments_ = java.util.Collections.unmodifiableList(environments_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_descriptor; @@ -348,7 +273,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < unreachable_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -371,7 +296,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUnreachableList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -390,7 +315,7 @@ public boolean equals(final java.lang.Object obj) { if (!getEnvironmentsList().equals(other.getEnvironmentsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -411,7 +336,7 @@ public int hashCode() { hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; hash = (53 * hash) + getUnreachableList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -541,19 +466,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.ListEnvironmentsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getEnvironmentsFieldBuilder(); - } } @java.lang.Override @@ -561,10 +477,11 @@ public Builder clear() { super.clear(); if (environmentsBuilder_ == null) { environments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + environments_ = null; environmentsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -703,7 +620,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ListEnvironmentsResponse } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -718,18 +635,57 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ListEnvironmentsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.notebooks.v1.Environment m = + input.readMessage( + com.google.cloud.notebooks.v1.Environment.parser(), extensionRegistry); + if (environmentsBuilder_ == null) { + ensureEnvironmentsIsMutable(); + environments_.add(m); + } else { + environmentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.ListEnvironmentsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1397,7 +1353,18 @@ public ListEnvironmentsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListEnvironmentsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequest.java index a9999c3d..94dd0ff7 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequest.java @@ -55,78 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListExecutionsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_descriptor; @@ -397,7 +325,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -421,7 +349,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -442,7 +370,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPageToken().equals(other.getPageToken())) return false; if (!getFilter().equals(other.getFilter())) return false; if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -463,7 +391,7 @@ public int hashCode() { hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -592,17 +520,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.ListExecutionsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -719,7 +640,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ListExecutionsRequest oth orderBy_ = other.orderBy_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -734,18 +655,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ListExecutionsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.ListExecutionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1287,7 +1251,18 @@ public ListExecutionsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListExecutionsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponse.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponse.java index 33e08890..729d2ea1 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponse.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponse.java @@ -54,80 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListExecutionsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - executions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - executions_.add( - input.readMessage( - com.google.cloud.notebooks.v1.Execution.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - executions_ = java.util.Collections.unmodifiableList(executions_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_descriptor; @@ -355,7 +281,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < unreachable_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -378,7 +304,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUnreachableList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -397,7 +323,7 @@ public boolean equals(final java.lang.Object obj) { if (!getExecutionsList().equals(other.getExecutionsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -418,7 +344,7 @@ public int hashCode() { hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; hash = (53 * hash) + getUnreachableList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -547,19 +473,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.ListExecutionsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getExecutionsFieldBuilder(); - } } @java.lang.Override @@ -567,10 +484,11 @@ public Builder clear() { super.clear(); if (executionsBuilder_ == null) { executions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + executions_ = null; executionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -709,7 +627,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ListExecutionsResponse ot } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -724,18 +642,57 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ListExecutionsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.notebooks.v1.Execution m = + input.readMessage( + com.google.cloud.notebooks.v1.Execution.parser(), extensionRegistry); + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(m); + } else { + executionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.ListExecutionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1419,7 +1376,18 @@ public ListExecutionsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListExecutionsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequest.java index 2c78005c..910606fe 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequest.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListInstancesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_ListInstancesRequest_descriptor; @@ -269,7 +211,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -287,7 +229,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -306,7 +248,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -323,7 +265,7 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -452,17 +394,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.ListInstancesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -565,7 +500,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ListInstancesRequest othe pageToken_ = other.pageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -580,18 +515,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ListInstancesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.ListInstancesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -901,7 +867,18 @@ public ListInstancesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponse.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponse.java index f728393a..4a3c5d12 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponse.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponse.java @@ -54,80 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListInstancesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instances_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - instances_.add( - input.readMessage( - com.google.cloud.notebooks.v1.Instance.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - instances_ = java.util.Collections.unmodifiableList(instances_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_ListInstancesResponse_descriptor; @@ -355,7 +281,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < unreachable_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -378,7 +304,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUnreachableList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -397,7 +323,7 @@ public boolean equals(final java.lang.Object obj) { if (!getInstancesList().equals(other.getInstancesList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -418,7 +344,7 @@ public int hashCode() { hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; hash = (53 * hash) + getUnreachableList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -547,19 +473,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.ListInstancesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getInstancesFieldBuilder(); - } } @java.lang.Override @@ -567,10 +484,11 @@ public Builder clear() { super.clear(); if (instancesBuilder_ == null) { instances_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + instances_ = null; instancesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -709,7 +627,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ListInstancesResponse oth } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -724,18 +642,57 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ListInstancesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.notebooks.v1.Instance m = + input.readMessage( + com.google.cloud.notebooks.v1.Instance.parser(), extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.ListInstancesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1419,7 +1376,18 @@ public ListInstancesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequest.java index 23bdc3de..39195300 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequest.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListRuntimesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.ManagedNotebooksProto .internal_static_google_cloud_notebooks_v1_ListRuntimesRequest_descriptor; @@ -273,7 +215,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -291,7 +233,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -310,7 +252,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -327,7 +269,7 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -456,17 +398,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.ListRuntimesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -569,7 +504,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ListRuntimesRequest other pageToken_ = other.pageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -584,18 +519,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ListRuntimesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.ListRuntimesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -915,7 +881,18 @@ public ListRuntimesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRuntimesRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponse.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponse.java index 12e37ff0..397ffbb2 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponse.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponse.java @@ -54,80 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListRuntimesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - runtimes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - runtimes_.add( - input.readMessage( - com.google.cloud.notebooks.v1.Runtime.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - runtimes_ = java.util.Collections.unmodifiableList(runtimes_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.ManagedNotebooksProto .internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_descriptor; @@ -355,7 +281,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < unreachable_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -378,7 +304,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUnreachableList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -397,7 +323,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRuntimesList().equals(other.getRuntimesList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -418,7 +344,7 @@ public int hashCode() { hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; hash = (53 * hash) + getUnreachableList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -547,19 +473,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.ListRuntimesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getRuntimesFieldBuilder(); - } } @java.lang.Override @@ -567,10 +484,11 @@ public Builder clear() { super.clear(); if (runtimesBuilder_ == null) { runtimes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + runtimes_ = null; runtimesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -709,7 +627,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ListRuntimesResponse othe } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -724,18 +642,57 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ListRuntimesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.notebooks.v1.Runtime m = + input.readMessage( + com.google.cloud.notebooks.v1.Runtime.parser(), extensionRegistry); + if (runtimesBuilder_ == null) { + ensureRuntimesIsMutable(); + runtimes_.add(m); + } else { + runtimesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.ListRuntimesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1418,7 +1375,18 @@ public ListRuntimesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRuntimesResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequest.java index 739d8fd6..6e7d50ed 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequest.java @@ -55,78 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListSchedulesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_descriptor; @@ -393,7 +321,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -417,7 +345,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -438,7 +366,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPageToken().equals(other.getPageToken())) return false; if (!getFilter().equals(other.getFilter())) return false; if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -459,7 +387,7 @@ public int hashCode() { hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -588,17 +516,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.ListSchedulesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -715,7 +636,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ListSchedulesRequest othe orderBy_ = other.orderBy_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -730,18 +651,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ListSchedulesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.ListSchedulesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1273,7 +1237,18 @@ public ListSchedulesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSchedulesRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponse.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponse.java index 99dc7b51..6963f4e2 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponse.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponse.java @@ -54,80 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListSchedulesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - schedules_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - schedules_.add( - input.readMessage( - com.google.cloud.notebooks.v1.Schedule.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - schedules_ = java.util.Collections.unmodifiableList(schedules_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_descriptor; @@ -355,7 +281,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < unreachable_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -378,7 +304,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUnreachableList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -397,7 +323,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSchedulesList().equals(other.getSchedulesList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -418,7 +344,7 @@ public int hashCode() { hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; hash = (53 * hash) + getUnreachableList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -547,19 +473,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.ListSchedulesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSchedulesFieldBuilder(); - } } @java.lang.Override @@ -567,10 +484,11 @@ public Builder clear() { super.clear(); if (schedulesBuilder_ == null) { schedules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + schedules_ = null; schedulesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -709,7 +627,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ListSchedulesResponse oth } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -724,18 +642,57 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ListSchedulesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.notebooks.v1.Schedule m = + input.readMessage( + com.google.cloud.notebooks.v1.Schedule.parser(), extensionRegistry); + if (schedulesBuilder_ == null) { + ensureSchedulesIsMutable(); + schedules_.add(m); + } else { + schedulesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.ListSchedulesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1419,7 +1376,18 @@ public ListSchedulesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSchedulesResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDisk.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDisk.java index d59797c3..0afbc9bb 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDisk.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDisk.java @@ -59,150 +59,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private LocalDisk( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - autoDelete_ = input.readBool(); - break; - } - case 16: - { - boot_ = input.readBool(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - deviceName_ = s; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - guestOsFeatures_ = - new java.util.ArrayList< - com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature>(); - mutable_bitField0_ |= 0x00000001; - } - guestOsFeatures_.add( - input.readMessage( - com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.parser(), - extensionRegistry)); - break; - } - case 40: - { - index_ = input.readInt32(); - break; - } - case 50: - { - com.google.cloud.notebooks.v1.LocalDiskInitializeParams.Builder subBuilder = null; - if (initializeParams_ != null) { - subBuilder = initializeParams_.toBuilder(); - } - initializeParams_ = - input.readMessage( - com.google.cloud.notebooks.v1.LocalDiskInitializeParams.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(initializeParams_); - initializeParams_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - interface_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - kind_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - licenses_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - licenses_.add(s); - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - - mode_ = s; - break; - } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - - source_ = s; - break; - } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - guestOsFeatures_ = java.util.Collections.unmodifiableList(guestOsFeatures_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - licenses_ = licenses_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.RuntimeProto .internal_static_google_cloud_notebooks_v1_LocalDisk_descriptor; @@ -305,52 +161,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RuntimeGuestOsFeature( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.RuntimeProto .internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_descriptor; @@ -450,7 +260,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -462,7 +272,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -479,7 +289,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature) obj; if (!getType().equals(other.getType())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -492,7 +302,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -629,17 +439,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -734,7 +537,7 @@ public Builder mergeFrom( type_ = other.type_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -749,19 +552,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + type_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -951,7 +772,19 @@ public RuntimeGuestOsFeature parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RuntimeGuestOsFeature(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -1641,7 +1474,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, type_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1691,7 +1524,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, type_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1721,7 +1554,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMode().equals(other.getMode())) return false; if (!getSource().equals(other.getSource())) return false; if (!getType().equals(other.getType())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1762,7 +1595,7 @@ public int hashCode() { hash = (53 * hash) + getSource().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1891,19 +1724,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.LocalDisk.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getGuestOsFeaturesFieldBuilder(); - } } @java.lang.Override @@ -1917,10 +1741,11 @@ public Builder clear() { if (guestOsFeaturesBuilder_ == null) { guestOsFeatures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + guestOsFeatures_ = null; guestOsFeaturesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); index_ = 0; if (initializeParamsBuilder_ == null) { @@ -2119,7 +1944,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.LocalDisk other) { type_ = other.type_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2134,17 +1959,113 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.LocalDisk parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + autoDelete_ = input.readBool(); + + break; + } // case 8 + case 16: + { + boot_ = input.readBool(); + + break; + } // case 16 + case 26: + { + deviceName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature m = + input.readMessage( + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.parser(), + extensionRegistry); + if (guestOsFeaturesBuilder_ == null) { + ensureGuestOsFeaturesIsMutable(); + guestOsFeatures_.add(m); + } else { + guestOsFeaturesBuilder_.addMessage(m); + } + break; + } // case 34 + case 40: + { + index_ = input.readInt32(); + + break; + } // case 40 + case 50: + { + input.readMessage( + getInitializeParamsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + interface_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + kind_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLicensesIsMutable(); + licenses_.add(s); + break; + } // case 74 + case 82: + { + mode_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: + { + source_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: + { + type_ = input.readStringRequireUtf8(); + + break; + } // case 98 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.LocalDisk) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3956,7 +3877,18 @@ public LocalDisk parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new LocalDisk(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParams.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParams.java index a10202f7..aab1baf8 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParams.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParams.java @@ -58,85 +58,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private LocalDiskInitializeParams( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - diskName_ = s; - break; - } - case 24: - { - diskSizeGb_ = input.readInt64(); - break; - } - case 32: - { - int rawValue = input.readEnum(); - - diskType_ = rawValue; - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.RuntimeProto .internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_descriptor; @@ -664,7 +585,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -697,7 +618,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -718,7 +639,7 @@ public boolean equals(final java.lang.Object obj) { if (getDiskSizeGb() != other.getDiskSizeGb()) return false; if (diskType_ != other.diskType_) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -741,7 +662,7 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -895,17 +816,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.notebooks.v1.LocalDiskInitializeParams.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1019,7 +933,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.LocalDiskInitializeParams setDiskTypeValue(other.getDiskTypeValue()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1034,18 +948,66 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.LocalDiskInitializeParams parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + diskName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + diskSizeGb_ = input.readInt64(); + + break; + } // case 24 + case 32: + { + diskType_ = input.readEnum(); + + break; + } // case 32 + case 42: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.LocalDiskInitializeParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1637,7 +1599,18 @@ public LocalDiskInitializeParams parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new LocalDiskInitializeParams(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadata.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadata.java index 3983dd33..360591ed 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadata.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadata.java @@ -56,115 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private OperationMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - statusMessage_ = s; - break; - } - case 48: - { - requestedCancellation_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - apiVersion_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - endpoint_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_OperationMetadata_descriptor; @@ -576,7 +467,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, endpoint_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -609,7 +500,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, endpoint_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -639,7 +530,7 @@ public boolean equals(final java.lang.Object obj) { if (getRequestedCancellation() != other.getRequestedCancellation()) return false; if (!getApiVersion().equals(other.getApiVersion())) return false; if (!getEndpoint().equals(other.getEndpoint())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -670,7 +561,7 @@ public int hashCode() { hash = (53 * hash) + getApiVersion().hashCode(); hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getEndpoint().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -799,17 +690,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.OperationMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -961,7 +845,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.OperationMetadata other) endpoint_ = other.endpoint_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -976,17 +860,79 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.OperationMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + endpoint_ = input.readStringRequireUtf8(); + + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1975,7 +1921,18 @@ public OperationMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalRequest.java index 83b10e02..de0678e3 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalRequest.java @@ -54,59 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RefreshRuntimeTokenInternalRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - vmId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.ManagedNotebooksProto .internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_descriptor; @@ -248,7 +195,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vmId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -263,7 +210,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vmId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -281,7 +228,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getVmId().equals(other.getVmId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -296,7 +243,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VM_ID_FIELD_NUMBER; hash = (53 * hash) + getVmId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -426,17 +373,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -536,7 +476,7 @@ public Builder mergeFrom( vmId_ = other.vmId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -551,19 +491,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + vmId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -833,7 +797,18 @@ public RefreshRuntimeTokenInternalRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RefreshRuntimeTokenInternalRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalResponse.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalResponse.java index 393c8477..df4d19da 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalResponse.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalResponse.java @@ -54,67 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RefreshRuntimeTokenInternalResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - accessToken_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expireTime_ != null) { - subBuilder = expireTime_.toBuilder(); - } - expireTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expireTime_); - expireTime_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.ManagedNotebooksProto .internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_descriptor; @@ -248,7 +187,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (expireTime_ != null) { output.writeMessage(2, getExpireTime()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -263,7 +202,7 @@ public int getSerializedSize() { if (expireTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -284,7 +223,7 @@ public boolean equals(final java.lang.Object obj) { if (hasExpireTime()) { if (!getExpireTime().equals(other.getExpireTime())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -301,7 +240,7 @@ public int hashCode() { hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; hash = (53 * hash) + getExpireTime().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -433,17 +372,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -550,7 +482,7 @@ public Builder mergeFrom( if (other.hasExpireTime()) { mergeExpireTime(other.getExpireTime()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -565,19 +497,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + accessToken_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -922,7 +878,18 @@ public RefreshRuntimeTokenInternalResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RefreshRuntimeTokenInternalResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequest.java index a08c2f87..b5b66402 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequest.java @@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RegisterInstanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - instanceId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_descriptor; @@ -247,7 +194,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -262,7 +209,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -280,7 +227,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (!getInstanceId().equals(other.getInstanceId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -295,7 +242,7 @@ public int hashCode() { hash = (53 * hash) + getParent().hashCode(); hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -425,17 +372,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.RegisterInstanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -532,7 +472,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.RegisterInstanceRequest o instanceId_ = other.instanceId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -547,18 +487,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.RegisterInstanceRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + instanceId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.RegisterInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -826,7 +791,18 @@ public RegisterInstanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RegisterInstanceRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequest.java index bb84fd32..917cf296 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequest.java @@ -53,75 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ReportInstanceInfoRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - vmId_ = s; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - metadata_ = - com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_descriptor; @@ -375,7 +306,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 3); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -400,7 +331,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metadata__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -419,7 +350,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getVmId().equals(other.getVmId())) return false; if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -438,7 +369,7 @@ public int hashCode() { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -588,17 +519,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.notebooks.v1.ReportInstanceInfoRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -700,7 +624,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ReportInstanceInfoRequest onChanged(); } internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -715,18 +639,54 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ReportInstanceInfoRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + vmId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMetadata() + .getMutableMap() + .put(metadata__.getKey(), metadata__.getValue()); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.ReportInstanceInfoRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1152,7 +1112,18 @@ public ReportInstanceInfoRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ReportInstanceInfoRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequest.java index 6c65583a..71e2b6a1 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequest.java @@ -53,75 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ReportRuntimeEventRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - vmId_ = s; - break; - } - case 26: - { - com.google.cloud.notebooks.v1.Event.Builder subBuilder = null; - if (event_ != null) { - subBuilder = event_.toBuilder(); - } - event_ = - input.readMessage( - com.google.cloud.notebooks.v1.Event.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(event_); - event_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.ManagedNotebooksProto .internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_descriptor; @@ -315,7 +246,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (event_ != null) { output.writeMessage(3, getEvent()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -333,7 +264,7 @@ public int getSerializedSize() { if (event_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEvent()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -355,7 +286,7 @@ public boolean equals(final java.lang.Object obj) { if (hasEvent()) { if (!getEvent().equals(other.getEvent())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -374,7 +305,7 @@ public int hashCode() { hash = (37 * hash) + EVENT_FIELD_NUMBER; hash = (53 * hash) + getEvent().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -504,17 +435,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.ReportRuntimeEventRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -625,7 +549,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ReportRuntimeEventRequest if (other.hasEvent()) { mergeEvent(other.getEvent()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -640,18 +564,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ReportRuntimeEventRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + vmId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getEventFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.ReportRuntimeEventRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1109,7 +1064,18 @@ public ReportRuntimeEventRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ReportRuntimeEventRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinity.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinity.java index 76790e5c..f3f52e71 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinity.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinity.java @@ -54,73 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ReservationAffinity( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - consumeReservationType_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - values_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.InstanceProto .internal_static_google_cloud_notebooks_v1_ReservationAffinity_descriptor; @@ -495,7 +428,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, values_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -519,7 +452,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getValuesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -538,7 +471,7 @@ public boolean equals(final java.lang.Object obj) { if (consumeReservationType_ != other.consumeReservationType_) return false; if (!getKey().equals(other.getKey())) return false; if (!getValuesList().equals(other.getValuesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -557,7 +490,7 @@ public int hashCode() { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -686,17 +619,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.ReservationAffinity.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -810,7 +736,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ReservationAffinity other } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -825,18 +751,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ReservationAffinity parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + consumeReservationType_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + key_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.ReservationAffinity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1252,7 +1210,18 @@ public ReservationAffinity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ReservationAffinity(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequest.java index 22c46ffc..7acd60d5 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ResetInstanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.ResetInstanceRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -352,17 +306,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.ResetInstanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -452,7 +399,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ResetInstanceRequest othe name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -467,18 +414,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ResetInstanceRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.ResetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -625,7 +591,18 @@ public ResetInstanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ResetInstanceRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequest.java index 76078bb0..e64566b6 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequest.java @@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ResetRuntimeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.ManagedNotebooksProto .internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_descriptor; @@ -241,7 +188,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -256,7 +203,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -274,7 +221,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getRequestId().equals(other.getRequestId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -289,7 +236,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -418,17 +365,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.ResetRuntimeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -525,7 +465,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ResetRuntimeRequest other requestId_ = other.requestId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -540,18 +480,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.ResetRuntimeRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.ResetRuntimeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -804,7 +769,18 @@ public ResetRuntimeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ResetRuntimeRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequest.java index 533f91a8..6e0a6625 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequest.java @@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RollbackInstanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - targetSnapshot_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_descriptor; @@ -243,7 +190,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetSnapshot_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetSnapshot_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -258,7 +205,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetSnapshot_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetSnapshot_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -276,7 +223,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getTargetSnapshot().equals(other.getTargetSnapshot())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -291,7 +238,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + TARGET_SNAPSHOT_FIELD_NUMBER; hash = (53 * hash) + getTargetSnapshot().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -421,17 +368,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.RollbackInstanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -528,7 +468,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.RollbackInstanceRequest o targetSnapshot_ = other.targetSnapshot_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -543,18 +483,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.RollbackInstanceRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + targetSnapshot_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.RollbackInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -812,7 +777,18 @@ public RollbackInstanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RollbackInstanceRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Runtime.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Runtime.java index acc40b8d..7efa3d31 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Runtime.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Runtime.java @@ -54,163 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Runtime( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.cloud.notebooks.v1.VirtualMachine.Builder subBuilder = null; - if (runtimeTypeCase_ == 2) { - subBuilder = - ((com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_).toBuilder(); - } - runtimeType_ = - input.readMessage( - com.google.cloud.notebooks.v1.VirtualMachine.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_); - runtimeType_ = subBuilder.buildPartial(); - } - runtimeTypeCase_ = 2; - break; - } - case 24: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 32: - { - int rawValue = input.readEnum(); - - healthState_ = rawValue; - break; - } - case 42: - { - com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder subBuilder = null; - if (accessConfig_ != null) { - subBuilder = accessConfig_.toBuilder(); - } - accessConfig_ = - input.readMessage( - com.google.cloud.notebooks.v1.RuntimeAccessConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(accessConfig_); - accessConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder subBuilder = null; - if (softwareConfig_ != null) { - subBuilder = softwareConfig_.toBuilder(); - } - softwareConfig_ = - input.readMessage( - com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(softwareConfig_); - softwareConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - com.google.cloud.notebooks.v1.RuntimeMetrics.Builder subBuilder = null; - if (metrics_ != null) { - subBuilder = metrics_.toBuilder(); - } - metrics_ = - input.readMessage( - com.google.cloud.notebooks.v1.RuntimeMetrics.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metrics_); - metrics_ = subBuilder.buildPartial(); - } - - break; - } - case 162: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 170: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.RuntimeProto .internal_static_google_cloud_notebooks_v1_Runtime_descriptor; @@ -1251,7 +1094,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(21, getUpdateTime()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1290,7 +1133,7 @@ public int getSerializedSize() { if (updateTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getUpdateTime()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1336,7 +1179,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1381,7 +1224,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1509,17 +1352,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.Runtime.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1527,6 +1363,9 @@ public Builder clear() { super.clear(); name_ = ""; + if (virtualMachineBuilder_ != null) { + virtualMachineBuilder_.clear(); + } state_ = 0; healthState_ = 0; @@ -1711,7 +1550,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.Runtime other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1726,17 +1565,85 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.Runtime parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getVirtualMachineFieldBuilder().getBuilder(), extensionRegistry); + runtimeTypeCase_ = 2; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + + break; + } // case 24 + case 32: + { + healthState_ = input.readEnum(); + + break; + } // case 32 + case 42: + { + input.readMessage(getAccessConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + input.readMessage(getSoftwareConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + input.readMessage(getMetricsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 162: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 162 + case 170: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 170 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.Runtime) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3304,7 +3211,18 @@ public Runtime parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Runtime(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAcceleratorConfig.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAcceleratorConfig.java index 5281e655..1bc62d9f 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAcceleratorConfig.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAcceleratorConfig.java @@ -62,57 +62,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RuntimeAcceleratorConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 16: - { - coreCount_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.RuntimeProto .internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_descriptor; @@ -566,7 +515,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (coreCount_ != 0L) { output.writeInt64(2, coreCount_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -584,7 +533,7 @@ public int getSerializedSize() { if (coreCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, coreCount_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -602,7 +551,7 @@ public boolean equals(final java.lang.Object obj) { if (type_ != other.type_) return false; if (getCoreCount() != other.getCoreCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -617,7 +566,7 @@ public int hashCode() { hash = (53 * hash) + type_; hash = (37 * hash) + CORE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCoreCount()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -757,17 +706,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -862,7 +804,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig if (other.getCoreCount() != 0L) { setCoreCount(other.getCoreCount()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -877,18 +819,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + type_ = input.readEnum(); + + break; + } // case 8 + case 16: + { + coreCount_ = input.readInt64(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1070,7 +1037,18 @@ public RuntimeAcceleratorConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RuntimeAcceleratorConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfig.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfig.java index e8c968a3..3570e6df 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfig.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfig.java @@ -54,66 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RuntimeAccessConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - accessType_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - runtimeOwner_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - proxyUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.RuntimeProto .internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_descriptor; @@ -462,7 +402,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(proxyUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, proxyUri_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -483,7 +423,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(proxyUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, proxyUri_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -502,7 +442,7 @@ public boolean equals(final java.lang.Object obj) { if (accessType_ != other.accessType_) return false; if (!getRuntimeOwner().equals(other.getRuntimeOwner())) return false; if (!getProxyUri().equals(other.getProxyUri())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -519,7 +459,7 @@ public int hashCode() { hash = (53 * hash) + getRuntimeOwner().hashCode(); hash = (37 * hash) + PROXY_URI_FIELD_NUMBER; hash = (53 * hash) + getProxyUri().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -648,17 +588,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.RuntimeAccessConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -761,7 +694,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.RuntimeAccessConfig other proxyUri_ = other.proxyUri_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -776,18 +709,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.RuntimeAccessConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + accessType_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + runtimeOwner_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + proxyUri_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.RuntimeAccessConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1139,7 +1103,18 @@ public RuntimeAccessConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RuntimeAccessConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeMetrics.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeMetrics.java index 321c05e3..5400e732 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeMetrics.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeMetrics.java @@ -50,63 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RuntimeMetrics( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - systemMetrics_ = - com.google.protobuf.MapField.newMapField( - SystemMetricsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry systemMetrics__ = - input.readMessage( - SystemMetricsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - systemMetrics_ - .getMutableMap() - .put(systemMetrics__.getKey(), systemMetrics__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.RuntimeProto .internal_static_google_cloud_notebooks_v1_RuntimeMetrics_descriptor; @@ -258,7 +201,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetSystemMetrics(), SystemMetricsDefaultEntryHolder.defaultEntry, 1); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -277,7 +220,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, systemMetrics__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -294,7 +237,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.RuntimeMetrics) obj; if (!internalGetSystemMetrics().equals(other.internalGetSystemMetrics())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -309,7 +252,7 @@ public int hashCode() { hash = (37 * hash) + SYSTEM_METRICS_FIELD_NUMBER; hash = (53 * hash) + internalGetSystemMetrics().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -458,17 +401,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.notebooks.v1.RuntimeMetrics.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -555,7 +491,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.notebooks.v1.RuntimeMetrics other) { if (other == com.google.cloud.notebooks.v1.RuntimeMetrics.getDefaultInstance()) return this; internalGetMutableSystemMetrics().mergeFrom(other.internalGetSystemMetrics()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -570,17 +506,42 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.RuntimeMetrics parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry systemMetrics__ = + input.readMessage( + SystemMetricsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableSystemMetrics() + .getMutableMap() + .put(systemMetrics__.getKey(), systemMetrics__.getValue()); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.RuntimeMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -793,7 +754,18 @@ public RuntimeMetrics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RuntimeMetrics(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeShieldedInstanceConfig.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeShieldedInstanceConfig.java index b8262b5d..b8f2077c 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeShieldedInstanceConfig.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeShieldedInstanceConfig.java @@ -53,60 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RuntimeShieldedInstanceConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enableSecureBoot_ = input.readBool(); - break; - } - case 16: - { - enableVtpm_ = input.readBool(); - break; - } - case 24: - { - enableIntegrityMonitoring_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.RuntimeProto .internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_descriptor; @@ -206,7 +152,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableIntegrityMonitoring_ != false) { output.writeBool(3, enableIntegrityMonitoring_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -224,7 +170,7 @@ public int getSerializedSize() { if (enableIntegrityMonitoring_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableIntegrityMonitoring_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -243,7 +189,7 @@ public boolean equals(final java.lang.Object obj) { if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; if (getEnableVtpm() != other.getEnableVtpm()) return false; if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -260,7 +206,7 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -393,17 +339,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -504,7 +443,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.RuntimeShieldedInstanceCo if (other.getEnableIntegrityMonitoring() != false) { setEnableIntegrityMonitoring(other.getEnableIntegrityMonitoring()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -519,18 +458,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enableSecureBoot_ = input.readBool(); + + break; + } // case 8 + case 16: + { + enableVtpm_ = input.readBool(); + + break; + } // case 16 + case 24: + { + enableIntegrityMonitoring_ = input.readBool(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -743,7 +713,18 @@ public RuntimeShieldedInstanceConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RuntimeShieldedInstanceConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfig.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfig.java index 91a035f9..9c0ed0d7 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfig.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfig.java @@ -60,109 +60,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RuntimeSoftwareConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - notebookUpgradeSchedule_ = s; - break; - } - case 16: - { - bitField0_ |= 0x00000001; - enableHealthMonitoring_ = input.readBool(); - break; - } - case 24: - { - bitField0_ |= 0x00000002; - idleShutdown_ = input.readBool(); - break; - } - case 32: - { - idleShutdownTimeout_ = input.readInt32(); - break; - } - case 40: - { - installGpuDriver_ = input.readBool(); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - customGpuDriverPath_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - postStartupScript_ = s; - break; - } - case 66: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - kernels_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - kernels_.add( - input.readMessage( - com.google.cloud.notebooks.v1.ContainerImage.parser(), extensionRegistry)); - break; - } - case 72: - { - bitField0_ |= 0x00000004; - upgradeable_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - kernels_ = java.util.Collections.unmodifiableList(kernels_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.RuntimeProto .internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_descriptor; @@ -594,7 +491,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(9, upgradeable_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -630,7 +527,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, upgradeable_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -664,7 +561,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpgradeable()) { if (getUpgradeable() != other.getUpgradeable()) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -701,7 +598,7 @@ public int hashCode() { hash = (37 * hash) + UPGRADEABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUpgradeable()); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -835,19 +732,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getKernelsFieldBuilder(); - } } @java.lang.Override @@ -869,10 +757,11 @@ public Builder clear() { if (kernelsBuilder_ == null) { kernels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); } else { + kernels_ = null; kernelsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); upgradeable_ = false; bitField0_ = (bitField0_ & ~0x00000008); return this; @@ -1035,7 +924,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.RuntimeSoftwareConfig oth if (other.hasUpgradeable()) { setUpgradeable(other.getUpgradeable()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1050,18 +939,92 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.RuntimeSoftwareConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + notebookUpgradeSchedule_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + enableHealthMonitoring_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 16 + case 24: + { + idleShutdown_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: + { + idleShutdownTimeout_ = input.readInt32(); + + break; + } // case 32 + case 40: + { + installGpuDriver_ = input.readBool(); + + break; + } // case 40 + case 50: + { + customGpuDriverPath_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + postStartupScript_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + com.google.cloud.notebooks.v1.ContainerImage m = + input.readMessage( + com.google.cloud.notebooks.v1.ContainerImage.parser(), extensionRegistry); + if (kernelsBuilder_ == null) { + ensureKernelsIsMutable(); + kernels_.add(m); + } else { + kernelsBuilder_.addMessage(m); + } + break; + } // case 66 + case 72: + { + upgradeable_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.RuntimeSoftwareConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2139,7 +2102,18 @@ public RuntimeSoftwareConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RuntimeSoftwareConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Schedule.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Schedule.java index 76e4814d..b531feb9 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Schedule.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Schedule.java @@ -58,149 +58,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Schedule( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 32: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - cronSchedule_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - timeZone_ = s; - break; - } - case 58: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 66: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 74: - { - com.google.cloud.notebooks.v1.ExecutionTemplate.Builder subBuilder = null; - if (executionTemplate_ != null) { - subBuilder = executionTemplate_.toBuilder(); - } - executionTemplate_ = - input.readMessage( - com.google.cloud.notebooks.v1.ExecutionTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionTemplate_); - executionTemplate_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - recentExecutions_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - recentExecutions_.add( - input.readMessage( - com.google.cloud.notebooks.v1.Execution.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - recentExecutions_ = java.util.Collections.unmodifiableList(recentExecutions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.ScheduleProto .internal_static_google_cloud_notebooks_v1_Schedule_descriptor; @@ -1038,7 +895,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < recentExecutions_.size(); i++) { output.writeMessage(10, recentExecutions_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1078,7 +935,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, recentExecutions_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1112,7 +969,7 @@ public boolean equals(final java.lang.Object obj) { if (!getExecutionTemplate().equals(other.getExecutionTemplate())) return false; } if (!getRecentExecutionsList().equals(other.getRecentExecutionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1151,7 +1008,7 @@ public int hashCode() { hash = (37 * hash) + RECENT_EXECUTIONS_FIELD_NUMBER; hash = (53 * hash) + getRecentExecutionsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1280,19 +1137,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.Schedule.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getRecentExecutionsFieldBuilder(); - } } @java.lang.Override @@ -1330,10 +1178,11 @@ public Builder clear() { } if (recentExecutionsBuilder_ == null) { recentExecutions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + recentExecutions_ = null; recentExecutionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -1500,7 +1349,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.Schedule other) { } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1515,17 +1364,99 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.Schedule parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + + break; + } // case 32 + case 42: + { + cronSchedule_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + timeZone_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 66: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 74: + { + input.readMessage( + getExecutionTemplateFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + com.google.cloud.notebooks.v1.Execution m = + input.readMessage( + com.google.cloud.notebooks.v1.Execution.parser(), extensionRegistry); + if (recentExecutionsBuilder_ == null) { + ensureRecentExecutionsIsMutable(); + recentExecutions_.add(m); + } else { + recentExecutionsBuilder_.addMessage(m); + } + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.Schedule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3212,7 +3143,18 @@ public Schedule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequest.java index 63ef4fcc..c9c64e0a 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequest.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SetInstanceAcceleratorRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 24: - { - coreCount_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_descriptor; @@ -265,7 +207,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (coreCount_ != 0L) { output.writeInt64(3, coreCount_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -285,7 +227,7 @@ public int getSerializedSize() { if (coreCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, coreCount_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -304,7 +246,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; if (getCoreCount() != other.getCoreCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -321,7 +263,7 @@ public int hashCode() { hash = (53 * hash) + type_; hash = (37 * hash) + CORE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCoreCount()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -451,17 +393,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -563,7 +498,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.SetInstanceAcceleratorReq if (other.getCoreCount() != 0L) { setCoreCount(other.getCoreCount()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -578,18 +513,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + + break; + } // case 16 + case 24: + { + coreCount_ = input.readInt64(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -900,7 +866,18 @@ public SetInstanceAcceleratorRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SetInstanceAcceleratorRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequest.java index 71bdd986..e4322d4a 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequest.java @@ -52,66 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SetInstanceLabelsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_descriptor; @@ -310,7 +250,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -332,7 +272,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -350,7 +290,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -367,7 +307,7 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -517,17 +457,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.notebooks.v1.SetInstanceLabelsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -622,7 +555,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.SetInstanceLabelsRequest onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -637,18 +570,48 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.SetInstanceLabelsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.SetInstanceLabelsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -962,7 +925,18 @@ public SetInstanceLabelsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SetInstanceLabelsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequest.java index 968b316f..1e948e1f 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequest.java @@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SetInstanceMachineTypeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - machineType_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_descriptor; @@ -243,7 +190,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, machineType_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -258,7 +205,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, machineType_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -276,7 +223,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getMachineType().equals(other.getMachineType())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -291,7 +238,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getMachineType().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -421,17 +368,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -528,7 +468,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.SetInstanceMachineTypeReq machineType_ = other.machineType_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -543,18 +483,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + machineType_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -812,7 +777,18 @@ public SetInstanceMachineTypeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SetInstanceMachineTypeRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequest.java index 7df9433b..33490af4 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private StartInstanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_StartInstanceRequest_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.StartInstanceRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -352,17 +306,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.StartInstanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -452,7 +399,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.StartInstanceRequest othe name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -467,18 +414,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.StartInstanceRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.StartInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -625,7 +591,18 @@ public StartInstanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StartInstanceRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequest.java index 3eb8bb38..404f223f 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequest.java @@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private StartRuntimeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.ManagedNotebooksProto .internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_descriptor; @@ -241,7 +188,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -256,7 +203,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -274,7 +221,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getRequestId().equals(other.getRequestId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -289,7 +236,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -418,17 +365,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.StartRuntimeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -525,7 +465,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.StartRuntimeRequest other requestId_ = other.requestId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -540,18 +480,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.StartRuntimeRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.StartRuntimeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -804,7 +769,18 @@ public StartRuntimeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StartRuntimeRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequest.java index 533a4f94..50f66186 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private StopInstanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_StopInstanceRequest_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.StopInstanceRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -352,17 +306,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.StopInstanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -452,7 +399,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.StopInstanceRequest other name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -467,18 +414,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.StopInstanceRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.StopInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -625,7 +591,18 @@ public StopInstanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StopInstanceRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequest.java index 9e850a0f..05538379 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequest.java @@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private StopRuntimeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.ManagedNotebooksProto .internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_descriptor; @@ -241,7 +188,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -256,7 +203,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -274,7 +221,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getRequestId().equals(other.getRequestId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -289,7 +236,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -418,17 +365,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.StopRuntimeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -525,7 +465,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.StopRuntimeRequest other) requestId_ = other.requestId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -540,17 +480,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.StopRuntimeRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.StopRuntimeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -803,7 +769,18 @@ public StopRuntimeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StopRuntimeRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequest.java index 83f87e8f..de8e2adb 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequest.java @@ -54,83 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SwitchRuntimeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - machineType_ = s; - break; - } - case 26: - { - com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder subBuilder = null; - if (acceleratorConfig_ != null) { - subBuilder = acceleratorConfig_.toBuilder(); - } - acceleratorConfig_ = - input.readMessage( - com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(acceleratorConfig_); - acceleratorConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.ManagedNotebooksProto .internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_descriptor; @@ -370,7 +293,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -391,7 +314,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -414,7 +337,7 @@ public boolean equals(final java.lang.Object obj) { if (!getAcceleratorConfig().equals(other.getAcceleratorConfig())) return false; } if (!getRequestId().equals(other.getRequestId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -435,7 +358,7 @@ public int hashCode() { } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -564,17 +487,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.SwitchRuntimeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -692,7 +608,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.SwitchRuntimeRequest othe requestId_ = other.requestId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -707,18 +623,56 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.SwitchRuntimeRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + machineType_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage( + getAcceleratorConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.SwitchRuntimeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1267,7 +1221,18 @@ public SwitchRuntimeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SwitchRuntimeRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequest.java index 84430dc1..07e21712 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private TriggerScheduleRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.TriggerScheduleRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.TriggerScheduleRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -456,7 +403,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.TriggerScheduleRequest ot name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -471,18 +418,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.TriggerScheduleRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.TriggerScheduleRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -639,7 +605,18 @@ public TriggerScheduleRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TriggerScheduleRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequest.java index f4b1da3d..8b4e8bec 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequest.java @@ -52,68 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateInstanceConfigRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.cloud.notebooks.v1.InstanceConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = - input.readMessage( - com.google.cloud.notebooks.v1.InstanceConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_descriptor; @@ -248,7 +186,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (config_ != null) { output.writeMessage(2, getConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -263,7 +201,7 @@ public int getSerializedSize() { if (config_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -284,7 +222,7 @@ public boolean equals(final java.lang.Object obj) { if (hasConfig()) { if (!getConfig().equals(other.getConfig())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -301,7 +239,7 @@ public int hashCode() { hash = (37 * hash) + CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfig().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -431,17 +369,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -545,7 +476,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.UpdateInstanceConfigReque if (other.hasConfig()) { mergeConfig(other.getConfig()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -560,18 +491,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -903,7 +859,18 @@ public UpdateInstanceConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateInstanceConfigRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsRequest.java index 26a43fc3..58c069c0 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsRequest.java @@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateInstanceMetadataItemsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = - com.google.protobuf.MapField.newMapField(ItemsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry items__ = - input.readMessage( - ItemsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - items_.getMutableMap().put(items__.getKey(), items__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_descriptor; @@ -307,7 +247,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetItems(), ItemsDefaultEntryHolder.defaultEntry, 2); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -329,7 +269,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, items__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -347,7 +287,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!internalGetItems().equals(other.internalGetItems())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -364,7 +304,7 @@ public int hashCode() { hash = (37 * hash) + ITEMS_FIELD_NUMBER; hash = (53 * hash) + internalGetItems().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -514,17 +454,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -622,7 +555,7 @@ public Builder mergeFrom( onChanged(); } internalGetMutableItems().mergeFrom(other.internalGetItems()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -637,19 +570,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry items__ = + input.readMessage( + ItemsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableItems().getMutableMap().put(items__.getKey(), items__.getValue()); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -957,7 +916,18 @@ public UpdateInstanceMetadataItemsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateInstanceMetadataItemsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsResponse.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsResponse.java index b0cec650..aec4d896 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsResponse.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsResponse.java @@ -52,59 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateInstanceMetadataItemsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - items_ = - com.google.protobuf.MapField.newMapField(ItemsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry items__ = - input.readMessage( - ItemsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - items_.getMutableMap().put(items__.getKey(), items__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_descriptor; @@ -245,7 +192,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetItems(), ItemsDefaultEntryHolder.defaultEntry, 1); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -264,7 +211,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, items__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -281,7 +228,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse) obj; if (!internalGetItems().equals(other.internalGetItems())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -296,7 +243,7 @@ public int hashCode() { hash = (37 * hash) + ITEMS_FIELD_NUMBER; hash = (53 * hash) + internalGetItems().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -448,17 +395,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { // Construct using // com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -549,7 +489,7 @@ public Builder mergeFrom( == com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse.getDefaultInstance()) return this; internalGetMutableItems().mergeFrom(other.internalGetItems()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -564,19 +504,39 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry items__ = + input.readMessage( + ItemsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableItems().getMutableMap().put(items__.getKey(), items__.getValue()); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -773,7 +733,18 @@ public UpdateInstanceMetadataItemsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateInstanceMetadataItemsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequest.java index 179488d9..8b4018be 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequest.java @@ -55,70 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateShieldedInstanceConfigRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder subBuilder = - null; - if (shieldedInstanceConfig_ != null) { - subBuilder = shieldedInstanceConfig_.toBuilder(); - } - shieldedInstanceConfig_ = - input.readMessage( - com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(shieldedInstanceConfig_); - shieldedInstanceConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_descriptor; @@ -257,7 +193,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (shieldedInstanceConfig_ != null) { output.writeMessage(2, getShieldedInstanceConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -273,7 +209,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getShieldedInstanceConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -294,7 +230,7 @@ public boolean equals(final java.lang.Object obj) { if (hasShieldedInstanceConfig()) { if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -311,7 +247,7 @@ public int hashCode() { hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -444,17 +380,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -561,7 +490,7 @@ public Builder mergeFrom( if (other.hasShieldedInstanceConfig()) { mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -576,19 +505,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -947,7 +901,18 @@ public UpdateShieldedInstanceConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateShieldedInstanceConfigRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequest.java index 2ba7680d..3ff7a532 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequest.java @@ -55,66 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpgradeInstanceInternalRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - vmId_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_descriptor; @@ -297,7 +237,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (type_ != com.google.cloud.notebooks.v1.UpgradeType.UPGRADE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, type_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -315,7 +255,7 @@ public int getSerializedSize() { if (type_ != com.google.cloud.notebooks.v1.UpgradeType.UPGRADE_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -334,7 +274,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getVmId().equals(other.getVmId())) return false; if (type_ != other.type_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -351,7 +291,7 @@ public int hashCode() { hash = (53 * hash) + getVmId().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -481,17 +421,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -596,7 +529,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.UpgradeInstanceInternalRe if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -611,18 +544,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + vmId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + type_ = input.readEnum(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -987,7 +951,18 @@ public UpgradeInstanceInternalRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpgradeInstanceInternalRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequest.java index bb8a9d86..1b3cedad 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequest.java @@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpgradeInstanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.NotebooksProto .internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_descriptor; @@ -234,7 +181,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (type_ != com.google.cloud.notebooks.v1.UpgradeType.UPGRADE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -249,7 +196,7 @@ public int getSerializedSize() { if (type_ != com.google.cloud.notebooks.v1.UpgradeType.UPGRADE_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -267,7 +214,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -282,7 +229,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -411,17 +358,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.UpgradeInstanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -517,7 +457,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.UpgradeInstanceRequest ot if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -532,18 +472,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.UpgradeInstanceRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.UpgradeInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -796,7 +761,18 @@ public UpgradeInstanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpgradeInstanceRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachine.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachine.java index a0357467..3c713b94 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachine.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachine.java @@ -53,76 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private VirtualMachine( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - instanceName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - instanceId_ = s; - break; - } - case 26: - { - com.google.cloud.notebooks.v1.VirtualMachineConfig.Builder subBuilder = null; - if (virtualMachineConfig_ != null) { - subBuilder = virtualMachineConfig_.toBuilder(); - } - virtualMachineConfig_ = - input.readMessage( - com.google.cloud.notebooks.v1.VirtualMachineConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(virtualMachineConfig_); - virtualMachineConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.RuntimeProto .internal_static_google_cloud_notebooks_v1_VirtualMachine_descriptor; @@ -308,7 +238,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (virtualMachineConfig_ != null) { output.writeMessage(3, getVirtualMachineConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -327,7 +257,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getVirtualMachineConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -349,7 +279,7 @@ public boolean equals(final java.lang.Object obj) { if (hasVirtualMachineConfig()) { if (!getVirtualMachineConfig().equals(other.getVirtualMachineConfig())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -368,7 +298,7 @@ public int hashCode() { hash = (37 * hash) + VIRTUAL_MACHINE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getVirtualMachineConfig().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -497,17 +427,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.VirtualMachine.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -617,7 +540,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.VirtualMachine other) { if (other.hasVirtualMachineConfig()) { mergeVirtualMachineConfig(other.getVirtualMachineConfig()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -632,17 +555,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.VirtualMachine parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + instanceName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + instanceId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage( + getVirtualMachineConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.VirtualMachine) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1080,7 +1036,18 @@ public VirtualMachine parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VirtualMachine(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfig.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfig.java index d424a1c4..c2691477 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfig.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfig.java @@ -59,250 +59,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private VirtualMachineConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - zone_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - machineType_ = s; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - containerImages_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - containerImages_.add( - input.readMessage( - com.google.cloud.notebooks.v1.ContainerImage.parser(), extensionRegistry)); - break; - } - case 34: - { - com.google.cloud.notebooks.v1.LocalDisk.Builder subBuilder = null; - if (dataDisk_ != null) { - subBuilder = dataDisk_.toBuilder(); - } - dataDisk_ = - input.readMessage( - com.google.cloud.notebooks.v1.LocalDisk.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataDisk_); - dataDisk_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.cloud.notebooks.v1.EncryptionConfig.Builder subBuilder = null; - if (encryptionConfig_ != null) { - subBuilder = encryptionConfig_.toBuilder(); - } - encryptionConfig_ = - input.readMessage( - com.google.cloud.notebooks.v1.EncryptionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(encryptionConfig_); - encryptionConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.Builder subBuilder = null; - if (shieldedInstanceConfig_ != null) { - subBuilder = shieldedInstanceConfig_.toBuilder(); - } - shieldedInstanceConfig_ = - input.readMessage( - com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(shieldedInstanceConfig_); - shieldedInstanceConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder subBuilder = null; - if (acceleratorConfig_ != null) { - subBuilder = acceleratorConfig_.toBuilder(); - } - acceleratorConfig_ = - input.readMessage( - com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(acceleratorConfig_); - acceleratorConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - network_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - subnet_ = s; - break; - } - case 80: - { - internalIpOnly_ = input.readBool(); - break; - } - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - tags_.add(s); - break; - } - case 114: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - guestAttributes_ = - com.google.protobuf.MapField.newMapField( - GuestAttributesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry guestAttributes__ = - input.readMessage( - GuestAttributesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - guestAttributes_ - .getMutableMap() - .put(guestAttributes__.getKey(), guestAttributes__.getValue()); - break; - } - case 122: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - metadata_ = - com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); - break; - } - case 130: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 136: - { - int rawValue = input.readEnum(); - - nicType_ = rawValue; - break; - } - case 146: - { - java.lang.String s = input.readStringRequireUtf8(); - - reservedIpRange_ = s; - break; - } - case 154: - { - com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.Builder subBuilder = - null; - if (bootImage_ != null) { - subBuilder = bootImage_.toBuilder(); - } - bootImage_ = - input.readMessage( - com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bootImage_); - bootImage_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - containerImages_ = java.util.Collections.unmodifiableList(containerImages_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - tags_ = tags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.RuntimeProto .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor; @@ -530,45 +286,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private BootImage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.RuntimeProto .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_descriptor; @@ -598,7 +315,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -607,7 +324,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -623,7 +340,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage other = (com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage) obj; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -634,7 +351,7 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -767,17 +484,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -864,7 +574,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.VirtualMachineConfig.Boot if (other == com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -879,19 +589,31 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -930,7 +652,19 @@ public BootImage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BootImage(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -2164,7 +1898,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (bootImage_ != null) { output.writeMessage(19, getBootImage()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2253,7 +1987,7 @@ public int getSerializedSize() { if (bootImage_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getBootImage()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2301,7 +2035,7 @@ public boolean equals(final java.lang.Object obj) { if (hasBootImage()) { if (!getBootImage().equals(other.getBootImage())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2366,7 +2100,7 @@ public int hashCode() { hash = (37 * hash) + BOOT_IMAGE_FIELD_NUMBER; hash = (53 * hash) + getBootImage().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2523,19 +2257,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.notebooks.v1.VirtualMachineConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getContainerImagesFieldBuilder(); - } } @java.lang.Override @@ -2547,10 +2272,11 @@ public Builder clear() { if (containerImagesBuilder_ == null) { containerImages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + containerImages_ = null; containerImagesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (dataDiskBuilder_ == null) { dataDisk_ = null; } else { @@ -2807,7 +2533,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.VirtualMachineConfig othe if (other.hasBootImage()) { mergeBootImage(other.getBootImage()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2822,18 +2548,159 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.VirtualMachineConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + machineType_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + com.google.cloud.notebooks.v1.ContainerImage m = + input.readMessage( + com.google.cloud.notebooks.v1.ContainerImage.parser(), extensionRegistry); + if (containerImagesBuilder_ == null) { + ensureContainerImagesIsMutable(); + containerImages_.add(m); + } else { + containerImagesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage(getDataDiskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage( + getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + input.readMessage( + getAcceleratorConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 66: + { + network_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + subnet_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 80: + { + internalIpOnly_ = input.readBool(); + + break; + } // case 80 + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 106 + case 114: + { + com.google.protobuf.MapEntry guestAttributes__ = + input.readMessage( + GuestAttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableGuestAttributes() + .getMutableMap() + .put(guestAttributes__.getKey(), guestAttributes__.getValue()); + break; + } // case 114 + case 122: + { + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMetadata() + .getMutableMap() + .put(metadata__.getKey(), metadata__.getValue()); + break; + } // case 122 + case 130: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 130 + case 136: + { + nicType_ = input.readEnum(); + + break; + } // case 136 + case 146: + { + reservedIpRange_ = input.readStringRequireUtf8(); + + break; + } // case 146 + case 154: + { + input.readMessage(getBootImageFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 154 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1.VirtualMachineConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -5932,7 +5799,18 @@ public VirtualMachineConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VirtualMachineConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImage.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImage.java index 9e50e916..ef395655 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImage.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImage.java @@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private VmImage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - imageCase_ = 2; - image_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - imageCase_ = 3; - image_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.EnvironmentProto .internal_static_google_cloud_notebooks_v1_VmImage_descriptor; @@ -392,7 +332,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (imageCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, image_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -410,7 +350,7 @@ public int getSerializedSize() { if (imageCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, image_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -437,7 +377,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -462,7 +402,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -591,17 +531,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1.VmImage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -719,7 +652,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.VmImage other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -734,17 +667,51 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1.VmImage parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + project_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + imageCase_ = 2; + image_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + imageCase_ = 3; + image_ = s; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1.VmImage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1179,7 +1146,18 @@ public VmImage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VmImage(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImage.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImage.java index 504f916d..4e74e47a 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImage.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImage.java @@ -54,59 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ContainerImage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - repository_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - tag_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.EnvironmentProto .internal_static_google_cloud_notebooks_v1beta1_ContainerImage_descriptor; @@ -244,7 +191,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -259,7 +206,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -277,7 +224,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRepository().equals(other.getRepository())) return false; if (!getTag().equals(other.getTag())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,7 +239,7 @@ public int hashCode() { hash = (53 * hash) + getRepository().hashCode(); hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTag().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -422,17 +369,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.ContainerImage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -529,7 +469,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.ContainerImage other tag_ = other.tag_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -544,18 +484,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.ContainerImage parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + repository_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + tag_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.ContainerImage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -813,7 +778,18 @@ public ContainerImage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ContainerImage(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequest.java index 24a5f956..8017ce20 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequest.java @@ -53,75 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateEnvironmentRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - environmentId_ = s; - break; - } - case 26: - { - com.google.cloud.notebooks.v1beta1.Environment.Builder subBuilder = null; - if (environment_ != null) { - subBuilder = environment_.toBuilder(); - } - environment_ = - input.readMessage( - com.google.cloud.notebooks.v1beta1.Environment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(environment_); - environment_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_descriptor; @@ -318,7 +249,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (environment_ != null) { output.writeMessage(3, getEnvironment()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -336,7 +267,7 @@ public int getSerializedSize() { if (environment_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEnvironment()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -358,7 +289,7 @@ public boolean equals(final java.lang.Object obj) { if (hasEnvironment()) { if (!getEnvironment().equals(other.getEnvironment())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -377,7 +308,7 @@ public int hashCode() { hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; hash = (53 * hash) + getEnvironment().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -507,17 +438,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -628,7 +552,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.CreateEnvironmentReq if (other.hasEnvironment()) { mergeEnvironment(other.getEnvironment()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -643,18 +567,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + environmentId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getEnvironmentFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1121,7 +1076,18 @@ public CreateEnvironmentRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateEnvironmentRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequest.java index 23e9fc08..c1785898 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequest.java @@ -53,75 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateInstanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - instanceId_ = s; - break; - } - case 26: - { - com.google.cloud.notebooks.v1beta1.Instance.Builder subBuilder = null; - if (instance_ != null) { - subBuilder = instance_.toBuilder(); - } - instance_ = - input.readMessage( - com.google.cloud.notebooks.v1beta1.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instance_); - instance_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_descriptor; @@ -314,7 +245,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (instance_ != null) { output.writeMessage(3, getInstance()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -332,7 +263,7 @@ public int getSerializedSize() { if (instance_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstance()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -354,7 +285,7 @@ public boolean equals(final java.lang.Object obj) { if (hasInstance()) { if (!getInstance().equals(other.getInstance())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -373,7 +304,7 @@ public int hashCode() { hash = (37 * hash) + INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getInstance().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -503,17 +434,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.CreateInstanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -624,7 +548,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.CreateInstanceReques if (other.hasInstance()) { mergeInstance(other.getInstance()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -639,18 +563,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.CreateInstanceRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + instanceId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.CreateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1107,7 +1062,18 @@ public CreateInstanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateInstanceRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequest.java index dbf92c15..d8b5f4da 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteEnvironmentRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -353,17 +307,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -453,7 +400,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.DeleteEnvironmentReq name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -468,18 +415,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -626,7 +592,18 @@ public DeleteEnvironmentRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteEnvironmentRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequest.java index c1e643b7..b0972f93 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteInstanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -353,17 +307,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -453,7 +400,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.DeleteInstanceReques name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -468,18 +415,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -626,7 +592,18 @@ public DeleteInstanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteInstanceRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Environment.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Environment.java index 14dfb8b4..c9f95aba 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Environment.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Environment.java @@ -56,123 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Environment( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 50: - { - com.google.cloud.notebooks.v1beta1.VmImage.Builder subBuilder = null; - if (imageTypeCase_ == 6) { - subBuilder = ((com.google.cloud.notebooks.v1beta1.VmImage) imageType_).toBuilder(); - } - imageType_ = - input.readMessage( - com.google.cloud.notebooks.v1beta1.VmImage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.notebooks.v1beta1.VmImage) imageType_); - imageType_ = subBuilder.buildPartial(); - } - imageTypeCase_ = 6; - break; - } - case 58: - { - com.google.cloud.notebooks.v1beta1.ContainerImage.Builder subBuilder = null; - if (imageTypeCase_ == 7) { - subBuilder = - ((com.google.cloud.notebooks.v1beta1.ContainerImage) imageType_).toBuilder(); - } - imageType_ = - input.readMessage( - com.google.cloud.notebooks.v1beta1.ContainerImage.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.notebooks.v1beta1.ContainerImage) imageType_); - imageType_ = subBuilder.buildPartial(); - } - imageTypeCase_ = 7; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - postStartupScript_ = s; - break; - } - case 74: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.EnvironmentProto .internal_static_google_cloud_notebooks_v1beta1_Environment_descriptor; @@ -625,7 +508,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(9, getCreateTime()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -659,7 +542,7 @@ public int getSerializedSize() { if (createTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -694,7 +577,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -729,7 +612,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -859,17 +742,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.Environment.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -881,6 +757,12 @@ public Builder clear() { description_ = ""; + if (vmImageBuilder_ != null) { + vmImageBuilder_.clear(); + } + if (containerImageBuilder_ != null) { + containerImageBuilder_.clear(); + } postStartupScript_ = ""; if (createTimeBuilder_ == null) { @@ -1026,7 +908,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.Environment other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1041,17 +923,73 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.Environment parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 50: + { + input.readMessage(getVmImageFieldBuilder().getBuilder(), extensionRegistry); + imageTypeCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getContainerImageFieldBuilder().getBuilder(), extensionRegistry); + imageTypeCase_ = 7; + break; + } // case 58 + case 66: + { + postStartupScript_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1beta1.Environment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2166,7 +2104,18 @@ public Environment parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Environment(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequest.java index a6b2d740..5ccde16b 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetEnvironmentRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -353,17 +307,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -453,7 +400,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.GetEnvironmentReques name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -468,18 +415,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -626,7 +592,18 @@ public GetEnvironmentRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetEnvironmentRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequest.java index e03ffcf9..db45364b 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetInstanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1beta1.GetInstanceRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -353,17 +307,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.GetInstanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -453,7 +400,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.GetInstanceRequest o name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -468,18 +415,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.GetInstanceRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.GetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -626,7 +592,18 @@ public GetInstanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Instance.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Instance.java index 36bec006..83d50546 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Instance.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Instance.java @@ -65,292 +65,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Instance( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.cloud.notebooks.v1beta1.VmImage.Builder subBuilder = null; - if (environmentCase_ == 2) { - subBuilder = - ((com.google.cloud.notebooks.v1beta1.VmImage) environment_).toBuilder(); - } - environment_ = - input.readMessage( - com.google.cloud.notebooks.v1beta1.VmImage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.notebooks.v1beta1.VmImage) environment_); - environment_ = subBuilder.buildPartial(); - } - environmentCase_ = 2; - break; - } - case 26: - { - com.google.cloud.notebooks.v1beta1.ContainerImage.Builder subBuilder = null; - if (environmentCase_ == 3) { - subBuilder = - ((com.google.cloud.notebooks.v1beta1.ContainerImage) environment_).toBuilder(); - } - environment_ = - input.readMessage( - com.google.cloud.notebooks.v1beta1.ContainerImage.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.notebooks.v1beta1.ContainerImage) environment_); - environment_ = subBuilder.buildPartial(); - } - environmentCase_ = 3; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - postStartupScript_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - proxyUri_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instanceOwners_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - instanceOwners_.add(s); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - serviceAccount_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - machineType_ = s; - break; - } - case 74: - { - com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.Builder subBuilder = - null; - if (acceleratorConfig_ != null) { - subBuilder = acceleratorConfig_.toBuilder(); - } - acceleratorConfig_ = - input.readMessage( - com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(acceleratorConfig_); - acceleratorConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 80: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 88: - { - installGpuDriver_ = input.readBool(); - break; - } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - - customGpuDriverPath_ = s; - break; - } - case 104: - { - int rawValue = input.readEnum(); - - bootDiskType_ = rawValue; - break; - } - case 112: - { - bootDiskSizeGb_ = input.readInt64(); - break; - } - case 120: - { - int rawValue = input.readEnum(); - - diskEncryption_ = rawValue; - break; - } - case 130: - { - java.lang.String s = input.readStringRequireUtf8(); - - kmsKey_ = s; - break; - } - case 136: - { - noPublicIp_ = input.readBool(); - break; - } - case 144: - { - noProxyAccess_ = input.readBool(); - break; - } - case 154: - { - java.lang.String s = input.readStringRequireUtf8(); - - network_ = s; - break; - } - case 162: - { - java.lang.String s = input.readStringRequireUtf8(); - - subnet_ = s; - break; - } - case 170: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 178: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - metadata_ = - com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); - break; - } - case 186: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 194: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 200: - { - int rawValue = input.readEnum(); - - dataDiskType_ = rawValue; - break; - } - case 208: - { - dataDiskSizeGb_ = input.readInt64(); - break; - } - case 216: - { - noRemoveDataDisk_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - instanceOwners_ = instanceOwners_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.InstanceProto .internal_static_google_cloud_notebooks_v1beta1_Instance_descriptor; @@ -1444,57 +1158,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AcceleratorConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 16: - { - coreCount_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.InstanceProto .internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_descriptor; @@ -1589,7 +1252,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (coreCount_ != 0L) { output.writeInt64(2, coreCount_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1607,7 +1270,7 @@ public int getSerializedSize() { if (coreCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, coreCount_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1625,7 +1288,7 @@ public boolean equals(final java.lang.Object obj) { if (type_ != other.type_) return false; if (getCoreCount() != other.getCoreCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1640,7 +1303,7 @@ public int hashCode() { hash = (53 * hash) + type_; hash = (37 * hash) + CORE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCoreCount()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1775,17 +1438,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1885,7 +1541,7 @@ public Builder mergeFrom( if (other.getCoreCount() != 0L) { setCoreCount(other.getCoreCount()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1900,19 +1556,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + type_ = input.readEnum(); + + break; + } // case 8 + case 16: + { + coreCount_ = input.readInt64(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2096,7 +1776,19 @@ public AcceleratorConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AcceleratorConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -3568,7 +3260,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (noRemoveDataDisk_ != false) { output.writeBool(27, noRemoveDataDisk_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -3685,7 +3377,7 @@ public int getSerializedSize() { if (noRemoveDataDisk_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(27, noRemoveDataDisk_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -3746,7 +3438,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3831,7 +3523,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -3984,17 +3676,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.notebooks.v1beta1.Instance.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -4002,6 +3687,12 @@ public Builder clear() { super.clear(); name_ = ""; + if (vmImageBuilder_ != null) { + vmImageBuilder_.clear(); + } + if (containerImageBuilder_ != null) { + containerImageBuilder_.clear(); + } postStartupScript_ = ""; proxyUri_ = ""; @@ -4300,7 +3991,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.Instance other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -4315,17 +4006,205 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.Instance parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getVmImageFieldBuilder().getBuilder(), extensionRegistry); + environmentCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getContainerImageFieldBuilder().getBuilder(), extensionRegistry); + environmentCase_ = 3; + break; + } // case 26 + case 34: + { + postStartupScript_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + proxyUri_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstanceOwnersIsMutable(); + instanceOwners_.add(s); + break; + } // case 50 + case 58: + { + serviceAccount_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + machineType_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + input.readMessage( + getAcceleratorConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 80: + { + state_ = input.readEnum(); + + break; + } // case 80 + case 88: + { + installGpuDriver_ = input.readBool(); + + break; + } // case 88 + case 98: + { + customGpuDriverPath_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 104: + { + bootDiskType_ = input.readEnum(); + + break; + } // case 104 + case 112: + { + bootDiskSizeGb_ = input.readInt64(); + + break; + } // case 112 + case 120: + { + diskEncryption_ = input.readEnum(); + + break; + } // case 120 + case 130: + { + kmsKey_ = input.readStringRequireUtf8(); + + break; + } // case 130 + case 136: + { + noPublicIp_ = input.readBool(); + + break; + } // case 136 + case 144: + { + noProxyAccess_ = input.readBool(); + + break; + } // case 144 + case 154: + { + network_ = input.readStringRequireUtf8(); + + break; + } // case 154 + case 162: + { + subnet_ = input.readStringRequireUtf8(); + + break; + } // case 162 + case 170: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 170 + case 178: + { + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMetadata() + .getMutableMap() + .put(metadata__.getKey(), metadata__.getValue()); + break; + } // case 178 + case 186: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 186 + case 194: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 194 + case 200: + { + dataDiskType_ = input.readEnum(); + + break; + } // case 200 + case 208: + { + dataDiskSizeGb_ = input.readInt64(); + + break; + } // case 208 + case 216: + { + noRemoveDataDisk_ = input.readBool(); + + break; + } // case 216 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1beta1.Instance) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -7780,7 +7659,18 @@ public Instance parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Instance(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequest.java index ba82d995..2e8dc462 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private IsInstanceUpgradeableRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - notebookInstance_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notebookInstance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, notebookInstance_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notebookInstance_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, notebookInstance_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest) obj; if (!getNotebookInstance().equals(other.getNotebookInstance())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NOTEBOOK_INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getNotebookInstance().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -353,17 +307,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -456,7 +403,7 @@ public Builder mergeFrom( notebookInstance_ = other.notebookInstance_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -471,19 +418,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + notebookInstance_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -632,7 +597,18 @@ public IsInstanceUpgradeableRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new IsInstanceUpgradeableRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponse.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponse.java index e1ee6212..e3b6c022 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponse.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponse.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private IsInstanceUpgradeableResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - upgradeable_ = input.readBool(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - upgradeVersion_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - upgradeInfo_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_descriptor; @@ -267,7 +209,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeInfo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, upgradeInfo_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -285,7 +227,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeInfo_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, upgradeInfo_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -304,7 +246,7 @@ public boolean equals(final java.lang.Object obj) { if (getUpgradeable() != other.getUpgradeable()) return false; if (!getUpgradeVersion().equals(other.getUpgradeVersion())) return false; if (!getUpgradeInfo().equals(other.getUpgradeInfo())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -321,7 +263,7 @@ public int hashCode() { hash = (53 * hash) + getUpgradeVersion().hashCode(); hash = (37 * hash) + UPGRADE_INFO_FIELD_NUMBER; hash = (53 * hash) + getUpgradeInfo().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -451,17 +393,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -567,7 +502,7 @@ public Builder mergeFrom( upgradeInfo_ = other.upgradeInfo_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -582,19 +517,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + upgradeable_ = input.readBool(); + + break; + } // case 8 + case 18: + { + upgradeVersion_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + upgradeInfo_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -901,7 +866,18 @@ public IsInstanceUpgradeableResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new IsInstanceUpgradeableResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequest.java index cc9eb1e7..1b426f2e 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequest.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListEnvironmentsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_descriptor; @@ -267,7 +209,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -285,7 +227,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -304,7 +246,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -321,7 +263,7 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -451,17 +393,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -564,7 +499,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequ pageToken_ = other.pageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -579,18 +514,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -895,7 +861,18 @@ public ListEnvironmentsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListEnvironmentsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponse.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponse.java index ff91e852..2629a362 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponse.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponse.java @@ -54,81 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListEnvironmentsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - environments_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - environments_.add( - input.readMessage( - com.google.cloud.notebooks.v1beta1.Environment.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - environments_ = java.util.Collections.unmodifiableList(environments_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_descriptor; @@ -349,7 +274,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < unreachable_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -372,7 +297,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUnreachableList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -391,7 +316,7 @@ public boolean equals(final java.lang.Object obj) { if (!getEnvironmentsList().equals(other.getEnvironmentsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -412,7 +337,7 @@ public int hashCode() { hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; hash = (53 * hash) + getUnreachableList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -542,19 +467,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getEnvironmentsFieldBuilder(); - } } @java.lang.Override @@ -562,10 +478,11 @@ public Builder clear() { super.clear(); if (environmentsBuilder_ == null) { environments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + environments_ = null; environmentsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -704,7 +621,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.ListEnvironmentsResp } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -719,18 +636,57 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.notebooks.v1beta1.Environment m = + input.readMessage( + com.google.cloud.notebooks.v1beta1.Environment.parser(), extensionRegistry); + if (environmentsBuilder_ == null) { + ensureEnvironmentsIsMutable(); + environments_.add(m); + } else { + environmentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1403,7 +1359,18 @@ public ListEnvironmentsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListEnvironmentsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequest.java index 897aadf8..6ecb17a2 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequest.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListInstancesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_descriptor; @@ -269,7 +211,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -287,7 +229,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -306,7 +248,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -323,7 +265,7 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -453,17 +395,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.ListInstancesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -566,7 +501,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.ListInstancesRequest pageToken_ = other.pageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -581,18 +516,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.ListInstancesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.ListInstancesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -902,7 +868,18 @@ public ListInstancesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponse.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponse.java index 86608fb3..aad61113 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponse.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponse.java @@ -54,80 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListInstancesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instances_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - instances_.add( - input.readMessage( - com.google.cloud.notebooks.v1beta1.Instance.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - instances_ = java.util.Collections.unmodifiableList(instances_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_descriptor; @@ -355,7 +281,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < unreachable_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -378,7 +304,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUnreachableList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -397,7 +323,7 @@ public boolean equals(final java.lang.Object obj) { if (!getInstancesList().equals(other.getInstancesList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -418,7 +344,7 @@ public int hashCode() { hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; hash = (53 * hash) + getUnreachableList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -548,19 +474,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.ListInstancesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getInstancesFieldBuilder(); - } } @java.lang.Override @@ -568,10 +485,11 @@ public Builder clear() { super.clear(); if (instancesBuilder_ == null) { instances_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + instances_ = null; instancesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -710,7 +628,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.ListInstancesRespons } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -725,18 +643,57 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.ListInstancesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.notebooks.v1beta1.Instance m = + input.readMessage( + com.google.cloud.notebooks.v1beta1.Instance.parser(), extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.ListInstancesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1422,7 +1379,18 @@ public ListInstancesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstancesResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadata.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadata.java index 6bca2831..4a5efc98 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadata.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadata.java @@ -56,115 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private OperationMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - statusMessage_ = s; - break; - } - case 48: - { - requestedCancellation_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - apiVersion_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - endpoint_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_OperationMetadata_descriptor; @@ -577,7 +468,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, endpoint_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -610,7 +501,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, endpoint_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -640,7 +531,7 @@ public boolean equals(final java.lang.Object obj) { if (getRequestedCancellation() != other.getRequestedCancellation()) return false; if (!getApiVersion().equals(other.getApiVersion())) return false; if (!getEndpoint().equals(other.getEndpoint())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -671,7 +562,7 @@ public int hashCode() { hash = (53 * hash) + getApiVersion().hashCode(); hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getEndpoint().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -800,17 +691,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.OperationMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -962,7 +846,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.OperationMetadata ot endpoint_ = other.endpoint_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -977,18 +861,79 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.OperationMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + endpoint_ = input.readStringRequireUtf8(); + + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1980,7 +1925,18 @@ public OperationMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequest.java index ec50457f..9181a9d6 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequest.java @@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RegisterInstanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - instanceId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_descriptor; @@ -247,7 +194,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -262,7 +209,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -280,7 +227,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (!getInstanceId().equals(other.getInstanceId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -295,7 +242,7 @@ public int hashCode() { hash = (53 * hash) + getParent().hashCode(); hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -425,17 +372,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -532,7 +472,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.RegisterInstanceRequ instanceId_ = other.instanceId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -547,18 +487,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + instanceId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -826,7 +791,18 @@ public RegisterInstanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RegisterInstanceRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequest.java index c0b4fb21..23ed551b 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequest.java @@ -53,75 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ReportInstanceInfoRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - vmId_ = s; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - metadata_ = - com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_descriptor; @@ -375,7 +306,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 3); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -400,7 +331,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metadata__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -419,7 +350,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getVmId().equals(other.getVmId())) return false; if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -438,7 +369,7 @@ public int hashCode() { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -588,17 +519,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -702,7 +626,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRe onChanged(); } internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -717,18 +641,54 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + vmId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMetadata() + .getMutableMap() + .put(metadata__.getKey(), metadata__.getValue()); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1155,7 +1115,18 @@ public ReportInstanceInfoRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ReportInstanceInfoRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequest.java index a58c0baf..04c10bef 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ResetInstanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1beta1.ResetInstanceRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -353,17 +307,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.ResetInstanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -453,7 +400,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.ResetInstanceRequest name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -468,18 +415,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.ResetInstanceRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.ResetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -626,7 +592,18 @@ public ResetInstanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ResetInstanceRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequest.java index 5196052b..f1379dbf 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequest.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SetInstanceAcceleratorRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 24: - { - coreCount_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_descriptor; @@ -265,7 +207,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (coreCount_ != 0L) { output.writeInt64(3, coreCount_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -285,7 +227,7 @@ public int getSerializedSize() { if (coreCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, coreCount_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -304,7 +246,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; if (getCoreCount() != other.getCoreCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -321,7 +263,7 @@ public int hashCode() { hash = (53 * hash) + type_; hash = (37 * hash) + CORE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCoreCount()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -451,17 +393,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -566,7 +501,7 @@ public Builder mergeFrom( if (other.getCoreCount() != 0L) { setCoreCount(other.getCoreCount()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -581,19 +516,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + + break; + } // case 16 + case 24: + { + coreCount_ = input.readInt64(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -906,7 +871,18 @@ public SetInstanceAcceleratorRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SetInstanceAcceleratorRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequest.java index ef5969c0..f0c52478 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequest.java @@ -52,66 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SetInstanceLabelsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_descriptor; @@ -310,7 +250,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -332,7 +272,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -350,7 +290,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -367,7 +307,7 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -517,17 +457,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -622,7 +555,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.SetInstanceLabelsReq onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -637,18 +570,48 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -962,7 +925,18 @@ public SetInstanceLabelsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SetInstanceLabelsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequest.java index 85de938b..26d79fae 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequest.java @@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SetInstanceMachineTypeRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - machineType_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_descriptor; @@ -243,7 +190,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, machineType_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -258,7 +205,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, machineType_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -276,7 +223,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getMachineType().equals(other.getMachineType())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -291,7 +238,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getMachineType().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -421,17 +368,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -531,7 +471,7 @@ public Builder mergeFrom( machineType_ = other.machineType_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -546,19 +486,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + machineType_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -818,7 +782,18 @@ public SetInstanceMachineTypeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SetInstanceMachineTypeRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequest.java index c4d79f52..05a20f70 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private StartInstanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1beta1.StartInstanceRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -353,17 +307,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.StartInstanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -453,7 +400,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.StartInstanceRequest name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -468,18 +415,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.StartInstanceRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.StartInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -626,7 +592,18 @@ public StartInstanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StartInstanceRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequest.java index 9a1538e7..d57acbea 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private StopInstanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1beta1.StopInstanceRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -353,17 +307,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.StopInstanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -453,7 +400,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.StopInstanceRequest name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -468,18 +415,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.StopInstanceRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.StopInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -626,7 +592,18 @@ public StopInstanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StopInstanceRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequest.java index e10c03fa..944e2670 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequest.java @@ -54,59 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpgradeInstanceInternalRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - vmId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_descriptor; @@ -244,7 +191,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vmId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -259,7 +206,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vmId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -277,7 +224,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getVmId().equals(other.getVmId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,7 +239,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VM_ID_FIELD_NUMBER; hash = (53 * hash) + getVmId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -424,17 +371,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -534,7 +474,7 @@ public Builder mergeFrom( vmId_ = other.vmId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -549,19 +489,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + vmId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -821,7 +785,18 @@ public UpgradeInstanceInternalRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpgradeInstanceInternalRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequest.java index 7918040d..6b0c539f 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpgradeInstanceRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.NotebooksProto .internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -353,17 +307,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -453,7 +400,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.UpgradeInstanceReque name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -468,18 +415,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -626,7 +592,18 @@ public UpgradeInstanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpgradeInstanceRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImage.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImage.java index 091f9987..58137483 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImage.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImage.java @@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private VmImage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - imageCase_ = 2; - image_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - imageCase_ = 3; - image_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1beta1.EnvironmentProto .internal_static_google_cloud_notebooks_v1beta1_VmImage_descriptor; @@ -392,7 +332,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (imageCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, image_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -410,7 +350,7 @@ public int getSerializedSize() { if (imageCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, image_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -438,7 +378,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -463,7 +403,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -593,17 +533,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.notebooks.v1beta1.VmImage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -721,7 +654,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.VmImage other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -736,17 +669,51 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.notebooks.v1beta1.VmImage parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + project_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + imageCase_ = 2; + image_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + imageCase_ = 3; + image_ = s; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.notebooks.v1beta1.VmImage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1181,7 +1148,18 @@ public VmImage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VmImage(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; From 935f9042dba3bba55f9e56252854d2dfd49e6001 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 5 Oct 2022 00:38:13 +0000 Subject: [PATCH 14/15] chore(main): release 1.1.3-SNAPSHOT (#409) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-notebooks-bom/pom.xml | 12 ++++++------ google-cloud-notebooks/pom.xml | 4 ++-- grpc-google-cloud-notebooks-v1/pom.xml | 4 ++-- grpc-google-cloud-notebooks-v1beta1/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-notebooks-v1/pom.xml | 4 ++-- proto-google-cloud-notebooks-v1beta1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-notebooks-bom/pom.xml b/google-cloud-notebooks-bom/pom.xml index 7b9892ad..71a2c916 100644 --- a/google-cloud-notebooks-bom/pom.xml +++ b/google-cloud-notebooks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-notebooks-bom - 1.1.2 + 1.1.3-SNAPSHOT pom com.google.cloud @@ -56,27 +56,27 @@ com.google.cloud google-cloud-notebooks - 1.1.2 + 1.1.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.8.2 + 0.8.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.1.2 + 1.1.3-SNAPSHOT com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.8.2 + 0.8.3-SNAPSHOT com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.1.2 + 1.1.3-SNAPSHOT diff --git a/google-cloud-notebooks/pom.xml b/google-cloud-notebooks/pom.xml index 68d2a252..53e5625f 100644 --- a/google-cloud-notebooks/pom.xml +++ b/google-cloud-notebooks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-notebooks - 1.1.2 + 1.1.3-SNAPSHOT jar Google AI Platform Notebooks https://github.com/googleapis/java-notebooks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-notebooks-parent - 1.1.2 + 1.1.3-SNAPSHOT google-cloud-notebooks diff --git a/grpc-google-cloud-notebooks-v1/pom.xml b/grpc-google-cloud-notebooks-v1/pom.xml index fda19f12..1237047e 100644 --- a/grpc-google-cloud-notebooks-v1/pom.xml +++ b/grpc-google-cloud-notebooks-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.1.2 + 1.1.3-SNAPSHOT grpc-google-cloud-notebooks-v1 GRPC library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.1.2 + 1.1.3-SNAPSHOT diff --git a/grpc-google-cloud-notebooks-v1beta1/pom.xml b/grpc-google-cloud-notebooks-v1beta1/pom.xml index 6462bfdd..907c172d 100644 --- a/grpc-google-cloud-notebooks-v1beta1/pom.xml +++ b/grpc-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.8.2 + 0.8.3-SNAPSHOT grpc-google-cloud-notebooks-v1beta1 GRPC library for grpc-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 1.1.2 + 1.1.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index fafb687a..441f5b6e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-notebooks-parent pom - 1.1.2 + 1.1.3-SNAPSHOT Google AI Platform Notebooks Parent https://github.com/googleapis/java-notebooks @@ -61,27 +61,27 @@ com.google.cloud google-cloud-notebooks - 1.1.2 + 1.1.3-SNAPSHOT com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.1.2 + 1.1.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.1.2 + 1.1.3-SNAPSHOT com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.8.2 + 0.8.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.8.2 + 0.8.3-SNAPSHOT diff --git a/proto-google-cloud-notebooks-v1/pom.xml b/proto-google-cloud-notebooks-v1/pom.xml index 757ef435..b6b6532c 100644 --- a/proto-google-cloud-notebooks-v1/pom.xml +++ b/proto-google-cloud-notebooks-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.1.2 + 1.1.3-SNAPSHOT proto-google-cloud-notebooks-v1 Proto library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.1.2 + 1.1.3-SNAPSHOT diff --git a/proto-google-cloud-notebooks-v1beta1/pom.xml b/proto-google-cloud-notebooks-v1beta1/pom.xml index 5802a72c..78a5db94 100644 --- a/proto-google-cloud-notebooks-v1beta1/pom.xml +++ b/proto-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.8.2 + 0.8.3-SNAPSHOT proto-google-cloud-notebooks-v1beta1 PROTO library for proto-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 1.1.2 + 1.1.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 937ab3e6..95f6a106 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-notebooks - 1.1.2 + 1.1.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 09f34c91..9e3bbf42 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-notebooks:1.1.2:1.1.2 -grpc-google-cloud-notebooks-v1beta1:0.8.2:0.8.2 -grpc-google-cloud-notebooks-v1:1.1.2:1.1.2 -proto-google-cloud-notebooks-v1beta1:0.8.2:0.8.2 -proto-google-cloud-notebooks-v1:1.1.2:1.1.2 +google-cloud-notebooks:1.1.2:1.1.3-SNAPSHOT +grpc-google-cloud-notebooks-v1beta1:0.8.2:0.8.3-SNAPSHOT +grpc-google-cloud-notebooks-v1:1.1.2:1.1.3-SNAPSHOT +proto-google-cloud-notebooks-v1beta1:0.8.2:0.8.3-SNAPSHOT +proto-google-cloud-notebooks-v1:1.1.2:1.1.3-SNAPSHOT From 65a8a71482f498c107406193e01c934b847bc184 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 5 Oct 2022 01:18:12 +0000 Subject: [PATCH 15/15] chore(main): release 1.1.3 (#447) :robot: I have created a release *beep* *boop* --- ## [1.1.3](https://togithub.com/googleapis/java-notebooks/compare/v1.1.2...v1.1.3) (2022-10-05) ### Dependencies * Update dependency charset-normalizer to v2.1.1 ([#437](https://togithub.com/googleapis/java-notebooks/issues/437)) ([e99bc20](https://togithub.com/googleapis/java-notebooks/commit/e99bc2010818e13bad2a7d33d97d0e4181acae48)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#417](https://togithub.com/googleapis/java-notebooks/issues/417)) ([171bed9](https://togithub.com/googleapis/java-notebooks/commit/171bed914424b1c8c8a63e3f7aa460ae247dc32b)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#420](https://togithub.com/googleapis/java-notebooks/issues/420)) ([60f5e95](https://togithub.com/googleapis/java-notebooks/commit/60f5e9535dfdf48432ac095809f262ed32889e96)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#446](https://togithub.com/googleapis/java-notebooks/issues/446)) ([578bc65](https://togithub.com/googleapis/java-notebooks/commit/578bc6576ad3f5f4916c7d32f1decb4e072f57f9)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 10 ++++++++++ google-cloud-notebooks-bom/pom.xml | 12 ++++++------ google-cloud-notebooks/pom.xml | 4 ++-- grpc-google-cloud-notebooks-v1/pom.xml | 4 ++-- grpc-google-cloud-notebooks-v1beta1/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-notebooks-v1/pom.xml | 4 ++-- proto-google-cloud-notebooks-v1beta1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 38 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5eaad544..23ebaa65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [1.1.3](https://github.com/googleapis/java-notebooks/compare/v1.1.2...v1.1.3) (2022-10-05) + + +### Dependencies + +* Update dependency charset-normalizer to v2.1.1 ([#437](https://github.com/googleapis/java-notebooks/issues/437)) ([e99bc20](https://github.com/googleapis/java-notebooks/commit/e99bc2010818e13bad2a7d33d97d0e4181acae48)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#417](https://github.com/googleapis/java-notebooks/issues/417)) ([171bed9](https://github.com/googleapis/java-notebooks/commit/171bed914424b1c8c8a63e3f7aa460ae247dc32b)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#420](https://github.com/googleapis/java-notebooks/issues/420)) ([60f5e95](https://github.com/googleapis/java-notebooks/commit/60f5e9535dfdf48432ac095809f262ed32889e96)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#446](https://github.com/googleapis/java-notebooks/issues/446)) ([578bc65](https://github.com/googleapis/java-notebooks/commit/578bc6576ad3f5f4916c7d32f1decb4e072f57f9)) + ## [1.1.2](https://github.com/googleapis/java-notebooks/compare/v1.1.1...v1.1.2) (2022-07-29) diff --git a/google-cloud-notebooks-bom/pom.xml b/google-cloud-notebooks-bom/pom.xml index 71a2c916..04bdb49c 100644 --- a/google-cloud-notebooks-bom/pom.xml +++ b/google-cloud-notebooks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-notebooks-bom - 1.1.3-SNAPSHOT + 1.1.3 pom com.google.cloud @@ -56,27 +56,27 @@ com.google.cloud google-cloud-notebooks - 1.1.3-SNAPSHOT + 1.1.3 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.8.3-SNAPSHOT + 0.8.3 com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.1.3-SNAPSHOT + 1.1.3 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.8.3-SNAPSHOT + 0.8.3 com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.1.3-SNAPSHOT + 1.1.3 diff --git a/google-cloud-notebooks/pom.xml b/google-cloud-notebooks/pom.xml index 53e5625f..6b99da65 100644 --- a/google-cloud-notebooks/pom.xml +++ b/google-cloud-notebooks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-notebooks - 1.1.3-SNAPSHOT + 1.1.3 jar Google AI Platform Notebooks https://github.com/googleapis/java-notebooks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-notebooks-parent - 1.1.3-SNAPSHOT + 1.1.3 google-cloud-notebooks diff --git a/grpc-google-cloud-notebooks-v1/pom.xml b/grpc-google-cloud-notebooks-v1/pom.xml index 1237047e..7ecfc0e8 100644 --- a/grpc-google-cloud-notebooks-v1/pom.xml +++ b/grpc-google-cloud-notebooks-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.1.3-SNAPSHOT + 1.1.3 grpc-google-cloud-notebooks-v1 GRPC library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.1.3-SNAPSHOT + 1.1.3 diff --git a/grpc-google-cloud-notebooks-v1beta1/pom.xml b/grpc-google-cloud-notebooks-v1beta1/pom.xml index 907c172d..fcc93896 100644 --- a/grpc-google-cloud-notebooks-v1beta1/pom.xml +++ b/grpc-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.8.3-SNAPSHOT + 0.8.3 grpc-google-cloud-notebooks-v1beta1 GRPC library for grpc-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 1.1.3-SNAPSHOT + 1.1.3 diff --git a/pom.xml b/pom.xml index 441f5b6e..318c848a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-notebooks-parent pom - 1.1.3-SNAPSHOT + 1.1.3 Google AI Platform Notebooks Parent https://github.com/googleapis/java-notebooks @@ -61,27 +61,27 @@ com.google.cloud google-cloud-notebooks - 1.1.3-SNAPSHOT + 1.1.3 com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.1.3-SNAPSHOT + 1.1.3 com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.1.3-SNAPSHOT + 1.1.3 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.8.3-SNAPSHOT + 0.8.3 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.8.3-SNAPSHOT + 0.8.3 diff --git a/proto-google-cloud-notebooks-v1/pom.xml b/proto-google-cloud-notebooks-v1/pom.xml index b6b6532c..fc7a4005 100644 --- a/proto-google-cloud-notebooks-v1/pom.xml +++ b/proto-google-cloud-notebooks-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.1.3-SNAPSHOT + 1.1.3 proto-google-cloud-notebooks-v1 Proto library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.1.3-SNAPSHOT + 1.1.3 diff --git a/proto-google-cloud-notebooks-v1beta1/pom.xml b/proto-google-cloud-notebooks-v1beta1/pom.xml index 78a5db94..d604f479 100644 --- a/proto-google-cloud-notebooks-v1beta1/pom.xml +++ b/proto-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.8.3-SNAPSHOT + 0.8.3 proto-google-cloud-notebooks-v1beta1 PROTO library for proto-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 1.1.3-SNAPSHOT + 1.1.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 95f6a106..6f3005c9 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-notebooks - 1.1.3-SNAPSHOT + 1.1.3 diff --git a/versions.txt b/versions.txt index 9e3bbf42..b8612132 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-notebooks:1.1.2:1.1.3-SNAPSHOT -grpc-google-cloud-notebooks-v1beta1:0.8.2:0.8.3-SNAPSHOT -grpc-google-cloud-notebooks-v1:1.1.2:1.1.3-SNAPSHOT -proto-google-cloud-notebooks-v1beta1:0.8.2:0.8.3-SNAPSHOT -proto-google-cloud-notebooks-v1:1.1.2:1.1.3-SNAPSHOT +google-cloud-notebooks:1.1.3:1.1.3 +grpc-google-cloud-notebooks-v1beta1:0.8.3:0.8.3 +grpc-google-cloud-notebooks-v1:1.1.3:1.1.3 +proto-google-cloud-notebooks-v1beta1:0.8.3:0.8.3 +proto-google-cloud-notebooks-v1:1.1.3:1.1.3