/* * 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 implements // @@protoc_insertion_point(builder_implements:grafeas.v1.SlsaProvenance.SlsaRecipe) io.grafeas.v1.SlsaProvenance.SlsaRecipeOrBuilder { 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); } // Construct using io.grafeas.v1.SlsaProvenance.SlsaRecipe.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = ""; definedInMaterial_ = 0L; entryPoint_ = ""; arguments_ = null; if (argumentsBuilder_ != null) { argumentsBuilder_.dispose(); argumentsBuilder_ = null; } environment_ = null; if (environmentBuilder_ != null) { environmentBuilder_.dispose(); environmentBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grafeas.v1.SlsaProvenanceProto .internal_static_grafeas_v1_SlsaProvenance_SlsaRecipe_descriptor; } @java.lang.Override public io.grafeas.v1.SlsaProvenance.SlsaRecipe getDefaultInstanceForType() { return io.grafeas.v1.SlsaProvenance.SlsaRecipe.getDefaultInstance(); } @java.lang.Override public io.grafeas.v1.SlsaProvenance.SlsaRecipe build() { io.grafeas.v1.SlsaProvenance.SlsaRecipe result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grafeas.v1.SlsaProvenance.SlsaRecipe buildPartial() { io.grafeas.v1.SlsaProvenance.SlsaRecipe result = new io.grafeas.v1.SlsaProvenance.SlsaRecipe(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.grafeas.v1.SlsaProvenance.SlsaRecipe result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.definedInMaterial_ = definedInMaterial_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.entryPoint_ = entryPoint_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.arguments_ = argumentsBuilder_ == null ? arguments_ : argumentsBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.environment_ = environmentBuilder_ == null ? environment_ : environmentBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.grafeas.v1.SlsaProvenance.SlsaRecipe) { return mergeFrom((io.grafeas.v1.SlsaProvenance.SlsaRecipe) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grafeas.v1.SlsaProvenance.SlsaRecipe other) { if (other == io.grafeas.v1.SlsaProvenance.SlsaRecipe.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; bitField0_ |= 0x00000001; onChanged(); } if (other.getDefinedInMaterial() != 0L) { setDefinedInMaterial(other.getDefinedInMaterial()); } if (!other.getEntryPoint().isEmpty()) { entryPoint_ = other.entryPoint_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasArguments()) { mergeArguments(other.getArguments()); } if (other.hasEnvironment()) { mergeEnvironment(other.getEnvironment()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { type_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { definedInMaterial_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { entryPoint_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getArgumentsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getEnvironmentFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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. */ 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 PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SlsaRecipe parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.grafeas.v1.SlsaProvenance.SlsaRecipe getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SlsaCompletenessOrBuilder extends // @@protoc_insertion_point(interface_extends:grafeas.v1.SlsaProvenance.SlsaCompleteness) com.google.protobuf.MessageOrBuilder { /** * * *
     * 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 implements // @@protoc_insertion_point(builder_implements:grafeas.v1.SlsaProvenance.SlsaCompleteness) io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder { 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); } // Construct using io.grafeas.v1.SlsaProvenance.SlsaCompleteness.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; arguments_ = false; environment_ = false; materials_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grafeas.v1.SlsaProvenanceProto .internal_static_grafeas_v1_SlsaProvenance_SlsaCompleteness_descriptor; } @java.lang.Override public io.grafeas.v1.SlsaProvenance.SlsaCompleteness getDefaultInstanceForType() { return io.grafeas.v1.SlsaProvenance.SlsaCompleteness.getDefaultInstance(); } @java.lang.Override public io.grafeas.v1.SlsaProvenance.SlsaCompleteness build() { io.grafeas.v1.SlsaProvenance.SlsaCompleteness result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grafeas.v1.SlsaProvenance.SlsaCompleteness buildPartial() { io.grafeas.v1.SlsaProvenance.SlsaCompleteness result = new io.grafeas.v1.SlsaProvenance.SlsaCompleteness(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.grafeas.v1.SlsaProvenance.SlsaCompleteness result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.arguments_ = arguments_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.environment_ = environment_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.materials_ = materials_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.grafeas.v1.SlsaProvenance.SlsaCompleteness) { return mergeFrom((io.grafeas.v1.SlsaProvenance.SlsaCompleteness) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grafeas.v1.SlsaProvenance.SlsaCompleteness other) { if (other == io.grafeas.v1.SlsaProvenance.SlsaCompleteness.getDefaultInstance()) return this; if (other.getArguments() != false) { setArguments(other.getArguments()); } if (other.getEnvironment() != false) { setEnvironment(other.getEnvironment()); } if (other.getMaterials() != false) { setMaterials(other.getMaterials()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { arguments_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { environment_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { materials_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private boolean 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; * * @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 PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SlsaCompleteness parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.grafeas.v1.SlsaProvenance.SlsaCompleteness getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SlsaMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:grafeas.v1.SlsaProvenance.SlsaMetadata) com.google.protobuf.MessageOrBuilder { /** * * *
     * 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 implements // @@protoc_insertion_point(builder_implements:grafeas.v1.SlsaProvenance.SlsaMetadata) io.grafeas.v1.SlsaProvenance.SlsaMetadataOrBuilder { 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); } // Construct using io.grafeas.v1.SlsaProvenance.SlsaMetadata.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; buildInvocationId_ = ""; buildStartedOn_ = null; if (buildStartedOnBuilder_ != null) { buildStartedOnBuilder_.dispose(); buildStartedOnBuilder_ = null; } buildFinishedOn_ = null; if (buildFinishedOnBuilder_ != null) { buildFinishedOnBuilder_.dispose(); buildFinishedOnBuilder_ = null; } completeness_ = null; if (completenessBuilder_ != null) { completenessBuilder_.dispose(); completenessBuilder_ = null; } reproducible_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grafeas.v1.SlsaProvenanceProto .internal_static_grafeas_v1_SlsaProvenance_SlsaMetadata_descriptor; } @java.lang.Override public io.grafeas.v1.SlsaProvenance.SlsaMetadata getDefaultInstanceForType() { return io.grafeas.v1.SlsaProvenance.SlsaMetadata.getDefaultInstance(); } @java.lang.Override public io.grafeas.v1.SlsaProvenance.SlsaMetadata build() { io.grafeas.v1.SlsaProvenance.SlsaMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grafeas.v1.SlsaProvenance.SlsaMetadata buildPartial() { io.grafeas.v1.SlsaProvenance.SlsaMetadata result = new io.grafeas.v1.SlsaProvenance.SlsaMetadata(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.grafeas.v1.SlsaProvenance.SlsaMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.buildInvocationId_ = buildInvocationId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.buildStartedOn_ = buildStartedOnBuilder_ == null ? buildStartedOn_ : buildStartedOnBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.buildFinishedOn_ = buildFinishedOnBuilder_ == null ? buildFinishedOn_ : buildFinishedOnBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.completeness_ = completenessBuilder_ == null ? completeness_ : completenessBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.reproducible_ = reproducible_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.grafeas.v1.SlsaProvenance.SlsaMetadata) { return mergeFrom((io.grafeas.v1.SlsaProvenance.SlsaMetadata) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grafeas.v1.SlsaProvenance.SlsaMetadata other) { if (other == io.grafeas.v1.SlsaProvenance.SlsaMetadata.getDefaultInstance()) return this; if (!other.getBuildInvocationId().isEmpty()) { buildInvocationId_ = other.buildInvocationId_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasBuildStartedOn()) { mergeBuildStartedOn(other.getBuildStartedOn()); } if (other.hasBuildFinishedOn()) { mergeBuildFinishedOn(other.getBuildFinishedOn()); } if (other.hasCompleteness()) { mergeCompleteness(other.getCompleteness()); } if (other.getReproducible() != false) { setReproducible(other.getReproducible()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { buildInvocationId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getBuildStartedOnFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getBuildFinishedOnFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getCompletenessFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 40: { reproducible_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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. */ 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.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SlsaMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.grafeas.v1.SlsaProvenance.SlsaMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SlsaBuilderOrBuilder extends // @@protoc_insertion_point(interface_extends:grafeas.v1.SlsaProvenance.SlsaBuilder) com.google.protobuf.MessageOrBuilder { /** * string 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.Builder implements // @@protoc_insertion_point(builder_implements:grafeas.v1.SlsaProvenance.SlsaBuilder) io.grafeas.v1.SlsaProvenance.SlsaBuilderOrBuilder { 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); } // Construct using io.grafeas.v1.SlsaProvenance.SlsaBuilder.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grafeas.v1.SlsaProvenanceProto .internal_static_grafeas_v1_SlsaProvenance_SlsaBuilder_descriptor; } @java.lang.Override public io.grafeas.v1.SlsaProvenance.SlsaBuilder getDefaultInstanceForType() { return io.grafeas.v1.SlsaProvenance.SlsaBuilder.getDefaultInstance(); } @java.lang.Override public io.grafeas.v1.SlsaProvenance.SlsaBuilder build() { io.grafeas.v1.SlsaProvenance.SlsaBuilder result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grafeas.v1.SlsaProvenance.SlsaBuilder buildPartial() { io.grafeas.v1.SlsaProvenance.SlsaBuilder result = new io.grafeas.v1.SlsaProvenance.SlsaBuilder(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.grafeas.v1.SlsaProvenance.SlsaBuilder result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.grafeas.v1.SlsaProvenance.SlsaBuilder) { return mergeFrom((io.grafeas.v1.SlsaProvenance.SlsaBuilder) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grafeas.v1.SlsaProvenance.SlsaBuilder other) { if (other == io.grafeas.v1.SlsaProvenance.SlsaBuilder.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * string 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.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SlsaBuilder parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.grafeas.v1.SlsaProvenance.SlsaBuilder getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MaterialOrBuilder extends // @@protoc_insertion_point(interface_extends:grafeas.v1.SlsaProvenance.Material) com.google.protobuf.MessageOrBuilder { /** * string 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.Map getDigest(); /** map<string, string> digest = 2; */ java.util.Map getDigestMap(); /** map<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.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( io.grafeas.v1.SlsaProvenanceProto .internal_static_grafeas_v1_SlsaProvenance_Material_DigestEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField digest_; private com.google.protobuf.MapField internalGetDigest() { if (digest_ == null) { return com.google.protobuf.MapField.emptyMapField(DigestDefaultEntryHolder.defaultEntry); } return digest_; } public int getDigestCount() { return internalGetDigest().getMap().size(); } /** map<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.Map getDigest() { return getDigestMap(); } /** map<string, string> digest = 2; */ @java.lang.Override public java.util.Map getDigestMap() { return internalGetDigest().getMap(); } /** map<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.Map map = internalGetDigest().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** map<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.Map map = internalGetDigest().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetDigest(), DigestDefaultEntryHolder.defaultEntry, 2); 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(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } for (java.util.Map.Entry entry : internalGetDigest().getMap().entrySet()) { com.google.protobuf.MapEntry digest__ = DigestDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, digest__); } 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.Material)) { return super.equals(obj); } io.grafeas.v1.SlsaProvenance.Material other = (io.grafeas.v1.SlsaProvenance.Material) obj; if (!getUri().equals(other.getUri())) return false; if (!internalGetDigest().equals(other.internalGetDigest())) 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) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); if (!internalGetDigest().getMap().isEmpty()) { hash = (37 * hash) + DIGEST_FIELD_NUMBER; hash = (53 * hash) + internalGetDigest().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grafeas.v1.SlsaProvenance.Material parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grafeas.v1.SlsaProvenance.Material 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.Material parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grafeas.v1.SlsaProvenance.Material 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.Material parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grafeas.v1.SlsaProvenance.Material parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grafeas.v1.SlsaProvenance.Material parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.grafeas.v1.SlsaProvenance.Material 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.Material parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.grafeas.v1.SlsaProvenance.Material 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.Material parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.grafeas.v1.SlsaProvenance.Material 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.Material 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.Material} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grafeas.v1.SlsaProvenance.Material) io.grafeas.v1.SlsaProvenance.MaterialOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grafeas.v1.SlsaProvenanceProto .internal_static_grafeas_v1_SlsaProvenance_Material_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetDigest(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableDigest(); 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); } // Construct using io.grafeas.v1.SlsaProvenance.Material.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; uri_ = ""; internalGetMutableDigest().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grafeas.v1.SlsaProvenanceProto .internal_static_grafeas_v1_SlsaProvenance_Material_descriptor; } @java.lang.Override public io.grafeas.v1.SlsaProvenance.Material getDefaultInstanceForType() { return io.grafeas.v1.SlsaProvenance.Material.getDefaultInstance(); } @java.lang.Override public io.grafeas.v1.SlsaProvenance.Material build() { io.grafeas.v1.SlsaProvenance.Material result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grafeas.v1.SlsaProvenance.Material buildPartial() { io.grafeas.v1.SlsaProvenance.Material result = new io.grafeas.v1.SlsaProvenance.Material(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.grafeas.v1.SlsaProvenance.Material result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.uri_ = uri_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.digest_ = internalGetDigest(); result.digest_.makeImmutable(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.grafeas.v1.SlsaProvenance.Material) { return mergeFrom((io.grafeas.v1.SlsaProvenance.Material) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grafeas.v1.SlsaProvenance.Material other) { if (other == io.grafeas.v1.SlsaProvenance.Material.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; bitField0_ |= 0x00000001; onChanged(); } internalGetMutableDigest().mergeFrom(other.internalGetDigest()); bitField0_ |= 0x00000002; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { uri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.protobuf.MapEntry digest__ = input.readMessage( DigestDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableDigest() .getMutableMap() .put(digest__.getKey(), digest__.getValue()); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object uri_ = ""; /** * string 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.MapField digest_; private com.google.protobuf.MapField internalGetDigest() { if (digest_ == null) { return com.google.protobuf.MapField.emptyMapField(DigestDefaultEntryHolder.defaultEntry); } return digest_; } private com.google.protobuf.MapField internalGetMutableDigest() { if (digest_ == null) { digest_ = com.google.protobuf.MapField.newMapField(DigestDefaultEntryHolder.defaultEntry); } if (!digest_.isMutable()) { digest_ = digest_.copy(); } bitField0_ |= 0x00000002; onChanged(); return digest_; } public int getDigestCount() { return internalGetDigest().getMap().size(); } /** map<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.Map getDigest() { return getDigestMap(); } /** map<string, string> digest = 2; */ @java.lang.Override public java.util.Map getDigestMap() { return internalGetDigest().getMap(); } /** map<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.Map map = internalGetDigest().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** map<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.Map map = internalGetDigest().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearDigest() { bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableDigest().getMutableMap().clear(); return this; } /** map<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.Map getMutableDigest() { bitField0_ |= 0x00000002; return internalGetMutableDigest().getMutableMap(); } /** map<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 values) { internalGetMutableDigest().getMutableMap().putAll(values); bitField0_ |= 0x00000002; 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.Material) } // @@protoc_insertion_point(class_scope:grafeas.v1.SlsaProvenance.Material) private static final io.grafeas.v1.SlsaProvenance.Material DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grafeas.v1.SlsaProvenance.Material(); } public static io.grafeas.v1.SlsaProvenance.Material getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Material parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.grafeas.v1.SlsaProvenance.Material getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int BUILDER_FIELD_NUMBER = 1; private io.grafeas.v1.SlsaProvenance.SlsaBuilder builder_; /** * * *
   * 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 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 java.util.List getMaterialsList() { 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 java.util.List 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 implements // @@protoc_insertion_point(builder_implements:grafeas.v1.SlsaProvenance) io.grafeas.v1.SlsaProvenanceOrBuilder { 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); } // Construct using io.grafeas.v1.SlsaProvenance.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; builder_ = null; if (builderBuilder_ != null) { builderBuilder_.dispose(); builderBuilder_ = null; } recipe_ = null; if (recipeBuilder_ != null) { recipeBuilder_.dispose(); recipeBuilder_ = null; } metadata_ = null; if (metadataBuilder_ != null) { metadataBuilder_.dispose(); metadataBuilder_ = null; } if (materialsBuilder_ == null) { materials_ = java.util.Collections.emptyList(); } else { materials_ = null; materialsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grafeas.v1.SlsaProvenanceProto.internal_static_grafeas_v1_SlsaProvenance_descriptor; } @java.lang.Override public io.grafeas.v1.SlsaProvenance getDefaultInstanceForType() { return io.grafeas.v1.SlsaProvenance.getDefaultInstance(); } @java.lang.Override public io.grafeas.v1.SlsaProvenance build() { io.grafeas.v1.SlsaProvenance result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grafeas.v1.SlsaProvenance buildPartial() { io.grafeas.v1.SlsaProvenance result = new io.grafeas.v1.SlsaProvenance(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.grafeas.v1.SlsaProvenance result) { if (materialsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { materials_ = java.util.Collections.unmodifiableList(materials_); bitField0_ = (bitField0_ & ~0x00000008); } result.materials_ = materials_; } else { result.materials_ = materialsBuilder_.build(); } } private void buildPartial0(io.grafeas.v1.SlsaProvenance result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.builder_ = builderBuilder_ == null ? builder_ : builderBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.recipe_ = recipeBuilder_ == null ? recipe_ : recipeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.grafeas.v1.SlsaProvenance) { return mergeFrom((io.grafeas.v1.SlsaProvenance) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grafeas.v1.SlsaProvenance other) { if (other == io.grafeas.v1.SlsaProvenance.getDefaultInstance()) return this; if (other.hasBuilder()) { mergeBuilder(other.getBuilder()); } if (other.hasRecipe()) { mergeRecipe(other.getRecipe()); } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (materialsBuilder_ == null) { if (!other.materials_.isEmpty()) { if (materials_.isEmpty()) { materials_ = other.materials_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureMaterialsIsMutable(); materials_.addAll(other.materials_); } onChanged(); } } else { if (!other.materials_.isEmpty()) { if (materialsBuilder_.isEmpty()) { materialsBuilder_.dispose(); materialsBuilder_ = null; materials_ = other.materials_; bitField0_ = (bitField0_ & ~0x00000008); materialsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMaterialsFieldBuilder() : null; } else { materialsBuilder_.addAllMessages(other.materials_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage(getBuilderFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getRecipeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { io.grafeas.v1.SlsaProvenance.Material m = input.readMessage( io.grafeas.v1.SlsaProvenance.Material.parser(), extensionRegistry); if (materialsBuilder_ == null) { ensureMaterialsIsMutable(); materials_.add(m); } else { materialsBuilder_.addMessage(m); } break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private io.grafeas.v1.SlsaProvenance.SlsaBuilder builder_; private com.google.protobuf.SingleFieldBuilderV3< io.grafeas.v1.SlsaProvenance.SlsaBuilder, io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder, io.grafeas.v1.SlsaProvenance.SlsaBuilderOrBuilder> builderBuilder_; /** * * *
     * 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 materials_ = java.util.Collections.emptyList(); private void ensureMaterialsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { materials_ = new java.util.ArrayList(materials_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.grafeas.v1.SlsaProvenance.Material, io.grafeas.v1.SlsaProvenance.Material.Builder, io.grafeas.v1.SlsaProvenance.MaterialOrBuilder> materialsBuilder_; /** * * *
     * 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 getMaterialsList() { if (materialsBuilder_ == null) { return java.util.Collections.unmodifiableList(materials_); } else { return materialsBuilder_.getMessageList(); } } /** * * *
     * 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 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 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 getMaterialsBuilderList() { return getMaterialsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.grafeas.v1.SlsaProvenance.Material, io.grafeas.v1.SlsaProvenance.Material.Builder, io.grafeas.v1.SlsaProvenance.MaterialOrBuilder> getMaterialsFieldBuilder() { if (materialsBuilder_ == null) { materialsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.grafeas.v1.SlsaProvenance.Material, io.grafeas.v1.SlsaProvenance.Material.Builder, io.grafeas.v1.SlsaProvenance.MaterialOrBuilder>( materials_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); materials_ = null; } return materialsBuilder_; } @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) } // @@protoc_insertion_point(class_scope:grafeas.v1.SlsaProvenance) private static final io.grafeas.v1.SlsaProvenance DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grafeas.v1.SlsaProvenance(); } public static io.grafeas.v1.SlsaProvenance getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SlsaProvenance parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.grafeas.v1.SlsaProvenance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }