Class InTotoSlsaProvenanceV1.Builder (2.49.0)

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

Protobuf type grafeas.v1.InTotoSlsaProvenanceV1

Static Methods

getDescriptor()

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

Methods

addAllSubject(Iterable<? extends Subject> values)

public InTotoSlsaProvenanceV1.Builder addAllSubject(Iterable<? extends Subject> values)

repeated .grafeas.v1.Subject subject = 2;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSubject(int index, Subject value)

public InTotoSlsaProvenanceV1.Builder addSubject(int index, Subject value)

repeated .grafeas.v1.Subject subject = 2;

Parameters
Name Description
index int
value Subject
Returns
Type Description
InTotoSlsaProvenanceV1.Builder

addSubject(int index, Subject.Builder builderForValue)

public InTotoSlsaProvenanceV1.Builder addSubject(int index, Subject.Builder builderForValue)

repeated .grafeas.v1.Subject subject = 2;

Parameters
Name Description
index int
builderForValue Subject.Builder
Returns
Type Description
InTotoSlsaProvenanceV1.Builder

addSubject(Subject value)

public InTotoSlsaProvenanceV1.Builder addSubject(Subject value)

repeated .grafeas.v1.Subject subject = 2;

Parameter
Name Description
value Subject
Returns
Type Description
InTotoSlsaProvenanceV1.Builder

addSubject(Subject.Builder builderForValue)

public InTotoSlsaProvenanceV1.Builder addSubject(Subject.Builder builderForValue)

repeated .grafeas.v1.Subject subject = 2;

Parameter
Name Description
builderForValue Subject.Builder
Returns
Type Description
InTotoSlsaProvenanceV1.Builder

addSubjectBuilder()

public Subject.Builder addSubjectBuilder()

repeated .grafeas.v1.Subject subject = 2;

Returns
Type Description
Subject.Builder

addSubjectBuilder(int index)

public Subject.Builder addSubjectBuilder(int index)

repeated .grafeas.v1.Subject subject = 2;

Parameter
Name Description
index int
Returns
Type Description
Subject.Builder

build()

public InTotoSlsaProvenanceV1 build()
Returns
Type Description
InTotoSlsaProvenanceV1

buildPartial()

public InTotoSlsaProvenanceV1 buildPartial()
Returns
Type Description
InTotoSlsaProvenanceV1

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPredicate()

public InTotoSlsaProvenanceV1.Builder clearPredicate()

.grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1 predicate = 4;

Returns
Type Description
InTotoSlsaProvenanceV1.Builder

clearPredicateType()

public InTotoSlsaProvenanceV1.Builder clearPredicateType()

string predicate_type = 3;

Returns
Type Description
InTotoSlsaProvenanceV1.Builder

This builder for chaining.

clearSubject()

public InTotoSlsaProvenanceV1.Builder clearSubject()

repeated .grafeas.v1.Subject subject = 2;

Returns
Type Description
InTotoSlsaProvenanceV1.Builder

clearType()

public InTotoSlsaProvenanceV1.Builder clearType()

InToto spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement

string type = 1 [json_name = "_type"];

Returns
Type Description
InTotoSlsaProvenanceV1.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public InTotoSlsaProvenanceV1 getDefaultInstanceForType()
Returns
Type Description
InTotoSlsaProvenanceV1

getDescriptorForType()

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

getPredicate()

public InTotoSlsaProvenanceV1.SlsaProvenanceV1 getPredicate()

.grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1 predicate = 4;

Returns
Type Description
InTotoSlsaProvenanceV1.SlsaProvenanceV1

The predicate.

getPredicateBuilder()

public InTotoSlsaProvenanceV1.SlsaProvenanceV1.Builder getPredicateBuilder()

.grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1 predicate = 4;

Returns
Type Description
InTotoSlsaProvenanceV1.SlsaProvenanceV1.Builder

getPredicateOrBuilder()

public InTotoSlsaProvenanceV1.SlsaProvenanceV1OrBuilder getPredicateOrBuilder()

.grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1 predicate = 4;

Returns
Type Description
InTotoSlsaProvenanceV1.SlsaProvenanceV1OrBuilder

getPredicateType()

public String getPredicateType()

string predicate_type = 3;

Returns
Type Description
String

The predicateType.

getPredicateTypeBytes()

public ByteString getPredicateTypeBytes()

string predicate_type = 3;

Returns
Type Description
ByteString

The bytes for predicateType.

getSubject(int index)

public Subject getSubject(int index)

repeated .grafeas.v1.Subject subject = 2;

Parameter
Name Description
index int
Returns
Type Description
Subject

getSubjectBuilder(int index)

public Subject.Builder getSubjectBuilder(int index)

repeated .grafeas.v1.Subject subject = 2;

Parameter
Name Description
index int
Returns
Type Description
Subject.Builder

getSubjectBuilderList()

public List<Subject.Builder> getSubjectBuilderList()

repeated .grafeas.v1.Subject subject = 2;

Returns
Type Description
List<Builder>

getSubjectCount()

public int getSubjectCount()

repeated .grafeas.v1.Subject subject = 2;

Returns
Type Description
int

getSubjectList()

public List<Subject> getSubjectList()

repeated .grafeas.v1.Subject subject = 2;

Returns
Type Description
List<Subject>

getSubjectOrBuilder(int index)

public SubjectOrBuilder getSubjectOrBuilder(int index)

repeated .grafeas.v1.Subject subject = 2;

Parameter
Name Description
index int
Returns
Type Description
SubjectOrBuilder

getSubjectOrBuilderList()

public List<? extends SubjectOrBuilder> getSubjectOrBuilderList()

repeated .grafeas.v1.Subject subject = 2;

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

getType()

public String getType()

InToto spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement

string type = 1 [json_name = "_type"];

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

InToto spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement

string type = 1 [json_name = "_type"];

Returns
Type Description
ByteString

The bytes for type.

hasPredicate()

public boolean hasPredicate()

.grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1 predicate = 4;

Returns
Type Description
boolean

Whether the predicate field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InTotoSlsaProvenanceV1.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InTotoSlsaProvenanceV1.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(InTotoSlsaProvenanceV1 other)

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

mergePredicate(InTotoSlsaProvenanceV1.SlsaProvenanceV1 value)

public InTotoSlsaProvenanceV1.Builder mergePredicate(InTotoSlsaProvenanceV1.SlsaProvenanceV1 value)

.grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1 predicate = 4;

Parameter
Name Description
value InTotoSlsaProvenanceV1.SlsaProvenanceV1
Returns
Type Description
InTotoSlsaProvenanceV1.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSubject(int index)

public InTotoSlsaProvenanceV1.Builder removeSubject(int index)

repeated .grafeas.v1.Subject subject = 2;

Parameter
Name Description
index int
Returns
Type Description
InTotoSlsaProvenanceV1.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPredicate(InTotoSlsaProvenanceV1.SlsaProvenanceV1 value)

public InTotoSlsaProvenanceV1.Builder setPredicate(InTotoSlsaProvenanceV1.SlsaProvenanceV1 value)

.grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1 predicate = 4;

Parameter
Name Description
value InTotoSlsaProvenanceV1.SlsaProvenanceV1
Returns
Type Description
InTotoSlsaProvenanceV1.Builder

setPredicate(InTotoSlsaProvenanceV1.SlsaProvenanceV1.Builder builderForValue)

public InTotoSlsaProvenanceV1.Builder setPredicate(InTotoSlsaProvenanceV1.SlsaProvenanceV1.Builder builderForValue)

.grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1 predicate = 4;

Parameter
Name Description
builderForValue InTotoSlsaProvenanceV1.SlsaProvenanceV1.Builder
Returns
Type Description
InTotoSlsaProvenanceV1.Builder

setPredicateType(String value)

public InTotoSlsaProvenanceV1.Builder setPredicateType(String value)

string predicate_type = 3;

Parameter
Name Description
value String

The predicateType to set.

Returns
Type Description
InTotoSlsaProvenanceV1.Builder

This builder for chaining.

setPredicateTypeBytes(ByteString value)

public InTotoSlsaProvenanceV1.Builder setPredicateTypeBytes(ByteString value)

string predicate_type = 3;

Parameter
Name Description
value ByteString

The bytes for predicateType to set.

Returns
Type Description
InTotoSlsaProvenanceV1.Builder

This builder for chaining.

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

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

setSubject(int index, Subject value)

public InTotoSlsaProvenanceV1.Builder setSubject(int index, Subject value)

repeated .grafeas.v1.Subject subject = 2;

Parameters
Name Description
index int
value Subject
Returns
Type Description
InTotoSlsaProvenanceV1.Builder

setSubject(int index, Subject.Builder builderForValue)

public InTotoSlsaProvenanceV1.Builder setSubject(int index, Subject.Builder builderForValue)

repeated .grafeas.v1.Subject subject = 2;

Parameters
Name Description
index int
builderForValue Subject.Builder
Returns
Type Description
InTotoSlsaProvenanceV1.Builder

setType(String value)

public InTotoSlsaProvenanceV1.Builder setType(String value)

InToto spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement

string type = 1 [json_name = "_type"];

Parameter
Name Description
value String

The type to set.

Returns
Type Description
InTotoSlsaProvenanceV1.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public InTotoSlsaProvenanceV1.Builder setTypeBytes(ByteString value)

InToto spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement

string type = 1 [json_name = "_type"];

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
InTotoSlsaProvenanceV1.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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