Class BuildOccurrence.Builder (2.44.0)

  public 
  
 static 
  
 final 
  
 class 
 BuildOccurrence 
 . 
 Builder 
  
 extends 
  
 GeneratedMessageV3 
 . 
 Builder<BuildOccurrence 
 . 
 Builder 
>  
 implements 
  
 BuildOccurrenceOrBuilder 
 

Details of a build occurrence.

Protobuf type grafeas.v1.BuildOccurrence

Static Methods

getDescriptor()

  public 
  
 static 
  
 final 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptor 
 () 
 
Returns
Type
Description

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 addRepeatedField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 , 
  
 Object 
  
 value 
 ) 
 
Parameters
Name
Description
value
Returns
Type
Description
Overrides

build()

  public 
  
 BuildOccurrence 
  
 build 
 () 
 
Returns
Type
Description

buildPartial()

  public 
  
 BuildOccurrence 
  
 buildPartial 
 () 
 
Returns
Type
Description

clear()

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 clear 
 () 
 
Returns
Type
Description
Overrides

clearField(Descriptors.FieldDescriptor field)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 clearField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

clearIntotoProvenance()

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 clearIntotoProvenance 
 () 
 

Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.

.grafeas.v1.InTotoProvenance intoto_provenance = 3;

Returns
Type
Description

clearIntotoStatement()

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 clearIntotoStatement 
 () 
 

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

clearOneof(Descriptors.OneofDescriptor oneof)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 clearOneof 
 ( 
 Descriptors 
 . 
 OneofDescriptor 
  
 oneof 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

clearProvenance()

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 clearProvenance 
 () 
 

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Returns
Type
Description

clearProvenanceBytes()

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 clearProvenanceBytes 
 () 
 

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

This builder for chaining.

clone()

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 clone 
 () 
 
Returns
Type
Description
Overrides

getDefaultInstanceForType()

  public 
  
 BuildOccurrence 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description

getDescriptorForType()

  public 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptorForType 
 () 
 
Returns
Type
Description
Overrides

getIntotoProvenance()

  public 
  
 InTotoProvenance 
  
 getIntotoProvenance 
 () 
 

Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.

.grafeas.v1.InTotoProvenance intoto_provenance = 3;

Returns
Type
Description

The intotoProvenance.

getIntotoProvenanceBuilder()

  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 getIntotoProvenanceBuilder 
 () 
 

Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.

.grafeas.v1.InTotoProvenance intoto_provenance = 3;

Returns
Type
Description

getIntotoProvenanceOrBuilder()

  public 
  
 InTotoProvenanceOrBuilder 
  
 getIntotoProvenanceOrBuilder 
 () 
 

Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.

.grafeas.v1.InTotoProvenance intoto_provenance = 3;

Returns
Type
Description

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;

Returns
Type
Description

The intotoStatement.

getIntotoStatementBuilder()

  public 
  
 InTotoStatement 
 . 
 Builder 
  
 getIntotoStatementBuilder 
 () 
 

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

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;

Returns
Type
Description

getProvenance()

  public 
  
 BuildProvenance 
  
 getProvenance 
 () 
 

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Returns
Type
Description

The provenance.

getProvenanceBuilder()

  public 
  
 BuildProvenance 
 . 
 Builder 
  
 getProvenanceBuilder 
 () 
 

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Returns
Type
Description

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

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

The bytes for provenanceBytes.

getProvenanceOrBuilder()

  public 
  
 BuildProvenanceOrBuilder 
  
 getProvenanceOrBuilder 
 () 
 

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Returns
Type
Description

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

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

Whether the intotoStatement field is set.

hasProvenance()

  public 
  
 boolean 
  
 hasProvenance 
 () 
 

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Returns
Type
Description

Whether the provenance field is set.

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 mergeFrom 
 ( 
 CodedInputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
extensionRegistry
Returns
Type
Description
Overrides
Exceptions
Type
Description

mergeFrom(Message other)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 mergeFrom 
 ( 
 Message 
  
 other 
 ) 
 
Parameter
Name
Description
other
Returns
Type
Description
Overrides

mergeFrom(BuildOccurrence other)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 mergeFrom 
 ( 
 BuildOccurrence 
  
 other 
 ) 
 
Parameter
Name
Description
Returns
Type
Description

mergeIntotoProvenance(InTotoProvenance value)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 mergeIntotoProvenance 
 ( 
 InTotoProvenance 
  
 value 
 ) 
 

Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.

.grafeas.v1.InTotoProvenance intoto_provenance = 3;

Parameter
Name
Description
Returns
Type
Description

mergeIntotoStatement(InTotoStatement value)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 mergeIntotoStatement 
 ( 
 InTotoStatement 
  
 value 
 ) 
 

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;

Parameter
Name
Description
Returns
Type
Description

mergeProvenance(BuildProvenance value)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 mergeProvenance 
 ( 
 BuildProvenance 
  
 value 
 ) 
 

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Parameter
Name
Description
Returns
Type
Description

mergeUnknownFields(UnknownFieldSet unknownFields)

  public 
  
 final 
  
 BuildOccurrence 
 . 
 Builder 
  
 mergeUnknownFields 
 ( 
 UnknownFieldSet 
  
 unknownFields 
 ) 
 
Parameter
Name
Description
unknownFields
Returns
Type
Description
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 setField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 , 
  
 Object 
  
 value 
 ) 
 
Parameters
Name
Description
value
Returns
Type
Description
Overrides

setIntotoProvenance(InTotoProvenance value)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 setIntotoProvenance 
 ( 
 InTotoProvenance 
  
 value 
 ) 
 

Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.

.grafeas.v1.InTotoProvenance intoto_provenance = 3;

Parameter
Name
Description
Returns
Type
Description

setIntotoProvenance(InTotoProvenance.Builder builderForValue)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 setIntotoProvenance 
 ( 
 InTotoProvenance 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.

.grafeas.v1.InTotoProvenance intoto_provenance = 3;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setIntotoStatement(InTotoStatement value)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 setIntotoStatement 
 ( 
 InTotoStatement 
  
 value 
 ) 
 

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;

Parameter
Name
Description
Returns
Type
Description

setIntotoStatement(InTotoStatement.Builder builderForValue)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 setIntotoStatement 
 ( 
 InTotoStatement 
 . 
 Builder 
  
 builderForValue 
 ) 
 

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;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setProvenance(BuildProvenance value)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 setProvenance 
 ( 
 BuildProvenance 
  
 value 
 ) 
 

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Parameter
Name
Description
Returns
Type
Description

setProvenance(BuildProvenance.Builder builderForValue)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 setProvenance 
 ( 
 BuildProvenance 
 . 
 Builder 
  
 builderForValue 
 ) 
 

The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setProvenanceBytes(String value)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 setProvenanceBytes 
 ( 
 String 
  
 value 
 ) 
 

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;

Parameter
Name
Description
value
String

The provenanceBytes to set.

Returns
Type
Description

This builder for chaining.

setProvenanceBytesBytes(ByteString value)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 setProvenanceBytesBytes 
 ( 
 ByteString 
  
 value 
 ) 
 

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;

Parameter
Name
Description
value
ByteString

The bytes for provenanceBytes to set.

Returns
Type
Description

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 setRepeatedField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 , 
  
 int 
  
 index 
 , 
  
 Object 
  
 value 
 ) 
 
Parameters
Name
Description
index
int
value
Returns
Type
Description
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

  public 
  
 final 
  
 BuildOccurrence 
 . 
 Builder 
  
 setUnknownFields 
 ( 
 UnknownFieldSet 
  
 unknownFields 
 ) 
 
Parameter
Name
Description
unknownFields
Returns
Type
Description
Overrides
Create a Mobile Website
View Site in Mobile | Classic
Share by: