Class WorkflowTriggerConfig (0.98.0)

public final class WorkflowTriggerConfig extends GeneratedMessage implements WorkflowTriggerConfigOrBuilder

Represents a trigger configuration for a workflow.

Protobuf type google.cloud.dataform.v1beta1.WorkflowTriggerConfig

Static Fields

CONDITION_FIELD_NUMBER

public static final int CONDITION_FIELD_NUMBER
Field Value
Type Description
int

LAST_SUCCESSFUL_EVALUATION_TIME_FIELD_NUMBER

public static final int LAST_SUCCESSFUL_EVALUATION_TIME_FIELD_NUMBER
Field Value
Type Description
int

MAX_WAIT_DURATION_FIELD_NUMBER

public static final int MAX_WAIT_DURATION_FIELD_NUMBER
Field Value
Type Description
int

MIN_EXECUTION_DURATION_FIELD_NUMBER

public static final int MIN_EXECUTION_DURATION_FIELD_NUMBER
Field Value
Type Description
int

RECENT_TRIGGER_EVALUATION_RECORDS_FIELD_NUMBER

public static final int RECENT_TRIGGER_EVALUATION_RECORDS_FIELD_NUMBER
Field Value
Type Description
int

WORKFLOW_TRIGGERS_FIELD_NUMBER

public static final int WORKFLOW_TRIGGERS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static WorkflowTriggerConfig getDefaultInstance()
Returns
Type Description
WorkflowTriggerConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static WorkflowTriggerConfig.Builder newBuilder()
Returns
Type Description
WorkflowTriggerConfig.Builder

newBuilder(WorkflowTriggerConfig prototype)

public static WorkflowTriggerConfig.Builder newBuilder(WorkflowTriggerConfig prototype)
Parameter
Name Description
prototype WorkflowTriggerConfig
Returns
Type Description
WorkflowTriggerConfig.Builder

parseDelimitedFrom(InputStream input)

public static WorkflowTriggerConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WorkflowTriggerConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkflowTriggerConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkflowTriggerConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static WorkflowTriggerConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
WorkflowTriggerConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WorkflowTriggerConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkflowTriggerConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WorkflowTriggerConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
WorkflowTriggerConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WorkflowTriggerConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkflowTriggerConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WorkflowTriggerConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WorkflowTriggerConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkflowTriggerConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkflowTriggerConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static WorkflowTriggerConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WorkflowTriggerConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkflowTriggerConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkflowTriggerConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static WorkflowTriggerConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WorkflowTriggerConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WorkflowTriggerConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkflowTriggerConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<WorkflowTriggerConfig> parser()
Returns
Type Description
Parser<WorkflowTriggerConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCondition()

public WorkflowTriggerConfig.Condition getCondition()

Optional. The condition to use when triggering the workflow.

.google.cloud.dataform.v1beta1.WorkflowTriggerConfig.Condition condition = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkflowTriggerConfig.Condition

The condition.

getConditionValue()

public int getConditionValue()

Optional. The condition to use when triggering the workflow.

.google.cloud.dataform.v1beta1.WorkflowTriggerConfig.Condition condition = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for condition.

getDefaultInstanceForType()

public WorkflowTriggerConfig getDefaultInstanceForType()
Returns
Type Description
WorkflowTriggerConfig

getLastSuccessfulEvaluationTime()

public Timestamp getLastSuccessfulEvaluationTime()

Output only. The timestamp of the last successful trigger evaluation.

.google.protobuf.Timestamp last_successful_evaluation_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The lastSuccessfulEvaluationTime.

getLastSuccessfulEvaluationTimeOrBuilder()

public TimestampOrBuilder getLastSuccessfulEvaluationTimeOrBuilder()

Output only. The timestamp of the last successful trigger evaluation.

.google.protobuf.Timestamp last_successful_evaluation_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getMaxWaitDuration()

public Duration getMaxWaitDuration()

Optional. The effective maximum wait time duration for the trigger condition to be met. If not specified, the workflow won't be triggered until conditions are met.

.google.protobuf.Duration max_wait_duration = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The maxWaitDuration.

getMaxWaitDurationOrBuilder()

public DurationOrBuilder getMaxWaitDurationOrBuilder()

Optional. The effective maximum wait time duration for the trigger condition to be met. If not specified, the workflow won't be triggered until conditions are met.

.google.protobuf.Duration max_wait_duration = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

getMinExecutionDuration()

public Duration getMinExecutionDuration()

Optional. Minimum duration between two consecutive executions. If not specified, the workflow will be executed every time trigger conditions are met and there is no ongoing workflow execution.

.google.protobuf.Duration min_execution_duration = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The minExecutionDuration.

getMinExecutionDurationOrBuilder()

public DurationOrBuilder getMinExecutionDurationOrBuilder()

Optional. Minimum duration between two consecutive executions. If not specified, the workflow will be executed every time trigger conditions are met and there is no ongoing workflow execution.

.google.protobuf.Duration min_execution_duration = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

getParserForType()

public Parser<WorkflowTriggerConfig> getParserForType()
Returns
Type Description
Parser<WorkflowTriggerConfig>
Overrides

getRecentTriggerEvaluationRecords(int index)

public TriggerEvaluationRecord getRecentTriggerEvaluationRecords(int index)

Output only. Records of the 10 most recent trigger evaluations, ordered in descending order of evaluation_time. Updated whenever the service evaluates the trigger conditions (via polling or upon receiving a push event).

repeated .google.cloud.dataform.v1beta1.TriggerEvaluationRecord recent_trigger_evaluation_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
TriggerEvaluationRecord

getRecentTriggerEvaluationRecordsCount()

public int getRecentTriggerEvaluationRecordsCount()

Output only. Records of the 10 most recent trigger evaluations, ordered in descending order of evaluation_time. Updated whenever the service evaluates the trigger conditions (via polling or upon receiving a push event).

repeated .google.cloud.dataform.v1beta1.TriggerEvaluationRecord recent_trigger_evaluation_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getRecentTriggerEvaluationRecordsList()

public List<TriggerEvaluationRecord> getRecentTriggerEvaluationRecordsList()

Output only. Records of the 10 most recent trigger evaluations, ordered in descending order of evaluation_time. Updated whenever the service evaluates the trigger conditions (via polling or upon receiving a push event).

repeated .google.cloud.dataform.v1beta1.TriggerEvaluationRecord recent_trigger_evaluation_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<TriggerEvaluationRecord>

getRecentTriggerEvaluationRecordsOrBuilder(int index)

public TriggerEvaluationRecordOrBuilder getRecentTriggerEvaluationRecordsOrBuilder(int index)

Output only. Records of the 10 most recent trigger evaluations, ordered in descending order of evaluation_time. Updated whenever the service evaluates the trigger conditions (via polling or upon receiving a push event).

repeated .google.cloud.dataform.v1beta1.TriggerEvaluationRecord recent_trigger_evaluation_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
TriggerEvaluationRecordOrBuilder

getRecentTriggerEvaluationRecordsOrBuilderList()

public List<? extends TriggerEvaluationRecordOrBuilder> getRecentTriggerEvaluationRecordsOrBuilderList()

Output only. Records of the 10 most recent trigger evaluations, ordered in descending order of evaluation_time. Updated whenever the service evaluates the trigger conditions (via polling or upon receiving a push event).

repeated .google.cloud.dataform.v1beta1.TriggerEvaluationRecord recent_trigger_evaluation_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.dataform.v1beta1.TriggerEvaluationRecordOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getWorkflowTriggers(int index)

public WorkflowTrigger getWorkflowTriggers(int index)

Required. The trigger definitions to invoke a workflow.

repeated .google.cloud.dataform.v1beta1.WorkflowTrigger workflow_triggers = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
WorkflowTrigger

getWorkflowTriggersCount()

public int getWorkflowTriggersCount()

Required. The trigger definitions to invoke a workflow.

repeated .google.cloud.dataform.v1beta1.WorkflowTrigger workflow_triggers = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getWorkflowTriggersList()

public List<WorkflowTrigger> getWorkflowTriggersList()

Required. The trigger definitions to invoke a workflow.

repeated .google.cloud.dataform.v1beta1.WorkflowTrigger workflow_triggers = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<WorkflowTrigger>

getWorkflowTriggersOrBuilder(int index)

public WorkflowTriggerOrBuilder getWorkflowTriggersOrBuilder(int index)

Required. The trigger definitions to invoke a workflow.

repeated .google.cloud.dataform.v1beta1.WorkflowTrigger workflow_triggers = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
WorkflowTriggerOrBuilder

getWorkflowTriggersOrBuilderList()

public List<? extends WorkflowTriggerOrBuilder> getWorkflowTriggersOrBuilderList()

Required. The trigger definitions to invoke a workflow.

repeated .google.cloud.dataform.v1beta1.WorkflowTrigger workflow_triggers = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.dataform.v1beta1.WorkflowTriggerOrBuilder>

hasLastSuccessfulEvaluationTime()

public boolean hasLastSuccessfulEvaluationTime()

Output only. The timestamp of the last successful trigger evaluation.

.google.protobuf.Timestamp last_successful_evaluation_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the lastSuccessfulEvaluationTime field is set.

hasMaxWaitDuration()

public boolean hasMaxWaitDuration()

Optional. The effective maximum wait time duration for the trigger condition to be met. If not specified, the workflow won't be triggered until conditions are met.

.google.protobuf.Duration max_wait_duration = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the maxWaitDuration field is set.

hasMinExecutionDuration()

public boolean hasMinExecutionDuration()

Optional. Minimum duration between two consecutive executions. If not specified, the workflow will be executed every time trigger conditions are met and there is no ongoing workflow execution.

.google.protobuf.Duration min_execution_duration = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the minExecutionDuration field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public WorkflowTriggerConfig.Builder newBuilderForType()
Returns
Type Description
WorkflowTriggerConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected WorkflowTriggerConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WorkflowTriggerConfig.Builder
Overrides

toBuilder()

public WorkflowTriggerConfig.Builder toBuilder()
Returns
Type Description
WorkflowTriggerConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException