com.google.cloud.dataform.v1alpha2.WorkflowInvocation 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-v1alpha2 Show documentation
Show all versions of proto-google-cloud-dataform-v1alpha2 Show documentation
Proto library for google-cloud-dataform
/*
* Copyright 2024 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/v1alpha2/dataform.proto
// Protobuf Java Version: 3.25.4
package com.google.cloud.dataform.v1alpha2;
/**
*
*
*
* Represents a single invocation of a compilation result.
*
*
* Protobuf type {@code google.cloud.dataform.v1alpha2.WorkflowInvocation}
*/
public final class WorkflowInvocation extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.WorkflowInvocation)
WorkflowInvocationOrBuilder {
private static final long serialVersionUID = 0L;
// Use WorkflowInvocation.newBuilder() to construct.
private WorkflowInvocation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WorkflowInvocation() {
name_ = "";
compilationResult_ = "";
state_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new WorkflowInvocation();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.class,
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.Builder.class);
}
/**
*
*
*
* Represents the current state of a workflow invocation.
*
*
* Protobuf enum {@code google.cloud.dataform.v1alpha2.WorkflowInvocation.State}
*/
public enum State implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* Default value. This value is unused.
*
*
* STATE_UNSPECIFIED = 0;
*/
STATE_UNSPECIFIED(0),
/**
*
*
*
* The workflow invocation is currently running.
*
*
* RUNNING = 1;
*/
RUNNING(1),
/**
*
*
*
* The workflow invocation succeeded. A terminal state.
*
*
* SUCCEEDED = 2;
*/
SUCCEEDED(2),
/**
*
*
*
* The workflow invocation was cancelled. A terminal state.
*
*
* CANCELLED = 3;
*/
CANCELLED(3),
/**
*
*
*
* The workflow invocation failed. A terminal state.
*
*
* FAILED = 4;
*/
FAILED(4),
/**
*
*
*
* The workflow invocation is being cancelled, but some actions are still
* running.
*
*
* CANCELING = 5;
*/
CANCELING(5),
UNRECOGNIZED(-1),
;
/**
*
*
*
* Default value. This value is unused.
*
*
* STATE_UNSPECIFIED = 0;
*/
public static final int STATE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* The workflow invocation is currently running.
*
*
* RUNNING = 1;
*/
public static final int RUNNING_VALUE = 1;
/**
*
*
*
* The workflow invocation succeeded. A terminal state.
*
*
* SUCCEEDED = 2;
*/
public static final int SUCCEEDED_VALUE = 2;
/**
*
*
*
* The workflow invocation was cancelled. A terminal state.
*
*
* CANCELLED = 3;
*/
public static final int CANCELLED_VALUE = 3;
/**
*
*
*
* The workflow invocation failed. A terminal state.
*
*
* FAILED = 4;
*/
public static final int FAILED_VALUE = 4;
/**
*
*
*
* The workflow invocation is being cancelled, but some actions are still
* running.
*
*
* CANCELING = 5;
*/
public static final int CANCELING_VALUE = 5;
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 STATE_UNSPECIFIED;
case 1:
return RUNNING;
case 2:
return SUCCEEDED;
case 3:
return CANCELLED;
case 4:
return FAILED;
case 5:
return CANCELING;
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.v1alpha2.WorkflowInvocation.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.v1alpha2.WorkflowInvocation.State)
}
public interface InvocationConfigOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
java.util.List getIncludedTargetsList();
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
com.google.cloud.dataform.v1alpha2.Target getIncludedTargets(int index);
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
int getIncludedTargetsCount();
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
java.util.List extends com.google.cloud.dataform.v1alpha2.TargetOrBuilder>
getIncludedTargetsOrBuilderList();
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
com.google.cloud.dataform.v1alpha2.TargetOrBuilder getIncludedTargetsOrBuilder(int index);
/**
*
*
*
* Immutable. The set of tags to include.
*
*
* repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return A list containing the includedTags.
*/
java.util.List getIncludedTagsList();
/**
*
*
*
* Immutable. The set of tags to include.
*
*
* repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return The count of includedTags.
*/
int getIncludedTagsCount();
/**
*
*
*
* Immutable. The set of tags to include.
*
*
* repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @param index The index of the element to return.
* @return The includedTags at the given index.
*/
java.lang.String getIncludedTags(int index);
/**
*
*
*
* Immutable. The set of tags to include.
*
*
* repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @param index The index of the value to return.
* @return The bytes of the includedTags at the given index.
*/
com.google.protobuf.ByteString getIncludedTagsBytes(int index);
/**
*
*
*
* Immutable. When set to true, transitive dependencies of included actions will be
* executed.
*
*
* bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The transitiveDependenciesIncluded.
*/
boolean getTransitiveDependenciesIncluded();
/**
*
*
*
* Immutable. When set to true, transitive dependents of included actions will be
* executed.
*
*
* bool transitive_dependents_included = 4 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The transitiveDependentsIncluded.
*/
boolean getTransitiveDependentsIncluded();
/**
*
*
*
* Immutable. When set to true, any incremental tables will be fully refreshed.
*
*
*
* bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The fullyRefreshIncrementalTablesEnabled.
*/
boolean getFullyRefreshIncrementalTablesEnabled();
}
/**
*
*
*
* Includes various configuration options for this workflow invocation.
* If both `included_targets` and `included_tags` are unset, all actions
* will be included.
*
*
* Protobuf type {@code google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig}
*/
public static final class InvocationConfig extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig)
InvocationConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use InvocationConfig.newBuilder() to construct.
private InvocationConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InvocationConfig() {
includedTargets_ = java.util.Collections.emptyList();
includedTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new InvocationConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_InvocationConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_InvocationConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.class,
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.Builder.class);
}
public static final int INCLUDED_TARGETS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List includedTargets_;
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
@java.lang.Override
public java.util.List getIncludedTargetsList() {
return includedTargets_;
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
@java.lang.Override
public java.util.List extends com.google.cloud.dataform.v1alpha2.TargetOrBuilder>
getIncludedTargetsOrBuilderList() {
return includedTargets_;
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
@java.lang.Override
public int getIncludedTargetsCount() {
return includedTargets_.size();
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.Target getIncludedTargets(int index) {
return includedTargets_.get(index);
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getIncludedTargetsOrBuilder(
int index) {
return includedTargets_.get(index);
}
public static final int INCLUDED_TAGS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList includedTags_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* Immutable. The set of tags to include.
*
*
* repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return A list containing the includedTags.
*/
public com.google.protobuf.ProtocolStringList getIncludedTagsList() {
return includedTags_;
}
/**
*
*
*
* Immutable. The set of tags to include.
*
*
* repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return The count of includedTags.
*/
public int getIncludedTagsCount() {
return includedTags_.size();
}
/**
*
*
*
* Immutable. The set of tags to include.
*
*
* repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @param index The index of the element to return.
* @return The includedTags at the given index.
*/
public java.lang.String getIncludedTags(int index) {
return includedTags_.get(index);
}
/**
*
*
*
* Immutable. The set of tags to include.
*
*
* repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @param index The index of the value to return.
* @return The bytes of the includedTags at the given index.
*/
public com.google.protobuf.ByteString getIncludedTagsBytes(int index) {
return includedTags_.getByteString(index);
}
public static final int TRANSITIVE_DEPENDENCIES_INCLUDED_FIELD_NUMBER = 3;
private boolean transitiveDependenciesIncluded_ = false;
/**
*
*
*
* Immutable. When set to true, transitive dependencies of included actions will be
* executed.
*
*
* bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The transitiveDependenciesIncluded.
*/
@java.lang.Override
public boolean getTransitiveDependenciesIncluded() {
return transitiveDependenciesIncluded_;
}
public static final int TRANSITIVE_DEPENDENTS_INCLUDED_FIELD_NUMBER = 4;
private boolean transitiveDependentsIncluded_ = false;
/**
*
*
*
* Immutable. When set to true, transitive dependents of included actions will be
* executed.
*
*
* bool transitive_dependents_included = 4 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The transitiveDependentsIncluded.
*/
@java.lang.Override
public boolean getTransitiveDependentsIncluded() {
return transitiveDependentsIncluded_;
}
public static final int FULLY_REFRESH_INCREMENTAL_TABLES_ENABLED_FIELD_NUMBER = 5;
private boolean fullyRefreshIncrementalTablesEnabled_ = false;
/**
*
*
*
* Immutable. When set to true, any incremental tables will be fully refreshed.
*
*
*
* bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The fullyRefreshIncrementalTablesEnabled.
*/
@java.lang.Override
public boolean getFullyRefreshIncrementalTablesEnabled() {
return fullyRefreshIncrementalTablesEnabled_;
}
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 {
for (int i = 0; i < includedTargets_.size(); i++) {
output.writeMessage(1, includedTargets_.get(i));
}
for (int i = 0; i < includedTags_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, includedTags_.getRaw(i));
}
if (transitiveDependenciesIncluded_ != false) {
output.writeBool(3, transitiveDependenciesIncluded_);
}
if (transitiveDependentsIncluded_ != false) {
output.writeBool(4, transitiveDependentsIncluded_);
}
if (fullyRefreshIncrementalTablesEnabled_ != false) {
output.writeBool(5, fullyRefreshIncrementalTablesEnabled_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < includedTargets_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(1, includedTargets_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < includedTags_.size(); i++) {
dataSize += computeStringSizeNoTag(includedTags_.getRaw(i));
}
size += dataSize;
size += 1 * getIncludedTagsList().size();
}
if (transitiveDependenciesIncluded_ != false) {
size +=
com.google.protobuf.CodedOutputStream.computeBoolSize(
3, transitiveDependenciesIncluded_);
}
if (transitiveDependentsIncluded_ != false) {
size +=
com.google.protobuf.CodedOutputStream.computeBoolSize(4, transitiveDependentsIncluded_);
}
if (fullyRefreshIncrementalTablesEnabled_ != false) {
size +=
com.google.protobuf.CodedOutputStream.computeBoolSize(
5, fullyRefreshIncrementalTablesEnabled_);
}
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.v1alpha2.WorkflowInvocation.InvocationConfig)) {
return super.equals(obj);
}
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig other =
(com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig) obj;
if (!getIncludedTargetsList().equals(other.getIncludedTargetsList())) return false;
if (!getIncludedTagsList().equals(other.getIncludedTagsList())) return false;
if (getTransitiveDependenciesIncluded() != other.getTransitiveDependenciesIncluded())
return false;
if (getTransitiveDependentsIncluded() != other.getTransitiveDependentsIncluded())
return false;
if (getFullyRefreshIncrementalTablesEnabled()
!= other.getFullyRefreshIncrementalTablesEnabled()) 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 (getIncludedTargetsCount() > 0) {
hash = (37 * hash) + INCLUDED_TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getIncludedTargetsList().hashCode();
}
if (getIncludedTagsCount() > 0) {
hash = (37 * hash) + INCLUDED_TAGS_FIELD_NUMBER;
hash = (53 * hash) + getIncludedTagsList().hashCode();
}
hash = (37 * hash) + TRANSITIVE_DEPENDENCIES_INCLUDED_FIELD_NUMBER;
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashBoolean(getTransitiveDependenciesIncluded());
hash = (37 * hash) + TRANSITIVE_DEPENDENTS_INCLUDED_FIELD_NUMBER;
hash =
(53 * hash) + com.google.protobuf.Internal.hashBoolean(getTransitiveDependentsIncluded());
hash = (37 * hash) + FULLY_REFRESH_INCREMENTAL_TABLES_ENABLED_FIELD_NUMBER;
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashBoolean(getFullyRefreshIncrementalTablesEnabled());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig 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.v1alpha2.WorkflowInvocation.InvocationConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig 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.v1alpha2.WorkflowInvocation.InvocationConfig parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig 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.v1alpha2.WorkflowInvocation.InvocationConfig
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig
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.v1alpha2.WorkflowInvocation.InvocationConfig parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig 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.v1alpha2.WorkflowInvocation.InvocationConfig 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;
}
/**
*
*
*
* Includes various configuration options for this workflow invocation.
* If both `included_targets` and `included_tags` are unset, all actions
* will be included.
*
*
* Protobuf type {@code google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig)
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_InvocationConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_InvocationConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.class,
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.Builder
.class);
}
// Construct using
// com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (includedTargetsBuilder_ == null) {
includedTargets_ = java.util.Collections.emptyList();
} else {
includedTargets_ = null;
includedTargetsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
includedTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
transitiveDependenciesIncluded_ = false;
transitiveDependentsIncluded_ = false;
fullyRefreshIncrementalTablesEnabled_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_InvocationConfig_descriptor;
}
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig
getDefaultInstanceForType() {
return com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig build() {
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig buildPartial() {
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig result =
new com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig result) {
if (includedTargetsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
includedTargets_ = java.util.Collections.unmodifiableList(includedTargets_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.includedTargets_ = includedTargets_;
} else {
result.includedTargets_ = includedTargetsBuilder_.build();
}
}
private void buildPartial0(
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000002) != 0)) {
includedTags_.makeImmutable();
result.includedTags_ = includedTags_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.transitiveDependenciesIncluded_ = transitiveDependenciesIncluded_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.transitiveDependentsIncluded_ = transitiveDependentsIncluded_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.fullyRefreshIncrementalTablesEnabled_ = fullyRefreshIncrementalTablesEnabled_;
}
}
@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.v1alpha2.WorkflowInvocation.InvocationConfig) {
return mergeFrom(
(com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig other) {
if (other
== com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig
.getDefaultInstance()) return this;
if (includedTargetsBuilder_ == null) {
if (!other.includedTargets_.isEmpty()) {
if (includedTargets_.isEmpty()) {
includedTargets_ = other.includedTargets_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIncludedTargetsIsMutable();
includedTargets_.addAll(other.includedTargets_);
}
onChanged();
}
} else {
if (!other.includedTargets_.isEmpty()) {
if (includedTargetsBuilder_.isEmpty()) {
includedTargetsBuilder_.dispose();
includedTargetsBuilder_ = null;
includedTargets_ = other.includedTargets_;
bitField0_ = (bitField0_ & ~0x00000001);
includedTargetsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getIncludedTargetsFieldBuilder()
: null;
} else {
includedTargetsBuilder_.addAllMessages(other.includedTargets_);
}
}
}
if (!other.includedTags_.isEmpty()) {
if (includedTags_.isEmpty()) {
includedTags_ = other.includedTags_;
bitField0_ |= 0x00000002;
} else {
ensureIncludedTagsIsMutable();
includedTags_.addAll(other.includedTags_);
}
onChanged();
}
if (other.getTransitiveDependenciesIncluded() != false) {
setTransitiveDependenciesIncluded(other.getTransitiveDependenciesIncluded());
}
if (other.getTransitiveDependentsIncluded() != false) {
setTransitiveDependentsIncluded(other.getTransitiveDependentsIncluded());
}
if (other.getFullyRefreshIncrementalTablesEnabled() != false) {
setFullyRefreshIncrementalTablesEnabled(other.getFullyRefreshIncrementalTablesEnabled());
}
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:
{
com.google.cloud.dataform.v1alpha2.Target m =
input.readMessage(
com.google.cloud.dataform.v1alpha2.Target.parser(), extensionRegistry);
if (includedTargetsBuilder_ == null) {
ensureIncludedTargetsIsMutable();
includedTargets_.add(m);
} else {
includedTargetsBuilder_.addMessage(m);
}
break;
} // case 10
case 18:
{
java.lang.String s = input.readStringRequireUtf8();
ensureIncludedTagsIsMutable();
includedTags_.add(s);
break;
} // case 18
case 24:
{
transitiveDependenciesIncluded_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32:
{
transitiveDependentsIncluded_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40:
{
fullyRefreshIncrementalTablesEnabled_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
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.util.List includedTargets_ =
java.util.Collections.emptyList();
private void ensureIncludedTargetsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
includedTargets_ =
new java.util.ArrayList(includedTargets_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataform.v1alpha2.Target,
com.google.cloud.dataform.v1alpha2.Target.Builder,
com.google.cloud.dataform.v1alpha2.TargetOrBuilder>
includedTargetsBuilder_;
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public java.util.List getIncludedTargetsList() {
if (includedTargetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(includedTargets_);
} else {
return includedTargetsBuilder_.getMessageList();
}
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public int getIncludedTargetsCount() {
if (includedTargetsBuilder_ == null) {
return includedTargets_.size();
} else {
return includedTargetsBuilder_.getCount();
}
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public com.google.cloud.dataform.v1alpha2.Target getIncludedTargets(int index) {
if (includedTargetsBuilder_ == null) {
return includedTargets_.get(index);
} else {
return includedTargetsBuilder_.getMessage(index);
}
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder setIncludedTargets(
int index, com.google.cloud.dataform.v1alpha2.Target value) {
if (includedTargetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIncludedTargetsIsMutable();
includedTargets_.set(index, value);
onChanged();
} else {
includedTargetsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder setIncludedTargets(
int index, com.google.cloud.dataform.v1alpha2.Target.Builder builderForValue) {
if (includedTargetsBuilder_ == null) {
ensureIncludedTargetsIsMutable();
includedTargets_.set(index, builderForValue.build());
onChanged();
} else {
includedTargetsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder addIncludedTargets(com.google.cloud.dataform.v1alpha2.Target value) {
if (includedTargetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIncludedTargetsIsMutable();
includedTargets_.add(value);
onChanged();
} else {
includedTargetsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder addIncludedTargets(
int index, com.google.cloud.dataform.v1alpha2.Target value) {
if (includedTargetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIncludedTargetsIsMutable();
includedTargets_.add(index, value);
onChanged();
} else {
includedTargetsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder addIncludedTargets(
com.google.cloud.dataform.v1alpha2.Target.Builder builderForValue) {
if (includedTargetsBuilder_ == null) {
ensureIncludedTargetsIsMutable();
includedTargets_.add(builderForValue.build());
onChanged();
} else {
includedTargetsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder addIncludedTargets(
int index, com.google.cloud.dataform.v1alpha2.Target.Builder builderForValue) {
if (includedTargetsBuilder_ == null) {
ensureIncludedTargetsIsMutable();
includedTargets_.add(index, builderForValue.build());
onChanged();
} else {
includedTargetsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder addAllIncludedTargets(
java.lang.Iterable extends com.google.cloud.dataform.v1alpha2.Target> values) {
if (includedTargetsBuilder_ == null) {
ensureIncludedTargetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includedTargets_);
onChanged();
} else {
includedTargetsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder clearIncludedTargets() {
if (includedTargetsBuilder_ == null) {
includedTargets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
includedTargetsBuilder_.clear();
}
return this;
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder removeIncludedTargets(int index) {
if (includedTargetsBuilder_ == null) {
ensureIncludedTargetsIsMutable();
includedTargets_.remove(index);
onChanged();
} else {
includedTargetsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public com.google.cloud.dataform.v1alpha2.Target.Builder getIncludedTargetsBuilder(
int index) {
return getIncludedTargetsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public com.google.cloud.dataform.v1alpha2.TargetOrBuilder getIncludedTargetsOrBuilder(
int index) {
if (includedTargetsBuilder_ == null) {
return includedTargets_.get(index);
} else {
return includedTargetsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public java.util.List extends com.google.cloud.dataform.v1alpha2.TargetOrBuilder>
getIncludedTargetsOrBuilderList() {
if (includedTargetsBuilder_ != null) {
return includedTargetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(includedTargets_);
}
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public com.google.cloud.dataform.v1alpha2.Target.Builder addIncludedTargetsBuilder() {
return getIncludedTargetsFieldBuilder()
.addBuilder(com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance());
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public com.google.cloud.dataform.v1alpha2.Target.Builder addIncludedTargetsBuilder(
int index) {
return getIncludedTargetsFieldBuilder()
.addBuilder(index, com.google.cloud.dataform.v1alpha2.Target.getDefaultInstance());
}
/**
*
*
*
* Immutable. The set of action identifiers to include.
*
*
*
* repeated .google.cloud.dataform.v1alpha2.Target included_targets = 1 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public java.util.List
getIncludedTargetsBuilderList() {
return getIncludedTargetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataform.v1alpha2.Target,
com.google.cloud.dataform.v1alpha2.Target.Builder,
com.google.cloud.dataform.v1alpha2.TargetOrBuilder>
getIncludedTargetsFieldBuilder() {
if (includedTargetsBuilder_ == null) {
includedTargetsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataform.v1alpha2.Target,
com.google.cloud.dataform.v1alpha2.Target.Builder,
com.google.cloud.dataform.v1alpha2.TargetOrBuilder>(
includedTargets_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
includedTargets_ = null;
}
return includedTargetsBuilder_;
}
private com.google.protobuf.LazyStringArrayList includedTags_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureIncludedTagsIsMutable() {
if (!includedTags_.isModifiable()) {
includedTags_ = new com.google.protobuf.LazyStringArrayList(includedTags_);
}
bitField0_ |= 0x00000002;
}
/**
*
*
*
* Immutable. The set of tags to include.
*
*
* repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return A list containing the includedTags.
*/
public com.google.protobuf.ProtocolStringList getIncludedTagsList() {
includedTags_.makeImmutable();
return includedTags_;
}
/**
*
*
*
* Immutable. The set of tags to include.
*
*
* repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return The count of includedTags.
*/
public int getIncludedTagsCount() {
return includedTags_.size();
}
/**
*
*
*
* Immutable. The set of tags to include.
*
*
* repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @param index The index of the element to return.
* @return The includedTags at the given index.
*/
public java.lang.String getIncludedTags(int index) {
return includedTags_.get(index);
}
/**
*
*
*
* Immutable. The set of tags to include.
*
*
* repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @param index The index of the value to return.
* @return The bytes of the includedTags at the given index.
*/
public com.google.protobuf.ByteString getIncludedTagsBytes(int index) {
return includedTags_.getByteString(index);
}
/**
*
*
*
* Immutable. The set of tags to include.
*
*
* repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @param index The index to set the value at.
* @param value The includedTags to set.
* @return This builder for chaining.
*/
public Builder setIncludedTags(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIncludedTagsIsMutable();
includedTags_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Immutable. The set of tags to include.
*
*
* repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @param value The includedTags to add.
* @return This builder for chaining.
*/
public Builder addIncludedTags(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIncludedTagsIsMutable();
includedTags_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Immutable. The set of tags to include.
*
*
* repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @param values The includedTags to add.
* @return This builder for chaining.
*/
public Builder addAllIncludedTags(java.lang.Iterable values) {
ensureIncludedTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includedTags_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Immutable. The set of tags to include.
*
*
* repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return This builder for chaining.
*/
public Builder clearIncludedTags() {
includedTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
;
onChanged();
return this;
}
/**
*
*
*
* Immutable. The set of tags to include.
*
*
* repeated string included_tags = 2 [(.google.api.field_behavior) = IMMUTABLE];
*
* @param value The bytes of the includedTags to add.
* @return This builder for chaining.
*/
public Builder addIncludedTagsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureIncludedTagsIsMutable();
includedTags_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private boolean transitiveDependenciesIncluded_;
/**
*
*
*
* Immutable. When set to true, transitive dependencies of included actions will be
* executed.
*
*
* bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The transitiveDependenciesIncluded.
*/
@java.lang.Override
public boolean getTransitiveDependenciesIncluded() {
return transitiveDependenciesIncluded_;
}
/**
*
*
*
* Immutable. When set to true, transitive dependencies of included actions will be
* executed.
*
*
* bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @param value The transitiveDependenciesIncluded to set.
* @return This builder for chaining.
*/
public Builder setTransitiveDependenciesIncluded(boolean value) {
transitiveDependenciesIncluded_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Immutable. When set to true, transitive dependencies of included actions will be
* executed.
*
*
* bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return This builder for chaining.
*/
public Builder clearTransitiveDependenciesIncluded() {
bitField0_ = (bitField0_ & ~0x00000004);
transitiveDependenciesIncluded_ = false;
onChanged();
return this;
}
private boolean transitiveDependentsIncluded_;
/**
*
*
*
* Immutable. When set to true, transitive dependents of included actions will be
* executed.
*
*
* bool transitive_dependents_included = 4 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The transitiveDependentsIncluded.
*/
@java.lang.Override
public boolean getTransitiveDependentsIncluded() {
return transitiveDependentsIncluded_;
}
/**
*
*
*
* Immutable. When set to true, transitive dependents of included actions will be
* executed.
*
*
* bool transitive_dependents_included = 4 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @param value The transitiveDependentsIncluded to set.
* @return This builder for chaining.
*/
public Builder setTransitiveDependentsIncluded(boolean value) {
transitiveDependentsIncluded_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Immutable. When set to true, transitive dependents of included actions will be
* executed.
*
*
* bool transitive_dependents_included = 4 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return This builder for chaining.
*/
public Builder clearTransitiveDependentsIncluded() {
bitField0_ = (bitField0_ & ~0x00000008);
transitiveDependentsIncluded_ = false;
onChanged();
return this;
}
private boolean fullyRefreshIncrementalTablesEnabled_;
/**
*
*
*
* Immutable. When set to true, any incremental tables will be fully refreshed.
*
*
*
* bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The fullyRefreshIncrementalTablesEnabled.
*/
@java.lang.Override
public boolean getFullyRefreshIncrementalTablesEnabled() {
return fullyRefreshIncrementalTablesEnabled_;
}
/**
*
*
*
* Immutable. When set to true, any incremental tables will be fully refreshed.
*
*
*
* bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @param value The fullyRefreshIncrementalTablesEnabled to set.
* @return This builder for chaining.
*/
public Builder setFullyRefreshIncrementalTablesEnabled(boolean value) {
fullyRefreshIncrementalTablesEnabled_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Immutable. When set to true, any incremental tables will be fully refreshed.
*
*
*
* bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return This builder for chaining.
*/
public Builder clearFullyRefreshIncrementalTablesEnabled() {
bitField0_ = (bitField0_ & ~0x00000010);
fullyRefreshIncrementalTablesEnabled_ = false;
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.v1alpha2.WorkflowInvocation.InvocationConfig)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig)
private static final com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig();
}
public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InvocationConfig 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.v1alpha2.WorkflowInvocation.InvocationConfig
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Output only. The workflow invocation's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
*
*
* Output only. The workflow invocation's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMPILATION_RESULT_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object compilationResult_ = "";
/**
*
*
*
* Immutable. The name of the compilation result to compile. Must be in the format
* `projects/*/locations/*/repositories/*/compilationResults/*`.
*
*
*
* string compilation_result = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The compilationResult.
*/
@java.lang.Override
public java.lang.String getCompilationResult() {
java.lang.Object ref = compilationResult_;
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();
compilationResult_ = s;
return s;
}
}
/**
*
*
*
* Immutable. The name of the compilation result to compile. Must be in the format
* `projects/*/locations/*/repositories/*/compilationResults/*`.
*
*
*
* string compilation_result = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for compilationResult.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCompilationResultBytes() {
java.lang.Object ref = compilationResult_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
compilationResult_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INVOCATION_CONFIG_FIELD_NUMBER = 3;
private com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocationConfig_;
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return Whether the invocationConfig field is set.
*/
@java.lang.Override
public boolean hasInvocationConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The invocationConfig.
*/
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig
getInvocationConfig() {
return invocationConfig_ == null
? com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig
.getDefaultInstance()
: invocationConfig_;
}
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfigOrBuilder
getInvocationConfigOrBuilder() {
return invocationConfig_ == null
? com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig
.getDefaultInstance()
: invocationConfig_;
}
public static final int STATE_FIELD_NUMBER = 4;
private int state_ = 0;
/**
*
*
*
* Output only. This workflow invocation's current state.
*
*
*
* .google.cloud.dataform.v1alpha2.WorkflowInvocation.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 workflow invocation's current state.
*
*
*
* .google.cloud.dataform.v1alpha2.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State getState() {
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State result =
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State.forNumber(state_);
return result == null
? com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State.UNRECOGNIZED
: result;
}
public static final int INVOCATION_TIMING_FIELD_NUMBER = 5;
private com.google.type.Interval invocationTiming_;
/**
*
*
*
* Output only. This workflow invocation's timing details.
*
*
* .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 ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Output only. This workflow invocation's timing details.
*
*
* .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 workflow invocation's timing details.
*
*
* .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_;
}
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(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compilationResult_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, compilationResult_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getInvocationConfig());
}
if (state_
!= com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State.STATE_UNSPECIFIED
.getNumber()) {
output.writeEnum(4, state_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(5, getInvocationTiming());
}
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(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compilationResult_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, compilationResult_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInvocationConfig());
}
if (state_
!= com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State.STATE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInvocationTiming());
}
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.v1alpha2.WorkflowInvocation)) {
return super.equals(obj);
}
com.google.cloud.dataform.v1alpha2.WorkflowInvocation other =
(com.google.cloud.dataform.v1alpha2.WorkflowInvocation) obj;
if (!getName().equals(other.getName())) return false;
if (!getCompilationResult().equals(other.getCompilationResult())) return false;
if (hasInvocationConfig() != other.hasInvocationConfig()) return false;
if (hasInvocationConfig()) {
if (!getInvocationConfig().equals(other.getInvocationConfig())) return false;
}
if (state_ != other.state_) return false;
if (hasInvocationTiming() != other.hasInvocationTiming()) return false;
if (hasInvocationTiming()) {
if (!getInvocationTiming().equals(other.getInvocationTiming())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + COMPILATION_RESULT_FIELD_NUMBER;
hash = (53 * hash) + getCompilationResult().hashCode();
if (hasInvocationConfig()) {
hash = (37 * hash) + INVOCATION_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getInvocationConfig().hashCode();
}
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
if (hasInvocationTiming()) {
hash = (37 * hash) + INVOCATION_TIMING_FIELD_NUMBER;
hash = (53 * hash) + getInvocationTiming().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation 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.v1alpha2.WorkflowInvocation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation 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.v1alpha2.WorkflowInvocation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation 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.v1alpha2.WorkflowInvocation parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation 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.v1alpha2.WorkflowInvocation parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation 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.v1alpha2.WorkflowInvocation 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 invocation of a compilation result.
*
*
* Protobuf type {@code google.cloud.dataform.v1alpha2.WorkflowInvocation}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1alpha2.WorkflowInvocation)
com.google.cloud.dataform.v1alpha2.WorkflowInvocationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.class,
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.Builder.class);
}
// Construct using com.google.cloud.dataform.v1alpha2.WorkflowInvocation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getInvocationConfigFieldBuilder();
getInvocationTimingFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
compilationResult_ = "";
invocationConfig_ = null;
if (invocationConfigBuilder_ != null) {
invocationConfigBuilder_.dispose();
invocationConfigBuilder_ = null;
}
state_ = 0;
invocationTiming_ = null;
if (invocationTimingBuilder_ != null) {
invocationTimingBuilder_.dispose();
invocationTimingBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataform.v1alpha2.DataformProto
.internal_static_google_cloud_dataform_v1alpha2_WorkflowInvocation_descriptor;
}
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.WorkflowInvocation getDefaultInstanceForType() {
return com.google.cloud.dataform.v1alpha2.WorkflowInvocation.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.WorkflowInvocation build() {
com.google.cloud.dataform.v1alpha2.WorkflowInvocation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.WorkflowInvocation buildPartial() {
com.google.cloud.dataform.v1alpha2.WorkflowInvocation result =
new com.google.cloud.dataform.v1alpha2.WorkflowInvocation(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataform.v1alpha2.WorkflowInvocation result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.compilationResult_ = compilationResult_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.invocationConfig_ =
invocationConfigBuilder_ == null ? invocationConfig_ : invocationConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.invocationTiming_ =
invocationTimingBuilder_ == null ? invocationTiming_ : invocationTimingBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@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.v1alpha2.WorkflowInvocation) {
return mergeFrom((com.google.cloud.dataform.v1alpha2.WorkflowInvocation) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataform.v1alpha2.WorkflowInvocation other) {
if (other == com.google.cloud.dataform.v1alpha2.WorkflowInvocation.getDefaultInstance())
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getCompilationResult().isEmpty()) {
compilationResult_ = other.compilationResult_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasInvocationConfig()) {
mergeInvocationConfig(other.getInvocationConfig());
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (other.hasInvocationTiming()) {
mergeInvocationTiming(other.getInvocationTiming());
}
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:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
compilationResult_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(
getInvocationConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 32:
{
state_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42:
{
input.readMessage(
getInvocationTimingFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
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 name_ = "";
/**
*
*
*
* Output only. The workflow invocation's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. The workflow invocation's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. The workflow invocation's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. The workflow invocation's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Output only. The workflow invocation's name.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object compilationResult_ = "";
/**
*
*
*
* Immutable. The name of the compilation result to compile. Must be in the format
* `projects/*/locations/*/repositories/*/compilationResults/*`.
*
*
*
* string compilation_result = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The compilationResult.
*/
public java.lang.String getCompilationResult() {
java.lang.Object ref = compilationResult_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
compilationResult_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Immutable. The name of the compilation result to compile. Must be in the format
* `projects/*/locations/*/repositories/*/compilationResults/*`.
*
*
*
* string compilation_result = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for compilationResult.
*/
public com.google.protobuf.ByteString getCompilationResultBytes() {
java.lang.Object ref = compilationResult_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
compilationResult_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Immutable. The name of the compilation result to compile. Must be in the format
* `projects/*/locations/*/repositories/*/compilationResults/*`.
*
*
*
* string compilation_result = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @param value The compilationResult to set.
* @return This builder for chaining.
*/
public Builder setCompilationResult(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
compilationResult_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Immutable. The name of the compilation result to compile. Must be in the format
* `projects/*/locations/*/repositories/*/compilationResults/*`.
*
*
*
* string compilation_result = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return This builder for chaining.
*/
public Builder clearCompilationResult() {
compilationResult_ = getDefaultInstance().getCompilationResult();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Immutable. The name of the compilation result to compile. Must be in the format
* `projects/*/locations/*/repositories/*/compilationResults/*`.
*
*
*
* string compilation_result = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for compilationResult to set.
* @return This builder for chaining.
*/
public Builder setCompilationResultBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
compilationResult_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig
invocationConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig,
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.Builder,
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfigOrBuilder>
invocationConfigBuilder_;
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return Whether the invocationConfig field is set.
*/
public boolean hasInvocationConfig() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The invocationConfig.
*/
public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig
getInvocationConfig() {
if (invocationConfigBuilder_ == null) {
return invocationConfig_ == null
? com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig
.getDefaultInstance()
: invocationConfig_;
} else {
return invocationConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder setInvocationConfig(
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig value) {
if (invocationConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
invocationConfig_ = value;
} else {
invocationConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder setInvocationConfig(
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.Builder
builderForValue) {
if (invocationConfigBuilder_ == null) {
invocationConfig_ = builderForValue.build();
} else {
invocationConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder mergeInvocationConfig(
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig value) {
if (invocationConfigBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& invocationConfig_ != null
&& invocationConfig_
!= com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig
.getDefaultInstance()) {
getInvocationConfigBuilder().mergeFrom(value);
} else {
invocationConfig_ = value;
}
} else {
invocationConfigBuilder_.mergeFrom(value);
}
if (invocationConfig_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder clearInvocationConfig() {
bitField0_ = (bitField0_ & ~0x00000004);
invocationConfig_ = null;
if (invocationConfigBuilder_ != null) {
invocationConfigBuilder_.dispose();
invocationConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.Builder
getInvocationConfigBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getInvocationConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfigOrBuilder
getInvocationConfigOrBuilder() {
if (invocationConfigBuilder_ != null) {
return invocationConfigBuilder_.getMessageOrBuilder();
} else {
return invocationConfig_ == null
? com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig
.getDefaultInstance()
: invocationConfig_;
}
}
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig,
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.Builder,
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfigOrBuilder>
getInvocationConfigFieldBuilder() {
if (invocationConfigBuilder_ == null) {
invocationConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig,
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfig.Builder,
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.InvocationConfigOrBuilder>(
getInvocationConfig(), getParentForChildren(), isClean());
invocationConfig_ = null;
}
return invocationConfigBuilder_;
}
private int state_ = 0;
/**
*
*
*
* Output only. This workflow invocation's current state.
*
*
*
* .google.cloud.dataform.v1alpha2.WorkflowInvocation.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 workflow invocation's current state.
*
*
*
* .google.cloud.dataform.v1alpha2.WorkflowInvocation.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_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. This workflow invocation's current state.
*
*
*
* .google.cloud.dataform.v1alpha2.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State getState() {
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State result =
com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State.forNumber(state_);
return result == null
? com.google.cloud.dataform.v1alpha2.WorkflowInvocation.State.UNRECOGNIZED
: result;
}
/**
*
*
*
* Output only. This workflow invocation's current state.
*
*
*
* .google.cloud.dataform.v1alpha2.WorkflowInvocation.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.v1alpha2.WorkflowInvocation.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. This workflow invocation's current state.
*
*
*
* .google.cloud.dataform.v1alpha2.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000008);
state_ = 0;
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 workflow invocation's timing details.
*
*
*
* .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 workflow invocation's timing details.
*
*
*
* .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 workflow invocation's timing details.
*
*
*
* .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 workflow invocation's timing details.
*
*
*
* .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 workflow invocation's timing details.
*
*
*
* .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);
}
if (invocationTiming_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. This workflow invocation's timing details.
*
*
*
* .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 workflow invocation's timing details.
*
*
*
* .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 workflow invocation's timing details.
*
*
*
* .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 workflow invocation's timing details.
*
*
*
* .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_;
}
@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.v1alpha2.WorkflowInvocation)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataform.v1alpha2.WorkflowInvocation)
private static final com.google.cloud.dataform.v1alpha2.WorkflowInvocation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataform.v1alpha2.WorkflowInvocation();
}
public static com.google.cloud.dataform.v1alpha2.WorkflowInvocation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WorkflowInvocation 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.v1alpha2.WorkflowInvocation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}