Class SdpInspectResult.Builder

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

public static final class SdpInspectResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<SdpInspectResult.Builder> implements SdpInspectResultOrBuilder
 Sensitive Data Protection Inspection Result.
 
Protobuf type google.cloud.modelarmor.v1beta.SdpInspectResult
  • 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<SdpInspectResult.Builder>
    • clear

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

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

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

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

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

      public SdpInspectResult.Builder mergeFrom(SdpInspectResult other)
    • isInitialized

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

      public SdpInspectResult.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<SdpInspectResult.Builder>
      Throws:
      IOException
    • getExecutionStateValue

      public int getExecutionStateValue()
       Output only. Reports whether Sensitive Data Protection inspection was
       successfully executed or not.
       
      .google.cloud.modelarmor.v1beta.FilterExecutionState execution_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExecutionStateValue in interface SdpInspectResultOrBuilder
      Returns:
      The enum numeric value on the wire for executionState.
    • setExecutionStateValue

      public SdpInspectResult.Builder setExecutionStateValue(int value)
       Output only. Reports whether Sensitive Data Protection inspection was
       successfully executed or not.
       
      .google.cloud.modelarmor.v1beta.FilterExecutionState execution_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for executionState to set.
      Returns:
      This builder for chaining.
    • getExecutionState

      public FilterExecutionState getExecutionState()
       Output only. Reports whether Sensitive Data Protection inspection was
       successfully executed or not.
       
      .google.cloud.modelarmor.v1beta.FilterExecutionState execution_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExecutionState in interface SdpInspectResultOrBuilder
      Returns:
      The executionState.
    • setExecutionState

      public SdpInspectResult.Builder setExecutionState(FilterExecutionState value)
       Output only. Reports whether Sensitive Data Protection inspection was
       successfully executed or not.
       
      .google.cloud.modelarmor.v1beta.FilterExecutionState execution_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The executionState to set.
      Returns:
      This builder for chaining.
    • clearExecutionState

      public SdpInspectResult.Builder clearExecutionState()
       Output only. Reports whether Sensitive Data Protection inspection was
       successfully executed or not.
       
      .google.cloud.modelarmor.v1beta.FilterExecutionState execution_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getMessageItemsList

      public List<MessageItem> getMessageItemsList()
       Optional messages corresponding to the result.
       A message can provide warnings or error details.
       For example, if execution state is skipped then this field provides
       related reason/explanation.
       
      repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;
      Specified by:
      getMessageItemsList in interface SdpInspectResultOrBuilder
    • getMessageItemsCount

      public int getMessageItemsCount()
       Optional messages corresponding to the result.
       A message can provide warnings or error details.
       For example, if execution state is skipped then this field provides
       related reason/explanation.
       
      repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;
      Specified by:
      getMessageItemsCount in interface SdpInspectResultOrBuilder
    • getMessageItems

      public MessageItem getMessageItems(int index)
       Optional messages corresponding to the result.
       A message can provide warnings or error details.
       For example, if execution state is skipped then this field provides
       related reason/explanation.
       
      repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;
      Specified by:
      getMessageItems in interface SdpInspectResultOrBuilder
    • setMessageItems

      public SdpInspectResult.Builder setMessageItems(int index, MessageItem value)
       Optional messages corresponding to the result.
       A message can provide warnings or error details.
       For example, if execution state is skipped then this field provides
       related reason/explanation.
       
      repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;
    • setMessageItems

      public SdpInspectResult.Builder setMessageItems(int index, MessageItem.Builder builderForValue)
       Optional messages corresponding to the result.
       A message can provide warnings or error details.
       For example, if execution state is skipped then this field provides
       related reason/explanation.
       
      repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;
    • addMessageItems

      public SdpInspectResult.Builder addMessageItems(MessageItem value)
       Optional messages corresponding to the result.
       A message can provide warnings or error details.
       For example, if execution state is skipped then this field provides
       related reason/explanation.
       
      repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;
    • addMessageItems

      public SdpInspectResult.Builder addMessageItems(int index, MessageItem value)
       Optional messages corresponding to the result.
       A message can provide warnings or error details.
       For example, if execution state is skipped then this field provides
       related reason/explanation.
       
      repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;
    • addMessageItems

      public SdpInspectResult.Builder addMessageItems(MessageItem.Builder builderForValue)
       Optional messages corresponding to the result.
       A message can provide warnings or error details.
       For example, if execution state is skipped then this field provides
       related reason/explanation.
       
      repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;
    • addMessageItems

      public SdpInspectResult.Builder addMessageItems(int index, MessageItem.Builder builderForValue)
       Optional messages corresponding to the result.
       A message can provide warnings or error details.
       For example, if execution state is skipped then this field provides
       related reason/explanation.
       
      repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;
    • addAllMessageItems

      public SdpInspectResult.Builder addAllMessageItems(Iterable<? extends MessageItem> values)
       Optional messages corresponding to the result.
       A message can provide warnings or error details.
       For example, if execution state is skipped then this field provides
       related reason/explanation.
       
      repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;
    • clearMessageItems

      public SdpInspectResult.Builder clearMessageItems()
       Optional messages corresponding to the result.
       A message can provide warnings or error details.
       For example, if execution state is skipped then this field provides
       related reason/explanation.
       
      repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;
    • removeMessageItems

      public SdpInspectResult.Builder removeMessageItems(int index)
       Optional messages corresponding to the result.
       A message can provide warnings or error details.
       For example, if execution state is skipped then this field provides
       related reason/explanation.
       
      repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;
    • getMessageItemsBuilder

      public MessageItem.Builder getMessageItemsBuilder(int index)
       Optional messages corresponding to the result.
       A message can provide warnings or error details.
       For example, if execution state is skipped then this field provides
       related reason/explanation.
       
      repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;
    • getMessageItemsOrBuilder

      public MessageItemOrBuilder getMessageItemsOrBuilder(int index)
       Optional messages corresponding to the result.
       A message can provide warnings or error details.
       For example, if execution state is skipped then this field provides
       related reason/explanation.
       
      repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;
      Specified by:
      getMessageItemsOrBuilder in interface SdpInspectResultOrBuilder
    • getMessageItemsOrBuilderList

      public List<? extends MessageItemOrBuilder> getMessageItemsOrBuilderList()
       Optional messages corresponding to the result.
       A message can provide warnings or error details.
       For example, if execution state is skipped then this field provides
       related reason/explanation.
       
      repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;
      Specified by:
      getMessageItemsOrBuilderList in interface SdpInspectResultOrBuilder
    • addMessageItemsBuilder

      public MessageItem.Builder addMessageItemsBuilder()
       Optional messages corresponding to the result.
       A message can provide warnings or error details.
       For example, if execution state is skipped then this field provides
       related reason/explanation.
       
      repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;
    • addMessageItemsBuilder

      public MessageItem.Builder addMessageItemsBuilder(int index)
       Optional messages corresponding to the result.
       A message can provide warnings or error details.
       For example, if execution state is skipped then this field provides
       related reason/explanation.
       
      repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;
    • getMessageItemsBuilderList

      public List<MessageItem.Builder> getMessageItemsBuilderList()
       Optional messages corresponding to the result.
       A message can provide warnings or error details.
       For example, if execution state is skipped then this field provides
       related reason/explanation.
       
      repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;
    • getMatchStateValue

      public int getMatchStateValue()
       Output only. Match state for SDP Inspection.
       Value is MATCH_FOUND if at least one Sensitive Data Protection finding is
       identified.
       
      .google.cloud.modelarmor.v1beta.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMatchStateValue in interface SdpInspectResultOrBuilder
      Returns:
      The enum numeric value on the wire for matchState.
    • setMatchStateValue

      public SdpInspectResult.Builder setMatchStateValue(int value)
       Output only. Match state for SDP Inspection.
       Value is MATCH_FOUND if at least one Sensitive Data Protection finding is
       identified.
       
      .google.cloud.modelarmor.v1beta.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for matchState to set.
      Returns:
      This builder for chaining.
    • getMatchState

      public FilterMatchState getMatchState()
       Output only. Match state for SDP Inspection.
       Value is MATCH_FOUND if at least one Sensitive Data Protection finding is
       identified.
       
      .google.cloud.modelarmor.v1beta.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMatchState in interface SdpInspectResultOrBuilder
      Returns:
      The matchState.
    • setMatchState

      public SdpInspectResult.Builder setMatchState(FilterMatchState value)
       Output only. Match state for SDP Inspection.
       Value is MATCH_FOUND if at least one Sensitive Data Protection finding is
       identified.
       
      .google.cloud.modelarmor.v1beta.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The matchState to set.
      Returns:
      This builder for chaining.
    • clearMatchState

      public SdpInspectResult.Builder clearMatchState()
       Output only. Match state for SDP Inspection.
       Value is MATCH_FOUND if at least one Sensitive Data Protection finding is
       identified.
       
      .google.cloud.modelarmor.v1beta.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getFindingsList

      public List<SdpFinding> getFindingsList()
       List of Sensitive Data Protection findings.
       
      repeated .google.cloud.modelarmor.v1beta.SdpFinding findings = 4;
      Specified by:
      getFindingsList in interface SdpInspectResultOrBuilder
    • getFindingsCount

      public int getFindingsCount()
       List of Sensitive Data Protection findings.
       
      repeated .google.cloud.modelarmor.v1beta.SdpFinding findings = 4;
      Specified by:
      getFindingsCount in interface SdpInspectResultOrBuilder
    • getFindings

      public SdpFinding getFindings(int index)
       List of Sensitive Data Protection findings.
       
      repeated .google.cloud.modelarmor.v1beta.SdpFinding findings = 4;
      Specified by:
      getFindings in interface SdpInspectResultOrBuilder
    • setFindings

      public SdpInspectResult.Builder setFindings(int index, SdpFinding value)
       List of Sensitive Data Protection findings.
       
      repeated .google.cloud.modelarmor.v1beta.SdpFinding findings = 4;
    • setFindings

      public SdpInspectResult.Builder setFindings(int index, SdpFinding.Builder builderForValue)
       List of Sensitive Data Protection findings.
       
      repeated .google.cloud.modelarmor.v1beta.SdpFinding findings = 4;
    • addFindings

      public SdpInspectResult.Builder addFindings(SdpFinding value)
       List of Sensitive Data Protection findings.
       
      repeated .google.cloud.modelarmor.v1beta.SdpFinding findings = 4;
    • addFindings

      public SdpInspectResult.Builder addFindings(int index, SdpFinding value)
       List of Sensitive Data Protection findings.
       
      repeated .google.cloud.modelarmor.v1beta.SdpFinding findings = 4;
    • addFindings

      public SdpInspectResult.Builder addFindings(SdpFinding.Builder builderForValue)
       List of Sensitive Data Protection findings.
       
      repeated .google.cloud.modelarmor.v1beta.SdpFinding findings = 4;
    • addFindings

      public SdpInspectResult.Builder addFindings(int index, SdpFinding.Builder builderForValue)
       List of Sensitive Data Protection findings.
       
      repeated .google.cloud.modelarmor.v1beta.SdpFinding findings = 4;
    • addAllFindings

      public SdpInspectResult.Builder addAllFindings(Iterable<? extends SdpFinding> values)
       List of Sensitive Data Protection findings.
       
      repeated .google.cloud.modelarmor.v1beta.SdpFinding findings = 4;
    • clearFindings

      public SdpInspectResult.Builder clearFindings()
       List of Sensitive Data Protection findings.
       
      repeated .google.cloud.modelarmor.v1beta.SdpFinding findings = 4;
    • removeFindings

      public SdpInspectResult.Builder removeFindings(int index)
       List of Sensitive Data Protection findings.
       
      repeated .google.cloud.modelarmor.v1beta.SdpFinding findings = 4;
    • getFindingsBuilder

      public SdpFinding.Builder getFindingsBuilder(int index)
       List of Sensitive Data Protection findings.
       
      repeated .google.cloud.modelarmor.v1beta.SdpFinding findings = 4;
    • getFindingsOrBuilder

      public SdpFindingOrBuilder getFindingsOrBuilder(int index)
       List of Sensitive Data Protection findings.
       
      repeated .google.cloud.modelarmor.v1beta.SdpFinding findings = 4;
      Specified by:
      getFindingsOrBuilder in interface SdpInspectResultOrBuilder
    • getFindingsOrBuilderList

      public List<? extends SdpFindingOrBuilder> getFindingsOrBuilderList()
       List of Sensitive Data Protection findings.
       
      repeated .google.cloud.modelarmor.v1beta.SdpFinding findings = 4;
      Specified by:
      getFindingsOrBuilderList in interface SdpInspectResultOrBuilder
    • addFindingsBuilder

      public SdpFinding.Builder addFindingsBuilder()
       List of Sensitive Data Protection findings.
       
      repeated .google.cloud.modelarmor.v1beta.SdpFinding findings = 4;
    • addFindingsBuilder

      public SdpFinding.Builder addFindingsBuilder(int index)
       List of Sensitive Data Protection findings.
       
      repeated .google.cloud.modelarmor.v1beta.SdpFinding findings = 4;
    • getFindingsBuilderList

      public List<SdpFinding.Builder> getFindingsBuilderList()
       List of Sensitive Data Protection findings.
       
      repeated .google.cloud.modelarmor.v1beta.SdpFinding findings = 4;
    • getFindingsTruncated

      public boolean getFindingsTruncated()
       If true, then there is possibility that more findings were identified and
       the findings returned are a subset of all findings. The findings
       list might be truncated because the input items were too large, or because
       the server reached the maximum amount of resources allowed for a single API
       call.
       
      bool findings_truncated = 5;
      Specified by:
      getFindingsTruncated in interface SdpInspectResultOrBuilder
      Returns:
      The findingsTruncated.
    • setFindingsTruncated

      public SdpInspectResult.Builder setFindingsTruncated(boolean value)
       If true, then there is possibility that more findings were identified and
       the findings returned are a subset of all findings. The findings
       list might be truncated because the input items were too large, or because
       the server reached the maximum amount of resources allowed for a single API
       call.
       
      bool findings_truncated = 5;
      Parameters:
      value - The findingsTruncated to set.
      Returns:
      This builder for chaining.
    • clearFindingsTruncated

      public SdpInspectResult.Builder clearFindingsTruncated()
       If true, then there is possibility that more findings were identified and
       the findings returned are a subset of all findings. The findings
       list might be truncated because the input items were too large, or because
       the server reached the maximum amount of resources allowed for a single API
       call.
       
      bool findings_truncated = 5;
      Returns:
      This builder for chaining.