Package com.google.cloud.dataplex.v1
Class Task.ExecutionSpec
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dataplex.v1.Task.ExecutionSpec
-
- All Implemented Interfaces:
Task.ExecutionSpecOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- Task
public static final class Task.ExecutionSpec extends com.google.protobuf.GeneratedMessageV3 implements Task.ExecutionSpecOrBuilder
Execution related settings, like retry and service_account.
Protobuf typegoogle.cloud.dataplex.v1.Task.ExecutionSpec- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTask.ExecutionSpec.BuilderExecution related settings, like retry and service_account.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intARGS_FIELD_NUMBERstatic intKMS_KEY_FIELD_NUMBERstatic intMAX_JOB_EXECUTION_LIFETIME_FIELD_NUMBERstatic intPROJECT_FIELD_NUMBERstatic intSERVICE_ACCOUNT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsArgs(String key)Optional.booleanequals(Object obj)Map<String,String>getArgs()Deprecated.intgetArgsCount()Optional.Map<String,String>getArgsMap()Optional.StringgetArgsOrDefault(String key, String defaultValue)Optional.StringgetArgsOrThrow(String key)Optional.static Task.ExecutionSpecgetDefaultInstance()Task.ExecutionSpecgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetKmsKey()Optional.com.google.protobuf.ByteStringgetKmsKeyBytes()Optional.com.google.protobuf.DurationgetMaxJobExecutionLifetime()Optional.com.google.protobuf.DurationOrBuildergetMaxJobExecutionLifetimeOrBuilder()Optional.com.google.protobuf.Parser<Task.ExecutionSpec>getParserForType()StringgetProject()Optional.com.google.protobuf.ByteStringgetProjectBytes()Optional.intgetSerializedSize()StringgetServiceAccount()Required.com.google.protobuf.ByteStringgetServiceAccountBytes()Required.inthashCode()booleanhasMaxJobExecutionLifetime()Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static Task.ExecutionSpec.BuildernewBuilder()static Task.ExecutionSpec.BuildernewBuilder(Task.ExecutionSpec prototype)Task.ExecutionSpec.BuildernewBuilderForType()protected Task.ExecutionSpec.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Task.ExecutionSpecparseDelimitedFrom(InputStream input)static Task.ExecutionSpecparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Task.ExecutionSpecparseFrom(byte[] data)static Task.ExecutionSpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Task.ExecutionSpecparseFrom(com.google.protobuf.ByteString data)static Task.ExecutionSpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Task.ExecutionSpecparseFrom(com.google.protobuf.CodedInputStream input)static Task.ExecutionSpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Task.ExecutionSpecparseFrom(InputStream input)static Task.ExecutionSpecparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Task.ExecutionSpecparseFrom(ByteBuffer data)static Task.ExecutionSpecparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Task.ExecutionSpec>parser()Task.ExecutionSpec.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ARGS_FIELD_NUMBER
public static final int ARGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROJECT_FIELD_NUMBER
public static final int PROJECT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_JOB_EXECUTION_LIFETIME_FIELD_NUMBER
public static final int MAX_JOB_EXECUTION_LIFETIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KMS_KEY_FIELD_NUMBER
public static final int KMS_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getArgsCount
public int getArgsCount()
Description copied from interface:Task.ExecutionSpecOrBuilderOptional. The arguments to pass to the task. The args can use placeholders of the format ${placeholder} as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - ${task_id} - ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument.map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArgsCountin interfaceTask.ExecutionSpecOrBuilder
-
containsArgs
public boolean containsArgs(String key)
Optional. The arguments to pass to the task. The args can use placeholders of the format ${placeholder} as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - ${task_id} - ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument.map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsArgsin interfaceTask.ExecutionSpecOrBuilder
-
getArgs
@Deprecated public Map<String,String> getArgs()
Deprecated.UsegetArgsMap()instead.- Specified by:
getArgsin interfaceTask.ExecutionSpecOrBuilder
-
getArgsMap
public Map<String,String> getArgsMap()
Optional. The arguments to pass to the task. The args can use placeholders of the format ${placeholder} as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - ${task_id} - ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument.map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArgsMapin interfaceTask.ExecutionSpecOrBuilder
-
getArgsOrDefault
public String getArgsOrDefault(String key, String defaultValue)
Optional. The arguments to pass to the task. The args can use placeholders of the format ${placeholder} as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - ${task_id} - ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument.map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArgsOrDefaultin interfaceTask.ExecutionSpecOrBuilder
-
getArgsOrThrow
public String getArgsOrThrow(String key)
Optional. The arguments to pass to the task. The args can use placeholders of the format ${placeholder} as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - ${task_id} - ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument.map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArgsOrThrowin interfaceTask.ExecutionSpecOrBuilder
-
getServiceAccount
public String getServiceAccount()
Required. Service account to use to execute a task. If not provided, the default Compute service account for the project is used.
string service_account = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getServiceAccountin interfaceTask.ExecutionSpecOrBuilder- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.ByteString getServiceAccountBytes()
Required. Service account to use to execute a task. If not provided, the default Compute service account for the project is used.
string service_account = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getServiceAccountBytesin interfaceTask.ExecutionSpecOrBuilder- Returns:
- The bytes for serviceAccount.
-
getProject
public String getProject()
Optional. The project in which jobs are run. By default, the project containing the Lake is used. If a project is provided, the [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] must belong to this project.
string project = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProjectin interfaceTask.ExecutionSpecOrBuilder- Returns:
- The project.
-
getProjectBytes
public com.google.protobuf.ByteString getProjectBytes()
Optional. The project in which jobs are run. By default, the project containing the Lake is used. If a project is provided, the [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] must belong to this project.
string project = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProjectBytesin interfaceTask.ExecutionSpecOrBuilder- Returns:
- The bytes for project.
-
hasMaxJobExecutionLifetime
public boolean hasMaxJobExecutionLifetime()
Optional. The maximum duration after which the job execution is expired.
.google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasMaxJobExecutionLifetimein interfaceTask.ExecutionSpecOrBuilder- Returns:
- Whether the maxJobExecutionLifetime field is set.
-
getMaxJobExecutionLifetime
public com.google.protobuf.Duration getMaxJobExecutionLifetime()
Optional. The maximum duration after which the job execution is expired.
.google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaxJobExecutionLifetimein interfaceTask.ExecutionSpecOrBuilder- Returns:
- The maxJobExecutionLifetime.
-
getMaxJobExecutionLifetimeOrBuilder
public com.google.protobuf.DurationOrBuilder getMaxJobExecutionLifetimeOrBuilder()
Optional. The maximum duration after which the job execution is expired.
.google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaxJobExecutionLifetimeOrBuilderin interfaceTask.ExecutionSpecOrBuilder
-
getKmsKey
public String getKmsKey()
Optional. The Cloud KMS key to use for encryption, of the form: `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`.string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getKmsKeyin interfaceTask.ExecutionSpecOrBuilder- Returns:
- The kmsKey.
-
getKmsKeyBytes
public com.google.protobuf.ByteString getKmsKeyBytes()
Optional. The Cloud KMS key to use for encryption, of the form: `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`.string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getKmsKeyBytesin interfaceTask.ExecutionSpecOrBuilder- Returns:
- The bytes for kmsKey.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Task.ExecutionSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Task.ExecutionSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Task.ExecutionSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Task.ExecutionSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Task.ExecutionSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Task.ExecutionSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Task.ExecutionSpec parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Task.ExecutionSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Task.ExecutionSpec parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Task.ExecutionSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Task.ExecutionSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Task.ExecutionSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Task.ExecutionSpec.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Task.ExecutionSpec.Builder newBuilder()
-
newBuilder
public static Task.ExecutionSpec.Builder newBuilder(Task.ExecutionSpec prototype)
-
toBuilder
public Task.ExecutionSpec.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Task.ExecutionSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Task.ExecutionSpec getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Task.ExecutionSpec> parser()
-
getParserForType
public com.google.protobuf.Parser<Task.ExecutionSpec> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Task.ExecutionSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-