Class SdpDeidentifyResult.Builder

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

public static final class SdpDeidentifyResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<SdpDeidentifyResult.Builder> implements SdpDeidentifyResultOrBuilder
 Sensitive Data Protection Deidentification Result.
 
Protobuf type google.cloud.modelarmor.v1beta.SdpDeidentifyResult
  • 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<SdpDeidentifyResult.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<SdpDeidentifyResult.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<SdpDeidentifyResult.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

      public SdpDeidentifyResult.Builder setExecutionStateValue(int value)
       Output only. Reports whether Sensitive Data Protection deidentification 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 deidentification was
       successfully executed or not.
       
      .google.cloud.modelarmor.v1beta.FilterExecutionState execution_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExecutionState in interface SdpDeidentifyResultOrBuilder
      Returns:
      The executionState.
    • setExecutionState

      public SdpDeidentifyResult.Builder setExecutionState(FilterExecutionState value)
       Output only. Reports whether Sensitive Data Protection deidentification 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 SdpDeidentifyResult.Builder clearExecutionState()
       Output only. Reports whether Sensitive Data Protection deidentification 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 SdpDeidentifyResultOrBuilder
    • 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 SdpDeidentifyResultOrBuilder
    • 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 SdpDeidentifyResultOrBuilder
    • setMessageItems

      public SdpDeidentifyResult.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 SdpDeidentifyResult.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 SdpDeidentifyResult.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 SdpDeidentifyResult.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 SdpDeidentifyResult.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 SdpDeidentifyResult.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 SdpDeidentifyResult.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 SdpDeidentifyResult.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 SdpDeidentifyResult.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 SdpDeidentifyResultOrBuilder
    • 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 SdpDeidentifyResultOrBuilder
    • 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 Sensitive Data Protection Deidentification.
       Value is MATCH_FOUND if content is de-identified.
       
      .google.cloud.modelarmor.v1beta.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMatchStateValue in interface SdpDeidentifyResultOrBuilder
      Returns:
      The enum numeric value on the wire for matchState.
    • setMatchStateValue

      public SdpDeidentifyResult.Builder setMatchStateValue(int value)
       Output only. Match state for Sensitive Data Protection Deidentification.
       Value is MATCH_FOUND if content is de-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 Sensitive Data Protection Deidentification.
       Value is MATCH_FOUND if content is de-identified.
       
      .google.cloud.modelarmor.v1beta.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMatchState in interface SdpDeidentifyResultOrBuilder
      Returns:
      The matchState.
    • setMatchState

      public SdpDeidentifyResult.Builder setMatchState(FilterMatchState value)
       Output only. Match state for Sensitive Data Protection Deidentification.
       Value is MATCH_FOUND if content is de-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 SdpDeidentifyResult.Builder clearMatchState()
       Output only. Match state for Sensitive Data Protection Deidentification.
       Value is MATCH_FOUND if content is de-identified.
       
      .google.cloud.modelarmor.v1beta.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasData

      public boolean hasData()
       De-identified data.
       
      .google.cloud.modelarmor.v1beta.DataItem data = 4;
      Specified by:
      hasData in interface SdpDeidentifyResultOrBuilder
      Returns:
      Whether the data field is set.
    • getData

      public DataItem getData()
       De-identified data.
       
      .google.cloud.modelarmor.v1beta.DataItem data = 4;
      Specified by:
      getData in interface SdpDeidentifyResultOrBuilder
      Returns:
      The data.
    • setData

      public SdpDeidentifyResult.Builder setData(DataItem value)
       De-identified data.
       
      .google.cloud.modelarmor.v1beta.DataItem data = 4;
    • setData

      public SdpDeidentifyResult.Builder setData(DataItem.Builder builderForValue)
       De-identified data.
       
      .google.cloud.modelarmor.v1beta.DataItem data = 4;
    • mergeData

      public SdpDeidentifyResult.Builder mergeData(DataItem value)
       De-identified data.
       
      .google.cloud.modelarmor.v1beta.DataItem data = 4;
    • clearData

      public SdpDeidentifyResult.Builder clearData()
       De-identified data.
       
      .google.cloud.modelarmor.v1beta.DataItem data = 4;
    • getDataBuilder

      public DataItem.Builder getDataBuilder()
       De-identified data.
       
      .google.cloud.modelarmor.v1beta.DataItem data = 4;
    • getDataOrBuilder

      public DataItemOrBuilder getDataOrBuilder()
       De-identified data.
       
      .google.cloud.modelarmor.v1beta.DataItem data = 4;
      Specified by:
      getDataOrBuilder in interface SdpDeidentifyResultOrBuilder
    • getTransformedBytes

      public long getTransformedBytes()
       Total size in bytes that were transformed during deidentification.
       
      int64 transformed_bytes = 5;
      Specified by:
      getTransformedBytes in interface SdpDeidentifyResultOrBuilder
      Returns:
      The transformedBytes.
    • setTransformedBytes

      public SdpDeidentifyResult.Builder setTransformedBytes(long value)
       Total size in bytes that were transformed during deidentification.
       
      int64 transformed_bytes = 5;
      Parameters:
      value - The transformedBytes to set.
      Returns:
      This builder for chaining.
    • clearTransformedBytes

      public SdpDeidentifyResult.Builder clearTransformedBytes()
       Total size in bytes that were transformed during deidentification.
       
      int64 transformed_bytes = 5;
      Returns:
      This builder for chaining.
    • getInfoTypesList

      public com.google.protobuf.ProtocolStringList getInfoTypesList()
       List of Sensitive Data Protection info-types that were de-identified.
       
      repeated string info_types = 6;
      Specified by:
      getInfoTypesList in interface SdpDeidentifyResultOrBuilder
      Returns:
      A list containing the infoTypes.
    • getInfoTypesCount

      public int getInfoTypesCount()
       List of Sensitive Data Protection info-types that were de-identified.
       
      repeated string info_types = 6;
      Specified by:
      getInfoTypesCount in interface SdpDeidentifyResultOrBuilder
      Returns:
      The count of infoTypes.
    • getInfoTypes

      public String getInfoTypes(int index)
       List of Sensitive Data Protection info-types that were de-identified.
       
      repeated string info_types = 6;
      Specified by:
      getInfoTypes in interface SdpDeidentifyResultOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The infoTypes at the given index.
    • getInfoTypesBytes

      public com.google.protobuf.ByteString getInfoTypesBytes(int index)
       List of Sensitive Data Protection info-types that were de-identified.
       
      repeated string info_types = 6;
      Specified by:
      getInfoTypesBytes in interface SdpDeidentifyResultOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the infoTypes at the given index.
    • setInfoTypes

      public SdpDeidentifyResult.Builder setInfoTypes(int index, String value)
       List of Sensitive Data Protection info-types that were de-identified.
       
      repeated string info_types = 6;
      Parameters:
      index - The index to set the value at.
      value - The infoTypes to set.
      Returns:
      This builder for chaining.
    • addInfoTypes

      public SdpDeidentifyResult.Builder addInfoTypes(String value)
       List of Sensitive Data Protection info-types that were de-identified.
       
      repeated string info_types = 6;
      Parameters:
      value - The infoTypes to add.
      Returns:
      This builder for chaining.
    • addAllInfoTypes

      public SdpDeidentifyResult.Builder addAllInfoTypes(Iterable<String> values)
       List of Sensitive Data Protection info-types that were de-identified.
       
      repeated string info_types = 6;
      Parameters:
      values - The infoTypes to add.
      Returns:
      This builder for chaining.
    • clearInfoTypes

      public SdpDeidentifyResult.Builder clearInfoTypes()
       List of Sensitive Data Protection info-types that were de-identified.
       
      repeated string info_types = 6;
      Returns:
      This builder for chaining.
    • addInfoTypesBytes

      public SdpDeidentifyResult.Builder addInfoTypesBytes(com.google.protobuf.ByteString value)
       List of Sensitive Data Protection info-types that were de-identified.
       
      repeated string info_types = 6;
      Parameters:
      value - The bytes of the infoTypes to add.
      Returns:
      This builder for chaining.