Class LoadSnapshotRequest.Builder

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

    public static final class LoadSnapshotRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
    implements LoadSnapshotRequestOrBuilder
     Request to load a snapshot into a Cloud Composer environment.
     
    Protobuf type google.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest
    • 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<LoadSnapshotRequest.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public LoadSnapshotRequest.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<LoadSnapshotRequest.Builder>
        Throws:
        IOException
      • getEnvironment

        public String getEnvironment()
         The resource name of the target environment in the form:
         "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
         
        string environment = 1;
        Specified by:
        getEnvironment in interface LoadSnapshotRequestOrBuilder
        Returns:
        The environment.
      • getEnvironmentBytes

        public com.google.protobuf.ByteString getEnvironmentBytes()
         The resource name of the target environment in the form:
         "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
         
        string environment = 1;
        Specified by:
        getEnvironmentBytes in interface LoadSnapshotRequestOrBuilder
        Returns:
        The bytes for environment.
      • setEnvironment

        public LoadSnapshotRequest.Builder setEnvironment​(String value)
         The resource name of the target environment in the form:
         "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
         
        string environment = 1;
        Parameters:
        value - The environment to set.
        Returns:
        This builder for chaining.
      • clearEnvironment

        public LoadSnapshotRequest.Builder clearEnvironment()
         The resource name of the target environment in the form:
         "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
         
        string environment = 1;
        Returns:
        This builder for chaining.
      • setEnvironmentBytes

        public LoadSnapshotRequest.Builder setEnvironmentBytes​(com.google.protobuf.ByteString value)
         The resource name of the target environment in the form:
         "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
         
        string environment = 1;
        Parameters:
        value - The bytes for environment to set.
        Returns:
        This builder for chaining.
      • getSnapshotPath

        public String getSnapshotPath()
         A Cloud Storage path to a snapshot to load, e.g.:
         "gs://my-bucket/snapshots/project_location_environment_timestamp".
         
        string snapshot_path = 2;
        Specified by:
        getSnapshotPath in interface LoadSnapshotRequestOrBuilder
        Returns:
        The snapshotPath.
      • getSnapshotPathBytes

        public com.google.protobuf.ByteString getSnapshotPathBytes()
         A Cloud Storage path to a snapshot to load, e.g.:
         "gs://my-bucket/snapshots/project_location_environment_timestamp".
         
        string snapshot_path = 2;
        Specified by:
        getSnapshotPathBytes in interface LoadSnapshotRequestOrBuilder
        Returns:
        The bytes for snapshotPath.
      • setSnapshotPath

        public LoadSnapshotRequest.Builder setSnapshotPath​(String value)
         A Cloud Storage path to a snapshot to load, e.g.:
         "gs://my-bucket/snapshots/project_location_environment_timestamp".
         
        string snapshot_path = 2;
        Parameters:
        value - The snapshotPath to set.
        Returns:
        This builder for chaining.
      • clearSnapshotPath

        public LoadSnapshotRequest.Builder clearSnapshotPath()
         A Cloud Storage path to a snapshot to load, e.g.:
         "gs://my-bucket/snapshots/project_location_environment_timestamp".
         
        string snapshot_path = 2;
        Returns:
        This builder for chaining.
      • setSnapshotPathBytes

        public LoadSnapshotRequest.Builder setSnapshotPathBytes​(com.google.protobuf.ByteString value)
         A Cloud Storage path to a snapshot to load, e.g.:
         "gs://my-bucket/snapshots/project_location_environment_timestamp".
         
        string snapshot_path = 2;
        Parameters:
        value - The bytes for snapshotPath to set.
        Returns:
        This builder for chaining.
      • getSkipPypiPackagesInstallation

        public boolean getSkipPypiPackagesInstallation()
         Whether or not to skip installing Pypi packages when loading the
         environment's state.
         
        bool skip_pypi_packages_installation = 3;
        Specified by:
        getSkipPypiPackagesInstallation in interface LoadSnapshotRequestOrBuilder
        Returns:
        The skipPypiPackagesInstallation.
      • setSkipPypiPackagesInstallation

        public LoadSnapshotRequest.Builder setSkipPypiPackagesInstallation​(boolean value)
         Whether or not to skip installing Pypi packages when loading the
         environment's state.
         
        bool skip_pypi_packages_installation = 3;
        Parameters:
        value - The skipPypiPackagesInstallation to set.
        Returns:
        This builder for chaining.
      • clearSkipPypiPackagesInstallation

        public LoadSnapshotRequest.Builder clearSkipPypiPackagesInstallation()
         Whether or not to skip installing Pypi packages when loading the
         environment's state.
         
        bool skip_pypi_packages_installation = 3;
        Returns:
        This builder for chaining.
      • getSkipEnvironmentVariablesSetting

        public boolean getSkipEnvironmentVariablesSetting()
         Whether or not to skip setting environment variables when loading the
         environment's state.
         
        bool skip_environment_variables_setting = 4;
        Specified by:
        getSkipEnvironmentVariablesSetting in interface LoadSnapshotRequestOrBuilder
        Returns:
        The skipEnvironmentVariablesSetting.
      • setSkipEnvironmentVariablesSetting

        public LoadSnapshotRequest.Builder setSkipEnvironmentVariablesSetting​(boolean value)
         Whether or not to skip setting environment variables when loading the
         environment's state.
         
        bool skip_environment_variables_setting = 4;
        Parameters:
        value - The skipEnvironmentVariablesSetting to set.
        Returns:
        This builder for chaining.
      • clearSkipEnvironmentVariablesSetting

        public LoadSnapshotRequest.Builder clearSkipEnvironmentVariablesSetting()
         Whether or not to skip setting environment variables when loading the
         environment's state.
         
        bool skip_environment_variables_setting = 4;
        Returns:
        This builder for chaining.
      • getSkipAirflowOverridesSetting

        public boolean getSkipAirflowOverridesSetting()
         Whether or not to skip setting Airflow overrides when loading the
         environment's state.
         
        bool skip_airflow_overrides_setting = 5;
        Specified by:
        getSkipAirflowOverridesSetting in interface LoadSnapshotRequestOrBuilder
        Returns:
        The skipAirflowOverridesSetting.
      • setSkipAirflowOverridesSetting

        public LoadSnapshotRequest.Builder setSkipAirflowOverridesSetting​(boolean value)
         Whether or not to skip setting Airflow overrides when loading the
         environment's state.
         
        bool skip_airflow_overrides_setting = 5;
        Parameters:
        value - The skipAirflowOverridesSetting to set.
        Returns:
        This builder for chaining.
      • clearSkipAirflowOverridesSetting

        public LoadSnapshotRequest.Builder clearSkipAirflowOverridesSetting()
         Whether or not to skip setting Airflow overrides when loading the
         environment's state.
         
        bool skip_airflow_overrides_setting = 5;
        Returns:
        This builder for chaining.
      • getSkipGcsDataCopying

        public boolean getSkipGcsDataCopying()
         Whether or not to skip copying Cloud Storage data when loading the
         environment's state.
         
        bool skip_gcs_data_copying = 6;
        Specified by:
        getSkipGcsDataCopying in interface LoadSnapshotRequestOrBuilder
        Returns:
        The skipGcsDataCopying.
      • setSkipGcsDataCopying

        public LoadSnapshotRequest.Builder setSkipGcsDataCopying​(boolean value)
         Whether or not to skip copying Cloud Storage data when loading the
         environment's state.
         
        bool skip_gcs_data_copying = 6;
        Parameters:
        value - The skipGcsDataCopying to set.
        Returns:
        This builder for chaining.
      • clearSkipGcsDataCopying

        public LoadSnapshotRequest.Builder clearSkipGcsDataCopying()
         Whether or not to skip copying Cloud Storage data when loading the
         environment's state.
         
        bool skip_gcs_data_copying = 6;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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