Package io.grafeas.v1
Class InTotoProvenance.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<InTotoProvenance.Builder>
-
- io.grafeas.v1.InTotoProvenance.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,InTotoProvenanceOrBuilder
,Cloneable
- Enclosing class:
- InTotoProvenance
public static final class InTotoProvenance.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InTotoProvenance.Builder> implements InTotoProvenanceOrBuilder
Protobuf typegrafeas.v1.InTotoProvenance
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InTotoProvenance.Builder
addAllMaterials(Iterable<String> values)
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on.InTotoProvenance.Builder
addMaterials(String value)
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on.InTotoProvenance.Builder
addMaterialsBytes(com.google.protobuf.ByteString value)
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on.InTotoProvenance.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
InTotoProvenance
build()
InTotoProvenance
buildPartial()
InTotoProvenance.Builder
clear()
InTotoProvenance.Builder
clearBuilderConfig()
requiredInTotoProvenance.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
InTotoProvenance.Builder
clearMaterials()
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on.InTotoProvenance.Builder
clearMetadata()
.grafeas.v1.Metadata metadata = 3;
InTotoProvenance.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
InTotoProvenance.Builder
clearRecipe()
Identifies the configuration used for the build.InTotoProvenance.Builder
clone()
BuilderConfig
getBuilderConfig()
requiredBuilderConfig.Builder
getBuilderConfigBuilder()
requiredBuilderConfigOrBuilder
getBuilderConfigOrBuilder()
requiredInTotoProvenance
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getMaterials(int index)
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on.com.google.protobuf.ByteString
getMaterialsBytes(int index)
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on.int
getMaterialsCount()
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on.com.google.protobuf.ProtocolStringList
getMaterialsList()
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on.Metadata
getMetadata()
.grafeas.v1.Metadata metadata = 3;
Metadata.Builder
getMetadataBuilder()
.grafeas.v1.Metadata metadata = 3;
MetadataOrBuilder
getMetadataOrBuilder()
.grafeas.v1.Metadata metadata = 3;
Recipe
getRecipe()
Identifies the configuration used for the build.Recipe.Builder
getRecipeBuilder()
Identifies the configuration used for the build.RecipeOrBuilder
getRecipeOrBuilder()
Identifies the configuration used for the build.boolean
hasBuilderConfig()
requiredboolean
hasMetadata()
.grafeas.v1.Metadata metadata = 3;
boolean
hasRecipe()
Identifies the configuration used for the build.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
InTotoProvenance.Builder
mergeBuilderConfig(BuilderConfig value)
requiredInTotoProvenance.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
InTotoProvenance.Builder
mergeFrom(com.google.protobuf.Message other)
InTotoProvenance.Builder
mergeFrom(InTotoProvenance other)
InTotoProvenance.Builder
mergeMetadata(Metadata value)
.grafeas.v1.Metadata metadata = 3;
InTotoProvenance.Builder
mergeRecipe(Recipe value)
Identifies the configuration used for the build.InTotoProvenance.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
InTotoProvenance.Builder
setBuilderConfig(BuilderConfig value)
requiredInTotoProvenance.Builder
setBuilderConfig(BuilderConfig.Builder builderForValue)
requiredInTotoProvenance.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
InTotoProvenance.Builder
setMaterials(int index, String value)
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on.InTotoProvenance.Builder
setMetadata(Metadata value)
.grafeas.v1.Metadata metadata = 3;
InTotoProvenance.Builder
setMetadata(Metadata.Builder builderForValue)
.grafeas.v1.Metadata metadata = 3;
InTotoProvenance.Builder
setRecipe(Recipe value)
Identifies the configuration used for the build.InTotoProvenance.Builder
setRecipe(Recipe.Builder builderForValue)
Identifies the configuration used for the build.InTotoProvenance.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
InTotoProvenance.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<InTotoProvenance.Builder>
-
clear
public InTotoProvenance.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<InTotoProvenance.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<InTotoProvenance.Builder>
-
getDefaultInstanceForType
public InTotoProvenance getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public InTotoProvenance build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InTotoProvenance buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public InTotoProvenance.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<InTotoProvenance.Builder>
-
setField
public InTotoProvenance.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InTotoProvenance.Builder>
-
clearField
public InTotoProvenance.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InTotoProvenance.Builder>
-
clearOneof
public InTotoProvenance.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<InTotoProvenance.Builder>
-
setRepeatedField
public InTotoProvenance.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InTotoProvenance.Builder>
-
addRepeatedField
public InTotoProvenance.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InTotoProvenance.Builder>
-
mergeFrom
public InTotoProvenance.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<InTotoProvenance.Builder>
-
mergeFrom
public InTotoProvenance.Builder mergeFrom(InTotoProvenance other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<InTotoProvenance.Builder>
-
mergeFrom
public InTotoProvenance.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<InTotoProvenance.Builder>
- Throws:
IOException
-
hasBuilderConfig
public boolean hasBuilderConfig()
required
.grafeas.v1.BuilderConfig builder_config = 1;
- Specified by:
hasBuilderConfig
in interfaceInTotoProvenanceOrBuilder
- Returns:
- Whether the builderConfig field is set.
-
getBuilderConfig
public BuilderConfig getBuilderConfig()
required
.grafeas.v1.BuilderConfig builder_config = 1;
- Specified by:
getBuilderConfig
in interfaceInTotoProvenanceOrBuilder
- Returns:
- The builderConfig.
-
setBuilderConfig
public InTotoProvenance.Builder setBuilderConfig(BuilderConfig value)
required
.grafeas.v1.BuilderConfig builder_config = 1;
-
setBuilderConfig
public InTotoProvenance.Builder setBuilderConfig(BuilderConfig.Builder builderForValue)
required
.grafeas.v1.BuilderConfig builder_config = 1;
-
mergeBuilderConfig
public InTotoProvenance.Builder mergeBuilderConfig(BuilderConfig value)
required
.grafeas.v1.BuilderConfig builder_config = 1;
-
clearBuilderConfig
public InTotoProvenance.Builder clearBuilderConfig()
required
.grafeas.v1.BuilderConfig builder_config = 1;
-
getBuilderConfigBuilder
public BuilderConfig.Builder getBuilderConfigBuilder()
required
.grafeas.v1.BuilderConfig builder_config = 1;
-
getBuilderConfigOrBuilder
public BuilderConfigOrBuilder getBuilderConfigOrBuilder()
required
.grafeas.v1.BuilderConfig builder_config = 1;
- Specified by:
getBuilderConfigOrBuilder
in interfaceInTotoProvenanceOrBuilder
-
hasRecipe
public boolean hasRecipe()
Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).
.grafeas.v1.Recipe recipe = 2;
- Specified by:
hasRecipe
in interfaceInTotoProvenanceOrBuilder
- Returns:
- Whether the recipe field is set.
-
getRecipe
public Recipe getRecipe()
Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).
.grafeas.v1.Recipe recipe = 2;
- Specified by:
getRecipe
in interfaceInTotoProvenanceOrBuilder
- Returns:
- The recipe.
-
setRecipe
public InTotoProvenance.Builder setRecipe(Recipe value)
Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).
.grafeas.v1.Recipe recipe = 2;
-
setRecipe
public InTotoProvenance.Builder setRecipe(Recipe.Builder builderForValue)
Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).
.grafeas.v1.Recipe recipe = 2;
-
mergeRecipe
public InTotoProvenance.Builder mergeRecipe(Recipe value)
Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).
.grafeas.v1.Recipe recipe = 2;
-
clearRecipe
public InTotoProvenance.Builder clearRecipe()
Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).
.grafeas.v1.Recipe recipe = 2;
-
getRecipeBuilder
public Recipe.Builder getRecipeBuilder()
Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).
.grafeas.v1.Recipe recipe = 2;
-
getRecipeOrBuilder
public RecipeOrBuilder getRecipeOrBuilder()
Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).
.grafeas.v1.Recipe recipe = 2;
- Specified by:
getRecipeOrBuilder
in interfaceInTotoProvenanceOrBuilder
-
hasMetadata
public boolean hasMetadata()
.grafeas.v1.Metadata metadata = 3;
- Specified by:
hasMetadata
in interfaceInTotoProvenanceOrBuilder
- Returns:
- Whether the metadata field is set.
-
getMetadata
public Metadata getMetadata()
.grafeas.v1.Metadata metadata = 3;
- Specified by:
getMetadata
in interfaceInTotoProvenanceOrBuilder
- Returns:
- The metadata.
-
setMetadata
public InTotoProvenance.Builder setMetadata(Metadata value)
.grafeas.v1.Metadata metadata = 3;
-
setMetadata
public InTotoProvenance.Builder setMetadata(Metadata.Builder builderForValue)
.grafeas.v1.Metadata metadata = 3;
-
mergeMetadata
public InTotoProvenance.Builder mergeMetadata(Metadata value)
.grafeas.v1.Metadata metadata = 3;
-
clearMetadata
public InTotoProvenance.Builder clearMetadata()
.grafeas.v1.Metadata metadata = 3;
-
getMetadataBuilder
public Metadata.Builder getMetadataBuilder()
.grafeas.v1.Metadata metadata = 3;
-
getMetadataOrBuilder
public MetadataOrBuilder getMetadataOrBuilder()
.grafeas.v1.Metadata metadata = 3;
- Specified by:
getMetadataOrBuilder
in interfaceInTotoProvenanceOrBuilder
-
getMaterialsList
public com.google.protobuf.ProtocolStringList getMaterialsList()
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
repeated string materials = 4;
- Specified by:
getMaterialsList
in interfaceInTotoProvenanceOrBuilder
- Returns:
- A list containing the materials.
-
getMaterialsCount
public int getMaterialsCount()
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
repeated string materials = 4;
- Specified by:
getMaterialsCount
in interfaceInTotoProvenanceOrBuilder
- Returns:
- The count of materials.
-
getMaterials
public String getMaterials(int index)
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
repeated string materials = 4;
- Specified by:
getMaterials
in interfaceInTotoProvenanceOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The materials at the given index.
-
getMaterialsBytes
public com.google.protobuf.ByteString getMaterialsBytes(int index)
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
repeated string materials = 4;
- Specified by:
getMaterialsBytes
in interfaceInTotoProvenanceOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the materials at the given index.
-
setMaterials
public InTotoProvenance.Builder setMaterials(int index, String value)
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
repeated string materials = 4;
- Parameters:
index
- The index to set the value at.value
- The materials to set.- Returns:
- This builder for chaining.
-
addMaterials
public InTotoProvenance.Builder addMaterials(String value)
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
repeated string materials = 4;
- Parameters:
value
- The materials to add.- Returns:
- This builder for chaining.
-
addAllMaterials
public InTotoProvenance.Builder addAllMaterials(Iterable<String> values)
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
repeated string materials = 4;
- Parameters:
values
- The materials to add.- Returns:
- This builder for chaining.
-
clearMaterials
public InTotoProvenance.Builder clearMaterials()
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
repeated string materials = 4;
- Returns:
- This builder for chaining.
-
addMaterialsBytes
public InTotoProvenance.Builder addMaterialsBytes(com.google.protobuf.ByteString value)
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
repeated string materials = 4;
- Parameters:
value
- The bytes of the materials to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final InTotoProvenance.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<InTotoProvenance.Builder>
-
mergeUnknownFields
public final InTotoProvenance.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<InTotoProvenance.Builder>
-
-