Class InstanceConfig.Builder (1.20.0)

public static final class InstanceConfig.Builder extends GeneratedMessageV3.Builder<InstanceConfig.Builder> implements InstanceConfigOrBuilder

Notebook instance configurations that can be updated.

Protobuf type google.cloud.notebooks.v1.InstanceConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InstanceConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InstanceConfig.Builder
Overrides

build()

public InstanceConfig build()
Returns
TypeDescription
InstanceConfig

buildPartial()

public InstanceConfig buildPartial()
Returns
TypeDescription
InstanceConfig

clear()

public InstanceConfig.Builder clear()
Returns
TypeDescription
InstanceConfig.Builder
Overrides

clearEnableHealthMonitoring()

public InstanceConfig.Builder clearEnableHealthMonitoring()

Verifies core internal services are running.

bool enable_health_monitoring = 2;

Returns
TypeDescription
InstanceConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public InstanceConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InstanceConfig.Builder
Overrides

clearNotebookUpgradeSchedule()

public InstanceConfig.Builder clearNotebookUpgradeSchedule()

Cron expression in UTC timezone, used to schedule instance auto upgrade. Please follow the cron format.

string notebook_upgrade_schedule = 1;

Returns
TypeDescription
InstanceConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
InstanceConfig.Builder
Overrides

clone()

public InstanceConfig.Builder clone()
Returns
TypeDescription
InstanceConfig.Builder
Overrides

getDefaultInstanceForType()

public InstanceConfig getDefaultInstanceForType()
Returns
TypeDescription
InstanceConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnableHealthMonitoring()

public boolean getEnableHealthMonitoring()

Verifies core internal services are running.

bool enable_health_monitoring = 2;

Returns
TypeDescription
boolean

The enableHealthMonitoring.

getNotebookUpgradeSchedule()

public String getNotebookUpgradeSchedule()

Cron expression in UTC timezone, used to schedule instance auto upgrade. Please follow the cron format.

string notebook_upgrade_schedule = 1;

Returns
TypeDescription
String

The notebookUpgradeSchedule.

getNotebookUpgradeScheduleBytes()

public ByteString getNotebookUpgradeScheduleBytes()

Cron expression in UTC timezone, used to schedule instance auto upgrade. Please follow the cron format.

string notebook_upgrade_schedule = 1;

Returns
TypeDescription
ByteString

The bytes for notebookUpgradeSchedule.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstanceConfig other)

public InstanceConfig.Builder mergeFrom(InstanceConfig other)
Parameter
NameDescription
otherInstanceConfig
Returns
TypeDescription
InstanceConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstanceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InstanceConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
InstanceConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstanceConfig.Builder
Overrides

setEnableHealthMonitoring(boolean value)

public InstanceConfig.Builder setEnableHealthMonitoring(boolean value)

Verifies core internal services are running.

bool enable_health_monitoring = 2;

Parameter
NameDescription
valueboolean

The enableHealthMonitoring to set.

Returns
TypeDescription
InstanceConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InstanceConfig.Builder
Overrides

setNotebookUpgradeSchedule(String value)

public InstanceConfig.Builder setNotebookUpgradeSchedule(String value)

Cron expression in UTC timezone, used to schedule instance auto upgrade. Please follow the cron format.

string notebook_upgrade_schedule = 1;

Parameter
NameDescription
valueString

The notebookUpgradeSchedule to set.

Returns
TypeDescription
InstanceConfig.Builder

This builder for chaining.

setNotebookUpgradeScheduleBytes(ByteString value)

public InstanceConfig.Builder setNotebookUpgradeScheduleBytes(ByteString value)

Cron expression in UTC timezone, used to schedule instance auto upgrade. Please follow the cron format.

string notebook_upgrade_schedule = 1;

Parameter
NameDescription
valueByteString

The bytes for notebookUpgradeSchedule to set.

Returns
TypeDescription
InstanceConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InstanceConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
InstanceConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final InstanceConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstanceConfig.Builder
Overrides