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 Summary
Modifier and TypeMethodDescriptionaddAllInfoTypes(Iterable<String> values) List of Sensitive Data Protection info-types that were de-identified.addAllMessageItems(Iterable<? extends MessageItem> values) Optional messages corresponding to the result.addInfoTypes(String value) List of Sensitive Data Protection info-types that were de-identified.addInfoTypesBytes(com.google.protobuf.ByteString value) List of Sensitive Data Protection info-types that were de-identified.addMessageItems(int index, MessageItem value) Optional messages corresponding to the result.addMessageItems(int index, MessageItem.Builder builderForValue) Optional messages corresponding to the result.addMessageItems(MessageItem value) Optional messages corresponding to the result.addMessageItems(MessageItem.Builder builderForValue) Optional messages corresponding to the result.Optional messages corresponding to the result.addMessageItemsBuilder(int index) Optional messages corresponding to the result.build()clear()De-identified data.Output only.List of Sensitive Data Protection info-types that were de-identified.Output only.Optional messages corresponding to the result.Total size in bytes that were transformed during deidentification.getData()De-identified data.De-identified data.De-identified data.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.intOutput only.getInfoTypes(int index) List of Sensitive Data Protection info-types that were de-identified.com.google.protobuf.ByteStringgetInfoTypesBytes(int index) List of Sensitive Data Protection info-types that were de-identified.intList of Sensitive Data Protection info-types that were de-identified.com.google.protobuf.ProtocolStringListList of Sensitive Data Protection info-types that were de-identified.Output only.intOutput only.getMessageItems(int index) Optional messages corresponding to the result.getMessageItemsBuilder(int index) Optional messages corresponding to the result.Optional messages corresponding to the result.intOptional messages corresponding to the result.Optional messages corresponding to the result.getMessageItemsOrBuilder(int index) Optional messages corresponding to the result.List<? extends MessageItemOrBuilder>Optional messages corresponding to the result.longTotal size in bytes that were transformed during deidentification.booleanhasData()De-identified data.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanDe-identified data.mergeFrom(SdpDeidentifyResult other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeMessageItems(int index) Optional messages corresponding to the result.De-identified data.setData(DataItem.Builder builderForValue) De-identified data.Output only.setExecutionStateValue(int value) Output only.setInfoTypes(int index, String value) List of Sensitive Data Protection info-types that were de-identified.setMatchState(FilterMatchState value) Output only.setMatchStateValue(int value) Output only.setMessageItems(int index, MessageItem value) Optional messages corresponding to the result.setMessageItems(int index, MessageItem.Builder builderForValue) Optional messages corresponding to the result.setTransformedBytes(long value) Total size in bytes that were transformed during deidentification.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SdpDeidentifyResult.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SdpDeidentifyResult.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SdpDeidentifyResult.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SdpDeidentifyResult.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getExecutionStateValuein interfaceSdpDeidentifyResultOrBuilder- Returns:
- The enum numeric value on the wire for executionState.
-
setExecutionStateValue
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
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:
getExecutionStatein interfaceSdpDeidentifyResultOrBuilder- Returns:
- The executionState.
-
setExecutionState
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
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
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:
getMessageItemsListin interfaceSdpDeidentifyResultOrBuilder
-
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:
getMessageItemsCountin interfaceSdpDeidentifyResultOrBuilder
-
getMessageItems
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:
getMessageItemsin interfaceSdpDeidentifyResultOrBuilder
-
setMessageItems
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
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
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
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
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
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
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
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
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
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
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:
getMessageItemsOrBuilderin interfaceSdpDeidentifyResultOrBuilder
-
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:
getMessageItemsOrBuilderListin interfaceSdpDeidentifyResultOrBuilder
-
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
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
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:
getMatchStateValuein interfaceSdpDeidentifyResultOrBuilder- Returns:
- The enum numeric value on the wire for matchState.
-
setMatchStateValue
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
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:
getMatchStatein interfaceSdpDeidentifyResultOrBuilder- Returns:
- The matchState.
-
setMatchState
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
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:
hasDatain interfaceSdpDeidentifyResultOrBuilder- Returns:
- Whether the data field is set.
-
getData
De-identified data.
.google.cloud.modelarmor.v1beta.DataItem data = 4;- Specified by:
getDatain interfaceSdpDeidentifyResultOrBuilder- Returns:
- The data.
-
setData
De-identified data.
.google.cloud.modelarmor.v1beta.DataItem data = 4; -
setData
De-identified data.
.google.cloud.modelarmor.v1beta.DataItem data = 4; -
mergeData
De-identified data.
.google.cloud.modelarmor.v1beta.DataItem data = 4; -
clearData
De-identified data.
.google.cloud.modelarmor.v1beta.DataItem data = 4; -
getDataBuilder
De-identified data.
.google.cloud.modelarmor.v1beta.DataItem data = 4; -
getDataOrBuilder
De-identified data.
.google.cloud.modelarmor.v1beta.DataItem data = 4;- Specified by:
getDataOrBuilderin interfaceSdpDeidentifyResultOrBuilder
-
getTransformedBytes
public long getTransformedBytes()Total size in bytes that were transformed during deidentification.
int64 transformed_bytes = 5;- Specified by:
getTransformedBytesin interfaceSdpDeidentifyResultOrBuilder- Returns:
- The transformedBytes.
-
setTransformedBytes
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
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:
getInfoTypesListin interfaceSdpDeidentifyResultOrBuilder- 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:
getInfoTypesCountin interfaceSdpDeidentifyResultOrBuilder- Returns:
- The count of infoTypes.
-
getInfoTypes
List of Sensitive Data Protection info-types that were de-identified.
repeated string info_types = 6;- Specified by:
getInfoTypesin interfaceSdpDeidentifyResultOrBuilder- 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:
getInfoTypesBytesin interfaceSdpDeidentifyResultOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the infoTypes at the given index.
-
setInfoTypes
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
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
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
List of Sensitive Data Protection info-types that were de-identified.
repeated string info_types = 6;- Returns:
- This builder for chaining.
-
addInfoTypesBytes
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.
-