Class LoadSnapshotRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
- com.google.cloud.orchestration.airflow.service.v1.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 typegoogle.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadSnapshotRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LoadSnapshotRequestbuild()LoadSnapshotRequestbuildPartial()LoadSnapshotRequest.Builderclear()LoadSnapshotRequest.BuilderclearEnvironment()The resource name of the target environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"LoadSnapshotRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)LoadSnapshotRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)LoadSnapshotRequest.BuilderclearSkipAirflowOverridesSetting()Whether or not to skip setting Airflow overrides when loading the environment's state.LoadSnapshotRequest.BuilderclearSkipEnvironmentVariablesSetting()Whether or not to skip setting environment variables when loading the environment's state.LoadSnapshotRequest.BuilderclearSkipGcsDataCopying()Whether or not to skip copying Cloud Storage data when loading the environment's state.LoadSnapshotRequest.BuilderclearSkipPypiPackagesInstallation()Whether or not to skip installing Pypi packages when loading the environment's state.LoadSnapshotRequest.BuilderclearSnapshotPath()A Cloud Storage path to a snapshot to load, e.g.: "gs://my-bucket/snapshots/project_location_environment_timestamp".LoadSnapshotRequest.Builderclone()LoadSnapshotRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetEnvironment()The resource name of the target environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"com.google.protobuf.ByteStringgetEnvironmentBytes()The resource name of the target environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"booleangetSkipAirflowOverridesSetting()Whether or not to skip setting Airflow overrides when loading the environment's state.booleangetSkipEnvironmentVariablesSetting()Whether or not to skip setting environment variables when loading the environment's state.booleangetSkipGcsDataCopying()Whether or not to skip copying Cloud Storage data when loading the environment's state.booleangetSkipPypiPackagesInstallation()Whether or not to skip installing Pypi packages when loading the environment's state.StringgetSnapshotPath()A Cloud Storage path to a snapshot to load, e.g.: "gs://my-bucket/snapshots/project_location_environment_timestamp".com.google.protobuf.ByteStringgetSnapshotPathBytes()A Cloud Storage path to a snapshot to load, e.g.: "gs://my-bucket/snapshots/project_location_environment_timestamp".protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()LoadSnapshotRequest.BuildermergeFrom(LoadSnapshotRequest other)LoadSnapshotRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LoadSnapshotRequest.BuildermergeFrom(com.google.protobuf.Message other)LoadSnapshotRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LoadSnapshotRequest.BuildersetEnvironment(String value)The resource name of the target environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"LoadSnapshotRequest.BuildersetEnvironmentBytes(com.google.protobuf.ByteString value)The resource name of the target environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"LoadSnapshotRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LoadSnapshotRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)LoadSnapshotRequest.BuildersetSkipAirflowOverridesSetting(boolean value)Whether or not to skip setting Airflow overrides when loading the environment's state.LoadSnapshotRequest.BuildersetSkipEnvironmentVariablesSetting(boolean value)Whether or not to skip setting environment variables when loading the environment's state.LoadSnapshotRequest.BuildersetSkipGcsDataCopying(boolean value)Whether or not to skip copying Cloud Storage data when loading the environment's state.LoadSnapshotRequest.BuildersetSkipPypiPackagesInstallation(boolean value)Whether or not to skip installing Pypi packages when loading the environment's state.LoadSnapshotRequest.BuildersetSnapshotPath(String value)A Cloud Storage path to a snapshot to load, e.g.: "gs://my-bucket/snapshots/project_location_environment_timestamp".LoadSnapshotRequest.BuildersetSnapshotPathBytes(com.google.protobuf.ByteString value)A Cloud Storage path to a snapshot to load, e.g.: "gs://my-bucket/snapshots/project_location_environment_timestamp".LoadSnapshotRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
clear
public LoadSnapshotRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
getDefaultInstanceForType
public LoadSnapshotRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LoadSnapshotRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LoadSnapshotRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LoadSnapshotRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
setField
public LoadSnapshotRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
clearField
public LoadSnapshotRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
clearOneof
public LoadSnapshotRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
setRepeatedField
public LoadSnapshotRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
addRepeatedField
public LoadSnapshotRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
mergeFrom
public LoadSnapshotRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LoadSnapshotRequest.Builder>
-
mergeFrom
public LoadSnapshotRequest.Builder mergeFrom(LoadSnapshotRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
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
public String 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
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:
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
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:
getSkipPypiPackagesInstallationin interfaceLoadSnapshotRequestOrBuilder- 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:
getSkipEnvironmentVariablesSettingin interfaceLoadSnapshotRequestOrBuilder- 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:
getSkipAirflowOverridesSettingin interfaceLoadSnapshotRequestOrBuilder- 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:
getSkipGcsDataCopyingin interfaceLoadSnapshotRequestOrBuilder- 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
mergeUnknownFields
public final LoadSnapshotRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
-