Class SlsaProvenanceZeroTwo.SlsaConfigSource.Builder (2.53.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SlsaProvenanceZeroTwo.SlsaConfigSource build()
Returns
Type Description
SlsaProvenanceZeroTwo.SlsaConfigSource

buildPartial()

public SlsaProvenanceZeroTwo.SlsaConfigSource buildPartial()
Returns
Type Description
SlsaProvenanceZeroTwo.SlsaConfigSource

clear()

public SlsaProvenanceZeroTwo.SlsaConfigSource.Builder clear()
Returns
Type Description
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder
Overrides

clearDigest()

public SlsaProvenanceZeroTwo.SlsaConfigSource.Builder clearDigest()
Returns
Type Description
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder

clearEntryPoint()

public SlsaProvenanceZeroTwo.SlsaConfigSource.Builder clearEntryPoint()

string entry_point = 3;

Returns
Type Description
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUri()

public SlsaProvenanceZeroTwo.SlsaConfigSource.Builder clearUri()

string uri = 1;

Returns
Type Description
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder

This builder for chaining.

clone()

public SlsaProvenanceZeroTwo.SlsaConfigSource.Builder clone()
Returns
Type Description
SlsaProvenanceZeroTwo.SlsaConfigSource.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 SlsaProvenanceZeroTwo.SlsaConfigSource getDefaultInstanceForType()
Returns
Type Description
SlsaProvenanceZeroTwo.SlsaConfigSource

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

getEntryPoint()

public String getEntryPoint()

string entry_point = 3;

Returns
Type Description
String

The entryPoint.

getEntryPointBytes()

public ByteString getEntryPointBytes()

string entry_point = 3;

Returns
Type Description
ByteString

The bytes for entryPoint.

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

mergeFrom(Message other)

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

mergeFrom(SlsaProvenanceZeroTwo.SlsaConfigSource other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllDigest(Map<String,String> values)

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

map<string, string> digest = 2;

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

putDigest(String key, String value)

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

map<string, string> digest = 2;

Parameters
Name Description
key String
value String
Returns
Type Description
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder

removeDigest(String key)

public SlsaProvenanceZeroTwo.SlsaConfigSource.Builder removeDigest(String key)

map<string, string> digest = 2;

Parameter
Name Description
key String
Returns
Type Description
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder

setEntryPoint(String value)

public SlsaProvenanceZeroTwo.SlsaConfigSource.Builder setEntryPoint(String value)

string entry_point = 3;

Parameter
Name Description
value String

The entryPoint to set.

Returns
Type Description
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder

This builder for chaining.

setEntryPointBytes(ByteString value)

public SlsaProvenanceZeroTwo.SlsaConfigSource.Builder setEntryPointBytes(ByteString value)

string entry_point = 3;

Parameter
Name Description
value ByteString

The bytes for entryPoint to set.

Returns
Type Description
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SlsaProvenanceZeroTwo.SlsaConfigSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public SlsaProvenanceZeroTwo.SlsaConfigSource.Builder setUri(String value)

string uri = 1;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder

This builder for chaining.

setUriBytes(ByteString value)

public SlsaProvenanceZeroTwo.SlsaConfigSource.Builder setUriBytes(ByteString value)

string uri = 1;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
SlsaProvenanceZeroTwo.SlsaConfigSource.Builder

This builder for chaining.