Class Execution.Builder

  • All Implemented Interfaces:
    ExecutionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Execution

    public static final class Execution.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Execution.Builder>
    implements ExecutionOrBuilder
     The definition of a single executed notebook.
     
    Protobuf type google.cloud.notebooks.v1.Execution
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Execution.Builder>
      • clear

        public Execution.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Execution.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Execution.Builder>
      • getDefaultInstanceForType

        public Execution getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Execution build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Execution buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Execution.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Execution.Builder>
      • setField

        public Execution.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Execution.Builder>
      • clearField

        public Execution.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Execution.Builder>
      • clearOneof

        public Execution.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Execution.Builder>
      • setRepeatedField

        public Execution.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Execution.Builder>
      • addRepeatedField

        public Execution.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Execution.Builder>
      • mergeFrom

        public Execution.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Execution.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Execution.Builder>
      • mergeFrom

        public Execution.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Execution.Builder>
        Throws:
        IOException
      • hasExecutionTemplate

        public boolean hasExecutionTemplate()
         execute metadata including name, hardware spec, region, labels, etc.
         
        .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1;
        Specified by:
        hasExecutionTemplate in interface ExecutionOrBuilder
        Returns:
        Whether the executionTemplate field is set.
      • getExecutionTemplate

        public ExecutionTemplate getExecutionTemplate()
         execute metadata including name, hardware spec, region, labels, etc.
         
        .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1;
        Specified by:
        getExecutionTemplate in interface ExecutionOrBuilder
        Returns:
        The executionTemplate.
      • setExecutionTemplate

        public Execution.Builder setExecutionTemplate​(ExecutionTemplate value)
         execute metadata including name, hardware spec, region, labels, etc.
         
        .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1;
      • setExecutionTemplate

        public Execution.Builder setExecutionTemplate​(ExecutionTemplate.Builder builderForValue)
         execute metadata including name, hardware spec, region, labels, etc.
         
        .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1;
      • mergeExecutionTemplate

        public Execution.Builder mergeExecutionTemplate​(ExecutionTemplate value)
         execute metadata including name, hardware spec, region, labels, etc.
         
        .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1;
      • clearExecutionTemplate

        public Execution.Builder clearExecutionTemplate()
         execute metadata including name, hardware spec, region, labels, etc.
         
        .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1;
      • getExecutionTemplateBuilder

        public ExecutionTemplate.Builder getExecutionTemplateBuilder()
         execute metadata including name, hardware spec, region, labels, etc.
         
        .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1;
      • 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];
        Specified by:
        getName in interface ExecutionOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.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];
        Specified by:
        getNameBytes in interface ExecutionOrBuilder
        Returns:
        The bytes for name.
      • setName

        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];
        Parameters:
        value - The name to set.
        Returns:
        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:
        This builder for chaining.
      • setNameBytes

        public Execution.Builder setNameBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • 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];
        Specified by:
        getDisplayName in interface ExecutionOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.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];
        Specified by:
        getDisplayNameBytes in interface ExecutionOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        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];
        Parameters:
        value - The displayName to set.
        Returns:
        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:
        This builder for chaining.
      • setDisplayNameBytes

        public Execution.Builder setDisplayNameBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • getDescription

        public String getDescription()
         A brief description of this execution.
         
        string description = 4;
        Specified by:
        getDescription in interface ExecutionOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         A brief description of this execution.
         
        string description = 4;
        Specified by:
        getDescriptionBytes in interface ExecutionOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public Execution.Builder setDescription​(String value)
         A brief description of this execution.
         
        string description = 4;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public Execution.Builder clearDescription()
         A brief description of this execution.
         
        string description = 4;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public Execution.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         A brief description of this execution.
         
        string description = 4;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. Time the Execution was instantiated.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface ExecutionOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. Time the Execution was instantiated.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface ExecutionOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Execution.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Time the Execution was instantiated.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public Execution.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Time the Execution was instantiated.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public Execution.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Time the Execution was instantiated.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public Execution.Builder clearCreateTime()
         Output only. Time the Execution was instantiated.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. Time the Execution was instantiated.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. Time the Execution was instantiated.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface ExecutionOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. Time the Execution was last updated.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface ExecutionOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. Time the Execution was last updated.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface ExecutionOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public Execution.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. Time the Execution was last updated.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public Execution.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Time the Execution was last updated.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public Execution.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. Time the Execution was last updated.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • 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];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. Time the Execution was last updated.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. Time the Execution was last updated.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface ExecutionOrBuilder
      • 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];
        Specified by:
        getStateValue in interface ExecutionOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        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];
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • 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];
        Specified by:
        getState in interface ExecutionOrBuilder
        Returns:
        The state.
      • setState

        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];
        Parameters:
        value - The state to set.
        Returns:
        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:
        This builder for chaining.
      • getOutputNotebookFile

        public String getOutputNotebookFile()
         Output notebook file generated by this execution
         
        string output_notebook_file = 8;
        Specified by:
        getOutputNotebookFile in interface ExecutionOrBuilder
        Returns:
        The outputNotebookFile.
      • getOutputNotebookFileBytes

        public com.google.protobuf.ByteString getOutputNotebookFileBytes()
         Output notebook file generated by this execution
         
        string output_notebook_file = 8;
        Specified by:
        getOutputNotebookFileBytes in interface ExecutionOrBuilder
        Returns:
        The bytes for outputNotebookFile.
      • setOutputNotebookFile

        public Execution.Builder setOutputNotebookFile​(String value)
         Output notebook file generated by this execution
         
        string output_notebook_file = 8;
        Parameters:
        value - The outputNotebookFile to set.
        Returns:
        This builder for chaining.
      • clearOutputNotebookFile

        public Execution.Builder clearOutputNotebookFile()
         Output notebook file generated by this execution
         
        string output_notebook_file = 8;
        Returns:
        This builder for chaining.
      • setOutputNotebookFileBytes

        public Execution.Builder setOutputNotebookFileBytes​(com.google.protobuf.ByteString value)
         Output notebook file generated by this execution
         
        string output_notebook_file = 8;
        Parameters:
        value - The bytes for outputNotebookFile to set.
        Returns:
        This builder for chaining.
      • 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];
        Specified by:
        getJobUri in interface ExecutionOrBuilder
        Returns:
        The jobUri.
      • getJobUriBytes

        public com.google.protobuf.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];
        Specified by:
        getJobUriBytes in interface ExecutionOrBuilder
        Returns:
        The bytes for jobUri.
      • setJobUri

        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];
        Parameters:
        value - The jobUri to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setJobUriBytes

        public Execution.Builder setJobUriBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for jobUri to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Execution.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Execution.Builder>
      • mergeUnknownFields

        public final Execution.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Execution.Builder>