All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.notebooks.v1.RuntimeSoftwareConfig Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2024 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.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/notebooks/v1/runtime.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.notebooks.v1;

/**
 *
 *
 * 
 * Specifies the selection and configuration of software inside the runtime.
 * The properties to set on runtime.
 * Properties keys are specified in `key:value` format, for example:
 *
 * * `idle_shutdown: true`
 * * `idle_shutdown_timeout: 180`
 * * `enable_health_monitoring: true`
 * 
* * Protobuf type {@code google.cloud.notebooks.v1.RuntimeSoftwareConfig} */ public final class RuntimeSoftwareConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.RuntimeSoftwareConfig) RuntimeSoftwareConfigOrBuilder { private static final long serialVersionUID = 0L; // Use RuntimeSoftwareConfig.newBuilder() to construct. private RuntimeSoftwareConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RuntimeSoftwareConfig() { notebookUpgradeSchedule_ = ""; customGpuDriverPath_ = ""; postStartupScript_ = ""; kernels_ = java.util.Collections.emptyList(); postStartupScriptBehavior_ = 0; version_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RuntimeSoftwareConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.RuntimeProto .internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.notebooks.v1.RuntimeProto .internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.class, com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder.class); } /** * * *
   * Behavior for the post startup script.
   * 
* * Protobuf enum {@code google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior} */ public enum PostStartupScriptBehavior implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unspecified post startup script behavior. Will run only once at creation.
     * 
* * POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED = 0; */ POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED(0), /** * * *
     * Runs the post startup script provided during creation at every start.
     * 
* * RUN_EVERY_START = 1; */ RUN_EVERY_START(1), /** * * *
     * Downloads and runs the provided post startup script at every start.
     * 
* * DOWNLOAD_AND_RUN_EVERY_START = 2; */ DOWNLOAD_AND_RUN_EVERY_START(2), UNRECOGNIZED(-1), ; /** * * *
     * Unspecified post startup script behavior. Will run only once at creation.
     * 
* * POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED = 0; */ public static final int POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED_VALUE = 0; /** * * *
     * Runs the post startup script provided during creation at every start.
     * 
* * RUN_EVERY_START = 1; */ public static final int RUN_EVERY_START_VALUE = 1; /** * * *
     * Downloads and runs the provided post startup script at every start.
     * 
* * DOWNLOAD_AND_RUN_EVERY_START = 2; */ public static final int DOWNLOAD_AND_RUN_EVERY_START_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PostStartupScriptBehavior valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static PostStartupScriptBehavior forNumber(int value) { switch (value) { case 0: return POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED; case 1: return RUN_EVERY_START; case 2: return DOWNLOAD_AND_RUN_EVERY_START; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PostStartupScriptBehavior findValueByNumber(int number) { return PostStartupScriptBehavior.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDescriptor() .getEnumTypes() .get(0); } private static final PostStartupScriptBehavior[] VALUES = values(); public static PostStartupScriptBehavior valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private PostStartupScriptBehavior(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior) } private int bitField0_; public static final int NOTEBOOK_UPGRADE_SCHEDULE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object notebookUpgradeSchedule_ = ""; /** * * *
   * Cron expression in UTC timezone, used to schedule instance auto upgrade.
   * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
   * 
* * string notebook_upgrade_schedule = 1; * * @return The notebookUpgradeSchedule. */ @java.lang.Override public java.lang.String getNotebookUpgradeSchedule() { java.lang.Object ref = notebookUpgradeSchedule_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notebookUpgradeSchedule_ = s; return s; } } /** * * *
   * Cron expression in UTC timezone, used to schedule instance auto upgrade.
   * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
   * 
* * string notebook_upgrade_schedule = 1; * * @return The bytes for notebookUpgradeSchedule. */ @java.lang.Override public com.google.protobuf.ByteString getNotebookUpgradeScheduleBytes() { java.lang.Object ref = notebookUpgradeSchedule_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); notebookUpgradeSchedule_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENABLE_HEALTH_MONITORING_FIELD_NUMBER = 2; private boolean enableHealthMonitoring_ = false; /** * * *
   * Verifies core internal services are running.
   * Default: True
   * 
* * optional bool enable_health_monitoring = 2; * * @return Whether the enableHealthMonitoring field is set. */ @java.lang.Override public boolean hasEnableHealthMonitoring() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Verifies core internal services are running.
   * Default: True
   * 
* * optional bool enable_health_monitoring = 2; * * @return The enableHealthMonitoring. */ @java.lang.Override public boolean getEnableHealthMonitoring() { return enableHealthMonitoring_; } public static final int IDLE_SHUTDOWN_FIELD_NUMBER = 3; private boolean idleShutdown_ = false; /** * * *
   * Runtime will automatically shutdown after idle_shutdown_time.
   * Default: True
   * 
* * optional bool idle_shutdown = 3; * * @return Whether the idleShutdown field is set. */ @java.lang.Override public boolean hasIdleShutdown() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Runtime will automatically shutdown after idle_shutdown_time.
   * Default: True
   * 
* * optional bool idle_shutdown = 3; * * @return The idleShutdown. */ @java.lang.Override public boolean getIdleShutdown() { return idleShutdown_; } public static final int IDLE_SHUTDOWN_TIMEOUT_FIELD_NUMBER = 4; private int idleShutdownTimeout_ = 0; /** * * *
   * Time in minutes to wait before shutting down runtime. Default: 180 minutes
   * 
* * int32 idle_shutdown_timeout = 4; * * @return The idleShutdownTimeout. */ @java.lang.Override public int getIdleShutdownTimeout() { return idleShutdownTimeout_; } public static final int INSTALL_GPU_DRIVER_FIELD_NUMBER = 5; private boolean installGpuDriver_ = false; /** * * *
   * Install Nvidia Driver automatically.
   * Default: True
   * 
* * bool install_gpu_driver = 5; * * @return The installGpuDriver. */ @java.lang.Override public boolean getInstallGpuDriver() { return installGpuDriver_; } public static final int CUSTOM_GPU_DRIVER_PATH_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object customGpuDriverPath_ = ""; /** * * *
   * Specify a custom Cloud Storage path where the GPU driver is stored.
   * If not specified, we'll automatically choose from official GPU drivers.
   * 
* * string custom_gpu_driver_path = 6; * * @return The customGpuDriverPath. */ @java.lang.Override public java.lang.String getCustomGpuDriverPath() { java.lang.Object ref = customGpuDriverPath_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customGpuDriverPath_ = s; return s; } } /** * * *
   * Specify a custom Cloud Storage path where the GPU driver is stored.
   * If not specified, we'll automatically choose from official GPU drivers.
   * 
* * string custom_gpu_driver_path = 6; * * @return The bytes for customGpuDriverPath. */ @java.lang.Override public com.google.protobuf.ByteString getCustomGpuDriverPathBytes() { java.lang.Object ref = customGpuDriverPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customGpuDriverPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int POST_STARTUP_SCRIPT_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object postStartupScript_ = ""; /** * * *
   * Path to a Bash script that automatically runs after a notebook instance
   * fully boots up. The path must be a URL or
   * Cloud Storage path (`gs://path-to-file/file-name`).
   * 
* * string post_startup_script = 7; * * @return The postStartupScript. */ @java.lang.Override public java.lang.String getPostStartupScript() { java.lang.Object ref = postStartupScript_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postStartupScript_ = s; return s; } } /** * * *
   * Path to a Bash script that automatically runs after a notebook instance
   * fully boots up. The path must be a URL or
   * Cloud Storage path (`gs://path-to-file/file-name`).
   * 
* * string post_startup_script = 7; * * @return The bytes for postStartupScript. */ @java.lang.Override public com.google.protobuf.ByteString getPostStartupScriptBytes() { java.lang.Object ref = postStartupScript_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); postStartupScript_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KERNELS_FIELD_NUMBER = 8; @SuppressWarnings("serial") private java.util.List kernels_; /** * * *
   * Optional. Use a list of container images to use as Kernels in the notebook instance.
   * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.util.List getKernelsList() { return kernels_; } /** * * *
   * Optional. Use a list of container images to use as Kernels in the notebook instance.
   * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.util.List getKernelsOrBuilderList() { return kernels_; } /** * * *
   * Optional. Use a list of container images to use as Kernels in the notebook instance.
   * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public int getKernelsCount() { return kernels_.size(); } /** * * *
   * Optional. Use a list of container images to use as Kernels in the notebook instance.
   * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.notebooks.v1.ContainerImage getKernels(int index) { return kernels_.get(index); } /** * * *
   * Optional. Use a list of container images to use as Kernels in the notebook instance.
   * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getKernelsOrBuilder(int index) { return kernels_.get(index); } public static final int UPGRADEABLE_FIELD_NUMBER = 9; private boolean upgradeable_ = false; /** * * *
   * Output only. Bool indicating whether an newer image is available in an image family.
   * 
* * optional bool upgradeable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the upgradeable field is set. */ @java.lang.Override public boolean hasUpgradeable() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Output only. Bool indicating whether an newer image is available in an image family.
   * 
* * optional bool upgradeable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The upgradeable. */ @java.lang.Override public boolean getUpgradeable() { return upgradeable_; } public static final int POST_STARTUP_SCRIPT_BEHAVIOR_FIELD_NUMBER = 10; private int postStartupScriptBehavior_ = 0; /** * * *
   * Behavior for the post startup script.
   * 
* * * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; * * * @return The enum numeric value on the wire for postStartupScriptBehavior. */ @java.lang.Override public int getPostStartupScriptBehaviorValue() { return postStartupScriptBehavior_; } /** * * *
   * Behavior for the post startup script.
   * 
* * * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; * * * @return The postStartupScriptBehavior. */ @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior getPostStartupScriptBehavior() { com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior result = com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior.forNumber( postStartupScriptBehavior_); return result == null ? com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior.UNRECOGNIZED : result; } public static final int DISABLE_TERMINAL_FIELD_NUMBER = 11; private boolean disableTerminal_ = false; /** * * *
   * Bool indicating whether JupyterLab terminal will be available or not.
   * Default: False
   * 
* * optional bool disable_terminal = 11; * * @return Whether the disableTerminal field is set. */ @java.lang.Override public boolean hasDisableTerminal() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Bool indicating whether JupyterLab terminal will be available or not.
   * Default: False
   * 
* * optional bool disable_terminal = 11; * * @return The disableTerminal. */ @java.lang.Override public boolean getDisableTerminal() { return disableTerminal_; } public static final int VERSION_FIELD_NUMBER = 12; @SuppressWarnings("serial") private volatile java.lang.Object version_ = ""; /** * * *
   * Output only. version of boot image such as M100, from release label of the image.
   * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the version field is set. */ @java.lang.Override public boolean hasVersion() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * Output only. version of boot image such as M100, from release label of the image.
   * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The version. */ @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** * * *
   * Output only. version of boot image such as M100, from release label of the image.
   * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for version. */ @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notebookUpgradeSchedule_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, notebookUpgradeSchedule_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(2, enableHealthMonitoring_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(3, idleShutdown_); } if (idleShutdownTimeout_ != 0) { output.writeInt32(4, idleShutdownTimeout_); } if (installGpuDriver_ != false) { output.writeBool(5, installGpuDriver_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customGpuDriverPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, customGpuDriverPath_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postStartupScript_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, postStartupScript_); } for (int i = 0; i < kernels_.size(); i++) { output.writeMessage(8, kernels_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(9, upgradeable_); } if (postStartupScriptBehavior_ != com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior .POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED .getNumber()) { output.writeEnum(10, postStartupScriptBehavior_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(11, disableTerminal_); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, version_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notebookUpgradeSchedule_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, notebookUpgradeSchedule_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableHealthMonitoring_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, idleShutdown_); } if (idleShutdownTimeout_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, idleShutdownTimeout_); } if (installGpuDriver_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, installGpuDriver_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customGpuDriverPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, customGpuDriverPath_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postStartupScript_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, postStartupScript_); } for (int i = 0; i < kernels_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, kernels_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, upgradeable_); } if (postStartupScriptBehavior_ != com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior .POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, postStartupScriptBehavior_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, disableTerminal_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, version_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.notebooks.v1.RuntimeSoftwareConfig)) { return super.equals(obj); } com.google.cloud.notebooks.v1.RuntimeSoftwareConfig other = (com.google.cloud.notebooks.v1.RuntimeSoftwareConfig) obj; if (!getNotebookUpgradeSchedule().equals(other.getNotebookUpgradeSchedule())) return false; if (hasEnableHealthMonitoring() != other.hasEnableHealthMonitoring()) return false; if (hasEnableHealthMonitoring()) { if (getEnableHealthMonitoring() != other.getEnableHealthMonitoring()) return false; } if (hasIdleShutdown() != other.hasIdleShutdown()) return false; if (hasIdleShutdown()) { if (getIdleShutdown() != other.getIdleShutdown()) return false; } if (getIdleShutdownTimeout() != other.getIdleShutdownTimeout()) return false; if (getInstallGpuDriver() != other.getInstallGpuDriver()) return false; if (!getCustomGpuDriverPath().equals(other.getCustomGpuDriverPath())) return false; if (!getPostStartupScript().equals(other.getPostStartupScript())) return false; if (!getKernelsList().equals(other.getKernelsList())) return false; if (hasUpgradeable() != other.hasUpgradeable()) return false; if (hasUpgradeable()) { if (getUpgradeable() != other.getUpgradeable()) return false; } if (postStartupScriptBehavior_ != other.postStartupScriptBehavior_) return false; if (hasDisableTerminal() != other.hasDisableTerminal()) return false; if (hasDisableTerminal()) { if (getDisableTerminal() != other.getDisableTerminal()) return false; } if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { if (!getVersion().equals(other.getVersion())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NOTEBOOK_UPGRADE_SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getNotebookUpgradeSchedule().hashCode(); if (hasEnableHealthMonitoring()) { hash = (37 * hash) + ENABLE_HEALTH_MONITORING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableHealthMonitoring()); } if (hasIdleShutdown()) { hash = (37 * hash) + IDLE_SHUTDOWN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIdleShutdown()); } hash = (37 * hash) + IDLE_SHUTDOWN_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getIdleShutdownTimeout(); hash = (37 * hash) + INSTALL_GPU_DRIVER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInstallGpuDriver()); hash = (37 * hash) + CUSTOM_GPU_DRIVER_PATH_FIELD_NUMBER; hash = (53 * hash) + getCustomGpuDriverPath().hashCode(); hash = (37 * hash) + POST_STARTUP_SCRIPT_FIELD_NUMBER; hash = (53 * hash) + getPostStartupScript().hashCode(); if (getKernelsCount() > 0) { hash = (37 * hash) + KERNELS_FIELD_NUMBER; hash = (53 * hash) + getKernelsList().hashCode(); } if (hasUpgradeable()) { hash = (37 * hash) + UPGRADEABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUpgradeable()); } hash = (37 * hash) + POST_STARTUP_SCRIPT_BEHAVIOR_FIELD_NUMBER; hash = (53 * hash) + postStartupScriptBehavior_; if (hasDisableTerminal()) { hash = (37 * hash) + DISABLE_TERMINAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableTerminal()); } if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.cloud.notebooks.v1.RuntimeSoftwareConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Specifies the selection and configuration of software inside the runtime.
   * The properties to set on runtime.
   * Properties keys are specified in `key:value` format, for example:
   *
   * * `idle_shutdown: true`
   * * `idle_shutdown_timeout: 180`
   * * `enable_health_monitoring: true`
   * 
* * Protobuf type {@code google.cloud.notebooks.v1.RuntimeSoftwareConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.RuntimeSoftwareConfig) com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.notebooks.v1.RuntimeProto .internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.notebooks.v1.RuntimeProto .internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.class, com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder.class); } // Construct using com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; notebookUpgradeSchedule_ = ""; enableHealthMonitoring_ = false; idleShutdown_ = false; idleShutdownTimeout_ = 0; installGpuDriver_ = false; customGpuDriverPath_ = ""; postStartupScript_ = ""; if (kernelsBuilder_ == null) { kernels_ = java.util.Collections.emptyList(); } else { kernels_ = null; kernelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); upgradeable_ = false; postStartupScriptBehavior_ = 0; disableTerminal_ = false; version_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.notebooks.v1.RuntimeProto .internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_descriptor; } @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig getDefaultInstanceForType() { return com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig build() { com.google.cloud.notebooks.v1.RuntimeSoftwareConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig buildPartial() { com.google.cloud.notebooks.v1.RuntimeSoftwareConfig result = new com.google.cloud.notebooks.v1.RuntimeSoftwareConfig(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.notebooks.v1.RuntimeSoftwareConfig result) { if (kernelsBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { kernels_ = java.util.Collections.unmodifiableList(kernels_); bitField0_ = (bitField0_ & ~0x00000080); } result.kernels_ = kernels_; } else { result.kernels_ = kernelsBuilder_.build(); } } private void buildPartial0(com.google.cloud.notebooks.v1.RuntimeSoftwareConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.notebookUpgradeSchedule_ = notebookUpgradeSchedule_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.enableHealthMonitoring_ = enableHealthMonitoring_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.idleShutdown_ = idleShutdown_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.idleShutdownTimeout_ = idleShutdownTimeout_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.installGpuDriver_ = installGpuDriver_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.customGpuDriverPath_ = customGpuDriverPath_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.postStartupScript_ = postStartupScript_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.upgradeable_ = upgradeable_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000200) != 0)) { result.postStartupScriptBehavior_ = postStartupScriptBehavior_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.disableTerminal_ = disableTerminal_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000800) != 0)) { result.version_ = version_; to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.notebooks.v1.RuntimeSoftwareConfig) { return mergeFrom((com.google.cloud.notebooks.v1.RuntimeSoftwareConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.notebooks.v1.RuntimeSoftwareConfig other) { if (other == com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance()) return this; if (!other.getNotebookUpgradeSchedule().isEmpty()) { notebookUpgradeSchedule_ = other.notebookUpgradeSchedule_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasEnableHealthMonitoring()) { setEnableHealthMonitoring(other.getEnableHealthMonitoring()); } if (other.hasIdleShutdown()) { setIdleShutdown(other.getIdleShutdown()); } if (other.getIdleShutdownTimeout() != 0) { setIdleShutdownTimeout(other.getIdleShutdownTimeout()); } if (other.getInstallGpuDriver() != false) { setInstallGpuDriver(other.getInstallGpuDriver()); } if (!other.getCustomGpuDriverPath().isEmpty()) { customGpuDriverPath_ = other.customGpuDriverPath_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getPostStartupScript().isEmpty()) { postStartupScript_ = other.postStartupScript_; bitField0_ |= 0x00000040; onChanged(); } if (kernelsBuilder_ == null) { if (!other.kernels_.isEmpty()) { if (kernels_.isEmpty()) { kernels_ = other.kernels_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureKernelsIsMutable(); kernels_.addAll(other.kernels_); } onChanged(); } } else { if (!other.kernels_.isEmpty()) { if (kernelsBuilder_.isEmpty()) { kernelsBuilder_.dispose(); kernelsBuilder_ = null; kernels_ = other.kernels_; bitField0_ = (bitField0_ & ~0x00000080); kernelsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getKernelsFieldBuilder() : null; } else { kernelsBuilder_.addAllMessages(other.kernels_); } } } if (other.hasUpgradeable()) { setUpgradeable(other.getUpgradeable()); } if (other.postStartupScriptBehavior_ != 0) { setPostStartupScriptBehaviorValue(other.getPostStartupScriptBehaviorValue()); } if (other.hasDisableTerminal()) { setDisableTerminal(other.getDisableTerminal()); } if (other.hasVersion()) { version_ = other.version_; bitField0_ |= 0x00000800; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { notebookUpgradeSchedule_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { enableHealthMonitoring_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { idleShutdown_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { idleShutdownTimeout_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { installGpuDriver_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { customGpuDriverPath_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { postStartupScript_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; 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_ |= 0x00000100; break; } // case 72 case 80: { postStartupScriptBehavior_ = input.readEnum(); bitField0_ |= 0x00000200; break; } // case 80 case 88: { disableTerminal_ = input.readBool(); bitField0_ |= 0x00000400; break; } // case 88 case 98: { version_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000800; 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) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object notebookUpgradeSchedule_ = ""; /** * * *
     * Cron expression in UTC timezone, used to schedule instance auto upgrade.
     * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
     * 
* * string notebook_upgrade_schedule = 1; * * @return The notebookUpgradeSchedule. */ public java.lang.String getNotebookUpgradeSchedule() { java.lang.Object ref = notebookUpgradeSchedule_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notebookUpgradeSchedule_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Cron expression in UTC timezone, used to schedule instance auto upgrade.
     * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
     * 
* * string notebook_upgrade_schedule = 1; * * @return The bytes for notebookUpgradeSchedule. */ public com.google.protobuf.ByteString getNotebookUpgradeScheduleBytes() { java.lang.Object ref = notebookUpgradeSchedule_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); notebookUpgradeSchedule_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Cron expression in UTC timezone, used to schedule instance auto upgrade.
     * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
     * 
* * string notebook_upgrade_schedule = 1; * * @param value The notebookUpgradeSchedule to set. * @return This builder for chaining. */ public Builder setNotebookUpgradeSchedule(java.lang.String value) { if (value == null) { throw new NullPointerException(); } notebookUpgradeSchedule_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Cron expression in UTC timezone, used to schedule instance auto upgrade.
     * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
     * 
* * string notebook_upgrade_schedule = 1; * * @return This builder for chaining. */ public Builder clearNotebookUpgradeSchedule() { notebookUpgradeSchedule_ = getDefaultInstance().getNotebookUpgradeSchedule(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Cron expression in UTC timezone, used to schedule instance auto upgrade.
     * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
     * 
* * string notebook_upgrade_schedule = 1; * * @param value The bytes for notebookUpgradeSchedule to set. * @return This builder for chaining. */ public Builder setNotebookUpgradeScheduleBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); notebookUpgradeSchedule_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private boolean enableHealthMonitoring_; /** * * *
     * Verifies core internal services are running.
     * Default: True
     * 
* * optional bool enable_health_monitoring = 2; * * @return Whether the enableHealthMonitoring field is set. */ @java.lang.Override public boolean hasEnableHealthMonitoring() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Verifies core internal services are running.
     * Default: True
     * 
* * optional bool enable_health_monitoring = 2; * * @return The enableHealthMonitoring. */ @java.lang.Override public boolean getEnableHealthMonitoring() { return enableHealthMonitoring_; } /** * * *
     * Verifies core internal services are running.
     * Default: True
     * 
* * optional bool enable_health_monitoring = 2; * * @param value The enableHealthMonitoring to set. * @return This builder for chaining. */ public Builder setEnableHealthMonitoring(boolean value) { enableHealthMonitoring_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Verifies core internal services are running.
     * Default: True
     * 
* * optional bool enable_health_monitoring = 2; * * @return This builder for chaining. */ public Builder clearEnableHealthMonitoring() { bitField0_ = (bitField0_ & ~0x00000002); enableHealthMonitoring_ = false; onChanged(); return this; } private boolean idleShutdown_; /** * * *
     * Runtime will automatically shutdown after idle_shutdown_time.
     * Default: True
     * 
* * optional bool idle_shutdown = 3; * * @return Whether the idleShutdown field is set. */ @java.lang.Override public boolean hasIdleShutdown() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Runtime will automatically shutdown after idle_shutdown_time.
     * Default: True
     * 
* * optional bool idle_shutdown = 3; * * @return The idleShutdown. */ @java.lang.Override public boolean getIdleShutdown() { return idleShutdown_; } /** * * *
     * Runtime will automatically shutdown after idle_shutdown_time.
     * Default: True
     * 
* * optional bool idle_shutdown = 3; * * @param value The idleShutdown to set. * @return This builder for chaining. */ public Builder setIdleShutdown(boolean value) { idleShutdown_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Runtime will automatically shutdown after idle_shutdown_time.
     * Default: True
     * 
* * optional bool idle_shutdown = 3; * * @return This builder for chaining. */ public Builder clearIdleShutdown() { bitField0_ = (bitField0_ & ~0x00000004); idleShutdown_ = false; onChanged(); return this; } private int idleShutdownTimeout_; /** * * *
     * Time in minutes to wait before shutting down runtime. Default: 180 minutes
     * 
* * int32 idle_shutdown_timeout = 4; * * @return The idleShutdownTimeout. */ @java.lang.Override public int getIdleShutdownTimeout() { return idleShutdownTimeout_; } /** * * *
     * Time in minutes to wait before shutting down runtime. Default: 180 minutes
     * 
* * int32 idle_shutdown_timeout = 4; * * @param value The idleShutdownTimeout to set. * @return This builder for chaining. */ public Builder setIdleShutdownTimeout(int value) { idleShutdownTimeout_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Time in minutes to wait before shutting down runtime. Default: 180 minutes
     * 
* * int32 idle_shutdown_timeout = 4; * * @return This builder for chaining. */ public Builder clearIdleShutdownTimeout() { bitField0_ = (bitField0_ & ~0x00000008); idleShutdownTimeout_ = 0; onChanged(); return this; } private boolean installGpuDriver_; /** * * *
     * Install Nvidia Driver automatically.
     * Default: True
     * 
* * bool install_gpu_driver = 5; * * @return The installGpuDriver. */ @java.lang.Override public boolean getInstallGpuDriver() { return installGpuDriver_; } /** * * *
     * Install Nvidia Driver automatically.
     * Default: True
     * 
* * bool install_gpu_driver = 5; * * @param value The installGpuDriver to set. * @return This builder for chaining. */ public Builder setInstallGpuDriver(boolean value) { installGpuDriver_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Install Nvidia Driver automatically.
     * Default: True
     * 
* * bool install_gpu_driver = 5; * * @return This builder for chaining. */ public Builder clearInstallGpuDriver() { bitField0_ = (bitField0_ & ~0x00000010); installGpuDriver_ = false; onChanged(); return this; } private java.lang.Object customGpuDriverPath_ = ""; /** * * *
     * Specify a custom Cloud Storage path where the GPU driver is stored.
     * If not specified, we'll automatically choose from official GPU drivers.
     * 
* * string custom_gpu_driver_path = 6; * * @return The customGpuDriverPath. */ public java.lang.String getCustomGpuDriverPath() { java.lang.Object ref = customGpuDriverPath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customGpuDriverPath_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Specify a custom Cloud Storage path where the GPU driver is stored.
     * If not specified, we'll automatically choose from official GPU drivers.
     * 
* * string custom_gpu_driver_path = 6; * * @return The bytes for customGpuDriverPath. */ public com.google.protobuf.ByteString getCustomGpuDriverPathBytes() { java.lang.Object ref = customGpuDriverPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customGpuDriverPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Specify a custom Cloud Storage path where the GPU driver is stored.
     * If not specified, we'll automatically choose from official GPU drivers.
     * 
* * string custom_gpu_driver_path = 6; * * @param value The customGpuDriverPath to set. * @return This builder for chaining. */ public Builder setCustomGpuDriverPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } customGpuDriverPath_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Specify a custom Cloud Storage path where the GPU driver is stored.
     * If not specified, we'll automatically choose from official GPU drivers.
     * 
* * string custom_gpu_driver_path = 6; * * @return This builder for chaining. */ public Builder clearCustomGpuDriverPath() { customGpuDriverPath_ = getDefaultInstance().getCustomGpuDriverPath(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
     * Specify a custom Cloud Storage path where the GPU driver is stored.
     * If not specified, we'll automatically choose from official GPU drivers.
     * 
* * string custom_gpu_driver_path = 6; * * @param value The bytes for customGpuDriverPath to set. * @return This builder for chaining. */ public Builder setCustomGpuDriverPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customGpuDriverPath_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object postStartupScript_ = ""; /** * * *
     * Path to a Bash script that automatically runs after a notebook instance
     * fully boots up. The path must be a URL or
     * Cloud Storage path (`gs://path-to-file/file-name`).
     * 
* * string post_startup_script = 7; * * @return The postStartupScript. */ public java.lang.String getPostStartupScript() { java.lang.Object ref = postStartupScript_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postStartupScript_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Path to a Bash script that automatically runs after a notebook instance
     * fully boots up. The path must be a URL or
     * Cloud Storage path (`gs://path-to-file/file-name`).
     * 
* * string post_startup_script = 7; * * @return The bytes for postStartupScript. */ public com.google.protobuf.ByteString getPostStartupScriptBytes() { java.lang.Object ref = postStartupScript_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); postStartupScript_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Path to a Bash script that automatically runs after a notebook instance
     * fully boots up. The path must be a URL or
     * Cloud Storage path (`gs://path-to-file/file-name`).
     * 
* * string post_startup_script = 7; * * @param value The postStartupScript to set. * @return This builder for chaining. */ public Builder setPostStartupScript(java.lang.String value) { if (value == null) { throw new NullPointerException(); } postStartupScript_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Path to a Bash script that automatically runs after a notebook instance
     * fully boots up. The path must be a URL or
     * Cloud Storage path (`gs://path-to-file/file-name`).
     * 
* * string post_startup_script = 7; * * @return This builder for chaining. */ public Builder clearPostStartupScript() { postStartupScript_ = getDefaultInstance().getPostStartupScript(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * Path to a Bash script that automatically runs after a notebook instance
     * fully boots up. The path must be a URL or
     * Cloud Storage path (`gs://path-to-file/file-name`).
     * 
* * string post_startup_script = 7; * * @param value The bytes for postStartupScript to set. * @return This builder for chaining. */ public Builder setPostStartupScriptBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); postStartupScript_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private java.util.List kernels_ = java.util.Collections.emptyList(); private void ensureKernelsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { kernels_ = new java.util.ArrayList(kernels_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.notebooks.v1.ContainerImage, com.google.cloud.notebooks.v1.ContainerImage.Builder, com.google.cloud.notebooks.v1.ContainerImageOrBuilder> kernelsBuilder_; /** * * *
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getKernelsList() { if (kernelsBuilder_ == null) { return java.util.Collections.unmodifiableList(kernels_); } else { return kernelsBuilder_.getMessageList(); } } /** * * *
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public int getKernelsCount() { if (kernelsBuilder_ == null) { return kernels_.size(); } else { return kernelsBuilder_.getCount(); } } /** * * *
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.notebooks.v1.ContainerImage getKernels(int index) { if (kernelsBuilder_ == null) { return kernels_.get(index); } else { return kernelsBuilder_.getMessage(index); } } /** * * *
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setKernels(int index, com.google.cloud.notebooks.v1.ContainerImage value) { if (kernelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKernelsIsMutable(); kernels_.set(index, value); onChanged(); } else { kernelsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setKernels( int index, com.google.cloud.notebooks.v1.ContainerImage.Builder builderForValue) { if (kernelsBuilder_ == null) { ensureKernelsIsMutable(); kernels_.set(index, builderForValue.build()); onChanged(); } else { kernelsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addKernels(com.google.cloud.notebooks.v1.ContainerImage value) { if (kernelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKernelsIsMutable(); kernels_.add(value); onChanged(); } else { kernelsBuilder_.addMessage(value); } return this; } /** * * *
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addKernels(int index, com.google.cloud.notebooks.v1.ContainerImage value) { if (kernelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKernelsIsMutable(); kernels_.add(index, value); onChanged(); } else { kernelsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addKernels( com.google.cloud.notebooks.v1.ContainerImage.Builder builderForValue) { if (kernelsBuilder_ == null) { ensureKernelsIsMutable(); kernels_.add(builderForValue.build()); onChanged(); } else { kernelsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addKernels( int index, com.google.cloud.notebooks.v1.ContainerImage.Builder builderForValue) { if (kernelsBuilder_ == null) { ensureKernelsIsMutable(); kernels_.add(index, builderForValue.build()); onChanged(); } else { kernelsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAllKernels( java.lang.Iterable values) { if (kernelsBuilder_ == null) { ensureKernelsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kernels_); onChanged(); } else { kernelsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearKernels() { if (kernelsBuilder_ == null) { kernels_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { kernelsBuilder_.clear(); } return this; } /** * * *
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeKernels(int index) { if (kernelsBuilder_ == null) { ensureKernelsIsMutable(); kernels_.remove(index); onChanged(); } else { kernelsBuilder_.remove(index); } return this; } /** * * *
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.notebooks.v1.ContainerImage.Builder getKernelsBuilder(int index) { return getKernelsFieldBuilder().getBuilder(index); } /** * * *
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getKernelsOrBuilder(int index) { if (kernelsBuilder_ == null) { return kernels_.get(index); } else { return kernelsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getKernelsOrBuilderList() { if (kernelsBuilder_ != null) { return kernelsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(kernels_); } } /** * * *
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.notebooks.v1.ContainerImage.Builder addKernelsBuilder() { return getKernelsFieldBuilder() .addBuilder(com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance()); } /** * * *
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.notebooks.v1.ContainerImage.Builder addKernelsBuilder(int index) { return getKernelsFieldBuilder() .addBuilder(index, com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance()); } /** * * *
     * Optional. Use a list of container images to use as Kernels in the notebook instance.
     * 
* * * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getKernelsBuilderList() { return getKernelsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.notebooks.v1.ContainerImage, com.google.cloud.notebooks.v1.ContainerImage.Builder, com.google.cloud.notebooks.v1.ContainerImageOrBuilder> getKernelsFieldBuilder() { if (kernelsBuilder_ == null) { kernelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.notebooks.v1.ContainerImage, com.google.cloud.notebooks.v1.ContainerImage.Builder, com.google.cloud.notebooks.v1.ContainerImageOrBuilder>( kernels_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); kernels_ = null; } return kernelsBuilder_; } private boolean upgradeable_; /** * * *
     * Output only. Bool indicating whether an newer image is available in an image family.
     * 
* * optional bool upgradeable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the upgradeable field is set. */ @java.lang.Override public boolean hasUpgradeable() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
     * Output only. Bool indicating whether an newer image is available in an image family.
     * 
* * optional bool upgradeable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The upgradeable. */ @java.lang.Override public boolean getUpgradeable() { return upgradeable_; } /** * * *
     * Output only. Bool indicating whether an newer image is available in an image family.
     * 
* * optional bool upgradeable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The upgradeable to set. * @return This builder for chaining. */ public Builder setUpgradeable(boolean value) { upgradeable_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Output only. Bool indicating whether an newer image is available in an image family.
     * 
* * optional bool upgradeable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearUpgradeable() { bitField0_ = (bitField0_ & ~0x00000100); upgradeable_ = false; onChanged(); return this; } private int postStartupScriptBehavior_ = 0; /** * * *
     * Behavior for the post startup script.
     * 
* * * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; * * * @return The enum numeric value on the wire for postStartupScriptBehavior. */ @java.lang.Override public int getPostStartupScriptBehaviorValue() { return postStartupScriptBehavior_; } /** * * *
     * Behavior for the post startup script.
     * 
* * * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; * * * @param value The enum numeric value on the wire for postStartupScriptBehavior to set. * @return This builder for chaining. */ public Builder setPostStartupScriptBehaviorValue(int value) { postStartupScriptBehavior_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Behavior for the post startup script.
     * 
* * * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; * * * @return The postStartupScriptBehavior. */ @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior getPostStartupScriptBehavior() { com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior result = com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior.forNumber( postStartupScriptBehavior_); return result == null ? com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior .UNRECOGNIZED : result; } /** * * *
     * Behavior for the post startup script.
     * 
* * * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; * * * @param value The postStartupScriptBehavior to set. * @return This builder for chaining. */ public Builder setPostStartupScriptBehavior( com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; postStartupScriptBehavior_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Behavior for the post startup script.
     * 
* * * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; * * * @return This builder for chaining. */ public Builder clearPostStartupScriptBehavior() { bitField0_ = (bitField0_ & ~0x00000200); postStartupScriptBehavior_ = 0; onChanged(); return this; } private boolean disableTerminal_; /** * * *
     * Bool indicating whether JupyterLab terminal will be available or not.
     * Default: False
     * 
* * optional bool disable_terminal = 11; * * @return Whether the disableTerminal field is set. */ @java.lang.Override public boolean hasDisableTerminal() { return ((bitField0_ & 0x00000400) != 0); } /** * * *
     * Bool indicating whether JupyterLab terminal will be available or not.
     * Default: False
     * 
* * optional bool disable_terminal = 11; * * @return The disableTerminal. */ @java.lang.Override public boolean getDisableTerminal() { return disableTerminal_; } /** * * *
     * Bool indicating whether JupyterLab terminal will be available or not.
     * Default: False
     * 
* * optional bool disable_terminal = 11; * * @param value The disableTerminal to set. * @return This builder for chaining. */ public Builder setDisableTerminal(boolean value) { disableTerminal_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Bool indicating whether JupyterLab terminal will be available or not.
     * Default: False
     * 
* * optional bool disable_terminal = 11; * * @return This builder for chaining. */ public Builder clearDisableTerminal() { bitField0_ = (bitField0_ & ~0x00000400); disableTerminal_ = false; onChanged(); return this; } private java.lang.Object version_ = ""; /** * * *
     * Output only. version of boot image such as M100, from release label of the image.
     * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the version field is set. */ public boolean hasVersion() { return ((bitField0_ & 0x00000800) != 0); } /** * * *
     * Output only. version of boot image such as M100, from release label of the image.
     * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. version of boot image such as M100, from release label of the image.
     * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. version of boot image such as M100, from release label of the image.
     * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * Output only. version of boot image such as M100, from release label of the image.
     * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** * * *
     * Output only. version of boot image such as M100, from release label of the image.
     * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.RuntimeSoftwareConfig) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.RuntimeSoftwareConfig) private static final com.google.cloud.notebooks.v1.RuntimeSoftwareConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.RuntimeSoftwareConfig(); } public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RuntimeSoftwareConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { 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(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy