Class DiscoveryNote (2.24.0)

public final class DiscoveryNote extends GeneratedMessageV3 implements DiscoveryNoteOrBuilder

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.v1.DiscoveryNote

Static Fields

ANALYSIS_KIND_FIELD_NUMBER

public static final int ANALYSIS_KIND_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DiscoveryNote getDefaultInstance()
Returns
TypeDescription
DiscoveryNote

getDescriptor()

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

newBuilder()

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

newBuilder(DiscoveryNote prototype)

public static DiscoveryNote.Builder newBuilder(DiscoveryNote prototype)
Parameter
NameDescription
prototypeDiscoveryNote
Returns
TypeDescription
DiscoveryNote.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

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.v1.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.v1.NoteKind analysis_kind = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for analysisKind.

getDefaultInstanceForType()

public DiscoveryNote getDefaultInstanceForType()
Returns
TypeDescription
DiscoveryNote

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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 DiscoveryNote.Builder newBuilderForType()
Returns
TypeDescription
DiscoveryNote.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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