Class SdpFinding.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SdpFinding.Builder>
com.google.cloud.modelarmor.v1beta.SdpFinding.Builder
All Implemented Interfaces:
SdpFindingOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SdpFinding

public static final class SdpFinding.Builder extends com.google.protobuf.GeneratedMessage.Builder<SdpFinding.Builder> implements SdpFindingOrBuilder
 Finding corresponding to Sensitive Data Protection filter.
 
Protobuf type google.cloud.modelarmor.v1beta.SdpFinding
  • 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<SdpFinding.Builder>
    • clear

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

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

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

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

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

      public SdpFinding.Builder mergeFrom(SdpFinding other)
    • isInitialized

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

      public SdpFinding.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<SdpFinding.Builder>
      Throws:
      IOException
    • getInfoType

      public String getInfoType()
       Name of Sensitive Data Protection info type for this finding.
       
      string info_type = 1;
      Specified by:
      getInfoType in interface SdpFindingOrBuilder
      Returns:
      The infoType.
    • getInfoTypeBytes

      public com.google.protobuf.ByteString getInfoTypeBytes()
       Name of Sensitive Data Protection info type for this finding.
       
      string info_type = 1;
      Specified by:
      getInfoTypeBytes in interface SdpFindingOrBuilder
      Returns:
      The bytes for infoType.
    • setInfoType

      public SdpFinding.Builder setInfoType(String value)
       Name of Sensitive Data Protection info type for this finding.
       
      string info_type = 1;
      Parameters:
      value - The infoType to set.
      Returns:
      This builder for chaining.
    • clearInfoType

      public SdpFinding.Builder clearInfoType()
       Name of Sensitive Data Protection info type for this finding.
       
      string info_type = 1;
      Returns:
      This builder for chaining.
    • setInfoTypeBytes

      public SdpFinding.Builder setInfoTypeBytes(com.google.protobuf.ByteString value)
       Name of Sensitive Data Protection info type for this finding.
       
      string info_type = 1;
      Parameters:
      value - The bytes for infoType to set.
      Returns:
      This builder for chaining.
    • getLikelihoodValue

      public int getLikelihoodValue()
       Identified confidence likelihood for `info_type`.
       
      .google.cloud.modelarmor.v1beta.SdpFindingLikelihood likelihood = 2;
      Specified by:
      getLikelihoodValue in interface SdpFindingOrBuilder
      Returns:
      The enum numeric value on the wire for likelihood.
    • setLikelihoodValue

      public SdpFinding.Builder setLikelihoodValue(int value)
       Identified confidence likelihood for `info_type`.
       
      .google.cloud.modelarmor.v1beta.SdpFindingLikelihood likelihood = 2;
      Parameters:
      value - The enum numeric value on the wire for likelihood to set.
      Returns:
      This builder for chaining.
    • getLikelihood

      public SdpFindingLikelihood getLikelihood()
       Identified confidence likelihood for `info_type`.
       
      .google.cloud.modelarmor.v1beta.SdpFindingLikelihood likelihood = 2;
      Specified by:
      getLikelihood in interface SdpFindingOrBuilder
      Returns:
      The likelihood.
    • setLikelihood

      public SdpFinding.Builder setLikelihood(SdpFindingLikelihood value)
       Identified confidence likelihood for `info_type`.
       
      .google.cloud.modelarmor.v1beta.SdpFindingLikelihood likelihood = 2;
      Parameters:
      value - The likelihood to set.
      Returns:
      This builder for chaining.
    • clearLikelihood

      public SdpFinding.Builder clearLikelihood()
       Identified confidence likelihood for `info_type`.
       
      .google.cloud.modelarmor.v1beta.SdpFindingLikelihood likelihood = 2;
      Returns:
      This builder for chaining.
    • hasLocation

      public boolean hasLocation()
       Location for this finding.
       
      .google.cloud.modelarmor.v1beta.SdpFinding.SdpFindingLocation location = 3;
      Specified by:
      hasLocation in interface SdpFindingOrBuilder
      Returns:
      Whether the location field is set.
    • getLocation

      public SdpFinding.SdpFindingLocation getLocation()
       Location for this finding.
       
      .google.cloud.modelarmor.v1beta.SdpFinding.SdpFindingLocation location = 3;
      Specified by:
      getLocation in interface SdpFindingOrBuilder
      Returns:
      The location.
    • setLocation

       Location for this finding.
       
      .google.cloud.modelarmor.v1beta.SdpFinding.SdpFindingLocation location = 3;
    • setLocation

      public SdpFinding.Builder setLocation(SdpFinding.SdpFindingLocation.Builder builderForValue)
       Location for this finding.
       
      .google.cloud.modelarmor.v1beta.SdpFinding.SdpFindingLocation location = 3;
    • mergeLocation

      public SdpFinding.Builder mergeLocation(SdpFinding.SdpFindingLocation value)
       Location for this finding.
       
      .google.cloud.modelarmor.v1beta.SdpFinding.SdpFindingLocation location = 3;
    • clearLocation

      public SdpFinding.Builder clearLocation()
       Location for this finding.
       
      .google.cloud.modelarmor.v1beta.SdpFinding.SdpFindingLocation location = 3;
    • getLocationBuilder

      public SdpFinding.SdpFindingLocation.Builder getLocationBuilder()
       Location for this finding.
       
      .google.cloud.modelarmor.v1beta.SdpFinding.SdpFindingLocation location = 3;
    • getLocationOrBuilder

      public SdpFinding.SdpFindingLocationOrBuilder getLocationOrBuilder()
       Location for this finding.
       
      .google.cloud.modelarmor.v1beta.SdpFinding.SdpFindingLocation location = 3;
      Specified by:
      getLocationOrBuilder in interface SdpFindingOrBuilder