Send feedback
Class BuildOccurrence (2.1.3)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.1.3 keyboard_arrow_down
public final class BuildOccurrence extends GeneratedMessageV3 implements BuildOccurrenceOrBuilder
Details of a build occurrence.
Protobuf type grafeas.v1.BuildOccurrence
Fields
PROVENANCE_BYTES_FIELD_NUMBER
public static final int PROVENANCE_BYTES_FIELD_NUMBER
Field Value
PROVENANCE_FIELD_NUMBER
public static final int PROVENANCE_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
Overrides
getDefaultInstance()
public static BuildOccurrence getDefaultInstance ()
Returns
getDefaultInstanceForType()
public BuildOccurrence getDefaultInstanceForType ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
getParserForType()
public Parser<BuildOccurrence> getParserForType ()
Returns
Overrides
getProvenance()
public BuildProvenance getProvenance ()
Required. The actual provenance for the build.
.grafeas.v1.BuildProvenance provenance = 1;
Returns
getProvenanceBytes()
public String getProvenanceBytes ()
Serialized JSON representation of the provenance, used in generating the
build signature in the corresponding build note. After verifying the
signature, provenance_bytes
can be unmarshalled and compared to the
provenance to confirm that it is unchanged. A base64-encoded string
representation of the provenance bytes is used for the signature in order
to interoperate with openssl which expects this format for signature
verification.
The serialized form is captured both to avoid ambiguity in how the
provenance is marshalled to json as well to prevent incompatibilities with
future changes.
string provenance_bytes = 2;
Returns
Type Description String The provenanceBytes.
getProvenanceBytesBytes()
public ByteString getProvenanceBytesBytes ()
Serialized JSON representation of the provenance, used in generating the
build signature in the corresponding build note. After verifying the
signature, provenance_bytes
can be unmarshalled and compared to the
provenance to confirm that it is unchanged. A base64-encoded string
representation of the provenance bytes is used for the signature in order
to interoperate with openssl which expects this format for signature
verification.
The serialized form is captured both to avoid ambiguity in how the
provenance is marshalled to json as well to prevent incompatibilities with
future changes.
string provenance_bytes = 2;
Returns
Type Description ByteString The bytes for provenanceBytes.
getProvenanceOrBuilder()
public BuildProvenanceOrBuilder getProvenanceOrBuilder ()
Required. The actual provenance for the build.
.grafeas.v1.BuildProvenance provenance = 1;
Returns
getSerializedSize()
public int getSerializedSize ()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
hasProvenance()
public boolean hasProvenance ()
Required. The actual provenance for the build.
.grafeas.v1.BuildProvenance provenance = 1;
Returns
Type Description boolean Whether the provenance field is set.
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilder()
public static BuildOccurrence . Builder newBuilder ()
Returns
newBuilder(BuildOccurrence prototype)
public static BuildOccurrence . Builder newBuilder ( BuildOccurrence prototype )
Parameter
Returns
newBuilderForType()
public BuildOccurrence . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected BuildOccurrence . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
public static BuildOccurrence parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static BuildOccurrence parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static BuildOccurrence parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BuildOccurrence parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static BuildOccurrence parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BuildOccurrence parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static BuildOccurrence parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static BuildOccurrence parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static BuildOccurrence parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static BuildOccurrence parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static BuildOccurrence parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BuildOccurrence parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<BuildOccurrence> parser ()
Returns
toBuilder()
public BuildOccurrence . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-14 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-14 UTC."],[],[]]