Class Discovery (2.6.0)

public final class Discovery extends GeneratedMessageV3 implements DiscoveryOrBuilder

A note that indicates a type of analysis a provider would perform. This note exists in a provider's project. A Discovery occurrence is created in a consumer's project at the start of analysis.

Protobuf type grafeas.v1beta1.discovery.Discovery

Implements

DiscoveryOrBuilder

Static Fields

ANALYSIS_KIND_FIELD_NUMBER

public static final int ANALYSIS_KIND_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Discovery getDefaultInstance()
Returns
TypeDescription
Discovery

getDescriptor()

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

newBuilder()

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

newBuilder(Discovery prototype)

public static Discovery.Builder newBuilder(Discovery prototype)
Parameter
NameDescription
prototypeDiscovery
Returns
TypeDescription
Discovery.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAnalysisKind()

public NoteKind getAnalysisKind()

Required. Immutable. The kind of analysis that is handled by this discovery.

.grafeas.v1beta1.NoteKind analysis_kind = 1;

Returns
TypeDescription
NoteKind

The analysisKind.

getAnalysisKindValue()

public int getAnalysisKindValue()

Required. Immutable. The kind of analysis that is handled by this discovery.

.grafeas.v1beta1.NoteKind analysis_kind = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for analysisKind.

getDefaultInstanceForType()

public Discovery getDefaultInstanceForType()
Returns
TypeDescription
Discovery

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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 Discovery.Builder newBuilderForType()
Returns
TypeDescription
Discovery.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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