Class InfoTypeCategory.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InfoTypeCategory.Builder>
com.google.privacy.dlp.v2.InfoTypeCategory.Builder
All Implemented Interfaces:
InfoTypeCategoryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
InfoTypeCategory

public static final class InfoTypeCategory.Builder extends com.google.protobuf.GeneratedMessage.Builder<InfoTypeCategory.Builder> implements InfoTypeCategoryOrBuilder
 Classification of infoTypes to organize them according to geographic
 location, industry, and data type.
 
Protobuf type google.privacy.dlp.v2.InfoTypeCategory
  • Method Details

    • getDescriptor

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

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

      public InfoTypeCategory.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.GeneratedMessage.Builder<InfoTypeCategory.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.GeneratedMessage.Builder<InfoTypeCategory.Builder>
    • getDefaultInstanceForType

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

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

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

      public InfoTypeCategory.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<InfoTypeCategory.Builder>
    • mergeFrom

      public InfoTypeCategory.Builder mergeFrom(InfoTypeCategory other)
    • isInitialized

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

      public InfoTypeCategory.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<InfoTypeCategory.Builder>
      Throws:
      IOException
    • getCategoryCase

      public InfoTypeCategory.CategoryCase getCategoryCase()
      Specified by:
      getCategoryCase in interface InfoTypeCategoryOrBuilder
    • clearCategory

      public InfoTypeCategory.Builder clearCategory()
    • hasLocationCategory

      public boolean hasLocationCategory()
       The region or country that issued the ID or document represented by the
       infoType.
       
      .google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1;
      Specified by:
      hasLocationCategory in interface InfoTypeCategoryOrBuilder
      Returns:
      Whether the locationCategory field is set.
    • getLocationCategoryValue

      public int getLocationCategoryValue()
       The region or country that issued the ID or document represented by the
       infoType.
       
      .google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1;
      Specified by:
      getLocationCategoryValue in interface InfoTypeCategoryOrBuilder
      Returns:
      The enum numeric value on the wire for locationCategory.
    • setLocationCategoryValue

      public InfoTypeCategory.Builder setLocationCategoryValue(int value)
       The region or country that issued the ID or document represented by the
       infoType.
       
      .google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1;
      Parameters:
      value - The enum numeric value on the wire for locationCategory to set.
      Returns:
      This builder for chaining.
    • getLocationCategory

      public InfoTypeCategory.LocationCategory getLocationCategory()
       The region or country that issued the ID or document represented by the
       infoType.
       
      .google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1;
      Specified by:
      getLocationCategory in interface InfoTypeCategoryOrBuilder
      Returns:
      The locationCategory.
    • setLocationCategory

      public InfoTypeCategory.Builder setLocationCategory(InfoTypeCategory.LocationCategory value)
       The region or country that issued the ID or document represented by the
       infoType.
       
      .google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1;
      Parameters:
      value - The locationCategory to set.
      Returns:
      This builder for chaining.
    • clearLocationCategory

      public InfoTypeCategory.Builder clearLocationCategory()
       The region or country that issued the ID or document represented by the
       infoType.
       
      .google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1;
      Returns:
      This builder for chaining.
    • hasIndustryCategory

      public boolean hasIndustryCategory()
       The group of relevant businesses where this infoType is commonly used
       
      .google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2;
      Specified by:
      hasIndustryCategory in interface InfoTypeCategoryOrBuilder
      Returns:
      Whether the industryCategory field is set.
    • getIndustryCategoryValue

      public int getIndustryCategoryValue()
       The group of relevant businesses where this infoType is commonly used
       
      .google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2;
      Specified by:
      getIndustryCategoryValue in interface InfoTypeCategoryOrBuilder
      Returns:
      The enum numeric value on the wire for industryCategory.
    • setIndustryCategoryValue

      public InfoTypeCategory.Builder setIndustryCategoryValue(int value)
       The group of relevant businesses where this infoType is commonly used
       
      .google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2;
      Parameters:
      value - The enum numeric value on the wire for industryCategory to set.
      Returns:
      This builder for chaining.
    • getIndustryCategory

      public InfoTypeCategory.IndustryCategory getIndustryCategory()
       The group of relevant businesses where this infoType is commonly used
       
      .google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2;
      Specified by:
      getIndustryCategory in interface InfoTypeCategoryOrBuilder
      Returns:
      The industryCategory.
    • setIndustryCategory

      public InfoTypeCategory.Builder setIndustryCategory(InfoTypeCategory.IndustryCategory value)
       The group of relevant businesses where this infoType is commonly used
       
      .google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2;
      Parameters:
      value - The industryCategory to set.
      Returns:
      This builder for chaining.
    • clearIndustryCategory

      public InfoTypeCategory.Builder clearIndustryCategory()
       The group of relevant businesses where this infoType is commonly used
       
      .google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2;
      Returns:
      This builder for chaining.
    • hasTypeCategory

      public boolean hasTypeCategory()
       The class of identifiers where this infoType belongs
       
      .google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3;
      Specified by:
      hasTypeCategory in interface InfoTypeCategoryOrBuilder
      Returns:
      Whether the typeCategory field is set.
    • getTypeCategoryValue

      public int getTypeCategoryValue()
       The class of identifiers where this infoType belongs
       
      .google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3;
      Specified by:
      getTypeCategoryValue in interface InfoTypeCategoryOrBuilder
      Returns:
      The enum numeric value on the wire for typeCategory.
    • setTypeCategoryValue

      public InfoTypeCategory.Builder setTypeCategoryValue(int value)
       The class of identifiers where this infoType belongs
       
      .google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3;
      Parameters:
      value - The enum numeric value on the wire for typeCategory to set.
      Returns:
      This builder for chaining.
    • getTypeCategory

      public InfoTypeCategory.TypeCategory getTypeCategory()
       The class of identifiers where this infoType belongs
       
      .google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3;
      Specified by:
      getTypeCategory in interface InfoTypeCategoryOrBuilder
      Returns:
      The typeCategory.
    • setTypeCategory

       The class of identifiers where this infoType belongs
       
      .google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3;
      Parameters:
      value - The typeCategory to set.
      Returns:
      This builder for chaining.
    • clearTypeCategory

      public InfoTypeCategory.Builder clearTypeCategory()
       The class of identifiers where this infoType belongs
       
      .google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3;
      Returns:
      This builder for chaining.