Class InfoTypeTransformations.InfoTypeTransformation.Builder

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

public static final class InfoTypeTransformations.InfoTypeTransformation.Builder extends com.google.protobuf.GeneratedMessage.Builder<InfoTypeTransformations.InfoTypeTransformation.Builder> implements InfoTypeTransformations.InfoTypeTransformationOrBuilder
 A transformation to apply to text that is identified as a specific
 info_type.
 
Protobuf type google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation
  • 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<InfoTypeTransformations.InfoTypeTransformation.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<InfoTypeTransformations.InfoTypeTransformation.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<InfoTypeTransformations.InfoTypeTransformation.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

    • isInitialized

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

      public InfoTypeTransformations.InfoTypeTransformation.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<InfoTypeTransformations.InfoTypeTransformation.Builder>
      Throws:
      IOException
    • getInfoTypesList

      public List<InfoType> getInfoTypesList()
       InfoTypes to apply the transformation to. An empty list will cause
       this transformation to apply to all findings that correspond to
       infoTypes that were requested in `InspectConfig`.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
      Specified by:
      getInfoTypesList in interface InfoTypeTransformations.InfoTypeTransformationOrBuilder
    • getInfoTypesCount

      public int getInfoTypesCount()
       InfoTypes to apply the transformation to. An empty list will cause
       this transformation to apply to all findings that correspond to
       infoTypes that were requested in `InspectConfig`.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
      Specified by:
      getInfoTypesCount in interface InfoTypeTransformations.InfoTypeTransformationOrBuilder
    • getInfoTypes

      public InfoType getInfoTypes(int index)
       InfoTypes to apply the transformation to. An empty list will cause
       this transformation to apply to all findings that correspond to
       infoTypes that were requested in `InspectConfig`.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
      Specified by:
      getInfoTypes in interface InfoTypeTransformations.InfoTypeTransformationOrBuilder
    • setInfoTypes

      public InfoTypeTransformations.InfoTypeTransformation.Builder setInfoTypes(int index, InfoType value)
       InfoTypes to apply the transformation to. An empty list will cause
       this transformation to apply to all findings that correspond to
       infoTypes that were requested in `InspectConfig`.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
    • setInfoTypes

      public InfoTypeTransformations.InfoTypeTransformation.Builder setInfoTypes(int index, InfoType.Builder builderForValue)
       InfoTypes to apply the transformation to. An empty list will cause
       this transformation to apply to all findings that correspond to
       infoTypes that were requested in `InspectConfig`.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
    • addInfoTypes

       InfoTypes to apply the transformation to. An empty list will cause
       this transformation to apply to all findings that correspond to
       infoTypes that were requested in `InspectConfig`.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
    • addInfoTypes

      public InfoTypeTransformations.InfoTypeTransformation.Builder addInfoTypes(int index, InfoType value)
       InfoTypes to apply the transformation to. An empty list will cause
       this transformation to apply to all findings that correspond to
       infoTypes that were requested in `InspectConfig`.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
    • addInfoTypes

       InfoTypes to apply the transformation to. An empty list will cause
       this transformation to apply to all findings that correspond to
       infoTypes that were requested in `InspectConfig`.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
    • addInfoTypes

      public InfoTypeTransformations.InfoTypeTransformation.Builder addInfoTypes(int index, InfoType.Builder builderForValue)
       InfoTypes to apply the transformation to. An empty list will cause
       this transformation to apply to all findings that correspond to
       infoTypes that were requested in `InspectConfig`.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
    • addAllInfoTypes

      public InfoTypeTransformations.InfoTypeTransformation.Builder addAllInfoTypes(Iterable<? extends InfoType> values)
       InfoTypes to apply the transformation to. An empty list will cause
       this transformation to apply to all findings that correspond to
       infoTypes that were requested in `InspectConfig`.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
    • clearInfoTypes

       InfoTypes to apply the transformation to. An empty list will cause
       this transformation to apply to all findings that correspond to
       infoTypes that were requested in `InspectConfig`.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
    • removeInfoTypes

      public InfoTypeTransformations.InfoTypeTransformation.Builder removeInfoTypes(int index)
       InfoTypes to apply the transformation to. An empty list will cause
       this transformation to apply to all findings that correspond to
       infoTypes that were requested in `InspectConfig`.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
    • getInfoTypesBuilder

      public InfoType.Builder getInfoTypesBuilder(int index)
       InfoTypes to apply the transformation to. An empty list will cause
       this transformation to apply to all findings that correspond to
       infoTypes that were requested in `InspectConfig`.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
    • getInfoTypesOrBuilder

      public InfoTypeOrBuilder getInfoTypesOrBuilder(int index)
       InfoTypes to apply the transformation to. An empty list will cause
       this transformation to apply to all findings that correspond to
       infoTypes that were requested in `InspectConfig`.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
      Specified by:
      getInfoTypesOrBuilder in interface InfoTypeTransformations.InfoTypeTransformationOrBuilder
    • getInfoTypesOrBuilderList

      public List<? extends InfoTypeOrBuilder> getInfoTypesOrBuilderList()
       InfoTypes to apply the transformation to. An empty list will cause
       this transformation to apply to all findings that correspond to
       infoTypes that were requested in `InspectConfig`.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
      Specified by:
      getInfoTypesOrBuilderList in interface InfoTypeTransformations.InfoTypeTransformationOrBuilder
    • addInfoTypesBuilder

      public InfoType.Builder addInfoTypesBuilder()
       InfoTypes to apply the transformation to. An empty list will cause
       this transformation to apply to all findings that correspond to
       infoTypes that were requested in `InspectConfig`.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
    • addInfoTypesBuilder

      public InfoType.Builder addInfoTypesBuilder(int index)
       InfoTypes to apply the transformation to. An empty list will cause
       this transformation to apply to all findings that correspond to
       infoTypes that were requested in `InspectConfig`.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
    • getInfoTypesBuilderList

      public List<InfoType.Builder> getInfoTypesBuilderList()
       InfoTypes to apply the transformation to. An empty list will cause
       this transformation to apply to all findings that correspond to
       infoTypes that were requested in `InspectConfig`.
       
      repeated .google.privacy.dlp.v2.InfoType info_types = 1;
    • hasPrimitiveTransformation

      public boolean hasPrimitiveTransformation()
       Required. Primitive transformation to apply to the infoType.
       
      .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasPrimitiveTransformation in interface InfoTypeTransformations.InfoTypeTransformationOrBuilder
      Returns:
      Whether the primitiveTransformation field is set.
    • getPrimitiveTransformation

      public PrimitiveTransformation getPrimitiveTransformation()
       Required. Primitive transformation to apply to the infoType.
       
      .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPrimitiveTransformation in interface InfoTypeTransformations.InfoTypeTransformationOrBuilder
      Returns:
      The primitiveTransformation.
    • setPrimitiveTransformation

       Required. Primitive transformation to apply to the infoType.
       
      .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED];
    • setPrimitiveTransformation

       Required. Primitive transformation to apply to the infoType.
       
      .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergePrimitiveTransformation

       Required. Primitive transformation to apply to the infoType.
       
      .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearPrimitiveTransformation

      public InfoTypeTransformations.InfoTypeTransformation.Builder clearPrimitiveTransformation()
       Required. Primitive transformation to apply to the infoType.
       
      .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED];
    • getPrimitiveTransformationBuilder

      public PrimitiveTransformation.Builder getPrimitiveTransformationBuilder()
       Required. Primitive transformation to apply to the infoType.
       
      .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED];
    • getPrimitiveTransformationOrBuilder

      public PrimitiveTransformationOrBuilder getPrimitiveTransformationOrBuilder()
       Required. Primitive transformation to apply to the infoType.
       
      .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPrimitiveTransformationOrBuilder in interface InfoTypeTransformations.InfoTypeTransformationOrBuilder