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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The resource name of the target environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"Whether or not to skip setting Airflow overrides when loading the environment's state.Whether or not to skip setting environment variables when loading the environment's state.Whether or not to skip copying Cloud Storage data when loading the environment's state.Whether or not to skip installing Pypi packages when loading the environment's state.A Cloud Storage path to a snapshot to load, e.g.: "gs://my-bucket/snapshots/project_location_environment_timestamp".static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe resource name of the target environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"com.google.protobuf.ByteStringThe resource name of the target environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"booleanWhether or not to skip setting Airflow overrides when loading the environment's state.booleanWhether or not to skip setting environment variables when loading the environment's state.booleanWhether or not to skip copying Cloud Storage data when loading the environment's state.booleanWhether or not to skip installing Pypi packages when loading the environment's state.A Cloud Storage path to a snapshot to load, e.g.: "gs://my-bucket/snapshots/project_location_environment_timestamp".com.google.protobuf.ByteStringA Cloud Storage path to a snapshot to load, e.g.: "gs://my-bucket/snapshots/project_location_environment_timestamp".protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(LoadSnapshotRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setEnvironment(String value) The resource name of the target environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"setEnvironmentBytes(com.google.protobuf.ByteString value) The resource name of the target environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"setSkipAirflowOverridesSetting(boolean value) Whether or not to skip setting Airflow overrides when loading the environment's state.setSkipEnvironmentVariablesSetting(boolean value) Whether or not to skip setting environment variables when loading the environment's state.setSkipGcsDataCopying(boolean value) Whether or not to skip copying Cloud Storage data when loading the environment's state.setSkipPypiPackagesInstallation(boolean value) Whether or not to skip installing Pypi packages when loading the environment's state.setSnapshotPath(String value) A Cloud Storage path to a snapshot to load, e.g.: "gs://my-bucket/snapshots/project_location_environment_timestamp".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".Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LoadSnapshotRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LoadSnapshotRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<LoadSnapshotRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LoadSnapshotRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LoadSnapshotRequest.Builder>- Throws:
IOException
-
getEnvironment
The resource name of the target environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"string environment = 1;- Specified by:
getEnvironmentin interfaceLoadSnapshotRequestOrBuilder- 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:
getEnvironmentBytesin interfaceLoadSnapshotRequestOrBuilder- Returns:
- The bytes for environment.
-
setEnvironment
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
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
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
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:
getSnapshotPathin interfaceLoadSnapshotRequestOrBuilder- 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:
getSnapshotPathBytesin interfaceLoadSnapshotRequestOrBuilder- Returns:
- The bytes for snapshotPath.
-
setSnapshotPath
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
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
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:
getSkipPypiPackagesInstallationin interfaceLoadSnapshotRequestOrBuilder- Returns:
- The skipPypiPackagesInstallation.
-
setSkipPypiPackagesInstallation
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
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:
getSkipEnvironmentVariablesSettingin interfaceLoadSnapshotRequestOrBuilder- Returns:
- The skipEnvironmentVariablesSetting.
-
setSkipEnvironmentVariablesSetting
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
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:
getSkipAirflowOverridesSettingin interfaceLoadSnapshotRequestOrBuilder- Returns:
- The skipAirflowOverridesSetting.
-
setSkipAirflowOverridesSetting
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
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:
getSkipGcsDataCopyingin interfaceLoadSnapshotRequestOrBuilder- Returns:
- The skipGcsDataCopying.
-
setSkipGcsDataCopying
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
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.
-