com.google.cloud.notebooks.v1.Runtime Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-notebooks-v1 Show documentation
Show all versions of proto-google-cloud-notebooks-v1 Show documentation
Proto library for google-cloud-notebooks
/*
* 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.4
package com.google.cloud.notebooks.v1;
/**
*
*
*
* The definition of a Runtime for a managed notebook instance.
*
*
* Protobuf type {@code google.cloud.notebooks.v1.Runtime}
*/
public final class Runtime extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.Runtime)
RuntimeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Runtime.newBuilder() to construct.
private Runtime(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Runtime() {
name_ = "";
state_ = 0;
healthState_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Runtime();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.notebooks.v1.RuntimeProto
.internal_static_google_cloud_notebooks_v1_Runtime_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.notebooks.v1.RuntimeProto
.internal_static_google_cloud_notebooks_v1_Runtime_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.notebooks.v1.Runtime.class,
com.google.cloud.notebooks.v1.Runtime.Builder.class);
}
/**
*
*
*
* The definition of the states of this runtime.
*
*
* Protobuf enum {@code google.cloud.notebooks.v1.Runtime.State}
*/
public enum State implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* State is not specified.
*
*
* STATE_UNSPECIFIED = 0;
*/
STATE_UNSPECIFIED(0),
/**
*
*
*
* The compute layer is starting the runtime. It is not ready for use.
*
*
* STARTING = 1;
*/
STARTING(1),
/**
*
*
*
* The compute layer is installing required frameworks and registering the
* runtime with notebook proxy. It cannot be used.
*
*
* PROVISIONING = 2;
*/
PROVISIONING(2),
/**
*
*
*
* The runtime is currently running. It is ready for use.
*
*
* ACTIVE = 3;
*/
ACTIVE(3),
/**
*
*
*
* The control logic is stopping the runtime. It cannot be used.
*
*
* STOPPING = 4;
*/
STOPPING(4),
/**
*
*
*
* The runtime is stopped. It cannot be used.
*
*
* STOPPED = 5;
*/
STOPPED(5),
/**
*
*
*
* The runtime is being deleted. It cannot be used.
*
*
* DELETING = 6;
*/
DELETING(6),
/**
*
*
*
* The runtime is upgrading. It cannot be used.
*
*
* UPGRADING = 7;
*/
UPGRADING(7),
/**
*
*
*
* The runtime is being created and set up. It is not ready for use.
*
*
* INITIALIZING = 8;
*/
INITIALIZING(8),
UNRECOGNIZED(-1),
;
/**
*
*
*
* State is not specified.
*
*
* STATE_UNSPECIFIED = 0;
*/
public static final int STATE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* The compute layer is starting the runtime. It is not ready for use.
*
*
* STARTING = 1;
*/
public static final int STARTING_VALUE = 1;
/**
*
*
*
* The compute layer is installing required frameworks and registering the
* runtime with notebook proxy. It cannot be used.
*
*
* PROVISIONING = 2;
*/
public static final int PROVISIONING_VALUE = 2;
/**
*
*
*
* The runtime is currently running. It is ready for use.
*
*
* ACTIVE = 3;
*/
public static final int ACTIVE_VALUE = 3;
/**
*
*
*
* The control logic is stopping the runtime. It cannot be used.
*
*
* STOPPING = 4;
*/
public static final int STOPPING_VALUE = 4;
/**
*
*
*
* The runtime is stopped. It cannot be used.
*
*
* STOPPED = 5;
*/
public static final int STOPPED_VALUE = 5;
/**
*
*
*
* The runtime is being deleted. It cannot be used.
*
*
* DELETING = 6;
*/
public static final int DELETING_VALUE = 6;
/**
*
*
*
* The runtime is upgrading. It cannot be used.
*
*
* UPGRADING = 7;
*/
public static final int UPGRADING_VALUE = 7;
/**
*
*
*
* The runtime is being created and set up. It is not ready for use.
*
*
* INITIALIZING = 8;
*/
public static final int INITIALIZING_VALUE = 8;
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 State 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 State forNumber(int value) {
switch (value) {
case 0:
return STATE_UNSPECIFIED;
case 1:
return STARTING;
case 2:
return PROVISIONING;
case 3:
return ACTIVE;
case 4:
return STOPPING;
case 5:
return STOPPED;
case 6:
return DELETING;
case 7:
return UPGRADING;
case 8:
return INITIALIZING;
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 State findValueByNumber(int number) {
return State.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.Runtime.getDescriptor().getEnumTypes().get(0);
}
private static final State[] VALUES = values();
public static State 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 State(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.notebooks.v1.Runtime.State)
}
/**
*
*
*
* The runtime substate.
*
*
* Protobuf enum {@code google.cloud.notebooks.v1.Runtime.HealthState}
*/
public enum HealthState implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* The runtime substate is unknown.
*
*
* HEALTH_STATE_UNSPECIFIED = 0;
*/
HEALTH_STATE_UNSPECIFIED(0),
/**
*
*
*
* The runtime is known to be in an healthy state
* (for example, critical daemons are running)
* Applies to ACTIVE state.
*
*
* HEALTHY = 1;
*/
HEALTHY(1),
/**
*
*
*
* The runtime is known to be in an unhealthy state
* (for example, critical daemons are not running)
* Applies to ACTIVE state.
*
*
* UNHEALTHY = 2;
*/
UNHEALTHY(2),
/**
*
*
*
* The runtime has not installed health monitoring agent.
* Applies to ACTIVE state.
*
*
* AGENT_NOT_INSTALLED = 3;
*/
AGENT_NOT_INSTALLED(3),
/**
*
*
*
* The runtime health monitoring agent is not running.
* Applies to ACTIVE state.
*
*
* AGENT_NOT_RUNNING = 4;
*/
AGENT_NOT_RUNNING(4),
UNRECOGNIZED(-1),
;
/**
*
*
*
* The runtime substate is unknown.
*
*
* HEALTH_STATE_UNSPECIFIED = 0;
*/
public static final int HEALTH_STATE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* The runtime is known to be in an healthy state
* (for example, critical daemons are running)
* Applies to ACTIVE state.
*
*
* HEALTHY = 1;
*/
public static final int HEALTHY_VALUE = 1;
/**
*
*
*
* The runtime is known to be in an unhealthy state
* (for example, critical daemons are not running)
* Applies to ACTIVE state.
*
*
* UNHEALTHY = 2;
*/
public static final int UNHEALTHY_VALUE = 2;
/**
*
*
*
* The runtime has not installed health monitoring agent.
* Applies to ACTIVE state.
*
*
* AGENT_NOT_INSTALLED = 3;
*/
public static final int AGENT_NOT_INSTALLED_VALUE = 3;
/**
*
*
*
* The runtime health monitoring agent is not running.
* Applies to ACTIVE state.
*
*
* AGENT_NOT_RUNNING = 4;
*/
public static final int AGENT_NOT_RUNNING_VALUE = 4;
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 HealthState 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 HealthState forNumber(int value) {
switch (value) {
case 0:
return HEALTH_STATE_UNSPECIFIED;
case 1:
return HEALTHY;
case 2:
return UNHEALTHY;
case 3:
return AGENT_NOT_INSTALLED;
case 4:
return AGENT_NOT_RUNNING;
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 HealthState findValueByNumber(int number) {
return HealthState.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.Runtime.getDescriptor().getEnumTypes().get(1);
}
private static final HealthState[] VALUES = values();
public static HealthState 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 HealthState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.notebooks.v1.Runtime.HealthState)
}
private int bitField0_;
private int runtimeTypeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object runtimeType_;
public enum RuntimeTypeCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
VIRTUAL_MACHINE(2),
RUNTIMETYPE_NOT_SET(0);
private final int value;
private RuntimeTypeCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static RuntimeTypeCase valueOf(int value) {
return forNumber(value);
}
public static RuntimeTypeCase forNumber(int value) {
switch (value) {
case 2:
return VIRTUAL_MACHINE;
case 0:
return RUNTIMETYPE_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public RuntimeTypeCase getRuntimeTypeCase() {
return RuntimeTypeCase.forNumber(runtimeTypeCase_);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Output only. The resource name of the runtime.
* Format:
* `projects/{project}/locations/{location}/runtimes/{runtimeId}`
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
*
*
* Output only. The resource name of the runtime.
* Format:
* `projects/{project}/locations/{location}/runtimes/{runtimeId}`
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VIRTUAL_MACHINE_FIELD_NUMBER = 2;
/**
*
*
*
* Use a Compute Engine VM image to start the managed notebook instance.
*
*
* .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;
*
* @return Whether the virtualMachine field is set.
*/
@java.lang.Override
public boolean hasVirtualMachine() {
return runtimeTypeCase_ == 2;
}
/**
*
*
*
* Use a Compute Engine VM image to start the managed notebook instance.
*
*
* .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;
*
* @return The virtualMachine.
*/
@java.lang.Override
public com.google.cloud.notebooks.v1.VirtualMachine getVirtualMachine() {
if (runtimeTypeCase_ == 2) {
return (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_;
}
return com.google.cloud.notebooks.v1.VirtualMachine.getDefaultInstance();
}
/**
*
*
*
* Use a Compute Engine VM image to start the managed notebook instance.
*
*
* .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;
*/
@java.lang.Override
public com.google.cloud.notebooks.v1.VirtualMachineOrBuilder getVirtualMachineOrBuilder() {
if (runtimeTypeCase_ == 2) {
return (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_;
}
return com.google.cloud.notebooks.v1.VirtualMachine.getDefaultInstance();
}
public static final int STATE_FIELD_NUMBER = 3;
private int state_ = 0;
/**
*
*
*
* Output only. Runtime state.
*
*
*
* .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Output only. Runtime state.
*
*
*
* .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.notebooks.v1.Runtime.State getState() {
com.google.cloud.notebooks.v1.Runtime.State result =
com.google.cloud.notebooks.v1.Runtime.State.forNumber(state_);
return result == null ? com.google.cloud.notebooks.v1.Runtime.State.UNRECOGNIZED : result;
}
public static final int HEALTH_STATE_FIELD_NUMBER = 4;
private int healthState_ = 0;
/**
*
*
*
* Output only. Runtime health_state.
*
*
*
* .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for healthState.
*/
@java.lang.Override
public int getHealthStateValue() {
return healthState_;
}
/**
*
*
*
* Output only. Runtime health_state.
*
*
*
* .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The healthState.
*/
@java.lang.Override
public com.google.cloud.notebooks.v1.Runtime.HealthState getHealthState() {
com.google.cloud.notebooks.v1.Runtime.HealthState result =
com.google.cloud.notebooks.v1.Runtime.HealthState.forNumber(healthState_);
return result == null ? com.google.cloud.notebooks.v1.Runtime.HealthState.UNRECOGNIZED : result;
}
public static final int ACCESS_CONFIG_FIELD_NUMBER = 5;
private com.google.cloud.notebooks.v1.RuntimeAccessConfig accessConfig_;
/**
*
*
*
* The config settings for accessing runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;
*
* @return Whether the accessConfig field is set.
*/
@java.lang.Override
public boolean hasAccessConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The config settings for accessing runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;
*
* @return The accessConfig.
*/
@java.lang.Override
public com.google.cloud.notebooks.v1.RuntimeAccessConfig getAccessConfig() {
return accessConfig_ == null
? com.google.cloud.notebooks.v1.RuntimeAccessConfig.getDefaultInstance()
: accessConfig_;
}
/**
*
*
*
* The config settings for accessing runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;
*/
@java.lang.Override
public com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder getAccessConfigOrBuilder() {
return accessConfig_ == null
? com.google.cloud.notebooks.v1.RuntimeAccessConfig.getDefaultInstance()
: accessConfig_;
}
public static final int SOFTWARE_CONFIG_FIELD_NUMBER = 6;
private com.google.cloud.notebooks.v1.RuntimeSoftwareConfig softwareConfig_;
/**
*
*
*
* The config settings for software inside the runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;
*
* @return Whether the softwareConfig field is set.
*/
@java.lang.Override
public boolean hasSoftwareConfig() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The config settings for software inside the runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;
*
* @return The softwareConfig.
*/
@java.lang.Override
public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig getSoftwareConfig() {
return softwareConfig_ == null
? com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance()
: softwareConfig_;
}
/**
*
*
*
* The config settings for software inside the runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;
*/
@java.lang.Override
public com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder getSoftwareConfigOrBuilder() {
return softwareConfig_ == null
? com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance()
: softwareConfig_;
}
public static final int METRICS_FIELD_NUMBER = 7;
private com.google.cloud.notebooks.v1.RuntimeMetrics metrics_;
/**
*
*
*
* Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
* stats.
*
*
*
* .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the metrics field is set.
*/
@java.lang.Override
public boolean hasMetrics() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
* stats.
*
*
*
* .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The metrics.
*/
@java.lang.Override
public com.google.cloud.notebooks.v1.RuntimeMetrics getMetrics() {
return metrics_ == null
? com.google.cloud.notebooks.v1.RuntimeMetrics.getDefaultInstance()
: metrics_;
}
/**
*
*
*
* Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
* stats.
*
*
*
* .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder getMetricsOrBuilder() {
return metrics_ == null
? com.google.cloud.notebooks.v1.RuntimeMetrics.getDefaultInstance()
: metrics_;
}
public static final int CREATE_TIME_FIELD_NUMBER = 20;
private com.google.protobuf.Timestamp createTime_;
/**
*
*
*
* Output only. Runtime creation time.
*
*
* .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
@java.lang.Override
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Output only. Runtime creation time.
*
*
* .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The createTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreateTime() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
/**
*
*
*
* Output only. Runtime creation time.
*
*
* .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
public static final int UPDATE_TIME_FIELD_NUMBER = 21;
private com.google.protobuf.Timestamp updateTime_;
/**
*
*
*
* Output only. Runtime update time.
*
*
* .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the updateTime field is set.
*/
@java.lang.Override
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* Output only. Runtime update time.
*
*
* .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The updateTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getUpdateTime() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
/**
*
*
*
* Output only. Runtime update time.
*
*
* .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
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(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (runtimeTypeCase_ == 2) {
output.writeMessage(2, (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_);
}
if (state_ != com.google.cloud.notebooks.v1.Runtime.State.STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(3, state_);
}
if (healthState_
!= com.google.cloud.notebooks.v1.Runtime.HealthState.HEALTH_STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(4, healthState_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(5, getAccessConfig());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getSoftwareConfig());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(7, getMetrics());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(20, getCreateTime());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(21, getUpdateTime());
}
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(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (runtimeTypeCase_ == 2) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
2, (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_);
}
if (state_ != com.google.cloud.notebooks.v1.Runtime.State.STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_);
}
if (healthState_
!= com.google.cloud.notebooks.v1.Runtime.HealthState.HEALTH_STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, healthState_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAccessConfig());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSoftwareConfig());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMetrics());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getCreateTime());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getUpdateTime());
}
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.Runtime)) {
return super.equals(obj);
}
com.google.cloud.notebooks.v1.Runtime other = (com.google.cloud.notebooks.v1.Runtime) obj;
if (!getName().equals(other.getName())) return false;
if (state_ != other.state_) return false;
if (healthState_ != other.healthState_) return false;
if (hasAccessConfig() != other.hasAccessConfig()) return false;
if (hasAccessConfig()) {
if (!getAccessConfig().equals(other.getAccessConfig())) return false;
}
if (hasSoftwareConfig() != other.hasSoftwareConfig()) return false;
if (hasSoftwareConfig()) {
if (!getSoftwareConfig().equals(other.getSoftwareConfig())) return false;
}
if (hasMetrics() != other.hasMetrics()) return false;
if (hasMetrics()) {
if (!getMetrics().equals(other.getMetrics())) return false;
}
if (hasCreateTime() != other.hasCreateTime()) return false;
if (hasCreateTime()) {
if (!getCreateTime().equals(other.getCreateTime())) return false;
}
if (hasUpdateTime() != other.hasUpdateTime()) return false;
if (hasUpdateTime()) {
if (!getUpdateTime().equals(other.getUpdateTime())) return false;
}
if (!getRuntimeTypeCase().equals(other.getRuntimeTypeCase())) return false;
switch (runtimeTypeCase_) {
case 2:
if (!getVirtualMachine().equals(other.getVirtualMachine())) return false;
break;
case 0:
default:
}
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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + HEALTH_STATE_FIELD_NUMBER;
hash = (53 * hash) + healthState_;
if (hasAccessConfig()) {
hash = (37 * hash) + ACCESS_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getAccessConfig().hashCode();
}
if (hasSoftwareConfig()) {
hash = (37 * hash) + SOFTWARE_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getSoftwareConfig().hashCode();
}
if (hasMetrics()) {
hash = (37 * hash) + METRICS_FIELD_NUMBER;
hash = (53 * hash) + getMetrics().hashCode();
}
if (hasCreateTime()) {
hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getCreateTime().hashCode();
}
if (hasUpdateTime()) {
hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getUpdateTime().hashCode();
}
switch (runtimeTypeCase_) {
case 2:
hash = (37 * hash) + VIRTUAL_MACHINE_FIELD_NUMBER;
hash = (53 * hash) + getVirtualMachine().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.notebooks.v1.Runtime parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.notebooks.v1.Runtime 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.Runtime parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.notebooks.v1.Runtime 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.Runtime parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.notebooks.v1.Runtime 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.Runtime parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.notebooks.v1.Runtime 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.Runtime parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.notebooks.v1.Runtime 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.Runtime 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.Runtime 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.Runtime 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;
}
/**
*
*
*
* The definition of a Runtime for a managed notebook instance.
*
*
* Protobuf type {@code google.cloud.notebooks.v1.Runtime}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.Runtime)
com.google.cloud.notebooks.v1.RuntimeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.notebooks.v1.RuntimeProto
.internal_static_google_cloud_notebooks_v1_Runtime_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.notebooks.v1.RuntimeProto
.internal_static_google_cloud_notebooks_v1_Runtime_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.notebooks.v1.Runtime.class,
com.google.cloud.notebooks.v1.Runtime.Builder.class);
}
// Construct using com.google.cloud.notebooks.v1.Runtime.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getAccessConfigFieldBuilder();
getSoftwareConfigFieldBuilder();
getMetricsFieldBuilder();
getCreateTimeFieldBuilder();
getUpdateTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
if (virtualMachineBuilder_ != null) {
virtualMachineBuilder_.clear();
}
state_ = 0;
healthState_ = 0;
accessConfig_ = null;
if (accessConfigBuilder_ != null) {
accessConfigBuilder_.dispose();
accessConfigBuilder_ = null;
}
softwareConfig_ = null;
if (softwareConfigBuilder_ != null) {
softwareConfigBuilder_.dispose();
softwareConfigBuilder_ = null;
}
metrics_ = null;
if (metricsBuilder_ != null) {
metricsBuilder_.dispose();
metricsBuilder_ = null;
}
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
runtimeTypeCase_ = 0;
runtimeType_ = null;
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_Runtime_descriptor;
}
@java.lang.Override
public com.google.cloud.notebooks.v1.Runtime getDefaultInstanceForType() {
return com.google.cloud.notebooks.v1.Runtime.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.notebooks.v1.Runtime build() {
com.google.cloud.notebooks.v1.Runtime result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.notebooks.v1.Runtime buildPartial() {
com.google.cloud.notebooks.v1.Runtime result =
new com.google.cloud.notebooks.v1.Runtime(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.notebooks.v1.Runtime result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.healthState_ = healthState_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.accessConfig_ =
accessConfigBuilder_ == null ? accessConfig_ : accessConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.softwareConfig_ =
softwareConfigBuilder_ == null ? softwareConfig_ : softwareConfigBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.metrics_ = metricsBuilder_ == null ? metrics_ : metricsBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.cloud.notebooks.v1.Runtime result) {
result.runtimeTypeCase_ = runtimeTypeCase_;
result.runtimeType_ = this.runtimeType_;
if (runtimeTypeCase_ == 2 && virtualMachineBuilder_ != null) {
result.runtimeType_ = virtualMachineBuilder_.build();
}
}
@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.Runtime) {
return mergeFrom((com.google.cloud.notebooks.v1.Runtime) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.notebooks.v1.Runtime other) {
if (other == com.google.cloud.notebooks.v1.Runtime.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (other.healthState_ != 0) {
setHealthStateValue(other.getHealthStateValue());
}
if (other.hasAccessConfig()) {
mergeAccessConfig(other.getAccessConfig());
}
if (other.hasSoftwareConfig()) {
mergeSoftwareConfig(other.getSoftwareConfig());
}
if (other.hasMetrics()) {
mergeMetrics(other.getMetrics());
}
if (other.hasCreateTime()) {
mergeCreateTime(other.getCreateTime());
}
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
switch (other.getRuntimeTypeCase()) {
case VIRTUAL_MACHINE:
{
mergeVirtualMachine(other.getVirtualMachine());
break;
}
case RUNTIMETYPE_NOT_SET:
{
break;
}
}
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:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getVirtualMachineFieldBuilder().getBuilder(), extensionRegistry);
runtimeTypeCase_ = 2;
break;
} // case 18
case 24:
{
state_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32:
{
healthState_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42:
{
input.readMessage(getAccessConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50:
{
input.readMessage(getSoftwareConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58:
{
input.readMessage(getMetricsFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 162:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 162
case 170:
{
input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000100;
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) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int runtimeTypeCase_ = 0;
private java.lang.Object runtimeType_;
public RuntimeTypeCase getRuntimeTypeCase() {
return RuntimeTypeCase.forNumber(runtimeTypeCase_);
}
public Builder clearRuntimeType() {
runtimeTypeCase_ = 0;
runtimeType_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
*
*
* Output only. The resource name of the runtime.
* Format:
* `projects/{project}/locations/{location}/runtimes/{runtimeId}`
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. The resource name of the runtime.
* Format:
* `projects/{project}/locations/{location}/runtimes/{runtimeId}`
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. The resource name of the runtime.
* Format:
* `projects/{project}/locations/{location}/runtimes/{runtimeId}`
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. The resource name of the runtime.
* Format:
* `projects/{project}/locations/{location}/runtimes/{runtimeId}`
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Output only. The resource name of the runtime.
* Format:
* `projects/{project}/locations/{location}/runtimes/{runtimeId}`
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.notebooks.v1.VirtualMachine,
com.google.cloud.notebooks.v1.VirtualMachine.Builder,
com.google.cloud.notebooks.v1.VirtualMachineOrBuilder>
virtualMachineBuilder_;
/**
*
*
*
* Use a Compute Engine VM image to start the managed notebook instance.
*
*
* .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;
*
* @return Whether the virtualMachine field is set.
*/
@java.lang.Override
public boolean hasVirtualMachine() {
return runtimeTypeCase_ == 2;
}
/**
*
*
*
* Use a Compute Engine VM image to start the managed notebook instance.
*
*
* .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;
*
* @return The virtualMachine.
*/
@java.lang.Override
public com.google.cloud.notebooks.v1.VirtualMachine getVirtualMachine() {
if (virtualMachineBuilder_ == null) {
if (runtimeTypeCase_ == 2) {
return (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_;
}
return com.google.cloud.notebooks.v1.VirtualMachine.getDefaultInstance();
} else {
if (runtimeTypeCase_ == 2) {
return virtualMachineBuilder_.getMessage();
}
return com.google.cloud.notebooks.v1.VirtualMachine.getDefaultInstance();
}
}
/**
*
*
*
* Use a Compute Engine VM image to start the managed notebook instance.
*
*
* .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;
*/
public Builder setVirtualMachine(com.google.cloud.notebooks.v1.VirtualMachine value) {
if (virtualMachineBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
runtimeType_ = value;
onChanged();
} else {
virtualMachineBuilder_.setMessage(value);
}
runtimeTypeCase_ = 2;
return this;
}
/**
*
*
*
* Use a Compute Engine VM image to start the managed notebook instance.
*
*
* .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;
*/
public Builder setVirtualMachine(
com.google.cloud.notebooks.v1.VirtualMachine.Builder builderForValue) {
if (virtualMachineBuilder_ == null) {
runtimeType_ = builderForValue.build();
onChanged();
} else {
virtualMachineBuilder_.setMessage(builderForValue.build());
}
runtimeTypeCase_ = 2;
return this;
}
/**
*
*
*
* Use a Compute Engine VM image to start the managed notebook instance.
*
*
* .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;
*/
public Builder mergeVirtualMachine(com.google.cloud.notebooks.v1.VirtualMachine value) {
if (virtualMachineBuilder_ == null) {
if (runtimeTypeCase_ == 2
&& runtimeType_ != com.google.cloud.notebooks.v1.VirtualMachine.getDefaultInstance()) {
runtimeType_ =
com.google.cloud.notebooks.v1.VirtualMachine.newBuilder(
(com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_)
.mergeFrom(value)
.buildPartial();
} else {
runtimeType_ = value;
}
onChanged();
} else {
if (runtimeTypeCase_ == 2) {
virtualMachineBuilder_.mergeFrom(value);
} else {
virtualMachineBuilder_.setMessage(value);
}
}
runtimeTypeCase_ = 2;
return this;
}
/**
*
*
*
* Use a Compute Engine VM image to start the managed notebook instance.
*
*
* .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;
*/
public Builder clearVirtualMachine() {
if (virtualMachineBuilder_ == null) {
if (runtimeTypeCase_ == 2) {
runtimeTypeCase_ = 0;
runtimeType_ = null;
onChanged();
}
} else {
if (runtimeTypeCase_ == 2) {
runtimeTypeCase_ = 0;
runtimeType_ = null;
}
virtualMachineBuilder_.clear();
}
return this;
}
/**
*
*
*
* Use a Compute Engine VM image to start the managed notebook instance.
*
*
* .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;
*/
public com.google.cloud.notebooks.v1.VirtualMachine.Builder getVirtualMachineBuilder() {
return getVirtualMachineFieldBuilder().getBuilder();
}
/**
*
*
*
* Use a Compute Engine VM image to start the managed notebook instance.
*
*
* .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;
*/
@java.lang.Override
public com.google.cloud.notebooks.v1.VirtualMachineOrBuilder getVirtualMachineOrBuilder() {
if ((runtimeTypeCase_ == 2) && (virtualMachineBuilder_ != null)) {
return virtualMachineBuilder_.getMessageOrBuilder();
} else {
if (runtimeTypeCase_ == 2) {
return (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_;
}
return com.google.cloud.notebooks.v1.VirtualMachine.getDefaultInstance();
}
}
/**
*
*
*
* Use a Compute Engine VM image to start the managed notebook instance.
*
*
* .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.notebooks.v1.VirtualMachine,
com.google.cloud.notebooks.v1.VirtualMachine.Builder,
com.google.cloud.notebooks.v1.VirtualMachineOrBuilder>
getVirtualMachineFieldBuilder() {
if (virtualMachineBuilder_ == null) {
if (!(runtimeTypeCase_ == 2)) {
runtimeType_ = com.google.cloud.notebooks.v1.VirtualMachine.getDefaultInstance();
}
virtualMachineBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.notebooks.v1.VirtualMachine,
com.google.cloud.notebooks.v1.VirtualMachine.Builder,
com.google.cloud.notebooks.v1.VirtualMachineOrBuilder>(
(com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_,
getParentForChildren(),
isClean());
runtimeType_ = null;
}
runtimeTypeCase_ = 2;
onChanged();
return virtualMachineBuilder_;
}
private int state_ = 0;
/**
*
*
*
* Output only. Runtime state.
*
*
*
* .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Output only. Runtime state.
*
*
*
* .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. Runtime state.
*
*
*
* .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.notebooks.v1.Runtime.State getState() {
com.google.cloud.notebooks.v1.Runtime.State result =
com.google.cloud.notebooks.v1.Runtime.State.forNumber(state_);
return result == null ? com.google.cloud.notebooks.v1.Runtime.State.UNRECOGNIZED : result;
}
/**
*
*
*
* Output only. Runtime state.
*
*
*
* .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(com.google.cloud.notebooks.v1.Runtime.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. Runtime state.
*
*
*
* .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000004);
state_ = 0;
onChanged();
return this;
}
private int healthState_ = 0;
/**
*
*
*
* Output only. Runtime health_state.
*
*
*
* .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for healthState.
*/
@java.lang.Override
public int getHealthStateValue() {
return healthState_;
}
/**
*
*
*
* Output only. Runtime health_state.
*
*
*
* .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The enum numeric value on the wire for healthState to set.
* @return This builder for chaining.
*/
public Builder setHealthStateValue(int value) {
healthState_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. Runtime health_state.
*
*
*
* .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The healthState.
*/
@java.lang.Override
public com.google.cloud.notebooks.v1.Runtime.HealthState getHealthState() {
com.google.cloud.notebooks.v1.Runtime.HealthState result =
com.google.cloud.notebooks.v1.Runtime.HealthState.forNumber(healthState_);
return result == null
? com.google.cloud.notebooks.v1.Runtime.HealthState.UNRECOGNIZED
: result;
}
/**
*
*
*
* Output only. Runtime health_state.
*
*
*
* .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The healthState to set.
* @return This builder for chaining.
*/
public Builder setHealthState(com.google.cloud.notebooks.v1.Runtime.HealthState value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
healthState_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. Runtime health_state.
*
*
*
* .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearHealthState() {
bitField0_ = (bitField0_ & ~0x00000008);
healthState_ = 0;
onChanged();
return this;
}
private com.google.cloud.notebooks.v1.RuntimeAccessConfig accessConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.notebooks.v1.RuntimeAccessConfig,
com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder,
com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder>
accessConfigBuilder_;
/**
*
*
*
* The config settings for accessing runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;
*
* @return Whether the accessConfig field is set.
*/
public boolean hasAccessConfig() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* The config settings for accessing runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;
*
* @return The accessConfig.
*/
public com.google.cloud.notebooks.v1.RuntimeAccessConfig getAccessConfig() {
if (accessConfigBuilder_ == null) {
return accessConfig_ == null
? com.google.cloud.notebooks.v1.RuntimeAccessConfig.getDefaultInstance()
: accessConfig_;
} else {
return accessConfigBuilder_.getMessage();
}
}
/**
*
*
*
* The config settings for accessing runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;
*/
public Builder setAccessConfig(com.google.cloud.notebooks.v1.RuntimeAccessConfig value) {
if (accessConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
accessConfig_ = value;
} else {
accessConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* The config settings for accessing runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;
*/
public Builder setAccessConfig(
com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder builderForValue) {
if (accessConfigBuilder_ == null) {
accessConfig_ = builderForValue.build();
} else {
accessConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* The config settings for accessing runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;
*/
public Builder mergeAccessConfig(com.google.cloud.notebooks.v1.RuntimeAccessConfig value) {
if (accessConfigBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)
&& accessConfig_ != null
&& accessConfig_
!= com.google.cloud.notebooks.v1.RuntimeAccessConfig.getDefaultInstance()) {
getAccessConfigBuilder().mergeFrom(value);
} else {
accessConfig_ = value;
}
} else {
accessConfigBuilder_.mergeFrom(value);
}
if (accessConfig_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
*
*
* The config settings for accessing runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;
*/
public Builder clearAccessConfig() {
bitField0_ = (bitField0_ & ~0x00000010);
accessConfig_ = null;
if (accessConfigBuilder_ != null) {
accessConfigBuilder_.dispose();
accessConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The config settings for accessing runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;
*/
public com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder getAccessConfigBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getAccessConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* The config settings for accessing runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;
*/
public com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder getAccessConfigOrBuilder() {
if (accessConfigBuilder_ != null) {
return accessConfigBuilder_.getMessageOrBuilder();
} else {
return accessConfig_ == null
? com.google.cloud.notebooks.v1.RuntimeAccessConfig.getDefaultInstance()
: accessConfig_;
}
}
/**
*
*
*
* The config settings for accessing runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.notebooks.v1.RuntimeAccessConfig,
com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder,
com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder>
getAccessConfigFieldBuilder() {
if (accessConfigBuilder_ == null) {
accessConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.notebooks.v1.RuntimeAccessConfig,
com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder,
com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder>(
getAccessConfig(), getParentForChildren(), isClean());
accessConfig_ = null;
}
return accessConfigBuilder_;
}
private com.google.cloud.notebooks.v1.RuntimeSoftwareConfig softwareConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.notebooks.v1.RuntimeSoftwareConfig,
com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder,
com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder>
softwareConfigBuilder_;
/**
*
*
*
* The config settings for software inside the runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;
*
* @return Whether the softwareConfig field is set.
*/
public boolean hasSoftwareConfig() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
*
* The config settings for software inside the runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;
*
* @return The softwareConfig.
*/
public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig getSoftwareConfig() {
if (softwareConfigBuilder_ == null) {
return softwareConfig_ == null
? com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance()
: softwareConfig_;
} else {
return softwareConfigBuilder_.getMessage();
}
}
/**
*
*
*
* The config settings for software inside the runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;
*/
public Builder setSoftwareConfig(com.google.cloud.notebooks.v1.RuntimeSoftwareConfig value) {
if (softwareConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
softwareConfig_ = value;
} else {
softwareConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* The config settings for software inside the runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;
*/
public Builder setSoftwareConfig(
com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder builderForValue) {
if (softwareConfigBuilder_ == null) {
softwareConfig_ = builderForValue.build();
} else {
softwareConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* The config settings for software inside the runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;
*/
public Builder mergeSoftwareConfig(com.google.cloud.notebooks.v1.RuntimeSoftwareConfig value) {
if (softwareConfigBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)
&& softwareConfig_ != null
&& softwareConfig_
!= com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance()) {
getSoftwareConfigBuilder().mergeFrom(value);
} else {
softwareConfig_ = value;
}
} else {
softwareConfigBuilder_.mergeFrom(value);
}
if (softwareConfig_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
*
*
* The config settings for software inside the runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;
*/
public Builder clearSoftwareConfig() {
bitField0_ = (bitField0_ & ~0x00000020);
softwareConfig_ = null;
if (softwareConfigBuilder_ != null) {
softwareConfigBuilder_.dispose();
softwareConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The config settings for software inside the runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;
*/
public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder getSoftwareConfigBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getSoftwareConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* The config settings for software inside the runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;
*/
public com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder
getSoftwareConfigOrBuilder() {
if (softwareConfigBuilder_ != null) {
return softwareConfigBuilder_.getMessageOrBuilder();
} else {
return softwareConfig_ == null
? com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance()
: softwareConfig_;
}
}
/**
*
*
*
* The config settings for software inside the runtime.
*
*
* .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.notebooks.v1.RuntimeSoftwareConfig,
com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder,
com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder>
getSoftwareConfigFieldBuilder() {
if (softwareConfigBuilder_ == null) {
softwareConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.notebooks.v1.RuntimeSoftwareConfig,
com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder,
com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder>(
getSoftwareConfig(), getParentForChildren(), isClean());
softwareConfig_ = null;
}
return softwareConfigBuilder_;
}
private com.google.cloud.notebooks.v1.RuntimeMetrics metrics_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.notebooks.v1.RuntimeMetrics,
com.google.cloud.notebooks.v1.RuntimeMetrics.Builder,
com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder>
metricsBuilder_;
/**
*
*
*
* Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
* stats.
*
*
*
* .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the metrics field is set.
*/
public boolean hasMetrics() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*
*
* Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
* stats.
*
*
*
* .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The metrics.
*/
public com.google.cloud.notebooks.v1.RuntimeMetrics getMetrics() {
if (metricsBuilder_ == null) {
return metrics_ == null
? com.google.cloud.notebooks.v1.RuntimeMetrics.getDefaultInstance()
: metrics_;
} else {
return metricsBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
* stats.
*
*
*
* .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setMetrics(com.google.cloud.notebooks.v1.RuntimeMetrics value) {
if (metricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metrics_ = value;
} else {
metricsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
* stats.
*
*
*
* .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setMetrics(
com.google.cloud.notebooks.v1.RuntimeMetrics.Builder builderForValue) {
if (metricsBuilder_ == null) {
metrics_ = builderForValue.build();
} else {
metricsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
* stats.
*
*
*
* .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeMetrics(com.google.cloud.notebooks.v1.RuntimeMetrics value) {
if (metricsBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)
&& metrics_ != null
&& metrics_ != com.google.cloud.notebooks.v1.RuntimeMetrics.getDefaultInstance()) {
getMetricsBuilder().mergeFrom(value);
} else {
metrics_ = value;
}
} else {
metricsBuilder_.mergeFrom(value);
}
if (metrics_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
* stats.
*
*
*
* .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearMetrics() {
bitField0_ = (bitField0_ & ~0x00000040);
metrics_ = null;
if (metricsBuilder_ != null) {
metricsBuilder_.dispose();
metricsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
* stats.
*
*
*
* .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.notebooks.v1.RuntimeMetrics.Builder getMetricsBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getMetricsFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
* stats.
*
*
*
* .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder getMetricsOrBuilder() {
if (metricsBuilder_ != null) {
return metricsBuilder_.getMessageOrBuilder();
} else {
return metrics_ == null
? com.google.cloud.notebooks.v1.RuntimeMetrics.getDefaultInstance()
: metrics_;
}
}
/**
*
*
*
* Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
* stats.
*
*
*
* .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.notebooks.v1.RuntimeMetrics,
com.google.cloud.notebooks.v1.RuntimeMetrics.Builder,
com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder>
getMetricsFieldBuilder() {
if (metricsBuilder_ == null) {
metricsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.notebooks.v1.RuntimeMetrics,
com.google.cloud.notebooks.v1.RuntimeMetrics.Builder,
com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder>(
getMetrics(), getParentForChildren(), isClean());
metrics_ = null;
}
return metricsBuilder_;
}
private com.google.protobuf.Timestamp createTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
createTimeBuilder_;
/**
*
*
*
* Output only. Runtime creation time.
*
*
*
* .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*
*
* Output only. Runtime creation time.
*
*
*
* .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The createTime.
*/
public com.google.protobuf.Timestamp getCreateTime() {
if (createTimeBuilder_ == null) {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
} else {
return createTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. Runtime creation time.
*
*
*
* .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createTime_ = value;
} else {
createTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* Output only. Runtime creation time.
*
*
*
* .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (createTimeBuilder_ == null) {
createTime_ = builderForValue.build();
} else {
createTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* Output only. Runtime creation time.
*
*
*
* .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)
&& createTime_ != null
&& createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreateTimeBuilder().mergeFrom(value);
} else {
createTime_ = value;
}
} else {
createTimeBuilder_.mergeFrom(value);
}
if (createTime_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. Runtime creation time.
*
*
*
* .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearCreateTime() {
bitField0_ = (bitField0_ & ~0x00000080);
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. Runtime creation time.
*
*
*
* .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getCreateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. Runtime creation time.
*
*
*
* .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
if (createTimeBuilder_ != null) {
return createTimeBuilder_.getMessageOrBuilder();
} else {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
}
}
/**
*
*
*
* Output only. Runtime creation time.
*
*
*
* .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder() {
if (createTimeBuilder_ == null) {
createTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getCreateTime(), getParentForChildren(), isClean());
createTime_ = null;
}
return createTimeBuilder_;
}
private com.google.protobuf.Timestamp updateTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
updateTimeBuilder_;
/**
*
*
*
* Output only. Runtime update time.
*
*
*
* .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the updateTime field is set.
*/
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
*
*
* Output only. Runtime update time.
*
*
*
* .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The updateTime.
*/
public com.google.protobuf.Timestamp getUpdateTime() {
if (updateTimeBuilder_ == null) {
return updateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: updateTime_;
} else {
return updateTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. Runtime update time.
*
*
*
* .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateTime_ = value;
} else {
updateTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* Output only. Runtime update time.
*
*
*
* .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (updateTimeBuilder_ == null) {
updateTime_ = builderForValue.build();
} else {
updateTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* Output only. Runtime update time.
*
*
*
* .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0)
&& updateTime_ != null
&& updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getUpdateTimeBuilder().mergeFrom(value);
} else {
updateTime_ = value;
}
} else {
updateTimeBuilder_.mergeFrom(value);
}
if (updateTime_ != null) {
bitField0_ |= 0x00000100;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. Runtime update time.
*
*
*
* .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearUpdateTime() {
bitField0_ = (bitField0_ & ~0x00000100);
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. Runtime update time.
*
*
*
* .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getUpdateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. Runtime update time.
*
*
*
* .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
if (updateTimeBuilder_ != null) {
return updateTimeBuilder_.getMessageOrBuilder();
} else {
return updateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: updateTime_;
}
}
/**
*
*
*
* Output only. Runtime update time.
*
*
*
* .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder() {
if (updateTimeBuilder_ == null) {
updateTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getUpdateTime(), getParentForChildren(), isClean());
updateTime_ = null;
}
return updateTimeBuilder_;
}
@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.Runtime)
}
// @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.Runtime)
private static final com.google.cloud.notebooks.v1.Runtime DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.Runtime();
}
public static com.google.cloud.notebooks.v1.Runtime getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Runtime 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.Runtime getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}