Class DiagnosticConfig.Builder

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

    public static final class DiagnosticConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<DiagnosticConfig.Builder>
    implements DiagnosticConfigOrBuilder
     Defines flags that are used to run the diagnostic tool
     
    Protobuf type google.cloud.notebooks.v2.DiagnosticConfig
    • 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<DiagnosticConfig.Builder>
      • clear

        public DiagnosticConfig.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<DiagnosticConfig.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<DiagnosticConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public DiagnosticConfig.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<DiagnosticConfig.Builder>
      • setField

        public DiagnosticConfig.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<DiagnosticConfig.Builder>
      • clearField

        public DiagnosticConfig.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<DiagnosticConfig.Builder>
      • clearOneof

        public DiagnosticConfig.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<DiagnosticConfig.Builder>
      • setRepeatedField

        public DiagnosticConfig.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<DiagnosticConfig.Builder>
      • addRepeatedField

        public DiagnosticConfig.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<DiagnosticConfig.Builder>
      • mergeFrom

        public DiagnosticConfig.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<DiagnosticConfig.Builder>
      • isInitialized

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

        public DiagnosticConfig.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<DiagnosticConfig.Builder>
        Throws:
        IOException
      • getGcsBucket

        public String getGcsBucket()
         Required. User Cloud Storage bucket location (REQUIRED).
         Must be formatted with path prefix (`gs://$GCS_BUCKET`).
        
         Permissions:
         User Managed Notebooks:
         - storage.buckets.writer: Must be given to the project's service account
           attached to VM.
         Google Managed Notebooks:
         - storage.buckets.writer: Must be given to the project's service account or
           user credentials attached to VM depending on authentication mode.
        
         Cloud Storage bucket Log file will be written to
         `gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz`
         
        string gcs_bucket = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getGcsBucket in interface DiagnosticConfigOrBuilder
        Returns:
        The gcsBucket.
      • getGcsBucketBytes

        public com.google.protobuf.ByteString getGcsBucketBytes()
         Required. User Cloud Storage bucket location (REQUIRED).
         Must be formatted with path prefix (`gs://$GCS_BUCKET`).
        
         Permissions:
         User Managed Notebooks:
         - storage.buckets.writer: Must be given to the project's service account
           attached to VM.
         Google Managed Notebooks:
         - storage.buckets.writer: Must be given to the project's service account or
           user credentials attached to VM depending on authentication mode.
        
         Cloud Storage bucket Log file will be written to
         `gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz`
         
        string gcs_bucket = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getGcsBucketBytes in interface DiagnosticConfigOrBuilder
        Returns:
        The bytes for gcsBucket.
      • setGcsBucket

        public DiagnosticConfig.Builder setGcsBucket​(String value)
         Required. User Cloud Storage bucket location (REQUIRED).
         Must be formatted with path prefix (`gs://$GCS_BUCKET`).
        
         Permissions:
         User Managed Notebooks:
         - storage.buckets.writer: Must be given to the project's service account
           attached to VM.
         Google Managed Notebooks:
         - storage.buckets.writer: Must be given to the project's service account or
           user credentials attached to VM depending on authentication mode.
        
         Cloud Storage bucket Log file will be written to
         `gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz`
         
        string gcs_bucket = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The gcsBucket to set.
        Returns:
        This builder for chaining.
      • clearGcsBucket

        public DiagnosticConfig.Builder clearGcsBucket()
         Required. User Cloud Storage bucket location (REQUIRED).
         Must be formatted with path prefix (`gs://$GCS_BUCKET`).
        
         Permissions:
         User Managed Notebooks:
         - storage.buckets.writer: Must be given to the project's service account
           attached to VM.
         Google Managed Notebooks:
         - storage.buckets.writer: Must be given to the project's service account or
           user credentials attached to VM depending on authentication mode.
        
         Cloud Storage bucket Log file will be written to
         `gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz`
         
        string gcs_bucket = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setGcsBucketBytes

        public DiagnosticConfig.Builder setGcsBucketBytes​(com.google.protobuf.ByteString value)
         Required. User Cloud Storage bucket location (REQUIRED).
         Must be formatted with path prefix (`gs://$GCS_BUCKET`).
        
         Permissions:
         User Managed Notebooks:
         - storage.buckets.writer: Must be given to the project's service account
           attached to VM.
         Google Managed Notebooks:
         - storage.buckets.writer: Must be given to the project's service account or
           user credentials attached to VM depending on authentication mode.
        
         Cloud Storage bucket Log file will be written to
         `gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz`
         
        string gcs_bucket = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for gcsBucket to set.
        Returns:
        This builder for chaining.
      • getRelativePath

        public String getRelativePath()
         Optional. Defines the relative storage path in the Cloud Storage bucket
         where the diagnostic logs will be written: Default path will be the root
         directory of the Cloud Storage bucket
         (`gs://$GCS_BUCKET/$DATE_$TIME.tar.gz`) Example of full path where Log file
         will be written: `gs://$GCS_BUCKET/$RELATIVE_PATH/`
         
        string relative_path = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRelativePath in interface DiagnosticConfigOrBuilder
        Returns:
        The relativePath.
      • getRelativePathBytes

        public com.google.protobuf.ByteString getRelativePathBytes()
         Optional. Defines the relative storage path in the Cloud Storage bucket
         where the diagnostic logs will be written: Default path will be the root
         directory of the Cloud Storage bucket
         (`gs://$GCS_BUCKET/$DATE_$TIME.tar.gz`) Example of full path where Log file
         will be written: `gs://$GCS_BUCKET/$RELATIVE_PATH/`
         
        string relative_path = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRelativePathBytes in interface DiagnosticConfigOrBuilder
        Returns:
        The bytes for relativePath.
      • setRelativePath

        public DiagnosticConfig.Builder setRelativePath​(String value)
         Optional. Defines the relative storage path in the Cloud Storage bucket
         where the diagnostic logs will be written: Default path will be the root
         directory of the Cloud Storage bucket
         (`gs://$GCS_BUCKET/$DATE_$TIME.tar.gz`) Example of full path where Log file
         will be written: `gs://$GCS_BUCKET/$RELATIVE_PATH/`
         
        string relative_path = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The relativePath to set.
        Returns:
        This builder for chaining.
      • clearRelativePath

        public DiagnosticConfig.Builder clearRelativePath()
         Optional. Defines the relative storage path in the Cloud Storage bucket
         where the diagnostic logs will be written: Default path will be the root
         directory of the Cloud Storage bucket
         (`gs://$GCS_BUCKET/$DATE_$TIME.tar.gz`) Example of full path where Log file
         will be written: `gs://$GCS_BUCKET/$RELATIVE_PATH/`
         
        string relative_path = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setRelativePathBytes

        public DiagnosticConfig.Builder setRelativePathBytes​(com.google.protobuf.ByteString value)
         Optional. Defines the relative storage path in the Cloud Storage bucket
         where the diagnostic logs will be written: Default path will be the root
         directory of the Cloud Storage bucket
         (`gs://$GCS_BUCKET/$DATE_$TIME.tar.gz`) Example of full path where Log file
         will be written: `gs://$GCS_BUCKET/$RELATIVE_PATH/`
         
        string relative_path = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for relativePath to set.
        Returns:
        This builder for chaining.
      • getEnableRepairFlag

        public boolean getEnableRepairFlag()
         Optional. Enables flag to repair service for instance
         
        bool enable_repair_flag = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEnableRepairFlag in interface DiagnosticConfigOrBuilder
        Returns:
        The enableRepairFlag.
      • setEnableRepairFlag

        public DiagnosticConfig.Builder setEnableRepairFlag​(boolean value)
         Optional. Enables flag to repair service for instance
         
        bool enable_repair_flag = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enableRepairFlag to set.
        Returns:
        This builder for chaining.
      • clearEnableRepairFlag

        public DiagnosticConfig.Builder clearEnableRepairFlag()
         Optional. Enables flag to repair service for instance
         
        bool enable_repair_flag = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getEnablePacketCaptureFlag

        public boolean getEnablePacketCaptureFlag()
         Optional. Enables flag to capture packets from the instance for 30 seconds
         
        bool enable_packet_capture_flag = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEnablePacketCaptureFlag in interface DiagnosticConfigOrBuilder
        Returns:
        The enablePacketCaptureFlag.
      • setEnablePacketCaptureFlag

        public DiagnosticConfig.Builder setEnablePacketCaptureFlag​(boolean value)
         Optional. Enables flag to capture packets from the instance for 30 seconds
         
        bool enable_packet_capture_flag = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enablePacketCaptureFlag to set.
        Returns:
        This builder for chaining.
      • clearEnablePacketCaptureFlag

        public DiagnosticConfig.Builder clearEnablePacketCaptureFlag()
         Optional. Enables flag to capture packets from the instance for 30 seconds
         
        bool enable_packet_capture_flag = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getEnableCopyHomeFilesFlag

        public boolean getEnableCopyHomeFilesFlag()
         Optional. Enables flag to copy all `/home/jupyter` folder contents
         
        bool enable_copy_home_files_flag = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEnableCopyHomeFilesFlag in interface DiagnosticConfigOrBuilder
        Returns:
        The enableCopyHomeFilesFlag.
      • setEnableCopyHomeFilesFlag

        public DiagnosticConfig.Builder setEnableCopyHomeFilesFlag​(boolean value)
         Optional. Enables flag to copy all `/home/jupyter` folder contents
         
        bool enable_copy_home_files_flag = 5 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enableCopyHomeFilesFlag to set.
        Returns:
        This builder for chaining.
      • clearEnableCopyHomeFilesFlag

        public DiagnosticConfig.Builder clearEnableCopyHomeFilesFlag()
         Optional. Enables flag to copy all `/home/jupyter` folder contents
         
        bool enable_copy_home_files_flag = 5 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final DiagnosticConfig.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<DiagnosticConfig.Builder>
      • mergeUnknownFields

        public final DiagnosticConfig.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<DiagnosticConfig.Builder>