Class InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder (2.54.0)

public static final class InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder extends GeneratedMessageV3.Builder<InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder> implements InTotoSlsaProvenanceV1.ProvenanceBuilderOrBuilder

Protobuf type grafeas.v1.InTotoSlsaProvenanceV1.ProvenanceBuilder

Static Methods

getDescriptor()

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

Methods

addAllBuilderDependencies(Iterable<? extends InTotoSlsaProvenanceV1.ResourceDescriptor> values)

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder addAllBuilderDependencies(Iterable<? extends InTotoSlsaProvenanceV1.ResourceDescriptor> values)

repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3;

Parameter
Name Description
values Iterable<? extends io.grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor>
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder

addBuilderDependencies(int index, InTotoSlsaProvenanceV1.ResourceDescriptor value)

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder addBuilderDependencies(int index, InTotoSlsaProvenanceV1.ResourceDescriptor value)

repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3;

Parameters
Name Description
index int
value InTotoSlsaProvenanceV1.ResourceDescriptor
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder

addBuilderDependencies(int index, InTotoSlsaProvenanceV1.ResourceDescriptor.Builder builderForValue)

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder addBuilderDependencies(int index, InTotoSlsaProvenanceV1.ResourceDescriptor.Builder builderForValue)

repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3;

Parameters
Name Description
index int
builderForValue InTotoSlsaProvenanceV1.ResourceDescriptor.Builder
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder

addBuilderDependencies(InTotoSlsaProvenanceV1.ResourceDescriptor value)

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder addBuilderDependencies(InTotoSlsaProvenanceV1.ResourceDescriptor value)

repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3;

Parameter
Name Description
value InTotoSlsaProvenanceV1.ResourceDescriptor
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder

addBuilderDependencies(InTotoSlsaProvenanceV1.ResourceDescriptor.Builder builderForValue)

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder addBuilderDependencies(InTotoSlsaProvenanceV1.ResourceDescriptor.Builder builderForValue)

repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3;

Parameter
Name Description
builderForValue InTotoSlsaProvenanceV1.ResourceDescriptor.Builder
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder

addBuilderDependenciesBuilder()

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder addBuilderDependenciesBuilder()

repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3;

Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

addBuilderDependenciesBuilder(int index)

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder addBuilderDependenciesBuilder(int index)

repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3;

Parameter
Name Description
index int
Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InTotoSlsaProvenanceV1.ProvenanceBuilder build()
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder

buildPartial()

public InTotoSlsaProvenanceV1.ProvenanceBuilder buildPartial()
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder

clear()

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder clear()
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder
Overrides

clearBuilderDependencies()

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder clearBuilderDependencies()

repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3;

Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder

clearField(Descriptors.FieldDescriptor field)

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder
Overrides

clearId()

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder clearId()

string id = 1;

Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder
Overrides

clearVersion()

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder clearVersion()
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder

clone()

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder clone()
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder
Overrides

containsVersion(String key)

public boolean containsVersion(String key)

map<string, string> version = 2;

Parameter
Name Description
key String
Returns
Type Description
boolean

getBuilderDependencies(int index)

public InTotoSlsaProvenanceV1.ResourceDescriptor getBuilderDependencies(int index)

repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3;

Parameter
Name Description
index int
Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor

getBuilderDependenciesBuilder(int index)

public InTotoSlsaProvenanceV1.ResourceDescriptor.Builder getBuilderDependenciesBuilder(int index)

repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3;

Parameter
Name Description
index int
Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptor.Builder

getBuilderDependenciesBuilderList()

public List<InTotoSlsaProvenanceV1.ResourceDescriptor.Builder> getBuilderDependenciesBuilderList()

repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3;

Returns
Type Description
List<Builder>

getBuilderDependenciesCount()

public int getBuilderDependenciesCount()

repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3;

Returns
Type Description
int

getBuilderDependenciesList()

public List<InTotoSlsaProvenanceV1.ResourceDescriptor> getBuilderDependenciesList()

repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3;

Returns
Type Description
List<ResourceDescriptor>

getBuilderDependenciesOrBuilder(int index)

public InTotoSlsaProvenanceV1.ResourceDescriptorOrBuilder getBuilderDependenciesOrBuilder(int index)

repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3;

Parameter
Name Description
index int
Returns
Type Description
InTotoSlsaProvenanceV1.ResourceDescriptorOrBuilder

getBuilderDependenciesOrBuilderList()

public List<? extends InTotoSlsaProvenanceV1.ResourceDescriptorOrBuilder> getBuilderDependenciesOrBuilderList()

repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3;

Returns
Type Description
List<? extends io.grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptorOrBuilder>

getDefaultInstanceForType()

public InTotoSlsaProvenanceV1.ProvenanceBuilder getDefaultInstanceForType()
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getId()

public String getId()

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getMutableVersion() (deprecated)

public Map<String,String> getMutableVersion()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getVersion() (deprecated)

public Map<String,String> getVersion()

Use #getVersionMap() instead.

Returns
Type Description
Map<String,String>

getVersionCount()

public int getVersionCount()

map<string, string> version = 2;

Returns
Type Description
int

getVersionMap()

public Map<String,String> getVersionMap()

map<string, string> version = 2;

Returns
Type Description
Map<String,String>

getVersionOrDefault(String key, String defaultValue)

public String getVersionOrDefault(String key, String defaultValue)

map<string, string> version = 2;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getVersionOrThrow(String key)

public String getVersionOrThrow(String key)

map<string, string> version = 2;

Parameter
Name Description
key String
Returns
Type Description
String

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

mergeFrom(Message other)

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder
Overrides

mergeFrom(InTotoSlsaProvenanceV1.ProvenanceBuilder other)

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder mergeFrom(InTotoSlsaProvenanceV1.ProvenanceBuilder other)
Parameter
Name Description
other InTotoSlsaProvenanceV1.ProvenanceBuilder
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder
Overrides

putAllVersion(Map<String,String> values)

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder putAllVersion(Map<String,String> values)

map<string, string> version = 2;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder

putVersion(String key, String value)

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder putVersion(String key, String value)

map<string, string> version = 2;

Parameters
Name Description
key String
value String
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder

removeBuilderDependencies(int index)

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder removeBuilderDependencies(int index)

repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3;

Parameter
Name Description
index int
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder

removeVersion(String key)

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder removeVersion(String key)

map<string, string> version = 2;

Parameter
Name Description
key String
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder

setBuilderDependencies(int index, InTotoSlsaProvenanceV1.ResourceDescriptor value)

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder setBuilderDependencies(int index, InTotoSlsaProvenanceV1.ResourceDescriptor value)

repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3;

Parameters
Name Description
index int
value InTotoSlsaProvenanceV1.ResourceDescriptor
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder

setBuilderDependencies(int index, InTotoSlsaProvenanceV1.ResourceDescriptor.Builder builderForValue)

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder setBuilderDependencies(int index, InTotoSlsaProvenanceV1.ResourceDescriptor.Builder builderForValue)

repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3;

Parameters
Name Description
index int
builderForValue InTotoSlsaProvenanceV1.ResourceDescriptor.Builder
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder setId(String value)

string id = 1;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder

This builder for chaining.

setIdBytes(ByteString value)

public InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder setIdBytes(ByteString value)

string id = 1;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InTotoSlsaProvenanceV1.ProvenanceBuilder.Builder
Overrides