Class FileClusterType.Builder

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

public static final class FileClusterType.Builder extends com.google.protobuf.GeneratedMessage.Builder<FileClusterType.Builder> implements FileClusterTypeOrBuilder
 Message used to identify file cluster type being profiled.
 
Protobuf type google.privacy.dlp.v2.FileClusterType
  • 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<FileClusterType.Builder>
    • clear

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

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

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

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

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

      public FileClusterType.Builder mergeFrom(FileClusterType other)
    • isInitialized

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

      public FileClusterType.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<FileClusterType.Builder>
      Throws:
      IOException
    • getFileClusterTypeCase

      public FileClusterType.FileClusterTypeCase getFileClusterTypeCase()
      Specified by:
      getFileClusterTypeCase in interface FileClusterTypeOrBuilder
    • clearFileClusterType

      public FileClusterType.Builder clearFileClusterType()
    • hasCluster

      public boolean hasCluster()
       Cluster type.
       
      .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1;
      Specified by:
      hasCluster in interface FileClusterTypeOrBuilder
      Returns:
      Whether the cluster field is set.
    • getClusterValue

      public int getClusterValue()
       Cluster type.
       
      .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1;
      Specified by:
      getClusterValue in interface FileClusterTypeOrBuilder
      Returns:
      The enum numeric value on the wire for cluster.
    • setClusterValue

      public FileClusterType.Builder setClusterValue(int value)
       Cluster type.
       
      .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1;
      Parameters:
      value - The enum numeric value on the wire for cluster to set.
      Returns:
      This builder for chaining.
    • getCluster

      public FileClusterType.Cluster getCluster()
       Cluster type.
       
      .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1;
      Specified by:
      getCluster in interface FileClusterTypeOrBuilder
      Returns:
      The cluster.
    • setCluster

       Cluster type.
       
      .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1;
      Parameters:
      value - The cluster to set.
      Returns:
      This builder for chaining.
    • clearCluster

      public FileClusterType.Builder clearCluster()
       Cluster type.
       
      .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1;
      Returns:
      This builder for chaining.