Package io.grafeas.v1

Class 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 type grafeas.v1.DiscoveryOccurrence
    See Also:
    Serialized Form
    • 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
      • 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:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getContinuousAnalysisValue

        public int getContinuousAnalysisValue()
         Whether the resource is continuously analyzed.
         
        .grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1;
        Specified by:
        getContinuousAnalysisValue in interface DiscoveryOccurrenceOrBuilder
        Returns:
        The enum numeric value on the wire for continuousAnalysis.
      • getAnalysisStatusValue

        public int getAnalysisStatusValue()
         The status of discovery for the resource.
         
        .grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2;
        Specified by:
        getAnalysisStatusValue in interface DiscoveryOccurrenceOrBuilder
        Returns:
        The enum numeric value on the wire for analysisStatus.
      • hasAnalysisCompleted

        public boolean hasAnalysisCompleted()
        .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;
        Specified by:
        hasAnalysisCompleted in interface DiscoveryOccurrenceOrBuilder
        Returns:
        Whether the analysisCompleted field is set.
      • 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:
        getAnalysisErrorList in interface DiscoveryOccurrenceOrBuilder
      • 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:
        getAnalysisErrorOrBuilderList in interface DiscoveryOccurrenceOrBuilder
      • 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:
        getAnalysisErrorCount in interface DiscoveryOccurrenceOrBuilder
      • 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:
        getAnalysisError in interface DiscoveryOccurrenceOrBuilder
      • 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:
        getAnalysisErrorOrBuilder in interface DiscoveryOccurrenceOrBuilder
      • 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:
        hasAnalysisStatusError in interface DiscoveryOccurrenceOrBuilder
        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:
        getAnalysisStatusError in interface DiscoveryOccurrenceOrBuilder
        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:
        getAnalysisStatusErrorOrBuilder in interface DiscoveryOccurrenceOrBuilder
      • getCpeBytes

        public com.google.protobuf.ByteString getCpeBytes()
         The CPE of the resource being scanned.
         
        string cpe = 4;
        Specified by:
        getCpeBytes in interface DiscoveryOccurrenceOrBuilder
        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:
        hasLastScanTime in interface DiscoveryOccurrenceOrBuilder
        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:
        getLastScanTime in interface DiscoveryOccurrenceOrBuilder
        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:
        getLastScanTimeOrBuilder in interface DiscoveryOccurrenceOrBuilder
      • 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:
        hasArchiveTime in interface DiscoveryOccurrenceOrBuilder
        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:
        getArchiveTime in interface DiscoveryOccurrenceOrBuilder
        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:
        getArchiveTimeOrBuilder in interface DiscoveryOccurrenceOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws IOException
        Throws:
        IOException
      • newBuilderForType

        public DiscoveryOccurrence.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public DiscoveryOccurrence.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected DiscoveryOccurrence.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<DiscoveryOccurrence> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public DiscoveryOccurrence getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder