Package com.google.cloud.dataplex.v1
Class Task.TriggerSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Task.TriggerSpec.Builder>
com.google.cloud.dataplex.v1.Task.TriggerSpec.Builder
- All Implemented Interfaces:
Task.TriggerSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Task.TriggerSpec
public static final class Task.TriggerSpec.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Task.TriggerSpec.Builder>
implements Task.TriggerSpecOrBuilder
Task scheduling and trigger settings.Protobuf type
google.cloud.dataplex.v1.Task.TriggerSpec-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.intOptional.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.TimestampOptional.com.google.protobuf.Timestamp.BuilderOptional.com.google.protobuf.TimestampOrBuilderOptional.getType()Required.intRequired.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Task.TriggerSpec other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStartTime(com.google.protobuf.Timestamp value) Optional.setDisabled(boolean value) Optional.setMaxRetries(int value) Optional.setSchedule(String value) Optional.setScheduleBytes(com.google.protobuf.ByteString value) Optional.setStartTime(com.google.protobuf.Timestamp value) Optional.setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) Optional.setType(Task.TriggerSpec.Type value) Required.setTypeValue(int value) Required.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<Task.TriggerSpec.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<Task.TriggerSpec.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<Task.TriggerSpec.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<Task.TriggerSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Task.TriggerSpec.Builder>
-
mergeFrom
public Task.TriggerSpec.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<Task.TriggerSpec.Builder>- Throws:
IOException
-
getTriggerCase
- Specified by:
getTriggerCasein interfaceTask.TriggerSpecOrBuilder
-
clearTrigger
-
getTypeValue
public int getTypeValue()Required. Immutable. Trigger type of the user-specified Task.
.google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getTypeValuein interfaceTask.TriggerSpecOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
Required. Immutable. Trigger type of the user-specified Task.
.google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
Required. Immutable. Trigger type of the user-specified Task.
.google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getTypein interfaceTask.TriggerSpecOrBuilder- Returns:
- The type.
-
setType
Required. Immutable. Trigger type of the user-specified Task.
.google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Required. Immutable. Trigger type of the user-specified Task.
.google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
hasStartTime
public boolean hasStartTime()Optional. The first run of the task will be after this time. If not specified, the task will run shortly after being submitted if ON_DEMAND and based on the schedule if RECURRING.
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasStartTimein interfaceTask.TriggerSpecOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()Optional. The first run of the task will be after this time. If not specified, the task will run shortly after being submitted if ON_DEMAND and based on the schedule if RECURRING.
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStartTimein interfaceTask.TriggerSpecOrBuilder- Returns:
- The startTime.
-
setStartTime
Optional. The first run of the task will be after this time. If not specified, the task will run shortly after being submitted if ON_DEMAND and based on the schedule if RECURRING.
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; -
setStartTime
Optional. The first run of the task will be after this time. If not specified, the task will run shortly after being submitted if ON_DEMAND and based on the schedule if RECURRING.
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; -
mergeStartTime
Optional. The first run of the task will be after this time. If not specified, the task will run shortly after being submitted if ON_DEMAND and based on the schedule if RECURRING.
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; -
clearStartTime
Optional. The first run of the task will be after this time. If not specified, the task will run shortly after being submitted if ON_DEMAND and based on the schedule if RECURRING.
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()Optional. The first run of the task will be after this time. If not specified, the task will run shortly after being submitted if ON_DEMAND and based on the schedule if RECURRING.
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()Optional. The first run of the task will be after this time. If not specified, the task will run shortly after being submitted if ON_DEMAND and based on the schedule if RECURRING.
.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStartTimeOrBuilderin interfaceTask.TriggerSpecOrBuilder
-
getDisabled
public boolean getDisabled()Optional. Prevent the task from executing. This does not cancel already running tasks. It is intended to temporarily disable RECURRING tasks.
bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisabledin interfaceTask.TriggerSpecOrBuilder- Returns:
- The disabled.
-
setDisabled
Optional. Prevent the task from executing. This does not cancel already running tasks. It is intended to temporarily disable RECURRING tasks.
bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The disabled to set.- Returns:
- This builder for chaining.
-
clearDisabled
Optional. Prevent the task from executing. This does not cancel already running tasks. It is intended to temporarily disable RECURRING tasks.
bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getMaxRetries
public int getMaxRetries()Optional. Number of retry attempts before aborting. Set to zero to never attempt to retry a failed task.
int32 max_retries = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaxRetriesin interfaceTask.TriggerSpecOrBuilder- Returns:
- The maxRetries.
-
setMaxRetries
Optional. Number of retry attempts before aborting. Set to zero to never attempt to retry a failed task.
int32 max_retries = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The maxRetries to set.- Returns:
- This builder for chaining.
-
clearMaxRetries
Optional. Number of retry attempts before aborting. Set to zero to never attempt to retry a failed task.
int32 max_retries = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasSchedule
public boolean hasSchedule()Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running tasks periodically. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * * *`. This field is required for RECURRING tasks.string schedule = 100 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSchedulein interfaceTask.TriggerSpecOrBuilder- Returns:
- Whether the schedule field is set.
-
getSchedule
Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running tasks periodically. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * * *`. This field is required for RECURRING tasks.string schedule = 100 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSchedulein interfaceTask.TriggerSpecOrBuilder- Returns:
- The schedule.
-
getScheduleBytes
public com.google.protobuf.ByteString getScheduleBytes()Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running tasks periodically. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * * *`. This field is required for RECURRING tasks.string schedule = 100 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getScheduleBytesin interfaceTask.TriggerSpecOrBuilder- Returns:
- The bytes for schedule.
-
setSchedule
Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running tasks periodically. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * * *`. This field is required for RECURRING tasks.string schedule = 100 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The schedule to set.- Returns:
- This builder for chaining.
-
clearSchedule
Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running tasks periodically. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * * *`. This field is required for RECURRING tasks.string schedule = 100 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setScheduleBytes
Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running tasks periodically. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * * *`. This field is required for RECURRING tasks.string schedule = 100 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for schedule to set.- Returns:
- This builder for chaining.
-