/* * Copyright 2019 The Grafeas Authors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: grafeas/v1/slsa_provenance.proto package io.grafeas.v1; /** Protobuf type {@code grafeas.v1.SlsaProvenance} */ public final class SlsaProvenance extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grafeas.v1.SlsaProvenance) SlsaProvenanceOrBuilder { private static final long serialVersionUID = 0L; // Use SlsaProvenance.newBuilder() to construct. private SlsaProvenance(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private SlsaProvenance() { materials_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SlsaProvenance(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grafeas.v1.SlsaProvenanceProto.internal_static_grafeas_v1_SlsaProvenance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grafeas.v1.SlsaProvenanceProto .internal_static_grafeas_v1_SlsaProvenance_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grafeas.v1.SlsaProvenance.class, io.grafeas.v1.SlsaProvenance.Builder.class); } public interface SlsaRecipeOrBuilder extends // @@protoc_insertion_point(interface_extends:grafeas.v1.SlsaProvenance.SlsaRecipe) com.google.protobuf.MessageOrBuilder { /** * * *
* URI indicating what type of recipe was performed. It determines the
* meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
* materials.
*
*
* string type = 1;
*
* @return The type.
*/
java.lang.String getType();
/**
*
*
*
* URI indicating what type of recipe was performed. It determines the
* meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
* materials.
*
*
* string type = 1;
*
* @return The bytes for type.
*/
com.google.protobuf.ByteString getTypeBytes();
/**
*
*
*
* Index in materials containing the recipe steps that are not implied by
* recipe.type. For example, if the recipe type were "make", then this would
* point to the source containing the Makefile, not the make program itself.
* Set to -1 if the recipe doesn't come from a material, as zero is default
* unset value for int64.
*
*
* int64 defined_in_material = 2;
*
* @return The definedInMaterial.
*/
long getDefinedInMaterial();
/**
*
*
*
* String identifying the entry point into the build.
* This is often a path to a configuration file and/or a target label within
* that file. The syntax and meaning are defined by recipe.type. For
* example, if the recipe type were "make", then this would reference the
* directory in which to run make as well as which target to use.
*
*
* string entry_point = 3;
*
* @return The entryPoint.
*/
java.lang.String getEntryPoint();
/**
*
*
*
* String identifying the entry point into the build.
* This is often a path to a configuration file and/or a target label within
* that file. The syntax and meaning are defined by recipe.type. For
* example, if the recipe type were "make", then this would reference the
* directory in which to run make as well as which target to use.
*
*
* string entry_point = 3;
*
* @return The bytes for entryPoint.
*/
com.google.protobuf.ByteString getEntryPointBytes();
/**
*
*
*
* Collection of all external inputs that influenced the build on top of
* recipe.definedInMaterial and recipe.entryPoint. For example, if the
* recipe type were "make", then this might be the flags passed to make
* aside from the target, which is captured in recipe.entryPoint. Depending
* on the recipe Type, the structure may be different.
*
*
* .google.protobuf.Any arguments = 4;
*
* @return Whether the arguments field is set.
*/
boolean hasArguments();
/**
*
*
*
* Collection of all external inputs that influenced the build on top of
* recipe.definedInMaterial and recipe.entryPoint. For example, if the
* recipe type were "make", then this might be the flags passed to make
* aside from the target, which is captured in recipe.entryPoint. Depending
* on the recipe Type, the structure may be different.
*
*
* .google.protobuf.Any arguments = 4;
*
* @return The arguments.
*/
com.google.protobuf.Any getArguments();
/**
*
*
*
* Collection of all external inputs that influenced the build on top of
* recipe.definedInMaterial and recipe.entryPoint. For example, if the
* recipe type were "make", then this might be the flags passed to make
* aside from the target, which is captured in recipe.entryPoint. Depending
* on the recipe Type, the structure may be different.
*
*
* .google.protobuf.Any arguments = 4;
*/
com.google.protobuf.AnyOrBuilder getArgumentsOrBuilder();
/**
*
*
*
* Any other builder-controlled inputs necessary for correctly evaluating
* the recipe. Usually only needed for reproducing the build but not
* evaluated as part of policy. Depending on the recipe Type, the structure
* may be different.
*
*
* .google.protobuf.Any environment = 5;
*
* @return Whether the environment field is set.
*/
boolean hasEnvironment();
/**
*
*
*
* Any other builder-controlled inputs necessary for correctly evaluating
* the recipe. Usually only needed for reproducing the build but not
* evaluated as part of policy. Depending on the recipe Type, the structure
* may be different.
*
*
* .google.protobuf.Any environment = 5;
*
* @return The environment.
*/
com.google.protobuf.Any getEnvironment();
/**
*
*
*
* Any other builder-controlled inputs necessary for correctly evaluating
* the recipe. Usually only needed for reproducing the build but not
* evaluated as part of policy. Depending on the recipe Type, the structure
* may be different.
*
*
* .google.protobuf.Any environment = 5;
*/
com.google.protobuf.AnyOrBuilder getEnvironmentOrBuilder();
}
/**
*
*
* * Steps taken to build the artifact. * For a TaskRun, typically each container corresponds to one step in the * recipe. ** * Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaRecipe} */ public static final class SlsaRecipe extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grafeas.v1.SlsaProvenance.SlsaRecipe) SlsaRecipeOrBuilder { private static final long serialVersionUID = 0L; // Use SlsaRecipe.newBuilder() to construct. private SlsaRecipe(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private SlsaRecipe() { type_ = ""; entryPoint_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SlsaRecipe(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grafeas.v1.SlsaProvenanceProto .internal_static_grafeas_v1_SlsaProvenance_SlsaRecipe_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grafeas.v1.SlsaProvenanceProto .internal_static_grafeas_v1_SlsaProvenance_SlsaRecipe_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grafeas.v1.SlsaProvenance.SlsaRecipe.class, io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** * * *
* URI indicating what type of recipe was performed. It determines the
* meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
* materials.
*
*
* string type = 1;
*
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
}
}
/**
*
*
*
* URI indicating what type of recipe was performed. It determines the
* meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
* materials.
*
*
* string type = 1;
*
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEFINED_IN_MATERIAL_FIELD_NUMBER = 2;
private long definedInMaterial_ = 0L;
/**
*
*
*
* Index in materials containing the recipe steps that are not implied by
* recipe.type. For example, if the recipe type were "make", then this would
* point to the source containing the Makefile, not the make program itself.
* Set to -1 if the recipe doesn't come from a material, as zero is default
* unset value for int64.
*
*
* int64 defined_in_material = 2;
*
* @return The definedInMaterial.
*/
@java.lang.Override
public long getDefinedInMaterial() {
return definedInMaterial_;
}
public static final int ENTRY_POINT_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object entryPoint_ = "";
/**
*
*
*
* String identifying the entry point into the build.
* This is often a path to a configuration file and/or a target label within
* that file. The syntax and meaning are defined by recipe.type. For
* example, if the recipe type were "make", then this would reference the
* directory in which to run make as well as which target to use.
*
*
* string entry_point = 3;
*
* @return The entryPoint.
*/
@java.lang.Override
public java.lang.String getEntryPoint() {
java.lang.Object ref = entryPoint_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
entryPoint_ = s;
return s;
}
}
/**
*
*
*
* String identifying the entry point into the build.
* This is often a path to a configuration file and/or a target label within
* that file. The syntax and meaning are defined by recipe.type. For
* example, if the recipe type were "make", then this would reference the
* directory in which to run make as well as which target to use.
*
*
* string entry_point = 3;
*
* @return The bytes for entryPoint.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEntryPointBytes() {
java.lang.Object ref = entryPoint_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
entryPoint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ARGUMENTS_FIELD_NUMBER = 4;
private com.google.protobuf.Any arguments_;
/**
*
*
*
* Collection of all external inputs that influenced the build on top of
* recipe.definedInMaterial and recipe.entryPoint. For example, if the
* recipe type were "make", then this might be the flags passed to make
* aside from the target, which is captured in recipe.entryPoint. Depending
* on the recipe Type, the structure may be different.
*
*
* .google.protobuf.Any arguments = 4;
*
* @return Whether the arguments field is set.
*/
@java.lang.Override
public boolean hasArguments() {
return arguments_ != null;
}
/**
*
*
*
* Collection of all external inputs that influenced the build on top of
* recipe.definedInMaterial and recipe.entryPoint. For example, if the
* recipe type were "make", then this might be the flags passed to make
* aside from the target, which is captured in recipe.entryPoint. Depending
* on the recipe Type, the structure may be different.
*
*
* .google.protobuf.Any arguments = 4;
*
* @return The arguments.
*/
@java.lang.Override
public com.google.protobuf.Any getArguments() {
return arguments_ == null ? com.google.protobuf.Any.getDefaultInstance() : arguments_;
}
/**
*
*
*
* Collection of all external inputs that influenced the build on top of
* recipe.definedInMaterial and recipe.entryPoint. For example, if the
* recipe type were "make", then this might be the flags passed to make
* aside from the target, which is captured in recipe.entryPoint. Depending
* on the recipe Type, the structure may be different.
*
*
* .google.protobuf.Any arguments = 4;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getArgumentsOrBuilder() {
return arguments_ == null ? com.google.protobuf.Any.getDefaultInstance() : arguments_;
}
public static final int ENVIRONMENT_FIELD_NUMBER = 5;
private com.google.protobuf.Any environment_;
/**
*
*
*
* Any other builder-controlled inputs necessary for correctly evaluating
* the recipe. Usually only needed for reproducing the build but not
* evaluated as part of policy. Depending on the recipe Type, the structure
* may be different.
*
*
* .google.protobuf.Any environment = 5;
*
* @return Whether the environment field is set.
*/
@java.lang.Override
public boolean hasEnvironment() {
return environment_ != null;
}
/**
*
*
*
* Any other builder-controlled inputs necessary for correctly evaluating
* the recipe. Usually only needed for reproducing the build but not
* evaluated as part of policy. Depending on the recipe Type, the structure
* may be different.
*
*
* .google.protobuf.Any environment = 5;
*
* @return The environment.
*/
@java.lang.Override
public com.google.protobuf.Any getEnvironment() {
return environment_ == null ? com.google.protobuf.Any.getDefaultInstance() : environment_;
}
/**
*
*
*
* Any other builder-controlled inputs necessary for correctly evaluating
* the recipe. Usually only needed for reproducing the build but not
* evaluated as part of policy. Depending on the recipe Type, the structure
* may be different.
*
*
* .google.protobuf.Any environment = 5;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getEnvironmentOrBuilder() {
return environment_ == null ? com.google.protobuf.Any.getDefaultInstance() : environment_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
if (definedInMaterial_ != 0L) {
output.writeInt64(2, definedInMaterial_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryPoint_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entryPoint_);
}
if (arguments_ != null) {
output.writeMessage(4, getArguments());
}
if (environment_ != null) {
output.writeMessage(5, getEnvironment());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
}
if (definedInMaterial_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, definedInMaterial_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryPoint_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, entryPoint_);
}
if (arguments_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getArguments());
}
if (environment_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEnvironment());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.grafeas.v1.SlsaProvenance.SlsaRecipe)) {
return super.equals(obj);
}
io.grafeas.v1.SlsaProvenance.SlsaRecipe other = (io.grafeas.v1.SlsaProvenance.SlsaRecipe) obj;
if (!getType().equals(other.getType())) return false;
if (getDefinedInMaterial() != other.getDefinedInMaterial()) return false;
if (!getEntryPoint().equals(other.getEntryPoint())) return false;
if (hasArguments() != other.hasArguments()) return false;
if (hasArguments()) {
if (!getArguments().equals(other.getArguments())) return false;
}
if (hasEnvironment() != other.hasEnvironment()) return false;
if (hasEnvironment()) {
if (!getEnvironment().equals(other.getEnvironment())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (37 * hash) + DEFINED_IN_MATERIAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDefinedInMaterial());
hash = (37 * hash) + ENTRY_POINT_FIELD_NUMBER;
hash = (53 * hash) + getEntryPoint().hashCode();
if (hasArguments()) {
hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER;
hash = (53 * hash) + getArguments().hashCode();
}
if (hasEnvironment()) {
hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER;
hash = (53 * hash) + getEnvironment().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.grafeas.v1.SlsaProvenance.SlsaRecipe prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Steps taken to build the artifact.
* For a TaskRun, typically each container corresponds to one step in the
* recipe.
*
*
* Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaRecipe}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
* URI indicating what type of recipe was performed. It determines the
* meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
* materials.
*
*
* string type = 1;
*
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* URI indicating what type of recipe was performed. It determines the
* meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
* materials.
*
*
* string type = 1;
*
* @return The bytes for type.
*/
public com.google.protobuf.ByteString getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* URI indicating what type of recipe was performed. It determines the
* meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
* materials.
*
*
* string type = 1;
*
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* URI indicating what type of recipe was performed. It determines the
* meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
* materials.
*
*
* string type = 1;
*
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* URI indicating what type of recipe was performed. It determines the
* meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
* materials.
*
*
* string type = 1;
*
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long definedInMaterial_;
/**
*
*
*
* Index in materials containing the recipe steps that are not implied by
* recipe.type. For example, if the recipe type were "make", then this would
* point to the source containing the Makefile, not the make program itself.
* Set to -1 if the recipe doesn't come from a material, as zero is default
* unset value for int64.
*
*
* int64 defined_in_material = 2;
*
* @return The definedInMaterial.
*/
@java.lang.Override
public long getDefinedInMaterial() {
return definedInMaterial_;
}
/**
*
*
*
* Index in materials containing the recipe steps that are not implied by
* recipe.type. For example, if the recipe type were "make", then this would
* point to the source containing the Makefile, not the make program itself.
* Set to -1 if the recipe doesn't come from a material, as zero is default
* unset value for int64.
*
*
* int64 defined_in_material = 2;
*
* @param value The definedInMaterial to set.
* @return This builder for chaining.
*/
public Builder setDefinedInMaterial(long value) {
definedInMaterial_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Index in materials containing the recipe steps that are not implied by
* recipe.type. For example, if the recipe type were "make", then this would
* point to the source containing the Makefile, not the make program itself.
* Set to -1 if the recipe doesn't come from a material, as zero is default
* unset value for int64.
*
*
* int64 defined_in_material = 2;
*
* @return This builder for chaining.
*/
public Builder clearDefinedInMaterial() {
bitField0_ = (bitField0_ & ~0x00000002);
definedInMaterial_ = 0L;
onChanged();
return this;
}
private java.lang.Object entryPoint_ = "";
/**
*
*
*
* String identifying the entry point into the build.
* This is often a path to a configuration file and/or a target label within
* that file. The syntax and meaning are defined by recipe.type. For
* example, if the recipe type were "make", then this would reference the
* directory in which to run make as well as which target to use.
*
*
* string entry_point = 3;
*
* @return The entryPoint.
*/
public java.lang.String getEntryPoint() {
java.lang.Object ref = entryPoint_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
entryPoint_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* String identifying the entry point into the build.
* This is often a path to a configuration file and/or a target label within
* that file. The syntax and meaning are defined by recipe.type. For
* example, if the recipe type were "make", then this would reference the
* directory in which to run make as well as which target to use.
*
*
* string entry_point = 3;
*
* @return The bytes for entryPoint.
*/
public com.google.protobuf.ByteString getEntryPointBytes() {
java.lang.Object ref = entryPoint_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
entryPoint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* String identifying the entry point into the build.
* This is often a path to a configuration file and/or a target label within
* that file. The syntax and meaning are defined by recipe.type. For
* example, if the recipe type were "make", then this would reference the
* directory in which to run make as well as which target to use.
*
*
* string entry_point = 3;
*
* @param value The entryPoint to set.
* @return This builder for chaining.
*/
public Builder setEntryPoint(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
entryPoint_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* String identifying the entry point into the build.
* This is often a path to a configuration file and/or a target label within
* that file. The syntax and meaning are defined by recipe.type. For
* example, if the recipe type were "make", then this would reference the
* directory in which to run make as well as which target to use.
*
*
* string entry_point = 3;
*
* @return This builder for chaining.
*/
public Builder clearEntryPoint() {
entryPoint_ = getDefaultInstance().getEntryPoint();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* String identifying the entry point into the build.
* This is often a path to a configuration file and/or a target label within
* that file. The syntax and meaning are defined by recipe.type. For
* example, if the recipe type were "make", then this would reference the
* directory in which to run make as well as which target to use.
*
*
* string entry_point = 3;
*
* @param value The bytes for entryPoint to set.
* @return This builder for chaining.
*/
public Builder setEntryPointBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
entryPoint_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.Any arguments_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any,
com.google.protobuf.Any.Builder,
com.google.protobuf.AnyOrBuilder>
argumentsBuilder_;
/**
*
*
*
* Collection of all external inputs that influenced the build on top of
* recipe.definedInMaterial and recipe.entryPoint. For example, if the
* recipe type were "make", then this might be the flags passed to make
* aside from the target, which is captured in recipe.entryPoint. Depending
* on the recipe Type, the structure may be different.
*
*
* .google.protobuf.Any arguments = 4;
*
* @return Whether the arguments field is set.
*/
public boolean hasArguments() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Collection of all external inputs that influenced the build on top of
* recipe.definedInMaterial and recipe.entryPoint. For example, if the
* recipe type were "make", then this might be the flags passed to make
* aside from the target, which is captured in recipe.entryPoint. Depending
* on the recipe Type, the structure may be different.
*
*
* .google.protobuf.Any arguments = 4;
*
* @return The arguments.
*/
public com.google.protobuf.Any getArguments() {
if (argumentsBuilder_ == null) {
return arguments_ == null ? com.google.protobuf.Any.getDefaultInstance() : arguments_;
} else {
return argumentsBuilder_.getMessage();
}
}
/**
*
*
*
* Collection of all external inputs that influenced the build on top of
* recipe.definedInMaterial and recipe.entryPoint. For example, if the
* recipe type were "make", then this might be the flags passed to make
* aside from the target, which is captured in recipe.entryPoint. Depending
* on the recipe Type, the structure may be different.
*
*
* .google.protobuf.Any arguments = 4;
*/
public Builder setArguments(com.google.protobuf.Any value) {
if (argumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
arguments_ = value;
} else {
argumentsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Collection of all external inputs that influenced the build on top of
* recipe.definedInMaterial and recipe.entryPoint. For example, if the
* recipe type were "make", then this might be the flags passed to make
* aside from the target, which is captured in recipe.entryPoint. Depending
* on the recipe Type, the structure may be different.
*
*
* .google.protobuf.Any arguments = 4;
*/
public Builder setArguments(com.google.protobuf.Any.Builder builderForValue) {
if (argumentsBuilder_ == null) {
arguments_ = builderForValue.build();
} else {
argumentsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Collection of all external inputs that influenced the build on top of
* recipe.definedInMaterial and recipe.entryPoint. For example, if the
* recipe type were "make", then this might be the flags passed to make
* aside from the target, which is captured in recipe.entryPoint. Depending
* on the recipe Type, the structure may be different.
*
*
* .google.protobuf.Any arguments = 4;
*/
public Builder mergeArguments(com.google.protobuf.Any value) {
if (argumentsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& arguments_ != null
&& arguments_ != com.google.protobuf.Any.getDefaultInstance()) {
getArgumentsBuilder().mergeFrom(value);
} else {
arguments_ = value;
}
} else {
argumentsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Collection of all external inputs that influenced the build on top of
* recipe.definedInMaterial and recipe.entryPoint. For example, if the
* recipe type were "make", then this might be the flags passed to make
* aside from the target, which is captured in recipe.entryPoint. Depending
* on the recipe Type, the structure may be different.
*
*
* .google.protobuf.Any arguments = 4;
*/
public Builder clearArguments() {
bitField0_ = (bitField0_ & ~0x00000008);
arguments_ = null;
if (argumentsBuilder_ != null) {
argumentsBuilder_.dispose();
argumentsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Collection of all external inputs that influenced the build on top of
* recipe.definedInMaterial and recipe.entryPoint. For example, if the
* recipe type were "make", then this might be the flags passed to make
* aside from the target, which is captured in recipe.entryPoint. Depending
* on the recipe Type, the structure may be different.
*
*
* .google.protobuf.Any arguments = 4;
*/
public com.google.protobuf.Any.Builder getArgumentsBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getArgumentsFieldBuilder().getBuilder();
}
/**
*
*
*
* Collection of all external inputs that influenced the build on top of
* recipe.definedInMaterial and recipe.entryPoint. For example, if the
* recipe type were "make", then this might be the flags passed to make
* aside from the target, which is captured in recipe.entryPoint. Depending
* on the recipe Type, the structure may be different.
*
*
* .google.protobuf.Any arguments = 4;
*/
public com.google.protobuf.AnyOrBuilder getArgumentsOrBuilder() {
if (argumentsBuilder_ != null) {
return argumentsBuilder_.getMessageOrBuilder();
} else {
return arguments_ == null ? com.google.protobuf.Any.getDefaultInstance() : arguments_;
}
}
/**
*
*
*
* Collection of all external inputs that influenced the build on top of
* recipe.definedInMaterial and recipe.entryPoint. For example, if the
* recipe type were "make", then this might be the flags passed to make
* aside from the target, which is captured in recipe.entryPoint. Depending
* on the recipe Type, the structure may be different.
*
*
* .google.protobuf.Any arguments = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any,
com.google.protobuf.Any.Builder,
com.google.protobuf.AnyOrBuilder>
getArgumentsFieldBuilder() {
if (argumentsBuilder_ == null) {
argumentsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any,
com.google.protobuf.Any.Builder,
com.google.protobuf.AnyOrBuilder>(
getArguments(), getParentForChildren(), isClean());
arguments_ = null;
}
return argumentsBuilder_;
}
private com.google.protobuf.Any environment_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any,
com.google.protobuf.Any.Builder,
com.google.protobuf.AnyOrBuilder>
environmentBuilder_;
/**
*
*
*
* Any other builder-controlled inputs necessary for correctly evaluating
* the recipe. Usually only needed for reproducing the build but not
* evaluated as part of policy. Depending on the recipe Type, the structure
* may be different.
*
*
* .google.protobuf.Any environment = 5;
*
* @return Whether the environment field is set.
*/
public boolean hasEnvironment() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* Any other builder-controlled inputs necessary for correctly evaluating
* the recipe. Usually only needed for reproducing the build but not
* evaluated as part of policy. Depending on the recipe Type, the structure
* may be different.
*
*
* .google.protobuf.Any environment = 5;
*
* @return The environment.
*/
public com.google.protobuf.Any getEnvironment() {
if (environmentBuilder_ == null) {
return environment_ == null ? com.google.protobuf.Any.getDefaultInstance() : environment_;
} else {
return environmentBuilder_.getMessage();
}
}
/**
*
*
*
* Any other builder-controlled inputs necessary for correctly evaluating
* the recipe. Usually only needed for reproducing the build but not
* evaluated as part of policy. Depending on the recipe Type, the structure
* may be different.
*
*
* .google.protobuf.Any environment = 5;
*/
public Builder setEnvironment(com.google.protobuf.Any value) {
if (environmentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
environment_ = value;
} else {
environmentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Any other builder-controlled inputs necessary for correctly evaluating
* the recipe. Usually only needed for reproducing the build but not
* evaluated as part of policy. Depending on the recipe Type, the structure
* may be different.
*
*
* .google.protobuf.Any environment = 5;
*/
public Builder setEnvironment(com.google.protobuf.Any.Builder builderForValue) {
if (environmentBuilder_ == null) {
environment_ = builderForValue.build();
} else {
environmentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Any other builder-controlled inputs necessary for correctly evaluating
* the recipe. Usually only needed for reproducing the build but not
* evaluated as part of policy. Depending on the recipe Type, the structure
* may be different.
*
*
* .google.protobuf.Any environment = 5;
*/
public Builder mergeEnvironment(com.google.protobuf.Any value) {
if (environmentBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)
&& environment_ != null
&& environment_ != com.google.protobuf.Any.getDefaultInstance()) {
getEnvironmentBuilder().mergeFrom(value);
} else {
environment_ = value;
}
} else {
environmentBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Any other builder-controlled inputs necessary for correctly evaluating
* the recipe. Usually only needed for reproducing the build but not
* evaluated as part of policy. Depending on the recipe Type, the structure
* may be different.
*
*
* .google.protobuf.Any environment = 5;
*/
public Builder clearEnvironment() {
bitField0_ = (bitField0_ & ~0x00000010);
environment_ = null;
if (environmentBuilder_ != null) {
environmentBuilder_.dispose();
environmentBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Any other builder-controlled inputs necessary for correctly evaluating
* the recipe. Usually only needed for reproducing the build but not
* evaluated as part of policy. Depending on the recipe Type, the structure
* may be different.
*
*
* .google.protobuf.Any environment = 5;
*/
public com.google.protobuf.Any.Builder getEnvironmentBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getEnvironmentFieldBuilder().getBuilder();
}
/**
*
*
*
* Any other builder-controlled inputs necessary for correctly evaluating
* the recipe. Usually only needed for reproducing the build but not
* evaluated as part of policy. Depending on the recipe Type, the structure
* may be different.
*
*
* .google.protobuf.Any environment = 5;
*/
public com.google.protobuf.AnyOrBuilder getEnvironmentOrBuilder() {
if (environmentBuilder_ != null) {
return environmentBuilder_.getMessageOrBuilder();
} else {
return environment_ == null ? com.google.protobuf.Any.getDefaultInstance() : environment_;
}
}
/**
*
*
*
* Any other builder-controlled inputs necessary for correctly evaluating
* the recipe. Usually only needed for reproducing the build but not
* evaluated as part of policy. Depending on the recipe Type, the structure
* may be different.
*
*
* .google.protobuf.Any environment = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any,
com.google.protobuf.Any.Builder,
com.google.protobuf.AnyOrBuilder>
getEnvironmentFieldBuilder() {
if (environmentBuilder_ == null) {
environmentBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any,
com.google.protobuf.Any.Builder,
com.google.protobuf.AnyOrBuilder>(
getEnvironment(), getParentForChildren(), isClean());
environment_ = null;
}
return environmentBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:grafeas.v1.SlsaProvenance.SlsaRecipe)
}
// @@protoc_insertion_point(class_scope:grafeas.v1.SlsaProvenance.SlsaRecipe)
private static final io.grafeas.v1.SlsaProvenance.SlsaRecipe DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grafeas.v1.SlsaProvenance.SlsaRecipe();
}
public static io.grafeas.v1.SlsaProvenance.SlsaRecipe getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
* If true, the builder claims that recipe.arguments is complete, meaning
* that all external inputs are properly captured in the recipe.
*
*
* bool arguments = 1;
*
* @return The arguments.
*/
boolean getArguments();
/**
*
*
*
* If true, the builder claims that recipe.environment is claimed to be
* complete.
*
*
* bool environment = 2;
*
* @return The environment.
*/
boolean getEnvironment();
/**
*
*
*
* If true, the builder claims that materials are complete, usually through
* some controls to prevent network access. Sometimes called "hermetic".
*
*
* bool materials = 3;
*
* @return The materials.
*/
boolean getMaterials();
}
/**
*
*
* * Indicates that the builder claims certain fields in this message to be * complete. ** * Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaCompleteness} */ public static final class SlsaCompleteness extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grafeas.v1.SlsaProvenance.SlsaCompleteness) SlsaCompletenessOrBuilder { private static final long serialVersionUID = 0L; // Use SlsaCompleteness.newBuilder() to construct. private SlsaCompleteness(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private SlsaCompleteness() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SlsaCompleteness(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grafeas.v1.SlsaProvenanceProto .internal_static_grafeas_v1_SlsaProvenance_SlsaCompleteness_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grafeas.v1.SlsaProvenanceProto .internal_static_grafeas_v1_SlsaProvenance_SlsaCompleteness_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grafeas.v1.SlsaProvenance.SlsaCompleteness.class, io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder.class); } public static final int ARGUMENTS_FIELD_NUMBER = 1; private boolean arguments_ = false; /** * * *
* If true, the builder claims that recipe.arguments is complete, meaning
* that all external inputs are properly captured in the recipe.
*
*
* bool arguments = 1;
*
* @return The arguments.
*/
@java.lang.Override
public boolean getArguments() {
return arguments_;
}
public static final int ENVIRONMENT_FIELD_NUMBER = 2;
private boolean environment_ = false;
/**
*
*
*
* If true, the builder claims that recipe.environment is claimed to be
* complete.
*
*
* bool environment = 2;
*
* @return The environment.
*/
@java.lang.Override
public boolean getEnvironment() {
return environment_;
}
public static final int MATERIALS_FIELD_NUMBER = 3;
private boolean materials_ = false;
/**
*
*
*
* If true, the builder claims that materials are complete, usually through
* some controls to prevent network access. Sometimes called "hermetic".
*
*
* bool materials = 3;
*
* @return The materials.
*/
@java.lang.Override
public boolean getMaterials() {
return materials_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (arguments_ != false) {
output.writeBool(1, arguments_);
}
if (environment_ != false) {
output.writeBool(2, environment_);
}
if (materials_ != false) {
output.writeBool(3, materials_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (arguments_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, arguments_);
}
if (environment_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, environment_);
}
if (materials_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, materials_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.grafeas.v1.SlsaProvenance.SlsaCompleteness)) {
return super.equals(obj);
}
io.grafeas.v1.SlsaProvenance.SlsaCompleteness other =
(io.grafeas.v1.SlsaProvenance.SlsaCompleteness) obj;
if (getArguments() != other.getArguments()) return false;
if (getEnvironment() != other.getEnvironment()) return false;
if (getMaterials() != other.getMaterials()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getArguments());
hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnvironment());
hash = (37 * hash) + MATERIALS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMaterials());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.grafeas.v1.SlsaProvenance.SlsaCompleteness prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Indicates that the builder claims certain fields in this message to be
* complete.
*
*
* Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaCompleteness}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
* If true, the builder claims that recipe.arguments is complete, meaning
* that all external inputs are properly captured in the recipe.
*
*
* bool arguments = 1;
*
* @return The arguments.
*/
@java.lang.Override
public boolean getArguments() {
return arguments_;
}
/**
*
*
*
* If true, the builder claims that recipe.arguments is complete, meaning
* that all external inputs are properly captured in the recipe.
*
*
* bool arguments = 1;
*
* @param value The arguments to set.
* @return This builder for chaining.
*/
public Builder setArguments(boolean value) {
arguments_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* If true, the builder claims that recipe.arguments is complete, meaning
* that all external inputs are properly captured in the recipe.
*
*
* bool arguments = 1;
*
* @return This builder for chaining.
*/
public Builder clearArguments() {
bitField0_ = (bitField0_ & ~0x00000001);
arguments_ = false;
onChanged();
return this;
}
private boolean environment_;
/**
*
*
*
* If true, the builder claims that recipe.environment is claimed to be
* complete.
*
*
* bool environment = 2;
*
* @return The environment.
*/
@java.lang.Override
public boolean getEnvironment() {
return environment_;
}
/**
*
*
*
* If true, the builder claims that recipe.environment is claimed to be
* complete.
*
*
* bool environment = 2;
*
* @param value The environment to set.
* @return This builder for chaining.
*/
public Builder setEnvironment(boolean value) {
environment_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* If true, the builder claims that recipe.environment is claimed to be
* complete.
*
*
* bool environment = 2;
*
* @return This builder for chaining.
*/
public Builder clearEnvironment() {
bitField0_ = (bitField0_ & ~0x00000002);
environment_ = false;
onChanged();
return this;
}
private boolean materials_;
/**
*
*
*
* If true, the builder claims that materials are complete, usually through
* some controls to prevent network access. Sometimes called "hermetic".
*
*
* bool materials = 3;
*
* @return The materials.
*/
@java.lang.Override
public boolean getMaterials() {
return materials_;
}
/**
*
*
*
* If true, the builder claims that materials are complete, usually through
* some controls to prevent network access. Sometimes called "hermetic".
*
*
* bool materials = 3;
*
* @param value The materials to set.
* @return This builder for chaining.
*/
public Builder setMaterials(boolean value) {
materials_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* If true, the builder claims that materials are complete, usually through
* some controls to prevent network access. Sometimes called "hermetic".
*
*
* bool materials = 3;
*
* @return This builder for chaining.
*/
public Builder clearMaterials() {
bitField0_ = (bitField0_ & ~0x00000004);
materials_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:grafeas.v1.SlsaProvenance.SlsaCompleteness)
}
// @@protoc_insertion_point(class_scope:grafeas.v1.SlsaProvenance.SlsaCompleteness)
private static final io.grafeas.v1.SlsaProvenance.SlsaCompleteness DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grafeas.v1.SlsaProvenance.SlsaCompleteness();
}
public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
* Identifies the particular build invocation, which can be useful for
* finding associated logs or other ad-hoc analysis. The value SHOULD be
* globally unique, per in-toto Provenance spec.
*
*
* string build_invocation_id = 1;
*
* @return The buildInvocationId.
*/
java.lang.String getBuildInvocationId();
/**
*
*
*
* Identifies the particular build invocation, which can be useful for
* finding associated logs or other ad-hoc analysis. The value SHOULD be
* globally unique, per in-toto Provenance spec.
*
*
* string build_invocation_id = 1;
*
* @return The bytes for buildInvocationId.
*/
com.google.protobuf.ByteString getBuildInvocationIdBytes();
/**
*
*
*
* The timestamp of when the build started.
*
*
* .google.protobuf.Timestamp build_started_on = 2;
*
* @return Whether the buildStartedOn field is set.
*/
boolean hasBuildStartedOn();
/**
*
*
*
* The timestamp of when the build started.
*
*
* .google.protobuf.Timestamp build_started_on = 2;
*
* @return The buildStartedOn.
*/
com.google.protobuf.Timestamp getBuildStartedOn();
/**
*
*
*
* The timestamp of when the build started.
*
*
* .google.protobuf.Timestamp build_started_on = 2;
*/
com.google.protobuf.TimestampOrBuilder getBuildStartedOnOrBuilder();
/**
*
*
*
* The timestamp of when the build completed.
*
*
* .google.protobuf.Timestamp build_finished_on = 3;
*
* @return Whether the buildFinishedOn field is set.
*/
boolean hasBuildFinishedOn();
/**
*
*
*
* The timestamp of when the build completed.
*
*
* .google.protobuf.Timestamp build_finished_on = 3;
*
* @return The buildFinishedOn.
*/
com.google.protobuf.Timestamp getBuildFinishedOn();
/**
*
*
*
* The timestamp of when the build completed.
*
*
* .google.protobuf.Timestamp build_finished_on = 3;
*/
com.google.protobuf.TimestampOrBuilder getBuildFinishedOnOrBuilder();
/**
*
*
*
* Indicates that the builder claims certain fields in this message to be
* complete.
*
*
* .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;
*
* @return Whether the completeness field is set.
*/
boolean hasCompleteness();
/**
*
*
*
* Indicates that the builder claims certain fields in this message to be
* complete.
*
*
* .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;
*
* @return The completeness.
*/
io.grafeas.v1.SlsaProvenance.SlsaCompleteness getCompleteness();
/**
*
*
*
* Indicates that the builder claims certain fields in this message to be
* complete.
*
*
* .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;
*/
io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder getCompletenessOrBuilder();
/**
*
*
*
* If true, the builder claims that running the recipe on materials will
* produce bit-for-bit identical output.
*
*
* bool reproducible = 5;
*
* @return The reproducible.
*/
boolean getReproducible();
}
/**
*
*
* * Other properties of the build. ** * Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaMetadata} */ public static final class SlsaMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grafeas.v1.SlsaProvenance.SlsaMetadata) SlsaMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use SlsaMetadata.newBuilder() to construct. private SlsaMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private SlsaMetadata() { buildInvocationId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SlsaMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grafeas.v1.SlsaProvenanceProto .internal_static_grafeas_v1_SlsaProvenance_SlsaMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grafeas.v1.SlsaProvenanceProto .internal_static_grafeas_v1_SlsaProvenance_SlsaMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grafeas.v1.SlsaProvenance.SlsaMetadata.class, io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder.class); } public static final int BUILD_INVOCATION_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object buildInvocationId_ = ""; /** * * *
* Identifies the particular build invocation, which can be useful for
* finding associated logs or other ad-hoc analysis. The value SHOULD be
* globally unique, per in-toto Provenance spec.
*
*
* string build_invocation_id = 1;
*
* @return The buildInvocationId.
*/
@java.lang.Override
public java.lang.String getBuildInvocationId() {
java.lang.Object ref = buildInvocationId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
buildInvocationId_ = s;
return s;
}
}
/**
*
*
*
* Identifies the particular build invocation, which can be useful for
* finding associated logs or other ad-hoc analysis. The value SHOULD be
* globally unique, per in-toto Provenance spec.
*
*
* string build_invocation_id = 1;
*
* @return The bytes for buildInvocationId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBuildInvocationIdBytes() {
java.lang.Object ref = buildInvocationId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
buildInvocationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BUILD_STARTED_ON_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp buildStartedOn_;
/**
*
*
*
* The timestamp of when the build started.
*
*
* .google.protobuf.Timestamp build_started_on = 2;
*
* @return Whether the buildStartedOn field is set.
*/
@java.lang.Override
public boolean hasBuildStartedOn() {
return buildStartedOn_ != null;
}
/**
*
*
*
* The timestamp of when the build started.
*
*
* .google.protobuf.Timestamp build_started_on = 2;
*
* @return The buildStartedOn.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getBuildStartedOn() {
return buildStartedOn_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: buildStartedOn_;
}
/**
*
*
*
* The timestamp of when the build started.
*
*
* .google.protobuf.Timestamp build_started_on = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getBuildStartedOnOrBuilder() {
return buildStartedOn_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: buildStartedOn_;
}
public static final int BUILD_FINISHED_ON_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp buildFinishedOn_;
/**
*
*
*
* The timestamp of when the build completed.
*
*
* .google.protobuf.Timestamp build_finished_on = 3;
*
* @return Whether the buildFinishedOn field is set.
*/
@java.lang.Override
public boolean hasBuildFinishedOn() {
return buildFinishedOn_ != null;
}
/**
*
*
*
* The timestamp of when the build completed.
*
*
* .google.protobuf.Timestamp build_finished_on = 3;
*
* @return The buildFinishedOn.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getBuildFinishedOn() {
return buildFinishedOn_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: buildFinishedOn_;
}
/**
*
*
*
* The timestamp of when the build completed.
*
*
* .google.protobuf.Timestamp build_finished_on = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getBuildFinishedOnOrBuilder() {
return buildFinishedOn_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: buildFinishedOn_;
}
public static final int COMPLETENESS_FIELD_NUMBER = 4;
private io.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness_;
/**
*
*
*
* Indicates that the builder claims certain fields in this message to be
* complete.
*
*
* .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;
*
* @return Whether the completeness field is set.
*/
@java.lang.Override
public boolean hasCompleteness() {
return completeness_ != null;
}
/**
*
*
*
* Indicates that the builder claims certain fields in this message to be
* complete.
*
*
* .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;
*
* @return The completeness.
*/
@java.lang.Override
public io.grafeas.v1.SlsaProvenance.SlsaCompleteness getCompleteness() {
return completeness_ == null
? io.grafeas.v1.SlsaProvenance.SlsaCompleteness.getDefaultInstance()
: completeness_;
}
/**
*
*
*
* Indicates that the builder claims certain fields in this message to be
* complete.
*
*
* .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;
*/
@java.lang.Override
public io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder getCompletenessOrBuilder() {
return completeness_ == null
? io.grafeas.v1.SlsaProvenance.SlsaCompleteness.getDefaultInstance()
: completeness_;
}
public static final int REPRODUCIBLE_FIELD_NUMBER = 5;
private boolean reproducible_ = false;
/**
*
*
*
* If true, the builder claims that running the recipe on materials will
* produce bit-for-bit identical output.
*
*
* bool reproducible = 5;
*
* @return The reproducible.
*/
@java.lang.Override
public boolean getReproducible() {
return reproducible_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildInvocationId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, buildInvocationId_);
}
if (buildStartedOn_ != null) {
output.writeMessage(2, getBuildStartedOn());
}
if (buildFinishedOn_ != null) {
output.writeMessage(3, getBuildFinishedOn());
}
if (completeness_ != null) {
output.writeMessage(4, getCompleteness());
}
if (reproducible_ != false) {
output.writeBool(5, reproducible_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildInvocationId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, buildInvocationId_);
}
if (buildStartedOn_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBuildStartedOn());
}
if (buildFinishedOn_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBuildFinishedOn());
}
if (completeness_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCompleteness());
}
if (reproducible_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, reproducible_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.grafeas.v1.SlsaProvenance.SlsaMetadata)) {
return super.equals(obj);
}
io.grafeas.v1.SlsaProvenance.SlsaMetadata other =
(io.grafeas.v1.SlsaProvenance.SlsaMetadata) obj;
if (!getBuildInvocationId().equals(other.getBuildInvocationId())) return false;
if (hasBuildStartedOn() != other.hasBuildStartedOn()) return false;
if (hasBuildStartedOn()) {
if (!getBuildStartedOn().equals(other.getBuildStartedOn())) return false;
}
if (hasBuildFinishedOn() != other.hasBuildFinishedOn()) return false;
if (hasBuildFinishedOn()) {
if (!getBuildFinishedOn().equals(other.getBuildFinishedOn())) return false;
}
if (hasCompleteness() != other.hasCompleteness()) return false;
if (hasCompleteness()) {
if (!getCompleteness().equals(other.getCompleteness())) return false;
}
if (getReproducible() != other.getReproducible()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + BUILD_INVOCATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getBuildInvocationId().hashCode();
if (hasBuildStartedOn()) {
hash = (37 * hash) + BUILD_STARTED_ON_FIELD_NUMBER;
hash = (53 * hash) + getBuildStartedOn().hashCode();
}
if (hasBuildFinishedOn()) {
hash = (37 * hash) + BUILD_FINISHED_ON_FIELD_NUMBER;
hash = (53 * hash) + getBuildFinishedOn().hashCode();
}
if (hasCompleteness()) {
hash = (37 * hash) + COMPLETENESS_FIELD_NUMBER;
hash = (53 * hash) + getCompleteness().hashCode();
}
hash = (37 * hash) + REPRODUCIBLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReproducible());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.grafeas.v1.SlsaProvenance.SlsaMetadata prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Other properties of the build.
*
*
* Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaMetadata}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
* Identifies the particular build invocation, which can be useful for
* finding associated logs or other ad-hoc analysis. The value SHOULD be
* globally unique, per in-toto Provenance spec.
*
*
* string build_invocation_id = 1;
*
* @return The buildInvocationId.
*/
public java.lang.String getBuildInvocationId() {
java.lang.Object ref = buildInvocationId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
buildInvocationId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Identifies the particular build invocation, which can be useful for
* finding associated logs or other ad-hoc analysis. The value SHOULD be
* globally unique, per in-toto Provenance spec.
*
*
* string build_invocation_id = 1;
*
* @return The bytes for buildInvocationId.
*/
public com.google.protobuf.ByteString getBuildInvocationIdBytes() {
java.lang.Object ref = buildInvocationId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
buildInvocationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Identifies the particular build invocation, which can be useful for
* finding associated logs or other ad-hoc analysis. The value SHOULD be
* globally unique, per in-toto Provenance spec.
*
*
* string build_invocation_id = 1;
*
* @param value The buildInvocationId to set.
* @return This builder for chaining.
*/
public Builder setBuildInvocationId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
buildInvocationId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Identifies the particular build invocation, which can be useful for
* finding associated logs or other ad-hoc analysis. The value SHOULD be
* globally unique, per in-toto Provenance spec.
*
*
* string build_invocation_id = 1;
*
* @return This builder for chaining.
*/
public Builder clearBuildInvocationId() {
buildInvocationId_ = getDefaultInstance().getBuildInvocationId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Identifies the particular build invocation, which can be useful for
* finding associated logs or other ad-hoc analysis. The value SHOULD be
* globally unique, per in-toto Provenance spec.
*
*
* string build_invocation_id = 1;
*
* @param value The bytes for buildInvocationId to set.
* @return This builder for chaining.
*/
public Builder setBuildInvocationIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
buildInvocationId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.Timestamp buildStartedOn_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
buildStartedOnBuilder_;
/**
*
*
*
* The timestamp of when the build started.
*
*
* .google.protobuf.Timestamp build_started_on = 2;
*
* @return Whether the buildStartedOn field is set.
*/
public boolean hasBuildStartedOn() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The timestamp of when the build started.
*
*
* .google.protobuf.Timestamp build_started_on = 2;
*
* @return The buildStartedOn.
*/
public com.google.protobuf.Timestamp getBuildStartedOn() {
if (buildStartedOnBuilder_ == null) {
return buildStartedOn_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: buildStartedOn_;
} else {
return buildStartedOnBuilder_.getMessage();
}
}
/**
*
*
*
* The timestamp of when the build started.
*
*
* .google.protobuf.Timestamp build_started_on = 2;
*/
public Builder setBuildStartedOn(com.google.protobuf.Timestamp value) {
if (buildStartedOnBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
buildStartedOn_ = value;
} else {
buildStartedOnBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The timestamp of when the build started.
*
*
* .google.protobuf.Timestamp build_started_on = 2;
*/
public Builder setBuildStartedOn(com.google.protobuf.Timestamp.Builder builderForValue) {
if (buildStartedOnBuilder_ == null) {
buildStartedOn_ = builderForValue.build();
} else {
buildStartedOnBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The timestamp of when the build started.
*
*
* .google.protobuf.Timestamp build_started_on = 2;
*/
public Builder mergeBuildStartedOn(com.google.protobuf.Timestamp value) {
if (buildStartedOnBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& buildStartedOn_ != null
&& buildStartedOn_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getBuildStartedOnBuilder().mergeFrom(value);
} else {
buildStartedOn_ = value;
}
} else {
buildStartedOnBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The timestamp of when the build started.
*
*
* .google.protobuf.Timestamp build_started_on = 2;
*/
public Builder clearBuildStartedOn() {
bitField0_ = (bitField0_ & ~0x00000002);
buildStartedOn_ = null;
if (buildStartedOnBuilder_ != null) {
buildStartedOnBuilder_.dispose();
buildStartedOnBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The timestamp of when the build started.
*
*
* .google.protobuf.Timestamp build_started_on = 2;
*/
public com.google.protobuf.Timestamp.Builder getBuildStartedOnBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getBuildStartedOnFieldBuilder().getBuilder();
}
/**
*
*
*
* The timestamp of when the build started.
*
*
* .google.protobuf.Timestamp build_started_on = 2;
*/
public com.google.protobuf.TimestampOrBuilder getBuildStartedOnOrBuilder() {
if (buildStartedOnBuilder_ != null) {
return buildStartedOnBuilder_.getMessageOrBuilder();
} else {
return buildStartedOn_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: buildStartedOn_;
}
}
/**
*
*
*
* The timestamp of when the build started.
*
*
* .google.protobuf.Timestamp build_started_on = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getBuildStartedOnFieldBuilder() {
if (buildStartedOnBuilder_ == null) {
buildStartedOnBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getBuildStartedOn(), getParentForChildren(), isClean());
buildStartedOn_ = null;
}
return buildStartedOnBuilder_;
}
private com.google.protobuf.Timestamp buildFinishedOn_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
buildFinishedOnBuilder_;
/**
*
*
*
* The timestamp of when the build completed.
*
*
* .google.protobuf.Timestamp build_finished_on = 3;
*
* @return Whether the buildFinishedOn field is set.
*/
public boolean hasBuildFinishedOn() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* The timestamp of when the build completed.
*
*
* .google.protobuf.Timestamp build_finished_on = 3;
*
* @return The buildFinishedOn.
*/
public com.google.protobuf.Timestamp getBuildFinishedOn() {
if (buildFinishedOnBuilder_ == null) {
return buildFinishedOn_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: buildFinishedOn_;
} else {
return buildFinishedOnBuilder_.getMessage();
}
}
/**
*
*
*
* The timestamp of when the build completed.
*
*
* .google.protobuf.Timestamp build_finished_on = 3;
*/
public Builder setBuildFinishedOn(com.google.protobuf.Timestamp value) {
if (buildFinishedOnBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
buildFinishedOn_ = value;
} else {
buildFinishedOnBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The timestamp of when the build completed.
*
*
* .google.protobuf.Timestamp build_finished_on = 3;
*/
public Builder setBuildFinishedOn(com.google.protobuf.Timestamp.Builder builderForValue) {
if (buildFinishedOnBuilder_ == null) {
buildFinishedOn_ = builderForValue.build();
} else {
buildFinishedOnBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The timestamp of when the build completed.
*
*
* .google.protobuf.Timestamp build_finished_on = 3;
*/
public Builder mergeBuildFinishedOn(com.google.protobuf.Timestamp value) {
if (buildFinishedOnBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& buildFinishedOn_ != null
&& buildFinishedOn_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getBuildFinishedOnBuilder().mergeFrom(value);
} else {
buildFinishedOn_ = value;
}
} else {
buildFinishedOnBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The timestamp of when the build completed.
*
*
* .google.protobuf.Timestamp build_finished_on = 3;
*/
public Builder clearBuildFinishedOn() {
bitField0_ = (bitField0_ & ~0x00000004);
buildFinishedOn_ = null;
if (buildFinishedOnBuilder_ != null) {
buildFinishedOnBuilder_.dispose();
buildFinishedOnBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The timestamp of when the build completed.
*
*
* .google.protobuf.Timestamp build_finished_on = 3;
*/
public com.google.protobuf.Timestamp.Builder getBuildFinishedOnBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getBuildFinishedOnFieldBuilder().getBuilder();
}
/**
*
*
*
* The timestamp of when the build completed.
*
*
* .google.protobuf.Timestamp build_finished_on = 3;
*/
public com.google.protobuf.TimestampOrBuilder getBuildFinishedOnOrBuilder() {
if (buildFinishedOnBuilder_ != null) {
return buildFinishedOnBuilder_.getMessageOrBuilder();
} else {
return buildFinishedOn_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: buildFinishedOn_;
}
}
/**
*
*
*
* The timestamp of when the build completed.
*
*
* .google.protobuf.Timestamp build_finished_on = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getBuildFinishedOnFieldBuilder() {
if (buildFinishedOnBuilder_ == null) {
buildFinishedOnBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getBuildFinishedOn(), getParentForChildren(), isClean());
buildFinishedOn_ = null;
}
return buildFinishedOnBuilder_;
}
private io.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness_;
private com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.SlsaProvenance.SlsaCompleteness,
io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder,
io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder>
completenessBuilder_;
/**
*
*
*
* Indicates that the builder claims certain fields in this message to be
* complete.
*
*
* .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;
*
* @return Whether the completeness field is set.
*/
public boolean hasCompleteness() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Indicates that the builder claims certain fields in this message to be
* complete.
*
*
* .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;
*
* @return The completeness.
*/
public io.grafeas.v1.SlsaProvenance.SlsaCompleteness getCompleteness() {
if (completenessBuilder_ == null) {
return completeness_ == null
? io.grafeas.v1.SlsaProvenance.SlsaCompleteness.getDefaultInstance()
: completeness_;
} else {
return completenessBuilder_.getMessage();
}
}
/**
*
*
*
* Indicates that the builder claims certain fields in this message to be
* complete.
*
*
* .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;
*/
public Builder setCompleteness(io.grafeas.v1.SlsaProvenance.SlsaCompleteness value) {
if (completenessBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
completeness_ = value;
} else {
completenessBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Indicates that the builder claims certain fields in this message to be
* complete.
*
*
* .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;
*/
public Builder setCompleteness(
io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder builderForValue) {
if (completenessBuilder_ == null) {
completeness_ = builderForValue.build();
} else {
completenessBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Indicates that the builder claims certain fields in this message to be
* complete.
*
*
* .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;
*/
public Builder mergeCompleteness(io.grafeas.v1.SlsaProvenance.SlsaCompleteness value) {
if (completenessBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& completeness_ != null
&& completeness_
!= io.grafeas.v1.SlsaProvenance.SlsaCompleteness.getDefaultInstance()) {
getCompletenessBuilder().mergeFrom(value);
} else {
completeness_ = value;
}
} else {
completenessBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Indicates that the builder claims certain fields in this message to be
* complete.
*
*
* .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;
*/
public Builder clearCompleteness() {
bitField0_ = (bitField0_ & ~0x00000008);
completeness_ = null;
if (completenessBuilder_ != null) {
completenessBuilder_.dispose();
completenessBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Indicates that the builder claims certain fields in this message to be
* complete.
*
*
* .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;
*/
public io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder getCompletenessBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getCompletenessFieldBuilder().getBuilder();
}
/**
*
*
*
* Indicates that the builder claims certain fields in this message to be
* complete.
*
*
* .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;
*/
public io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder getCompletenessOrBuilder() {
if (completenessBuilder_ != null) {
return completenessBuilder_.getMessageOrBuilder();
} else {
return completeness_ == null
? io.grafeas.v1.SlsaProvenance.SlsaCompleteness.getDefaultInstance()
: completeness_;
}
}
/**
*
*
*
* Indicates that the builder claims certain fields in this message to be
* complete.
*
*
* .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.SlsaProvenance.SlsaCompleteness,
io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder,
io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder>
getCompletenessFieldBuilder() {
if (completenessBuilder_ == null) {
completenessBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.SlsaProvenance.SlsaCompleteness,
io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder,
io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder>(
getCompleteness(), getParentForChildren(), isClean());
completeness_ = null;
}
return completenessBuilder_;
}
private boolean reproducible_;
/**
*
*
*
* If true, the builder claims that running the recipe on materials will
* produce bit-for-bit identical output.
*
*
* bool reproducible = 5;
*
* @return The reproducible.
*/
@java.lang.Override
public boolean getReproducible() {
return reproducible_;
}
/**
*
*
*
* If true, the builder claims that running the recipe on materials will
* produce bit-for-bit identical output.
*
*
* bool reproducible = 5;
*
* @param value The reproducible to set.
* @return This builder for chaining.
*/
public Builder setReproducible(boolean value) {
reproducible_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* If true, the builder claims that running the recipe on materials will
* produce bit-for-bit identical output.
*
*
* bool reproducible = 5;
*
* @return This builder for chaining.
*/
public Builder clearReproducible() {
bitField0_ = (bitField0_ & ~0x00000010);
reproducible_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:grafeas.v1.SlsaProvenance.SlsaMetadata)
}
// @@protoc_insertion_point(class_scope:grafeas.v1.SlsaProvenance.SlsaMetadata)
private static final io.grafeas.v1.SlsaProvenance.SlsaMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grafeas.v1.SlsaProvenance.SlsaMetadata();
}
public static io.grafeas.v1.SlsaProvenance.SlsaMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parserstring id = 1;
*
* @return The id.
*/
java.lang.String getId();
/**
* string id = 1;
*
* @return The bytes for id.
*/
com.google.protobuf.ByteString getIdBytes();
}
/** Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaBuilder} */
public static final class SlsaBuilder extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:grafeas.v1.SlsaProvenance.SlsaBuilder)
SlsaBuilderOrBuilder {
private static final long serialVersionUID = 0L;
// Use SlsaBuilder.newBuilder() to construct.
private SlsaBuilder(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SlsaBuilder() {
id_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new SlsaBuilder();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.grafeas.v1.SlsaProvenanceProto
.internal_static_grafeas_v1_SlsaProvenance_SlsaBuilder_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grafeas.v1.SlsaProvenanceProto
.internal_static_grafeas_v1_SlsaProvenance_SlsaBuilder_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grafeas.v1.SlsaProvenance.SlsaBuilder.class,
io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object id_ = "";
/**
* string id = 1;
*
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
* string id = 1;
*
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.grafeas.v1.SlsaProvenance.SlsaBuilder)) {
return super.equals(obj);
}
io.grafeas.v1.SlsaProvenance.SlsaBuilder other =
(io.grafeas.v1.SlsaProvenance.SlsaBuilder) obj;
if (!getId().equals(other.getId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.grafeas.v1.SlsaProvenance.SlsaBuilder prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/** Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaBuilder} */
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builderstring id = 1;
*
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string id = 1;
*
* @return The bytes for id.
*/
public com.google.protobuf.ByteString getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string id = 1;
*
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string id = 1;
*
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string id = 1;
*
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:grafeas.v1.SlsaProvenance.SlsaBuilder)
}
// @@protoc_insertion_point(class_scope:grafeas.v1.SlsaProvenance.SlsaBuilder)
private static final io.grafeas.v1.SlsaProvenance.SlsaBuilder DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grafeas.v1.SlsaProvenance.SlsaBuilder();
}
public static io.grafeas.v1.SlsaProvenance.SlsaBuilder getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parserstring uri = 1;
*
* @return The uri.
*/
java.lang.String getUri();
/**
* string uri = 1;
*
* @return The bytes for uri.
*/
com.google.protobuf.ByteString getUriBytes();
/** map<string, string> digest = 2; */
int getDigestCount();
/** map<string, string> digest = 2; */
boolean containsDigest(java.lang.String key);
/** Use {@link #getDigestMap()} instead. */
@java.lang.Deprecated
java.util.Mapmap<string, string> digest = 2; */
java.util.Mapmap<string, string> digest = 2; */
/* nullable */
java.lang.String getDigestOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/** map<string, string> digest = 2; */
java.lang.String getDigestOrThrow(java.lang.String key);
}
/** Protobuf type {@code grafeas.v1.SlsaProvenance.Material} */
public static final class Material extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:grafeas.v1.SlsaProvenance.Material)
MaterialOrBuilder {
private static final long serialVersionUID = 0L;
// Use Material.newBuilder() to construct.
private Material(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Material() {
uri_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Material();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.grafeas.v1.SlsaProvenanceProto
.internal_static_grafeas_v1_SlsaProvenance_Material_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 2:
return internalGetDigest();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grafeas.v1.SlsaProvenanceProto
.internal_static_grafeas_v1_SlsaProvenance_Material_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grafeas.v1.SlsaProvenance.Material.class,
io.grafeas.v1.SlsaProvenance.Material.Builder.class);
}
public static final int URI_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object uri_ = "";
/**
* string uri = 1;
*
* @return The uri.
*/
@java.lang.Override
public java.lang.String getUri() {
java.lang.Object ref = uri_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uri_ = s;
return s;
}
}
/**
* string uri = 1;
*
* @return The bytes for uri.
*/
@java.lang.Override
public com.google.protobuf.ByteString getUriBytes() {
java.lang.Object ref = uri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
uri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DIGEST_FIELD_NUMBER = 2;
private static final class DigestDefaultEntryHolder {
static final com.google.protobuf.MapEntrymap<string, string> digest = 2; */
@java.lang.Override
public boolean containsDigest(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetDigest().getMap().containsKey(key);
}
/** Use {@link #getDigestMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, string> digest = 2; */
@java.lang.Override
public java.util.Mapmap<string, string> digest = 2; */
@java.lang.Override
public /* nullable */ java.lang.String getDigestOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Mapmap<string, string> digest = 2; */
@java.lang.Override
public java.lang.String getDigestOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Mapstring uri = 1;
*
* @return The uri.
*/
public java.lang.String getUri() {
java.lang.Object ref = uri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string uri = 1;
*
* @return The bytes for uri.
*/
public com.google.protobuf.ByteString getUriBytes() {
java.lang.Object ref = uri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
uri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string uri = 1;
*
* @param value The uri to set.
* @return This builder for chaining.
*/
public Builder setUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
uri_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string uri = 1;
*
* @return This builder for chaining.
*/
public Builder clearUri() {
uri_ = getDefaultInstance().getUri();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string uri = 1;
*
* @param value The bytes for uri to set.
* @return This builder for chaining.
*/
public Builder setUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uri_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.MapFieldmap<string, string> digest = 2; */
@java.lang.Override
public boolean containsDigest(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetDigest().getMap().containsKey(key);
}
/** Use {@link #getDigestMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Mapmap<string, string> digest = 2; */
@java.lang.Override
public java.util.Mapmap<string, string> digest = 2; */
@java.lang.Override
public /* nullable */ java.lang.String getDigestOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Mapmap<string, string> digest = 2; */
@java.lang.Override
public java.lang.String getDigestOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Mapmap<string, string> digest = 2; */
public Builder removeDigest(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableDigest().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Mapmap<string, string> digest = 2; */
public Builder putDigest(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableDigest().getMutableMap().put(key, value);
bitField0_ |= 0x00000002;
return this;
}
/** map<string, string> digest = 2; */
public Builder putAllDigest(java.util.Map* required ** *
.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;
*
* @return Whether the builder field is set.
*/
@java.lang.Override
public boolean hasBuilder() {
return builder_ != null;
}
/**
*
*
* * required ** *
.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;
*
* @return The builder.
*/
@java.lang.Override
public io.grafeas.v1.SlsaProvenance.SlsaBuilder getBuilder() {
return builder_ == null
? io.grafeas.v1.SlsaProvenance.SlsaBuilder.getDefaultInstance()
: builder_;
}
/**
*
*
* * required ** *
.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;
*/
@java.lang.Override
public io.grafeas.v1.SlsaProvenance.SlsaBuilderOrBuilder getBuilderOrBuilder() {
return builder_ == null
? io.grafeas.v1.SlsaProvenance.SlsaBuilder.getDefaultInstance()
: builder_;
}
public static final int RECIPE_FIELD_NUMBER = 2;
private io.grafeas.v1.SlsaProvenance.SlsaRecipe recipe_;
/**
*
*
* * 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.SlsaProvenance.SlsaRecipe recipe = 2;
*
* @return Whether the recipe field is set.
*/
@java.lang.Override
public boolean hasRecipe() {
return recipe_ != null;
}
/**
*
*
* * 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.SlsaProvenance.SlsaRecipe recipe = 2;
*
* @return The recipe.
*/
@java.lang.Override
public io.grafeas.v1.SlsaProvenance.SlsaRecipe getRecipe() {
return recipe_ == null ? io.grafeas.v1.SlsaProvenance.SlsaRecipe.getDefaultInstance() : recipe_;
}
/**
*
*
* * 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.SlsaProvenance.SlsaRecipe recipe = 2;
*/
@java.lang.Override
public io.grafeas.v1.SlsaProvenance.SlsaRecipeOrBuilder getRecipeOrBuilder() {
return recipe_ == null ? io.grafeas.v1.SlsaProvenance.SlsaRecipe.getDefaultInstance() : recipe_;
}
public static final int METADATA_FIELD_NUMBER = 3;
private io.grafeas.v1.SlsaProvenance.SlsaMetadata metadata_;
/**
* .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;
*
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;
*
* @return The metadata.
*/
@java.lang.Override
public io.grafeas.v1.SlsaProvenance.SlsaMetadata getMetadata() {
return metadata_ == null
? io.grafeas.v1.SlsaProvenance.SlsaMetadata.getDefaultInstance()
: metadata_;
}
/** .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3; */
@java.lang.Override
public io.grafeas.v1.SlsaProvenance.SlsaMetadataOrBuilder getMetadataOrBuilder() {
return metadata_ == null
? io.grafeas.v1.SlsaProvenance.SlsaMetadata.getDefaultInstance()
: metadata_;
}
public static final int MATERIALS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List* 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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
@java.lang.Override
public java.util.List* 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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
@java.lang.Override
public java.util.List extends io.grafeas.v1.SlsaProvenance.MaterialOrBuilder>
getMaterialsOrBuilderList() {
return materials_;
}
/**
*
*
* * 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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
@java.lang.Override
public int getMaterialsCount() {
return materials_.size();
}
/**
*
*
* * 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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
@java.lang.Override
public io.grafeas.v1.SlsaProvenance.Material getMaterials(int index) {
return materials_.get(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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
@java.lang.Override
public io.grafeas.v1.SlsaProvenance.MaterialOrBuilder getMaterialsOrBuilder(int index) {
return materials_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (builder_ != null) {
output.writeMessage(1, getBuilder());
}
if (recipe_ != null) {
output.writeMessage(2, getRecipe());
}
if (metadata_ != null) {
output.writeMessage(3, getMetadata());
}
for (int i = 0; i < materials_.size(); i++) {
output.writeMessage(4, materials_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (builder_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBuilder());
}
if (recipe_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRecipe());
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata());
}
for (int i = 0; i < materials_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, materials_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.grafeas.v1.SlsaProvenance)) {
return super.equals(obj);
}
io.grafeas.v1.SlsaProvenance other = (io.grafeas.v1.SlsaProvenance) obj;
if (hasBuilder() != other.hasBuilder()) return false;
if (hasBuilder()) {
if (!getBuilder().equals(other.getBuilder())) return false;
}
if (hasRecipe() != other.hasRecipe()) return false;
if (hasRecipe()) {
if (!getRecipe().equals(other.getRecipe())) return false;
}
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata().equals(other.getMetadata())) return false;
}
if (!getMaterialsList().equals(other.getMaterialsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasBuilder()) {
hash = (37 * hash) + BUILDER_FIELD_NUMBER;
hash = (53 * hash) + getBuilder().hashCode();
}
if (hasRecipe()) {
hash = (37 * hash) + RECIPE_FIELD_NUMBER;
hash = (53 * hash) + getRecipe().hashCode();
}
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (getMaterialsCount() > 0) {
hash = (37 * hash) + MATERIALS_FIELD_NUMBER;
hash = (53 * hash) + getMaterialsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grafeas.v1.SlsaProvenance parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.SlsaProvenance parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.SlsaProvenance parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.SlsaProvenance parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.SlsaProvenance parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.grafeas.v1.SlsaProvenance parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.grafeas.v1.SlsaProvenance parseFrom(com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.SlsaProvenance parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.grafeas.v1.SlsaProvenance prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/** Protobuf type {@code grafeas.v1.SlsaProvenance} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
* required
*
*
* .grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;
*
* @return Whether the builder field is set.
*/
public boolean hasBuilder() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* required
*
*
* .grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;
*
* @return The builder.
*/
public io.grafeas.v1.SlsaProvenance.SlsaBuilder getBuilder() {
if (builderBuilder_ == null) {
return builder_ == null
? io.grafeas.v1.SlsaProvenance.SlsaBuilder.getDefaultInstance()
: builder_;
} else {
return builderBuilder_.getMessage();
}
}
/**
*
*
*
* required
*
*
* .grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;
*/
public Builder setBuilder(io.grafeas.v1.SlsaProvenance.SlsaBuilder value) {
if (builderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
builder_ = value;
} else {
builderBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* required
*
*
* .grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;
*/
public Builder setBuilder(io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder builderForValue) {
if (builderBuilder_ == null) {
builder_ = builderForValue.build();
} else {
builderBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* required
*
*
* .grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;
*/
public Builder mergeBuilder(io.grafeas.v1.SlsaProvenance.SlsaBuilder value) {
if (builderBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& builder_ != null
&& builder_ != io.grafeas.v1.SlsaProvenance.SlsaBuilder.getDefaultInstance()) {
getBuilderBuilder().mergeFrom(value);
} else {
builder_ = value;
}
} else {
builderBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* required
*
*
* .grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;
*/
public Builder clearBuilder() {
bitField0_ = (bitField0_ & ~0x00000001);
builder_ = null;
if (builderBuilder_ != null) {
builderBuilder_.dispose();
builderBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* required
*
*
* .grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;
*/
public io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder getBuilderBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBuilderFieldBuilder().getBuilder();
}
/**
*
*
*
* required
*
*
* .grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;
*/
public io.grafeas.v1.SlsaProvenance.SlsaBuilderOrBuilder getBuilderOrBuilder() {
if (builderBuilder_ != null) {
return builderBuilder_.getMessageOrBuilder();
} else {
return builder_ == null
? io.grafeas.v1.SlsaProvenance.SlsaBuilder.getDefaultInstance()
: builder_;
}
}
/**
*
*
*
* required
*
*
* .grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.SlsaProvenance.SlsaBuilder,
io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder,
io.grafeas.v1.SlsaProvenance.SlsaBuilderOrBuilder>
getBuilderFieldBuilder() {
if (builderBuilder_ == null) {
builderBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.SlsaProvenance.SlsaBuilder,
io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder,
io.grafeas.v1.SlsaProvenance.SlsaBuilderOrBuilder>(
getBuilder(), getParentForChildren(), isClean());
builder_ = null;
}
return builderBuilder_;
}
private io.grafeas.v1.SlsaProvenance.SlsaRecipe recipe_;
private com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.SlsaProvenance.SlsaRecipe,
io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder,
io.grafeas.v1.SlsaProvenance.SlsaRecipeOrBuilder>
recipeBuilder_;
/**
*
*
*
* 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.SlsaProvenance.SlsaRecipe recipe = 2;
*
* @return Whether the recipe field is set.
*/
public boolean hasRecipe() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* 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.SlsaProvenance.SlsaRecipe recipe = 2;
*
* @return The recipe.
*/
public io.grafeas.v1.SlsaProvenance.SlsaRecipe getRecipe() {
if (recipeBuilder_ == null) {
return recipe_ == null
? io.grafeas.v1.SlsaProvenance.SlsaRecipe.getDefaultInstance()
: recipe_;
} else {
return recipeBuilder_.getMessage();
}
}
/**
*
*
*
* 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.SlsaProvenance.SlsaRecipe recipe = 2;
*/
public Builder setRecipe(io.grafeas.v1.SlsaProvenance.SlsaRecipe value) {
if (recipeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
recipe_ = value;
} else {
recipeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* 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.SlsaProvenance.SlsaRecipe recipe = 2;
*/
public Builder setRecipe(io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder builderForValue) {
if (recipeBuilder_ == null) {
recipe_ = builderForValue.build();
} else {
recipeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* 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.SlsaProvenance.SlsaRecipe recipe = 2;
*/
public Builder mergeRecipe(io.grafeas.v1.SlsaProvenance.SlsaRecipe value) {
if (recipeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& recipe_ != null
&& recipe_ != io.grafeas.v1.SlsaProvenance.SlsaRecipe.getDefaultInstance()) {
getRecipeBuilder().mergeFrom(value);
} else {
recipe_ = value;
}
} else {
recipeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* 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.SlsaProvenance.SlsaRecipe recipe = 2;
*/
public Builder clearRecipe() {
bitField0_ = (bitField0_ & ~0x00000002);
recipe_ = null;
if (recipeBuilder_ != null) {
recipeBuilder_.dispose();
recipeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* 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.SlsaProvenance.SlsaRecipe recipe = 2;
*/
public io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder getRecipeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getRecipeFieldBuilder().getBuilder();
}
/**
*
*
*
* 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.SlsaProvenance.SlsaRecipe recipe = 2;
*/
public io.grafeas.v1.SlsaProvenance.SlsaRecipeOrBuilder getRecipeOrBuilder() {
if (recipeBuilder_ != null) {
return recipeBuilder_.getMessageOrBuilder();
} else {
return recipe_ == null
? io.grafeas.v1.SlsaProvenance.SlsaRecipe.getDefaultInstance()
: recipe_;
}
}
/**
*
*
*
* 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.SlsaProvenance.SlsaRecipe recipe = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.SlsaProvenance.SlsaRecipe,
io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder,
io.grafeas.v1.SlsaProvenance.SlsaRecipeOrBuilder>
getRecipeFieldBuilder() {
if (recipeBuilder_ == null) {
recipeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.SlsaProvenance.SlsaRecipe,
io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder,
io.grafeas.v1.SlsaProvenance.SlsaRecipeOrBuilder>(
getRecipe(), getParentForChildren(), isClean());
recipe_ = null;
}
return recipeBuilder_;
}
private io.grafeas.v1.SlsaProvenance.SlsaMetadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.SlsaProvenance.SlsaMetadata,
io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder,
io.grafeas.v1.SlsaProvenance.SlsaMetadataOrBuilder>
metadataBuilder_;
/**
* .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;
*
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;
*
* @return The metadata.
*/
public io.grafeas.v1.SlsaProvenance.SlsaMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null
? io.grafeas.v1.SlsaProvenance.SlsaMetadata.getDefaultInstance()
: metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/** .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3; */
public Builder setMetadata(io.grafeas.v1.SlsaProvenance.SlsaMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/** .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3; */
public Builder setMetadata(io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/** .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3; */
public Builder mergeMetadata(io.grafeas.v1.SlsaProvenance.SlsaMetadata value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& metadata_ != null
&& metadata_ != io.grafeas.v1.SlsaProvenance.SlsaMetadata.getDefaultInstance()) {
getMetadataBuilder().mergeFrom(value);
} else {
metadata_ = value;
}
} else {
metadataBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/** .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3; */
public Builder clearMetadata() {
bitField0_ = (bitField0_ & ~0x00000004);
metadata_ = null;
if (metadataBuilder_ != null) {
metadataBuilder_.dispose();
metadataBuilder_ = null;
}
onChanged();
return this;
}
/** .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3; */
public io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder getMetadataBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/** .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3; */
public io.grafeas.v1.SlsaProvenance.SlsaMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null
? io.grafeas.v1.SlsaProvenance.SlsaMetadata.getDefaultInstance()
: metadata_;
}
}
/** .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3; */
private com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.SlsaProvenance.SlsaMetadata,
io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder,
io.grafeas.v1.SlsaProvenance.SlsaMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.SlsaProvenance.SlsaMetadata,
io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder,
io.grafeas.v1.SlsaProvenance.SlsaMetadataOrBuilder>(
getMetadata(), getParentForChildren(), isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private java.util.List
* 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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
public java.util.List
* 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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
public int getMaterialsCount() {
if (materialsBuilder_ == null) {
return materials_.size();
} else {
return materialsBuilder_.getCount();
}
}
/**
*
*
*
* 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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
public io.grafeas.v1.SlsaProvenance.Material getMaterials(int index) {
if (materialsBuilder_ == null) {
return materials_.get(index);
} else {
return materialsBuilder_.getMessage(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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
public Builder setMaterials(int index, io.grafeas.v1.SlsaProvenance.Material value) {
if (materialsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMaterialsIsMutable();
materials_.set(index, value);
onChanged();
} else {
materialsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* 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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
public Builder setMaterials(
int index, io.grafeas.v1.SlsaProvenance.Material.Builder builderForValue) {
if (materialsBuilder_ == null) {
ensureMaterialsIsMutable();
materials_.set(index, builderForValue.build());
onChanged();
} else {
materialsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* 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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
public Builder addMaterials(io.grafeas.v1.SlsaProvenance.Material value) {
if (materialsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMaterialsIsMutable();
materials_.add(value);
onChanged();
} else {
materialsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* 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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
public Builder addMaterials(int index, io.grafeas.v1.SlsaProvenance.Material value) {
if (materialsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMaterialsIsMutable();
materials_.add(index, value);
onChanged();
} else {
materialsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* 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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
public Builder addMaterials(io.grafeas.v1.SlsaProvenance.Material.Builder builderForValue) {
if (materialsBuilder_ == null) {
ensureMaterialsIsMutable();
materials_.add(builderForValue.build());
onChanged();
} else {
materialsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* 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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
public Builder addMaterials(
int index, io.grafeas.v1.SlsaProvenance.Material.Builder builderForValue) {
if (materialsBuilder_ == null) {
ensureMaterialsIsMutable();
materials_.add(index, builderForValue.build());
onChanged();
} else {
materialsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* 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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
public Builder addAllMaterials(
java.lang.Iterable extends io.grafeas.v1.SlsaProvenance.Material> values) {
if (materialsBuilder_ == null) {
ensureMaterialsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, materials_);
onChanged();
} else {
materialsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* 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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
public Builder clearMaterials() {
if (materialsBuilder_ == null) {
materials_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
materialsBuilder_.clear();
}
return this;
}
/**
*
*
*
* 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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
public Builder removeMaterials(int index) {
if (materialsBuilder_ == null) {
ensureMaterialsIsMutable();
materials_.remove(index);
onChanged();
} else {
materialsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* 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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
public io.grafeas.v1.SlsaProvenance.Material.Builder getMaterialsBuilder(int index) {
return getMaterialsFieldBuilder().getBuilder(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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
public io.grafeas.v1.SlsaProvenance.MaterialOrBuilder getMaterialsOrBuilder(int index) {
if (materialsBuilder_ == null) {
return materials_.get(index);
} else {
return materialsBuilder_.getMessageOrBuilder(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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
public java.util.List extends io.grafeas.v1.SlsaProvenance.MaterialOrBuilder>
getMaterialsOrBuilderList() {
if (materialsBuilder_ != null) {
return materialsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(materials_);
}
}
/**
*
*
*
* 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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
public io.grafeas.v1.SlsaProvenance.Material.Builder addMaterialsBuilder() {
return getMaterialsFieldBuilder()
.addBuilder(io.grafeas.v1.SlsaProvenance.Material.getDefaultInstance());
}
/**
*
*
*
* 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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
public io.grafeas.v1.SlsaProvenance.Material.Builder addMaterialsBuilder(int index) {
return getMaterialsFieldBuilder()
.addBuilder(index, io.grafeas.v1.SlsaProvenance.Material.getDefaultInstance());
}
/**
*
*
*
* 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 .grafeas.v1.SlsaProvenance.Material materials = 4;
*/
public java.util.List