com.google.cloud.dataform.v1beta1.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-v1beta1 Show documentation
Show all versions of proto-google-cloud-dataform-v1beta1 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/v1beta1/dataform.proto
// Protobuf Java Version: 3.25.2
package com.google.cloud.dataform.v1beta1;
/**
*
*
*
* Represents a single invocation of a compilation result.
*
*
* Protobuf type {@code google.cloud.dataform.v1beta1.WorkflowInvocation}
*/
public final class WorkflowInvocation extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.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_ = "";
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.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1beta1.WorkflowInvocation.class,
com.google.cloud.dataform.v1beta1.WorkflowInvocation.Builder.class);
}
/**
*
*
*
* Represents the current state of a workflow invocation.
*
*
* Protobuf enum {@code google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.WorkflowInvocation.State)
}
private int bitField0_;
private int compilationSourceCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object compilationSource_;
public enum CompilationSourceCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
COMPILATION_RESULT(2),
WORKFLOW_CONFIG(6),
COMPILATIONSOURCE_NOT_SET(0);
private final int value;
private CompilationSourceCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CompilationSourceCase valueOf(int value) {
return forNumber(value);
}
public static CompilationSourceCase forNumber(int value) {
switch (value) {
case 2:
return COMPILATION_RESULT;
case 6:
return WORKFLOW_CONFIG;
case 0:
return COMPILATIONSOURCE_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public CompilationSourceCase getCompilationSourceCase() {
return CompilationSourceCase.forNumber(compilationSourceCase_);
}
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;
/**
*
*
*
* Immutable. The name of the compilation result to use for this invocation.
* Must be in the format
* `projects/*/locations/*/repositories/*/compilationResults/*`.
*
*
*
* string compilation_result = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return Whether the compilationResult field is set.
*/
public boolean hasCompilationResult() {
return compilationSourceCase_ == 2;
}
/**
*
*
*
* Immutable. The name of the compilation result to use for this invocation.
* 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 = "";
if (compilationSourceCase_ == 2) {
ref = compilationSource_;
}
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();
if (compilationSourceCase_ == 2) {
compilationSource_ = s;
}
return s;
}
}
/**
*
*
*
* Immutable. The name of the compilation result to use for this invocation.
* 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 = "";
if (compilationSourceCase_ == 2) {
ref = compilationSource_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (compilationSourceCase_ == 2) {
compilationSource_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WORKFLOW_CONFIG_FIELD_NUMBER = 6;
/**
*
*
*
* Immutable. The name of the workflow config to invoke. Must be in the
* format `projects/*/locations/*/repositories/*/workflowConfigs/*`.
*
*
*
* string workflow_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return Whether the workflowConfig field is set.
*/
public boolean hasWorkflowConfig() {
return compilationSourceCase_ == 6;
}
/**
*
*
*
* Immutable. The name of the workflow config to invoke. Must be in the
* format `projects/*/locations/*/repositories/*/workflowConfigs/*`.
*
*
*
* string workflow_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The workflowConfig.
*/
public java.lang.String getWorkflowConfig() {
java.lang.Object ref = "";
if (compilationSourceCase_ == 6) {
ref = compilationSource_;
}
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();
if (compilationSourceCase_ == 6) {
compilationSource_ = s;
}
return s;
}
}
/**
*
*
*
* Immutable. The name of the workflow config to invoke. Must be in the
* format `projects/*/locations/*/repositories/*/workflowConfigs/*`.
*
*
*
* string workflow_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for workflowConfig.
*/
public com.google.protobuf.ByteString getWorkflowConfigBytes() {
java.lang.Object ref = "";
if (compilationSourceCase_ == 6) {
ref = compilationSource_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (compilationSourceCase_ == 6) {
compilationSource_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INVOCATION_CONFIG_FIELD_NUMBER = 3;
private com.google.cloud.dataform.v1beta1.InvocationConfig invocationConfig_;
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1beta1.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.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The invocationConfig.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.InvocationConfig getInvocationConfig() {
return invocationConfig_ == null
? com.google.cloud.dataform.v1beta1.InvocationConfig.getDefaultInstance()
: invocationConfig_;
}
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.InvocationConfigOrBuilder
getInvocationConfigOrBuilder() {
return invocationConfig_ == null
? com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.WorkflowInvocation.State getState() {
com.google.cloud.dataform.v1beta1.WorkflowInvocation.State result =
com.google.cloud.dataform.v1beta1.WorkflowInvocation.State.forNumber(state_);
return result == null
? com.google.cloud.dataform.v1beta1.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 (compilationSourceCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, compilationSource_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getInvocationConfig());
}
if (state_
!= com.google.cloud.dataform.v1beta1.WorkflowInvocation.State.STATE_UNSPECIFIED
.getNumber()) {
output.writeEnum(4, state_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(5, getInvocationTiming());
}
if (compilationSourceCase_ == 6) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, compilationSource_);
}
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 (compilationSourceCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, compilationSource_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInvocationConfig());
}
if (state_
!= com.google.cloud.dataform.v1beta1.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());
}
if (compilationSourceCase_ == 6) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, compilationSource_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dataform.v1beta1.WorkflowInvocation)) {
return super.equals(obj);
}
com.google.cloud.dataform.v1beta1.WorkflowInvocation other =
(com.google.cloud.dataform.v1beta1.WorkflowInvocation) obj;
if (!getName().equals(other.getName())) 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 (!getCompilationSourceCase().equals(other.getCompilationSourceCase())) return false;
switch (compilationSourceCase_) {
case 2:
if (!getCompilationResult().equals(other.getCompilationResult())) return false;
break;
case 6:
if (!getWorkflowConfig().equals(other.getWorkflowConfig())) return false;
break;
case 0:
default:
}
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();
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();
}
switch (compilationSourceCase_) {
case 2:
hash = (37 * hash) + COMPILATION_RESULT_FIELD_NUMBER;
hash = (53 * hash) + getCompilationResult().hashCode();
break;
case 6:
hash = (37 * hash) + WORKFLOW_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowConfig().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataform.v1beta1.WorkflowInvocation parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.WorkflowInvocation}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.WorkflowInvocation)
com.google.cloud.dataform.v1beta1.WorkflowInvocationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1beta1.WorkflowInvocation.class,
com.google.cloud.dataform.v1beta1.WorkflowInvocation.Builder.class);
}
// Construct using com.google.cloud.dataform.v1beta1.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_ = "";
invocationConfig_ = null;
if (invocationConfigBuilder_ != null) {
invocationConfigBuilder_.dispose();
invocationConfigBuilder_ = null;
}
state_ = 0;
invocationTiming_ = null;
if (invocationTimingBuilder_ != null) {
invocationTimingBuilder_.dispose();
invocationTimingBuilder_ = null;
}
compilationSourceCase_ = 0;
compilationSource_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.WorkflowInvocation getDefaultInstanceForType() {
return com.google.cloud.dataform.v1beta1.WorkflowInvocation.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.WorkflowInvocation build() {
com.google.cloud.dataform.v1beta1.WorkflowInvocation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.WorkflowInvocation buildPartial() {
com.google.cloud.dataform.v1beta1.WorkflowInvocation result =
new com.google.cloud.dataform.v1beta1.WorkflowInvocation(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataform.v1beta1.WorkflowInvocation result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.invocationConfig_ =
invocationConfigBuilder_ == null ? invocationConfig_ : invocationConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.invocationTiming_ =
invocationTimingBuilder_ == null ? invocationTiming_ : invocationTimingBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.cloud.dataform.v1beta1.WorkflowInvocation result) {
result.compilationSourceCase_ = compilationSourceCase_;
result.compilationSource_ = this.compilationSource_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataform.v1beta1.WorkflowInvocation) {
return mergeFrom((com.google.cloud.dataform.v1beta1.WorkflowInvocation) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataform.v1beta1.WorkflowInvocation other) {
if (other == com.google.cloud.dataform.v1beta1.WorkflowInvocation.getDefaultInstance())
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasInvocationConfig()) {
mergeInvocationConfig(other.getInvocationConfig());
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (other.hasInvocationTiming()) {
mergeInvocationTiming(other.getInvocationTiming());
}
switch (other.getCompilationSourceCase()) {
case COMPILATION_RESULT:
{
compilationSourceCase_ = 2;
compilationSource_ = other.compilationSource_;
onChanged();
break;
}
case WORKFLOW_CONFIG:
{
compilationSourceCase_ = 6;
compilationSource_ = other.compilationSource_;
onChanged();
break;
}
case COMPILATIONSOURCE_NOT_SET:
{
break;
}
}
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:
{
java.lang.String s = input.readStringRequireUtf8();
compilationSourceCase_ = 2;
compilationSource_ = s;
break;
} // case 18
case 26:
{
input.readMessage(
getInvocationConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 26
case 32:
{
state_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 32
case 42:
{
input.readMessage(
getInvocationTimingFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 42
case 50:
{
java.lang.String s = input.readStringRequireUtf8();
compilationSourceCase_ = 6;
compilationSource_ = s;
break;
} // case 50
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 compilationSourceCase_ = 0;
private java.lang.Object compilationSource_;
public CompilationSourceCase getCompilationSourceCase() {
return CompilationSourceCase.forNumber(compilationSourceCase_);
}
public Builder clearCompilationSource() {
compilationSourceCase_ = 0;
compilationSource_ = null;
onChanged();
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;
}
/**
*
*
*
* Immutable. The name of the compilation result to use for this invocation.
* Must be in the format
* `projects/*/locations/*/repositories/*/compilationResults/*`.
*
*
*
* string compilation_result = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return Whether the compilationResult field is set.
*/
@java.lang.Override
public boolean hasCompilationResult() {
return compilationSourceCase_ == 2;
}
/**
*
*
*
* Immutable. The name of the compilation result to use for this invocation.
* 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 = "";
if (compilationSourceCase_ == 2) {
ref = compilationSource_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (compilationSourceCase_ == 2) {
compilationSource_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Immutable. The name of the compilation result to use for this invocation.
* 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 = "";
if (compilationSourceCase_ == 2) {
ref = compilationSource_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (compilationSourceCase_ == 2) {
compilationSource_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Immutable. The name of the compilation result to use for this invocation.
* 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();
}
compilationSourceCase_ = 2;
compilationSource_ = value;
onChanged();
return this;
}
/**
*
*
*
* Immutable. The name of the compilation result to use for this invocation.
* 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() {
if (compilationSourceCase_ == 2) {
compilationSourceCase_ = 0;
compilationSource_ = null;
onChanged();
}
return this;
}
/**
*
*
*
* Immutable. The name of the compilation result to use for this invocation.
* 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);
compilationSourceCase_ = 2;
compilationSource_ = value;
onChanged();
return this;
}
/**
*
*
*
* Immutable. The name of the workflow config to invoke. Must be in the
* format `projects/*/locations/*/repositories/*/workflowConfigs/*`.
*
*
*
* string workflow_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return Whether the workflowConfig field is set.
*/
@java.lang.Override
public boolean hasWorkflowConfig() {
return compilationSourceCase_ == 6;
}
/**
*
*
*
* Immutable. The name of the workflow config to invoke. Must be in the
* format `projects/*/locations/*/repositories/*/workflowConfigs/*`.
*
*
*
* string workflow_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The workflowConfig.
*/
@java.lang.Override
public java.lang.String getWorkflowConfig() {
java.lang.Object ref = "";
if (compilationSourceCase_ == 6) {
ref = compilationSource_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (compilationSourceCase_ == 6) {
compilationSource_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Immutable. The name of the workflow config to invoke. Must be in the
* format `projects/*/locations/*/repositories/*/workflowConfigs/*`.
*
*
*
* string workflow_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for workflowConfig.
*/
@java.lang.Override
public com.google.protobuf.ByteString getWorkflowConfigBytes() {
java.lang.Object ref = "";
if (compilationSourceCase_ == 6) {
ref = compilationSource_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (compilationSourceCase_ == 6) {
compilationSource_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Immutable. The name of the workflow config to invoke. Must be in the
* format `projects/*/locations/*/repositories/*/workflowConfigs/*`.
*
*
*
* string workflow_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @param value The workflowConfig to set.
* @return This builder for chaining.
*/
public Builder setWorkflowConfig(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
compilationSourceCase_ = 6;
compilationSource_ = value;
onChanged();
return this;
}
/**
*
*
*
* Immutable. The name of the workflow config to invoke. Must be in the
* format `projects/*/locations/*/repositories/*/workflowConfigs/*`.
*
*
*
* string workflow_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return This builder for chaining.
*/
public Builder clearWorkflowConfig() {
if (compilationSourceCase_ == 6) {
compilationSourceCase_ = 0;
compilationSource_ = null;
onChanged();
}
return this;
}
/**
*
*
*
* Immutable. The name of the workflow config to invoke. Must be in the
* format `projects/*/locations/*/repositories/*/workflowConfigs/*`.
*
*
*
* string workflow_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for workflowConfig to set.
* @return This builder for chaining.
*/
public Builder setWorkflowConfigBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
compilationSourceCase_ = 6;
compilationSource_ = value;
onChanged();
return this;
}
private com.google.cloud.dataform.v1beta1.InvocationConfig invocationConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.InvocationConfig,
com.google.cloud.dataform.v1beta1.InvocationConfig.Builder,
com.google.cloud.dataform.v1beta1.InvocationConfigOrBuilder>
invocationConfigBuilder_;
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return Whether the invocationConfig field is set.
*/
public boolean hasInvocationConfig() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The invocationConfig.
*/
public com.google.cloud.dataform.v1beta1.InvocationConfig getInvocationConfig() {
if (invocationConfigBuilder_ == null) {
return invocationConfig_ == null
? com.google.cloud.dataform.v1beta1.InvocationConfig.getDefaultInstance()
: invocationConfig_;
} else {
return invocationConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder setInvocationConfig(com.google.cloud.dataform.v1beta1.InvocationConfig value) {
if (invocationConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
invocationConfig_ = value;
} else {
invocationConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder setInvocationConfig(
com.google.cloud.dataform.v1beta1.InvocationConfig.Builder builderForValue) {
if (invocationConfigBuilder_ == null) {
invocationConfig_ = builderForValue.build();
} else {
invocationConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder mergeInvocationConfig(com.google.cloud.dataform.v1beta1.InvocationConfig value) {
if (invocationConfigBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& invocationConfig_ != null
&& invocationConfig_
!= com.google.cloud.dataform.v1beta1.InvocationConfig.getDefaultInstance()) {
getInvocationConfigBuilder().mergeFrom(value);
} else {
invocationConfig_ = value;
}
} else {
invocationConfigBuilder_.mergeFrom(value);
}
if (invocationConfig_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public Builder clearInvocationConfig() {
bitField0_ = (bitField0_ & ~0x00000008);
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.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public com.google.cloud.dataform.v1beta1.InvocationConfig.Builder getInvocationConfigBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getInvocationConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
public com.google.cloud.dataform.v1beta1.InvocationConfigOrBuilder
getInvocationConfigOrBuilder() {
if (invocationConfigBuilder_ != null) {
return invocationConfigBuilder_.getMessageOrBuilder();
} else {
return invocationConfig_ == null
? com.google.cloud.dataform.v1beta1.InvocationConfig.getDefaultInstance()
: invocationConfig_;
}
}
/**
*
*
*
* Immutable. If left unset, a default InvocationConfig will be used.
*
*
*
* .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.InvocationConfig,
com.google.cloud.dataform.v1beta1.InvocationConfig.Builder,
com.google.cloud.dataform.v1beta1.InvocationConfigOrBuilder>
getInvocationConfigFieldBuilder() {
if (invocationConfigBuilder_ == null) {
invocationConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.InvocationConfig,
com.google.cloud.dataform.v1beta1.InvocationConfig.Builder,
com.google.cloud.dataform.v1beta1.InvocationConfigOrBuilder>(
getInvocationConfig(), getParentForChildren(), isClean());
invocationConfig_ = null;
}
return invocationConfigBuilder_;
}
private int state_ = 0;
/**
*
*
*
* Output only. This workflow invocation's current state.
*
*
*
* .google.cloud.dataform.v1beta1.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.v1beta1.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_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Output only. This workflow invocation's current state.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.WorkflowInvocation.State getState() {
com.google.cloud.dataform.v1beta1.WorkflowInvocation.State result =
com.google.cloud.dataform.v1beta1.WorkflowInvocation.State.forNumber(state_);
return result == null
? com.google.cloud.dataform.v1beta1.WorkflowInvocation.State.UNRECOGNIZED
: result;
}
/**
*
*
*
* Output only. This workflow invocation's current state.
*
*
*
* .google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. This workflow invocation's current state.
*
*
*
* .google.cloud.dataform.v1beta1.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000010);
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_ & 0x00000020) != 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_ |= 0x00000020;
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_ |= 0x00000020;
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_ & 0x00000020) != 0)
&& invocationTiming_ != null
&& invocationTiming_ != com.google.type.Interval.getDefaultInstance()) {
getInvocationTimingBuilder().mergeFrom(value);
} else {
invocationTiming_ = value;
}
} else {
invocationTimingBuilder_.mergeFrom(value);
}
if (invocationTiming_ != null) {
bitField0_ |= 0x00000020;
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_ & ~0x00000020);
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_ |= 0x00000020;
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.v1beta1.WorkflowInvocation)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.WorkflowInvocation)
private static final com.google.cloud.dataform.v1beta1.WorkflowInvocation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.WorkflowInvocation();
}
public static com.google.cloud.dataform.v1beta1.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.v1beta1.WorkflowInvocation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}