Class NotebookExecutionJob (3.44.0)

public final class NotebookExecutionJob extends GeneratedMessageV3 implements NotebookExecutionJobOrBuilder

NotebookExecutionJob represents an instance of a notebook execution.

Protobuf type google.cloud.aiplatform.v1beta1.NotebookExecutionJob

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DATAFORM_REPOSITORY_SOURCE_FIELD_NUMBER

public static final int DATAFORM_REPOSITORY_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

EXECUTION_TIMEOUT_FIELD_NUMBER

public static final int EXECUTION_TIMEOUT_FIELD_NUMBER
Field Value
Type Description
int

EXECUTION_USER_FIELD_NUMBER

public static final int EXECUTION_USER_FIELD_NUMBER
Field Value
Type Description
int

GCS_NOTEBOOK_SOURCE_FIELD_NUMBER

public static final int GCS_NOTEBOOK_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

GCS_OUTPUT_URI_FIELD_NUMBER

public static final int GCS_OUTPUT_URI_FIELD_NUMBER
Field Value
Type Description
int

JOB_STATE_FIELD_NUMBER

public static final int JOB_STATE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME_FIELD_NUMBER

public static final int NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME_FIELD_NUMBER
Field Value
Type Description
int

SCHEDULE_RESOURCE_NAME_FIELD_NUMBER

public static final int SCHEDULE_RESOURCE_NAME_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_ACCOUNT_FIELD_NUMBER

public static final int SERVICE_ACCOUNT_FIELD_NUMBER
Field Value
Type Description
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NotebookExecutionJob getDefaultInstance()
Returns
Type Description
NotebookExecutionJob

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static NotebookExecutionJob.Builder newBuilder()
Returns
Type Description
NotebookExecutionJob.Builder

newBuilder(NotebookExecutionJob prototype)

public static NotebookExecutionJob.Builder newBuilder(NotebookExecutionJob prototype)
Parameter
Name Description
prototype NotebookExecutionJob
Returns
Type Description
NotebookExecutionJob.Builder

parseDelimitedFrom(InputStream input)

public static NotebookExecutionJob parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NotebookExecutionJob
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NotebookExecutionJob parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NotebookExecutionJob
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static NotebookExecutionJob parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
NotebookExecutionJob
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NotebookExecutionJob parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NotebookExecutionJob
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NotebookExecutionJob parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
NotebookExecutionJob
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NotebookExecutionJob parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NotebookExecutionJob
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NotebookExecutionJob parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
NotebookExecutionJob
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NotebookExecutionJob parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NotebookExecutionJob
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static NotebookExecutionJob parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NotebookExecutionJob
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NotebookExecutionJob parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NotebookExecutionJob
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static NotebookExecutionJob parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
NotebookExecutionJob
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NotebookExecutionJob parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NotebookExecutionJob
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<NotebookExecutionJob> parser()
Returns
Type Description
Parser<NotebookExecutionJob>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp when this NotebookExecutionJob was created.

.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp when this NotebookExecutionJob was created.

.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDataformRepositorySource()

public NotebookExecutionJob.DataformRepositorySource getDataformRepositorySource()

The Dataform Repository pointing to a single file notebook repository.

.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3;

Returns
Type Description
NotebookExecutionJob.DataformRepositorySource

The dataformRepositorySource.

getDataformRepositorySourceOrBuilder()

public NotebookExecutionJob.DataformRepositorySourceOrBuilder getDataformRepositorySourceOrBuilder()

The Dataform Repository pointing to a single file notebook repository.

.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3;

Returns
Type Description
NotebookExecutionJob.DataformRepositorySourceOrBuilder

getDefaultInstanceForType()

public NotebookExecutionJob getDefaultInstanceForType()
Returns
Type Description
NotebookExecutionJob

getDisplayName()

public String getDisplayName()

The display name of the NotebookExecutionJob. The name can be up to 128 characters long and can consist of any UTF-8 characters.

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of the NotebookExecutionJob. The name can be up to 128 characters long and can consist of any UTF-8 characters.

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getEnvironmentSpecCase()

public NotebookExecutionJob.EnvironmentSpecCase getEnvironmentSpecCase()
Returns
Type Description
NotebookExecutionJob.EnvironmentSpecCase

getExecutionIdentityCase()

public NotebookExecutionJob.ExecutionIdentityCase getExecutionIdentityCase()
Returns
Type Description
NotebookExecutionJob.ExecutionIdentityCase

getExecutionSinkCase()

public NotebookExecutionJob.ExecutionSinkCase getExecutionSinkCase()
Returns
Type Description
NotebookExecutionJob.ExecutionSinkCase

getExecutionTimeout()

public Duration getExecutionTimeout()

Max running time of the execution job in seconds (default 86400s / 24 hrs).

.google.protobuf.Duration execution_timeout = 5;

Returns
Type Description
Duration

The executionTimeout.

getExecutionTimeoutOrBuilder()

public DurationOrBuilder getExecutionTimeoutOrBuilder()

Max running time of the execution job in seconds (default 86400s / 24 hrs).

.google.protobuf.Duration execution_timeout = 5;

Returns
Type Description
DurationOrBuilder

getExecutionUser()

public String getExecutionUser()

The user email to run the execution as. Only supported by Colab runtimes.

string execution_user = 9;

Returns
Type Description
String

The executionUser.

getExecutionUserBytes()

public ByteString getExecutionUserBytes()

The user email to run the execution as. Only supported by Colab runtimes.

string execution_user = 9;

Returns
Type Description
ByteString

The bytes for executionUser.

getGcsNotebookSource()

public NotebookExecutionJob.GcsNotebookSource getGcsNotebookSource()

The Cloud Storage url pointing to the ipynb file. Format: gs://bucket/notebook_file.ipynb

.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4;

Returns
Type Description
NotebookExecutionJob.GcsNotebookSource

The gcsNotebookSource.

getGcsNotebookSourceOrBuilder()

public NotebookExecutionJob.GcsNotebookSourceOrBuilder getGcsNotebookSourceOrBuilder()

The Cloud Storage url pointing to the ipynb file. Format: gs://bucket/notebook_file.ipynb

.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4;

Returns
Type Description
NotebookExecutionJob.GcsNotebookSourceOrBuilder

getGcsOutputUri()

public String getGcsOutputUri()

The Cloud Storage location to upload the result to. Format: gs://bucket-name

string gcs_output_uri = 8;

Returns
Type Description
String

The gcsOutputUri.

getGcsOutputUriBytes()

public ByteString getGcsOutputUriBytes()

The Cloud Storage location to upload the result to. Format: gs://bucket-name

string gcs_output_uri = 8;

Returns
Type Description
ByteString

The bytes for gcsOutputUri.

getJobState()

public JobState getJobState()

Output only. The state of the NotebookExecutionJob.

.google.cloud.aiplatform.v1beta1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
JobState

The jobState.

getJobStateValue()

public int getJobStateValue()

Output only. The state of the NotebookExecutionJob.

.google.cloud.aiplatform.v1beta1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for jobState.

getName()

public String getName()

Output only. The resource name of this NotebookExecutionJob. Format: projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of this NotebookExecutionJob. Format: projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getNotebookRuntimeTemplateResourceName()

public String getNotebookRuntimeTemplateResourceName()

The NotebookRuntimeTemplate to source compute configuration from.

string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The notebookRuntimeTemplateResourceName.

getNotebookRuntimeTemplateResourceNameBytes()

public ByteString getNotebookRuntimeTemplateResourceNameBytes()

The NotebookRuntimeTemplate to source compute configuration from.

string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for notebookRuntimeTemplateResourceName.

getNotebookSourceCase()

public NotebookExecutionJob.NotebookSourceCase getNotebookSourceCase()
Returns
Type Description
NotebookExecutionJob.NotebookSourceCase

getParserForType()

public Parser<NotebookExecutionJob> getParserForType()
Returns
Type Description
Parser<NotebookExecutionJob>
Overrides

getScheduleResourceName()

public String getScheduleResourceName()

Output only. The Schedule resource name if this job is triggered by one. Format: projects/{project_id}/locations/{location}/schedules/{schedule_id}

string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The scheduleResourceName.

getScheduleResourceNameBytes()

public ByteString getScheduleResourceNameBytes()

Output only. The Schedule resource name if this job is triggered by one. Format: projects/{project_id}/locations/{location}/schedules/{schedule_id}

string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for scheduleResourceName.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getServiceAccount()

public String getServiceAccount()

The service account to run the execution as.

string service_account = 18;

Returns
Type Description
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

The service account to run the execution as.

string service_account = 18;

Returns
Type Description
ByteString

The bytes for serviceAccount.

getStatus()

public Status getStatus()

Output only. Populated when the NotebookExecutionJob is completed. When there is an error during notebook execution, the error details are populated.

.google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status

The status.

getStatusOrBuilder()

public StatusOrBuilder getStatusOrBuilder()

Output only. Populated when the NotebookExecutionJob is completed. When there is an error during notebook execution, the error details are populated.

.google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.StatusOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Timestamp when this NotebookExecutionJob was most recently updated.

.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Timestamp when this NotebookExecutionJob was most recently updated.

.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp when this NotebookExecutionJob was created.

.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDataformRepositorySource()

public boolean hasDataformRepositorySource()

The Dataform Repository pointing to a single file notebook repository.

.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3;

Returns
Type Description
boolean

Whether the dataformRepositorySource field is set.

hasExecutionTimeout()

public boolean hasExecutionTimeout()

Max running time of the execution job in seconds (default 86400s / 24 hrs).

.google.protobuf.Duration execution_timeout = 5;

Returns
Type Description
boolean

Whether the executionTimeout field is set.

hasExecutionUser()

public boolean hasExecutionUser()

The user email to run the execution as. Only supported by Colab runtimes.

string execution_user = 9;

Returns
Type Description
boolean

Whether the executionUser field is set.

hasGcsNotebookSource()

public boolean hasGcsNotebookSource()

The Cloud Storage url pointing to the ipynb file. Format: gs://bucket/notebook_file.ipynb

.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4;

Returns
Type Description
boolean

Whether the gcsNotebookSource field is set.

hasGcsOutputUri()

public boolean hasGcsOutputUri()

The Cloud Storage location to upload the result to. Format: gs://bucket-name

string gcs_output_uri = 8;

Returns
Type Description
boolean

Whether the gcsOutputUri field is set.

hasNotebookRuntimeTemplateResourceName()

public boolean hasNotebookRuntimeTemplateResourceName()

The NotebookRuntimeTemplate to source compute configuration from.

string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the notebookRuntimeTemplateResourceName field is set.

hasServiceAccount()

public boolean hasServiceAccount()

The service account to run the execution as.

string service_account = 18;

Returns
Type Description
boolean

Whether the serviceAccount field is set.

hasStatus()

public boolean hasStatus()

Output only. Populated when the NotebookExecutionJob is completed. When there is an error during notebook execution, the error details are populated.

.google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the status field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Timestamp when this NotebookExecutionJob was most recently updated.

.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public NotebookExecutionJob.Builder newBuilderForType()
Returns
Type Description
NotebookExecutionJob.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NotebookExecutionJob.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
NotebookExecutionJob.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public NotebookExecutionJob.Builder toBuilder()
Returns
Type Description
NotebookExecutionJob.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException