Class ExecutionTemplate.Builder (1.4.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class ExecutionTemplate.Builder extends GeneratedMessageV3.Builder<ExecutionTemplate.Builder> implements ExecutionTemplateOrBuilder

The description a notebook execution workload.

Protobuf type google.cloud.notebooks.v1.ExecutionTemplate

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExecutionTemplate build()
Returns
TypeDescription
ExecutionTemplate

buildPartial()

public ExecutionTemplate buildPartial()
Returns
TypeDescription
ExecutionTemplate

clear()

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

clearAcceleratorConfig()

public ExecutionTemplate.Builder clearAcceleratorConfig()

Configuration (count and accelerator type) for hardware running notebook execution.

.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3;

Returns
TypeDescription
ExecutionTemplate.Builder

clearContainerImageUri()

public ExecutionTemplate.Builder clearContainerImageUri()

Container Image URI to a DLVM Example: 'gcr.io/deeplearning-platform-release/base-cu100' More examples can be found at: https://cloud.google.com/ai-platform/deep-learning-containers/docs/choosing-container

string container_image_uri = 6;

Returns
TypeDescription
ExecutionTemplate.Builder

This builder for chaining.

clearDataprocParameters()

public ExecutionTemplate.Builder clearDataprocParameters()

Parameters used in Dataproc JobType executions.

.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12;

Returns
TypeDescription
ExecutionTemplate.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearInputNotebookFile()

public ExecutionTemplate.Builder clearInputNotebookFile()

Path to the notebook file to execute. Must be in a Google Cloud Storage bucket. Format: gs://{bucket_name}/{folder}/{notebook_file_name} Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb

string input_notebook_file = 5;

Returns
TypeDescription
ExecutionTemplate.Builder

This builder for chaining.

clearJobParameters()

public ExecutionTemplate.Builder clearJobParameters()
Returns
TypeDescription
ExecutionTemplate.Builder

clearJobType()

public ExecutionTemplate.Builder clearJobType()

The type of Job to be used on this execution.

.google.cloud.notebooks.v1.ExecutionTemplate.JobType job_type = 11;

Returns
TypeDescription
ExecutionTemplate.Builder

This builder for chaining.

clearKernelSpec()

public ExecutionTemplate.Builder clearKernelSpec()

Name of the kernel spec to use. This must be specified if the kernel spec name on the execution target does not match the name in the input notebook file.

string kernel_spec = 14;

Returns
TypeDescription
ExecutionTemplate.Builder

This builder for chaining.

clearLabels()

public ExecutionTemplate.Builder clearLabels()
Returns
TypeDescription
ExecutionTemplate.Builder

clearMasterType()

public ExecutionTemplate.Builder clearMasterType()

Specifies the type of virtual machine to use for your training job's master worker. You must specify this field when scaleTier is set to CUSTOM. You can use certain Compute Engine machine types directly in this field. The following types are supported:

  • n1-standard-4
  • n1-standard-8
  • n1-standard-16
  • n1-standard-32
  • n1-standard-64
  • n1-standard-96
  • n1-highmem-2
  • n1-highmem-4
  • n1-highmem-8
  • n1-highmem-16
  • n1-highmem-32
  • n1-highmem-64
  • n1-highmem-96
  • n1-highcpu-16
  • n1-highcpu-32
  • n1-highcpu-64
  • n1-highcpu-96 Alternatively, you can use the following legacy machine types:
  • standard
  • large_model
  • complex_model_s
  • complex_model_m
  • complex_model_l
  • standard_gpu
  • complex_model_m_gpu
  • complex_model_l_gpu
  • standard_p100
  • complex_model_m_p100
  • standard_v100
  • large_model_v100
  • complex_model_m_v100
  • complex_model_l_v100 Finally, if you want to use a TPU for training, specify cloud_tpu in this field. Learn more about the special configuration options for training with TPU.

string master_type = 2;

Returns
TypeDescription
ExecutionTemplate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOutputNotebookFolder()

public ExecutionTemplate.Builder clearOutputNotebookFolder()

Path to the notebook folder to write to. Must be in a Google Cloud Storage bucket path. Format: gs://{bucket_name}/{folder} Ex: gs://notebook_user/scheduled_notebooks

string output_notebook_folder = 7;

Returns
TypeDescription
ExecutionTemplate.Builder

This builder for chaining.

clearParameters()

public ExecutionTemplate.Builder clearParameters()

Parameters used within the 'input_notebook_file' notebook.

string parameters = 9;

Returns