com.google.cloud.dataform.v1beta1.CompilationResultAction 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.4
package com.google.cloud.dataform.v1beta1;
/**
*
*
*
* Represents a single Dataform action in a compilation result.
*
*
* Protobuf type {@code google.cloud.dataform.v1beta1.CompilationResultAction}
*/
public final class CompilationResultAction extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CompilationResultAction)
CompilationResultActionOrBuilder {
private static final long serialVersionUID = 0L;
// Use CompilationResultAction.newBuilder() to construct.
private CompilationResultAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CompilationResultAction() {
filePath_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CompilationResultAction();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1beta1.CompilationResultAction.class,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Builder.class);
}
public interface RelationOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CompilationResultAction.Relation)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
java.util.List getDependencyTargetsList();
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
com.google.cloud.dataform.v1beta1.Target getDependencyTargets(int index);
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
int getDependencyTargetsCount();
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
java.util.List extends com.google.cloud.dataform.v1beta1.TargetOrBuilder>
getDependencyTargetsOrBuilderList();
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
com.google.cloud.dataform.v1beta1.TargetOrBuilder getDependencyTargetsOrBuilder(int index);
/**
*
*
*
* Whether this action is disabled (i.e. should not be run).
*
*
* bool disabled = 2;
*
* @return The disabled.
*/
boolean getDisabled();
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return A list containing the tags.
*/
java.util.List getTagsList();
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return The count of tags.
*/
int getTagsCount();
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index of the element to return.
* @return The tags at the given index.
*/
java.lang.String getTags(int index);
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
com.google.protobuf.ByteString getTagsBytes(int index);
/**
*
*
*
* Descriptor for the relation and its columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4;
*
* @return Whether the relationDescriptor field is set.
*/
boolean hasRelationDescriptor();
/**
*
*
*
* Descriptor for the relation and its columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4;
*
* @return The relationDescriptor.
*/
com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor();
/**
*
*
*
* Descriptor for the relation and its columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4;
*/
com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder getRelationDescriptorOrBuilder();
/**
*
*
*
* The type of this relation.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5;
*
*
* @return The enum numeric value on the wire for relationType.
*/
int getRelationTypeValue();
/**
*
*
*
* The type of this relation.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5;
*
*
* @return The relationType.
*/
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType
getRelationType();
/**
*
*
*
* The SELECT query which returns rows which this relation should contain.
*
*
* string select_query = 6;
*
* @return The selectQuery.
*/
java.lang.String getSelectQuery();
/**
*
*
*
* The SELECT query which returns rows which this relation should contain.
*
*
* string select_query = 6;
*
* @return The bytes for selectQuery.
*/
com.google.protobuf.ByteString getSelectQueryBytes();
/**
*
*
*
* SQL statements to be executed before creating the relation.
*
*
* repeated string pre_operations = 7;
*
* @return A list containing the preOperations.
*/
java.util.List getPreOperationsList();
/**
*
*
*
* SQL statements to be executed before creating the relation.
*
*
* repeated string pre_operations = 7;
*
* @return The count of preOperations.
*/
int getPreOperationsCount();
/**
*
*
*
* SQL statements to be executed before creating the relation.
*
*
* repeated string pre_operations = 7;
*
* @param index The index of the element to return.
* @return The preOperations at the given index.
*/
java.lang.String getPreOperations(int index);
/**
*
*
*
* SQL statements to be executed before creating the relation.
*
*
* repeated string pre_operations = 7;
*
* @param index The index of the value to return.
* @return The bytes of the preOperations at the given index.
*/
com.google.protobuf.ByteString getPreOperationsBytes(int index);
/**
*
*
*
* SQL statements to be executed after creating the relation.
*
*
* repeated string post_operations = 8;
*
* @return A list containing the postOperations.
*/
java.util.List getPostOperationsList();
/**
*
*
*
* SQL statements to be executed after creating the relation.
*
*
* repeated string post_operations = 8;
*
* @return The count of postOperations.
*/
int getPostOperationsCount();
/**
*
*
*
* SQL statements to be executed after creating the relation.
*
*
* repeated string post_operations = 8;
*
* @param index The index of the element to return.
* @return The postOperations at the given index.
*/
java.lang.String getPostOperations(int index);
/**
*
*
*
* SQL statements to be executed after creating the relation.
*
*
* repeated string post_operations = 8;
*
* @param index The index of the value to return.
* @return The bytes of the postOperations at the given index.
*/
com.google.protobuf.ByteString getPostOperationsBytes(int index);
/**
*
*
*
* Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
* `relation_type` is `INCREMENTAL_TABLE`.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9;
*
*
* @return Whether the incrementalTableConfig field is set.
*/
boolean hasIncrementalTableConfig();
/**
*
*
*
* Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
* `relation_type` is `INCREMENTAL_TABLE`.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9;
*
*
* @return The incrementalTableConfig.
*/
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig
getIncrementalTableConfig();
/**
*
*
*
* Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
* `relation_type` is `INCREMENTAL_TABLE`.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9;
*
*/
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfigOrBuilder
getIncrementalTableConfigOrBuilder();
/**
*
*
*
* The SQL expression used to partition the relation.
*
*
* string partition_expression = 10;
*
* @return The partitionExpression.
*/
java.lang.String getPartitionExpression();
/**
*
*
*
* The SQL expression used to partition the relation.
*
*
* string partition_expression = 10;
*
* @return The bytes for partitionExpression.
*/
com.google.protobuf.ByteString getPartitionExpressionBytes();
/**
*
*
*
* A list of columns or SQL expressions used to cluster the table.
*
*
* repeated string cluster_expressions = 11;
*
* @return A list containing the clusterExpressions.
*/
java.util.List getClusterExpressionsList();
/**
*
*
*
* A list of columns or SQL expressions used to cluster the table.
*
*
* repeated string cluster_expressions = 11;
*
* @return The count of clusterExpressions.
*/
int getClusterExpressionsCount();
/**
*
*
*
* A list of columns or SQL expressions used to cluster the table.
*
*
* repeated string cluster_expressions = 11;
*
* @param index The index of the element to return.
* @return The clusterExpressions at the given index.
*/
java.lang.String getClusterExpressions(int index);
/**
*
*
*
* A list of columns or SQL expressions used to cluster the table.
*
*
* repeated string cluster_expressions = 11;
*
* @param index The index of the value to return.
* @return The bytes of the clusterExpressions at the given index.
*/
com.google.protobuf.ByteString getClusterExpressionsBytes(int index);
/**
*
*
*
* Sets the partition expiration in days.
*
*
* int32 partition_expiration_days = 12;
*
* @return The partitionExpirationDays.
*/
int getPartitionExpirationDays();
/**
*
*
*
* Specifies whether queries on this table must include a predicate filter
* that filters on the partitioning column.
*
*
* bool require_partition_filter = 13;
*
* @return The requirePartitionFilter.
*/
boolean getRequirePartitionFilter();
/**
*
*
*
* Additional options that will be provided as key/value pairs into the
* options clause of a create table/view statement. See
* https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
* for more information on which options are supported.
*
*
* map<string, string> additional_options = 14;
*/
int getAdditionalOptionsCount();
/**
*
*
*
* Additional options that will be provided as key/value pairs into the
* options clause of a create table/view statement. See
* https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
* for more information on which options are supported.
*
*
* map<string, string> additional_options = 14;
*/
boolean containsAdditionalOptions(java.lang.String key);
/** Use {@link #getAdditionalOptionsMap()} instead. */
@java.lang.Deprecated
java.util.Map getAdditionalOptions();
/**
*
*
*
* Additional options that will be provided as key/value pairs into the
* options clause of a create table/view statement. See
* https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
* for more information on which options are supported.
*
*
* map<string, string> additional_options = 14;
*/
java.util.Map getAdditionalOptionsMap();
/**
*
*
*
* Additional options that will be provided as key/value pairs into the
* options clause of a create table/view statement. See
* https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
* for more information on which options are supported.
*
*
* map<string, string> additional_options = 14;
*/
/* nullable */
java.lang.String getAdditionalOptionsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
*
*
*
* Additional options that will be provided as key/value pairs into the
* options clause of a create table/view statement. See
* https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
* for more information on which options are supported.
*
*
* map<string, string> additional_options = 14;
*/
java.lang.String getAdditionalOptionsOrThrow(java.lang.String key);
}
/**
*
*
*
* Represents a database relation.
*
*
* Protobuf type {@code google.cloud.dataform.v1beta1.CompilationResultAction.Relation}
*/
public static final class Relation extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CompilationResultAction.Relation)
RelationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Relation.newBuilder() to construct.
private Relation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Relation() {
dependencyTargets_ = java.util.Collections.emptyList();
tags_ = com.google.protobuf.LazyStringArrayList.emptyList();
relationType_ = 0;
selectQuery_ = "";
preOperations_ = com.google.protobuf.LazyStringArrayList.emptyList();
postOperations_ = com.google.protobuf.LazyStringArrayList.emptyList();
partitionExpression_ = "";
clusterExpressions_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Relation();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 14:
return internalGetAdditionalOptions();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.class,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.Builder.class);
}
/**
*
*
*
* Indicates the type of this relation.
*
*
* Protobuf enum {@code
* google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType}
*/
public enum RelationType implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* Default value. This value is unused.
*
*
* RELATION_TYPE_UNSPECIFIED = 0;
*/
RELATION_TYPE_UNSPECIFIED(0),
/**
*
*
*
* The relation is a table.
*
*
* TABLE = 1;
*/
TABLE(1),
/**
*
*
*
* The relation is a view.
*
*
* VIEW = 2;
*/
VIEW(2),
/**
*
*
*
* The relation is an incrementalized table.
*
*
* INCREMENTAL_TABLE = 3;
*/
INCREMENTAL_TABLE(3),
/**
*
*
*
* The relation is a materialized view.
*
*
* MATERIALIZED_VIEW = 4;
*/
MATERIALIZED_VIEW(4),
UNRECOGNIZED(-1),
;
/**
*
*
*
* Default value. This value is unused.
*
*
* RELATION_TYPE_UNSPECIFIED = 0;
*/
public static final int RELATION_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* The relation is a table.
*
*
* TABLE = 1;
*/
public static final int TABLE_VALUE = 1;
/**
*
*
*
* The relation is a view.
*
*
* VIEW = 2;
*/
public static final int VIEW_VALUE = 2;
/**
*
*
*
* The relation is an incrementalized table.
*
*
* INCREMENTAL_TABLE = 3;
*/
public static final int INCREMENTAL_TABLE_VALUE = 3;
/**
*
*
*
* The relation is a materialized view.
*
*
* MATERIALIZED_VIEW = 4;
*/
public static final int MATERIALIZED_VIEW_VALUE = 4;
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 RelationType 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 RelationType forNumber(int value) {
switch (value) {
case 0:
return RELATION_TYPE_UNSPECIFIED;
case 1:
return TABLE;
case 2:
return VIEW;
case 3:
return INCREMENTAL_TABLE;
case 4:
return MATERIALIZED_VIEW;
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 RelationType findValueByNumber(int number) {
return RelationType.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.CompilationResultAction.Relation.getDescriptor()
.getEnumTypes()
.get(0);
}
private static final RelationType[] VALUES = values();
public static RelationType 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 RelationType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType)
}
public interface IncrementalTableConfigOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The SELECT query which returns rows which should be inserted into the
* relation if it already exists and is not being refreshed.
*
*
* string incremental_select_query = 1;
*
* @return The incrementalSelectQuery.
*/
java.lang.String getIncrementalSelectQuery();
/**
*
*
*
* The SELECT query which returns rows which should be inserted into the
* relation if it already exists and is not being refreshed.
*
*
* string incremental_select_query = 1;
*
* @return The bytes for incrementalSelectQuery.
*/
com.google.protobuf.ByteString getIncrementalSelectQueryBytes();
/**
*
*
*
* Whether this table should be protected from being refreshed.
*
*
* bool refresh_disabled = 2;
*
* @return The refreshDisabled.
*/
boolean getRefreshDisabled();
/**
*
*
*
* A set of columns or SQL expressions used to define row uniqueness.
* If any duplicates are discovered (as defined by `unique_key_parts`),
* only the newly selected rows (as defined by `incremental_select_query`)
* will be included in the relation.
*
*
* repeated string unique_key_parts = 3;
*
* @return A list containing the uniqueKeyParts.
*/
java.util.List getUniqueKeyPartsList();
/**
*
*
*
* A set of columns or SQL expressions used to define row uniqueness.
* If any duplicates are discovered (as defined by `unique_key_parts`),
* only the newly selected rows (as defined by `incremental_select_query`)
* will be included in the relation.
*
*
* repeated string unique_key_parts = 3;
*
* @return The count of uniqueKeyParts.
*/
int getUniqueKeyPartsCount();
/**
*
*
*
* A set of columns or SQL expressions used to define row uniqueness.
* If any duplicates are discovered (as defined by `unique_key_parts`),
* only the newly selected rows (as defined by `incremental_select_query`)
* will be included in the relation.
*
*
* repeated string unique_key_parts = 3;
*
* @param index The index of the element to return.
* @return The uniqueKeyParts at the given index.
*/
java.lang.String getUniqueKeyParts(int index);
/**
*
*
*
* A set of columns or SQL expressions used to define row uniqueness.
* If any duplicates are discovered (as defined by `unique_key_parts`),
* only the newly selected rows (as defined by `incremental_select_query`)
* will be included in the relation.
*
*
* repeated string unique_key_parts = 3;
*
* @param index The index of the value to return.
* @return The bytes of the uniqueKeyParts at the given index.
*/
com.google.protobuf.ByteString getUniqueKeyPartsBytes(int index);
/**
*
*
*
* A SQL expression conditional used to limit the set of existing rows
* considered for a merge operation (see `unique_key_parts` for more
* information).
*
*
* string update_partition_filter = 4;
*
* @return The updatePartitionFilter.
*/
java.lang.String getUpdatePartitionFilter();
/**
*
*
*
* A SQL expression conditional used to limit the set of existing rows
* considered for a merge operation (see `unique_key_parts` for more
* information).
*
*
* string update_partition_filter = 4;
*
* @return The bytes for updatePartitionFilter.
*/
com.google.protobuf.ByteString getUpdatePartitionFilterBytes();
/**
*
*
*
* SQL statements to be executed before inserting new rows into the
* relation.
*
*
* repeated string incremental_pre_operations = 5;
*
* @return A list containing the incrementalPreOperations.
*/
java.util.List getIncrementalPreOperationsList();
/**
*
*
*
* SQL statements to be executed before inserting new rows into the
* relation.
*
*
* repeated string incremental_pre_operations = 5;
*
* @return The count of incrementalPreOperations.
*/
int getIncrementalPreOperationsCount();
/**
*
*
*
* SQL statements to be executed before inserting new rows into the
* relation.
*
*
* repeated string incremental_pre_operations = 5;
*
* @param index The index of the element to return.
* @return The incrementalPreOperations at the given index.
*/
java.lang.String getIncrementalPreOperations(int index);
/**
*
*
*
* SQL statements to be executed before inserting new rows into the
* relation.
*
*
* repeated string incremental_pre_operations = 5;
*
* @param index The index of the value to return.
* @return The bytes of the incrementalPreOperations at the given index.
*/
com.google.protobuf.ByteString getIncrementalPreOperationsBytes(int index);
/**
*
*
*
* SQL statements to be executed after inserting new rows into the
* relation.
*
*
* repeated string incremental_post_operations = 6;
*
* @return A list containing the incrementalPostOperations.
*/
java.util.List getIncrementalPostOperationsList();
/**
*
*
*
* SQL statements to be executed after inserting new rows into the
* relation.
*
*
* repeated string incremental_post_operations = 6;
*
* @return The count of incrementalPostOperations.
*/
int getIncrementalPostOperationsCount();
/**
*
*
*
* SQL statements to be executed after inserting new rows into the
* relation.
*
*
* repeated string incremental_post_operations = 6;
*
* @param index The index of the element to return.
* @return The incrementalPostOperations at the given index.
*/
java.lang.String getIncrementalPostOperations(int index);
/**
*
*
*
* SQL statements to be executed after inserting new rows into the
* relation.
*
*
* repeated string incremental_post_operations = 6;
*
* @param index The index of the value to return.
* @return The bytes of the incrementalPostOperations at the given index.
*/
com.google.protobuf.ByteString getIncrementalPostOperationsBytes(int index);
}
/**
*
*
*
* Contains settings for relations of type `INCREMENTAL_TABLE`.
*
*
* Protobuf type {@code
* google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig}
*/
public static final class IncrementalTableConfig extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig)
IncrementalTableConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use IncrementalTableConfig.newBuilder() to construct.
private IncrementalTableConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IncrementalTableConfig() {
incrementalSelectQuery_ = "";
uniqueKeyParts_ = com.google.protobuf.LazyStringArrayList.emptyList();
updatePartitionFilter_ = "";
incrementalPreOperations_ = com.google.protobuf.LazyStringArrayList.emptyList();
incrementalPostOperations_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new IncrementalTableConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_IncrementalTableConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_IncrementalTableConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig.class,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig.Builder.class);
}
public static final int INCREMENTAL_SELECT_QUERY_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object incrementalSelectQuery_ = "";
/**
*
*
*
* The SELECT query which returns rows which should be inserted into the
* relation if it already exists and is not being refreshed.
*
*
* string incremental_select_query = 1;
*
* @return The incrementalSelectQuery.
*/
@java.lang.Override
public java.lang.String getIncrementalSelectQuery() {
java.lang.Object ref = incrementalSelectQuery_;
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();
incrementalSelectQuery_ = s;
return s;
}
}
/**
*
*
*
* The SELECT query which returns rows which should be inserted into the
* relation if it already exists and is not being refreshed.
*
*
* string incremental_select_query = 1;
*
* @return The bytes for incrementalSelectQuery.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIncrementalSelectQueryBytes() {
java.lang.Object ref = incrementalSelectQuery_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
incrementalSelectQuery_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REFRESH_DISABLED_FIELD_NUMBER = 2;
private boolean refreshDisabled_ = false;
/**
*
*
*
* Whether this table should be protected from being refreshed.
*
*
* bool refresh_disabled = 2;
*
* @return The refreshDisabled.
*/
@java.lang.Override
public boolean getRefreshDisabled() {
return refreshDisabled_;
}
public static final int UNIQUE_KEY_PARTS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList uniqueKeyParts_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* A set of columns or SQL expressions used to define row uniqueness.
* If any duplicates are discovered (as defined by `unique_key_parts`),
* only the newly selected rows (as defined by `incremental_select_query`)
* will be included in the relation.
*
*
* repeated string unique_key_parts = 3;
*
* @return A list containing the uniqueKeyParts.
*/
public com.google.protobuf.ProtocolStringList getUniqueKeyPartsList() {
return uniqueKeyParts_;
}
/**
*
*
*
* A set of columns or SQL expressions used to define row uniqueness.
* If any duplicates are discovered (as defined by `unique_key_parts`),
* only the newly selected rows (as defined by `incremental_select_query`)
* will be included in the relation.
*
*
* repeated string unique_key_parts = 3;
*
* @return The count of uniqueKeyParts.
*/
public int getUniqueKeyPartsCount() {
return uniqueKeyParts_.size();
}
/**
*
*
*
* A set of columns or SQL expressions used to define row uniqueness.
* If any duplicates are discovered (as defined by `unique_key_parts`),
* only the newly selected rows (as defined by `incremental_select_query`)
* will be included in the relation.
*
*
* repeated string unique_key_parts = 3;
*
* @param index The index of the element to return.
* @return The uniqueKeyParts at the given index.
*/
public java.lang.String getUniqueKeyParts(int index) {
return uniqueKeyParts_.get(index);
}
/**
*
*
*
* A set of columns or SQL expressions used to define row uniqueness.
* If any duplicates are discovered (as defined by `unique_key_parts`),
* only the newly selected rows (as defined by `incremental_select_query`)
* will be included in the relation.
*
*
* repeated string unique_key_parts = 3;
*
* @param index The index of the value to return.
* @return The bytes of the uniqueKeyParts at the given index.
*/
public com.google.protobuf.ByteString getUniqueKeyPartsBytes(int index) {
return uniqueKeyParts_.getByteString(index);
}
public static final int UPDATE_PARTITION_FILTER_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object updatePartitionFilter_ = "";
/**
*
*
*
* A SQL expression conditional used to limit the set of existing rows
* considered for a merge operation (see `unique_key_parts` for more
* information).
*
*
* string update_partition_filter = 4;
*
* @return The updatePartitionFilter.
*/
@java.lang.Override
public java.lang.String getUpdatePartitionFilter() {
java.lang.Object ref = updatePartitionFilter_;
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();
updatePartitionFilter_ = s;
return s;
}
}
/**
*
*
*
* A SQL expression conditional used to limit the set of existing rows
* considered for a merge operation (see `unique_key_parts` for more
* information).
*
*
* string update_partition_filter = 4;
*
* @return The bytes for updatePartitionFilter.
*/
@java.lang.Override
public com.google.protobuf.ByteString getUpdatePartitionFilterBytes() {
java.lang.Object ref = updatePartitionFilter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
updatePartitionFilter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INCREMENTAL_PRE_OPERATIONS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList incrementalPreOperations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* SQL statements to be executed before inserting new rows into the
* relation.
*
*
* repeated string incremental_pre_operations = 5;
*
* @return A list containing the incrementalPreOperations.
*/
public com.google.protobuf.ProtocolStringList getIncrementalPreOperationsList() {
return incrementalPreOperations_;
}
/**
*
*
*
* SQL statements to be executed before inserting new rows into the
* relation.
*
*
* repeated string incremental_pre_operations = 5;
*
* @return The count of incrementalPreOperations.
*/
public int getIncrementalPreOperationsCount() {
return incrementalPreOperations_.size();
}
/**
*
*
*
* SQL statements to be executed before inserting new rows into the
* relation.
*
*
* repeated string incremental_pre_operations = 5;
*
* @param index The index of the element to return.
* @return The incrementalPreOperations at the given index.
*/
public java.lang.String getIncrementalPreOperations(int index) {
return incrementalPreOperations_.get(index);
}
/**
*
*
*
* SQL statements to be executed before inserting new rows into the
* relation.
*
*
* repeated string incremental_pre_operations = 5;
*
* @param index The index of the value to return.
* @return The bytes of the incrementalPreOperations at the given index.
*/
public com.google.protobuf.ByteString getIncrementalPreOperationsBytes(int index) {
return incrementalPreOperations_.getByteString(index);
}
public static final int INCREMENTAL_POST_OPERATIONS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList incrementalPostOperations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* SQL statements to be executed after inserting new rows into the
* relation.
*
*
* repeated string incremental_post_operations = 6;
*
* @return A list containing the incrementalPostOperations.
*/
public com.google.protobuf.ProtocolStringList getIncrementalPostOperationsList() {
return incrementalPostOperations_;
}
/**
*
*
*
* SQL statements to be executed after inserting new rows into the
* relation.
*
*
* repeated string incremental_post_operations = 6;
*
* @return The count of incrementalPostOperations.
*/
public int getIncrementalPostOperationsCount() {
return incrementalPostOperations_.size();
}
/**
*
*
*
* SQL statements to be executed after inserting new rows into the
* relation.
*
*
* repeated string incremental_post_operations = 6;
*
* @param index The index of the element to return.
* @return The incrementalPostOperations at the given index.
*/
public java.lang.String getIncrementalPostOperations(int index) {
return incrementalPostOperations_.get(index);
}
/**
*
*
*
* SQL statements to be executed after inserting new rows into the
* relation.
*
*
* repeated string incremental_post_operations = 6;
*
* @param index The index of the value to return.
* @return The bytes of the incrementalPostOperations at the given index.
*/
public com.google.protobuf.ByteString getIncrementalPostOperationsBytes(int index) {
return incrementalPostOperations_.getByteString(index);
}
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(incrementalSelectQuery_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, incrementalSelectQuery_);
}
if (refreshDisabled_ != false) {
output.writeBool(2, refreshDisabled_);
}
for (int i = 0; i < uniqueKeyParts_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uniqueKeyParts_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(updatePartitionFilter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, updatePartitionFilter_);
}
for (int i = 0; i < incrementalPreOperations_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(
output, 5, incrementalPreOperations_.getRaw(i));
}
for (int i = 0; i < incrementalPostOperations_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(
output, 6, incrementalPostOperations_.getRaw(i));
}
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(incrementalSelectQuery_)) {
size +=
com.google.protobuf.GeneratedMessageV3.computeStringSize(1, incrementalSelectQuery_);
}
if (refreshDisabled_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, refreshDisabled_);
}
{
int dataSize = 0;
for (int i = 0; i < uniqueKeyParts_.size(); i++) {
dataSize += computeStringSizeNoTag(uniqueKeyParts_.getRaw(i));
}
size += dataSize;
size += 1 * getUniqueKeyPartsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(updatePartitionFilter_)) {
size +=
com.google.protobuf.GeneratedMessageV3.computeStringSize(4, updatePartitionFilter_);
}
{
int dataSize = 0;
for (int i = 0; i < incrementalPreOperations_.size(); i++) {
dataSize += computeStringSizeNoTag(incrementalPreOperations_.getRaw(i));
}
size += dataSize;
size += 1 * getIncrementalPreOperationsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < incrementalPostOperations_.size(); i++) {
dataSize += computeStringSizeNoTag(incrementalPostOperations_.getRaw(i));
}
size += dataSize;
size += 1 * getIncrementalPostOperationsList().size();
}
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.CompilationResultAction.Relation
.IncrementalTableConfig)) {
return super.equals(obj);
}
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig
other =
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig)
obj;
if (!getIncrementalSelectQuery().equals(other.getIncrementalSelectQuery())) return false;
if (getRefreshDisabled() != other.getRefreshDisabled()) return false;
if (!getUniqueKeyPartsList().equals(other.getUniqueKeyPartsList())) return false;
if (!getUpdatePartitionFilter().equals(other.getUpdatePartitionFilter())) return false;
if (!getIncrementalPreOperationsList().equals(other.getIncrementalPreOperationsList()))
return false;
if (!getIncrementalPostOperationsList().equals(other.getIncrementalPostOperationsList()))
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) + INCREMENTAL_SELECT_QUERY_FIELD_NUMBER;
hash = (53 * hash) + getIncrementalSelectQuery().hashCode();
hash = (37 * hash) + REFRESH_DISABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRefreshDisabled());
if (getUniqueKeyPartsCount() > 0) {
hash = (37 * hash) + UNIQUE_KEY_PARTS_FIELD_NUMBER;
hash = (53 * hash) + getUniqueKeyPartsList().hashCode();
}
hash = (37 * hash) + UPDATE_PARTITION_FILTER_FIELD_NUMBER;
hash = (53 * hash) + getUpdatePartitionFilter().hashCode();
if (getIncrementalPreOperationsCount() > 0) {
hash = (37 * hash) + INCREMENTAL_PRE_OPERATIONS_FIELD_NUMBER;
hash = (53 * hash) + getIncrementalPreOperationsList().hashCode();
}
if (getIncrementalPostOperationsCount() > 0) {
hash = (37 * hash) + INCREMENTAL_POST_OPERATIONS_FIELD_NUMBER;
hash = (53 * hash) + getIncrementalPostOperationsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig
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.CompilationResultAction.Relation
.IncrementalTableConfig
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig
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.CompilationResultAction.Relation
.IncrementalTableConfig
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig
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.CompilationResultAction.Relation
.IncrementalTableConfig
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig
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.CompilationResultAction.Relation
.IncrementalTableConfig
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig
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.CompilationResultAction.Relation
.IncrementalTableConfig
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.CompilationResultAction.Relation
.IncrementalTableConfig
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.CompilationResultAction.Relation.IncrementalTableConfig
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;
}
/**
*
*
*
* Contains settings for relations of type `INCREMENTAL_TABLE`.
*
*
* Protobuf type {@code
* google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig)
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_IncrementalTableConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_IncrementalTableConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig.class,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig.Builder.class);
}
// Construct using
// com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
incrementalSelectQuery_ = "";
refreshDisabled_ = false;
uniqueKeyParts_ = com.google.protobuf.LazyStringArrayList.emptyList();
updatePartitionFilter_ = "";
incrementalPreOperations_ = com.google.protobuf.LazyStringArrayList.emptyList();
incrementalPostOperations_ = com.google.protobuf.LazyStringArrayList.emptyList();
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_CompilationResultAction_Relation_IncrementalTableConfig_descriptor;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig
getDefaultInstanceForType() {
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig
build() {
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig
result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig
buildPartial() {
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig
result =
new com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig
result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.incrementalSelectQuery_ = incrementalSelectQuery_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.refreshDisabled_ = refreshDisabled_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
uniqueKeyParts_.makeImmutable();
result.uniqueKeyParts_ = uniqueKeyParts_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.updatePartitionFilter_ = updatePartitionFilter_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
incrementalPreOperations_.makeImmutable();
result.incrementalPreOperations_ = incrementalPreOperations_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
incrementalPostOperations_.makeImmutable();
result.incrementalPostOperations_ = incrementalPostOperations_;
}
}
@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.CompilationResultAction.Relation
.IncrementalTableConfig) {
return mergeFrom(
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig
other) {
if (other
== com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig.getDefaultInstance()) return this;
if (!other.getIncrementalSelectQuery().isEmpty()) {
incrementalSelectQuery_ = other.incrementalSelectQuery_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getRefreshDisabled() != false) {
setRefreshDisabled(other.getRefreshDisabled());
}
if (!other.uniqueKeyParts_.isEmpty()) {
if (uniqueKeyParts_.isEmpty()) {
uniqueKeyParts_ = other.uniqueKeyParts_;
bitField0_ |= 0x00000004;
} else {
ensureUniqueKeyPartsIsMutable();
uniqueKeyParts_.addAll(other.uniqueKeyParts_);
}
onChanged();
}
if (!other.getUpdatePartitionFilter().isEmpty()) {
updatePartitionFilter_ = other.updatePartitionFilter_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.incrementalPreOperations_.isEmpty()) {
if (incrementalPreOperations_.isEmpty()) {
incrementalPreOperations_ = other.incrementalPreOperations_;
bitField0_ |= 0x00000010;
} else {
ensureIncrementalPreOperationsIsMutable();
incrementalPreOperations_.addAll(other.incrementalPreOperations_);
}
onChanged();
}
if (!other.incrementalPostOperations_.isEmpty()) {
if (incrementalPostOperations_.isEmpty()) {
incrementalPostOperations_ = other.incrementalPostOperations_;
bitField0_ |= 0x00000020;
} else {
ensureIncrementalPostOperationsIsMutable();
incrementalPostOperations_.addAll(other.incrementalPostOperations_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
incrementalSelectQuery_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
refreshDisabled_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
java.lang.String s = input.readStringRequireUtf8();
ensureUniqueKeyPartsIsMutable();
uniqueKeyParts_.add(s);
break;
} // case 26
case 34:
{
updatePartitionFilter_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
{
java.lang.String s = input.readStringRequireUtf8();
ensureIncrementalPreOperationsIsMutable();
incrementalPreOperations_.add(s);
break;
} // case 42
case 50:
{
java.lang.String s = input.readStringRequireUtf8();
ensureIncrementalPostOperationsIsMutable();
incrementalPostOperations_.add(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 bitField0_;
private java.lang.Object incrementalSelectQuery_ = "";
/**
*
*
*
* The SELECT query which returns rows which should be inserted into the
* relation if it already exists and is not being refreshed.
*
*
* string incremental_select_query = 1;
*
* @return The incrementalSelectQuery.
*/
public java.lang.String getIncrementalSelectQuery() {
java.lang.Object ref = incrementalSelectQuery_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
incrementalSelectQuery_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The SELECT query which returns rows which should be inserted into the
* relation if it already exists and is not being refreshed.
*
*
* string incremental_select_query = 1;
*
* @return The bytes for incrementalSelectQuery.
*/
public com.google.protobuf.ByteString getIncrementalSelectQueryBytes() {
java.lang.Object ref = incrementalSelectQuery_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
incrementalSelectQuery_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The SELECT query which returns rows which should be inserted into the
* relation if it already exists and is not being refreshed.
*
*
* string incremental_select_query = 1;
*
* @param value The incrementalSelectQuery to set.
* @return This builder for chaining.
*/
public Builder setIncrementalSelectQuery(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
incrementalSelectQuery_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The SELECT query which returns rows which should be inserted into the
* relation if it already exists and is not being refreshed.
*
*
* string incremental_select_query = 1;
*
* @return This builder for chaining.
*/
public Builder clearIncrementalSelectQuery() {
incrementalSelectQuery_ = getDefaultInstance().getIncrementalSelectQuery();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The SELECT query which returns rows which should be inserted into the
* relation if it already exists and is not being refreshed.
*
*
* string incremental_select_query = 1;
*
* @param value The bytes for incrementalSelectQuery to set.
* @return This builder for chaining.
*/
public Builder setIncrementalSelectQueryBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
incrementalSelectQuery_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private boolean refreshDisabled_;
/**
*
*
*
* Whether this table should be protected from being refreshed.
*
*
* bool refresh_disabled = 2;
*
* @return The refreshDisabled.
*/
@java.lang.Override
public boolean getRefreshDisabled() {
return refreshDisabled_;
}
/**
*
*
*
* Whether this table should be protected from being refreshed.
*
*
* bool refresh_disabled = 2;
*
* @param value The refreshDisabled to set.
* @return This builder for chaining.
*/
public Builder setRefreshDisabled(boolean value) {
refreshDisabled_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Whether this table should be protected from being refreshed.
*
*
* bool refresh_disabled = 2;
*
* @return This builder for chaining.
*/
public Builder clearRefreshDisabled() {
bitField0_ = (bitField0_ & ~0x00000002);
refreshDisabled_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList uniqueKeyParts_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureUniqueKeyPartsIsMutable() {
if (!uniqueKeyParts_.isModifiable()) {
uniqueKeyParts_ = new com.google.protobuf.LazyStringArrayList(uniqueKeyParts_);
}
bitField0_ |= 0x00000004;
}
/**
*
*
*
* A set of columns or SQL expressions used to define row uniqueness.
* If any duplicates are discovered (as defined by `unique_key_parts`),
* only the newly selected rows (as defined by `incremental_select_query`)
* will be included in the relation.
*
*
* repeated string unique_key_parts = 3;
*
* @return A list containing the uniqueKeyParts.
*/
public com.google.protobuf.ProtocolStringList getUniqueKeyPartsList() {
uniqueKeyParts_.makeImmutable();
return uniqueKeyParts_;
}
/**
*
*
*
* A set of columns or SQL expressions used to define row uniqueness.
* If any duplicates are discovered (as defined by `unique_key_parts`),
* only the newly selected rows (as defined by `incremental_select_query`)
* will be included in the relation.
*
*
* repeated string unique_key_parts = 3;
*
* @return The count of uniqueKeyParts.
*/
public int getUniqueKeyPartsCount() {
return uniqueKeyParts_.size();
}
/**
*
*
*
* A set of columns or SQL expressions used to define row uniqueness.
* If any duplicates are discovered (as defined by `unique_key_parts`),
* only the newly selected rows (as defined by `incremental_select_query`)
* will be included in the relation.
*
*
* repeated string unique_key_parts = 3;
*
* @param index The index of the element to return.
* @return The uniqueKeyParts at the given index.
*/
public java.lang.String getUniqueKeyParts(int index) {
return uniqueKeyParts_.get(index);
}
/**
*
*
*
* A set of columns or SQL expressions used to define row uniqueness.
* If any duplicates are discovered (as defined by `unique_key_parts`),
* only the newly selected rows (as defined by `incremental_select_query`)
* will be included in the relation.
*
*
* repeated string unique_key_parts = 3;
*
* @param index The index of the value to return.
* @return The bytes of the uniqueKeyParts at the given index.
*/
public com.google.protobuf.ByteString getUniqueKeyPartsBytes(int index) {
return uniqueKeyParts_.getByteString(index);
}
/**
*
*
*
* A set of columns or SQL expressions used to define row uniqueness.
* If any duplicates are discovered (as defined by `unique_key_parts`),
* only the newly selected rows (as defined by `incremental_select_query`)
* will be included in the relation.
*
*
* repeated string unique_key_parts = 3;
*
* @param index The index to set the value at.
* @param value The uniqueKeyParts to set.
* @return This builder for chaining.
*/
public Builder setUniqueKeyParts(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUniqueKeyPartsIsMutable();
uniqueKeyParts_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* A set of columns or SQL expressions used to define row uniqueness.
* If any duplicates are discovered (as defined by `unique_key_parts`),
* only the newly selected rows (as defined by `incremental_select_query`)
* will be included in the relation.
*
*
* repeated string unique_key_parts = 3;
*
* @param value The uniqueKeyParts to add.
* @return This builder for chaining.
*/
public Builder addUniqueKeyParts(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUniqueKeyPartsIsMutable();
uniqueKeyParts_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* A set of columns or SQL expressions used to define row uniqueness.
* If any duplicates are discovered (as defined by `unique_key_parts`),
* only the newly selected rows (as defined by `incremental_select_query`)
* will be included in the relation.
*
*
* repeated string unique_key_parts = 3;
*
* @param values The uniqueKeyParts to add.
* @return This builder for chaining.
*/
public Builder addAllUniqueKeyParts(java.lang.Iterable values) {
ensureUniqueKeyPartsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uniqueKeyParts_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* A set of columns or SQL expressions used to define row uniqueness.
* If any duplicates are discovered (as defined by `unique_key_parts`),
* only the newly selected rows (as defined by `incremental_select_query`)
* will be included in the relation.
*
*
* repeated string unique_key_parts = 3;
*
* @return This builder for chaining.
*/
public Builder clearUniqueKeyParts() {
uniqueKeyParts_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
;
onChanged();
return this;
}
/**
*
*
*
* A set of columns or SQL expressions used to define row uniqueness.
* If any duplicates are discovered (as defined by `unique_key_parts`),
* only the newly selected rows (as defined by `incremental_select_query`)
* will be included in the relation.
*
*
* repeated string unique_key_parts = 3;
*
* @param value The bytes of the uniqueKeyParts to add.
* @return This builder for chaining.
*/
public Builder addUniqueKeyPartsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureUniqueKeyPartsIsMutable();
uniqueKeyParts_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object updatePartitionFilter_ = "";
/**
*
*
*
* A SQL expression conditional used to limit the set of existing rows
* considered for a merge operation (see `unique_key_parts` for more
* information).
*
*
* string update_partition_filter = 4;
*
* @return The updatePartitionFilter.
*/
public java.lang.String getUpdatePartitionFilter() {
java.lang.Object ref = updatePartitionFilter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
updatePartitionFilter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* A SQL expression conditional used to limit the set of existing rows
* considered for a merge operation (see `unique_key_parts` for more
* information).
*
*
* string update_partition_filter = 4;
*
* @return The bytes for updatePartitionFilter.
*/
public com.google.protobuf.ByteString getUpdatePartitionFilterBytes() {
java.lang.Object ref = updatePartitionFilter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
updatePartitionFilter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* A SQL expression conditional used to limit the set of existing rows
* considered for a merge operation (see `unique_key_parts` for more
* information).
*
*
* string update_partition_filter = 4;
*
* @param value The updatePartitionFilter to set.
* @return This builder for chaining.
*/
public Builder setUpdatePartitionFilter(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
updatePartitionFilter_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* A SQL expression conditional used to limit the set of existing rows
* considered for a merge operation (see `unique_key_parts` for more
* information).
*
*
* string update_partition_filter = 4;
*
* @return This builder for chaining.
*/
public Builder clearUpdatePartitionFilter() {
updatePartitionFilter_ = getDefaultInstance().getUpdatePartitionFilter();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*
*
* A SQL expression conditional used to limit the set of existing rows
* considered for a merge operation (see `unique_key_parts` for more
* information).
*
*
* string update_partition_filter = 4;
*
* @param value The bytes for updatePartitionFilter to set.
* @return This builder for chaining.
*/
public Builder setUpdatePartitionFilterBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
updatePartitionFilter_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList incrementalPreOperations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureIncrementalPreOperationsIsMutable() {
if (!incrementalPreOperations_.isModifiable()) {
incrementalPreOperations_ =
new com.google.protobuf.LazyStringArrayList(incrementalPreOperations_);
}
bitField0_ |= 0x00000010;
}
/**
*
*
*
* SQL statements to be executed before inserting new rows into the
* relation.
*
*
* repeated string incremental_pre_operations = 5;
*
* @return A list containing the incrementalPreOperations.
*/
public com.google.protobuf.ProtocolStringList getIncrementalPreOperationsList() {
incrementalPreOperations_.makeImmutable();
return incrementalPreOperations_;
}
/**
*
*
*
* SQL statements to be executed before inserting new rows into the
* relation.
*
*
* repeated string incremental_pre_operations = 5;
*
* @return The count of incrementalPreOperations.
*/
public int getIncrementalPreOperationsCount() {
return incrementalPreOperations_.size();
}
/**
*
*
*
* SQL statements to be executed before inserting new rows into the
* relation.
*
*
* repeated string incremental_pre_operations = 5;
*
* @param index The index of the element to return.
* @return The incrementalPreOperations at the given index.
*/
public java.lang.String getIncrementalPreOperations(int index) {
return incrementalPreOperations_.get(index);
}
/**
*
*
*
* SQL statements to be executed before inserting new rows into the
* relation.
*
*
* repeated string incremental_pre_operations = 5;
*
* @param index The index of the value to return.
* @return The bytes of the incrementalPreOperations at the given index.
*/
public com.google.protobuf.ByteString getIncrementalPreOperationsBytes(int index) {
return incrementalPreOperations_.getByteString(index);
}
/**
*
*
*
* SQL statements to be executed before inserting new rows into the
* relation.
*
*
* repeated string incremental_pre_operations = 5;
*
* @param index The index to set the value at.
* @param value The incrementalPreOperations to set.
* @return This builder for chaining.
*/
public Builder setIncrementalPreOperations(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIncrementalPreOperationsIsMutable();
incrementalPreOperations_.set(index, value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* SQL statements to be executed before inserting new rows into the
* relation.
*
*
* repeated string incremental_pre_operations = 5;
*
* @param value The incrementalPreOperations to add.
* @return This builder for chaining.
*/
public Builder addIncrementalPreOperations(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIncrementalPreOperationsIsMutable();
incrementalPreOperations_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* SQL statements to be executed before inserting new rows into the
* relation.
*
*
* repeated string incremental_pre_operations = 5;
*
* @param values The incrementalPreOperations to add.
* @return This builder for chaining.
*/
public Builder addAllIncrementalPreOperations(java.lang.Iterable values) {
ensureIncrementalPreOperationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, incrementalPreOperations_);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* SQL statements to be executed before inserting new rows into the
* relation.
*
*
* repeated string incremental_pre_operations = 5;
*
* @return This builder for chaining.
*/
public Builder clearIncrementalPreOperations() {
incrementalPreOperations_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
;
onChanged();
return this;
}
/**
*
*
*
* SQL statements to be executed before inserting new rows into the
* relation.
*
*
* repeated string incremental_pre_operations = 5;
*
* @param value The bytes of the incrementalPreOperations to add.
* @return This builder for chaining.
*/
public Builder addIncrementalPreOperationsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureIncrementalPreOperationsIsMutable();
incrementalPreOperations_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList incrementalPostOperations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureIncrementalPostOperationsIsMutable() {
if (!incrementalPostOperations_.isModifiable()) {
incrementalPostOperations_ =
new com.google.protobuf.LazyStringArrayList(incrementalPostOperations_);
}
bitField0_ |= 0x00000020;
}
/**
*
*
*
* SQL statements to be executed after inserting new rows into the
* relation.
*
*
* repeated string incremental_post_operations = 6;
*
* @return A list containing the incrementalPostOperations.
*/
public com.google.protobuf.ProtocolStringList getIncrementalPostOperationsList() {
incrementalPostOperations_.makeImmutable();
return incrementalPostOperations_;
}
/**
*
*
*
* SQL statements to be executed after inserting new rows into the
* relation.
*
*
* repeated string incremental_post_operations = 6;
*
* @return The count of incrementalPostOperations.
*/
public int getIncrementalPostOperationsCount() {
return incrementalPostOperations_.size();
}
/**
*
*
*
* SQL statements to be executed after inserting new rows into the
* relation.
*
*
* repeated string incremental_post_operations = 6;
*
* @param index The index of the element to return.
* @return The incrementalPostOperations at the given index.
*/
public java.lang.String getIncrementalPostOperations(int index) {
return incrementalPostOperations_.get(index);
}
/**
*
*
*
* SQL statements to be executed after inserting new rows into the
* relation.
*
*
* repeated string incremental_post_operations = 6;
*
* @param index The index of the value to return.
* @return The bytes of the incrementalPostOperations at the given index.
*/
public com.google.protobuf.ByteString getIncrementalPostOperationsBytes(int index) {
return incrementalPostOperations_.getByteString(index);
}
/**
*
*
*
* SQL statements to be executed after inserting new rows into the
* relation.
*
*
* repeated string incremental_post_operations = 6;
*
* @param index The index to set the value at.
* @param value The incrementalPostOperations to set.
* @return This builder for chaining.
*/
public Builder setIncrementalPostOperations(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIncrementalPostOperationsIsMutable();
incrementalPostOperations_.set(index, value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* SQL statements to be executed after inserting new rows into the
* relation.
*
*
* repeated string incremental_post_operations = 6;
*
* @param value The incrementalPostOperations to add.
* @return This builder for chaining.
*/
public Builder addIncrementalPostOperations(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIncrementalPostOperationsIsMutable();
incrementalPostOperations_.add(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* SQL statements to be executed after inserting new rows into the
* relation.
*
*
* repeated string incremental_post_operations = 6;
*
* @param values The incrementalPostOperations to add.
* @return This builder for chaining.
*/
public Builder addAllIncrementalPostOperations(
java.lang.Iterable values) {
ensureIncrementalPostOperationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, incrementalPostOperations_);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* SQL statements to be executed after inserting new rows into the
* relation.
*
*
* repeated string incremental_post_operations = 6;
*
* @return This builder for chaining.
*/
public Builder clearIncrementalPostOperations() {
incrementalPostOperations_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
;
onChanged();
return this;
}
/**
*
*
*
* SQL statements to be executed after inserting new rows into the
* relation.
*
*
* repeated string incremental_post_operations = 6;
*
* @param value The bytes of the incrementalPostOperations to add.
* @return This builder for chaining.
*/
public Builder addIncrementalPostOperationsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureIncrementalPostOperationsIsMutable();
incrementalPostOperations_.add(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig)
private static final com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig();
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IncrementalTableConfig 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.CompilationResultAction.Relation
.IncrementalTableConfig
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int DEPENDENCY_TARGETS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List dependencyTargets_;
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
@java.lang.Override
public java.util.List getDependencyTargetsList() {
return dependencyTargets_;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
@java.lang.Override
public java.util.List extends com.google.cloud.dataform.v1beta1.TargetOrBuilder>
getDependencyTargetsOrBuilderList() {
return dependencyTargets_;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
@java.lang.Override
public int getDependencyTargetsCount() {
return dependencyTargets_.size();
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.Target getDependencyTargets(int index) {
return dependencyTargets_.get(index);
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.TargetOrBuilder getDependencyTargetsOrBuilder(
int index) {
return dependencyTargets_.get(index);
}
public static final int DISABLED_FIELD_NUMBER = 2;
private boolean disabled_ = false;
/**
*
*
*
* Whether this action is disabled (i.e. should not be run).
*
*
* bool disabled = 2;
*
* @return The disabled.
*/
@java.lang.Override
public boolean getDisabled() {
return disabled_;
}
public static final int TAGS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList tags_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList getTagsList() {
return tags_;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index of the element to return.
* @return The tags at the given index.
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
public com.google.protobuf.ByteString getTagsBytes(int index) {
return tags_.getByteString(index);
}
public static final int RELATION_DESCRIPTOR_FIELD_NUMBER = 4;
private com.google.cloud.dataform.v1beta1.RelationDescriptor relationDescriptor_;
/**
*
*
*
* Descriptor for the relation and its columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4;
*
* @return Whether the relationDescriptor field is set.
*/
@java.lang.Override
public boolean hasRelationDescriptor() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Descriptor for the relation and its columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4;
*
* @return The relationDescriptor.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor() {
return relationDescriptor_ == null
? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()
: relationDescriptor_;
}
/**
*
*
*
* Descriptor for the relation and its columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4;
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder
getRelationDescriptorOrBuilder() {
return relationDescriptor_ == null
? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()
: relationDescriptor_;
}
public static final int RELATION_TYPE_FIELD_NUMBER = 5;
private int relationType_ = 0;
/**
*
*
*
* The type of this relation.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5;
*
*
* @return The enum numeric value on the wire for relationType.
*/
@java.lang.Override
public int getRelationTypeValue() {
return relationType_;
}
/**
*
*
*
* The type of this relation.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5;
*
*
* @return The relationType.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType
getRelationType() {
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType result =
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType.forNumber(
relationType_);
return result == null
? com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType
.UNRECOGNIZED
: result;
}
public static final int SELECT_QUERY_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object selectQuery_ = "";
/**
*
*
*
* The SELECT query which returns rows which this relation should contain.
*
*
* string select_query = 6;
*
* @return The selectQuery.
*/
@java.lang.Override
public java.lang.String getSelectQuery() {
java.lang.Object ref = selectQuery_;
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();
selectQuery_ = s;
return s;
}
}
/**
*
*
*
* The SELECT query which returns rows which this relation should contain.
*
*
* string select_query = 6;
*
* @return The bytes for selectQuery.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSelectQueryBytes() {
java.lang.Object ref = selectQuery_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
selectQuery_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRE_OPERATIONS_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList preOperations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* SQL statements to be executed before creating the relation.
*
*
* repeated string pre_operations = 7;
*
* @return A list containing the preOperations.
*/
public com.google.protobuf.ProtocolStringList getPreOperationsList() {
return preOperations_;
}
/**
*
*
*
* SQL statements to be executed before creating the relation.
*
*
* repeated string pre_operations = 7;
*
* @return The count of preOperations.
*/
public int getPreOperationsCount() {
return preOperations_.size();
}
/**
*
*
*
* SQL statements to be executed before creating the relation.
*
*
* repeated string pre_operations = 7;
*
* @param index The index of the element to return.
* @return The preOperations at the given index.
*/
public java.lang.String getPreOperations(int index) {
return preOperations_.get(index);
}
/**
*
*
*
* SQL statements to be executed before creating the relation.
*
*
* repeated string pre_operations = 7;
*
* @param index The index of the value to return.
* @return The bytes of the preOperations at the given index.
*/
public com.google.protobuf.ByteString getPreOperationsBytes(int index) {
return preOperations_.getByteString(index);
}
public static final int POST_OPERATIONS_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList postOperations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* SQL statements to be executed after creating the relation.
*
*
* repeated string post_operations = 8;
*
* @return A list containing the postOperations.
*/
public com.google.protobuf.ProtocolStringList getPostOperationsList() {
return postOperations_;
}
/**
*
*
*
* SQL statements to be executed after creating the relation.
*
*
* repeated string post_operations = 8;
*
* @return The count of postOperations.
*/
public int getPostOperationsCount() {
return postOperations_.size();
}
/**
*
*
*
* SQL statements to be executed after creating the relation.
*
*
* repeated string post_operations = 8;
*
* @param index The index of the element to return.
* @return The postOperations at the given index.
*/
public java.lang.String getPostOperations(int index) {
return postOperations_.get(index);
}
/**
*
*
*
* SQL statements to be executed after creating the relation.
*
*
* repeated string post_operations = 8;
*
* @param index The index of the value to return.
* @return The bytes of the postOperations at the given index.
*/
public com.google.protobuf.ByteString getPostOperationsBytes(int index) {
return postOperations_.getByteString(index);
}
public static final int INCREMENTAL_TABLE_CONFIG_FIELD_NUMBER = 9;
private com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig
incrementalTableConfig_;
/**
*
*
*
* Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
* `relation_type` is `INCREMENTAL_TABLE`.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9;
*
*
* @return Whether the incrementalTableConfig field is set.
*/
@java.lang.Override
public boolean hasIncrementalTableConfig() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
* `relation_type` is `INCREMENTAL_TABLE`.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9;
*
*
* @return The incrementalTableConfig.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig
getIncrementalTableConfig() {
return incrementalTableConfig_ == null
? com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig.getDefaultInstance()
: incrementalTableConfig_;
}
/**
*
*
*
* Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
* `relation_type` is `INCREMENTAL_TABLE`.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9;
*
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfigOrBuilder
getIncrementalTableConfigOrBuilder() {
return incrementalTableConfig_ == null
? com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig.getDefaultInstance()
: incrementalTableConfig_;
}
public static final int PARTITION_EXPRESSION_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object partitionExpression_ = "";
/**
*
*
*
* The SQL expression used to partition the relation.
*
*
* string partition_expression = 10;
*
* @return The partitionExpression.
*/
@java.lang.Override
public java.lang.String getPartitionExpression() {
java.lang.Object ref = partitionExpression_;
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();
partitionExpression_ = s;
return s;
}
}
/**
*
*
*
* The SQL expression used to partition the relation.
*
*
* string partition_expression = 10;
*
* @return The bytes for partitionExpression.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPartitionExpressionBytes() {
java.lang.Object ref = partitionExpression_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
partitionExpression_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLUSTER_EXPRESSIONS_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList clusterExpressions_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* A list of columns or SQL expressions used to cluster the table.
*
*
* repeated string cluster_expressions = 11;
*
* @return A list containing the clusterExpressions.
*/
public com.google.protobuf.ProtocolStringList getClusterExpressionsList() {
return clusterExpressions_;
}
/**
*
*
*
* A list of columns or SQL expressions used to cluster the table.
*
*
* repeated string cluster_expressions = 11;
*
* @return The count of clusterExpressions.
*/
public int getClusterExpressionsCount() {
return clusterExpressions_.size();
}
/**
*
*
*
* A list of columns or SQL expressions used to cluster the table.
*
*
* repeated string cluster_expressions = 11;
*
* @param index The index of the element to return.
* @return The clusterExpressions at the given index.
*/
public java.lang.String getClusterExpressions(int index) {
return clusterExpressions_.get(index);
}
/**
*
*
*
* A list of columns or SQL expressions used to cluster the table.
*
*
* repeated string cluster_expressions = 11;
*
* @param index The index of the value to return.
* @return The bytes of the clusterExpressions at the given index.
*/
public com.google.protobuf.ByteString getClusterExpressionsBytes(int index) {
return clusterExpressions_.getByteString(index);
}
public static final int PARTITION_EXPIRATION_DAYS_FIELD_NUMBER = 12;
private int partitionExpirationDays_ = 0;
/**
*
*
*
* Sets the partition expiration in days.
*
*
* int32 partition_expiration_days = 12;
*
* @return The partitionExpirationDays.
*/
@java.lang.Override
public int getPartitionExpirationDays() {
return partitionExpirationDays_;
}
public static final int REQUIRE_PARTITION_FILTER_FIELD_NUMBER = 13;
private boolean requirePartitionFilter_ = false;
/**
*
*
*
* Specifies whether queries on this table must include a predicate filter
* that filters on the partitioning column.
*
*
* bool require_partition_filter = 13;
*
* @return The requirePartitionFilter.
*/
@java.lang.Override
public boolean getRequirePartitionFilter() {
return requirePartitionFilter_;
}
public static final int ADDITIONAL_OPTIONS_FIELD_NUMBER = 14;
private static final class AdditionalOptionsDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_AdditionalOptionsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField additionalOptions_;
private com.google.protobuf.MapField
internalGetAdditionalOptions() {
if (additionalOptions_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AdditionalOptionsDefaultEntryHolder.defaultEntry);
}
return additionalOptions_;
}
public int getAdditionalOptionsCount() {
return internalGetAdditionalOptions().getMap().size();
}
/**
*
*
*
* Additional options that will be provided as key/value pairs into the
* options clause of a create table/view statement. See
* https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
* for more information on which options are supported.
*
*
* map<string, string> additional_options = 14;
*/
@java.lang.Override
public boolean containsAdditionalOptions(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetAdditionalOptions().getMap().containsKey(key);
}
/** Use {@link #getAdditionalOptionsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAdditionalOptions() {
return getAdditionalOptionsMap();
}
/**
*
*
*
* Additional options that will be provided as key/value pairs into the
* options clause of a create table/view statement. See
* https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
* for more information on which options are supported.
*
*
* map<string, string> additional_options = 14;
*/
@java.lang.Override
public java.util.Map getAdditionalOptionsMap() {
return internalGetAdditionalOptions().getMap();
}
/**
*
*
*
* Additional options that will be provided as key/value pairs into the
* options clause of a create table/view statement. See
* https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
* for more information on which options are supported.
*
*
* map<string, string> additional_options = 14;
*/
@java.lang.Override
public /* nullable */ java.lang.String getAdditionalOptionsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetAdditionalOptions().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Additional options that will be provided as key/value pairs into the
* options clause of a create table/view statement. See
* https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
* for more information on which options are supported.
*
*
* map<string, string> additional_options = 14;
*/
@java.lang.Override
public java.lang.String getAdditionalOptionsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetAdditionalOptions().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 < dependencyTargets_.size(); i++) {
output.writeMessage(1, dependencyTargets_.get(i));
}
if (disabled_ != false) {
output.writeBool(2, disabled_);
}
for (int i = 0; i < tags_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tags_.getRaw(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getRelationDescriptor());
}
if (relationType_
!= com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType
.RELATION_TYPE_UNSPECIFIED
.getNumber()) {
output.writeEnum(5, relationType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selectQuery_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, selectQuery_);
}
for (int i = 0; i < preOperations_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, preOperations_.getRaw(i));
}
for (int i = 0; i < postOperations_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, postOperations_.getRaw(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(9, getIncrementalTableConfig());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(partitionExpression_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, partitionExpression_);
}
for (int i = 0; i < clusterExpressions_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(
output, 11, clusterExpressions_.getRaw(i));
}
if (partitionExpirationDays_ != 0) {
output.writeInt32(12, partitionExpirationDays_);
}
if (requirePartitionFilter_ != false) {
output.writeBool(13, requirePartitionFilter_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output,
internalGetAdditionalOptions(),
AdditionalOptionsDefaultEntryHolder.defaultEntry,
14);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < dependencyTargets_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(1, dependencyTargets_.get(i));
}
if (disabled_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, disabled_);
}
{
int dataSize = 0;
for (int i = 0; i < tags_.size(); i++) {
dataSize += computeStringSizeNoTag(tags_.getRaw(i));
}
size += dataSize;
size += 1 * getTagsList().size();
}
if (((bitField0_ & 0x00000001) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRelationDescriptor());
}
if (relationType_
!= com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType
.RELATION_TYPE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, relationType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selectQuery_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, selectQuery_);
}
{
int dataSize = 0;
for (int i = 0; i < preOperations_.size(); i++) {
dataSize += computeStringSizeNoTag(preOperations_.getRaw(i));
}
size += dataSize;
size += 1 * getPreOperationsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < postOperations_.size(); i++) {
dataSize += computeStringSizeNoTag(postOperations_.getRaw(i));
}
size += dataSize;
size += 1 * getPostOperationsList().size();
}
if (((bitField0_ & 0x00000002) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
9, getIncrementalTableConfig());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(partitionExpression_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, partitionExpression_);
}
{
int dataSize = 0;
for (int i = 0; i < clusterExpressions_.size(); i++) {
dataSize += computeStringSizeNoTag(clusterExpressions_.getRaw(i));
}
size += dataSize;
size += 1 * getClusterExpressionsList().size();
}
if (partitionExpirationDays_ != 0) {
size +=
com.google.protobuf.CodedOutputStream.computeInt32Size(12, partitionExpirationDays_);
}
if (requirePartitionFilter_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, requirePartitionFilter_);
}
for (java.util.Map.Entry entry :
internalGetAdditionalOptions().getMap().entrySet()) {
com.google.protobuf.MapEntry additionalOptions__ =
AdditionalOptionsDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, additionalOptions__);
}
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.CompilationResultAction.Relation)) {
return super.equals(obj);
}
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation other =
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation) obj;
if (!getDependencyTargetsList().equals(other.getDependencyTargetsList())) return false;
if (getDisabled() != other.getDisabled()) return false;
if (!getTagsList().equals(other.getTagsList())) return false;
if (hasRelationDescriptor() != other.hasRelationDescriptor()) return false;
if (hasRelationDescriptor()) {
if (!getRelationDescriptor().equals(other.getRelationDescriptor())) return false;
}
if (relationType_ != other.relationType_) return false;
if (!getSelectQuery().equals(other.getSelectQuery())) return false;
if (!getPreOperationsList().equals(other.getPreOperationsList())) return false;
if (!getPostOperationsList().equals(other.getPostOperationsList())) return false;
if (hasIncrementalTableConfig() != other.hasIncrementalTableConfig()) return false;
if (hasIncrementalTableConfig()) {
if (!getIncrementalTableConfig().equals(other.getIncrementalTableConfig())) return false;
}
if (!getPartitionExpression().equals(other.getPartitionExpression())) return false;
if (!getClusterExpressionsList().equals(other.getClusterExpressionsList())) return false;
if (getPartitionExpirationDays() != other.getPartitionExpirationDays()) return false;
if (getRequirePartitionFilter() != other.getRequirePartitionFilter()) return false;
if (!internalGetAdditionalOptions().equals(other.internalGetAdditionalOptions()))
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 (getDependencyTargetsCount() > 0) {
hash = (37 * hash) + DEPENDENCY_TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getDependencyTargetsList().hashCode();
}
hash = (37 * hash) + DISABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled());
if (getTagsCount() > 0) {
hash = (37 * hash) + TAGS_FIELD_NUMBER;
hash = (53 * hash) + getTagsList().hashCode();
}
if (hasRelationDescriptor()) {
hash = (37 * hash) + RELATION_DESCRIPTOR_FIELD_NUMBER;
hash = (53 * hash) + getRelationDescriptor().hashCode();
}
hash = (37 * hash) + RELATION_TYPE_FIELD_NUMBER;
hash = (53 * hash) + relationType_;
hash = (37 * hash) + SELECT_QUERY_FIELD_NUMBER;
hash = (53 * hash) + getSelectQuery().hashCode();
if (getPreOperationsCount() > 0) {
hash = (37 * hash) + PRE_OPERATIONS_FIELD_NUMBER;
hash = (53 * hash) + getPreOperationsList().hashCode();
}
if (getPostOperationsCount() > 0) {
hash = (37 * hash) + POST_OPERATIONS_FIELD_NUMBER;
hash = (53 * hash) + getPostOperationsList().hashCode();
}
if (hasIncrementalTableConfig()) {
hash = (37 * hash) + INCREMENTAL_TABLE_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getIncrementalTableConfig().hashCode();
}
hash = (37 * hash) + PARTITION_EXPRESSION_FIELD_NUMBER;
hash = (53 * hash) + getPartitionExpression().hashCode();
if (getClusterExpressionsCount() > 0) {
hash = (37 * hash) + CLUSTER_EXPRESSIONS_FIELD_NUMBER;
hash = (53 * hash) + getClusterExpressionsList().hashCode();
}
hash = (37 * hash) + PARTITION_EXPIRATION_DAYS_FIELD_NUMBER;
hash = (53 * hash) + getPartitionExpirationDays();
hash = (37 * hash) + REQUIRE_PARTITION_FILTER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequirePartitionFilter());
if (!internalGetAdditionalOptions().getMap().isEmpty()) {
hash = (37 * hash) + ADDITIONAL_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + internalGetAdditionalOptions().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation 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.CompilationResultAction.Relation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation 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.CompilationResultAction.Relation parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation 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.CompilationResultAction.Relation parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation 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.CompilationResultAction.Relation
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
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.CompilationResultAction.Relation 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.CompilationResultAction.Relation 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.CompilationResultAction.Relation 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 database relation.
*
*
* Protobuf type {@code google.cloud.dataform.v1beta1.CompilationResultAction.Relation}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CompilationResultAction.Relation)
com.google.cloud.dataform.v1beta1.CompilationResultAction.RelationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 14:
return internalGetAdditionalOptions();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 14:
return internalGetMutableAdditionalOptions();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.class,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.Builder.class);
}
// Construct using
// com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getDependencyTargetsFieldBuilder();
getRelationDescriptorFieldBuilder();
getIncrementalTableConfigFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (dependencyTargetsBuilder_ == null) {
dependencyTargets_ = java.util.Collections.emptyList();
} else {
dependencyTargets_ = null;
dependencyTargetsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
disabled_ = false;
tags_ = com.google.protobuf.LazyStringArrayList.emptyList();
relationDescriptor_ = null;
if (relationDescriptorBuilder_ != null) {
relationDescriptorBuilder_.dispose();
relationDescriptorBuilder_ = null;
}
relationType_ = 0;
selectQuery_ = "";
preOperations_ = com.google.protobuf.LazyStringArrayList.emptyList();
postOperations_ = com.google.protobuf.LazyStringArrayList.emptyList();
incrementalTableConfig_ = null;
if (incrementalTableConfigBuilder_ != null) {
incrementalTableConfigBuilder_.dispose();
incrementalTableConfigBuilder_ = null;
}
partitionExpression_ = "";
clusterExpressions_ = com.google.protobuf.LazyStringArrayList.emptyList();
partitionExpirationDays_ = 0;
requirePartitionFilter_ = false;
internalGetMutableAdditionalOptions().clear();
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_CompilationResultAction_Relation_descriptor;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
getDefaultInstanceForType() {
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation build() {
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation buildPartial() {
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation result =
new com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation result) {
if (dependencyTargetsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
dependencyTargets_ = java.util.Collections.unmodifiableList(dependencyTargets_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.dependencyTargets_ = dependencyTargets_;
} else {
result.dependencyTargets_ = dependencyTargetsBuilder_.build();
}
}
private void buildPartial0(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.disabled_ = disabled_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
tags_.makeImmutable();
result.tags_ = tags_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.relationDescriptor_ =
relationDescriptorBuilder_ == null
? relationDescriptor_
: relationDescriptorBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.relationType_ = relationType_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.selectQuery_ = selectQuery_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
preOperations_.makeImmutable();
result.preOperations_ = preOperations_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
postOperations_.makeImmutable();
result.postOperations_ = postOperations_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.incrementalTableConfig_ =
incrementalTableConfigBuilder_ == null
? incrementalTableConfig_
: incrementalTableConfigBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.partitionExpression_ = partitionExpression_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
clusterExpressions_.makeImmutable();
result.clusterExpressions_ = clusterExpressions_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.partitionExpirationDays_ = partitionExpirationDays_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.requirePartitionFilter_ = requirePartitionFilter_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.additionalOptions_ = internalGetAdditionalOptions();
result.additionalOptions_.makeImmutable();
}
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.v1beta1.CompilationResultAction.Relation) {
return mergeFrom(
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation other) {
if (other
== com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.getDefaultInstance()) return this;
if (dependencyTargetsBuilder_ == null) {
if (!other.dependencyTargets_.isEmpty()) {
if (dependencyTargets_.isEmpty()) {
dependencyTargets_ = other.dependencyTargets_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDependencyTargetsIsMutable();
dependencyTargets_.addAll(other.dependencyTargets_);
}
onChanged();
}
} else {
if (!other.dependencyTargets_.isEmpty()) {
if (dependencyTargetsBuilder_.isEmpty()) {
dependencyTargetsBuilder_.dispose();
dependencyTargetsBuilder_ = null;
dependencyTargets_ = other.dependencyTargets_;
bitField0_ = (bitField0_ & ~0x00000001);
dependencyTargetsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getDependencyTargetsFieldBuilder()
: null;
} else {
dependencyTargetsBuilder_.addAllMessages(other.dependencyTargets_);
}
}
}
if (other.getDisabled() != false) {
setDisabled(other.getDisabled());
}
if (!other.tags_.isEmpty()) {
if (tags_.isEmpty()) {
tags_ = other.tags_;
bitField0_ |= 0x00000004;
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
}
onChanged();
}
if (other.hasRelationDescriptor()) {
mergeRelationDescriptor(other.getRelationDescriptor());
}
if (other.relationType_ != 0) {
setRelationTypeValue(other.getRelationTypeValue());
}
if (!other.getSelectQuery().isEmpty()) {
selectQuery_ = other.selectQuery_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.preOperations_.isEmpty()) {
if (preOperations_.isEmpty()) {
preOperations_ = other.preOperations_;
bitField0_ |= 0x00000040;
} else {
ensurePreOperationsIsMutable();
preOperations_.addAll(other.preOperations_);
}
onChanged();
}
if (!other.postOperations_.isEmpty()) {
if (postOperations_.isEmpty()) {
postOperations_ = other.postOperations_;
bitField0_ |= 0x00000080;
} else {
ensurePostOperationsIsMutable();
postOperations_.addAll(other.postOperations_);
}
onChanged();
}
if (other.hasIncrementalTableConfig()) {
mergeIncrementalTableConfig(other.getIncrementalTableConfig());
}
if (!other.getPartitionExpression().isEmpty()) {
partitionExpression_ = other.partitionExpression_;
bitField0_ |= 0x00000200;
onChanged();
}
if (!other.clusterExpressions_.isEmpty()) {
if (clusterExpressions_.isEmpty()) {
clusterExpressions_ = other.clusterExpressions_;
bitField0_ |= 0x00000400;
} else {
ensureClusterExpressionsIsMutable();
clusterExpressions_.addAll(other.clusterExpressions_);
}
onChanged();
}
if (other.getPartitionExpirationDays() != 0) {
setPartitionExpirationDays(other.getPartitionExpirationDays());
}
if (other.getRequirePartitionFilter() != false) {
setRequirePartitionFilter(other.getRequirePartitionFilter());
}
internalGetMutableAdditionalOptions().mergeFrom(other.internalGetAdditionalOptions());
bitField0_ |= 0x00002000;
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.v1beta1.Target m =
input.readMessage(
com.google.cloud.dataform.v1beta1.Target.parser(), extensionRegistry);
if (dependencyTargetsBuilder_ == null) {
ensureDependencyTargetsIsMutable();
dependencyTargets_.add(m);
} else {
dependencyTargetsBuilder_.addMessage(m);
}
break;
} // case 10
case 16:
{
disabled_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
java.lang.String s = input.readStringRequireUtf8();
ensureTagsIsMutable();
tags_.add(s);
break;
} // case 26
case 34:
{
input.readMessage(
getRelationDescriptorFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 40:
{
relationType_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50:
{
selectQuery_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58:
{
java.lang.String s = input.readStringRequireUtf8();
ensurePreOperationsIsMutable();
preOperations_.add(s);
break;
} // case 58
case 66:
{
java.lang.String s = input.readStringRequireUtf8();
ensurePostOperationsIsMutable();
postOperations_.add(s);
break;
} // case 66
case 74:
{
input.readMessage(
getIncrementalTableConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 74
case 82:
{
partitionExpression_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 82
case 90:
{
java.lang.String s = input.readStringRequireUtf8();
ensureClusterExpressionsIsMutable();
clusterExpressions_.add(s);
break;
} // case 90
case 96:
{
partitionExpirationDays_ = input.readInt32();
bitField0_ |= 0x00000800;
break;
} // case 96
case 104:
{
requirePartitionFilter_ = input.readBool();
bitField0_ |= 0x00001000;
break;
} // case 104
case 114:
{
com.google.protobuf.MapEntry
additionalOptions__ =
input.readMessage(
AdditionalOptionsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableAdditionalOptions()
.getMutableMap()
.put(additionalOptions__.getKey(), additionalOptions__.getValue());
bitField0_ |= 0x00002000;
break;
} // case 114
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 dependencyTargets_ =
java.util.Collections.emptyList();
private void ensureDependencyTargetsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
dependencyTargets_ =
new java.util.ArrayList(dependencyTargets_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>
dependencyTargetsBuilder_;
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public java.util.List getDependencyTargetsList() {
if (dependencyTargetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(dependencyTargets_);
} else {
return dependencyTargetsBuilder_.getMessageList();
}
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public int getDependencyTargetsCount() {
if (dependencyTargetsBuilder_ == null) {
return dependencyTargets_.size();
} else {
return dependencyTargetsBuilder_.getCount();
}
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public com.google.cloud.dataform.v1beta1.Target getDependencyTargets(int index) {
if (dependencyTargetsBuilder_ == null) {
return dependencyTargets_.get(index);
} else {
return dependencyTargetsBuilder_.getMessage(index);
}
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder setDependencyTargets(
int index, com.google.cloud.dataform.v1beta1.Target value) {
if (dependencyTargetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDependencyTargetsIsMutable();
dependencyTargets_.set(index, value);
onChanged();
} else {
dependencyTargetsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder setDependencyTargets(
int index, com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) {
if (dependencyTargetsBuilder_ == null) {
ensureDependencyTargetsIsMutable();
dependencyTargets_.set(index, builderForValue.build());
onChanged();
} else {
dependencyTargetsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder addDependencyTargets(com.google.cloud.dataform.v1beta1.Target value) {
if (dependencyTargetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDependencyTargetsIsMutable();
dependencyTargets_.add(value);
onChanged();
} else {
dependencyTargetsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder addDependencyTargets(
int index, com.google.cloud.dataform.v1beta1.Target value) {
if (dependencyTargetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDependencyTargetsIsMutable();
dependencyTargets_.add(index, value);
onChanged();
} else {
dependencyTargetsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder addDependencyTargets(
com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) {
if (dependencyTargetsBuilder_ == null) {
ensureDependencyTargetsIsMutable();
dependencyTargets_.add(builderForValue.build());
onChanged();
} else {
dependencyTargetsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder addDependencyTargets(
int index, com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) {
if (dependencyTargetsBuilder_ == null) {
ensureDependencyTargetsIsMutable();
dependencyTargets_.add(index, builderForValue.build());
onChanged();
} else {
dependencyTargetsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder addAllDependencyTargets(
java.lang.Iterable extends com.google.cloud.dataform.v1beta1.Target> values) {
if (dependencyTargetsBuilder_ == null) {
ensureDependencyTargetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dependencyTargets_);
onChanged();
} else {
dependencyTargetsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder clearDependencyTargets() {
if (dependencyTargetsBuilder_ == null) {
dependencyTargets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
dependencyTargetsBuilder_.clear();
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder removeDependencyTargets(int index) {
if (dependencyTargetsBuilder_ == null) {
ensureDependencyTargetsIsMutable();
dependencyTargets_.remove(index);
onChanged();
} else {
dependencyTargetsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public com.google.cloud.dataform.v1beta1.Target.Builder getDependencyTargetsBuilder(
int index) {
return getDependencyTargetsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public com.google.cloud.dataform.v1beta1.TargetOrBuilder getDependencyTargetsOrBuilder(
int index) {
if (dependencyTargetsBuilder_ == null) {
return dependencyTargets_.get(index);
} else {
return dependencyTargetsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public java.util.List extends com.google.cloud.dataform.v1beta1.TargetOrBuilder>
getDependencyTargetsOrBuilderList() {
if (dependencyTargetsBuilder_ != null) {
return dependencyTargetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(dependencyTargets_);
}
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public com.google.cloud.dataform.v1beta1.Target.Builder addDependencyTargetsBuilder() {
return getDependencyTargetsFieldBuilder()
.addBuilder(com.google.cloud.dataform.v1beta1.Target.getDefaultInstance());
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public com.google.cloud.dataform.v1beta1.Target.Builder addDependencyTargetsBuilder(
int index) {
return getDependencyTargetsFieldBuilder()
.addBuilder(index, com.google.cloud.dataform.v1beta1.Target.getDefaultInstance());
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public java.util.List
getDependencyTargetsBuilderList() {
return getDependencyTargetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>
getDependencyTargetsFieldBuilder() {
if (dependencyTargetsBuilder_ == null) {
dependencyTargetsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>(
dependencyTargets_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
dependencyTargets_ = null;
}
return dependencyTargetsBuilder_;
}
private boolean disabled_;
/**
*
*
*
* Whether this action is disabled (i.e. should not be run).
*
*
* bool disabled = 2;
*
* @return The disabled.
*/
@java.lang.Override
public boolean getDisabled() {
return disabled_;
}
/**
*
*
*
* Whether this action is disabled (i.e. should not be run).
*
*
* bool disabled = 2;
*
* @param value The disabled to set.
* @return This builder for chaining.
*/
public Builder setDisabled(boolean value) {
disabled_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Whether this action is disabled (i.e. should not be run).
*
*
* bool disabled = 2;
*
* @return This builder for chaining.
*/
public Builder clearDisabled() {
bitField0_ = (bitField0_ & ~0x00000002);
disabled_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList tags_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureTagsIsMutable() {
if (!tags_.isModifiable()) {
tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
}
bitField0_ |= 0x00000004;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList getTagsList() {
tags_.makeImmutable();
return tags_;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index of the element to return.
* @return The tags at the given index.
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
public com.google.protobuf.ByteString getTagsBytes(int index) {
return tags_.getByteString(index);
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index to set the value at.
* @param value The tags to set.
* @return This builder for chaining.
*/
public Builder setTags(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param value The tags to add.
* @return This builder for chaining.
*/
public Builder addTags(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param values The tags to add.
* @return This builder for chaining.
*/
public Builder addAllTags(java.lang.Iterable values) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return This builder for chaining.
*/
public Builder clearTags() {
tags_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
;
onChanged();
return this;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param value The bytes of the tags to add.
* @return This builder for chaining.
*/
public Builder addTagsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTagsIsMutable();
tags_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.cloud.dataform.v1beta1.RelationDescriptor relationDescriptor_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.RelationDescriptor,
com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder,
com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder>
relationDescriptorBuilder_;
/**
*
*
*
* Descriptor for the relation and its columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4;
*
* @return Whether the relationDescriptor field is set.
*/
public boolean hasRelationDescriptor() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Descriptor for the relation and its columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4;
*
* @return The relationDescriptor.
*/
public com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor() {
if (relationDescriptorBuilder_ == null) {
return relationDescriptor_ == null
? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()
: relationDescriptor_;
} else {
return relationDescriptorBuilder_.getMessage();
}
}
/**
*
*
*
* Descriptor for the relation and its columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4;
*/
public Builder setRelationDescriptor(
com.google.cloud.dataform.v1beta1.RelationDescriptor value) {
if (relationDescriptorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
relationDescriptor_ = value;
} else {
relationDescriptorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Descriptor for the relation and its columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4;
*/
public Builder setRelationDescriptor(
com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder builderForValue) {
if (relationDescriptorBuilder_ == null) {
relationDescriptor_ = builderForValue.build();
} else {
relationDescriptorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Descriptor for the relation and its columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4;
*/
public Builder mergeRelationDescriptor(
com.google.cloud.dataform.v1beta1.RelationDescriptor value) {
if (relationDescriptorBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& relationDescriptor_ != null
&& relationDescriptor_
!= com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()) {
getRelationDescriptorBuilder().mergeFrom(value);
} else {
relationDescriptor_ = value;
}
} else {
relationDescriptorBuilder_.mergeFrom(value);
}
if (relationDescriptor_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* Descriptor for the relation and its columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4;
*/
public Builder clearRelationDescriptor() {
bitField0_ = (bitField0_ & ~0x00000008);
relationDescriptor_ = null;
if (relationDescriptorBuilder_ != null) {
relationDescriptorBuilder_.dispose();
relationDescriptorBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Descriptor for the relation and its columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4;
*/
public com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder
getRelationDescriptorBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getRelationDescriptorFieldBuilder().getBuilder();
}
/**
*
*
*
* Descriptor for the relation and its columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4;
*/
public com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder
getRelationDescriptorOrBuilder() {
if (relationDescriptorBuilder_ != null) {
return relationDescriptorBuilder_.getMessageOrBuilder();
} else {
return relationDescriptor_ == null
? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()
: relationDescriptor_;
}
}
/**
*
*
*
* Descriptor for the relation and its columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.RelationDescriptor,
com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder,
com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder>
getRelationDescriptorFieldBuilder() {
if (relationDescriptorBuilder_ == null) {
relationDescriptorBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.RelationDescriptor,
com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder,
com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder>(
getRelationDescriptor(), getParentForChildren(), isClean());
relationDescriptor_ = null;
}
return relationDescriptorBuilder_;
}
private int relationType_ = 0;
/**
*
*
*
* The type of this relation.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5;
*
*
* @return The enum numeric value on the wire for relationType.
*/
@java.lang.Override
public int getRelationTypeValue() {
return relationType_;
}
/**
*
*
*
* The type of this relation.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5;
*
*
* @param value The enum numeric value on the wire for relationType to set.
* @return This builder for chaining.
*/
public Builder setRelationTypeValue(int value) {
relationType_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* The type of this relation.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5;
*
*
* @return The relationType.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType
getRelationType() {
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType result =
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType
.forNumber(relationType_);
return result == null
? com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType
.UNRECOGNIZED
: result;
}
/**
*
*
*
* The type of this relation.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5;
*
*
* @param value The relationType to set.
* @return This builder for chaining.
*/
public Builder setRelationType(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
relationType_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The type of this relation.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5;
*
*
* @return This builder for chaining.
*/
public Builder clearRelationType() {
bitField0_ = (bitField0_ & ~0x00000010);
relationType_ = 0;
onChanged();
return this;
}
private java.lang.Object selectQuery_ = "";
/**
*
*
*
* The SELECT query which returns rows which this relation should contain.
*
*
* string select_query = 6;
*
* @return The selectQuery.
*/
public java.lang.String getSelectQuery() {
java.lang.Object ref = selectQuery_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
selectQuery_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The SELECT query which returns rows which this relation should contain.
*
*
* string select_query = 6;
*
* @return The bytes for selectQuery.
*/
public com.google.protobuf.ByteString getSelectQueryBytes() {
java.lang.Object ref = selectQuery_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
selectQuery_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The SELECT query which returns rows which this relation should contain.
*
*
* string select_query = 6;
*
* @param value The selectQuery to set.
* @return This builder for chaining.
*/
public Builder setSelectQuery(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
selectQuery_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* The SELECT query which returns rows which this relation should contain.
*
*
* string select_query = 6;
*
* @return This builder for chaining.
*/
public Builder clearSelectQuery() {
selectQuery_ = getDefaultInstance().getSelectQuery();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
*
*
* The SELECT query which returns rows which this relation should contain.
*
*
* string select_query = 6;
*
* @param value The bytes for selectQuery to set.
* @return This builder for chaining.
*/
public Builder setSelectQueryBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
selectQuery_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList preOperations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePreOperationsIsMutable() {
if (!preOperations_.isModifiable()) {
preOperations_ = new com.google.protobuf.LazyStringArrayList(preOperations_);
}
bitField0_ |= 0x00000040;
}
/**
*
*
*
* SQL statements to be executed before creating the relation.
*
*
* repeated string pre_operations = 7;
*
* @return A list containing the preOperations.
*/
public com.google.protobuf.ProtocolStringList getPreOperationsList() {
preOperations_.makeImmutable();
return preOperations_;
}
/**
*
*
*
* SQL statements to be executed before creating the relation.
*
*
* repeated string pre_operations = 7;
*
* @return The count of preOperations.
*/
public int getPreOperationsCount() {
return preOperations_.size();
}
/**
*
*
*
* SQL statements to be executed before creating the relation.
*
*
* repeated string pre_operations = 7;
*
* @param index The index of the element to return.
* @return The preOperations at the given index.
*/
public java.lang.String getPreOperations(int index) {
return preOperations_.get(index);
}
/**
*
*
*
* SQL statements to be executed before creating the relation.
*
*
* repeated string pre_operations = 7;
*
* @param index The index of the value to return.
* @return The bytes of the preOperations at the given index.
*/
public com.google.protobuf.ByteString getPreOperationsBytes(int index) {
return preOperations_.getByteString(index);
}
/**
*
*
*
* SQL statements to be executed before creating the relation.
*
*
* repeated string pre_operations = 7;
*
* @param index The index to set the value at.
* @param value The preOperations to set.
* @return This builder for chaining.
*/
public Builder setPreOperations(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreOperationsIsMutable();
preOperations_.set(index, value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* SQL statements to be executed before creating the relation.
*
*
* repeated string pre_operations = 7;
*
* @param value The preOperations to add.
* @return This builder for chaining.
*/
public Builder addPreOperations(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePreOperationsIsMutable();
preOperations_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* SQL statements to be executed before creating the relation.
*
*
* repeated string pre_operations = 7;
*
* @param values The preOperations to add.
* @return This builder for chaining.
*/
public Builder addAllPreOperations(java.lang.Iterable values) {
ensurePreOperationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, preOperations_);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* SQL statements to be executed before creating the relation.
*
*
* repeated string pre_operations = 7;
*
* @return This builder for chaining.
*/
public Builder clearPreOperations() {
preOperations_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
;
onChanged();
return this;
}
/**
*
*
*
* SQL statements to be executed before creating the relation.
*
*
* repeated string pre_operations = 7;
*
* @param value The bytes of the preOperations to add.
* @return This builder for chaining.
*/
public Builder addPreOperationsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePreOperationsIsMutable();
preOperations_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList postOperations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePostOperationsIsMutable() {
if (!postOperations_.isModifiable()) {
postOperations_ = new com.google.protobuf.LazyStringArrayList(postOperations_);
}
bitField0_ |= 0x00000080;
}
/**
*
*
*
* SQL statements to be executed after creating the relation.
*
*
* repeated string post_operations = 8;
*
* @return A list containing the postOperations.
*/
public com.google.protobuf.ProtocolStringList getPostOperationsList() {
postOperations_.makeImmutable();
return postOperations_;
}
/**
*
*
*
* SQL statements to be executed after creating the relation.
*
*
* repeated string post_operations = 8;
*
* @return The count of postOperations.
*/
public int getPostOperationsCount() {
return postOperations_.size();
}
/**
*
*
*
* SQL statements to be executed after creating the relation.
*
*
* repeated string post_operations = 8;
*
* @param index The index of the element to return.
* @return The postOperations at the given index.
*/
public java.lang.String getPostOperations(int index) {
return postOperations_.get(index);
}
/**
*
*
*
* SQL statements to be executed after creating the relation.
*
*
* repeated string post_operations = 8;
*
* @param index The index of the value to return.
* @return The bytes of the postOperations at the given index.
*/
public com.google.protobuf.ByteString getPostOperationsBytes(int index) {
return postOperations_.getByteString(index);
}
/**
*
*
*
* SQL statements to be executed after creating the relation.
*
*
* repeated string post_operations = 8;
*
* @param index The index to set the value at.
* @param value The postOperations to set.
* @return This builder for chaining.
*/
public Builder setPostOperations(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostOperationsIsMutable();
postOperations_.set(index, value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* SQL statements to be executed after creating the relation.
*
*
* repeated string post_operations = 8;
*
* @param value The postOperations to add.
* @return This builder for chaining.
*/
public Builder addPostOperations(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePostOperationsIsMutable();
postOperations_.add(value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* SQL statements to be executed after creating the relation.
*
*
* repeated string post_operations = 8;
*
* @param values The postOperations to add.
* @return This builder for chaining.
*/
public Builder addAllPostOperations(java.lang.Iterable values) {
ensurePostOperationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, postOperations_);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* SQL statements to be executed after creating the relation.
*
*
* repeated string post_operations = 8;
*
* @return This builder for chaining.
*/
public Builder clearPostOperations() {
postOperations_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
;
onChanged();
return this;
}
/**
*
*
*
* SQL statements to be executed after creating the relation.
*
*
* repeated string post_operations = 8;
*
* @param value The bytes of the postOperations to add.
* @return This builder for chaining.
*/
public Builder addPostOperationsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePostOperationsIsMutable();
postOperations_.add(value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig
incrementalTableConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig.Builder,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfigOrBuilder>
incrementalTableConfigBuilder_;
/**
*
*
*
* Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
* `relation_type` is `INCREMENTAL_TABLE`.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9;
*
*
* @return Whether the incrementalTableConfig field is set.
*/
public boolean hasIncrementalTableConfig() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
*
*
* Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
* `relation_type` is `INCREMENTAL_TABLE`.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9;
*
*
* @return The incrementalTableConfig.
*/
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig
getIncrementalTableConfig() {
if (incrementalTableConfigBuilder_ == null) {
return incrementalTableConfig_ == null
? com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig.getDefaultInstance()
: incrementalTableConfig_;
} else {
return incrementalTableConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
* `relation_type` is `INCREMENTAL_TABLE`.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9;
*
*/
public Builder setIncrementalTableConfig(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig
value) {
if (incrementalTableConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
incrementalTableConfig_ = value;
} else {
incrementalTableConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
* `relation_type` is `INCREMENTAL_TABLE`.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9;
*
*/
public Builder setIncrementalTableConfig(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig
.Builder
builderForValue) {
if (incrementalTableConfigBuilder_ == null) {
incrementalTableConfig_ = builderForValue.build();
} else {
incrementalTableConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
* `relation_type` is `INCREMENTAL_TABLE`.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9;
*
*/
public Builder mergeIncrementalTableConfig(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig
value) {
if (incrementalTableConfigBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0)
&& incrementalTableConfig_ != null
&& incrementalTableConfig_
!= com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig.getDefaultInstance()) {
getIncrementalTableConfigBuilder().mergeFrom(value);
} else {
incrementalTableConfig_ = value;
}
} else {
incrementalTableConfigBuilder_.mergeFrom(value);
}
if (incrementalTableConfig_ != null) {
bitField0_ |= 0x00000100;
onChanged();
}
return this;
}
/**
*
*
*
* Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
* `relation_type` is `INCREMENTAL_TABLE`.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9;
*
*/
public Builder clearIncrementalTableConfig() {
bitField0_ = (bitField0_ & ~0x00000100);
incrementalTableConfig_ = null;
if (incrementalTableConfigBuilder_ != null) {
incrementalTableConfigBuilder_.dispose();
incrementalTableConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
* `relation_type` is `INCREMENTAL_TABLE`.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9;
*
*/
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig.Builder
getIncrementalTableConfigBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getIncrementalTableConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
* `relation_type` is `INCREMENTAL_TABLE`.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9;
*
*/
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfigOrBuilder
getIncrementalTableConfigOrBuilder() {
if (incrementalTableConfigBuilder_ != null) {
return incrementalTableConfigBuilder_.getMessageOrBuilder();
} else {
return incrementalTableConfig_ == null
? com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig.getDefaultInstance()
: incrementalTableConfig_;
}
}
/**
*
*
*
* Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
* `relation_type` is `INCREMENTAL_TABLE`.
*
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig.Builder,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfigOrBuilder>
getIncrementalTableConfigFieldBuilder() {
if (incrementalTableConfigBuilder_ == null) {
incrementalTableConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfig.Builder,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.IncrementalTableConfigOrBuilder>(
getIncrementalTableConfig(), getParentForChildren(), isClean());
incrementalTableConfig_ = null;
}
return incrementalTableConfigBuilder_;
}
private java.lang.Object partitionExpression_ = "";
/**
*
*
*
* The SQL expression used to partition the relation.
*
*
* string partition_expression = 10;
*
* @return The partitionExpression.
*/
public java.lang.String getPartitionExpression() {
java.lang.Object ref = partitionExpression_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
partitionExpression_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The SQL expression used to partition the relation.
*
*
* string partition_expression = 10;
*
* @return The bytes for partitionExpression.
*/
public com.google.protobuf.ByteString getPartitionExpressionBytes() {
java.lang.Object ref = partitionExpression_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
partitionExpression_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The SQL expression used to partition the relation.
*
*
* string partition_expression = 10;
*
* @param value The partitionExpression to set.
* @return This builder for chaining.
*/
public Builder setPartitionExpression(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
partitionExpression_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*
*
* The SQL expression used to partition the relation.
*
*
* string partition_expression = 10;
*
* @return This builder for chaining.
*/
public Builder clearPartitionExpression() {
partitionExpression_ = getDefaultInstance().getPartitionExpression();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
*
*
*
* The SQL expression used to partition the relation.
*
*
* string partition_expression = 10;
*
* @param value The bytes for partitionExpression to set.
* @return This builder for chaining.
*/
public Builder setPartitionExpressionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
partitionExpression_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList clusterExpressions_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureClusterExpressionsIsMutable() {
if (!clusterExpressions_.isModifiable()) {
clusterExpressions_ = new com.google.protobuf.LazyStringArrayList(clusterExpressions_);
}
bitField0_ |= 0x00000400;
}
/**
*
*
*
* A list of columns or SQL expressions used to cluster the table.
*
*
* repeated string cluster_expressions = 11;
*
* @return A list containing the clusterExpressions.
*/
public com.google.protobuf.ProtocolStringList getClusterExpressionsList() {
clusterExpressions_.makeImmutable();
return clusterExpressions_;
}
/**
*
*
*
* A list of columns or SQL expressions used to cluster the table.
*
*
* repeated string cluster_expressions = 11;
*
* @return The count of clusterExpressions.
*/
public int getClusterExpressionsCount() {
return clusterExpressions_.size();
}
/**
*
*
*
* A list of columns or SQL expressions used to cluster the table.
*
*
* repeated string cluster_expressions = 11;
*
* @param index The index of the element to return.
* @return The clusterExpressions at the given index.
*/
public java.lang.String getClusterExpressions(int index) {
return clusterExpressions_.get(index);
}
/**
*
*
*
* A list of columns or SQL expressions used to cluster the table.
*
*
* repeated string cluster_expressions = 11;
*
* @param index The index of the value to return.
* @return The bytes of the clusterExpressions at the given index.
*/
public com.google.protobuf.ByteString getClusterExpressionsBytes(int index) {
return clusterExpressions_.getByteString(index);
}
/**
*
*
*
* A list of columns or SQL expressions used to cluster the table.
*
*
* repeated string cluster_expressions = 11;
*
* @param index The index to set the value at.
* @param value The clusterExpressions to set.
* @return This builder for chaining.
*/
public Builder setClusterExpressions(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureClusterExpressionsIsMutable();
clusterExpressions_.set(index, value);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*
*
* A list of columns or SQL expressions used to cluster the table.
*
*
* repeated string cluster_expressions = 11;
*
* @param value The clusterExpressions to add.
* @return This builder for chaining.
*/
public Builder addClusterExpressions(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureClusterExpressionsIsMutable();
clusterExpressions_.add(value);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*
*
* A list of columns or SQL expressions used to cluster the table.
*
*
* repeated string cluster_expressions = 11;
*
* @param values The clusterExpressions to add.
* @return This builder for chaining.
*/
public Builder addAllClusterExpressions(java.lang.Iterable values) {
ensureClusterExpressionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusterExpressions_);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*
*
* A list of columns or SQL expressions used to cluster the table.
*
*
* repeated string cluster_expressions = 11;
*
* @return This builder for chaining.
*/
public Builder clearClusterExpressions() {
clusterExpressions_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
;
onChanged();
return this;
}
/**
*
*
*
* A list of columns or SQL expressions used to cluster the table.
*
*
* repeated string cluster_expressions = 11;
*
* @param value The bytes of the clusterExpressions to add.
* @return This builder for chaining.
*/
public Builder addClusterExpressionsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureClusterExpressionsIsMutable();
clusterExpressions_.add(value);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private int partitionExpirationDays_;
/**
*
*
*
* Sets the partition expiration in days.
*
*
* int32 partition_expiration_days = 12;
*
* @return The partitionExpirationDays.
*/
@java.lang.Override
public int getPartitionExpirationDays() {
return partitionExpirationDays_;
}
/**
*
*
*
* Sets the partition expiration in days.
*
*
* int32 partition_expiration_days = 12;
*
* @param value The partitionExpirationDays to set.
* @return This builder for chaining.
*/
public Builder setPartitionExpirationDays(int value) {
partitionExpirationDays_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*
*
* Sets the partition expiration in days.
*
*
* int32 partition_expiration_days = 12;
*
* @return This builder for chaining.
*/
public Builder clearPartitionExpirationDays() {
bitField0_ = (bitField0_ & ~0x00000800);
partitionExpirationDays_ = 0;
onChanged();
return this;
}
private boolean requirePartitionFilter_;
/**
*
*
*
* Specifies whether queries on this table must include a predicate filter
* that filters on the partitioning column.
*
*
* bool require_partition_filter = 13;
*
* @return The requirePartitionFilter.
*/
@java.lang.Override
public boolean getRequirePartitionFilter() {
return requirePartitionFilter_;
}
/**
*
*
*
* Specifies whether queries on this table must include a predicate filter
* that filters on the partitioning column.
*
*
* bool require_partition_filter = 13;
*
* @param value The requirePartitionFilter to set.
* @return This builder for chaining.
*/
public Builder setRequirePartitionFilter(boolean value) {
requirePartitionFilter_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*
*
* Specifies whether queries on this table must include a predicate filter
* that filters on the partitioning column.
*
*
* bool require_partition_filter = 13;
*
* @return This builder for chaining.
*/
public Builder clearRequirePartitionFilter() {
bitField0_ = (bitField0_ & ~0x00001000);
requirePartitionFilter_ = false;
onChanged();
return this;
}
private com.google.protobuf.MapField additionalOptions_;
private com.google.protobuf.MapField
internalGetAdditionalOptions() {
if (additionalOptions_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AdditionalOptionsDefaultEntryHolder.defaultEntry);
}
return additionalOptions_;
}
private com.google.protobuf.MapField
internalGetMutableAdditionalOptions() {
if (additionalOptions_ == null) {
additionalOptions_ =
com.google.protobuf.MapField.newMapField(
AdditionalOptionsDefaultEntryHolder.defaultEntry);
}
if (!additionalOptions_.isMutable()) {
additionalOptions_ = additionalOptions_.copy();
}
bitField0_ |= 0x00002000;
onChanged();
return additionalOptions_;
}
public int getAdditionalOptionsCount() {
return internalGetAdditionalOptions().getMap().size();
}
/**
*
*
*
* Additional options that will be provided as key/value pairs into the
* options clause of a create table/view statement. See
* https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
* for more information on which options are supported.
*
*
* map<string, string> additional_options = 14;
*/
@java.lang.Override
public boolean containsAdditionalOptions(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetAdditionalOptions().getMap().containsKey(key);
}
/** Use {@link #getAdditionalOptionsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAdditionalOptions() {
return getAdditionalOptionsMap();
}
/**
*
*
*
* Additional options that will be provided as key/value pairs into the
* options clause of a create table/view statement. See
* https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
* for more information on which options are supported.
*
*
* map<string, string> additional_options = 14;
*/
@java.lang.Override
public java.util.Map getAdditionalOptionsMap() {
return internalGetAdditionalOptions().getMap();
}
/**
*
*
*
* Additional options that will be provided as key/value pairs into the
* options clause of a create table/view statement. See
* https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
* for more information on which options are supported.
*
*
* map<string, string> additional_options = 14;
*/
@java.lang.Override
public /* nullable */ java.lang.String getAdditionalOptionsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetAdditionalOptions().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Additional options that will be provided as key/value pairs into the
* options clause of a create table/view statement. See
* https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
* for more information on which options are supported.
*
*
* map<string, string> additional_options = 14;
*/
@java.lang.Override
public java.lang.String getAdditionalOptionsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetAdditionalOptions().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearAdditionalOptions() {
bitField0_ = (bitField0_ & ~0x00002000);
internalGetMutableAdditionalOptions().getMutableMap().clear();
return this;
}
/**
*
*
*
* Additional options that will be provided as key/value pairs into the
* options clause of a create table/view statement. See
* https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
* for more information on which options are supported.
*
*
* map<string, string> additional_options = 14;
*/
public Builder removeAdditionalOptions(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableAdditionalOptions().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableAdditionalOptions() {
bitField0_ |= 0x00002000;
return internalGetMutableAdditionalOptions().getMutableMap();
}
/**
*
*
*
* Additional options that will be provided as key/value pairs into the
* options clause of a create table/view statement. See
* https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
* for more information on which options are supported.
*
*
* map<string, string> additional_options = 14;
*/
public Builder putAdditionalOptions(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableAdditionalOptions().getMutableMap().put(key, value);
bitField0_ |= 0x00002000;
return this;
}
/**
*
*
*
* Additional options that will be provided as key/value pairs into the
* options clause of a create table/view statement. See
* https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
* for more information on which options are supported.
*
*
* map<string, string> additional_options = 14;
*/
public Builder putAllAdditionalOptions(
java.util.Map values) {
internalGetMutableAdditionalOptions().getMutableMap().putAll(values);
bitField0_ |= 0x00002000;
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CompilationResultAction.Relation)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CompilationResultAction.Relation)
private static final com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation();
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Relation 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.CompilationResultAction.Relation
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OperationsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CompilationResultAction.Operations)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
java.util.List getDependencyTargetsList();
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
com.google.cloud.dataform.v1beta1.Target getDependencyTargets(int index);
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
int getDependencyTargetsCount();
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
java.util.List extends com.google.cloud.dataform.v1beta1.TargetOrBuilder>
getDependencyTargetsOrBuilderList();
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
com.google.cloud.dataform.v1beta1.TargetOrBuilder getDependencyTargetsOrBuilder(int index);
/**
*
*
*
* Whether this action is disabled (i.e. should not be run).
*
*
* bool disabled = 2;
*
* @return The disabled.
*/
boolean getDisabled();
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return A list containing the tags.
*/
java.util.List getTagsList();
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return The count of tags.
*/
int getTagsCount();
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index of the element to return.
* @return The tags at the given index.
*/
java.lang.String getTags(int index);
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
com.google.protobuf.ByteString getTagsBytes(int index);
/**
*
*
*
* Descriptor for any output relation and its columns. Only set if
* `has_output` is true.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*
* @return Whether the relationDescriptor field is set.
*/
boolean hasRelationDescriptor();
/**
*
*
*
* Descriptor for any output relation and its columns. Only set if
* `has_output` is true.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*
* @return The relationDescriptor.
*/
com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor();
/**
*
*
*
* Descriptor for any output relation and its columns. Only set if
* `has_output` is true.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*/
com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder getRelationDescriptorOrBuilder();
/**
*
*
*
* A list of arbitrary SQL statements that will be executed without
* alteration.
*
*
* repeated string queries = 4;
*
* @return A list containing the queries.
*/
java.util.List getQueriesList();
/**
*
*
*
* A list of arbitrary SQL statements that will be executed without
* alteration.
*
*
* repeated string queries = 4;
*
* @return The count of queries.
*/
int getQueriesCount();
/**
*
*
*
* A list of arbitrary SQL statements that will be executed without
* alteration.
*
*
* repeated string queries = 4;
*
* @param index The index of the element to return.
* @return The queries at the given index.
*/
java.lang.String getQueries(int index);
/**
*
*
*
* A list of arbitrary SQL statements that will be executed without
* alteration.
*
*
* repeated string queries = 4;
*
* @param index The index of the value to return.
* @return The bytes of the queries at the given index.
*/
com.google.protobuf.ByteString getQueriesBytes(int index);
/**
*
*
*
* Whether these operations produce an output relation.
*
*
* bool has_output = 5;
*
* @return The hasOutput.
*/
boolean getHasOutput();
}
/**
*
*
*
* Represents a list of arbitrary database operations.
*
*
* Protobuf type {@code google.cloud.dataform.v1beta1.CompilationResultAction.Operations}
*/
public static final class Operations extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CompilationResultAction.Operations)
OperationsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Operations.newBuilder() to construct.
private Operations(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Operations() {
dependencyTargets_ = java.util.Collections.emptyList();
tags_ = com.google.protobuf.LazyStringArrayList.emptyList();
queries_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Operations();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Operations_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Operations_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.class,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.Builder.class);
}
private int bitField0_;
public static final int DEPENDENCY_TARGETS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List dependencyTargets_;
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
@java.lang.Override
public java.util.List getDependencyTargetsList() {
return dependencyTargets_;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
@java.lang.Override
public java.util.List extends com.google.cloud.dataform.v1beta1.TargetOrBuilder>
getDependencyTargetsOrBuilderList() {
return dependencyTargets_;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
@java.lang.Override
public int getDependencyTargetsCount() {
return dependencyTargets_.size();
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.Target getDependencyTargets(int index) {
return dependencyTargets_.get(index);
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.TargetOrBuilder getDependencyTargetsOrBuilder(
int index) {
return dependencyTargets_.get(index);
}
public static final int DISABLED_FIELD_NUMBER = 2;
private boolean disabled_ = false;
/**
*
*
*
* Whether this action is disabled (i.e. should not be run).
*
*
* bool disabled = 2;
*
* @return The disabled.
*/
@java.lang.Override
public boolean getDisabled() {
return disabled_;
}
public static final int TAGS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList tags_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList getTagsList() {
return tags_;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index of the element to return.
* @return The tags at the given index.
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
public com.google.protobuf.ByteString getTagsBytes(int index) {
return tags_.getByteString(index);
}
public static final int RELATION_DESCRIPTOR_FIELD_NUMBER = 6;
private com.google.cloud.dataform.v1beta1.RelationDescriptor relationDescriptor_;
/**
*
*
*
* Descriptor for any output relation and its columns. Only set if
* `has_output` is true.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*
* @return Whether the relationDescriptor field is set.
*/
@java.lang.Override
public boolean hasRelationDescriptor() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Descriptor for any output relation and its columns. Only set if
* `has_output` is true.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*
* @return The relationDescriptor.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor() {
return relationDescriptor_ == null
? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()
: relationDescriptor_;
}
/**
*
*
*
* Descriptor for any output relation and its columns. Only set if
* `has_output` is true.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder
getRelationDescriptorOrBuilder() {
return relationDescriptor_ == null
? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()
: relationDescriptor_;
}
public static final int QUERIES_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList queries_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* A list of arbitrary SQL statements that will be executed without
* alteration.
*
*
* repeated string queries = 4;
*
* @return A list containing the queries.
*/
public com.google.protobuf.ProtocolStringList getQueriesList() {
return queries_;
}
/**
*
*
*
* A list of arbitrary SQL statements that will be executed without
* alteration.
*
*
* repeated string queries = 4;
*
* @return The count of queries.
*/
public int getQueriesCount() {
return queries_.size();
}
/**
*
*
*
* A list of arbitrary SQL statements that will be executed without
* alteration.
*
*
* repeated string queries = 4;
*
* @param index The index of the element to return.
* @return The queries at the given index.
*/
public java.lang.String getQueries(int index) {
return queries_.get(index);
}
/**
*
*
*
* A list of arbitrary SQL statements that will be executed without
* alteration.
*
*
* repeated string queries = 4;
*
* @param index The index of the value to return.
* @return The bytes of the queries at the given index.
*/
public com.google.protobuf.ByteString getQueriesBytes(int index) {
return queries_.getByteString(index);
}
public static final int HAS_OUTPUT_FIELD_NUMBER = 5;
private boolean hasOutput_ = false;
/**
*
*
*
* Whether these operations produce an output relation.
*
*
* bool has_output = 5;
*
* @return The hasOutput.
*/
@java.lang.Override
public boolean getHasOutput() {
return hasOutput_;
}
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 < dependencyTargets_.size(); i++) {
output.writeMessage(1, dependencyTargets_.get(i));
}
if (disabled_ != false) {
output.writeBool(2, disabled_);
}
for (int i = 0; i < tags_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tags_.getRaw(i));
}
for (int i = 0; i < queries_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, queries_.getRaw(i));
}
if (hasOutput_ != false) {
output.writeBool(5, hasOutput_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(6, getRelationDescriptor());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < dependencyTargets_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(1, dependencyTargets_.get(i));
}
if (disabled_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, disabled_);
}
{
int dataSize = 0;
for (int i = 0; i < tags_.size(); i++) {
dataSize += computeStringSizeNoTag(tags_.getRaw(i));
}
size += dataSize;
size += 1 * getTagsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < queries_.size(); i++) {
dataSize += computeStringSizeNoTag(queries_.getRaw(i));
}
size += dataSize;
size += 1 * getQueriesList().size();
}
if (hasOutput_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, hasOutput_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRelationDescriptor());
}
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.CompilationResultAction.Operations)) {
return super.equals(obj);
}
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations other =
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations) obj;
if (!getDependencyTargetsList().equals(other.getDependencyTargetsList())) return false;
if (getDisabled() != other.getDisabled()) return false;
if (!getTagsList().equals(other.getTagsList())) return false;
if (hasRelationDescriptor() != other.hasRelationDescriptor()) return false;
if (hasRelationDescriptor()) {
if (!getRelationDescriptor().equals(other.getRelationDescriptor())) return false;
}
if (!getQueriesList().equals(other.getQueriesList())) return false;
if (getHasOutput() != other.getHasOutput()) 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 (getDependencyTargetsCount() > 0) {
hash = (37 * hash) + DEPENDENCY_TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getDependencyTargetsList().hashCode();
}
hash = (37 * hash) + DISABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled());
if (getTagsCount() > 0) {
hash = (37 * hash) + TAGS_FIELD_NUMBER;
hash = (53 * hash) + getTagsList().hashCode();
}
if (hasRelationDescriptor()) {
hash = (37 * hash) + RELATION_DESCRIPTOR_FIELD_NUMBER;
hash = (53 * hash) + getRelationDescriptor().hashCode();
}
if (getQueriesCount() > 0) {
hash = (37 * hash) + QUERIES_FIELD_NUMBER;
hash = (53 * hash) + getQueriesList().hashCode();
}
hash = (37 * hash) + HAS_OUTPUT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasOutput());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations 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.CompilationResultAction.Operations parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations 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.CompilationResultAction.Operations parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations 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.CompilationResultAction.Operations parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations 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.CompilationResultAction.Operations
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations
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.CompilationResultAction.Operations 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.CompilationResultAction.Operations 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.CompilationResultAction.Operations 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 list of arbitrary database operations.
*
*
* Protobuf type {@code google.cloud.dataform.v1beta1.CompilationResultAction.Operations}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CompilationResultAction.Operations)
com.google.cloud.dataform.v1beta1.CompilationResultAction.OperationsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Operations_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Operations_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.class,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.Builder.class);
}
// Construct using
// com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getDependencyTargetsFieldBuilder();
getRelationDescriptorFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (dependencyTargetsBuilder_ == null) {
dependencyTargets_ = java.util.Collections.emptyList();
} else {
dependencyTargets_ = null;
dependencyTargetsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
disabled_ = false;
tags_ = com.google.protobuf.LazyStringArrayList.emptyList();
relationDescriptor_ = null;
if (relationDescriptorBuilder_ != null) {
relationDescriptorBuilder_.dispose();
relationDescriptorBuilder_ = null;
}
queries_ = com.google.protobuf.LazyStringArrayList.emptyList();
hasOutput_ = false;
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_CompilationResultAction_Operations_descriptor;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations
getDefaultInstanceForType() {
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations build() {
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations buildPartial() {
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations result =
new com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations result) {
if (dependencyTargetsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
dependencyTargets_ = java.util.Collections.unmodifiableList(dependencyTargets_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.dependencyTargets_ = dependencyTargets_;
} else {
result.dependencyTargets_ = dependencyTargetsBuilder_.build();
}
}
private void buildPartial0(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.disabled_ = disabled_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
tags_.makeImmutable();
result.tags_ = tags_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.relationDescriptor_ =
relationDescriptorBuilder_ == null
? relationDescriptor_
: relationDescriptorBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
queries_.makeImmutable();
result.queries_ = queries_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.hasOutput_ = hasOutput_;
}
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.v1beta1.CompilationResultAction.Operations) {
return mergeFrom(
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations other) {
if (other
== com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations
.getDefaultInstance()) return this;
if (dependencyTargetsBuilder_ == null) {
if (!other.dependencyTargets_.isEmpty()) {
if (dependencyTargets_.isEmpty()) {
dependencyTargets_ = other.dependencyTargets_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDependencyTargetsIsMutable();
dependencyTargets_.addAll(other.dependencyTargets_);
}
onChanged();
}
} else {
if (!other.dependencyTargets_.isEmpty()) {
if (dependencyTargetsBuilder_.isEmpty()) {
dependencyTargetsBuilder_.dispose();
dependencyTargetsBuilder_ = null;
dependencyTargets_ = other.dependencyTargets_;
bitField0_ = (bitField0_ & ~0x00000001);
dependencyTargetsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getDependencyTargetsFieldBuilder()
: null;
} else {
dependencyTargetsBuilder_.addAllMessages(other.dependencyTargets_);
}
}
}
if (other.getDisabled() != false) {
setDisabled(other.getDisabled());
}
if (!other.tags_.isEmpty()) {
if (tags_.isEmpty()) {
tags_ = other.tags_;
bitField0_ |= 0x00000004;
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
}
onChanged();
}
if (other.hasRelationDescriptor()) {
mergeRelationDescriptor(other.getRelationDescriptor());
}
if (!other.queries_.isEmpty()) {
if (queries_.isEmpty()) {
queries_ = other.queries_;
bitField0_ |= 0x00000010;
} else {
ensureQueriesIsMutable();
queries_.addAll(other.queries_);
}
onChanged();
}
if (other.getHasOutput() != false) {
setHasOutput(other.getHasOutput());
}
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.v1beta1.Target m =
input.readMessage(
com.google.cloud.dataform.v1beta1.Target.parser(), extensionRegistry);
if (dependencyTargetsBuilder_ == null) {
ensureDependencyTargetsIsMutable();
dependencyTargets_.add(m);
} else {
dependencyTargetsBuilder_.addMessage(m);
}
break;
} // case 10
case 16:
{
disabled_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
java.lang.String s = input.readStringRequireUtf8();
ensureTagsIsMutable();
tags_.add(s);
break;
} // case 26
case 34:
{
java.lang.String s = input.readStringRequireUtf8();
ensureQueriesIsMutable();
queries_.add(s);
break;
} // case 34
case 40:
{
hasOutput_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 40
case 50:
{
input.readMessage(
getRelationDescriptorFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
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 bitField0_;
private java.util.List dependencyTargets_ =
java.util.Collections.emptyList();
private void ensureDependencyTargetsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
dependencyTargets_ =
new java.util.ArrayList(dependencyTargets_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>
dependencyTargetsBuilder_;
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public java.util.List getDependencyTargetsList() {
if (dependencyTargetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(dependencyTargets_);
} else {
return dependencyTargetsBuilder_.getMessageList();
}
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public int getDependencyTargetsCount() {
if (dependencyTargetsBuilder_ == null) {
return dependencyTargets_.size();
} else {
return dependencyTargetsBuilder_.getCount();
}
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public com.google.cloud.dataform.v1beta1.Target getDependencyTargets(int index) {
if (dependencyTargetsBuilder_ == null) {
return dependencyTargets_.get(index);
} else {
return dependencyTargetsBuilder_.getMessage(index);
}
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder setDependencyTargets(
int index, com.google.cloud.dataform.v1beta1.Target value) {
if (dependencyTargetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDependencyTargetsIsMutable();
dependencyTargets_.set(index, value);
onChanged();
} else {
dependencyTargetsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder setDependencyTargets(
int index, com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) {
if (dependencyTargetsBuilder_ == null) {
ensureDependencyTargetsIsMutable();
dependencyTargets_.set(index, builderForValue.build());
onChanged();
} else {
dependencyTargetsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder addDependencyTargets(com.google.cloud.dataform.v1beta1.Target value) {
if (dependencyTargetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDependencyTargetsIsMutable();
dependencyTargets_.add(value);
onChanged();
} else {
dependencyTargetsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder addDependencyTargets(
int index, com.google.cloud.dataform.v1beta1.Target value) {
if (dependencyTargetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDependencyTargetsIsMutable();
dependencyTargets_.add(index, value);
onChanged();
} else {
dependencyTargetsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder addDependencyTargets(
com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) {
if (dependencyTargetsBuilder_ == null) {
ensureDependencyTargetsIsMutable();
dependencyTargets_.add(builderForValue.build());
onChanged();
} else {
dependencyTargetsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder addDependencyTargets(
int index, com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) {
if (dependencyTargetsBuilder_ == null) {
ensureDependencyTargetsIsMutable();
dependencyTargets_.add(index, builderForValue.build());
onChanged();
} else {
dependencyTargetsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder addAllDependencyTargets(
java.lang.Iterable extends com.google.cloud.dataform.v1beta1.Target> values) {
if (dependencyTargetsBuilder_ == null) {
ensureDependencyTargetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dependencyTargets_);
onChanged();
} else {
dependencyTargetsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder clearDependencyTargets() {
if (dependencyTargetsBuilder_ == null) {
dependencyTargets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
dependencyTargetsBuilder_.clear();
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder removeDependencyTargets(int index) {
if (dependencyTargetsBuilder_ == null) {
ensureDependencyTargetsIsMutable();
dependencyTargets_.remove(index);
onChanged();
} else {
dependencyTargetsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public com.google.cloud.dataform.v1beta1.Target.Builder getDependencyTargetsBuilder(
int index) {
return getDependencyTargetsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public com.google.cloud.dataform.v1beta1.TargetOrBuilder getDependencyTargetsOrBuilder(
int index) {
if (dependencyTargetsBuilder_ == null) {
return dependencyTargets_.get(index);
} else {
return dependencyTargetsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public java.util.List extends com.google.cloud.dataform.v1beta1.TargetOrBuilder>
getDependencyTargetsOrBuilderList() {
if (dependencyTargetsBuilder_ != null) {
return dependencyTargetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(dependencyTargets_);
}
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public com.google.cloud.dataform.v1beta1.Target.Builder addDependencyTargetsBuilder() {
return getDependencyTargetsFieldBuilder()
.addBuilder(com.google.cloud.dataform.v1beta1.Target.getDefaultInstance());
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public com.google.cloud.dataform.v1beta1.Target.Builder addDependencyTargetsBuilder(
int index) {
return getDependencyTargetsFieldBuilder()
.addBuilder(index, com.google.cloud.dataform.v1beta1.Target.getDefaultInstance());
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public java.util.List
getDependencyTargetsBuilderList() {
return getDependencyTargetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>
getDependencyTargetsFieldBuilder() {
if (dependencyTargetsBuilder_ == null) {
dependencyTargetsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>(
dependencyTargets_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
dependencyTargets_ = null;
}
return dependencyTargetsBuilder_;
}
private boolean disabled_;
/**
*
*
*
* Whether this action is disabled (i.e. should not be run).
*
*
* bool disabled = 2;
*
* @return The disabled.
*/
@java.lang.Override
public boolean getDisabled() {
return disabled_;
}
/**
*
*
*
* Whether this action is disabled (i.e. should not be run).
*
*
* bool disabled = 2;
*
* @param value The disabled to set.
* @return This builder for chaining.
*/
public Builder setDisabled(boolean value) {
disabled_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Whether this action is disabled (i.e. should not be run).
*
*
* bool disabled = 2;
*
* @return This builder for chaining.
*/
public Builder clearDisabled() {
bitField0_ = (bitField0_ & ~0x00000002);
disabled_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList tags_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureTagsIsMutable() {
if (!tags_.isModifiable()) {
tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
}
bitField0_ |= 0x00000004;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList getTagsList() {
tags_.makeImmutable();
return tags_;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index of the element to return.
* @return The tags at the given index.
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
public com.google.protobuf.ByteString getTagsBytes(int index) {
return tags_.getByteString(index);
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index to set the value at.
* @param value The tags to set.
* @return This builder for chaining.
*/
public Builder setTags(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param value The tags to add.
* @return This builder for chaining.
*/
public Builder addTags(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param values The tags to add.
* @return This builder for chaining.
*/
public Builder addAllTags(java.lang.Iterable values) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return This builder for chaining.
*/
public Builder clearTags() {
tags_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
;
onChanged();
return this;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param value The bytes of the tags to add.
* @return This builder for chaining.
*/
public Builder addTagsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTagsIsMutable();
tags_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.cloud.dataform.v1beta1.RelationDescriptor relationDescriptor_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.RelationDescriptor,
com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder,
com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder>
relationDescriptorBuilder_;
/**
*
*
*
* Descriptor for any output relation and its columns. Only set if
* `has_output` is true.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*
* @return Whether the relationDescriptor field is set.
*/
public boolean hasRelationDescriptor() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Descriptor for any output relation and its columns. Only set if
* `has_output` is true.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*
* @return The relationDescriptor.
*/
public com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor() {
if (relationDescriptorBuilder_ == null) {
return relationDescriptor_ == null
? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()
: relationDescriptor_;
} else {
return relationDescriptorBuilder_.getMessage();
}
}
/**
*
*
*
* Descriptor for any output relation and its columns. Only set if
* `has_output` is true.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*/
public Builder setRelationDescriptor(
com.google.cloud.dataform.v1beta1.RelationDescriptor value) {
if (relationDescriptorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
relationDescriptor_ = value;
} else {
relationDescriptorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Descriptor for any output relation and its columns. Only set if
* `has_output` is true.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*/
public Builder setRelationDescriptor(
com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder builderForValue) {
if (relationDescriptorBuilder_ == null) {
relationDescriptor_ = builderForValue.build();
} else {
relationDescriptorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Descriptor for any output relation and its columns. Only set if
* `has_output` is true.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*/
public Builder mergeRelationDescriptor(
com.google.cloud.dataform.v1beta1.RelationDescriptor value) {
if (relationDescriptorBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& relationDescriptor_ != null
&& relationDescriptor_
!= com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()) {
getRelationDescriptorBuilder().mergeFrom(value);
} else {
relationDescriptor_ = value;
}
} else {
relationDescriptorBuilder_.mergeFrom(value);
}
if (relationDescriptor_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* Descriptor for any output relation and its columns. Only set if
* `has_output` is true.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*/
public Builder clearRelationDescriptor() {
bitField0_ = (bitField0_ & ~0x00000008);
relationDescriptor_ = null;
if (relationDescriptorBuilder_ != null) {
relationDescriptorBuilder_.dispose();
relationDescriptorBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Descriptor for any output relation and its columns. Only set if
* `has_output` is true.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*/
public com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder
getRelationDescriptorBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getRelationDescriptorFieldBuilder().getBuilder();
}
/**
*
*
*
* Descriptor for any output relation and its columns. Only set if
* `has_output` is true.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*/
public com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder
getRelationDescriptorOrBuilder() {
if (relationDescriptorBuilder_ != null) {
return relationDescriptorBuilder_.getMessageOrBuilder();
} else {
return relationDescriptor_ == null
? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()
: relationDescriptor_;
}
}
/**
*
*
*
* Descriptor for any output relation and its columns. Only set if
* `has_output` is true.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.RelationDescriptor,
com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder,
com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder>
getRelationDescriptorFieldBuilder() {
if (relationDescriptorBuilder_ == null) {
relationDescriptorBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.RelationDescriptor,
com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder,
com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder>(
getRelationDescriptor(), getParentForChildren(), isClean());
relationDescriptor_ = null;
}
return relationDescriptorBuilder_;
}
private com.google.protobuf.LazyStringArrayList queries_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureQueriesIsMutable() {
if (!queries_.isModifiable()) {
queries_ = new com.google.protobuf.LazyStringArrayList(queries_);
}
bitField0_ |= 0x00000010;
}
/**
*
*
*
* A list of arbitrary SQL statements that will be executed without
* alteration.
*
*
* repeated string queries = 4;
*
* @return A list containing the queries.
*/
public com.google.protobuf.ProtocolStringList getQueriesList() {
queries_.makeImmutable();
return queries_;
}
/**
*
*
*
* A list of arbitrary SQL statements that will be executed without
* alteration.
*
*
* repeated string queries = 4;
*
* @return The count of queries.
*/
public int getQueriesCount() {
return queries_.size();
}
/**
*
*
*
* A list of arbitrary SQL statements that will be executed without
* alteration.
*
*
* repeated string queries = 4;
*
* @param index The index of the element to return.
* @return The queries at the given index.
*/
public java.lang.String getQueries(int index) {
return queries_.get(index);
}
/**
*
*
*
* A list of arbitrary SQL statements that will be executed without
* alteration.
*
*
* repeated string queries = 4;
*
* @param index The index of the value to return.
* @return The bytes of the queries at the given index.
*/
public com.google.protobuf.ByteString getQueriesBytes(int index) {
return queries_.getByteString(index);
}
/**
*
*
*
* A list of arbitrary SQL statements that will be executed without
* alteration.
*
*
* repeated string queries = 4;
*
* @param index The index to set the value at.
* @param value The queries to set.
* @return This builder for chaining.
*/
public Builder setQueries(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureQueriesIsMutable();
queries_.set(index, value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* A list of arbitrary SQL statements that will be executed without
* alteration.
*
*
* repeated string queries = 4;
*
* @param value The queries to add.
* @return This builder for chaining.
*/
public Builder addQueries(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureQueriesIsMutable();
queries_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* A list of arbitrary SQL statements that will be executed without
* alteration.
*
*
* repeated string queries = 4;
*
* @param values The queries to add.
* @return This builder for chaining.
*/
public Builder addAllQueries(java.lang.Iterable values) {
ensureQueriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queries_);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* A list of arbitrary SQL statements that will be executed without
* alteration.
*
*
* repeated string queries = 4;
*
* @return This builder for chaining.
*/
public Builder clearQueries() {
queries_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
;
onChanged();
return this;
}
/**
*
*
*
* A list of arbitrary SQL statements that will be executed without
* alteration.
*
*
* repeated string queries = 4;
*
* @param value The bytes of the queries to add.
* @return This builder for chaining.
*/
public Builder addQueriesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureQueriesIsMutable();
queries_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private boolean hasOutput_;
/**
*
*
*
* Whether these operations produce an output relation.
*
*
* bool has_output = 5;
*
* @return The hasOutput.
*/
@java.lang.Override
public boolean getHasOutput() {
return hasOutput_;
}
/**
*
*
*
* Whether these operations produce an output relation.
*
*
* bool has_output = 5;
*
* @param value The hasOutput to set.
* @return This builder for chaining.
*/
public Builder setHasOutput(boolean value) {
hasOutput_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Whether these operations produce an output relation.
*
*
* bool has_output = 5;
*
* @return This builder for chaining.
*/
public Builder clearHasOutput() {
bitField0_ = (bitField0_ & ~0x00000020);
hasOutput_ = 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.v1beta1.CompilationResultAction.Operations)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CompilationResultAction.Operations)
private static final com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations();
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Operations 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.CompilationResultAction.Operations
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AssertionOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CompilationResultAction.Assertion)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
java.util.List getDependencyTargetsList();
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
com.google.cloud.dataform.v1beta1.Target getDependencyTargets(int index);
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
int getDependencyTargetsCount();
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
java.util.List extends com.google.cloud.dataform.v1beta1.TargetOrBuilder>
getDependencyTargetsOrBuilderList();
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
com.google.cloud.dataform.v1beta1.TargetOrBuilder getDependencyTargetsOrBuilder(int index);
/**
*
*
*
* The parent action of this assertion. Only set if this assertion was
* automatically generated.
*
*
* .google.cloud.dataform.v1beta1.Target parent_action = 5;
*
* @return Whether the parentAction field is set.
*/
boolean hasParentAction();
/**
*
*
*
* The parent action of this assertion. Only set if this assertion was
* automatically generated.
*
*
* .google.cloud.dataform.v1beta1.Target parent_action = 5;
*
* @return The parentAction.
*/
com.google.cloud.dataform.v1beta1.Target getParentAction();
/**
*
*
*
* The parent action of this assertion. Only set if this assertion was
* automatically generated.
*
*
* .google.cloud.dataform.v1beta1.Target parent_action = 5;
*/
com.google.cloud.dataform.v1beta1.TargetOrBuilder getParentActionOrBuilder();
/**
*
*
*
* Whether this action is disabled (i.e. should not be run).
*
*
* bool disabled = 2;
*
* @return The disabled.
*/
boolean getDisabled();
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return A list containing the tags.
*/
java.util.List getTagsList();
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return The count of tags.
*/
int getTagsCount();
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index of the element to return.
* @return The tags at the given index.
*/
java.lang.String getTags(int index);
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
com.google.protobuf.ByteString getTagsBytes(int index);
/**
*
*
*
* The SELECT query which must return zero rows in order for this assertion
* to succeed.
*
*
* string select_query = 4;
*
* @return The selectQuery.
*/
java.lang.String getSelectQuery();
/**
*
*
*
* The SELECT query which must return zero rows in order for this assertion
* to succeed.
*
*
* string select_query = 4;
*
* @return The bytes for selectQuery.
*/
com.google.protobuf.ByteString getSelectQueryBytes();
/**
*
*
*
* Descriptor for the assertion's automatically-generated view and its
* columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*
* @return Whether the relationDescriptor field is set.
*/
boolean hasRelationDescriptor();
/**
*
*
*
* Descriptor for the assertion's automatically-generated view and its
* columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*
* @return The relationDescriptor.
*/
com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor();
/**
*
*
*
* Descriptor for the assertion's automatically-generated view and its
* columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*/
com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder getRelationDescriptorOrBuilder();
}
/**
*
*
*
* Represents an assertion upon a SQL query which is required return zero
* rows.
*
*
* Protobuf type {@code google.cloud.dataform.v1beta1.CompilationResultAction.Assertion}
*/
public static final class Assertion extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CompilationResultAction.Assertion)
AssertionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Assertion.newBuilder() to construct.
private Assertion(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Assertion() {
dependencyTargets_ = java.util.Collections.emptyList();
tags_ = com.google.protobuf.LazyStringArrayList.emptyList();
selectQuery_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Assertion();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Assertion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Assertion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.class,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.Builder.class);
}
private int bitField0_;
public static final int DEPENDENCY_TARGETS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List dependencyTargets_;
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
@java.lang.Override
public java.util.List getDependencyTargetsList() {
return dependencyTargets_;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
@java.lang.Override
public java.util.List extends com.google.cloud.dataform.v1beta1.TargetOrBuilder>
getDependencyTargetsOrBuilderList() {
return dependencyTargets_;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
@java.lang.Override
public int getDependencyTargetsCount() {
return dependencyTargets_.size();
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.Target getDependencyTargets(int index) {
return dependencyTargets_.get(index);
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.TargetOrBuilder getDependencyTargetsOrBuilder(
int index) {
return dependencyTargets_.get(index);
}
public static final int PARENT_ACTION_FIELD_NUMBER = 5;
private com.google.cloud.dataform.v1beta1.Target parentAction_;
/**
*
*
*
* The parent action of this assertion. Only set if this assertion was
* automatically generated.
*
*
* .google.cloud.dataform.v1beta1.Target parent_action = 5;
*
* @return Whether the parentAction field is set.
*/
@java.lang.Override
public boolean hasParentAction() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The parent action of this assertion. Only set if this assertion was
* automatically generated.
*
*
* .google.cloud.dataform.v1beta1.Target parent_action = 5;
*
* @return The parentAction.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.Target getParentAction() {
return parentAction_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: parentAction_;
}
/**
*
*
*
* The parent action of this assertion. Only set if this assertion was
* automatically generated.
*
*
* .google.cloud.dataform.v1beta1.Target parent_action = 5;
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.TargetOrBuilder getParentActionOrBuilder() {
return parentAction_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: parentAction_;
}
public static final int DISABLED_FIELD_NUMBER = 2;
private boolean disabled_ = false;
/**
*
*
*
* Whether this action is disabled (i.e. should not be run).
*
*
* bool disabled = 2;
*
* @return The disabled.
*/
@java.lang.Override
public boolean getDisabled() {
return disabled_;
}
public static final int TAGS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList tags_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList getTagsList() {
return tags_;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index of the element to return.
* @return The tags at the given index.
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
public com.google.protobuf.ByteString getTagsBytes(int index) {
return tags_.getByteString(index);
}
public static final int SELECT_QUERY_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object selectQuery_ = "";
/**
*
*
*
* The SELECT query which must return zero rows in order for this assertion
* to succeed.
*
*
* string select_query = 4;
*
* @return The selectQuery.
*/
@java.lang.Override
public java.lang.String getSelectQuery() {
java.lang.Object ref = selectQuery_;
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();
selectQuery_ = s;
return s;
}
}
/**
*
*
*
* The SELECT query which must return zero rows in order for this assertion
* to succeed.
*
*
* string select_query = 4;
*
* @return The bytes for selectQuery.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSelectQueryBytes() {
java.lang.Object ref = selectQuery_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
selectQuery_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RELATION_DESCRIPTOR_FIELD_NUMBER = 6;
private com.google.cloud.dataform.v1beta1.RelationDescriptor relationDescriptor_;
/**
*
*
*
* Descriptor for the assertion's automatically-generated view and its
* columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*
* @return Whether the relationDescriptor field is set.
*/
@java.lang.Override
public boolean hasRelationDescriptor() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Descriptor for the assertion's automatically-generated view and its
* columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*
* @return The relationDescriptor.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor() {
return relationDescriptor_ == null
? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()
: relationDescriptor_;
}
/**
*
*
*
* Descriptor for the assertion's automatically-generated view and its
* columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder
getRelationDescriptorOrBuilder() {
return relationDescriptor_ == null
? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()
: relationDescriptor_;
}
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 < dependencyTargets_.size(); i++) {
output.writeMessage(1, dependencyTargets_.get(i));
}
if (disabled_ != false) {
output.writeBool(2, disabled_);
}
for (int i = 0; i < tags_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tags_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selectQuery_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, selectQuery_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(5, getParentAction());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getRelationDescriptor());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < dependencyTargets_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(1, dependencyTargets_.get(i));
}
if (disabled_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, disabled_);
}
{
int dataSize = 0;
for (int i = 0; i < tags_.size(); i++) {
dataSize += computeStringSizeNoTag(tags_.getRaw(i));
}
size += dataSize;
size += 1 * getTagsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selectQuery_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, selectQuery_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getParentAction());
}
if (((bitField0_ & 0x00000002) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRelationDescriptor());
}
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.CompilationResultAction.Assertion)) {
return super.equals(obj);
}
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion other =
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) obj;
if (!getDependencyTargetsList().equals(other.getDependencyTargetsList())) return false;
if (hasParentAction() != other.hasParentAction()) return false;
if (hasParentAction()) {
if (!getParentAction().equals(other.getParentAction())) return false;
}
if (getDisabled() != other.getDisabled()) return false;
if (!getTagsList().equals(other.getTagsList())) return false;
if (!getSelectQuery().equals(other.getSelectQuery())) return false;
if (hasRelationDescriptor() != other.hasRelationDescriptor()) return false;
if (hasRelationDescriptor()) {
if (!getRelationDescriptor().equals(other.getRelationDescriptor())) 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 (getDependencyTargetsCount() > 0) {
hash = (37 * hash) + DEPENDENCY_TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getDependencyTargetsList().hashCode();
}
if (hasParentAction()) {
hash = (37 * hash) + PARENT_ACTION_FIELD_NUMBER;
hash = (53 * hash) + getParentAction().hashCode();
}
hash = (37 * hash) + DISABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled());
if (getTagsCount() > 0) {
hash = (37 * hash) + TAGS_FIELD_NUMBER;
hash = (53 * hash) + getTagsList().hashCode();
}
hash = (37 * hash) + SELECT_QUERY_FIELD_NUMBER;
hash = (53 * hash) + getSelectQuery().hashCode();
if (hasRelationDescriptor()) {
hash = (37 * hash) + RELATION_DESCRIPTOR_FIELD_NUMBER;
hash = (53 * hash) + getRelationDescriptor().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion 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.CompilationResultAction.Assertion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion 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.CompilationResultAction.Assertion parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion 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.CompilationResultAction.Assertion parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion 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.CompilationResultAction.Assertion
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion
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.CompilationResultAction.Assertion 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.CompilationResultAction.Assertion 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.CompilationResultAction.Assertion 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 an assertion upon a SQL query which is required return zero
* rows.
*
*
* Protobuf type {@code google.cloud.dataform.v1beta1.CompilationResultAction.Assertion}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CompilationResultAction.Assertion)
com.google.cloud.dataform.v1beta1.CompilationResultAction.AssertionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Assertion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Assertion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.class,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.Builder.class);
}
// Construct using
// com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getDependencyTargetsFieldBuilder();
getParentActionFieldBuilder();
getRelationDescriptorFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (dependencyTargetsBuilder_ == null) {
dependencyTargets_ = java.util.Collections.emptyList();
} else {
dependencyTargets_ = null;
dependencyTargetsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
parentAction_ = null;
if (parentActionBuilder_ != null) {
parentActionBuilder_.dispose();
parentActionBuilder_ = null;
}
disabled_ = false;
tags_ = com.google.protobuf.LazyStringArrayList.emptyList();
selectQuery_ = "";
relationDescriptor_ = null;
if (relationDescriptorBuilder_ != null) {
relationDescriptorBuilder_.dispose();
relationDescriptorBuilder_ = 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_CompilationResultAction_Assertion_descriptor;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion
getDefaultInstanceForType() {
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion build() {
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion buildPartial() {
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion result =
new com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion result) {
if (dependencyTargetsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
dependencyTargets_ = java.util.Collections.unmodifiableList(dependencyTargets_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.dependencyTargets_ = dependencyTargets_;
} else {
result.dependencyTargets_ = dependencyTargetsBuilder_.build();
}
}
private void buildPartial0(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.parentAction_ =
parentActionBuilder_ == null ? parentAction_ : parentActionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.disabled_ = disabled_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
tags_.makeImmutable();
result.tags_ = tags_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.selectQuery_ = selectQuery_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.relationDescriptor_ =
relationDescriptorBuilder_ == null
? relationDescriptor_
: relationDescriptorBuilder_.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.v1beta1.CompilationResultAction.Assertion) {
return mergeFrom(
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion other) {
if (other
== com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion
.getDefaultInstance()) return this;
if (dependencyTargetsBuilder_ == null) {
if (!other.dependencyTargets_.isEmpty()) {
if (dependencyTargets_.isEmpty()) {
dependencyTargets_ = other.dependencyTargets_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDependencyTargetsIsMutable();
dependencyTargets_.addAll(other.dependencyTargets_);
}
onChanged();
}
} else {
if (!other.dependencyTargets_.isEmpty()) {
if (dependencyTargetsBuilder_.isEmpty()) {
dependencyTargetsBuilder_.dispose();
dependencyTargetsBuilder_ = null;
dependencyTargets_ = other.dependencyTargets_;
bitField0_ = (bitField0_ & ~0x00000001);
dependencyTargetsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getDependencyTargetsFieldBuilder()
: null;
} else {
dependencyTargetsBuilder_.addAllMessages(other.dependencyTargets_);
}
}
}
if (other.hasParentAction()) {
mergeParentAction(other.getParentAction());
}
if (other.getDisabled() != false) {
setDisabled(other.getDisabled());
}
if (!other.tags_.isEmpty()) {
if (tags_.isEmpty()) {
tags_ = other.tags_;
bitField0_ |= 0x00000008;
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
}
onChanged();
}
if (!other.getSelectQuery().isEmpty()) {
selectQuery_ = other.selectQuery_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasRelationDescriptor()) {
mergeRelationDescriptor(other.getRelationDescriptor());
}
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.v1beta1.Target m =
input.readMessage(
com.google.cloud.dataform.v1beta1.Target.parser(), extensionRegistry);
if (dependencyTargetsBuilder_ == null) {
ensureDependencyTargetsIsMutable();
dependencyTargets_.add(m);
} else {
dependencyTargetsBuilder_.addMessage(m);
}
break;
} // case 10
case 16:
{
disabled_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 16
case 26:
{
java.lang.String s = input.readStringRequireUtf8();
ensureTagsIsMutable();
tags_.add(s);
break;
} // case 26
case 34:
{
selectQuery_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 34
case 42:
{
input.readMessage(getParentActionFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 42
case 50:
{
input.readMessage(
getRelationDescriptorFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000020;
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 bitField0_;
private java.util.List dependencyTargets_ =
java.util.Collections.emptyList();
private void ensureDependencyTargetsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
dependencyTargets_ =
new java.util.ArrayList(dependencyTargets_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>
dependencyTargetsBuilder_;
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public java.util.List getDependencyTargetsList() {
if (dependencyTargetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(dependencyTargets_);
} else {
return dependencyTargetsBuilder_.getMessageList();
}
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public int getDependencyTargetsCount() {
if (dependencyTargetsBuilder_ == null) {
return dependencyTargets_.size();
} else {
return dependencyTargetsBuilder_.getCount();
}
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public com.google.cloud.dataform.v1beta1.Target getDependencyTargets(int index) {
if (dependencyTargetsBuilder_ == null) {
return dependencyTargets_.get(index);
} else {
return dependencyTargetsBuilder_.getMessage(index);
}
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder setDependencyTargets(
int index, com.google.cloud.dataform.v1beta1.Target value) {
if (dependencyTargetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDependencyTargetsIsMutable();
dependencyTargets_.set(index, value);
onChanged();
} else {
dependencyTargetsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder setDependencyTargets(
int index, com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) {
if (dependencyTargetsBuilder_ == null) {
ensureDependencyTargetsIsMutable();
dependencyTargets_.set(index, builderForValue.build());
onChanged();
} else {
dependencyTargetsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder addDependencyTargets(com.google.cloud.dataform.v1beta1.Target value) {
if (dependencyTargetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDependencyTargetsIsMutable();
dependencyTargets_.add(value);
onChanged();
} else {
dependencyTargetsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder addDependencyTargets(
int index, com.google.cloud.dataform.v1beta1.Target value) {
if (dependencyTargetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDependencyTargetsIsMutable();
dependencyTargets_.add(index, value);
onChanged();
} else {
dependencyTargetsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder addDependencyTargets(
com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) {
if (dependencyTargetsBuilder_ == null) {
ensureDependencyTargetsIsMutable();
dependencyTargets_.add(builderForValue.build());
onChanged();
} else {
dependencyTargetsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder addDependencyTargets(
int index, com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) {
if (dependencyTargetsBuilder_ == null) {
ensureDependencyTargetsIsMutable();
dependencyTargets_.add(index, builderForValue.build());
onChanged();
} else {
dependencyTargetsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder addAllDependencyTargets(
java.lang.Iterable extends com.google.cloud.dataform.v1beta1.Target> values) {
if (dependencyTargetsBuilder_ == null) {
ensureDependencyTargetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dependencyTargets_);
onChanged();
} else {
dependencyTargetsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder clearDependencyTargets() {
if (dependencyTargetsBuilder_ == null) {
dependencyTargets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
dependencyTargetsBuilder_.clear();
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public Builder removeDependencyTargets(int index) {
if (dependencyTargetsBuilder_ == null) {
ensureDependencyTargetsIsMutable();
dependencyTargets_.remove(index);
onChanged();
} else {
dependencyTargetsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public com.google.cloud.dataform.v1beta1.Target.Builder getDependencyTargetsBuilder(
int index) {
return getDependencyTargetsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public com.google.cloud.dataform.v1beta1.TargetOrBuilder getDependencyTargetsOrBuilder(
int index) {
if (dependencyTargetsBuilder_ == null) {
return dependencyTargets_.get(index);
} else {
return dependencyTargetsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public java.util.List extends com.google.cloud.dataform.v1beta1.TargetOrBuilder>
getDependencyTargetsOrBuilderList() {
if (dependencyTargetsBuilder_ != null) {
return dependencyTargetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(dependencyTargets_);
}
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public com.google.cloud.dataform.v1beta1.Target.Builder addDependencyTargetsBuilder() {
return getDependencyTargetsFieldBuilder()
.addBuilder(com.google.cloud.dataform.v1beta1.Target.getDefaultInstance());
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public com.google.cloud.dataform.v1beta1.Target.Builder addDependencyTargetsBuilder(
int index) {
return getDependencyTargetsFieldBuilder()
.addBuilder(index, com.google.cloud.dataform.v1beta1.Target.getDefaultInstance());
}
/**
*
*
*
* A list of actions that this action depends on.
*
*
* repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
*/
public java.util.List
getDependencyTargetsBuilderList() {
return getDependencyTargetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>
getDependencyTargetsFieldBuilder() {
if (dependencyTargetsBuilder_ == null) {
dependencyTargetsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>(
dependencyTargets_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
dependencyTargets_ = null;
}
return dependencyTargetsBuilder_;
}
private com.google.cloud.dataform.v1beta1.Target parentAction_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>
parentActionBuilder_;
/**
*
*
*
* The parent action of this assertion. Only set if this assertion was
* automatically generated.
*
*
* .google.cloud.dataform.v1beta1.Target parent_action = 5;
*
* @return Whether the parentAction field is set.
*/
public boolean hasParentAction() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The parent action of this assertion. Only set if this assertion was
* automatically generated.
*
*
* .google.cloud.dataform.v1beta1.Target parent_action = 5;
*
* @return The parentAction.
*/
public com.google.cloud.dataform.v1beta1.Target getParentAction() {
if (parentActionBuilder_ == null) {
return parentAction_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: parentAction_;
} else {
return parentActionBuilder_.getMessage();
}
}
/**
*
*
*
* The parent action of this assertion. Only set if this assertion was
* automatically generated.
*
*
* .google.cloud.dataform.v1beta1.Target parent_action = 5;
*/
public Builder setParentAction(com.google.cloud.dataform.v1beta1.Target value) {
if (parentActionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
parentAction_ = value;
} else {
parentActionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The parent action of this assertion. Only set if this assertion was
* automatically generated.
*
*
* .google.cloud.dataform.v1beta1.Target parent_action = 5;
*/
public Builder setParentAction(
com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) {
if (parentActionBuilder_ == null) {
parentAction_ = builderForValue.build();
} else {
parentActionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The parent action of this assertion. Only set if this assertion was
* automatically generated.
*
*
* .google.cloud.dataform.v1beta1.Target parent_action = 5;
*/
public Builder mergeParentAction(com.google.cloud.dataform.v1beta1.Target value) {
if (parentActionBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& parentAction_ != null
&& parentAction_ != com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()) {
getParentActionBuilder().mergeFrom(value);
} else {
parentAction_ = value;
}
} else {
parentActionBuilder_.mergeFrom(value);
}
if (parentAction_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* The parent action of this assertion. Only set if this assertion was
* automatically generated.
*
*
* .google.cloud.dataform.v1beta1.Target parent_action = 5;
*/
public Builder clearParentAction() {
bitField0_ = (bitField0_ & ~0x00000002);
parentAction_ = null;
if (parentActionBuilder_ != null) {
parentActionBuilder_.dispose();
parentActionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The parent action of this assertion. Only set if this assertion was
* automatically generated.
*
*
* .google.cloud.dataform.v1beta1.Target parent_action = 5;
*/
public com.google.cloud.dataform.v1beta1.Target.Builder getParentActionBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getParentActionFieldBuilder().getBuilder();
}
/**
*
*
*
* The parent action of this assertion. Only set if this assertion was
* automatically generated.
*
*
* .google.cloud.dataform.v1beta1.Target parent_action = 5;
*/
public com.google.cloud.dataform.v1beta1.TargetOrBuilder getParentActionOrBuilder() {
if (parentActionBuilder_ != null) {
return parentActionBuilder_.getMessageOrBuilder();
} else {
return parentAction_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: parentAction_;
}
}
/**
*
*
*
* The parent action of this assertion. Only set if this assertion was
* automatically generated.
*
*
* .google.cloud.dataform.v1beta1.Target parent_action = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>
getParentActionFieldBuilder() {
if (parentActionBuilder_ == null) {
parentActionBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>(
getParentAction(), getParentForChildren(), isClean());
parentAction_ = null;
}
return parentActionBuilder_;
}
private boolean disabled_;
/**
*
*
*
* Whether this action is disabled (i.e. should not be run).
*
*
* bool disabled = 2;
*
* @return The disabled.
*/
@java.lang.Override
public boolean getDisabled() {
return disabled_;
}
/**
*
*
*
* Whether this action is disabled (i.e. should not be run).
*
*
* bool disabled = 2;
*
* @param value The disabled to set.
* @return This builder for chaining.
*/
public Builder setDisabled(boolean value) {
disabled_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Whether this action is disabled (i.e. should not be run).
*
*
* bool disabled = 2;
*
* @return This builder for chaining.
*/
public Builder clearDisabled() {
bitField0_ = (bitField0_ & ~0x00000004);
disabled_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList tags_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureTagsIsMutable() {
if (!tags_.isModifiable()) {
tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
}
bitField0_ |= 0x00000008;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList getTagsList() {
tags_.makeImmutable();
return tags_;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index of the element to return.
* @return The tags at the given index.
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
public com.google.protobuf.ByteString getTagsBytes(int index) {
return tags_.getByteString(index);
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param index The index to set the value at.
* @param value The tags to set.
* @return This builder for chaining.
*/
public Builder setTags(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.set(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param value The tags to add.
* @return This builder for chaining.
*/
public Builder addTags(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param values The tags to add.
* @return This builder for chaining.
*/
public Builder addAllTags(java.lang.Iterable values) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @return This builder for chaining.
*/
public Builder clearTags() {
tags_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
;
onChanged();
return this;
}
/**
*
*
*
* Arbitrary, user-defined tags on this action.
*
*
* repeated string tags = 3;
*
* @param value The bytes of the tags to add.
* @return This builder for chaining.
*/
public Builder addTagsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTagsIsMutable();
tags_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object selectQuery_ = "";
/**
*
*
*
* The SELECT query which must return zero rows in order for this assertion
* to succeed.
*
*
* string select_query = 4;
*
* @return The selectQuery.
*/
public java.lang.String getSelectQuery() {
java.lang.Object ref = selectQuery_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
selectQuery_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The SELECT query which must return zero rows in order for this assertion
* to succeed.
*
*
* string select_query = 4;
*
* @return The bytes for selectQuery.
*/
public com.google.protobuf.ByteString getSelectQueryBytes() {
java.lang.Object ref = selectQuery_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
selectQuery_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The SELECT query which must return zero rows in order for this assertion
* to succeed.
*
*
* string select_query = 4;
*
* @param value The selectQuery to set.
* @return This builder for chaining.
*/
public Builder setSelectQuery(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
selectQuery_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* The SELECT query which must return zero rows in order for this assertion
* to succeed.
*
*
* string select_query = 4;
*
* @return This builder for chaining.
*/
public Builder clearSelectQuery() {
selectQuery_ = getDefaultInstance().getSelectQuery();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*
*
* The SELECT query which must return zero rows in order for this assertion
* to succeed.
*
*
* string select_query = 4;
*
* @param value The bytes for selectQuery to set.
* @return This builder for chaining.
*/
public Builder setSelectQueryBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
selectQuery_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private com.google.cloud.dataform.v1beta1.RelationDescriptor relationDescriptor_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.RelationDescriptor,
com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder,
com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder>
relationDescriptorBuilder_;
/**
*
*
*
* Descriptor for the assertion's automatically-generated view and its
* columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*
* @return Whether the relationDescriptor field is set.
*/
public boolean hasRelationDescriptor() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
*
* Descriptor for the assertion's automatically-generated view and its
* columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*
* @return The relationDescriptor.
*/
public com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor() {
if (relationDescriptorBuilder_ == null) {
return relationDescriptor_ == null
? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()
: relationDescriptor_;
} else {
return relationDescriptorBuilder_.getMessage();
}
}
/**
*
*
*
* Descriptor for the assertion's automatically-generated view and its
* columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*/
public Builder setRelationDescriptor(
com.google.cloud.dataform.v1beta1.RelationDescriptor value) {
if (relationDescriptorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
relationDescriptor_ = value;
} else {
relationDescriptorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Descriptor for the assertion's automatically-generated view and its
* columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*/
public Builder setRelationDescriptor(
com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder builderForValue) {
if (relationDescriptorBuilder_ == null) {
relationDescriptor_ = builderForValue.build();
} else {
relationDescriptorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Descriptor for the assertion's automatically-generated view and its
* columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*/
public Builder mergeRelationDescriptor(
com.google.cloud.dataform.v1beta1.RelationDescriptor value) {
if (relationDescriptorBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)
&& relationDescriptor_ != null
&& relationDescriptor_
!= com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()) {
getRelationDescriptorBuilder().mergeFrom(value);
} else {
relationDescriptor_ = value;
}
} else {
relationDescriptorBuilder_.mergeFrom(value);
}
if (relationDescriptor_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
*
*
* Descriptor for the assertion's automatically-generated view and its
* columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*/
public Builder clearRelationDescriptor() {
bitField0_ = (bitField0_ & ~0x00000020);
relationDescriptor_ = null;
if (relationDescriptorBuilder_ != null) {
relationDescriptorBuilder_.dispose();
relationDescriptorBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Descriptor for the assertion's automatically-generated view and its
* columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*/
public com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder
getRelationDescriptorBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getRelationDescriptorFieldBuilder().getBuilder();
}
/**
*
*
*
* Descriptor for the assertion's automatically-generated view and its
* columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*/
public com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder
getRelationDescriptorOrBuilder() {
if (relationDescriptorBuilder_ != null) {
return relationDescriptorBuilder_.getMessageOrBuilder();
} else {
return relationDescriptor_ == null
? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()
: relationDescriptor_;
}
}
/**
*
*
*
* Descriptor for the assertion's automatically-generated view and its
* columns.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.RelationDescriptor,
com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder,
com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder>
getRelationDescriptorFieldBuilder() {
if (relationDescriptorBuilder_ == null) {
relationDescriptorBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.RelationDescriptor,
com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder,
com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder>(
getRelationDescriptor(), getParentForChildren(), isClean());
relationDescriptor_ = null;
}
return relationDescriptorBuilder_;
}
@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.CompilationResultAction.Assertion)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CompilationResultAction.Assertion)
private static final com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion();
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Assertion 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.CompilationResultAction.Assertion
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeclarationOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CompilationResultAction.Declaration)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Descriptor for the relation and its columns. Used as documentation only,
* i.e. values here will result in no changes to the relation's metadata.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1;
*
* @return Whether the relationDescriptor field is set.
*/
boolean hasRelationDescriptor();
/**
*
*
*
* Descriptor for the relation and its columns. Used as documentation only,
* i.e. values here will result in no changes to the relation's metadata.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1;
*
* @return The relationDescriptor.
*/
com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor();
/**
*
*
*
* Descriptor for the relation and its columns. Used as documentation only,
* i.e. values here will result in no changes to the relation's metadata.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1;
*/
com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder getRelationDescriptorOrBuilder();
}
/**
*
*
*
* Represents a relation which is not managed by Dataform but which may be
* referenced by Dataform actions.
*
*
* Protobuf type {@code google.cloud.dataform.v1beta1.CompilationResultAction.Declaration}
*/
public static final class Declaration extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CompilationResultAction.Declaration)
DeclarationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Declaration.newBuilder() to construct.
private Declaration(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Declaration() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Declaration();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Declaration_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Declaration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.class,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.Builder.class);
}
private int bitField0_;
public static final int RELATION_DESCRIPTOR_FIELD_NUMBER = 1;
private com.google.cloud.dataform.v1beta1.RelationDescriptor relationDescriptor_;
/**
*
*
*
* Descriptor for the relation and its columns. Used as documentation only,
* i.e. values here will result in no changes to the relation's metadata.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1;
*
* @return Whether the relationDescriptor field is set.
*/
@java.lang.Override
public boolean hasRelationDescriptor() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Descriptor for the relation and its columns. Used as documentation only,
* i.e. values here will result in no changes to the relation's metadata.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1;
*
* @return The relationDescriptor.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor() {
return relationDescriptor_ == null
? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()
: relationDescriptor_;
}
/**
*
*
*
* Descriptor for the relation and its columns. Used as documentation only,
* i.e. values here will result in no changes to the relation's metadata.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1;
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder
getRelationDescriptorOrBuilder() {
return relationDescriptor_ == null
? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()
: relationDescriptor_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getRelationDescriptor());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRelationDescriptor());
}
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.CompilationResultAction.Declaration)) {
return super.equals(obj);
}
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration other =
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration) obj;
if (hasRelationDescriptor() != other.hasRelationDescriptor()) return false;
if (hasRelationDescriptor()) {
if (!getRelationDescriptor().equals(other.getRelationDescriptor())) 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 (hasRelationDescriptor()) {
hash = (37 * hash) + RELATION_DESCRIPTOR_FIELD_NUMBER;
hash = (53 * hash) + getRelationDescriptor().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration 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.CompilationResultAction.Declaration parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration 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.CompilationResultAction.Declaration parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration 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.CompilationResultAction.Declaration parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration 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.CompilationResultAction.Declaration
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration
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.CompilationResultAction.Declaration 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.CompilationResultAction.Declaration 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.CompilationResultAction.Declaration 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 relation which is not managed by Dataform but which may be
* referenced by Dataform actions.
*
*
* Protobuf type {@code google.cloud.dataform.v1beta1.CompilationResultAction.Declaration}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CompilationResultAction.Declaration)
com.google.cloud.dataform.v1beta1.CompilationResultAction.DeclarationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Declaration_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Declaration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.class,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.Builder
.class);
}
// Construct using
// com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getRelationDescriptorFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
relationDescriptor_ = null;
if (relationDescriptorBuilder_ != null) {
relationDescriptorBuilder_.dispose();
relationDescriptorBuilder_ = 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_CompilationResultAction_Declaration_descriptor;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration
getDefaultInstanceForType() {
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration build() {
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration buildPartial() {
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration result =
new com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.relationDescriptor_ =
relationDescriptorBuilder_ == null
? relationDescriptor_
: relationDescriptorBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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.v1beta1.CompilationResultAction.Declaration) {
return mergeFrom(
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration other) {
if (other
== com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration
.getDefaultInstance()) return this;
if (other.hasRelationDescriptor()) {
mergeRelationDescriptor(other.getRelationDescriptor());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
input.readMessage(
getRelationDescriptorFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.cloud.dataform.v1beta1.RelationDescriptor relationDescriptor_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.RelationDescriptor,
com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder,
com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder>
relationDescriptorBuilder_;
/**
*
*
*
* Descriptor for the relation and its columns. Used as documentation only,
* i.e. values here will result in no changes to the relation's metadata.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1;
*
* @return Whether the relationDescriptor field is set.
*/
public boolean hasRelationDescriptor() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Descriptor for the relation and its columns. Used as documentation only,
* i.e. values here will result in no changes to the relation's metadata.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1;
*
* @return The relationDescriptor.
*/
public com.google.cloud.dataform.v1beta1.RelationDescriptor getRelationDescriptor() {
if (relationDescriptorBuilder_ == null) {
return relationDescriptor_ == null
? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()
: relationDescriptor_;
} else {
return relationDescriptorBuilder_.getMessage();
}
}
/**
*
*
*
* Descriptor for the relation and its columns. Used as documentation only,
* i.e. values here will result in no changes to the relation's metadata.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1;
*/
public Builder setRelationDescriptor(
com.google.cloud.dataform.v1beta1.RelationDescriptor value) {
if (relationDescriptorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
relationDescriptor_ = value;
} else {
relationDescriptorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Descriptor for the relation and its columns. Used as documentation only,
* i.e. values here will result in no changes to the relation's metadata.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1;
*/
public Builder setRelationDescriptor(
com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder builderForValue) {
if (relationDescriptorBuilder_ == null) {
relationDescriptor_ = builderForValue.build();
} else {
relationDescriptorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Descriptor for the relation and its columns. Used as documentation only,
* i.e. values here will result in no changes to the relation's metadata.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1;
*/
public Builder mergeRelationDescriptor(
com.google.cloud.dataform.v1beta1.RelationDescriptor value) {
if (relationDescriptorBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& relationDescriptor_ != null
&& relationDescriptor_
!= com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()) {
getRelationDescriptorBuilder().mergeFrom(value);
} else {
relationDescriptor_ = value;
}
} else {
relationDescriptorBuilder_.mergeFrom(value);
}
if (relationDescriptor_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Descriptor for the relation and its columns. Used as documentation only,
* i.e. values here will result in no changes to the relation's metadata.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1;
*/
public Builder clearRelationDescriptor() {
bitField0_ = (bitField0_ & ~0x00000001);
relationDescriptor_ = null;
if (relationDescriptorBuilder_ != null) {
relationDescriptorBuilder_.dispose();
relationDescriptorBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Descriptor for the relation and its columns. Used as documentation only,
* i.e. values here will result in no changes to the relation's metadata.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1;
*/
public com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder
getRelationDescriptorBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getRelationDescriptorFieldBuilder().getBuilder();
}
/**
*
*
*
* Descriptor for the relation and its columns. Used as documentation only,
* i.e. values here will result in no changes to the relation's metadata.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1;
*/
public com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder
getRelationDescriptorOrBuilder() {
if (relationDescriptorBuilder_ != null) {
return relationDescriptorBuilder_.getMessageOrBuilder();
} else {
return relationDescriptor_ == null
? com.google.cloud.dataform.v1beta1.RelationDescriptor.getDefaultInstance()
: relationDescriptor_;
}
}
/**
*
*
*
* Descriptor for the relation and its columns. Used as documentation only,
* i.e. values here will result in no changes to the relation's metadata.
*
*
* .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.RelationDescriptor,
com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder,
com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder>
getRelationDescriptorFieldBuilder() {
if (relationDescriptorBuilder_ == null) {
relationDescriptorBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.RelationDescriptor,
com.google.cloud.dataform.v1beta1.RelationDescriptor.Builder,
com.google.cloud.dataform.v1beta1.RelationDescriptorOrBuilder>(
getRelationDescriptor(), getParentForChildren(), isClean());
relationDescriptor_ = null;
}
return relationDescriptorBuilder_;
}
@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.CompilationResultAction.Declaration)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CompilationResultAction.Declaration)
private static final com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration();
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Declaration 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.CompilationResultAction.Declaration
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
private int compiledObjectCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object compiledObject_;
public enum CompiledObjectCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
RELATION(4),
OPERATIONS(5),
ASSERTION(6),
DECLARATION(7),
COMPILEDOBJECT_NOT_SET(0);
private final int value;
private CompiledObjectCase(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 CompiledObjectCase valueOf(int value) {
return forNumber(value);
}
public static CompiledObjectCase forNumber(int value) {
switch (value) {
case 4:
return RELATION;
case 5:
return OPERATIONS;
case 6:
return ASSERTION;
case 7:
return DECLARATION;
case 0:
return COMPILEDOBJECT_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public CompiledObjectCase getCompiledObjectCase() {
return CompiledObjectCase.forNumber(compiledObjectCase_);
}
public static final int TARGET_FIELD_NUMBER = 1;
private com.google.cloud.dataform.v1beta1.Target target_;
/**
*
*
*
* This action's identifier. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target target = 1;
*
* @return Whether the target field is set.
*/
@java.lang.Override
public boolean hasTarget() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* This action's identifier. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target target = 1;
*
* @return The target.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.Target getTarget() {
return target_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: target_;
}
/**
*
*
*
* This action's identifier. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target target = 1;
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.TargetOrBuilder getTargetOrBuilder() {
return target_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: target_;
}
public static final int CANONICAL_TARGET_FIELD_NUMBER = 2;
private com.google.cloud.dataform.v1beta1.Target canonicalTarget_;
/**
*
*
*
* The action's identifier if the project had been compiled without any
* overrides configured. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2;
*
* @return Whether the canonicalTarget field is set.
*/
@java.lang.Override
public boolean hasCanonicalTarget() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The action's identifier if the project had been compiled without any
* overrides configured. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2;
*
* @return The canonicalTarget.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.Target getCanonicalTarget() {
return canonicalTarget_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: canonicalTarget_;
}
/**
*
*
*
* The action's identifier if the project had been compiled without any
* overrides configured. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2;
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.TargetOrBuilder getCanonicalTargetOrBuilder() {
return canonicalTarget_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: canonicalTarget_;
}
public static final int FILE_PATH_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object filePath_ = "";
/**
*
*
*
* The full path including filename in which this action is located, relative
* to the workspace root.
*
*
* string file_path = 3;
*
* @return The filePath.
*/
@java.lang.Override
public java.lang.String getFilePath() {
java.lang.Object ref = filePath_;
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();
filePath_ = s;
return s;
}
}
/**
*
*
*
* The full path including filename in which this action is located, relative
* to the workspace root.
*
*
* string file_path = 3;
*
* @return The bytes for filePath.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFilePathBytes() {
java.lang.Object ref = filePath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
filePath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RELATION_FIELD_NUMBER = 4;
/**
*
*
*
* The database relation created/updated by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4;
*
* @return Whether the relation field is set.
*/
@java.lang.Override
public boolean hasRelation() {
return compiledObjectCase_ == 4;
}
/**
*
*
*
* The database relation created/updated by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4;
*
* @return The relation.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation getRelation() {
if (compiledObjectCase_ == 4) {
return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation) compiledObject_;
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.getDefaultInstance();
}
/**
*
*
*
* The database relation created/updated by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4;
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.RelationOrBuilder
getRelationOrBuilder() {
if (compiledObjectCase_ == 4) {
return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation) compiledObject_;
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.getDefaultInstance();
}
public static final int OPERATIONS_FIELD_NUMBER = 5;
/**
*
*
*
* The database operations executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5;
*
* @return Whether the operations field is set.
*/
@java.lang.Override
public boolean hasOperations() {
return compiledObjectCase_ == 5;
}
/**
*
*
*
* The database operations executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5;
*
* @return The operations.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations getOperations() {
if (compiledObjectCase_ == 5) {
return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations) compiledObject_;
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations
.getDefaultInstance();
}
/**
*
*
*
* The database operations executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5;
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.OperationsOrBuilder
getOperationsOrBuilder() {
if (compiledObjectCase_ == 5) {
return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations) compiledObject_;
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations
.getDefaultInstance();
}
public static final int ASSERTION_FIELD_NUMBER = 6;
/**
*
*
*
* The assertion executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6;
*
* @return Whether the assertion field is set.
*/
@java.lang.Override
public boolean hasAssertion() {
return compiledObjectCase_ == 6;
}
/**
*
*
*
* The assertion executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6;
*
* @return The assertion.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion getAssertion() {
if (compiledObjectCase_ == 6) {
return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) compiledObject_;
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.getDefaultInstance();
}
/**
*
*
*
* The assertion executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6;
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.AssertionOrBuilder
getAssertionOrBuilder() {
if (compiledObjectCase_ == 6) {
return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) compiledObject_;
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.getDefaultInstance();
}
public static final int DECLARATION_FIELD_NUMBER = 7;
/**
*
*
*
* The declaration declared by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7;
*
*
* @return Whether the declaration field is set.
*/
@java.lang.Override
public boolean hasDeclaration() {
return compiledObjectCase_ == 7;
}
/**
*
*
*
* The declaration declared by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7;
*
*
* @return The declaration.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration getDeclaration() {
if (compiledObjectCase_ == 7) {
return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration)
compiledObject_;
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration
.getDefaultInstance();
}
/**
*
*
*
* The declaration declared by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7;
*
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.DeclarationOrBuilder
getDeclarationOrBuilder() {
if (compiledObjectCase_ == 7) {
return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration)
compiledObject_;
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration
.getDefaultInstance();
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getTarget());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getCanonicalTarget());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filePath_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filePath_);
}
if (compiledObjectCase_ == 4) {
output.writeMessage(
4, (com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation) compiledObject_);
}
if (compiledObjectCase_ == 5) {
output.writeMessage(
5,
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations) compiledObject_);
}
if (compiledObjectCase_ == 6) {
output.writeMessage(
6, (com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion) compiledObject_);
}
if (compiledObjectCase_ == 7) {
output.writeMessage(
7,
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration) compiledObject_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTarget());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCanonicalTarget());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filePath_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filePath_);
}
if (compiledObjectCase_ == 4) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
4,
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation) compiledObject_);
}
if (compiledObjectCase_ == 5) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
5,
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations)
compiledObject_);
}
if (compiledObjectCase_ == 6) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
6,
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion)
compiledObject_);
}
if (compiledObjectCase_ == 7) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
7,
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration)
compiledObject_);
}
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.CompilationResultAction)) {
return super.equals(obj);
}
com.google.cloud.dataform.v1beta1.CompilationResultAction other =
(com.google.cloud.dataform.v1beta1.CompilationResultAction) obj;
if (hasTarget() != other.hasTarget()) return false;
if (hasTarget()) {
if (!getTarget().equals(other.getTarget())) return false;
}
if (hasCanonicalTarget() != other.hasCanonicalTarget()) return false;
if (hasCanonicalTarget()) {
if (!getCanonicalTarget().equals(other.getCanonicalTarget())) return false;
}
if (!getFilePath().equals(other.getFilePath())) return false;
if (!getCompiledObjectCase().equals(other.getCompiledObjectCase())) return false;
switch (compiledObjectCase_) {
case 4:
if (!getRelation().equals(other.getRelation())) return false;
break;
case 5:
if (!getOperations().equals(other.getOperations())) return false;
break;
case 6:
if (!getAssertion().equals(other.getAssertion())) return false;
break;
case 7:
if (!getDeclaration().equals(other.getDeclaration())) 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();
if (hasTarget()) {
hash = (37 * hash) + TARGET_FIELD_NUMBER;
hash = (53 * hash) + getTarget().hashCode();
}
if (hasCanonicalTarget()) {
hash = (37 * hash) + CANONICAL_TARGET_FIELD_NUMBER;
hash = (53 * hash) + getCanonicalTarget().hashCode();
}
hash = (37 * hash) + FILE_PATH_FIELD_NUMBER;
hash = (53 * hash) + getFilePath().hashCode();
switch (compiledObjectCase_) {
case 4:
hash = (37 * hash) + RELATION_FIELD_NUMBER;
hash = (53 * hash) + getRelation().hashCode();
break;
case 5:
hash = (37 * hash) + OPERATIONS_FIELD_NUMBER;
hash = (53 * hash) + getOperations().hashCode();
break;
case 6:
hash = (37 * hash) + ASSERTION_FIELD_NUMBER;
hash = (53 * hash) + getAssertion().hashCode();
break;
case 7:
hash = (37 * hash) + DECLARATION_FIELD_NUMBER;
hash = (53 * hash) + getDeclaration().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction 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.CompilationResultAction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction 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.CompilationResultAction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction 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.CompilationResultAction parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction 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.CompilationResultAction parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction 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.CompilationResultAction 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.CompilationResultAction 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.CompilationResultAction 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 Dataform action in a compilation result.
*
*
* Protobuf type {@code google.cloud.dataform.v1beta1.CompilationResultAction}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CompilationResultAction)
com.google.cloud.dataform.v1beta1.CompilationResultActionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataform.v1beta1.DataformProto
.internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataform.v1beta1.CompilationResultAction.class,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Builder.class);
}
// Construct using com.google.cloud.dataform.v1beta1.CompilationResultAction.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getTargetFieldBuilder();
getCanonicalTargetFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
target_ = null;
if (targetBuilder_ != null) {
targetBuilder_.dispose();
targetBuilder_ = null;
}
canonicalTarget_ = null;
if (canonicalTargetBuilder_ != null) {
canonicalTargetBuilder_.dispose();
canonicalTargetBuilder_ = null;
}
filePath_ = "";
if (relationBuilder_ != null) {
relationBuilder_.clear();
}
if (operationsBuilder_ != null) {
operationsBuilder_.clear();
}
if (assertionBuilder_ != null) {
assertionBuilder_.clear();
}
if (declarationBuilder_ != null) {
declarationBuilder_.clear();
}
compiledObjectCase_ = 0;
compiledObject_ = 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_CompilationResultAction_descriptor;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction getDefaultInstanceForType() {
return com.google.cloud.dataform.v1beta1.CompilationResultAction.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction build() {
com.google.cloud.dataform.v1beta1.CompilationResultAction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction buildPartial() {
com.google.cloud.dataform.v1beta1.CompilationResultAction result =
new com.google.cloud.dataform.v1beta1.CompilationResultAction(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataform.v1beta1.CompilationResultAction result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.target_ = targetBuilder_ == null ? target_ : targetBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.canonicalTarget_ =
canonicalTargetBuilder_ == null ? canonicalTarget_ : canonicalTargetBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.filePath_ = filePath_;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(
com.google.cloud.dataform.v1beta1.CompilationResultAction result) {
result.compiledObjectCase_ = compiledObjectCase_;
result.compiledObject_ = this.compiledObject_;
if (compiledObjectCase_ == 4 && relationBuilder_ != null) {
result.compiledObject_ = relationBuilder_.build();
}
if (compiledObjectCase_ == 5 && operationsBuilder_ != null) {
result.compiledObject_ = operationsBuilder_.build();
}
if (compiledObjectCase_ == 6 && assertionBuilder_ != null) {
result.compiledObject_ = assertionBuilder_.build();
}
if (compiledObjectCase_ == 7 && declarationBuilder_ != null) {
result.compiledObject_ = declarationBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataform.v1beta1.CompilationResultAction) {
return mergeFrom((com.google.cloud.dataform.v1beta1.CompilationResultAction) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataform.v1beta1.CompilationResultAction other) {
if (other == com.google.cloud.dataform.v1beta1.CompilationResultAction.getDefaultInstance())
return this;
if (other.hasTarget()) {
mergeTarget(other.getTarget());
}
if (other.hasCanonicalTarget()) {
mergeCanonicalTarget(other.getCanonicalTarget());
}
if (!other.getFilePath().isEmpty()) {
filePath_ = other.filePath_;
bitField0_ |= 0x00000004;
onChanged();
}
switch (other.getCompiledObjectCase()) {
case RELATION:
{
mergeRelation(other.getRelation());
break;
}
case OPERATIONS:
{
mergeOperations(other.getOperations());
break;
}
case ASSERTION:
{
mergeAssertion(other.getAssertion());
break;
}
case DECLARATION:
{
mergeDeclaration(other.getDeclaration());
break;
}
case COMPILEDOBJECT_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:
{
input.readMessage(getTargetFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getCanonicalTargetFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
filePath_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(getRelationFieldBuilder().getBuilder(), extensionRegistry);
compiledObjectCase_ = 4;
break;
} // case 34
case 42:
{
input.readMessage(getOperationsFieldBuilder().getBuilder(), extensionRegistry);
compiledObjectCase_ = 5;
break;
} // case 42
case 50:
{
input.readMessage(getAssertionFieldBuilder().getBuilder(), extensionRegistry);
compiledObjectCase_ = 6;
break;
} // case 50
case 58:
{
input.readMessage(getDeclarationFieldBuilder().getBuilder(), extensionRegistry);
compiledObjectCase_ = 7;
break;
} // case 58
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int compiledObjectCase_ = 0;
private java.lang.Object compiledObject_;
public CompiledObjectCase getCompiledObjectCase() {
return CompiledObjectCase.forNumber(compiledObjectCase_);
}
public Builder clearCompiledObject() {
compiledObjectCase_ = 0;
compiledObject_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.cloud.dataform.v1beta1.Target target_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>
targetBuilder_;
/**
*
*
*
* This action's identifier. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target target = 1;
*
* @return Whether the target field is set.
*/
public boolean hasTarget() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* This action's identifier. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target target = 1;
*
* @return The target.
*/
public com.google.cloud.dataform.v1beta1.Target getTarget() {
if (targetBuilder_ == null) {
return target_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: target_;
} else {
return targetBuilder_.getMessage();
}
}
/**
*
*
*
* This action's identifier. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target target = 1;
*/
public Builder setTarget(com.google.cloud.dataform.v1beta1.Target value) {
if (targetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
target_ = value;
} else {
targetBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* This action's identifier. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target target = 1;
*/
public Builder setTarget(com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) {
if (targetBuilder_ == null) {
target_ = builderForValue.build();
} else {
targetBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* This action's identifier. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target target = 1;
*/
public Builder mergeTarget(com.google.cloud.dataform.v1beta1.Target value) {
if (targetBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& target_ != null
&& target_ != com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()) {
getTargetBuilder().mergeFrom(value);
} else {
target_ = value;
}
} else {
targetBuilder_.mergeFrom(value);
}
if (target_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* This action's identifier. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target target = 1;
*/
public Builder clearTarget() {
bitField0_ = (bitField0_ & ~0x00000001);
target_ = null;
if (targetBuilder_ != null) {
targetBuilder_.dispose();
targetBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* This action's identifier. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target target = 1;
*/
public com.google.cloud.dataform.v1beta1.Target.Builder getTargetBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTargetFieldBuilder().getBuilder();
}
/**
*
*
*
* This action's identifier. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target target = 1;
*/
public com.google.cloud.dataform.v1beta1.TargetOrBuilder getTargetOrBuilder() {
if (targetBuilder_ != null) {
return targetBuilder_.getMessageOrBuilder();
} else {
return target_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: target_;
}
}
/**
*
*
*
* This action's identifier. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target target = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>
getTargetFieldBuilder() {
if (targetBuilder_ == null) {
targetBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>(
getTarget(), getParentForChildren(), isClean());
target_ = null;
}
return targetBuilder_;
}
private com.google.cloud.dataform.v1beta1.Target canonicalTarget_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>
canonicalTargetBuilder_;
/**
*
*
*
* The action's identifier if the project had been compiled without any
* overrides configured. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2;
*
* @return Whether the canonicalTarget field is set.
*/
public boolean hasCanonicalTarget() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The action's identifier if the project had been compiled without any
* overrides configured. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2;
*
* @return The canonicalTarget.
*/
public com.google.cloud.dataform.v1beta1.Target getCanonicalTarget() {
if (canonicalTargetBuilder_ == null) {
return canonicalTarget_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: canonicalTarget_;
} else {
return canonicalTargetBuilder_.getMessage();
}
}
/**
*
*
*
* The action's identifier if the project had been compiled without any
* overrides configured. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2;
*/
public Builder setCanonicalTarget(com.google.cloud.dataform.v1beta1.Target value) {
if (canonicalTargetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
canonicalTarget_ = value;
} else {
canonicalTargetBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The action's identifier if the project had been compiled without any
* overrides configured. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2;
*/
public Builder setCanonicalTarget(
com.google.cloud.dataform.v1beta1.Target.Builder builderForValue) {
if (canonicalTargetBuilder_ == null) {
canonicalTarget_ = builderForValue.build();
} else {
canonicalTargetBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The action's identifier if the project had been compiled without any
* overrides configured. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2;
*/
public Builder mergeCanonicalTarget(com.google.cloud.dataform.v1beta1.Target value) {
if (canonicalTargetBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& canonicalTarget_ != null
&& canonicalTarget_ != com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()) {
getCanonicalTargetBuilder().mergeFrom(value);
} else {
canonicalTarget_ = value;
}
} else {
canonicalTargetBuilder_.mergeFrom(value);
}
if (canonicalTarget_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* The action's identifier if the project had been compiled without any
* overrides configured. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2;
*/
public Builder clearCanonicalTarget() {
bitField0_ = (bitField0_ & ~0x00000002);
canonicalTarget_ = null;
if (canonicalTargetBuilder_ != null) {
canonicalTargetBuilder_.dispose();
canonicalTargetBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The action's identifier if the project had been compiled without any
* overrides configured. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2;
*/
public com.google.cloud.dataform.v1beta1.Target.Builder getCanonicalTargetBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getCanonicalTargetFieldBuilder().getBuilder();
}
/**
*
*
*
* The action's identifier if the project had been compiled without any
* overrides configured. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2;
*/
public com.google.cloud.dataform.v1beta1.TargetOrBuilder getCanonicalTargetOrBuilder() {
if (canonicalTargetBuilder_ != null) {
return canonicalTargetBuilder_.getMessageOrBuilder();
} else {
return canonicalTarget_ == null
? com.google.cloud.dataform.v1beta1.Target.getDefaultInstance()
: canonicalTarget_;
}
}
/**
*
*
*
* The action's identifier if the project had been compiled without any
* overrides configured. Unique within the compilation result.
*
*
* .google.cloud.dataform.v1beta1.Target canonical_target = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>
getCanonicalTargetFieldBuilder() {
if (canonicalTargetBuilder_ == null) {
canonicalTargetBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.Target,
com.google.cloud.dataform.v1beta1.Target.Builder,
com.google.cloud.dataform.v1beta1.TargetOrBuilder>(
getCanonicalTarget(), getParentForChildren(), isClean());
canonicalTarget_ = null;
}
return canonicalTargetBuilder_;
}
private java.lang.Object filePath_ = "";
/**
*
*
*
* The full path including filename in which this action is located, relative
* to the workspace root.
*
*
* string file_path = 3;
*
* @return The filePath.
*/
public java.lang.String getFilePath() {
java.lang.Object ref = filePath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filePath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The full path including filename in which this action is located, relative
* to the workspace root.
*
*
* string file_path = 3;
*
* @return The bytes for filePath.
*/
public com.google.protobuf.ByteString getFilePathBytes() {
java.lang.Object ref = filePath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
filePath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The full path including filename in which this action is located, relative
* to the workspace root.
*
*
* string file_path = 3;
*
* @param value The filePath to set.
* @return This builder for chaining.
*/
public Builder setFilePath(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
filePath_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The full path including filename in which this action is located, relative
* to the workspace root.
*
*
* string file_path = 3;
*
* @return This builder for chaining.
*/
public Builder clearFilePath() {
filePath_ = getDefaultInstance().getFilePath();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* The full path including filename in which this action is located, relative
* to the workspace root.
*
*
* string file_path = 3;
*
* @param value The bytes for filePath to set.
* @return This builder for chaining.
*/
public Builder setFilePathBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
filePath_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.Builder,
com.google.cloud.dataform.v1beta1.CompilationResultAction.RelationOrBuilder>
relationBuilder_;
/**
*
*
*
* The database relation created/updated by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4;
*
* @return Whether the relation field is set.
*/
@java.lang.Override
public boolean hasRelation() {
return compiledObjectCase_ == 4;
}
/**
*
*
*
* The database relation created/updated by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4;
*
* @return The relation.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation getRelation() {
if (relationBuilder_ == null) {
if (compiledObjectCase_ == 4) {
return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation)
compiledObject_;
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.getDefaultInstance();
} else {
if (compiledObjectCase_ == 4) {
return relationBuilder_.getMessage();
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.getDefaultInstance();
}
}
/**
*
*
*
* The database relation created/updated by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4;
*/
public Builder setRelation(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation value) {
if (relationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
compiledObject_ = value;
onChanged();
} else {
relationBuilder_.setMessage(value);
}
compiledObjectCase_ = 4;
return this;
}
/**
*
*
*
* The database relation created/updated by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4;
*/
public Builder setRelation(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.Builder
builderForValue) {
if (relationBuilder_ == null) {
compiledObject_ = builderForValue.build();
onChanged();
} else {
relationBuilder_.setMessage(builderForValue.build());
}
compiledObjectCase_ = 4;
return this;
}
/**
*
*
*
* The database relation created/updated by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4;
*/
public Builder mergeRelation(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation value) {
if (relationBuilder_ == null) {
if (compiledObjectCase_ == 4
&& compiledObject_
!= com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.getDefaultInstance()) {
compiledObject_ =
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.newBuilder(
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation)
compiledObject_)
.mergeFrom(value)
.buildPartial();
} else {
compiledObject_ = value;
}
onChanged();
} else {
if (compiledObjectCase_ == 4) {
relationBuilder_.mergeFrom(value);
} else {
relationBuilder_.setMessage(value);
}
}
compiledObjectCase_ = 4;
return this;
}
/**
*
*
*
* The database relation created/updated by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4;
*/
public Builder clearRelation() {
if (relationBuilder_ == null) {
if (compiledObjectCase_ == 4) {
compiledObjectCase_ = 0;
compiledObject_ = null;
onChanged();
}
} else {
if (compiledObjectCase_ == 4) {
compiledObjectCase_ = 0;
compiledObject_ = null;
}
relationBuilder_.clear();
}
return this;
}
/**
*
*
*
* The database relation created/updated by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4;
*/
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.Builder
getRelationBuilder() {
return getRelationFieldBuilder().getBuilder();
}
/**
*
*
*
* The database relation created/updated by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4;
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.RelationOrBuilder
getRelationOrBuilder() {
if ((compiledObjectCase_ == 4) && (relationBuilder_ != null)) {
return relationBuilder_.getMessageOrBuilder();
} else {
if (compiledObjectCase_ == 4) {
return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation)
compiledObject_;
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.getDefaultInstance();
}
}
/**
*
*
*
* The database relation created/updated by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.Builder,
com.google.cloud.dataform.v1beta1.CompilationResultAction.RelationOrBuilder>
getRelationFieldBuilder() {
if (relationBuilder_ == null) {
if (!(compiledObjectCase_ == 4)) {
compiledObject_ =
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation
.getDefaultInstance();
}
relationBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.Builder,
com.google.cloud.dataform.v1beta1.CompilationResultAction.RelationOrBuilder>(
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation)
compiledObject_,
getParentForChildren(),
isClean());
compiledObject_ = null;
}
compiledObjectCase_ = 4;
onChanged();
return relationBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.Builder,
com.google.cloud.dataform.v1beta1.CompilationResultAction.OperationsOrBuilder>
operationsBuilder_;
/**
*
*
*
* The database operations executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5;
*
*
* @return Whether the operations field is set.
*/
@java.lang.Override
public boolean hasOperations() {
return compiledObjectCase_ == 5;
}
/**
*
*
*
* The database operations executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5;
*
*
* @return The operations.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations getOperations() {
if (operationsBuilder_ == null) {
if (compiledObjectCase_ == 5) {
return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations)
compiledObject_;
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations
.getDefaultInstance();
} else {
if (compiledObjectCase_ == 5) {
return operationsBuilder_.getMessage();
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations
.getDefaultInstance();
}
}
/**
*
*
*
* The database operations executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5;
*
*/
public Builder setOperations(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations value) {
if (operationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
compiledObject_ = value;
onChanged();
} else {
operationsBuilder_.setMessage(value);
}
compiledObjectCase_ = 5;
return this;
}
/**
*
*
*
* The database operations executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5;
*
*/
public Builder setOperations(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.Builder
builderForValue) {
if (operationsBuilder_ == null) {
compiledObject_ = builderForValue.build();
onChanged();
} else {
operationsBuilder_.setMessage(builderForValue.build());
}
compiledObjectCase_ = 5;
return this;
}
/**
*
*
*
* The database operations executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5;
*
*/
public Builder mergeOperations(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations value) {
if (operationsBuilder_ == null) {
if (compiledObjectCase_ == 5
&& compiledObject_
!= com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations
.getDefaultInstance()) {
compiledObject_ =
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.newBuilder(
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations)
compiledObject_)
.mergeFrom(value)
.buildPartial();
} else {
compiledObject_ = value;
}
onChanged();
} else {
if (compiledObjectCase_ == 5) {
operationsBuilder_.mergeFrom(value);
} else {
operationsBuilder_.setMessage(value);
}
}
compiledObjectCase_ = 5;
return this;
}
/**
*
*
*
* The database operations executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5;
*
*/
public Builder clearOperations() {
if (operationsBuilder_ == null) {
if (compiledObjectCase_ == 5) {
compiledObjectCase_ = 0;
compiledObject_ = null;
onChanged();
}
} else {
if (compiledObjectCase_ == 5) {
compiledObjectCase_ = 0;
compiledObject_ = null;
}
operationsBuilder_.clear();
}
return this;
}
/**
*
*
*
* The database operations executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5;
*
*/
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.Builder
getOperationsBuilder() {
return getOperationsFieldBuilder().getBuilder();
}
/**
*
*
*
* The database operations executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5;
*
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.OperationsOrBuilder
getOperationsOrBuilder() {
if ((compiledObjectCase_ == 5) && (operationsBuilder_ != null)) {
return operationsBuilder_.getMessageOrBuilder();
} else {
if (compiledObjectCase_ == 5) {
return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations)
compiledObject_;
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations
.getDefaultInstance();
}
}
/**
*
*
*
* The database operations executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.Builder,
com.google.cloud.dataform.v1beta1.CompilationResultAction.OperationsOrBuilder>
getOperationsFieldBuilder() {
if (operationsBuilder_ == null) {
if (!(compiledObjectCase_ == 5)) {
compiledObject_ =
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations
.getDefaultInstance();
}
operationsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations.Builder,
com.google.cloud.dataform.v1beta1.CompilationResultAction.OperationsOrBuilder>(
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Operations)
compiledObject_,
getParentForChildren(),
isClean());
compiledObject_ = null;
}
compiledObjectCase_ = 5;
onChanged();
return operationsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.Builder,
com.google.cloud.dataform.v1beta1.CompilationResultAction.AssertionOrBuilder>
assertionBuilder_;
/**
*
*
*
* The assertion executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6;
*
* @return Whether the assertion field is set.
*/
@java.lang.Override
public boolean hasAssertion() {
return compiledObjectCase_ == 6;
}
/**
*
*
*
* The assertion executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6;
*
* @return The assertion.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion getAssertion() {
if (assertionBuilder_ == null) {
if (compiledObjectCase_ == 6) {
return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion)
compiledObject_;
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion
.getDefaultInstance();
} else {
if (compiledObjectCase_ == 6) {
return assertionBuilder_.getMessage();
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion
.getDefaultInstance();
}
}
/**
*
*
*
* The assertion executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6;
*/
public Builder setAssertion(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion value) {
if (assertionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
compiledObject_ = value;
onChanged();
} else {
assertionBuilder_.setMessage(value);
}
compiledObjectCase_ = 6;
return this;
}
/**
*
*
*
* The assertion executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6;
*/
public Builder setAssertion(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.Builder
builderForValue) {
if (assertionBuilder_ == null) {
compiledObject_ = builderForValue.build();
onChanged();
} else {
assertionBuilder_.setMessage(builderForValue.build());
}
compiledObjectCase_ = 6;
return this;
}
/**
*
*
*
* The assertion executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6;
*/
public Builder mergeAssertion(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion value) {
if (assertionBuilder_ == null) {
if (compiledObjectCase_ == 6
&& compiledObject_
!= com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion
.getDefaultInstance()) {
compiledObject_ =
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.newBuilder(
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion)
compiledObject_)
.mergeFrom(value)
.buildPartial();
} else {
compiledObject_ = value;
}
onChanged();
} else {
if (compiledObjectCase_ == 6) {
assertionBuilder_.mergeFrom(value);
} else {
assertionBuilder_.setMessage(value);
}
}
compiledObjectCase_ = 6;
return this;
}
/**
*
*
*
* The assertion executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6;
*/
public Builder clearAssertion() {
if (assertionBuilder_ == null) {
if (compiledObjectCase_ == 6) {
compiledObjectCase_ = 0;
compiledObject_ = null;
onChanged();
}
} else {
if (compiledObjectCase_ == 6) {
compiledObjectCase_ = 0;
compiledObject_ = null;
}
assertionBuilder_.clear();
}
return this;
}
/**
*
*
*
* The assertion executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6;
*/
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.Builder
getAssertionBuilder() {
return getAssertionFieldBuilder().getBuilder();
}
/**
*
*
*
* The assertion executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6;
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.AssertionOrBuilder
getAssertionOrBuilder() {
if ((compiledObjectCase_ == 6) && (assertionBuilder_ != null)) {
return assertionBuilder_.getMessageOrBuilder();
} else {
if (compiledObjectCase_ == 6) {
return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion)
compiledObject_;
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion
.getDefaultInstance();
}
}
/**
*
*
*
* The assertion executed by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.Builder,
com.google.cloud.dataform.v1beta1.CompilationResultAction.AssertionOrBuilder>
getAssertionFieldBuilder() {
if (assertionBuilder_ == null) {
if (!(compiledObjectCase_ == 6)) {
compiledObject_ =
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion
.getDefaultInstance();
}
assertionBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion.Builder,
com.google.cloud.dataform.v1beta1.CompilationResultAction.AssertionOrBuilder>(
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Assertion)
compiledObject_,
getParentForChildren(),
isClean());
compiledObject_ = null;
}
compiledObjectCase_ = 6;
onChanged();
return assertionBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.Builder,
com.google.cloud.dataform.v1beta1.CompilationResultAction.DeclarationOrBuilder>
declarationBuilder_;
/**
*
*
*
* The declaration declared by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7;
*
*
* @return Whether the declaration field is set.
*/
@java.lang.Override
public boolean hasDeclaration() {
return compiledObjectCase_ == 7;
}
/**
*
*
*
* The declaration declared by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7;
*
*
* @return The declaration.
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration getDeclaration() {
if (declarationBuilder_ == null) {
if (compiledObjectCase_ == 7) {
return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration)
compiledObject_;
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration
.getDefaultInstance();
} else {
if (compiledObjectCase_ == 7) {
return declarationBuilder_.getMessage();
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration
.getDefaultInstance();
}
}
/**
*
*
*
* The declaration declared by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7;
*
*/
public Builder setDeclaration(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration value) {
if (declarationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
compiledObject_ = value;
onChanged();
} else {
declarationBuilder_.setMessage(value);
}
compiledObjectCase_ = 7;
return this;
}
/**
*
*
*
* The declaration declared by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7;
*
*/
public Builder setDeclaration(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.Builder
builderForValue) {
if (declarationBuilder_ == null) {
compiledObject_ = builderForValue.build();
onChanged();
} else {
declarationBuilder_.setMessage(builderForValue.build());
}
compiledObjectCase_ = 7;
return this;
}
/**
*
*
*
* The declaration declared by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7;
*
*/
public Builder mergeDeclaration(
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration value) {
if (declarationBuilder_ == null) {
if (compiledObjectCase_ == 7
&& compiledObject_
!= com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration
.getDefaultInstance()) {
compiledObject_ =
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.newBuilder(
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration)
compiledObject_)
.mergeFrom(value)
.buildPartial();
} else {
compiledObject_ = value;
}
onChanged();
} else {
if (compiledObjectCase_ == 7) {
declarationBuilder_.mergeFrom(value);
} else {
declarationBuilder_.setMessage(value);
}
}
compiledObjectCase_ = 7;
return this;
}
/**
*
*
*
* The declaration declared by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7;
*
*/
public Builder clearDeclaration() {
if (declarationBuilder_ == null) {
if (compiledObjectCase_ == 7) {
compiledObjectCase_ = 0;
compiledObject_ = null;
onChanged();
}
} else {
if (compiledObjectCase_ == 7) {
compiledObjectCase_ = 0;
compiledObject_ = null;
}
declarationBuilder_.clear();
}
return this;
}
/**
*
*
*
* The declaration declared by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7;
*
*/
public com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.Builder
getDeclarationBuilder() {
return getDeclarationFieldBuilder().getBuilder();
}
/**
*
*
*
* The declaration declared by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7;
*
*/
@java.lang.Override
public com.google.cloud.dataform.v1beta1.CompilationResultAction.DeclarationOrBuilder
getDeclarationOrBuilder() {
if ((compiledObjectCase_ == 7) && (declarationBuilder_ != null)) {
return declarationBuilder_.getMessageOrBuilder();
} else {
if (compiledObjectCase_ == 7) {
return (com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration)
compiledObject_;
}
return com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration
.getDefaultInstance();
}
}
/**
*
*
*
* The declaration declared by this action.
*
*
* .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.Builder,
com.google.cloud.dataform.v1beta1.CompilationResultAction.DeclarationOrBuilder>
getDeclarationFieldBuilder() {
if (declarationBuilder_ == null) {
if (!(compiledObjectCase_ == 7)) {
compiledObject_ =
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration
.getDefaultInstance();
}
declarationBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration,
com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration.Builder,
com.google.cloud.dataform.v1beta1.CompilationResultAction.DeclarationOrBuilder>(
(com.google.cloud.dataform.v1beta1.CompilationResultAction.Declaration)
compiledObject_,
getParentForChildren(),
isClean());
compiledObject_ = null;
}
compiledObjectCase_ = 7;
onChanged();
return declarationBuilder_;
}
@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.CompilationResultAction)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CompilationResultAction)
private static final com.google.cloud.dataform.v1beta1.CompilationResultAction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CompilationResultAction();
}
public static com.google.cloud.dataform.v1beta1.CompilationResultAction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CompilationResultAction 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.CompilationResultAction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}