Class BuildOccurrence.Builder (2.1.3)

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

Details of a build occurrence.

Protobuf type grafeas.v1.BuildOccurrence

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

  public 
  
 BuildOccurrence 
  
 build 
 () 
 
Returns
Type Description
BuildOccurrence

buildPartial()

  public 
  
 BuildOccurrence 
  
 buildPartial 
 () 
 
Returns
Type Description
BuildOccurrence

clear()

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 clear 
 () 
 
Returns
Type Description
BuildOccurrence.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProvenance()

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 clearProvenance 
 () 
 

Required. The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Returns
Type Description
BuildOccurrence.Builder

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
BuildOccurrence.Builder

This builder for chaining.

clone()

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 clone 
 () 
 
Returns
Type Description
BuildOccurrence.Builder
Overrides

getDefaultInstanceForType()

  public 
  
 BuildOccurrence 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type Description
BuildOccurrence

getDescriptor()

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

getDescriptorForType()

  public 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptorForType 
 () 
 
Returns
Type Description
Descriptor
Overrides

getProvenance()

  public 
  
 BuildProvenance 
  
 getProvenance 
 () 
 

Required. The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Returns
Type Description
BuildProvenance

The provenance.

getProvenanceBuilder()

  public 
  
 BuildProvenance 
 . 
 Builder 
  
 getProvenanceBuilder 
 () 
 

Required. The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Returns
Type Description
BuildProvenance.Builder

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
Type Description
BuildProvenanceOrBuilder

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.

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(BuildOccurrence other)

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

mergeProvenance(BuildProvenance value)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 mergeProvenance 
 ( 
 BuildProvenance 
  
 value 
 ) 
 

Required. The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Parameter
Name Description
value BuildProvenance
Returns
Type Description
BuildOccurrence.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setProvenance(BuildProvenance value)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 setProvenance 
 ( 
 BuildProvenance 
  
 value 
 ) 
 

Required. The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Parameter
Name Description
value BuildProvenance
Returns
Type Description
BuildOccurrence.Builder

setProvenance(BuildProvenance.Builder builderForValue)

  public 
  
 BuildOccurrence 
 . 
 Builder 
  
 setProvenance 
 ( 
 BuildProvenance 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Required. The actual provenance for the build.

.grafeas.v1.BuildProvenance provenance = 1;

Parameter
Name Description
builderForValue BuildProvenance.Builder
Returns
Type Description
BuildOccurrence.Builder

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
BuildOccurrence.Builder

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
BuildOccurrence.Builder

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
field FieldDescriptor
index int
value Object
Returns
Type Description
BuildOccurrence.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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