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.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.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder> implements LoadSnapshotRequestOrBuilder
Request to load a snapshot into a Cloud Composer environment.
Protobuf typegoogle.cloud.orchestration.airflow.service.v1beta1.LoadSnapshotRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadSnapshotRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
LoadSnapshotRequest
build()
LoadSnapshotRequest
buildPartial()
LoadSnapshotRequest.Builder
clear()
LoadSnapshotRequest.Builder
clearEnvironment()
The resource name of the target environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"LoadSnapshotRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
LoadSnapshotRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
LoadSnapshotRequest.Builder
clearSkipAirflowOverridesSetting()
Whether or not to skip setting Airflow overrides when loading the environment's state.LoadSnapshotRequest.Builder
clearSkipEnvironmentVariablesSetting()
Whether or not to skip setting environment variables when loading the environment's state.LoadSnapshotRequest.Builder
clearSkipGcsDataCopying()
Whether or not to skip copying Cloud Storage data when loading the environment's state.LoadSnapshotRequest.Builder
clearSkipPypiPackagesInstallation()
Whether or not to skip installing Pypi packages when loading the environment's state.LoadSnapshotRequest.Builder
clearSnapshotPath()
A Cloud Storage path to a snapshot to load, e.g.: "gs://my-bucket/snapshots/project_location_environment_timestamp".LoadSnapshotRequest.Builder
clone()
LoadSnapshotRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getEnvironment()
The resource name of the target environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"com.google.protobuf.ByteString
getEnvironmentBytes()
The resource name of the target environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"boolean
getSkipAirflowOverridesSetting()
Whether or not to skip setting Airflow overrides when loading the environment's state.boolean
getSkipEnvironmentVariablesSetting()
Whether or not to skip setting environment variables when loading the environment's state.boolean
getSkipGcsDataCopying()
Whether or not to skip copying Cloud Storage data when loading the environment's state.boolean
getSkipPypiPackagesInstallation()
Whether or not to skip installing Pypi packages when loading the environment's state.String
getSnapshotPath()
A Cloud Storage path to a snapshot to load, e.g.: "gs://my-bucket/snapshots/project_location_environment_timestamp".com.google.protobuf.ByteString
getSnapshotPathBytes()
A Cloud Storage path to a snapshot to load, e.g.: "gs://my-bucket/snapshots/project_location_environment_timestamp".protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
LoadSnapshotRequest.Builder
mergeFrom(LoadSnapshotRequest other)
LoadSnapshotRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
LoadSnapshotRequest.Builder
mergeFrom(com.google.protobuf.Message other)
LoadSnapshotRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
LoadSnapshotRequest.Builder
setEnvironment(String value)
The resource name of the target environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"LoadSnapshotRequest.Builder
setEnvironmentBytes(com.google.protobuf.ByteString value)
The resource name of the target environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"LoadSnapshotRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
LoadSnapshotRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
LoadSnapshotRequest.Builder
setSkipAirflowOverridesSetting(boolean value)
Whether or not to skip setting Airflow overrides when loading the environment's state.LoadSnapshotRequest.Builder
setSkipEnvironmentVariablesSetting(boolean value)
Whether or not to skip setting environment variables when loading the environment's state.LoadSnapshotRequest.Builder
setSkipGcsDataCopying(boolean value)
Whether or not to skip copying Cloud Storage data when loading the environment's state.LoadSnapshotRequest.Builder
setSkipPypiPackagesInstallation(boolean value)
Whether or not to skip installing Pypi packages when loading the environment's state.LoadSnapshotRequest.Builder
setSnapshotPath(String value)
A Cloud Storage path to a snapshot to load, e.g.: "gs://my-bucket/snapshots/project_location_environment_timestamp".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".LoadSnapshotRequest.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
clear
public LoadSnapshotRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
getDefaultInstanceForType
public LoadSnapshotRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public LoadSnapshotRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LoadSnapshotRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LoadSnapshotRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
setField
public LoadSnapshotRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
clearField
public LoadSnapshotRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
clearOneof
public LoadSnapshotRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
addRepeatedField
public LoadSnapshotRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
mergeFrom
public LoadSnapshotRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LoadSnapshotRequest.Builder>
-
mergeFrom
public LoadSnapshotRequest.Builder mergeFrom(LoadSnapshotRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getEnvironment
in 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:
getEnvironmentBytes
in 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:
getSnapshotPath
in 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:
getSnapshotPathBytes
in 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:
getSkipPypiPackagesInstallation
in 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:
getSkipEnvironmentVariablesSetting
in 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:
getSkipAirflowOverridesSetting
in 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:
getSkipGcsDataCopying
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
mergeUnknownFields
public final LoadSnapshotRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LoadSnapshotRequest.Builder>
-
-