Class Details.Builder (2.33.0)

public static final class Details.Builder extends GeneratedMessageV3.Builder<Details.Builder> implements DetailsOrBuilder

Details of a build occurrence.

Protobuf type grafeas.v1beta1.build.Details

Implements

DetailsOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Details.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Details.Builder
Overrides

build()

public Details build()
Returns
TypeDescription
Details

buildPartial()

public Details buildPartial()
Returns
TypeDescription
Details

clear()

public Details.Builder clear()
Returns
TypeDescription
Details.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Details.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Details.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Details.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Details.Builder
Overrides

clearProvenance()

public Details.Builder clearProvenance()

Required. The actual provenance for the build.

.grafeas.v1beta1.provenance.BuildProvenance provenance = 1;

Returns
TypeDescription
Details.Builder

clearProvenanceBytes()

public Details.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
TypeDescription
Details.Builder

This builder for chaining.

clone()

public Details.Builder clone()
Returns
TypeDescription
Details.Builder
Overrides

getDefaultInstanceForType()

public Details getDefaultInstanceForType()
Returns
TypeDescription
Details

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getProvenance()

public BuildProvenance getProvenance()

Required. The actual provenance for the build.

.grafeas.v1beta1.provenance.BuildProvenance provenance = 1;

Returns
TypeDescription
BuildProvenance

The provenance.

getProvenanceBuilder()

public BuildProvenance.Builder getProvenanceBuilder()

Required. The actual provenance for the build.

.grafeas.v1beta1.provenance.BuildProvenance provenance = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for provenanceBytes.

getProvenanceOrBuilder()

public BuildProvenanceOrBuilder getProvenanceOrBuilder()

Required. The actual provenance for the build.

.grafeas.v1beta1.provenance.BuildProvenance provenance = 1;

Returns
TypeDescription
BuildProvenanceOrBuilder

hasProvenance()

public boolean hasProvenance()

Required. The actual provenance for the build.

.grafeas.v1beta1.provenance.BuildProvenance provenance = 1;

Returns
TypeDescription
boolean

Whether the provenance field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Details.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Details.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Details.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Details.Builder
Overrides

mergeFrom(Details other)

public Details.Builder mergeFrom(Details other)
Parameter
NameDescription
otherDetails
Returns
TypeDescription
Details.Builder

mergeProvenance(BuildProvenance value)

public Details.Builder mergeProvenance(BuildProvenance value)

Required. The actual provenance for the build.

.grafeas.v1beta1.provenance.BuildProvenance provenance = 1;

Parameter
NameDescription
valueBuildProvenance
Returns
TypeDescription
Details.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Details.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Details.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Details.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Details.Builder
Overrides

setProvenance(BuildProvenance value)

public Details.Builder setProvenance(BuildProvenance value)

Required. The actual provenance for the build.

.grafeas.v1beta1.provenance.BuildProvenance provenance = 1;

Parameter
NameDescription
valueBuildProvenance
Returns
TypeDescription
Details.Builder

setProvenance(BuildProvenance.Builder builderForValue)

public Details.Builder setProvenance(BuildProvenance.Builder builderForValue)

Required. The actual provenance for the build.

.grafeas.v1beta1.provenance.BuildProvenance provenance = 1;

Parameter
NameDescription
builderForValueBuildProvenance.Builder
Returns
TypeDescription
Details.Builder

setProvenanceBytes(String value)

public Details.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
NameDescription
valueString

The provenanceBytes to set.

Returns
TypeDescription
Details.Builder

This builder for chaining.

setProvenanceBytesBytes(ByteString value)

public Details.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
NameDescription
valueByteString

The bytes for provenanceBytes to set.

Returns
TypeDescription
Details.Builder

This builder for chaining.

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

public Details.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Details.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Details.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Details.Builder
Overrides