Class LoadSnapshotRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LoadSnapshotRequest.Builder>
com.google.cloud.orchestration.airflow.service.v1beta1.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.GeneratedMessage.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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.