com.google.cloud.dataform.v1beta1.WorkflowInvocationAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-dataform-v1beta1 Show documentation
Show all versions of proto-google-cloud-dataform-v1beta1 Show documentation
Proto library for google-cloud-dataform
/*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dataform/v1beta1/dataform.proto
package com.google.cloud.dataform.v1beta1;
/**
*
*
*
* Represents a single action in a workflow invocation.
*
*
* Protobuf type {@code google.cloud.dataform.v1beta1.WorkflowInvocationAction}
*/
public final class WorkflowInvocationAction extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.WorkflowInvocationAction)
WorkflowInvocationActionOrBuilder {
private static final long serialVersionUID = 0L;
// Use WorkflowInvocationAction.newBuilder() to construct.
private WorkflowInvocationAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WorkflowInvocationAction() {
state_ = 0;
failureReason_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new WorkflowInvocationAction();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.class,
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.Builder.class);
}
/**
*
*
*
* Represents the current state of a workflow invocation action.
*
*
* Protobuf enum {@code google.cloud.dataform.v1beta1.WorkflowInvocationAction.State}
*/
public enum State implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* The action has not yet been considered for invocation.
*
*
* PENDING = 0;
*/
PENDING(0),
/**
*
*
*
* The action is currently running.
*
*
* RUNNING = 1;
*/
RUNNING(1),
/**
*
*
*
* Execution of the action was skipped because upstream dependencies did not
* all complete successfully. A terminal state.
*
*
* SKIPPED = 2;
*/
SKIPPED(2),
/**
*
*
*
* Execution of the action was disabled as per the configuration of the
* corresponding compilation result action. A terminal state.
*
*
* DISABLED = 3;
*/
DISABLED(3),
/**
*
*
*
* The action succeeded. A terminal state.
*
*
* SUCCEEDED = 4;
*/
SUCCEEDED(4),
/**
*
*
*
* The action was cancelled. A terminal state.
*
*
* CANCELLED = 5;
*/
CANCELLED(5),
/**
*
*
*
* The action failed. A terminal state.
*
*
* FAILED = 6;
*/
FAILED(6),
UNRECOGNIZED(-1),
;
/**
*
*
*
* The action has not yet been considered for invocation.
*
*
* PENDING = 0;
*/
public static final int PENDING_VALUE = 0;
/**
*
*
*
* The action is currently running.
*
*
* RUNNING = 1;
*/
public static final int RUNNING_VALUE = 1;
/**
*
*
*
* Execution of the action was skipped because upstream dependencies did not
* all complete successfully. A terminal state.
*
*
* SKIPPED = 2;
*/
public static final int SKIPPED_VALUE = 2;
/**
*
*
*
* Execution of the action was disabled as per the configuration of the
* corresponding compilation result action. A terminal state.
*
*
* DISABLED = 3;
*/
public static final int DISABLED_VALUE = 3;
/**
*
*
*
* The action succeeded. A terminal state.
*
*
* SUCCEEDED = 4;
*/
public static final int SUCCEEDED_VALUE = 4;
/**
*
*
*
* The action was cancelled. A terminal state.
*
*
* CANCELLED = 5;
*/
public static final int CANCELLED_VALUE = 5;
/**
*
*
*
* The action failed. A terminal state.
*
*
* FAILED = 6;
*/
public static final int FAILED_VALUE = 6;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static State valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static State forNumber(int value) {
switch (value) {
case 0:
return PENDING;
case 1:
return RUNNING;
case 2:
return SKIPPED;
case 3:
return DISABLED;
case 4:
return SUCCEEDED;
case 5:
return CANCELLED;
case 6:
return FAILED;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public State findValueByNumber(int number) {
return State.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.getDescriptor()
.getEnumTypes()
.get(0);
}
private static final State[] VALUES = values();
public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private State(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1beta1.WorkflowInvocationAction.State)
}
public interface BigQueryActionOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Output only. The generated BigQuery SQL script that will be executed.
*
*
* string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The sqlScript.
*/
java.lang.String getSqlScript();
/**
*
*
*
* Output only. The generated BigQuery SQL script that will be executed.
*
*
* string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for sqlScript.
*/
com.google.protobuf.ByteString getSqlScriptBytes();
}
/**
*
*
*
* Represents a workflow action that will run against BigQuery.
*
*
* Protobuf type {@code google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction}
*/
public static final class BigQueryAction extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction)
BigQueryActionOrBuilder {
private static final long serialVersionUID = 0L;
// Use BigQueryAction.newBuilder() to construct.
private BigQueryAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BigQueryAction() {
sqlScript_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new BigQueryAction();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_BigQueryAction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_BigQueryAction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.class,
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.Builder
.class);
}
public static final int SQL_SCRIPT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object sqlScript_ = "";
/**
*
*
*
* Output only. The generated BigQuery SQL script that will be executed.
*
*
* string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The sqlScript.
*/
@java.lang.Override
public java.lang.String getSqlScript() {
java.lang.Object ref = sqlScript_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sqlScript_ = s;
return s;
}
}
/**
*
*
*
* Output only. The generated BigQuery SQL script that will be executed.
*
*
* string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for sqlScript.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSqlScriptBytes() {
java.lang.Object ref = sqlScript_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
sqlScript_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlScript_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sqlScript_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlScript_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sqlScript_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj
instanceof com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction)) {
return super.equals(obj);
}
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction other =
(com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction) obj;
if (!getSqlScript().equals(other.getSqlScript())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SQL_SCRIPT_FIELD_NUMBER;
hash = (53 * hash) + getSqlScript().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Represents a workflow action that will run against BigQuery.
*
*
* Protobuf type {@code google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction)
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryActionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_BigQueryAction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_BigQueryAction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.class,
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.Builder
.class);
}
// Construct using
// com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sqlScript_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_BigQueryAction_descriptor;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
getDefaultInstanceForType() {
return com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction build() {
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
buildPartial() {
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction result =
new com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sqlScript_ = sqlScript_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other
instanceof com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction) {
return mergeFrom(
(com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction other) {
if (other
== com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
.getDefaultInstance()) return this;
if (!other.getSqlScript().isEmpty()) {
sqlScript_ = other.sqlScript_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
sqlScript_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object sqlScript_ = "";
/**
*
*
*
* Output only. The generated BigQuery SQL script that will be executed.
*
*
* string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The sqlScript.
*/
public java.lang.String getSqlScript() {
java.lang.Object ref = sqlScript_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sqlScript_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. The generated BigQuery SQL script that will be executed.
*
*
* string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for sqlScript.
*/
public com.google.protobuf.ByteString getSqlScriptBytes() {
java.lang.Object ref = sqlScript_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
sqlScript_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. The generated BigQuery SQL script that will be executed.
*
*
* string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The sqlScript to set.
* @return This builder for chaining.
*/
public Builder setSqlScript(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sqlScript_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. The generated BigQuery SQL script that will be executed.
*
*
* string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearSqlScript() {
sqlScript_ = getDefaultInstance().getSqlScript();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Output only. The generated BigQuery SQL script that will be executed.
*
*
* string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for sqlScript to set.
* @return This builder for chaining.
*/
public Builder setSqlScriptBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sqlScript_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction)
private static final com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction();
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BigQueryAction parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int TARGET_FIELD_NUMBER = 1;
private com.google.cloud.dataform.v1beta1.Target target_;
/**
*
*
*
* Output only. This action's identifier. Unique within the workflow
* invocation.
*
*
*
* .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the target field is set.
*/
@java.lang.Override
public boolean hasTarget() {
return target_ != null;
}
/**
*
*
*
* Output only. This action's identifier. Unique within the workflow
* invocation.
*
*
*
* .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The target.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.Target getTarget() {
return target_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: target_;
}
/**
*
*
*
* Output only. This action's identifier. Unique within the workflow
* invocation.
*
*
*
* .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.TargetOrBuilder getTargetOrBuilder() {
return target_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: target_;
}
public static final int CANONICAL_TARGET_FIELD_NUMBER = 2;
private com.google.cloud.dataform.v1beta1.Target canonicalTarget_;
/**
*
*
*
* Output only. The action's identifier if the project had been compiled
* without any overrides configured. Unique within the compilation result.
*
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the canonicalTarget field is set.
*/
@java.lang.Override
public boolean hasCanonicalTarget() {
return canonicalTarget_ != null;
}
/**
*
*
*
* Output only. The action's identifier if the project had been compiled
* without any overrides configured. Unique within the compilation result.
*
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The canonicalTarget.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.Target getCanonicalTarget() {
return canonicalTarget_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: canonicalTarget_;
}
/**
*
*
*
* Output only. The action's identifier if the project had been compiled
* without any overrides configured. Unique within the compilation result.
*
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.TargetOrBuilder getCanonicalTargetOrBuilder() {
return canonicalTarget_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: canonicalTarget_;
}
public static final int STATE_FIELD_NUMBER = 4;
private int state_ = 0;
/**
*
*
*
* Output only. This action's current state.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Output only. This action's current state.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State getState() {
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State result =
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State.forNumber(state_);
return result == null
? com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State.UNRECOGNIZED
: result;
}
public static final int FAILURE_REASON_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object failureReason_ = "";
/**
*
*
*
* Output only. If and only if action's state is FAILED a failure reason is
* set.
*
*
* string failure_reason = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The failureReason.
*/
@java.lang.Override
public java.lang.String getFailureReason() {
java.lang.Object ref = failureReason_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
failureReason_ = s;
return s;
}
}
/**
*
*
*
* Output only. If and only if action's state is FAILED a failure reason is
* set.
*
*
* string failure_reason = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for failureReason.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFailureReasonBytes() {
java.lang.Object ref = failureReason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
failureReason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INVOCATION_TIMING_FIELD_NUMBER = 5;
private com.google.type.Interval invocationTiming_;
/**
*
*
*
* Output only. This action's timing details.
* `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
* CANCELLED, FAILED] state.
* `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED]
* state.
*
*
* .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the invocationTiming field is set.
*/
@java.lang.Override
public boolean hasInvocationTiming() {
return invocationTiming_ != null;
}
/**
*
*
*
* Output only. This action's timing details.
* `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
* CANCELLED, FAILED] state.
* `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED]
* state.
*
*
* .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The invocationTiming.
*/
@java.lang.Override
public com.google.type.Interval getInvocationTiming() {
return invocationTiming_ == null
? com.google.type.Interval.getDefaultInstance()
: invocationTiming_;
}
/**
*
*
*
* Output only. This action's timing details.
* `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
* CANCELLED, FAILED] state.
* `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED]
* state.
*
*
* .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.type.IntervalOrBuilder getInvocationTimingOrBuilder() {
return invocationTiming_ == null
? com.google.type.Interval.getDefaultInstance()
: invocationTiming_;
}
public static final int BIGQUERY_ACTION_FIELD_NUMBER = 6;
private com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigqueryAction_;
/**
*
*
*
* Output only. The workflow action's bigquery action details.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the bigqueryAction field is set.
*/
@java.lang.Override
public boolean hasBigqueryAction() {
return bigqueryAction_ != null;
}
/**
*
*
*
* Output only. The workflow action's bigquery action details.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The bigqueryAction.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
getBigqueryAction() {
return bigqueryAction_ == null
? com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
.getDefaultInstance()
: bigqueryAction_;
}
/**
*
*
*
* Output only. The workflow action's bigquery action details.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryActionOrBuilder
getBigqueryActionOrBuilder() {
return bigqueryAction_ == null
? com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
.getDefaultInstance()
: bigqueryAction_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (target_ != null) {
output.writeMessage(1, getTarget());
}
if (canonicalTarget_ != null) {
output.writeMessage(2, getCanonicalTarget());
}
if (state_
!= com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State.PENDING.getNumber()) {
output.writeEnum(4, state_);
}
if (invocationTiming_ != null) {
output.writeMessage(5, getInvocationTiming());
}
if (bigqueryAction_ != null) {
output.writeMessage(6, getBigqueryAction());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureReason_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, failureReason_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (target_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTarget());
}
if (canonicalTarget_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCanonicalTarget());
}
if (state_
!= com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State.PENDING.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_);
}
if (invocationTiming_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInvocationTiming());
}
if (bigqueryAction_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBigqueryAction());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureReason_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, failureReason_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dataform.v1beta1.WorkflowInvocationAction)) {
return super.equals(obj);
}
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction other =
(com.google.cloud.dataform.v1beta1.WorkflowInvocationAction) obj;
if (hasTarget() != other.hasTarget()) return false;
if (hasTarget()) {
if (!getTarget().equals(other.getTarget())) return false;
}
if (hasCanonicalTarget() != other.hasCanonicalTarget()) return false;
if (hasCanonicalTarget()) {
if (!getCanonicalTarget().equals(other.getCanonicalTarget())) return false;
}
if (state_ != other.state_) return false;
if (!getFailureReason().equals(other.getFailureReason())) return false;
if (hasInvocationTiming() != other.hasInvocationTiming()) return false;
if (hasInvocationTiming()) {
if (!getInvocationTiming().equals(other.getInvocationTiming())) return false;
}
if (hasBigqueryAction() != other.hasBigqueryAction()) return false;
if (hasBigqueryAction()) {
if (!getBigqueryAction().equals(other.getBigqueryAction())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTarget()) {
hash = (37 * hash) + TARGET_FIELD_NUMBER;
hash = (53 * hash) + getTarget().hashCode();
}
if (hasCanonicalTarget()) {
hash = (37 * hash) + CANONICAL_TARGET_FIELD_NUMBER;
hash = (53 * hash) + getCanonicalTarget().hashCode();
}
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + FAILURE_REASON_FIELD_NUMBER;
hash = (53 * hash) + getFailureReason().hashCode();
if (hasInvocationTiming()) {
hash = (37 * hash) + INVOCATION_TIMING_FIELD_NUMBER;
hash = (53 * hash) + getInvocationTiming().hashCode();
}
if (hasBigqueryAction()) {
hash = (37 * hash) + BIGQUERY_ACTION_FIELD_NUMBER;
hash = (53 * hash) + getBigqueryAction().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Represents a single action in a workflow invocation.
*
*
* Protobuf type {@code google.cloud.dataform.v1beta1.WorkflowInvocationAction}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.WorkflowInvocationAction)
com.google.cloud.dataform.v1beta1.WorkflowInvocationActionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.class,
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.Builder.class);
}
// Construct using com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
target_ = null;
if (targetBuilder_ != null) {
targetBuilder_.dispose();
targetBuilder_ = null;
}
canonicalTarget_ = null;
if (canonicalTargetBuilder_ != null) {
canonicalTargetBuilder_.dispose();
canonicalTargetBuilder_ = null;
}
state_ = 0;
failureReason_ = "";
invocationTiming_ = null;
if (invocationTimingBuilder_ != null) {
invocationTimingBuilder_.dispose();
invocationTimingBuilder_ = null;
}
bigqueryAction_ = null;
if (bigqueryActionBuilder_ != null) {
bigqueryActionBuilder_.dispose();
bigqueryActionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction getDefaultInstanceForType() {
return com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction build() {
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction buildPartial() {
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction result =
new com.google.cloud.dataform.v1beta1.WorkflowInvocationAction(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataform.v1beta1.WorkflowInvocationAction result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.target_ = targetBuilder_ == null ? target_ : targetBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.canonicalTarget_ =
canonicalTargetBuilder_ == null ? canonicalTarget_ : canonicalTargetBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.failureReason_ = failureReason_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.invocationTiming_ =
invocationTimingBuilder_ == null ? invocationTiming_ : invocationTimingBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.bigqueryAction_ =
bigqueryActionBuilder_ == null ? bigqueryAction_ : bigqueryActionBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataform.v1beta1.WorkflowInvocationAction) {
return mergeFrom((com.google.cloud.dataform.v1beta1.WorkflowInvocationAction) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataform.v1beta1.WorkflowInvocationAction other) {
if (other == com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.getDefaultInstance())
return this;
if (other.hasTarget()) {
mergeTarget(other.getTarget());
}
if (other.hasCanonicalTarget()) {
mergeCanonicalTarget(other.getCanonicalTarget());
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (!other.getFailureReason().isEmpty()) {
failureReason_ = other.failureReason_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasInvocationTiming()) {
mergeInvocationTiming(other.getInvocationTiming());
}
if (other.hasBigqueryAction()) {
mergeBigqueryAction(other.getBigqueryAction());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
input.readMessage(getTargetFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getCanonicalTargetFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 32:
{
state_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 32
case 42:
{
input.readMessage(
getInvocationTimingFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50:
{
input.readMessage(getBigqueryActionFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58:
{
failureReason_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 58
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.cloud.dataform.v1beta1.Target target_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>
targetBuilder_;
/**
*
*
*
* Output only. This action's identifier. Unique within the workflow
* invocation.
*
*
*
* .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the target field is set.
*/
public boolean hasTarget() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Output only. This action's identifier. Unique within the workflow
* invocation.
*
*
*
* .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The target.
*/
public com.google.cloud.dataform.v1beta1.Target getTarget() {
if (targetBuilder_ == null) {
return target_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: target_;
} else {
return targetBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. This action's identifier. Unique within the workflow
* invocation.
*
*
*
* .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setTarget(com.google.cloud.dataform.v1beta1.Target value) {
if (targetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
target_ = value;
} else {
targetBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. This action's identifier. Unique within the workflow
* invocation.
*
*
*
* .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setTarget(com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) {
if (targetBuilder_ == null) {
target_ = builderForValue.build();
} else {
targetBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. This action's identifier. Unique within the workflow
* invocation.
*
*
*
* .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeTarget(com.google.cloud.dataform.v1beta1.Target value) {
if (targetBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& target_ != null
&& target_ != com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()) {
getTargetBuilder().mergeFrom(value);
} else {
target_ = value;
}
} else {
targetBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. This action's identifier. Unique within the workflow
* invocation.
*
*
*
* .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearTarget() {
bitField0_ = (bitField0_ & ~0x00000001);
target_ = null;
if (targetBuilder_ != null) {
targetBuilder_.dispose();
targetBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. This action's identifier. Unique within the workflow
* invocation.
*
*
*
* .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.dataform.v1beta1.Target.Builder getTargetBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTargetFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. This action's identifier. Unique within the workflow
* invocation.
*
*
*
* .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.dataform.v1beta1.TargetOrBuilder getTargetOrBuilder() {
if (targetBuilder_ != null) {
return targetBuilder_.getMessageOrBuilder();
} else {
return target_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: target_;
}
}
/**
*
*
*
* Output only. This action's identifier. Unique within the workflow
* invocation.
*
*
*
* .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>
getTargetFieldBuilder() {
if (targetBuilder_ == null) {
targetBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>(
getTarget(), getParentForChildren(), isClean());
target_ = null;
}
return targetBuilder_;
}
private com.google.cloud.dataform.v1beta1.Target canonicalTarget_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>
canonicalTargetBuilder_;
/**
*
*
*
* Output only. The action's identifier if the project had been compiled
* without any overrides configured. Unique within the compilation result.
*
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the canonicalTarget field is set.
*/
public boolean hasCanonicalTarget() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Output only. The action's identifier if the project had been compiled
* without any overrides configured. Unique within the compilation result.
*
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The canonicalTarget.
*/
public com.google.cloud.dataform.v1beta1.Target getCanonicalTarget() {
if (canonicalTargetBuilder_ == null) {
return canonicalTarget_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: canonicalTarget_;
} else {
return canonicalTargetBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The action's identifier if the project had been compiled
* without any overrides configured. Unique within the compilation result.
*
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCanonicalTarget(com.google.cloud.dataform.v1beta1.Target value) {
if (canonicalTargetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
canonicalTarget_ = value;
} else {
canonicalTargetBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. The action's identifier if the project had been compiled
* without any overrides configured. Unique within the compilation result.
*
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCanonicalTarget(
com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) {
if (canonicalTargetBuilder_ == null) {
canonicalTarget_ = builderForValue.build();
} else {
canonicalTargetBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. The action's identifier if the project had been compiled
* without any overrides configured. Unique within the compilation result.
*
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeCanonicalTarget(com.google.cloud.dataform.v1beta1.Target value) {
if (canonicalTargetBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& canonicalTarget_ != null
&& canonicalTarget_ != com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()) {
getCanonicalTargetBuilder().mergeFrom(value);
} else {
canonicalTarget_ = value;
}
} else {
canonicalTargetBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. The action's identifier if the project had been compiled
* without any overrides configured. Unique within the compilation result.
*
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearCanonicalTarget() {
bitField0_ = (bitField0_ & ~0x00000002);
canonicalTarget_ = null;
if (canonicalTargetBuilder_ != null) {
canonicalTargetBuilder_.dispose();
canonicalTargetBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The action's identifier if the project had been compiled
* without any overrides configured. Unique within the compilation result.
*
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.dataform.v1beta1.Target.Builder getCanonicalTargetBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getCanonicalTargetFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The action's identifier if the project had been compiled
* without any overrides configured. Unique within the compilation result.
*
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.dataform.v1beta1.TargetOrBuilder getCanonicalTargetOrBuilder() {
if (canonicalTargetBuilder_ != null) {
return canonicalTargetBuilder_.getMessageOrBuilder();
} else {
return canonicalTarget_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: canonicalTarget_;
}
}
/**
*
*
*
* Output only. The action's identifier if the project had been compiled
* without any overrides configured. Unique within the compilation result.
*
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>
getCanonicalTargetFieldBuilder() {
if (canonicalTargetBuilder_ == null) {
canonicalTargetBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>(
getCanonicalTarget(), getParentForChildren(), isClean());
canonicalTarget_ = null;
}
return canonicalTargetBuilder_;
}
private int state_ = 0;
/**
*
*
*
* Output only. This action's current state.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Output only. This action's current state.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. This action's current state.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State getState() {
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State result =
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State.forNumber(state_);
return result == null
? com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State.UNRECOGNIZED
: result;
}
/**
*
*
*
* Output only. This action's current state.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. This action's current state.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000004);
state_ = 0;
onChanged();
return this;
}
private java.lang.Object failureReason_ = "";
/**
*
*
*
* Output only. If and only if action's state is FAILED a failure reason is
* set.
*
*
* string failure_reason = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The failureReason.
*/
public java.lang.String getFailureReason() {
java.lang.Object ref = failureReason_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
failureReason_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. If and only if action's state is FAILED a failure reason is
* set.
*
*
* string failure_reason = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for failureReason.
*/
public com.google.protobuf.ByteString getFailureReasonBytes() {
java.lang.Object ref = failureReason_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
failureReason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. If and only if action's state is FAILED a failure reason is
* set.
*
*
* string failure_reason = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The failureReason to set.
* @return This builder for chaining.
*/
public Builder setFailureReason(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
failureReason_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. If and only if action's state is FAILED a failure reason is
* set.
*
*
* string failure_reason = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearFailureReason() {
failureReason_ = getDefaultInstance().getFailureReason();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*
*
* Output only. If and only if action's state is FAILED a failure reason is
* set.
*
*
* string failure_reason = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for failureReason to set.
* @return This builder for chaining.
*/
public Builder setFailureReasonBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
failureReason_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private com.google.type.Interval invocationTiming_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.type.Interval,
com.google.type.Interval.Builder,
com.google.type.IntervalOrBuilder>
invocationTimingBuilder_;
/**
*
*
*
* Output only. This action's timing details.
* `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
* CANCELLED, FAILED] state.
* `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED]
* state.
*
*
*
* .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the invocationTiming field is set.
*/
public boolean hasInvocationTiming() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* Output only. This action's timing details.
* `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
* CANCELLED, FAILED] state.
* `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED]
* state.
*
*
*
* .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The invocationTiming.
*/
public com.google.type.Interval getInvocationTiming() {
if (invocationTimingBuilder_ == null) {
return invocationTiming_ == null
? com.google.type.Interval.getDefaultInstance()
: invocationTiming_;
} else {
return invocationTimingBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. This action's timing details.
* `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
* CANCELLED, FAILED] state.
* `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED]
* state.
*
*
*
* .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setInvocationTiming(com.google.type.Interval value) {
if (invocationTimingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
invocationTiming_ = value;
} else {
invocationTimingBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Output only. This action's timing details.
* `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
* CANCELLED, FAILED] state.
* `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED]
* state.
*
*
*
* .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setInvocationTiming(com.google.type.Interval.Builder builderForValue) {
if (invocationTimingBuilder_ == null) {
invocationTiming_ = builderForValue.build();
} else {
invocationTimingBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Output only. This action's timing details.
* `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
* CANCELLED, FAILED] state.
* `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED]
* state.
*
*
*
* .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeInvocationTiming(com.google.type.Interval value) {
if (invocationTimingBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)
&& invocationTiming_ != null
&& invocationTiming_ != com.google.type.Interval.getDefaultInstance()) {
getInvocationTimingBuilder().mergeFrom(value);
} else {
invocationTiming_ = value;
}
} else {
invocationTimingBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Output only. This action's timing details.
* `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
* CANCELLED, FAILED] state.
* `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED]
* state.
*
*
*
* .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearInvocationTiming() {
bitField0_ = (bitField0_ & ~0x00000010);
invocationTiming_ = null;
if (invocationTimingBuilder_ != null) {
invocationTimingBuilder_.dispose();
invocationTimingBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. This action's timing details.
* `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
* CANCELLED, FAILED] state.
* `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED]
* state.
*
*
*
* .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.type.Interval.Builder getInvocationTimingBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getInvocationTimingFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. This action's timing details.
* `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
* CANCELLED, FAILED] state.
* `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED]
* state.
*
*
*
* .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.type.IntervalOrBuilder getInvocationTimingOrBuilder() {
if (invocationTimingBuilder_ != null) {
return invocationTimingBuilder_.getMessageOrBuilder();
} else {
return invocationTiming_ == null
? com.google.type.Interval.getDefaultInstance()
: invocationTiming_;
}
}
/**
*
*
*
* Output only. This action's timing details.
* `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
* CANCELLED, FAILED] state.
* `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED]
* state.
*
*
*
* .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.type.Interval,
com.google.type.Interval.Builder,
com.google.type.IntervalOrBuilder>
getInvocationTimingFieldBuilder() {
if (invocationTimingBuilder_ == null) {
invocationTimingBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.type.Interval,
com.google.type.Interval.Builder,
com.google.type.IntervalOrBuilder>(
getInvocationTiming(), getParentForChildren(), isClean());
invocationTiming_ = null;
}
return invocationTimingBuilder_;
}
private com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
bigqueryAction_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction,
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.Builder,
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryActionOrBuilder>
bigqueryActionBuilder_;
/**
*
*
*
* Output only. The workflow action's bigquery action details.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the bigqueryAction field is set.
*/
public boolean hasBigqueryAction() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
*
* Output only. The workflow action's bigquery action details.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The bigqueryAction.
*/
public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
getBigqueryAction() {
if (bigqueryActionBuilder_ == null) {
return bigqueryAction_ == null
? com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
.getDefaultInstance()
: bigqueryAction_;
} else {
return bigqueryActionBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The workflow action's bigquery action details.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setBigqueryAction(
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction value) {
if (bigqueryActionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bigqueryAction_ = value;
} else {
bigqueryActionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Output only. The workflow action's bigquery action details.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setBigqueryAction(
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.Builder
builderForValue) {
if (bigqueryActionBuilder_ == null) {
bigqueryAction_ = builderForValue.build();
} else {
bigqueryActionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Output only. The workflow action's bigquery action details.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeBigqueryAction(
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction value) {
if (bigqueryActionBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)
&& bigqueryAction_ != null
&& bigqueryAction_
!= com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
.getDefaultInstance()) {
getBigqueryActionBuilder().mergeFrom(value);
} else {
bigqueryAction_ = value;
}
} else {
bigqueryActionBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Output only. The workflow action's bigquery action details.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearBigqueryAction() {
bitField0_ = (bitField0_ & ~0x00000020);
bigqueryAction_ = null;
if (bigqueryActionBuilder_ != null) {
bigqueryActionBuilder_.dispose();
bigqueryActionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The workflow action's bigquery action details.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.Builder
getBigqueryActionBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getBigqueryActionFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The workflow action's bigquery action details.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryActionOrBuilder
getBigqueryActionOrBuilder() {
if (bigqueryActionBuilder_ != null) {
return bigqueryActionBuilder_.getMessageOrBuilder();
} else {
return bigqueryAction_ == null
? com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction
.getDefaultInstance()
: bigqueryAction_;
}
}
/**
*
*
*
* Output only. The workflow action's bigquery action details.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction,
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.Builder,
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryActionOrBuilder>
getBigqueryActionFieldBuilder() {
if (bigqueryActionBuilder_ == null) {
bigqueryActionBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction,
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction.Builder,
com.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryActionOrBuilder>(
getBigqueryAction(), getParentForChildren(), isClean());
bigqueryAction_ = null;
}
return bigqueryActionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.WorkflowInvocationAction)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.WorkflowInvocationAction)
private static final com.google.cloud.dataform.v1beta1.WorkflowInvocationAction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.WorkflowInvocationAction();
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocationAction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WorkflowInvocationAction parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.WorkflowInvocationAction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}