Class CompilationResultAction.Relation.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<CompilationResultAction.Relation.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<CompilationResultAction.Relation.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CompilationResultAction.Relation.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CompilationResultAction.Relation.Builder>
      • getDefaultInstanceForType

        public CompilationResultAction.Relation getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public CompilationResultAction.Relation build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public CompilationResultAction.Relation buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CompilationResultAction.Relation.Builder>
      • setDependencyTargets

        public CompilationResultAction.Relation.Builder setDependencyTargets​(int index,
                                                                             Target value)
         A list of actions that this action depends on.
         
        repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
      • addDependencyTargets

        public CompilationResultAction.Relation.Builder addDependencyTargets​(int index,
                                                                             Target value)
         A list of actions that this action depends on.
         
        repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
      • clearDependencyTargets

        public CompilationResultAction.Relation.Builder clearDependencyTargets()
         A list of actions that this action depends on.
         
        repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
      • removeDependencyTargets

        public CompilationResultAction.Relation.Builder removeDependencyTargets​(int index)
         A list of actions that this action depends on.
         
        repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
      • getDependencyTargetsBuilder

        public Target.Builder getDependencyTargetsBuilder​(int index)
         A list of actions that this action depends on.
         
        repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
      • addDependencyTargetsBuilder

        public Target.Builder addDependencyTargetsBuilder()
         A list of actions that this action depends on.
         
        repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
      • addDependencyTargetsBuilder

        public Target.Builder addDependencyTargetsBuilder​(int index)
         A list of actions that this action depends on.
         
        repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
      • getDependencyTargetsBuilderList

        public List<Target.Builder> getDependencyTargetsBuilderList()
         A list of actions that this action depends on.
         
        repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1;
      • setDisabled

        public CompilationResultAction.Relation.Builder setDisabled​(boolean value)
         Whether this action is disabled (i.e. should not be run).
         
        bool disabled = 2;
        Parameters:
        value - The disabled to set.
        Returns:
        This builder for chaining.
      • getTagsList

        public com.google.protobuf.ProtocolStringList getTagsList()
         Arbitrary, user-defined tags on this action.
         
        repeated string tags = 3;
        Specified by:
        getTagsList in interface CompilationResultAction.RelationOrBuilder
        Returns:
        A list containing the tags.
      • getTags

        public String getTags​(int index)
         Arbitrary, user-defined tags on this action.
         
        repeated string tags = 3;
        Specified by:
        getTags in interface CompilationResultAction.RelationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The tags at the given index.
      • getTagsBytes

        public com.google.protobuf.ByteString getTagsBytes​(int index)
         Arbitrary, user-defined tags on this action.
         
        repeated string tags = 3;
        Specified by:
        getTagsBytes in interface CompilationResultAction.RelationOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the tags at the given index.
      • setTags

        public CompilationResultAction.Relation.Builder setTags​(int index,
                                                                String value)
         Arbitrary, user-defined tags on this action.
         
        repeated string tags = 3;
        Parameters:
        index - The index to set the value at.
        value - The tags to set.
        Returns:
        This builder for chaining.
      • addTagsBytes

        public CompilationResultAction.Relation.Builder addTagsBytes​(com.google.protobuf.ByteString value)
         Arbitrary, user-defined tags on this action.
         
        repeated string tags = 3;
        Parameters:
        value - The bytes of the tags to add.
        Returns:
        This builder for chaining.
      • hasRelationDescriptor

        public boolean hasRelationDescriptor()
         Descriptor for the relation and its columns.
         
        .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4;
        Specified by:
        hasRelationDescriptor in interface CompilationResultAction.RelationOrBuilder
        Returns:
        Whether the relationDescriptor field is set.
      • clearRelationDescriptor

        public CompilationResultAction.Relation.Builder clearRelationDescriptor()
         Descriptor for the relation and its columns.
         
        .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4;
      • getRelationDescriptorBuilder

        public RelationDescriptor.Builder getRelationDescriptorBuilder()
         Descriptor for the relation and its columns.
         
        .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4;
      • getRelationTypeValue

        public int getRelationTypeValue()
         The type of this relation.
         
        .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5;
        Specified by:
        getRelationTypeValue in interface CompilationResultAction.RelationOrBuilder
        Returns:
        The enum numeric value on the wire for relationType.
      • setRelationTypeValue

        public CompilationResultAction.Relation.Builder setRelationTypeValue​(int value)
         The type of this relation.
         
        .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5;
        Parameters:
        value - The enum numeric value on the wire for relationType to set.
        Returns:
        This builder for chaining.
      • clearRelationType

        public CompilationResultAction.Relation.Builder clearRelationType()
         The type of this relation.
         
        .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5;
        Returns:
        This builder for chaining.
      • getSelectQueryBytes

        public com.google.protobuf.ByteString getSelectQueryBytes()
         The SELECT query which returns rows which this relation should contain.
         
        string select_query = 6;
        Specified by:
        getSelectQueryBytes in interface CompilationResultAction.RelationOrBuilder
        Returns:
        The bytes for selectQuery.
      • setSelectQuery

        public CompilationResultAction.Relation.Builder setSelectQuery​(String value)
         The SELECT query which returns rows which this relation should contain.
         
        string select_query = 6;
        Parameters:
        value - The selectQuery to set.
        Returns:
        This builder for chaining.
      • clearSelectQuery

        public CompilationResultAction.Relation.Builder clearSelectQuery()
         The SELECT query which returns rows which this relation should contain.
         
        string select_query = 6;
        Returns:
        This builder for chaining.
      • setSelectQueryBytes

        public CompilationResultAction.Relation.Builder setSelectQueryBytes​(com.google.protobuf.ByteString value)
         The SELECT query which returns rows which this relation should contain.
         
        string select_query = 6;
        Parameters:
        value - The bytes for selectQuery to set.
        Returns:
        This builder for chaining.
      • getPreOperationsList

        public com.google.protobuf.ProtocolStringList getPreOperationsList()
         SQL statements to be executed before creating the relation.
         
        repeated string pre_operations = 7;
        Specified by:
        getPreOperationsList in interface CompilationResultAction.RelationOrBuilder
        Returns:
        A list containing the preOperations.
      • getPreOperations

        public String getPreOperations​(int index)
         SQL statements to be executed before creating the relation.
         
        repeated string pre_operations = 7;
        Specified by:
        getPreOperations in interface CompilationResultAction.RelationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The preOperations at the given index.
      • getPreOperationsBytes

        public com.google.protobuf.ByteString getPreOperationsBytes​(int index)
         SQL statements to be executed before creating the relation.
         
        repeated string pre_operations = 7;
        Specified by:
        getPreOperationsBytes in interface CompilationResultAction.RelationOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the preOperations at the given index.
      • setPreOperations

        public CompilationResultAction.Relation.Builder setPreOperations​(int index,
                                                                         String value)
         SQL statements to be executed before creating the relation.
         
        repeated string pre_operations = 7;
        Parameters:
        index - The index to set the value at.
        value - The preOperations to set.
        Returns:
        This builder for chaining.
      • addPreOperations

        public CompilationResultAction.Relation.Builder addPreOperations​(String value)
         SQL statements to be executed before creating the relation.
         
        repeated string pre_operations = 7;
        Parameters:
        value - The preOperations to add.
        Returns:
        This builder for chaining.
      • addAllPreOperations

        public CompilationResultAction.Relation.Builder addAllPreOperations​(Iterable<String> values)
         SQL statements to be executed before creating the relation.
         
        repeated string pre_operations = 7;
        Parameters:
        values - The preOperations to add.
        Returns:
        This builder for chaining.
      • clearPreOperations

        public CompilationResultAction.Relation.Builder clearPreOperations()
         SQL statements to be executed before creating the relation.
         
        repeated string pre_operations = 7;
        Returns:
        This builder for chaining.
      • addPreOperationsBytes

        public CompilationResultAction.Relation.Builder addPreOperationsBytes​(com.google.protobuf.ByteString value)
         SQL statements to be executed before creating the relation.
         
        repeated string pre_operations = 7;
        Parameters:
        value - The bytes of the preOperations to add.
        Returns:
        This builder for chaining.
      • getPostOperationsList

        public com.google.protobuf.ProtocolStringList getPostOperationsList()
         SQL statements to be executed after creating the relation.
         
        repeated string post_operations = 8;
        Specified by:
        getPostOperationsList in interface CompilationResultAction.RelationOrBuilder
        Returns:
        A list containing the postOperations.
      • getPostOperations

        public String getPostOperations​(int index)
         SQL statements to be executed after creating the relation.
         
        repeated string post_operations = 8;
        Specified by:
        getPostOperations in interface CompilationResultAction.RelationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The postOperations at the given index.
      • getPostOperationsBytes

        public com.google.protobuf.ByteString getPostOperationsBytes​(int index)
         SQL statements to be executed after creating the relation.
         
        repeated string post_operations = 8;
        Specified by:
        getPostOperationsBytes in interface CompilationResultAction.RelationOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the postOperations at the given index.
      • setPostOperations

        public CompilationResultAction.Relation.Builder setPostOperations​(int index,
                                                                          String value)
         SQL statements to be executed after creating the relation.
         
        repeated string post_operations = 8;
        Parameters:
        index - The index to set the value at.
        value - The postOperations to set.
        Returns:
        This builder for chaining.
      • addPostOperations

        public CompilationResultAction.Relation.Builder addPostOperations​(String value)
         SQL statements to be executed after creating the relation.
         
        repeated string post_operations = 8;
        Parameters:
        value - The postOperations to add.
        Returns:
        This builder for chaining.
      • addAllPostOperations

        public CompilationResultAction.Relation.Builder addAllPostOperations​(Iterable<String> values)
         SQL statements to be executed after creating the relation.
         
        repeated string post_operations = 8;
        Parameters:
        values - The postOperations to add.
        Returns:
        This builder for chaining.
      • clearPostOperations

        public CompilationResultAction.Relation.Builder clearPostOperations()
         SQL statements to be executed after creating the relation.
         
        repeated string post_operations = 8;
        Returns:
        This builder for chaining.
      • addPostOperationsBytes

        public CompilationResultAction.Relation.Builder addPostOperationsBytes​(com.google.protobuf.ByteString value)
         SQL statements to be executed after creating the relation.
         
        repeated string post_operations = 8;
        Parameters:
        value - The bytes of the postOperations to add.
        Returns:
        This builder for chaining.
      • hasIncrementalTableConfig

        public 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;
        Specified by:
        hasIncrementalTableConfig in interface CompilationResultAction.RelationOrBuilder
        Returns:
        Whether the incrementalTableConfig field is set.
      • clearIncrementalTableConfig

        public CompilationResultAction.Relation.Builder clearIncrementalTableConfig()
         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;
      • getIncrementalTableConfigBuilder

        public CompilationResultAction.Relation.IncrementalTableConfig.Builder getIncrementalTableConfigBuilder()
         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;
      • setPartitionExpression

        public CompilationResultAction.Relation.Builder setPartitionExpression​(String value)
         The SQL expression used to partition the relation.
         
        string partition_expression = 10;
        Parameters:
        value - The partitionExpression to set.
        Returns:
        This builder for chaining.
      • clearPartitionExpression

        public CompilationResultAction.Relation.Builder clearPartitionExpression()
         The SQL expression used to partition the relation.
         
        string partition_expression = 10;
        Returns:
        This builder for chaining.
      • setPartitionExpressionBytes

        public CompilationResultAction.Relation.Builder setPartitionExpressionBytes​(com.google.protobuf.ByteString value)
         The SQL expression used to partition the relation.
         
        string partition_expression = 10;
        Parameters:
        value - The bytes for partitionExpression to set.
        Returns:
        This builder for chaining.
      • getClusterExpressionsList

        public com.google.protobuf.ProtocolStringList getClusterExpressionsList()
         A list of columns or SQL expressions used to cluster the table.
         
        repeated string cluster_expressions = 11;
        Specified by:
        getClusterExpressionsList in interface CompilationResultAction.RelationOrBuilder
        Returns:
        A list containing the clusterExpressions.
      • getClusterExpressions

        public String getClusterExpressions​(int index)
         A list of columns or SQL expressions used to cluster the table.
         
        repeated string cluster_expressions = 11;
        Specified by:
        getClusterExpressions in interface CompilationResultAction.RelationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The clusterExpressions at the given index.
      • getClusterExpressionsBytes

        public com.google.protobuf.ByteString getClusterExpressionsBytes​(int index)
         A list of columns or SQL expressions used to cluster the table.
         
        repeated string cluster_expressions = 11;
        Specified by:
        getClusterExpressionsBytes in interface CompilationResultAction.RelationOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the clusterExpressions at the given index.
      • setClusterExpressions

        public CompilationResultAction.Relation.Builder setClusterExpressions​(int index,
                                                                              String value)
         A list of columns or SQL expressions used to cluster the table.
         
        repeated string cluster_expressions = 11;
        Parameters:
        index - The index to set the value at.
        value - The clusterExpressions to set.
        Returns:
        This builder for chaining.
      • addClusterExpressions

        public CompilationResultAction.Relation.Builder addClusterExpressions​(String value)
         A list of columns or SQL expressions used to cluster the table.
         
        repeated string cluster_expressions = 11;
        Parameters:
        value - The clusterExpressions to add.
        Returns:
        This builder for chaining.
      • addAllClusterExpressions

        public CompilationResultAction.Relation.Builder addAllClusterExpressions​(Iterable<String> values)
         A list of columns or SQL expressions used to cluster the table.
         
        repeated string cluster_expressions = 11;
        Parameters:
        values - The clusterExpressions to add.
        Returns:
        This builder for chaining.
      • clearClusterExpressions

        public CompilationResultAction.Relation.Builder clearClusterExpressions()
         A list of columns or SQL expressions used to cluster the table.
         
        repeated string cluster_expressions = 11;
        Returns:
        This builder for chaining.
      • addClusterExpressionsBytes

        public CompilationResultAction.Relation.Builder addClusterExpressionsBytes​(com.google.protobuf.ByteString value)
         A list of columns or SQL expressions used to cluster the table.
         
        repeated string cluster_expressions = 11;
        Parameters:
        value - The bytes of the clusterExpressions to add.
        Returns:
        This builder for chaining.
      • setPartitionExpirationDays

        public CompilationResultAction.Relation.Builder setPartitionExpirationDays​(int value)
         Sets the partition expiration in days.
         
        int32 partition_expiration_days = 12;
        Parameters:
        value - The partitionExpirationDays to set.
        Returns:
        This builder for chaining.
      • clearPartitionExpirationDays

        public CompilationResultAction.Relation.Builder clearPartitionExpirationDays()
         Sets the partition expiration in days.
         
        int32 partition_expiration_days = 12;
        Returns:
        This builder for chaining.
      • getRequirePartitionFilter

        public boolean getRequirePartitionFilter()
         Specifies whether queries on this table must include a predicate filter
         that filters on the partitioning column.
         
        bool require_partition_filter = 13;
        Specified by:
        getRequirePartitionFilter in interface CompilationResultAction.RelationOrBuilder
        Returns:
        The requirePartitionFilter.
      • setRequirePartitionFilter

        public CompilationResultAction.Relation.Builder setRequirePartitionFilter​(boolean value)
         Specifies whether queries on this table must include a predicate filter
         that filters on the partitioning column.
         
        bool require_partition_filter = 13;
        Parameters:
        value - The requirePartitionFilter to set.
        Returns:
        This builder for chaining.
      • clearRequirePartitionFilter

        public CompilationResultAction.Relation.Builder clearRequirePartitionFilter()
         Specifies whether queries on this table must include a predicate filter
         that filters on the partitioning column.
         
        bool require_partition_filter = 13;
        Returns:
        This builder for chaining.
      • getAdditionalOptionsCount

        public int getAdditionalOptionsCount()
        Description copied from interface: CompilationResultAction.RelationOrBuilder
         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;
        Specified by:
        getAdditionalOptionsCount in interface CompilationResultAction.RelationOrBuilder
      • containsAdditionalOptions

        public boolean containsAdditionalOptions​(String key)
         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;
        Specified by:
        containsAdditionalOptions in interface CompilationResultAction.RelationOrBuilder
      • getAdditionalOptionsMap

        public Map<String,​String> 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;
        Specified by:
        getAdditionalOptionsMap in interface CompilationResultAction.RelationOrBuilder
      • getAdditionalOptionsOrDefault

        public String getAdditionalOptionsOrDefault​(String key,
                                                    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;
        Specified by:
        getAdditionalOptionsOrDefault in interface CompilationResultAction.RelationOrBuilder
      • getAdditionalOptionsOrThrow

        public String getAdditionalOptionsOrThrow​(String key)
         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;
        Specified by:
        getAdditionalOptionsOrThrow in interface CompilationResultAction.RelationOrBuilder
      • removeAdditionalOptions

        public CompilationResultAction.Relation.Builder removeAdditionalOptions​(String key)
         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;
      • getMutableAdditionalOptions

        @Deprecated
        public Map<String,​String> getMutableAdditionalOptions()
        Deprecated.
        Use alternate mutation accessors instead.
      • putAdditionalOptions

        public CompilationResultAction.Relation.Builder putAdditionalOptions​(String key,
                                                                             String value)
         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;
      • putAllAdditionalOptions

        public CompilationResultAction.Relation.Builder putAllAdditionalOptions​(Map<String,​String> values)
         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;