Class SlsaProvenance.Material.Builder (2.14.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SlsaProvenance.Material build()
Returns
TypeDescription
SlsaProvenance.Material

buildPartial()

public SlsaProvenance.Material buildPartial()
Returns
TypeDescription
SlsaProvenance.Material

clear()

public SlsaProvenance.Material.Builder clear()
Returns
TypeDescription
SlsaProvenance.Material.Builder
Overrides

clearDigest()

public SlsaProvenance.Material.Builder clearDigest()
Returns
TypeDescription
SlsaProvenance.Material.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUri()

public SlsaProvenance.Material.Builder clearUri()

string uri = 1;

Returns
TypeDescription
SlsaProvenance.Material.Builder

This builder for chaining.

clone()

public SlsaProvenance.Material.Builder clone()
Returns
TypeDescription
SlsaProvenance.Material.Builder
Overrides

containsDigest(String key)

public boolean containsDigest(String key)

map<string, string> digest = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public SlsaProvenance.Material getDefaultInstanceForType()
Returns
TypeDescription
SlsaProvenance.Material

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDigest()

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

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

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(SlsaProvenance.Material other)

public SlsaProvenance.Material.Builder mergeFrom(SlsaProvenance.Material other)
Parameter
NameDescription
otherSlsaProvenance.Material
Returns
TypeDescription
SlsaProvenance.Material.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllDigest(Map<String,String> values)

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

map<string, string> digest = 2;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
SlsaProvenance.Material.Builder

putDigest(String key, String value)

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

map<string, string> digest = 2;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
SlsaProvenance.Material.Builder

removeDigest(String key)

public SlsaProvenance.Material.Builder removeDigest(String key)

map<string, string> digest = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
SlsaProvenance.Material.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SlsaProvenance.Material.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SlsaProvenance.Material.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public SlsaProvenance.Material.Builder setUri(String value)

string uri = 1;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
SlsaProvenance.Material.Builder

This builder for chaining.

setUriBytes(ByteString value)

public SlsaProvenance.Material.Builder setUriBytes(ByteString value)

string uri = 1;

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
SlsaProvenance.Material.Builder

This builder for chaining.