Class Discovered (2.28.0)

public final class Discovered extends GeneratedMessageV3 implements DiscoveredOrBuilder

Provides information about the analysis status of a discovered resource.

Protobuf type grafeas.v1beta1.discovery.Discovered

Implements

DiscoveredOrBuilder

Static Fields

ANALYSIS_STATUS_ERROR_FIELD_NUMBER

public static final int ANALYSIS_STATUS_ERROR_FIELD_NUMBER
Field Value
TypeDescription
int

ANALYSIS_STATUS_FIELD_NUMBER

public static final int ANALYSIS_STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

CONTINUOUS_ANALYSIS_FIELD_NUMBER

public static final int CONTINUOUS_ANALYSIS_FIELD_NUMBER
Field Value
TypeDescription
int

LAST_ANALYSIS_TIME_FIELD_NUMBER

public static final int LAST_ANALYSIS_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Discovered getDefaultInstance()
Returns
TypeDescription
Discovered

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Discovered.Builder newBuilder()
Returns
TypeDescription
Discovered.Builder

newBuilder(Discovered prototype)

public static Discovered.Builder newBuilder(Discovered prototype)
Parameter
NameDescription
prototypeDiscovered
Returns
TypeDescription
Discovered.Builder

parseDelimitedFrom(InputStream input)

public static Discovered parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Discovered
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Discovered parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Discovered
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Discovered parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Discovered
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Discovered parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Discovered
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Discovered parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Discovered
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Discovered parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Discovered
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Discovered parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Discovered
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Discovered parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Discovered
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Discovered parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Discovered
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Discovered parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Discovered
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Discovered parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Discovered
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Discovered parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Discovered
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Discovered> parser()
Returns
TypeDescription
Parser<Discovered>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAnalysisStatus()

public Discovered.AnalysisStatus getAnalysisStatus()

The status of discovery for the resource.

.grafeas.v1beta1.discovery.Discovered.AnalysisStatus analysis_status = 3;

Returns
TypeDescription
Discovered.AnalysisStatus

The analysisStatus.

getAnalysisStatusError()

public 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 = 4;

Returns
TypeDescription
com.google.rpc.Status

The analysisStatusError.

getAnalysisStatusErrorOrBuilder()

public 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 = 4;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getAnalysisStatusValue()

public int getAnalysisStatusValue()

The status of discovery for the resource.

.grafeas.v1beta1.discovery.Discovered.AnalysisStatus analysis_status = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for analysisStatus.

getContinuousAnalysis()

public Discovered.ContinuousAnalysis getContinuousAnalysis()

Whether the resource is continuously analyzed.

.grafeas.v1beta1.discovery.Discovered.ContinuousAnalysis continuous_analysis = 1;

Returns
TypeDescription
Discovered.ContinuousAnalysis

The continuousAnalysis.

getContinuousAnalysisValue()

public int getContinuousAnalysisValue()

Whether the resource is continuously analyzed.

.grafeas.v1beta1.discovery.Discovered.ContinuousAnalysis continuous_analysis = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for continuousAnalysis.

getDefaultInstanceForType()

public Discovered getDefaultInstanceForType()
Returns
TypeDescription
Discovered

getLastAnalysisTime()

public Timestamp getLastAnalysisTime()

The last time continuous analysis was done for this resource.

.google.protobuf.Timestamp last_analysis_time = 2;

Returns
TypeDescription
Timestamp

The lastAnalysisTime.

getLastAnalysisTimeOrBuilder()

public TimestampOrBuilder getLastAnalysisTimeOrBuilder()

The last time continuous analysis was done for this resource.

.google.protobuf.Timestamp last_analysis_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getParserForType()

public Parser<Discovered> getParserForType()
Returns
TypeDescription
Parser<Discovered>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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 = 4;

Returns
TypeDescription
boolean

Whether the analysisStatusError field is set.

hasLastAnalysisTime()

public boolean hasLastAnalysisTime()

The last time continuous analysis was done for this resource.

.google.protobuf.Timestamp last_analysis_time = 2;

Returns
TypeDescription
boolean

Whether the lastAnalysisTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Discovered.Builder newBuilderForType()
Returns
TypeDescription
Discovered.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Discovered.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Discovered.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Discovered.Builder toBuilder()
Returns
TypeDescription
Discovered.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException