Class Domain.Builder

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

public static final class Domain.Builder extends com.google.protobuf.GeneratedMessage.Builder<Domain.Builder> implements DomainOrBuilder
 A domain represents a thematic category that a data profile can fall under.
 
Protobuf type google.privacy.dlp.v2.Domain
  • Method Summary

    Modifier and Type
    Method
    Description
    The collection of signals that influenced selection of the category.
    The collection of signals that influenced selection of the category.
    The collection of signals that influenced selection of the category.
    addSignalsValue(int value)
    The collection of signals that influenced selection of the category.
     
     
     
    A domain category that this profile is related to.
    The collection of signals that influenced selection of the category.
    A domain category that this profile is related to.
    int
    A domain category that this profile is related to.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    getSignals(int index)
    The collection of signals that influenced selection of the category.
    int
    The collection of signals that influenced selection of the category.
    The collection of signals that influenced selection of the category.
    int
    getSignalsValue(int index)
    The collection of signals that influenced selection of the category.
    The collection of signals that influenced selection of the category.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    A domain category that this profile is related to.
    setCategoryValue(int value)
    A domain category that this profile is related to.
    setSignals(int index, Domain.Signal value)
    The collection of signals that influenced selection of the category.
    setSignalsValue(int index, int value)
    The collection of signals that influenced selection of the category.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<Domain.Builder>
    • clear

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

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

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

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

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

      public Domain.Builder mergeFrom(Domain other)
    • isInitialized

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

      public Domain.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<Domain.Builder>
      Throws:
      IOException
    • getCategoryValue

      public int getCategoryValue()
       A domain category that this profile is related to.
       
      .google.privacy.dlp.v2.Domain.Category category = 1;
      Specified by:
      getCategoryValue in interface DomainOrBuilder
      Returns:
      The enum numeric value on the wire for category.
    • setCategoryValue

      public Domain.Builder setCategoryValue(int value)
       A domain category that this profile is related to.
       
      .google.privacy.dlp.v2.Domain.Category category = 1;
      Parameters:
      value - The enum numeric value on the wire for category to set.
      Returns:
      This builder for chaining.
    • getCategory

      public Domain.Category getCategory()
       A domain category that this profile is related to.
       
      .google.privacy.dlp.v2.Domain.Category category = 1;
      Specified by:
      getCategory in interface DomainOrBuilder
      Returns:
      The category.
    • setCategory

      public Domain.Builder setCategory(Domain.Category value)
       A domain category that this profile is related to.
       
      .google.privacy.dlp.v2.Domain.Category category = 1;
      Parameters:
      value - The category to set.
      Returns:
      This builder for chaining.
    • clearCategory

      public Domain.Builder clearCategory()
       A domain category that this profile is related to.
       
      .google.privacy.dlp.v2.Domain.Category category = 1;
      Returns:
      This builder for chaining.
    • getSignalsList

      public List<Domain.Signal> getSignalsList()
       The collection of signals that influenced selection of the category.
       
      repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;
      Specified by:
      getSignalsList in interface DomainOrBuilder
      Returns:
      A list containing the signals.
    • getSignalsCount

      public int getSignalsCount()
       The collection of signals that influenced selection of the category.
       
      repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;
      Specified by:
      getSignalsCount in interface DomainOrBuilder
      Returns:
      The count of signals.
    • getSignals

      public Domain.Signal getSignals(int index)
       The collection of signals that influenced selection of the category.
       
      repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;
      Specified by:
      getSignals in interface DomainOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The signals at the given index.
    • setSignals

      public Domain.Builder setSignals(int index, Domain.Signal value)
       The collection of signals that influenced selection of the category.
       
      repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;
      Parameters:
      index - The index to set the value at.
      value - The signals to set.
      Returns:
      This builder for chaining.
    • addSignals

      public Domain.Builder addSignals(Domain.Signal value)
       The collection of signals that influenced selection of the category.
       
      repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;
      Parameters:
      value - The signals to add.
      Returns:
      This builder for chaining.
    • addAllSignals

      public Domain.Builder addAllSignals(Iterable<? extends Domain.Signal> values)
       The collection of signals that influenced selection of the category.
       
      repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;
      Parameters:
      values - The signals to add.
      Returns:
      This builder for chaining.
    • clearSignals

      public Domain.Builder clearSignals()
       The collection of signals that influenced selection of the category.
       
      repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;
      Returns:
      This builder for chaining.
    • getSignalsValueList

      public List<Integer> getSignalsValueList()
       The collection of signals that influenced selection of the category.
       
      repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;
      Specified by:
      getSignalsValueList in interface DomainOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for signals.
    • getSignalsValue

      public int getSignalsValue(int index)
       The collection of signals that influenced selection of the category.
       
      repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;
      Specified by:
      getSignalsValue in interface DomainOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of signals at the given index.
    • setSignalsValue

      public Domain.Builder setSignalsValue(int index, int value)
       The collection of signals that influenced selection of the category.
       
      repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for signals to set.
      Returns:
      This builder for chaining.
    • addSignalsValue

      public Domain.Builder addSignalsValue(int value)
       The collection of signals that influenced selection of the category.
       
      repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;
      Parameters:
      value - The enum numeric value on the wire for signals to add.
      Returns:
      This builder for chaining.
    • addAllSignalsValue

      public Domain.Builder addAllSignalsValue(Iterable<Integer> values)
       The collection of signals that influenced selection of the category.
       
      repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;
      Parameters:
      values - The enum numeric values on the wire for signals to add.
      Returns:
      This builder for chaining.