public static final class SlsaProvenanceZeroTwo.Builder extends GeneratedMessageV3.Builder<SlsaProvenanceZeroTwo.Builder> implements SlsaProvenanceZeroTwoOrBuilder
See full explanation of fields at slsa.dev/provenance/v0.2.
Protobuf type grafeas.v1.SlsaProvenanceZeroTwo
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllMaterials(Iterable<? extends SlsaProvenanceZeroTwo.SlsaMaterial> values)
public SlsaProvenanceZeroTwo.Builder addAllMaterials(Iterable<? extends SlsaProvenanceZeroTwo.SlsaMaterial> values)
repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;
Parameter
Name | Description |
values | Iterable<? extends io.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial>
|
Returns
addMaterials(int index, SlsaProvenanceZeroTwo.SlsaMaterial value)
public SlsaProvenanceZeroTwo.Builder addMaterials(int index, SlsaProvenanceZeroTwo.SlsaMaterial value)
repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;
Parameters
Returns
addMaterials(int index, SlsaProvenanceZeroTwo.SlsaMaterial.Builder builderForValue)
public SlsaProvenanceZeroTwo.Builder addMaterials(int index, SlsaProvenanceZeroTwo.SlsaMaterial.Builder builderForValue)
repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;
Parameters
Returns
addMaterials(SlsaProvenanceZeroTwo.SlsaMaterial value)
public SlsaProvenanceZeroTwo.Builder addMaterials(SlsaProvenanceZeroTwo.SlsaMaterial value)
repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;
Parameter
Returns
addMaterials(SlsaProvenanceZeroTwo.SlsaMaterial.Builder builderForValue)
public SlsaProvenanceZeroTwo.Builder addMaterials(SlsaProvenanceZeroTwo.SlsaMaterial.Builder builderForValue)
repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;
Parameter
Returns
addMaterialsBuilder()
public SlsaProvenanceZeroTwo.SlsaMaterial.Builder addMaterialsBuilder()
repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;
Returns
addMaterialsBuilder(int index)
public SlsaProvenanceZeroTwo.SlsaMaterial.Builder addMaterialsBuilder(int index)
repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SlsaProvenanceZeroTwo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SlsaProvenanceZeroTwo build()
Returns
buildPartial()
public SlsaProvenanceZeroTwo buildPartial()
Returns
clear()
public SlsaProvenanceZeroTwo.Builder clear()
Returns
Overrides
clearBuildConfig()
public SlsaProvenanceZeroTwo.Builder clearBuildConfig()
.google.protobuf.Struct build_config = 4;
Returns
clearBuildType()
public SlsaProvenanceZeroTwo.Builder clearBuildType()
Returns
clearBuilder()
public SlsaProvenanceZeroTwo.Builder clearBuilder()
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public SlsaProvenanceZeroTwo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearInvocation()
public SlsaProvenanceZeroTwo.Builder clearInvocation()
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;
Returns
clearMaterials()
public SlsaProvenanceZeroTwo.Builder clearMaterials()
repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;
Returns
public SlsaProvenanceZeroTwo.Builder clearMetadata()
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public SlsaProvenanceZeroTwo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public SlsaProvenanceZeroTwo.Builder clone()
Returns
Overrides
getBuildConfig()
public Struct getBuildConfig()
.google.protobuf.Struct build_config = 4;
Returns
Type | Description |
Struct | The buildConfig.
|
getBuildConfigBuilder()
public Struct.Builder getBuildConfigBuilder()
.google.protobuf.Struct build_config = 4;
Returns
getBuildConfigOrBuilder()
public StructOrBuilder getBuildConfigOrBuilder()
.google.protobuf.Struct build_config = 4;
Returns
getBuildType()
public String getBuildType()
Returns
Type | Description |
String | The buildType.
|
getBuildTypeBytes()
public ByteString getBuildTypeBytes()
Returns
getBuilder()
public SlsaProvenanceZeroTwo.SlsaBuilder getBuilder()
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;
Returns
getBuilderBuilder()
public SlsaProvenanceZeroTwo.SlsaBuilder.Builder getBuilderBuilder()
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;
Returns
getBuilderOrBuilder()
public SlsaProvenanceZeroTwo.SlsaBuilderOrBuilder getBuilderOrBuilder()
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;
Returns
getDefaultInstanceForType()
public SlsaProvenanceZeroTwo getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getInvocation()
public SlsaProvenanceZeroTwo.SlsaInvocation getInvocation()
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;
Returns
getInvocationBuilder()
public SlsaProvenanceZeroTwo.SlsaInvocation.Builder getInvocationBuilder()
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;
Returns
getInvocationOrBuilder()
public SlsaProvenanceZeroTwo.SlsaInvocationOrBuilder getInvocationOrBuilder()
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;
Returns
getMaterials(int index)
public SlsaProvenanceZeroTwo.SlsaMaterial getMaterials(int index)
repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;
Parameter
Returns
getMaterialsBuilder(int index)
public SlsaProvenanceZeroTwo.SlsaMaterial.Builder getMaterialsBuilder(int index)
repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;
Parameter
Returns
getMaterialsBuilderList()
public List<SlsaProvenanceZeroTwo.SlsaMaterial.Builder> getMaterialsBuilderList()
repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;
Returns
getMaterialsCount()
public int getMaterialsCount()
repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;
Returns
getMaterialsList()
public List<SlsaProvenanceZeroTwo.SlsaMaterial> getMaterialsList()
repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;
Returns
getMaterialsOrBuilder(int index)
public SlsaProvenanceZeroTwo.SlsaMaterialOrBuilder getMaterialsOrBuilder(int index)
repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;
Parameter
Returns
getMaterialsOrBuilderList()
public List<? extends SlsaProvenanceZeroTwo.SlsaMaterialOrBuilder> getMaterialsOrBuilderList()
repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;
Returns
Type | Description |
List<? extends io.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterialOrBuilder> | |
public SlsaProvenanceZeroTwo.SlsaMetadata getMetadata()
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;
Returns
public SlsaProvenanceZeroTwo.SlsaMetadata.Builder getMetadataBuilder()
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;
Returns
public SlsaProvenanceZeroTwo.SlsaMetadataOrBuilder getMetadataOrBuilder()
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;
Returns
hasBuildConfig()
public boolean hasBuildConfig()
.google.protobuf.Struct build_config = 4;
Returns
Type | Description |
boolean | Whether the buildConfig field is set.
|
hasBuilder()
public boolean hasBuilder()
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;
Returns
Type | Description |
boolean | Whether the builder field is set.
|
hasInvocation()
public boolean hasInvocation()
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;
Returns
Type | Description |
boolean | Whether the invocation field is set.
|
public boolean hasMetadata()
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;
Returns
Type | Description |
boolean | Whether the metadata field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeBuildConfig(Struct value)
public SlsaProvenanceZeroTwo.Builder mergeBuildConfig(Struct value)
.google.protobuf.Struct build_config = 4;
Parameter
Returns
mergeBuilder(SlsaProvenanceZeroTwo.SlsaBuilder value)
public SlsaProvenanceZeroTwo.Builder mergeBuilder(SlsaProvenanceZeroTwo.SlsaBuilder value)
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;
Parameter
Returns
public SlsaProvenanceZeroTwo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SlsaProvenanceZeroTwo.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(SlsaProvenanceZeroTwo other)
public SlsaProvenanceZeroTwo.Builder mergeFrom(SlsaProvenanceZeroTwo other)
Parameter
Returns
mergeInvocation(SlsaProvenanceZeroTwo.SlsaInvocation value)
public SlsaProvenanceZeroTwo.Builder mergeInvocation(SlsaProvenanceZeroTwo.SlsaInvocation value)
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;
Parameter
Returns
public SlsaProvenanceZeroTwo.Builder mergeMetadata(SlsaProvenanceZeroTwo.SlsaMetadata value)
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SlsaProvenanceZeroTwo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeMaterials(int index)
public SlsaProvenanceZeroTwo.Builder removeMaterials(int index)
repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;
Parameter
Returns
setBuildConfig(Struct value)
public SlsaProvenanceZeroTwo.Builder setBuildConfig(Struct value)
.google.protobuf.Struct build_config = 4;
Parameter
Returns
setBuildConfig(Struct.Builder builderForValue)
public SlsaProvenanceZeroTwo.Builder setBuildConfig(Struct.Builder builderForValue)
.google.protobuf.Struct build_config = 4;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
setBuildType(String value)
public SlsaProvenanceZeroTwo.Builder setBuildType(String value)
Parameter
Name | Description |
value | String
The buildType to set.
|
Returns
setBuildTypeBytes(ByteString value)
public SlsaProvenanceZeroTwo.Builder setBuildTypeBytes(ByteString value)
Parameter
Name | Description |
value | ByteString
The bytes for buildType to set.
|
Returns
setBuilder(SlsaProvenanceZeroTwo.SlsaBuilder value)
public SlsaProvenanceZeroTwo.Builder setBuilder(SlsaProvenanceZeroTwo.SlsaBuilder value)
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;
Parameter
Returns
setBuilder(SlsaProvenanceZeroTwo.SlsaBuilder.Builder builderForValue)
public SlsaProvenanceZeroTwo.Builder setBuilder(SlsaProvenanceZeroTwo.SlsaBuilder.Builder builderForValue)
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SlsaProvenanceZeroTwo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setInvocation(SlsaProvenanceZeroTwo.SlsaInvocation value)
public SlsaProvenanceZeroTwo.Builder setInvocation(SlsaProvenanceZeroTwo.SlsaInvocation value)
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;
Parameter
Returns
setInvocation(SlsaProvenanceZeroTwo.SlsaInvocation.Builder builderForValue)
public SlsaProvenanceZeroTwo.Builder setInvocation(SlsaProvenanceZeroTwo.SlsaInvocation.Builder builderForValue)
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;
Parameter
Returns
setMaterials(int index, SlsaProvenanceZeroTwo.SlsaMaterial value)
public SlsaProvenanceZeroTwo.Builder setMaterials(int index, SlsaProvenanceZeroTwo.SlsaMaterial value)
repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;
Parameters
Returns
setMaterials(int index, SlsaProvenanceZeroTwo.SlsaMaterial.Builder builderForValue)
public SlsaProvenanceZeroTwo.Builder setMaterials(int index, SlsaProvenanceZeroTwo.SlsaMaterial.Builder builderForValue)
repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;
Parameters
Returns
public SlsaProvenanceZeroTwo.Builder setMetadata(SlsaProvenanceZeroTwo.SlsaMetadata value)
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;
Parameter
Returns
public SlsaProvenanceZeroTwo.Builder setMetadata(SlsaProvenanceZeroTwo.SlsaMetadata.Builder builderForValue)
.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SlsaProvenanceZeroTwo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SlsaProvenanceZeroTwo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides