public final class BuildOccurrence extends GeneratedMessageV3 implements BuildOccurrenceOrBuilder
Details of a build occurrence.
Protobuf type grafeas.v1.BuildOccurrence
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
INTOTO_PROVENANCE_FIELD_NUMBER
public static final int INTOTO_PROVENANCE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
INTOTO_STATEMENT_FIELD_NUMBER
public static final int INTOTO_STATEMENT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PROVENANCE_BYTES_FIELD_NUMBER
public static final int PROVENANCE_BYTES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PROVENANCE_FIELD_NUMBER
public static final int PROVENANCE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static BuildOccurrence getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static BuildOccurrence.Builder newBuilder()
newBuilder(BuildOccurrence prototype)
public static BuildOccurrence.Builder newBuilder(BuildOccurrence prototype)
public static BuildOccurrence parseDelimitedFrom(InputStream input)
public static BuildOccurrence parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static BuildOccurrence parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BuildOccurrence parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static BuildOccurrence parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BuildOccurrence parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BuildOccurrence parseFrom(CodedInputStream input)
public static BuildOccurrence parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static BuildOccurrence parseFrom(InputStream input)
public static BuildOccurrence parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static BuildOccurrence parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BuildOccurrence parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<BuildOccurrence> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public BuildOccurrence getDefaultInstanceForType()
getIntotoProvenance()
public InTotoProvenance getIntotoProvenance()
Deprecated. See InTotoStatement for the replacement.
In-toto Provenance representation as defined in spec.
.grafeas.v1.InTotoProvenance intoto_provenance = 3;
getIntotoProvenanceOrBuilder()
public InTotoProvenanceOrBuilder getIntotoProvenanceOrBuilder()
Deprecated. See InTotoStatement for the replacement.
In-toto Provenance representation as defined in spec.
.grafeas.v1.InTotoProvenance intoto_provenance = 3;
getIntotoStatement()
public InTotoStatement getIntotoStatement()
In-toto Statement representation as defined in spec.
The intoto_statement can contain any type of provenance. The serialized
payload of the statement can be stored and signed in the Occurrence's
envelope.
.grafeas.v1.InTotoStatement intoto_statement = 4;
getIntotoStatementOrBuilder()
public InTotoStatementOrBuilder getIntotoStatementOrBuilder()
In-toto Statement representation as defined in spec.
The intoto_statement can contain any type of provenance. The serialized
payload of the statement can be stored and signed in the Occurrence's
envelope.
.grafeas.v1.InTotoStatement intoto_statement = 4;
getParserForType()
public Parser<BuildOccurrence> getParserForType()
Overrides
getProvenance()
public BuildProvenance getProvenance()
The actual provenance for the build.
.grafeas.v1.BuildProvenance provenance = 1;
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()
The actual provenance for the build.
.grafeas.v1.BuildProvenance provenance = 1;
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
hasIntotoProvenance()
public boolean hasIntotoProvenance()
Deprecated. See InTotoStatement for the replacement.
In-toto Provenance representation as defined in spec.
.grafeas.v1.InTotoProvenance intoto_provenance = 3;
Returns |
---|
Type | Description |
boolean | Whether the intotoProvenance field is set.
|
hasIntotoStatement()
public boolean hasIntotoStatement()
In-toto Statement representation as defined in spec.
The intoto_statement can contain any type of provenance. The serialized
payload of the statement can be stored and signed in the Occurrence's
envelope.
.grafeas.v1.InTotoStatement intoto_statement = 4;
Returns |
---|
Type | Description |
boolean | Whether the intotoStatement field is set.
|
hasProvenance()
public boolean hasProvenance()
The actual provenance for the build.
.grafeas.v1.BuildProvenance provenance = 1;
Returns |
---|
Type | Description |
boolean | Whether the provenance field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public BuildOccurrence.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected BuildOccurrence.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public BuildOccurrence.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides