Class SbomReferenceIntotoPredicate.Builder (2.52.0)

public static final class SbomReferenceIntotoPredicate.Builder extends GeneratedMessageV3.Builder<SbomReferenceIntotoPredicate.Builder> implements SbomReferenceIntotoPredicateOrBuilder

A predicate which describes the SBOM being referenced.

Protobuf type grafeas.v1.SbomReferenceIntotoPredicate

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SbomReferenceIntotoPredicate build()
Returns
Type Description
SbomReferenceIntotoPredicate

buildPartial()

public SbomReferenceIntotoPredicate buildPartial()
Returns
Type Description
SbomReferenceIntotoPredicate

clear()

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

clearDigest()

public SbomReferenceIntotoPredicate.Builder clearDigest()
Returns
Type Description
SbomReferenceIntotoPredicate.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLocation()

public SbomReferenceIntotoPredicate.Builder clearLocation()

The location of the SBOM.

string location = 2;

Returns
Type Description
SbomReferenceIntotoPredicate.Builder

This builder for chaining.

clearMimeType()

public SbomReferenceIntotoPredicate.Builder clearMimeType()

The mime type of the SBOM.

string mime_type = 3;

Returns
Type Description
SbomReferenceIntotoPredicate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReferrerId()

public SbomReferenceIntotoPredicate.Builder clearReferrerId()

The person or system referring this predicate to the consumer.

string referrer_id = 1;

Returns
Type Description
SbomReferenceIntotoPredicate.Builder

This builder for chaining.

clone()

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

containsDigest(String key)

public boolean containsDigest(String key)

A map of algorithm to digest of the contents of the SBOM.

map<string, string> digest = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public SbomReferenceIntotoPredicate getDefaultInstanceForType()
Returns
Type Description
SbomReferenceIntotoPredicate

getDescriptorForType()

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

getDigest() (deprecated)

public Map<String,String> getDigest()

Use #getDigestMap() instead.

Returns
Type Description
Map<String,String>

getDigestCount()

public int getDigestCount()

A map of algorithm to digest of the contents of the SBOM.

map<string, string> digest = 4;

Returns
Type Description
int

getDigestMap()

public Map<String,String> getDigestMap()

A map of algorithm to digest of the contents of the SBOM.

map<string, string> digest = 4;

Returns
Type Description
Map<String,String>

getDigestOrDefault(String key, String defaultValue)

public String getDigestOrDefault(String key, String defaultValue)

A map of algorithm to digest of the contents of the SBOM.

map<string, string> digest = 4;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getDigestOrThrow(String key)

public String getDigestOrThrow(String key)

A map of algorithm to digest of the contents of the SBOM.

map<string, string> digest = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getLocation()

public String getLocation()

The location of the SBOM.

string location = 2;

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

The location of the SBOM.

string location = 2;

Returns
Type Description
ByteString

The bytes for location.

getMimeType()

public String getMimeType()

The mime type of the SBOM.

string mime_type = 3;

Returns
Type Description
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

The mime type of the SBOM.

string mime_type = 3;

Returns
Type Description
ByteString

The bytes for mimeType.

getMutableDigest() (deprecated)

public Map<String,String> getMutableDigest()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getReferrerId()

public String getReferrerId()

The person or system referring this predicate to the consumer.

string referrer_id = 1;

Returns
Type Description
String

The referrerId.

getReferrerIdBytes()

public ByteString getReferrerIdBytes()

The person or system referring this predicate to the consumer.

string referrer_id = 1;

Returns
Type Description
ByteString

The bytes for referrerId.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(SbomReferenceIntotoPredicate other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllDigest(Map<String,String> values)

public SbomReferenceIntotoPredicate.Builder putAllDigest(Map<String,String> values)

A map of algorithm to digest of the contents of the SBOM.

map<string, string> digest = 4;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
SbomReferenceIntotoPredicate.Builder

putDigest(String key, String value)

public SbomReferenceIntotoPredicate.Builder putDigest(String key, String value)

A map of algorithm to digest of the contents of the SBOM.

map<string, string> digest = 4;

Parameters
Name Description
key String
value String
Returns
Type Description
SbomReferenceIntotoPredicate.Builder

removeDigest(String key)

public SbomReferenceIntotoPredicate.Builder removeDigest(String key)

A map of algorithm to digest of the contents of the SBOM.

map<string, string> digest = 4;

Parameter
Name Description
key String
Returns
Type Description
SbomReferenceIntotoPredicate.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLocation(String value)

public SbomReferenceIntotoPredicate.Builder setLocation(String value)

The location of the SBOM.

string location = 2;

Parameter
Name Description
value String

The location to set.

Returns
Type Description
SbomReferenceIntotoPredicate.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public SbomReferenceIntotoPredicate.Builder setLocationBytes(ByteString value)

The location of the SBOM.

string location = 2;

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
SbomReferenceIntotoPredicate.Builder

This builder for chaining.

setMimeType(String value)

public SbomReferenceIntotoPredicate.Builder setMimeType(String value)

The mime type of the SBOM.

string mime_type = 3;

Parameter
Name Description
value String

The mimeType to set.

Returns
Type Description
SbomReferenceIntotoPredicate.Builder

This builder for chaining.

setMimeTypeBytes(ByteString value)

public SbomReferenceIntotoPredicate.Builder setMimeTypeBytes(ByteString value)

The mime type of the SBOM.

string mime_type = 3;

Parameter
Name Description
value ByteString

The bytes for mimeType to set.

Returns
Type Description
SbomReferenceIntotoPredicate.Builder

This builder for chaining.

setReferrerId(String value)

public SbomReferenceIntotoPredicate.Builder setReferrerId(String value)

The person or system referring this predicate to the consumer.

string referrer_id = 1;

Parameter
Name Description
value String

The referrerId to set.

Returns
Type Description
SbomReferenceIntotoPredicate.Builder

This builder for chaining.

setReferrerIdBytes(ByteString value)

public SbomReferenceIntotoPredicate.Builder setReferrerIdBytes(ByteString value)

The person or system referring this predicate to the consumer.

string referrer_id = 1;

Parameter
Name Description
value ByteString

The bytes for referrerId to set.

Returns
Type Description
SbomReferenceIntotoPredicate.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final SbomReferenceIntotoPredicate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SbomReferenceIntotoPredicate.Builder
Overrides