Class VirusScanFilterResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VirusScanFilterResult.Builder>
com.google.cloud.modelarmor.v1beta.VirusScanFilterResult.Builder
- All Implemented Interfaces:
VirusScanFilterResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VirusScanFilterResult
public static final class VirusScanFilterResult.Builder
extends com.google.protobuf.GeneratedMessage.Builder<VirusScanFilterResult.Builder>
implements VirusScanFilterResultOrBuilder
Virus scan results.Protobuf type
google.cloud.modelarmor.v1beta.VirusScanFilterResult-
Method Summary
Modifier and TypeMethodDescriptionaddAllMessageItems(Iterable<? extends MessageItem> values) Optional messages corresponding to the result.addAllVirusDetails(Iterable<? extends VirusDetail> values) List of Viruses 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.addVirusDetails(int index, VirusDetail value) List of Viruses identified.addVirusDetails(int index, VirusDetail.Builder builderForValue) List of Viruses identified.addVirusDetails(VirusDetail value) List of Viruses identified.addVirusDetails(VirusDetail.Builder builderForValue) List of Viruses identified.List of Viruses identified.addVirusDetailsBuilder(int index) List of Viruses identified.build()clear()Output only.Output only.Optional messages corresponding to the result.Type of content scanned.Size of scanned content in bytes.List of Viruses identified.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.intOutput only.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.Type of content scanned.intType of content scanned.longSize of scanned content in bytes.getVirusDetails(int index) List of Viruses identified.getVirusDetailsBuilder(int index) List of Viruses identified.List of Viruses identified.intList of Viruses identified.List of Viruses identified.getVirusDetailsOrBuilder(int index) List of Viruses identified.List<? extends VirusDetailOrBuilder>List of Viruses identified.booleanSize of scanned content in bytes.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(VirusScanFilterResult 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.removeVirusDetails(int index) List of Viruses identified.Output only.setExecutionStateValue(int value) Output only.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.Type of content scanned.setScannedContentTypeValue(int value) Type of content scanned.setScannedSize(long value) Size of scanned content in bytes.setVirusDetails(int index, VirusDetail value) List of Viruses identified.setVirusDetails(int index, VirusDetail.Builder builderForValue) List of Viruses identified.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<VirusScanFilterResult.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<VirusScanFilterResult.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<VirusScanFilterResult.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<VirusScanFilterResult.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VirusScanFilterResult.Builder>
-
mergeFrom
public VirusScanFilterResult.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<VirusScanFilterResult.Builder>- Throws:
IOException
-
getExecutionStateValue
public int getExecutionStateValue()Output only. Reports whether Virus Scan was successfully executed or not.
.google.cloud.modelarmor.v1beta.FilterExecutionState execution_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExecutionStateValuein interfaceVirusScanFilterResultOrBuilder- Returns:
- The enum numeric value on the wire for executionState.
-
setExecutionStateValue
Output only. Reports whether Virus Scan 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 Virus Scan was successfully executed or not.
.google.cloud.modelarmor.v1beta.FilterExecutionState execution_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExecutionStatein interfaceVirusScanFilterResultOrBuilder- Returns:
- The executionState.
-
setExecutionState
Output only. Reports whether Virus Scan 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 Virus Scan 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 status is skipped then this field provides related reason/explanation.
repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;- Specified by:
getMessageItemsListin interfaceVirusScanFilterResultOrBuilder
-
getMessageItemsCount
public int getMessageItemsCount()Optional messages corresponding to the result. A message can provide warnings or error details. For example, if execution status is skipped then this field provides related reason/explanation.
repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;- Specified by:
getMessageItemsCountin interfaceVirusScanFilterResultOrBuilder
-
getMessageItems
Optional messages corresponding to the result. A message can provide warnings or error details. For example, if execution status is skipped then this field provides related reason/explanation.
repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;- Specified by:
getMessageItemsin interfaceVirusScanFilterResultOrBuilder
-
setMessageItems
Optional messages corresponding to the result. A message can provide warnings or error details. For example, if execution status is skipped then this field provides related reason/explanation.
repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2; -
setMessageItems
public VirusScanFilterResult.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 status 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 status 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 status 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 status is skipped then this field provides related reason/explanation.
repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2; -
addMessageItems
public VirusScanFilterResult.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 status 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 status 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 status 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 status 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 status 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 status is skipped then this field provides related reason/explanation.
repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;- Specified by:
getMessageItemsOrBuilderin interfaceVirusScanFilterResultOrBuilder
-
getMessageItemsOrBuilderList
Optional messages corresponding to the result. A message can provide warnings or error details. For example, if execution status is skipped then this field provides related reason/explanation.
repeated .google.cloud.modelarmor.v1beta.MessageItem message_items = 2;- Specified by:
getMessageItemsOrBuilderListin interfaceVirusScanFilterResultOrBuilder
-
addMessageItemsBuilder
Optional messages corresponding to the result. A message can provide warnings or error details. For example, if execution status 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 status 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 status 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 status for Virus. Value is MATCH_FOUND if the data is infected with a virus.
.google.cloud.modelarmor.v1beta.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMatchStateValuein interfaceVirusScanFilterResultOrBuilder- Returns:
- The enum numeric value on the wire for matchState.
-
setMatchStateValue
Output only. Match status for Virus. Value is MATCH_FOUND if the data is infected with a virus.
.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 status for Virus. Value is MATCH_FOUND if the data is infected with a virus.
.google.cloud.modelarmor.v1beta.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMatchStatein interfaceVirusScanFilterResultOrBuilder- Returns:
- The matchState.
-
setMatchState
Output only. Match status for Virus. Value is MATCH_FOUND if the data is infected with a virus.
.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 status for Virus. Value is MATCH_FOUND if the data is infected with a virus.
.google.cloud.modelarmor.v1beta.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getScannedContentTypeValue
public int getScannedContentTypeValue()Type of content scanned.
.google.cloud.modelarmor.v1beta.VirusScanFilterResult.ScannedContentType scanned_content_type = 4;- Specified by:
getScannedContentTypeValuein interfaceVirusScanFilterResultOrBuilder- Returns:
- The enum numeric value on the wire for scannedContentType.
-
setScannedContentTypeValue
Type of content scanned.
.google.cloud.modelarmor.v1beta.VirusScanFilterResult.ScannedContentType scanned_content_type = 4;- Parameters:
value- The enum numeric value on the wire for scannedContentType to set.- Returns:
- This builder for chaining.
-
getScannedContentType
Type of content scanned.
.google.cloud.modelarmor.v1beta.VirusScanFilterResult.ScannedContentType scanned_content_type = 4;- Specified by:
getScannedContentTypein interfaceVirusScanFilterResultOrBuilder- Returns:
- The scannedContentType.
-
setScannedContentType
public VirusScanFilterResult.Builder setScannedContentType(VirusScanFilterResult.ScannedContentType value) Type of content scanned.
.google.cloud.modelarmor.v1beta.VirusScanFilterResult.ScannedContentType scanned_content_type = 4;- Parameters:
value- The scannedContentType to set.- Returns:
- This builder for chaining.
-
clearScannedContentType
Type of content scanned.
.google.cloud.modelarmor.v1beta.VirusScanFilterResult.ScannedContentType scanned_content_type = 4;- Returns:
- This builder for chaining.
-
hasScannedSize
public boolean hasScannedSize()Size of scanned content in bytes.
optional int64 scanned_size = 5;- Specified by:
hasScannedSizein interfaceVirusScanFilterResultOrBuilder- Returns:
- Whether the scannedSize field is set.
-
getScannedSize
public long getScannedSize()Size of scanned content in bytes.
optional int64 scanned_size = 5;- Specified by:
getScannedSizein interfaceVirusScanFilterResultOrBuilder- Returns:
- The scannedSize.
-
setScannedSize
Size of scanned content in bytes.
optional int64 scanned_size = 5;- Parameters:
value- The scannedSize to set.- Returns:
- This builder for chaining.
-
clearScannedSize
Size of scanned content in bytes.
optional int64 scanned_size = 5;- Returns:
- This builder for chaining.
-
getVirusDetailsList
List of Viruses identified. This field will be empty if no virus was detected.
repeated .google.cloud.modelarmor.v1beta.VirusDetail virus_details = 6;- Specified by:
getVirusDetailsListin interfaceVirusScanFilterResultOrBuilder
-
getVirusDetailsCount
public int getVirusDetailsCount()List of Viruses identified. This field will be empty if no virus was detected.
repeated .google.cloud.modelarmor.v1beta.VirusDetail virus_details = 6;- Specified by:
getVirusDetailsCountin interfaceVirusScanFilterResultOrBuilder
-
getVirusDetails
List of Viruses identified. This field will be empty if no virus was detected.
repeated .google.cloud.modelarmor.v1beta.VirusDetail virus_details = 6;- Specified by:
getVirusDetailsin interfaceVirusScanFilterResultOrBuilder
-
setVirusDetails
List of Viruses identified. This field will be empty if no virus was detected.
repeated .google.cloud.modelarmor.v1beta.VirusDetail virus_details = 6; -
setVirusDetails
public VirusScanFilterResult.Builder setVirusDetails(int index, VirusDetail.Builder builderForValue) List of Viruses identified. This field will be empty if no virus was detected.
repeated .google.cloud.modelarmor.v1beta.VirusDetail virus_details = 6; -
addVirusDetails
List of Viruses identified. This field will be empty if no virus was detected.
repeated .google.cloud.modelarmor.v1beta.VirusDetail virus_details = 6; -
addVirusDetails
List of Viruses identified. This field will be empty if no virus was detected.
repeated .google.cloud.modelarmor.v1beta.VirusDetail virus_details = 6; -
addVirusDetails
List of Viruses identified. This field will be empty if no virus was detected.
repeated .google.cloud.modelarmor.v1beta.VirusDetail virus_details = 6; -
addVirusDetails
public VirusScanFilterResult.Builder addVirusDetails(int index, VirusDetail.Builder builderForValue) List of Viruses identified. This field will be empty if no virus was detected.
repeated .google.cloud.modelarmor.v1beta.VirusDetail virus_details = 6; -
addAllVirusDetails
List of Viruses identified. This field will be empty if no virus was detected.
repeated .google.cloud.modelarmor.v1beta.VirusDetail virus_details = 6; -
clearVirusDetails
List of Viruses identified. This field will be empty if no virus was detected.
repeated .google.cloud.modelarmor.v1beta.VirusDetail virus_details = 6; -
removeVirusDetails
List of Viruses identified. This field will be empty if no virus was detected.
repeated .google.cloud.modelarmor.v1beta.VirusDetail virus_details = 6; -
getVirusDetailsBuilder
List of Viruses identified. This field will be empty if no virus was detected.
repeated .google.cloud.modelarmor.v1beta.VirusDetail virus_details = 6; -
getVirusDetailsOrBuilder
List of Viruses identified. This field will be empty if no virus was detected.
repeated .google.cloud.modelarmor.v1beta.VirusDetail virus_details = 6;- Specified by:
getVirusDetailsOrBuilderin interfaceVirusScanFilterResultOrBuilder
-
getVirusDetailsOrBuilderList
List of Viruses identified. This field will be empty if no virus was detected.
repeated .google.cloud.modelarmor.v1beta.VirusDetail virus_details = 6;- Specified by:
getVirusDetailsOrBuilderListin interfaceVirusScanFilterResultOrBuilder
-
addVirusDetailsBuilder
List of Viruses identified. This field will be empty if no virus was detected.
repeated .google.cloud.modelarmor.v1beta.VirusDetail virus_details = 6; -
addVirusDetailsBuilder
List of Viruses identified. This field will be empty if no virus was detected.
repeated .google.cloud.modelarmor.v1beta.VirusDetail virus_details = 6; -
getVirusDetailsBuilderList
List of Viruses identified. This field will be empty if no virus was detected.
repeated .google.cloud.modelarmor.v1beta.VirusDetail virus_details = 6;
-