Class SlsaProvenance.Material.Builder (2.47.0)

public static final class SlsaProvenance.Material.Builder extends GeneratedMessageV3.Builder<SlsaProvenance.Material.Builder> implements SlsaProvenance.MaterialOrBuilder

Protobuf type grafeas.v1.SlsaProvenance.Material

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SlsaProvenance.Material build()
Returns
Type Description
SlsaProvenance.Material

buildPartial()

public SlsaProvenance.Material buildPartial()
Returns
Type Description
SlsaProvenance.Material

clear()

public SlsaProvenance.Material.Builder clear()
Returns
Type Description
SlsaProvenance.Material.Builder
Overrides

clearDigest()

public SlsaProvenance.Material.Builder clearDigest()
Returns
Type Description
SlsaProvenance.Material.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUri()

public SlsaProvenance.Material.Builder clearUri()

string uri = 1;

Returns
Type Description
SlsaProvenance.Material.Builder

This builder for chaining.

clone()

public SlsaProvenance.Material.Builder clone()
Returns
Type Description
SlsaProvenance.Material.Builder
Overrides

containsDigest(String key)

public boolean containsDigest(String key)

map<string, string> digest = 2;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public SlsaProvenance.Material getDefaultInstanceForType()
Returns
Type Description
SlsaProvenance.Material

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()

map<string, string> digest = 2;

Returns
Type Description
int

getDigestMap()

public Map<String,String> getDigestMap()

map<string, string> digest = 2;

Returns
Type Description
Map<String,String>

getDigestOrDefault(String key, String defaultValue)

public String getDigestOrDefault(String key, String defaultValue)

map<string, string> digest = 2;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getDigestOrThrow(String key)

public String getDigestOrThrow(String key)

map<string, string> digest = 2;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableDigest() (deprecated)

public Map<String,String> getMutableDigest()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getUri()

public String getUri()

string uri = 1;

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

string uri = 1;

Returns
Type Description
ByteString

The bytes for uri.

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 SlsaProvenance.Material.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SlsaProvenance.Material.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(SlsaProvenance.Material other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllDigest(Map<String,String> values)

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

map<string, string> digest = 2;

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

putDigest(String key, String value)

public SlsaProvenance.Material.Builder putDigest(String key, String value)

map<string, string> digest = 2;

Parameters
Name Description
key String
value String
Returns
Type Description
SlsaProvenance.Material.Builder

removeDigest(String key)

public SlsaProvenance.Material.Builder removeDigest(String key)

map<string, string> digest = 2;

Parameter
Name Description
key String
Returns
Type Description
SlsaProvenance.Material.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public SlsaProvenance.Material.Builder setUri(String value)

string uri = 1;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
SlsaProvenance.Material.Builder

This builder for chaining.

setUriBytes(ByteString value)

public SlsaProvenance.Material.Builder setUriBytes(ByteString value)

string uri = 1;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
SlsaProvenance.Material.Builder

This builder for chaining.