Package io.grafeas.v1
Class DiscoveryOccurrence
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.grafeas.v1.DiscoveryOccurrence
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DiscoveryOccurrenceOrBuilder,Serializable
public final class DiscoveryOccurrence extends com.google.protobuf.GeneratedMessageV3 implements DiscoveryOccurrenceOrBuilder
Provides information about the analysis status of a discovered resource.
Protobuf typegrafeas.v1.DiscoveryOccurrence- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDiscoveryOccurrence.AnalysisCompletedIndicates which analysis completed successfully.static interfaceDiscoveryOccurrence.AnalysisCompletedOrBuilderstatic classDiscoveryOccurrence.AnalysisStatusAnalysis status for a resource.static classDiscoveryOccurrence.BuilderProvides information about the analysis status of a discovered resource.static classDiscoveryOccurrence.ContinuousAnalysisWhether the resource is continuously analyzed.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intANALYSIS_COMPLETED_FIELD_NUMBERstatic intANALYSIS_ERROR_FIELD_NUMBERstatic intANALYSIS_STATUS_ERROR_FIELD_NUMBERstatic intANALYSIS_STATUS_FIELD_NUMBERstatic intARCHIVE_TIME_FIELD_NUMBERstatic intCONTINUOUS_ANALYSIS_FIELD_NUMBERstatic intCPE_FIELD_NUMBERstatic intLAST_SCAN_TIME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)DiscoveryOccurrence.AnalysisCompletedgetAnalysisCompleted().grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;DiscoveryOccurrence.AnalysisCompletedOrBuildergetAnalysisCompletedOrBuilder().grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;com.google.rpc.StatusgetAnalysisError(int index)Indicates any errors encountered during analysis of a resource.intgetAnalysisErrorCount()Indicates any errors encountered during analysis of a resource.List<com.google.rpc.Status>getAnalysisErrorList()Indicates any errors encountered during analysis of a resource.com.google.rpc.StatusOrBuildergetAnalysisErrorOrBuilder(int index)Indicates any errors encountered during analysis of a resource.List<? extends com.google.rpc.StatusOrBuilder>getAnalysisErrorOrBuilderList()Indicates any errors encountered during analysis of a resource.DiscoveryOccurrence.AnalysisStatusgetAnalysisStatus()The status of discovery for the resource.com.google.rpc.StatusgetAnalysisStatusError()When an error is encountered this will contain a LocalizedMessage under details to show to the user.com.google.rpc.StatusOrBuildergetAnalysisStatusErrorOrBuilder()When an error is encountered this will contain a LocalizedMessage under details to show to the user.intgetAnalysisStatusValue()The status of discovery for the resource.com.google.protobuf.TimestampgetArchiveTime()The time occurrences related to this discovery occurrence were archived.com.google.protobuf.TimestampOrBuildergetArchiveTimeOrBuilder()The time occurrences related to this discovery occurrence were archived.DiscoveryOccurrence.ContinuousAnalysisgetContinuousAnalysis()Whether the resource is continuously analyzed.intgetContinuousAnalysisValue()Whether the resource is continuously analyzed.StringgetCpe()The CPE of the resource being scanned.com.google.protobuf.ByteStringgetCpeBytes()The CPE of the resource being scanned.static DiscoveryOccurrencegetDefaultInstance()DiscoveryOccurrencegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.TimestampgetLastScanTime()The last time this resource was scanned.com.google.protobuf.TimestampOrBuildergetLastScanTimeOrBuilder()The last time this resource was scanned.com.google.protobuf.Parser<DiscoveryOccurrence>getParserForType()intgetSerializedSize()booleanhasAnalysisCompleted().grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;booleanhasAnalysisStatusError()When an error is encountered this will contain a LocalizedMessage under details to show to the user.booleanhasArchiveTime()The time occurrences related to this discovery occurrence were archived.inthashCode()booleanhasLastScanTime()The last time this resource was scanned.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static DiscoveryOccurrence.BuildernewBuilder()static DiscoveryOccurrence.BuildernewBuilder(DiscoveryOccurrence prototype)DiscoveryOccurrence.BuildernewBuilderForType()protected DiscoveryOccurrence.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static DiscoveryOccurrenceparseDelimitedFrom(InputStream input)static DiscoveryOccurrenceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DiscoveryOccurrenceparseFrom(byte[] data)static DiscoveryOccurrenceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DiscoveryOccurrenceparseFrom(com.google.protobuf.ByteString data)static DiscoveryOccurrenceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DiscoveryOccurrenceparseFrom(com.google.protobuf.CodedInputStream input)static DiscoveryOccurrenceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DiscoveryOccurrenceparseFrom(InputStream input)static DiscoveryOccurrenceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DiscoveryOccurrenceparseFrom(ByteBuffer data)static DiscoveryOccurrenceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<DiscoveryOccurrence>parser()DiscoveryOccurrence.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CONTINUOUS_ANALYSIS_FIELD_NUMBER
public static final int CONTINUOUS_ANALYSIS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANALYSIS_STATUS_FIELD_NUMBER
public static final int ANALYSIS_STATUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANALYSIS_COMPLETED_FIELD_NUMBER
public static final int ANALYSIS_COMPLETED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANALYSIS_ERROR_FIELD_NUMBER
public static final int ANALYSIS_ERROR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANALYSIS_STATUS_ERROR_FIELD_NUMBER
public static final int ANALYSIS_STATUS_ERROR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CPE_FIELD_NUMBER
public static final int CPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LAST_SCAN_TIME_FIELD_NUMBER
public static final int LAST_SCAN_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ARCHIVE_TIME_FIELD_NUMBER
public static final int ARCHIVE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getContinuousAnalysisValue
public int getContinuousAnalysisValue()
Whether the resource is continuously analyzed.
.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1;- Specified by:
getContinuousAnalysisValuein interfaceDiscoveryOccurrenceOrBuilder- Returns:
- The enum numeric value on the wire for continuousAnalysis.
-
getContinuousAnalysis
public DiscoveryOccurrence.ContinuousAnalysis getContinuousAnalysis()
Whether the resource is continuously analyzed.
.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1;- Specified by:
getContinuousAnalysisin interfaceDiscoveryOccurrenceOrBuilder- Returns:
- The continuousAnalysis.
-
getAnalysisStatusValue
public int getAnalysisStatusValue()
The status of discovery for the resource.
.grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2;- Specified by:
getAnalysisStatusValuein interfaceDiscoveryOccurrenceOrBuilder- Returns:
- The enum numeric value on the wire for analysisStatus.
-
getAnalysisStatus
public DiscoveryOccurrence.AnalysisStatus getAnalysisStatus()
The status of discovery for the resource.
.grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2;- Specified by:
getAnalysisStatusin interfaceDiscoveryOccurrenceOrBuilder- Returns:
- The analysisStatus.
-
hasAnalysisCompleted
public boolean hasAnalysisCompleted()
.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;- Specified by:
hasAnalysisCompletedin interfaceDiscoveryOccurrenceOrBuilder- Returns:
- Whether the analysisCompleted field is set.
-
getAnalysisCompleted
public DiscoveryOccurrence.AnalysisCompleted getAnalysisCompleted()
.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;- Specified by:
getAnalysisCompletedin interfaceDiscoveryOccurrenceOrBuilder- Returns:
- The analysisCompleted.
-
getAnalysisCompletedOrBuilder
public DiscoveryOccurrence.AnalysisCompletedOrBuilder getAnalysisCompletedOrBuilder()
.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;- Specified by:
getAnalysisCompletedOrBuilderin interfaceDiscoveryOccurrenceOrBuilder
-
getAnalysisErrorList
public List<com.google.rpc.Status> getAnalysisErrorList()
Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.
repeated .google.rpc.Status analysis_error = 8;- Specified by:
getAnalysisErrorListin interfaceDiscoveryOccurrenceOrBuilder
-
getAnalysisErrorOrBuilderList
public List<? extends com.google.rpc.StatusOrBuilder> getAnalysisErrorOrBuilderList()
Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.
repeated .google.rpc.Status analysis_error = 8;- Specified by:
getAnalysisErrorOrBuilderListin interfaceDiscoveryOccurrenceOrBuilder
-
getAnalysisErrorCount
public int getAnalysisErrorCount()
Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.
repeated .google.rpc.Status analysis_error = 8;- Specified by:
getAnalysisErrorCountin interfaceDiscoveryOccurrenceOrBuilder
-
getAnalysisError
public com.google.rpc.Status getAnalysisError(int index)
Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.
repeated .google.rpc.Status analysis_error = 8;- Specified by:
getAnalysisErrorin interfaceDiscoveryOccurrenceOrBuilder
-
getAnalysisErrorOrBuilder
public com.google.rpc.StatusOrBuilder getAnalysisErrorOrBuilder(int index)
Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors.
repeated .google.rpc.Status analysis_error = 8;- Specified by:
getAnalysisErrorOrBuilderin interfaceDiscoveryOccurrenceOrBuilder
-
hasAnalysisStatusError
public boolean hasAnalysisStatusError()
When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.
.google.rpc.Status analysis_status_error = 3;- Specified by:
hasAnalysisStatusErrorin interfaceDiscoveryOccurrenceOrBuilder- Returns:
- Whether the analysisStatusError field is set.
-
getAnalysisStatusError
public com.google.rpc.Status getAnalysisStatusError()
When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.
.google.rpc.Status analysis_status_error = 3;- Specified by:
getAnalysisStatusErrorin interfaceDiscoveryOccurrenceOrBuilder- Returns:
- The analysisStatusError.
-
getAnalysisStatusErrorOrBuilder
public com.google.rpc.StatusOrBuilder getAnalysisStatusErrorOrBuilder()
When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API.
.google.rpc.Status analysis_status_error = 3;- Specified by:
getAnalysisStatusErrorOrBuilderin interfaceDiscoveryOccurrenceOrBuilder
-
getCpe
public String getCpe()
The CPE of the resource being scanned.
string cpe = 4;- Specified by:
getCpein interfaceDiscoveryOccurrenceOrBuilder- Returns:
- The cpe.
-
getCpeBytes
public com.google.protobuf.ByteString getCpeBytes()
The CPE of the resource being scanned.
string cpe = 4;- Specified by:
getCpeBytesin interfaceDiscoveryOccurrenceOrBuilder- Returns:
- The bytes for cpe.
-
hasLastScanTime
public boolean hasLastScanTime()
The last time this resource was scanned.
.google.protobuf.Timestamp last_scan_time = 5;- Specified by:
hasLastScanTimein interfaceDiscoveryOccurrenceOrBuilder- Returns:
- Whether the lastScanTime field is set.
-
getLastScanTime
public com.google.protobuf.Timestamp getLastScanTime()
The last time this resource was scanned.
.google.protobuf.Timestamp last_scan_time = 5;- Specified by:
getLastScanTimein interfaceDiscoveryOccurrenceOrBuilder- Returns:
- The lastScanTime.
-
getLastScanTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getLastScanTimeOrBuilder()
The last time this resource was scanned.
.google.protobuf.Timestamp last_scan_time = 5;- Specified by:
getLastScanTimeOrBuilderin interfaceDiscoveryOccurrenceOrBuilder
-
hasArchiveTime
public boolean hasArchiveTime()
The time occurrences related to this discovery occurrence were archived.
.google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasArchiveTimein interfaceDiscoveryOccurrenceOrBuilder- Returns:
- Whether the archiveTime field is set.
-
getArchiveTime
public com.google.protobuf.Timestamp getArchiveTime()
The time occurrences related to this discovery occurrence were archived.
.google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getArchiveTimein interfaceDiscoveryOccurrenceOrBuilder- Returns:
- The archiveTime.
-
getArchiveTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getArchiveTimeOrBuilder()
The time occurrences related to this discovery occurrence were archived.
.google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getArchiveTimeOrBuilderin interfaceDiscoveryOccurrenceOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DiscoveryOccurrence parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DiscoveryOccurrence parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DiscoveryOccurrence parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DiscoveryOccurrence parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DiscoveryOccurrence parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DiscoveryOccurrence parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DiscoveryOccurrence parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DiscoveryOccurrence parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static DiscoveryOccurrence parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static DiscoveryOccurrence parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static DiscoveryOccurrence parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DiscoveryOccurrence parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public DiscoveryOccurrence.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static DiscoveryOccurrence.Builder newBuilder()
-
newBuilder
public static DiscoveryOccurrence.Builder newBuilder(DiscoveryOccurrence prototype)
-
toBuilder
public DiscoveryOccurrence.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DiscoveryOccurrence.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static DiscoveryOccurrence getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<DiscoveryOccurrence> parser()
-
getParserForType
public com.google.protobuf.Parser<DiscoveryOccurrence> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public DiscoveryOccurrence getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-