Class Execution.Builder (1.26.0)

public static final class Execution.Builder extends GeneratedMessageV3.Builder<Execution.Builder> implements ExecutionOrBuilder

The definition of a single executed notebook.

Protobuf type google.cloud.notebooks.v1.Execution

Implements

ExecutionOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Execution build()
Returns
TypeDescription
Execution

buildPartial()

public Execution buildPartial()
Returns
TypeDescription
Execution

clear()

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

clearCreateTime()

public Execution.Builder clearCreateTime()

Output only. Time the Execution was instantiated.

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

Returns
TypeDescription
Execution.Builder

clearDescription()

public Execution.Builder clearDescription()

A brief description of this execution.

string description = 4;

Returns
TypeDescription
Execution.Builder

This builder for chaining.

clearDisplayName()

public Execution.Builder clearDisplayName()

Output only. Name used for UI purposes. Name can only contain alphanumeric characters and underscores '_'.

string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Execution.Builder

This builder for chaining.

clearExecutionTemplate()

public Execution.Builder clearExecutionTemplate()

execute metadata including name, hardware spec, region, labels, etc.

.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1;

Returns
TypeDescription
Execution.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearJobUri()

public Execution.Builder clearJobUri()

Output only. The URI of the external job used to execute the notebook.

string job_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Execution.Builder

This builder for chaining.

clearName()

public Execution.Builder clearName()

Output only. The resource name of the execute. Format: projects/{project_id}/locations/{location}/executions/{execution_id}

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

Returns
TypeDescription
Execution.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOutputNotebookFile()

public Execution.Builder clearOutputNotebookFile()

Output notebook file generated by this execution

string output_notebook_file = 8;

Returns
TypeDescription
Execution.Builder

This builder for chaining.

clearState()

public Execution.Builder clearState()

Output only. State of the underlying AI Platform job.

.google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Execution.Builder

This builder for chaining.

clearUpdateTime()

public Execution.Builder clearUpdateTime()

Output only. Time the Execution was last updated.

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

Returns
TypeDescription
Execution.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. Time the Execution was instantiated.

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

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time the Execution was instantiated.

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

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time the Execution was instantiated.

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Execution getDefaultInstanceForType()
Returns
TypeDescription
Execution

getDescription()

public String getDescription()

A brief description of this execution.

string description = 4;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A brief description of this execution.

string description = 4;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Output only. Name used for UI purposes. Name can only contain alphanumeric characters and underscores '_'.

string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. Name used for UI purposes. Name can only contain alphanumeric characters and underscores '_'.

string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for displayName.

getExecutionTemplate()

public ExecutionTemplate getExecutionTemplate()

execute metadata including name, hardware spec, region, labels, etc.

.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1;

Returns
TypeDescription
ExecutionTemplate

The executionTemplate.

getExecutionTemplateBuilder()

public ExecutionTemplate.Builder getExecutionTemplateBuilder()

execute metadata including name, hardware spec, region, labels, etc.

.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1;

Returns
TypeDescription
ExecutionTemplate.Builder

getExecutionTemplateOrBuilder()

public ExecutionTemplateOrBuilder getExecutionTemplateOrBuilder()

execute metadata including name, hardware spec, region, labels, etc.

.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1;

Returns
TypeDescription
ExecutionTemplateOrBuilder

getJobUri()

public String getJobUri()

Output only. The URI of the external job used to execute the notebook.

string job_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The jobUri.

getJobUriBytes()

public ByteString getJobUriBytes()

Output only. The URI of the external job used to execute the notebook.

string job_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for jobUri.

getName()

public String getName()

Output only. The resource name of the execute. Format: projects/{project_id}/locations/{location}/executions/{execution_id}

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of the execute. Format: projects/{project_id}/locations/{location}/executions/{execution_id}

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

Returns
TypeDescription
ByteString

The bytes for name.

getOutputNotebookFile()

public String getOutputNotebookFile()

Output notebook file generated by this execution

string output_notebook_file = 8;

Returns
TypeDescription
String

The outputNotebookFile.

getOutputNotebookFileBytes()

public ByteString getOutputNotebookFileBytes()

Output notebook file generated by this execution

string output_notebook_file = 8;

Returns
TypeDescription
ByteString

The bytes for outputNotebookFile.

getState()

public Execution.State getState()

Output only. State of the underlying AI Platform job.

.google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Execution.State

The state.

getStateValue()

public int getStateValue()

Output only. State of the underlying AI Platform job.

.google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time the Execution was last updated.

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

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time the Execution was last updated.

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

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time the Execution was last updated.

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

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Time the Execution was instantiated.

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

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasExecutionTemplate()

public boolean hasExecutionTemplate()

execute metadata including name, hardware spec, region, labels, etc.

.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1;

Returns
TypeDescription
boolean

Whether the executionTemplate field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time the Execution was last updated.

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

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Execution.Builder mergeCreateTime(Timestamp value)

Output only. Time the Execution was instantiated.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Execution.Builder

mergeExecutionTemplate(ExecutionTemplate value)

public Execution.Builder mergeExecutionTemplate(ExecutionTemplate value)

execute metadata including name, hardware spec, region, labels, etc.

.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1;

Parameter
NameDescription
valueExecutionTemplate
Returns
TypeDescription
Execution.Builder

mergeFrom(Execution other)

public Execution.Builder mergeFrom(Execution other)
Parameter
NameDescription
otherExecution
Returns
TypeDescription
Execution.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Execution.Builder mergeUpdateTime(Timestamp value)

Output only. Time the Execution was last updated.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Execution.Builder

setCreateTime(Timestamp value)

public Execution.Builder setCreateTime(Timestamp value)

Output only. Time the Execution was instantiated.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Execution.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Execution.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time the Execution was instantiated.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Execution.Builder

setDescription(String value)

public Execution.Builder setDescription(String value)

A brief description of this execution.

string description = 4;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Execution.Builder setDescriptionBytes(ByteString value)

A brief description of this execution.

string description = 4;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setDisplayName(String value)

public Execution.Builder setDisplayName(String value)

Output only. Name used for UI purposes. Name can only contain alphanumeric characters and underscores '_'.

string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Execution.Builder setDisplayNameBytes(ByteString value)

Output only. Name used for UI purposes. Name can only contain alphanumeric characters and underscores '_'.

string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setExecutionTemplate(ExecutionTemplate value)

public Execution.Builder setExecutionTemplate(ExecutionTemplate value)

execute metadata including name, hardware spec, region, labels, etc.

.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1;

Parameter
NameDescription
valueExecutionTemplate
Returns
TypeDescription
Execution.Builder

setExecutionTemplate(ExecutionTemplate.Builder builderForValue)

public Execution.Builder setExecutionTemplate(ExecutionTemplate.Builder builderForValue)

execute metadata including name, hardware spec, region, labels, etc.

.google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1;

Parameter
NameDescription
builderForValueExecutionTemplate.Builder
Returns
TypeDescription
Execution.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setJobUri(String value)

public Execution.Builder setJobUri(String value)

Output only. The URI of the external job used to execute the notebook.

string job_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The jobUri to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setJobUriBytes(ByteString value)

public Execution.Builder setJobUriBytes(ByteString value)

Output only. The URI of the external job used to execute the notebook.

string job_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for jobUri to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setName(String value)

public Execution.Builder setName(String value)

Output only. The resource name of the execute. Format: projects/{project_id}/locations/{location}/executions/{execution_id}

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Execution.Builder setNameBytes(ByteString value)

Output only. The resource name of the execute. Format: projects/{project_id}/locations/{location}/executions/{execution_id}

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setOutputNotebookFile(String value)

public Execution.Builder setOutputNotebookFile(String value)

Output notebook file generated by this execution

string output_notebook_file = 8;

Parameter
NameDescription
valueString

The outputNotebookFile to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setOutputNotebookFileBytes(ByteString value)

public Execution.Builder setOutputNotebookFileBytes(ByteString value)

Output notebook file generated by this execution

string output_notebook_file = 8;

Parameter
NameDescription
valueByteString

The bytes for outputNotebookFile to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

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

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

setState(Execution.State value)

public Execution.Builder setState(Execution.State value)

Output only. State of the underlying AI Platform job.

.google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueExecution.State

The state to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setStateValue(int value)

public Execution.Builder setStateValue(int value)

Output only. State of the underlying AI Platform job.

.google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Execution.Builder setUpdateTime(Timestamp value)

Output only. Time the Execution was last updated.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Execution.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Execution.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time the Execution was last updated.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Execution.Builder