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 class
Task.ExecutionSpec.Builder
Execution 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 int
ARGS_FIELD_NUMBER
static int
KMS_KEY_FIELD_NUMBER
static int
MAX_JOB_EXECUTION_LIFETIME_FIELD_NUMBER
static int
PROJECT_FIELD_NUMBER
static int
SERVICE_ACCOUNT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsArgs(String key)
Optional.boolean
equals(Object obj)
Map<String,String>
getArgs()
Deprecated.int
getArgsCount()
Optional.Map<String,String>
getArgsMap()
Optional.String
getArgsOrDefault(String key, String defaultValue)
Optional.String
getArgsOrThrow(String key)
Optional.static Task.ExecutionSpec
getDefaultInstance()
Task.ExecutionSpec
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getKmsKey()
Optional.com.google.protobuf.ByteString
getKmsKeyBytes()
Optional.com.google.protobuf.Duration
getMaxJobExecutionLifetime()
Optional.com.google.protobuf.DurationOrBuilder
getMaxJobExecutionLifetimeOrBuilder()
Optional.com.google.protobuf.Parser<Task.ExecutionSpec>
getParserForType()
String
getProject()
Optional.com.google.protobuf.ByteString
getProjectBytes()
Optional.int
getSerializedSize()
String
getServiceAccount()
Required.com.google.protobuf.ByteString
getServiceAccountBytes()
Required.int
hashCode()
boolean
hasMaxJobExecutionLifetime()
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static Task.ExecutionSpec.Builder
newBuilder()
static Task.ExecutionSpec.Builder
newBuilder(Task.ExecutionSpec prototype)
Task.ExecutionSpec.Builder
newBuilderForType()
protected Task.ExecutionSpec.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Task.ExecutionSpec
parseDelimitedFrom(InputStream input)
static Task.ExecutionSpec
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Task.ExecutionSpec
parseFrom(byte[] data)
static Task.ExecutionSpec
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Task.ExecutionSpec
parseFrom(com.google.protobuf.ByteString data)
static Task.ExecutionSpec
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Task.ExecutionSpec
parseFrom(com.google.protobuf.CodedInputStream input)
static Task.ExecutionSpec
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Task.ExecutionSpec
parseFrom(InputStream input)
static Task.ExecutionSpec
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Task.ExecutionSpec
parseFrom(ByteBuffer data)
static Task.ExecutionSpec
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Task.ExecutionSpec>
parser()
Task.ExecutionSpec.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getArgsCount
public int getArgsCount()
Description copied from interface:Task.ExecutionSpecOrBuilder
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:
getArgsCount
in 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:
containsArgs
in interfaceTask.ExecutionSpecOrBuilder
-
getArgs
@Deprecated public Map<String,String> getArgs()
Deprecated.UsegetArgsMap()
instead.- Specified by:
getArgs
in 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:
getArgsMap
in 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:
getArgsOrDefault
in 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:
getArgsOrThrow
in 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:
getServiceAccount
in 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:
getServiceAccountBytes
in 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:
getProject
in 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:
getProjectBytes
in 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:
hasMaxJobExecutionLifetime
in 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:
getMaxJobExecutionLifetime
in 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:
getMaxJobExecutionLifetimeOrBuilder
in 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:
getKmsKey
in 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:
getKmsKeyBytes
in interfaceTask.ExecutionSpecOrBuilder
- Returns:
- The bytes for kmsKey.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Task.ExecutionSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Task.ExecutionSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-