Class SlsaProvenanceZeroTwo.SlsaConfigSource.Builder (2.15.0)

public static final class SlsaProvenanceZeroTwo.SlsaConfigSource.Builder extends GeneratedMessageV3.Builder<SlsaProvenanceZeroTwo.SlsaConfigSource.Builder> implements SlsaProvenanceZeroTwo.SlsaConfigSourceOrBuilder

Describes where the config file that kicked off the build came from. This is effectively a pointer to the source where buildConfig came from.

Protobuf type grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearDigest()

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

clearEntryPoint()

public SlsaProvenanceZeroTwo.SlsaConfigSource.Builder clearEntryPoint()

string entry_point = 3;

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUri()

public SlsaProvenanceZeroTwo.SlsaConfigSource.Builder clearUri()

string uri = 1;

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder

This builder for chaining.

clone()

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

containsDigest(String key)

public boolean containsDigest(String key)

map<string, string> digest = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

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

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

getEntryPoint()

public String getEntryPoint()

string entry_point = 3;

Returns
TypeDescription
String

The entryPoint.

getEntryPointBytes()

public ByteString getEntryPointBytes()

string entry_point = 3;

Returns
TypeDescription
ByteString

The bytes for entryPoint.

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 SlsaProvenanceZeroTwo.SlsaConfigSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeFrom(SlsaProvenanceZeroTwo.SlsaConfigSource other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllDigest(Map<String,String> values)

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

map<string, string> digest = 2;

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

putDigest(String key, String value)

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

map<string, string> digest = 2;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder

removeDigest(String key)

public SlsaProvenanceZeroTwo.SlsaConfigSource.Builder removeDigest(String key)

map<string, string> digest = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder

setEntryPoint(String value)

public SlsaProvenanceZeroTwo.SlsaConfigSource.Builder setEntryPoint(String value)

string entry_point = 3;

Parameter
NameDescription
valueString

The entryPoint to set.

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder

This builder for chaining.

setEntryPointBytes(ByteString value)

public SlsaProvenanceZeroTwo.SlsaConfigSource.Builder setEntryPointBytes(ByteString value)

string entry_point = 3;

Parameter
NameDescription
valueByteString

The bytes for entryPoint to set.

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public SlsaProvenanceZeroTwo.SlsaConfigSource.Builder setUri(String value)

string uri = 1;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder

This builder for chaining.

setUriBytes(ByteString value)

public SlsaProvenanceZeroTwo.SlsaConfigSource.Builder setUriBytes(ByteString value)

string uri = 1;

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder

This builder for chaining.