Class SlsaProvenanceZeroTwo.SlsaMaterial.Builder (2.42.0)

public static final class SlsaProvenanceZeroTwo.SlsaMaterial.Builder extends GeneratedMessageV3.Builder<SlsaProvenanceZeroTwo.SlsaMaterial.Builder> implements SlsaProvenanceZeroTwo.SlsaMaterialOrBuilder

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on.

Protobuf type grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SlsaProvenanceZeroTwo.SlsaMaterial build()
Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterial

buildPartial()

public SlsaProvenanceZeroTwo.SlsaMaterial buildPartial()
Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterial

clear()

public SlsaProvenanceZeroTwo.SlsaMaterial.Builder clear()
Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterial.Builder
Overrides

clearDigest()

public SlsaProvenanceZeroTwo.SlsaMaterial.Builder clearDigest()
Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterial.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUri()

public SlsaProvenanceZeroTwo.SlsaMaterial.Builder clearUri()

string uri = 1;

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterial.Builder

This builder for chaining.

clone()

public SlsaProvenanceZeroTwo.SlsaMaterial.Builder clone()
Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterial.Builder
Overrides

containsDigest(String key)

public boolean containsDigest(String key)

map<string, string> digest = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public SlsaProvenanceZeroTwo.SlsaMaterial getDefaultInstanceForType()
Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterial

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDigest() (deprecated)

public Map<String,String> getDigest()

Use #getDigestMap() instead.

Returns
TypeDescription
Map<String,String>

getDigestCount()

public int getDigestCount()

map<string, string> digest = 2;

Returns
TypeDescription
int

getDigestMap()

public Map<String,String> getDigestMap()

map<string, string> digest = 2;

Returns
TypeDescription
Map<String,String>

getDigestOrDefault(String key, String defaultValue)

public String getDigestOrDefault(String key, String defaultValue)

map<string, string> digest = 2;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getDigestOrThrow(String key)

public String getDigestOrThrow(String key)

map<string, string> digest = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableDigest() (deprecated)

public Map<String,String> getMutableDigest()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getUri()

public String getUri()

string uri = 1;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

string uri = 1;

Returns
TypeDescription
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(SlsaProvenanceZeroTwo.SlsaMaterial other)

public SlsaProvenanceZeroTwo.SlsaMaterial.Builder mergeFrom(SlsaProvenanceZeroTwo.SlsaMaterial other)
Parameter
NameDescription
otherSlsaProvenanceZeroTwo.SlsaMaterial
Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterial.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllDigest(Map<String,String> values)

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

map<string, string> digest = 2;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterial.Builder

putDigest(String key, String value)

public SlsaProvenanceZeroTwo.SlsaMaterial.Builder putDigest(String key, String value)

map<string, string> digest = 2;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterial.Builder

removeDigest(String key)

public SlsaProvenanceZeroTwo.SlsaMaterial.Builder removeDigest(String key)

map<string, string> digest = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterial.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public SlsaProvenanceZeroTwo.SlsaMaterial.Builder setUri(String value)

string uri = 1;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterial.Builder

This builder for chaining.

setUriBytes(ByteString value)

public SlsaProvenanceZeroTwo.SlsaMaterial.Builder setUriBytes(ByteString value)

string uri = 1;

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterial.Builder

This builder for chaining.