Class QuasiId.Builder

  • All Implemented Interfaces:
    QuasiIdOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    QuasiId

    public static final class QuasiId.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<QuasiId.Builder>
    implements QuasiIdOrBuilder
     A column with a semantic tag attached.
     
    Protobuf type google.privacy.dlp.v2.QuasiId
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<QuasiId.Builder>
      • clear

        public QuasiId.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<QuasiId.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<QuasiId.Builder>
      • getDefaultInstanceForType

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

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

        public QuasiId buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public QuasiId.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<QuasiId.Builder>
      • setField

        public QuasiId.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                        Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<QuasiId.Builder>
      • clearField

        public QuasiId.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<QuasiId.Builder>
      • clearOneof

        public QuasiId.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<QuasiId.Builder>
      • setRepeatedField

        public QuasiId.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                int index,
                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<QuasiId.Builder>
      • addRepeatedField

        public QuasiId.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<QuasiId.Builder>
      • mergeFrom

        public QuasiId.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<QuasiId.Builder>
      • isInitialized

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

        public QuasiId.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<QuasiId.Builder>
        Throws:
        IOException
      • hasField

        public boolean hasField()
         Required. Identifies the column.
         
        .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasField in interface QuasiIdOrBuilder
        Returns:
        Whether the field field is set.
      • getField

        public FieldId getField()
         Required. Identifies the column.
         
        .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getField in interface QuasiIdOrBuilder
        Returns:
        The field.
      • setField

        public QuasiId.Builder setField​(FieldId value)
         Required. Identifies the column.
         
        .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
      • setField

        public QuasiId.Builder setField​(FieldId.Builder builderForValue)
         Required. Identifies the column.
         
        .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
      • mergeField

        public QuasiId.Builder mergeField​(FieldId value)
         Required. Identifies the column.
         
        .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
      • clearField

        public QuasiId.Builder clearField()
         Required. Identifies the column.
         
        .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
      • getFieldBuilder

        public FieldId.Builder getFieldBuilder()
         Required. Identifies the column.
         
        .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
      • getFieldOrBuilder

        public FieldIdOrBuilder getFieldOrBuilder()
         Required. Identifies the column.
         
        .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getFieldOrBuilder in interface QuasiIdOrBuilder
      • hasInfoType

        public boolean hasInfoType()
         A column can be tagged with a InfoType to use the relevant public
         dataset as a statistical model of population, if available. We
         currently support US ZIP codes, region codes, ages and genders.
         To programmatically obtain the list of supported InfoTypes, use
         ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
         
        .google.privacy.dlp.v2.InfoType info_type = 2;
        Specified by:
        hasInfoType in interface QuasiIdOrBuilder
        Returns:
        Whether the infoType field is set.
      • getInfoType

        public InfoType getInfoType()
         A column can be tagged with a InfoType to use the relevant public
         dataset as a statistical model of population, if available. We
         currently support US ZIP codes, region codes, ages and genders.
         To programmatically obtain the list of supported InfoTypes, use
         ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
         
        .google.privacy.dlp.v2.InfoType info_type = 2;
        Specified by:
        getInfoType in interface QuasiIdOrBuilder
        Returns:
        The infoType.
      • setInfoType

        public QuasiId.Builder setInfoType​(InfoType value)
         A column can be tagged with a InfoType to use the relevant public
         dataset as a statistical model of population, if available. We
         currently support US ZIP codes, region codes, ages and genders.
         To programmatically obtain the list of supported InfoTypes, use
         ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
         
        .google.privacy.dlp.v2.InfoType info_type = 2;
      • setInfoType

        public QuasiId.Builder setInfoType​(InfoType.Builder builderForValue)
         A column can be tagged with a InfoType to use the relevant public
         dataset as a statistical model of population, if available. We
         currently support US ZIP codes, region codes, ages and genders.
         To programmatically obtain the list of supported InfoTypes, use
         ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
         
        .google.privacy.dlp.v2.InfoType info_type = 2;
      • mergeInfoType

        public QuasiId.Builder mergeInfoType​(InfoType value)
         A column can be tagged with a InfoType to use the relevant public
         dataset as a statistical model of population, if available. We
         currently support US ZIP codes, region codes, ages and genders.
         To programmatically obtain the list of supported InfoTypes, use
         ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
         
        .google.privacy.dlp.v2.InfoType info_type = 2;
      • clearInfoType

        public QuasiId.Builder clearInfoType()
         A column can be tagged with a InfoType to use the relevant public
         dataset as a statistical model of population, if available. We
         currently support US ZIP codes, region codes, ages and genders.
         To programmatically obtain the list of supported InfoTypes, use
         ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
         
        .google.privacy.dlp.v2.InfoType info_type = 2;
      • getInfoTypeBuilder

        public InfoType.Builder getInfoTypeBuilder()
         A column can be tagged with a InfoType to use the relevant public
         dataset as a statistical model of population, if available. We
         currently support US ZIP codes, region codes, ages and genders.
         To programmatically obtain the list of supported InfoTypes, use
         ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
         
        .google.privacy.dlp.v2.InfoType info_type = 2;
      • getInfoTypeOrBuilder

        public InfoTypeOrBuilder getInfoTypeOrBuilder()
         A column can be tagged with a InfoType to use the relevant public
         dataset as a statistical model of population, if available. We
         currently support US ZIP codes, region codes, ages and genders.
         To programmatically obtain the list of supported InfoTypes, use
         ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
         
        .google.privacy.dlp.v2.InfoType info_type = 2;
        Specified by:
        getInfoTypeOrBuilder in interface QuasiIdOrBuilder
      • hasCustomTag

        public boolean hasCustomTag()
         A column can be tagged with a custom tag. In this case, the user must
         indicate an auxiliary table that contains statistical information on
         the possible values of this column (below).
         
        string custom_tag = 3;
        Specified by:
        hasCustomTag in interface QuasiIdOrBuilder
        Returns:
        Whether the customTag field is set.
      • getCustomTag

        public String getCustomTag()
         A column can be tagged with a custom tag. In this case, the user must
         indicate an auxiliary table that contains statistical information on
         the possible values of this column (below).
         
        string custom_tag = 3;
        Specified by:
        getCustomTag in interface QuasiIdOrBuilder
        Returns:
        The customTag.
      • getCustomTagBytes

        public com.google.protobuf.ByteString getCustomTagBytes()
         A column can be tagged with a custom tag. In this case, the user must
         indicate an auxiliary table that contains statistical information on
         the possible values of this column (below).
         
        string custom_tag = 3;
        Specified by:
        getCustomTagBytes in interface QuasiIdOrBuilder
        Returns:
        The bytes for customTag.
      • setCustomTag

        public QuasiId.Builder setCustomTag​(String value)
         A column can be tagged with a custom tag. In this case, the user must
         indicate an auxiliary table that contains statistical information on
         the possible values of this column (below).
         
        string custom_tag = 3;
        Parameters:
        value - The customTag to set.
        Returns:
        This builder for chaining.
      • clearCustomTag

        public QuasiId.Builder clearCustomTag()
         A column can be tagged with a custom tag. In this case, the user must
         indicate an auxiliary table that contains statistical information on
         the possible values of this column (below).
         
        string custom_tag = 3;
        Returns:
        This builder for chaining.
      • setCustomTagBytes

        public QuasiId.Builder setCustomTagBytes​(com.google.protobuf.ByteString value)
         A column can be tagged with a custom tag. In this case, the user must
         indicate an auxiliary table that contains statistical information on
         the possible values of this column (below).
         
        string custom_tag = 3;
        Parameters:
        value - The bytes for customTag to set.
        Returns:
        This builder for chaining.
      • hasInferred

        public boolean hasInferred()
         If no semantic tag is indicated, we infer the statistical model from
         the distribution of values in the input data
         
        .google.protobuf.Empty inferred = 4;
        Specified by:
        hasInferred in interface QuasiIdOrBuilder
        Returns:
        Whether the inferred field is set.
      • getInferred

        public com.google.protobuf.Empty getInferred()
         If no semantic tag is indicated, we infer the statistical model from
         the distribution of values in the input data
         
        .google.protobuf.Empty inferred = 4;
        Specified by:
        getInferred in interface QuasiIdOrBuilder
        Returns:
        The inferred.
      • setInferred

        public QuasiId.Builder setInferred​(com.google.protobuf.Empty value)
         If no semantic tag is indicated, we infer the statistical model from
         the distribution of values in the input data
         
        .google.protobuf.Empty inferred = 4;
      • setInferred

        public QuasiId.Builder setInferred​(com.google.protobuf.Empty.Builder builderForValue)
         If no semantic tag is indicated, we infer the statistical model from
         the distribution of values in the input data
         
        .google.protobuf.Empty inferred = 4;
      • mergeInferred

        public QuasiId.Builder mergeInferred​(com.google.protobuf.Empty value)
         If no semantic tag is indicated, we infer the statistical model from
         the distribution of values in the input data
         
        .google.protobuf.Empty inferred = 4;
      • clearInferred

        public QuasiId.Builder clearInferred()
         If no semantic tag is indicated, we infer the statistical model from
         the distribution of values in the input data
         
        .google.protobuf.Empty inferred = 4;
      • getInferredBuilder

        public com.google.protobuf.Empty.Builder getInferredBuilder()
         If no semantic tag is indicated, we infer the statistical model from
         the distribution of values in the input data
         
        .google.protobuf.Empty inferred = 4;
      • getInferredOrBuilder

        public com.google.protobuf.EmptyOrBuilder getInferredOrBuilder()
         If no semantic tag is indicated, we infer the statistical model from
         the distribution of values in the input data
         
        .google.protobuf.Empty inferred = 4;
        Specified by:
        getInferredOrBuilder in interface QuasiIdOrBuilder
      • setUnknownFields

        public final QuasiId.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<QuasiId.Builder>
      • mergeUnknownFields

        public final QuasiId.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<QuasiId.Builder>