- 2.54.0 (latest)
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.10
- 2.3.1
- 2.2.16
public final class Note extends GeneratedMessageV3 implements NoteOrBuilder
A type of analysis that can be done for a resource.
Protobuf type grafeas.v1beta1.Note
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > NoteImplements
NoteOrBuilderStatic Fields
ATTESTATION_AUTHORITY_FIELD_NUMBER
public static final int ATTESTATION_AUTHORITY_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
BASE_IMAGE_FIELD_NUMBER
public static final int BASE_IMAGE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
BUILD_FIELD_NUMBER
public static final int BUILD_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
DEPLOYABLE_FIELD_NUMBER
public static final int DEPLOYABLE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
DISCOVERY_FIELD_NUMBER
public static final int DISCOVERY_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
EXPIRATION_TIME_FIELD_NUMBER
public static final int EXPIRATION_TIME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
LONG_DESCRIPTION_FIELD_NUMBER
public static final int LONG_DESCRIPTION_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
PACKAGE_FIELD_NUMBER
public static final int PACKAGE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
RELATED_NOTE_NAMES_FIELD_NUMBER
public static final int RELATED_NOTE_NAMES_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
RELATED_URL_FIELD_NUMBER
public static final int RELATED_URL_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
SHORT_DESCRIPTION_FIELD_NUMBER
public static final int SHORT_DESCRIPTION_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
VULNERABILITY_FIELD_NUMBER
public static final int VULNERABILITY_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Note getDefaultInstance()
Returns | |
---|---|
Type | Description |
Note |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static Note.Builder newBuilder()
Returns | |
---|---|
Type | Description |
Note.Builder |
newBuilder(Note prototype)
public static Note.Builder newBuilder(Note prototype)
Parameter | |
---|---|
Name | Description |
prototype |
Note |
Returns | |
---|---|
Type | Description |
Note.Builder |
parseDelimitedFrom(InputStream input)
public static Note parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
Note |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Note parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Note |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static Note parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
Note |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Note parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Note |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Note parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
Note |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Note parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Note |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Note parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
Note |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Note parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Note |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static Note parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
Note |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Note parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Note |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Note parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
Note |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Note parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Note |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Note> parser()
Returns | |
---|---|
Type | Description |
Parser<Note> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getAttestationAuthority()
public Authority getAttestationAuthority()
A note describing an attestation role.
.grafeas.v1beta1.attestation.Authority attestation_authority = 16;
Returns | |
---|---|
Type | Description |
Authority |
The attestationAuthority. |
getAttestationAuthorityOrBuilder()
public AuthorityOrBuilder getAttestationAuthorityOrBuilder()
A note describing an attestation role.
.grafeas.v1beta1.attestation.Authority attestation_authority = 16;
Returns | |
---|---|
Type | Description |
AuthorityOrBuilder |
getBaseImage()
public Basis getBaseImage()
A note describing a base image.
.grafeas.v1beta1.image.Basis base_image = 12;
Returns | |
---|---|
Type | Description |
Basis |
The baseImage. |
getBaseImageOrBuilder()
public BasisOrBuilder getBaseImageOrBuilder()
A note describing a base image.
.grafeas.v1beta1.image.Basis base_image = 12;
Returns | |
---|---|
Type | Description |
BasisOrBuilder |
getBuild()
public Build getBuild()
A note describing build provenance for a verifiable build.
.grafeas.v1beta1.build.Build build = 11;
Returns | |
---|---|
Type | Description |
Build |
The build. |
getBuildOrBuilder()
public BuildOrBuilder getBuildOrBuilder()
A note describing build provenance for a verifiable build.
.grafeas.v1beta1.build.Build build = 11;
Returns | |
---|---|
Type | Description |
BuildOrBuilder |
getCreateTime()
public Timestamp getCreateTime()
Output only. The time this note was created. This field can be used as a filter in list requests.
.google.protobuf.Timestamp create_time = 7;
Returns | |
---|---|
Type | Description |
Timestamp |
The createTime. |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time this note was created. This field can be used as a filter in list requests.
.google.protobuf.Timestamp create_time = 7;
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Note getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Note |
getDeployable()
public Deployable getDeployable()
A note describing something that can be deployed.
.grafeas.v1beta1.deployment.Deployable deployable = 14;
Returns | |
---|---|
Type | Description |
Deployable |
The deployable. |
getDeployableOrBuilder()
public DeployableOrBuilder getDeployableOrBuilder()
A note describing something that can be deployed.
.grafeas.v1beta1.deployment.Deployable deployable = 14;
Returns | |
---|---|
Type | Description |
DeployableOrBuilder |
getDiscovery()
public Discovery getDiscovery()
A note describing the initial analysis of a resource.
.grafeas.v1beta1.discovery.Discovery discovery = 15;
Returns | |
---|---|
Type | Description |
Discovery |
The discovery. |
getDiscoveryOrBuilder()
public DiscoveryOrBuilder getDiscoveryOrBuilder()
A note describing the initial analysis of a resource.
.grafeas.v1beta1.discovery.Discovery discovery = 15;
Returns | |
---|---|
Type | Description |
DiscoveryOrBuilder |
getExpirationTime()
public Timestamp getExpirationTime()
Time of expiration for this note. Empty if note does not expire.
.google.protobuf.Timestamp expiration_time = 6;
Returns | |
---|---|
Type | Description |
Timestamp |
The expirationTime. |
getExpirationTimeOrBuilder()
public TimestampOrBuilder getExpirationTimeOrBuilder()
Time of expiration for this note. Empty if note does not expire.
.google.protobuf.Timestamp expiration_time = 6;
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getKind()
public NoteKind getKind()
Output only. The type of analysis. This field can be used as a filter in list requests.
.grafeas.v1beta1.NoteKind kind = 4;
Returns | |
---|---|
Type | Description |
NoteKind |
The kind. |
getKindValue()
public int getKindValue()
Output only. The type of analysis. This field can be used as a filter in list requests.
.grafeas.v1beta1.NoteKind kind = 4;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for kind. |
getLongDescription()
public String getLongDescription()
A detailed description of this note.
string long_description = 3;
Returns | |
---|---|
Type | Description |
String |
The longDescription. |
getLongDescriptionBytes()
public ByteString getLongDescriptionBytes()
A detailed description of this note.
string long_description = 3;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for longDescription. |
getName()
public String getName()
Output only. The name of the note in the form of
projects/[PROVIDER_ID]/notes/[NOTE_ID]
.
string name = 1;
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
Output only. The name of the note in the form of
projects/[PROVIDER_ID]/notes/[NOTE_ID]
.
string name = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getPackage()
public Package getPackage()
A note describing a package hosted by various package managers.
.grafeas.v1beta1.package.Package package = 13;
Returns | |
---|---|
Type | Description |
Package |
The package. |
getPackageOrBuilder()
public PackageOrBuilder getPackageOrBuilder()
A note describing a package hosted by various package managers.
.grafeas.v1beta1.package.Package package = 13;
Returns | |
---|---|
Type | Description |
PackageOrBuilder |
getParserForType()
public Parser<Note> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<Note> |
getRelatedNoteNames(int index)
public String getRelatedNoteNames(int index)
Other notes related to this note.
repeated string related_note_names = 9;
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The relatedNoteNames at the given index. |
getRelatedNoteNamesBytes(int index)
public ByteString getRelatedNoteNamesBytes(int index)
Other notes related to this note.
repeated string related_note_names = 9;
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the relatedNoteNames at the given index. |
getRelatedNoteNamesCount()
public int getRelatedNoteNamesCount()
Other notes related to this note.
repeated string related_note_names = 9;
Returns | |
---|---|
Type | Description |
int |
The count of relatedNoteNames. |
getRelatedNoteNamesList()
public ProtocolStringList getRelatedNoteNamesList()
Other notes related to this note.
repeated string related_note_names = 9;
Returns | |
---|---|
Type | Description |
ProtocolStringList |
A list containing the relatedNoteNames. |
getRelatedUrl(int index)
public RelatedUrl getRelatedUrl(int index)
URLs associated with this note.
repeated .grafeas.v1beta1.RelatedUrl related_url = 5;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
RelatedUrl |
getRelatedUrlCount()
public int getRelatedUrlCount()
URLs associated with this note.
repeated .grafeas.v1beta1.RelatedUrl related_url = 5;
Returns | |
---|---|
Type | Description |
int |
getRelatedUrlList()
public List<RelatedUrl> getRelatedUrlList()
URLs associated with this note.
repeated .grafeas.v1beta1.RelatedUrl related_url = 5;
Returns | |
---|---|
Type | Description |
List<RelatedUrl> |
getRelatedUrlOrBuilder(int index)
public RelatedUrlOrBuilder getRelatedUrlOrBuilder(int index)
URLs associated with this note.
repeated .grafeas.v1beta1.RelatedUrl related_url = 5;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
RelatedUrlOrBuilder |
getRelatedUrlOrBuilderList()
public List<? extends RelatedUrlOrBuilder> getRelatedUrlOrBuilderList()
URLs associated with this note.
repeated .grafeas.v1beta1.RelatedUrl related_url = 5;
Returns | |
---|---|
Type | Description |
List<? extends io.grafeas.v1beta1.common.RelatedUrlOrBuilder> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
getShortDescription()
public String getShortDescription()
A one sentence description of this note.
string short_description = 2;
Returns | |
---|---|
Type | Description |
String |
The shortDescription. |
getShortDescriptionBytes()
public ByteString getShortDescriptionBytes()
A one sentence description of this note.
string short_description = 2;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for shortDescription. |
getTypeCase()
public Note.TypeCase getTypeCase()
Returns | |
---|---|
Type | Description |
Note.TypeCase |
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The time this note was last updated. This field can be used as a filter in list requests.
.google.protobuf.Timestamp update_time = 8;
Returns | |
---|---|
Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The time this note was last updated. This field can be used as a filter in list requests.
.google.protobuf.Timestamp update_time = 8;
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getVulnerability()
public Vulnerability getVulnerability()
A note describing a package vulnerability.
.grafeas.v1beta1.vulnerability.Vulnerability vulnerability = 10;
Returns | |
---|---|
Type | Description |
Vulnerability |
The vulnerability. |
getVulnerabilityOrBuilder()
public VulnerabilityOrBuilder getVulnerabilityOrBuilder()
A note describing a package vulnerability.
.grafeas.v1beta1.vulnerability.Vulnerability vulnerability = 10;
Returns | |
---|---|
Type | Description |
VulnerabilityOrBuilder |
hasAttestationAuthority()
public boolean hasAttestationAuthority()
A note describing an attestation role.
.grafeas.v1beta1.attestation.Authority attestation_authority = 16;
Returns | |
---|---|
Type | Description |
boolean |
Whether the attestationAuthority field is set. |
hasBaseImage()
public boolean hasBaseImage()
A note describing a base image.
.grafeas.v1beta1.image.Basis base_image = 12;
Returns | |
---|---|
Type | Description |
boolean |
Whether the baseImage field is set. |
hasBuild()
public boolean hasBuild()
A note describing build provenance for a verifiable build.
.grafeas.v1beta1.build.Build build = 11;
Returns | |
---|---|
Type | Description |
boolean |
Whether the build field is set. |
hasCreateTime()
public boolean hasCreateTime()
Output only. The time this note was created. This field can be used as a filter in list requests.
.google.protobuf.Timestamp create_time = 7;
Returns | |
---|---|
Type | Description |
boolean |
Whether the createTime field is set. |
hasDeployable()
public boolean hasDeployable()
A note describing something that can be deployed.
.grafeas.v1beta1.deployment.Deployable deployable = 14;
Returns | |
---|---|
Type | Description |
boolean |
Whether the deployable field is set. |
hasDiscovery()
public boolean hasDiscovery()
A note describing the initial analysis of a resource.
.grafeas.v1beta1.discovery.Discovery discovery = 15;
Returns | |
---|---|
Type | Description |
boolean |
Whether the discovery field is set. |
hasExpirationTime()
public boolean hasExpirationTime()
Time of expiration for this note. Empty if note does not expire.
.google.protobuf.Timestamp expiration_time = 6;
Returns | |
---|---|
Type | Description |
boolean |
Whether the expirationTime field is set. |
hasPackage()
public boolean hasPackage()
A note describing a package hosted by various package managers.
.grafeas.v1beta1.package.Package package = 13;
Returns | |
---|---|
Type | Description |
boolean |
Whether the package field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
Output only. The time this note was last updated. This field can be used as a filter in list requests.
.google.protobuf.Timestamp update_time = 8;
Returns | |
---|---|
Type | Description |
boolean |
Whether the updateTime field is set. |
hasVulnerability()
public boolean hasVulnerability()
A note describing a package vulnerability.
.grafeas.v1beta1.vulnerability.Vulnerability vulnerability = 10;
Returns | |
---|---|
Type | Description |
boolean |
Whether the vulnerability field is set. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public Note.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
Note.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Note.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
Note.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public Note.Builder toBuilder()
Returns | |
---|---|
Type | Description |
Note.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |