diff --git a/go/predicates/reference/v0/reference.pb.go b/go/predicates/reference/v0/reference.pb.go
new file mode 100644
index 00000000..cdd6eeec
--- /dev/null
+++ b/go/predicates/reference/v0/reference.pb.go
@@ -0,0 +1,239 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.34.2
+// protoc v4.24.4
+// source: in_toto_attestation/predicates/reference/v0/reference.proto
+
+package v0
+
+import (
+ v1 "github.com/in-toto/attestation/go/v1"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type Reference struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Attester *Reference_Attester `protobuf:"bytes,1,opt,name=attester,proto3" json:"attester,omitempty"`
+ References []*v1.ResourceDescriptor `protobuf:"bytes,2,rep,name=references,proto3" json:"references,omitempty"`
+}
+
+func (x *Reference) Reset() {
+ *x = Reference{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_in_toto_attestation_predicates_reference_v0_reference_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Reference) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Reference) ProtoMessage() {}
+
+func (x *Reference) ProtoReflect() protoreflect.Message {
+ mi := &file_in_toto_attestation_predicates_reference_v0_reference_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Reference.ProtoReflect.Descriptor instead.
+func (*Reference) Descriptor() ([]byte, []int) {
+ return file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *Reference) GetAttester() *Reference_Attester {
+ if x != nil {
+ return x.Attester
+ }
+ return nil
+}
+
+func (x *Reference) GetReferences() []*v1.ResourceDescriptor {
+ if x != nil {
+ return x.References
+ }
+ return nil
+}
+
+type Reference_Attester struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+}
+
+func (x *Reference_Attester) Reset() {
+ *x = Reference_Attester{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_in_toto_attestation_predicates_reference_v0_reference_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Reference_Attester) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Reference_Attester) ProtoMessage() {}
+
+func (x *Reference_Attester) ProtoReflect() protoreflect.Message {
+ mi := &file_in_toto_attestation_predicates_reference_v0_reference_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Reference_Attester.ProtoReflect.Descriptor instead.
+func (*Reference_Attester) Descriptor() ([]byte, []int) {
+ return file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDescGZIP(), []int{0, 0}
+}
+
+func (x *Reference_Attester) GetId() string {
+ if x != nil {
+ return x.Id
+ }
+ return ""
+}
+
+var File_in_toto_attestation_predicates_reference_v0_reference_proto protoreflect.FileDescriptor
+
+var file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDesc = []byte{
+ 0x0a, 0x3b, 0x69, 0x6e, 0x5f, 0x74, 0x6f, 0x74, 0x6f, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73,
+ 0x2f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x76, 0x30, 0x2f, 0x72, 0x65,
+ 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2b, 0x69,
+ 0x6e, 0x5f, 0x74, 0x6f, 0x74, 0x6f, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x2e, 0x72, 0x65,
+ 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x76, 0x30, 0x1a, 0x30, 0x69, 0x6e, 0x5f, 0x74,
+ 0x6f, 0x74, 0x6f, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f,
+ 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x73, 0x63,
+ 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd0, 0x01, 0x0a,
+ 0x09, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x5b, 0x0a, 0x08, 0x61, 0x74,
+ 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x69,
+ 0x6e, 0x5f, 0x74, 0x6f, 0x74, 0x6f, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x2e, 0x72, 0x65,
+ 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x76, 0x30, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72,
+ 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x52, 0x08, 0x61,
+ 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x12, 0x4a, 0x0a, 0x0a, 0x72, 0x65, 0x66, 0x65, 0x72,
+ 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x69, 0x6e,
+ 0x5f, 0x74, 0x6f, 0x74, 0x6f, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x73,
+ 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x0a, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e,
+ 0x63, 0x65, 0x73, 0x1a, 0x1a, 0x0a, 0x08, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x12,
+ 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x42,
+ 0x71, 0x0a, 0x34, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x69, 0x6e, 0x74,
+ 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
+ 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x2e, 0x72, 0x65, 0x66, 0x65, 0x72,
+ 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x76, 0x30, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
+ 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, 0x2d, 0x74, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x74, 0x74, 0x65,
+ 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69,
+ 0x63, 0x61, 0x74, 0x65, 0x73, 0x2f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2f,
+ 0x76, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDescOnce sync.Once
+ file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDescData = file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDesc
+)
+
+func file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDescGZIP() []byte {
+ file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDescOnce.Do(func() {
+ file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDescData = protoimpl.X.CompressGZIP(file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDescData)
+ })
+ return file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDescData
+}
+
+var file_in_toto_attestation_predicates_reference_v0_reference_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
+var file_in_toto_attestation_predicates_reference_v0_reference_proto_goTypes = []any{
+ (*Reference)(nil), // 0: in_toto_attestation.predicates.reference.v0.Reference
+ (*Reference_Attester)(nil), // 1: in_toto_attestation.predicates.reference.v0.Reference.Attester
+ (*v1.ResourceDescriptor)(nil), // 2: in_toto_attestation.v1.ResourceDescriptor
+}
+var file_in_toto_attestation_predicates_reference_v0_reference_proto_depIdxs = []int32{
+ 1, // 0: in_toto_attestation.predicates.reference.v0.Reference.attester:type_name -> in_toto_attestation.predicates.reference.v0.Reference.Attester
+ 2, // 1: in_toto_attestation.predicates.reference.v0.Reference.references:type_name -> in_toto_attestation.v1.ResourceDescriptor
+ 2, // [2:2] is the sub-list for method output_type
+ 2, // [2:2] is the sub-list for method input_type
+ 2, // [2:2] is the sub-list for extension type_name
+ 2, // [2:2] is the sub-list for extension extendee
+ 0, // [0:2] is the sub-list for field type_name
+}
+
+func init() { file_in_toto_attestation_predicates_reference_v0_reference_proto_init() }
+func file_in_toto_attestation_predicates_reference_v0_reference_proto_init() {
+ if File_in_toto_attestation_predicates_reference_v0_reference_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_in_toto_attestation_predicates_reference_v0_reference_proto_msgTypes[0].Exporter = func(v any, i int) any {
+ switch v := v.(*Reference); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_in_toto_attestation_predicates_reference_v0_reference_proto_msgTypes[1].Exporter = func(v any, i int) any {
+ switch v := v.(*Reference_Attester); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 2,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_in_toto_attestation_predicates_reference_v0_reference_proto_goTypes,
+ DependencyIndexes: file_in_toto_attestation_predicates_reference_v0_reference_proto_depIdxs,
+ MessageInfos: file_in_toto_attestation_predicates_reference_v0_reference_proto_msgTypes,
+ }.Build()
+ File_in_toto_attestation_predicates_reference_v0_reference_proto = out.File
+ file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDesc = nil
+ file_in_toto_attestation_predicates_reference_v0_reference_proto_goTypes = nil
+ file_in_toto_attestation_predicates_reference_v0_reference_proto_depIdxs = nil
+}
diff --git a/java/io/github/intoto/attestation/predicates/reference/v0/ReferenceOuterClass.java b/java/io/github/intoto/attestation/predicates/reference/v0/ReferenceOuterClass.java
new file mode 100644
index 00000000..59f21080
--- /dev/null
+++ b/java/io/github/intoto/attestation/predicates/reference/v0/ReferenceOuterClass.java
@@ -0,0 +1,1613 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: in_toto_attestation/predicates/reference/v0/reference.proto
+
+package io.github.intoto.attestation.predicates.reference.v0;
+
+public final class ReferenceOuterClass {
+ private ReferenceOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface ReferenceOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:in_toto_attestation.predicates.reference.v0.Reference)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;
+ * @return Whether the attester field is set.
+ */
+ boolean hasAttester();
+ /**
+ * .in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;
+ * @return The attester.
+ */
+ io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester getAttester();
+ /**
+ * .in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;
+ */
+ io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.AttesterOrBuilder getAttesterOrBuilder();
+
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ java.util.List
+ getReferencesList();
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor getReferences(int index);
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ int getReferencesCount();
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ java.util.List extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder>
+ getReferencesOrBuilderList();
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder getReferencesOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code in_toto_attestation.predicates.reference.v0.Reference}
+ */
+ public static final class Reference extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:in_toto_attestation.predicates.reference.v0.Reference)
+ ReferenceOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Reference.newBuilder() to construct.
+ private Reference(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Reference() {
+ references_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Reference();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.class, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Builder.class);
+ }
+
+ public interface AttesterOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:in_toto_attestation.predicates.reference.v0.Reference.Attester)
+ 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 in_toto_attestation.predicates.reference.v0.Reference.Attester}
+ */
+ public static final class Attester extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:in_toto_attestation.predicates.reference.v0.Reference.Attester)
+ AttesterOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Attester.newBuilder() to construct.
+ private Attester(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Attester() {
+ id_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Attester();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.class, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester)) {
+ return super.equals(obj);
+ }
+ io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester other = (io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester) 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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester 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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester 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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester 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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester 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 in_toto_attestation.predicates.reference.v0.Reference.Attester}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:in_toto_attestation.predicates.reference.v0.Reference.Attester)
+ io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.AttesterOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.class, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.Builder.class);
+ }
+
+ // Construct using io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_descriptor;
+ }
+
+ @java.lang.Override
+ public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester getDefaultInstanceForType() {
+ return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester build() {
+ io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester buildPartial() {
+ io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester result = new io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester 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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester) {
+ return mergeFrom((io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester other) {
+ if (other == io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.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:in_toto_attestation.predicates.reference.v0.Reference.Attester)
+ }
+
+ // @@protoc_insertion_point(class_scope:in_toto_attestation.predicates.reference.v0.Reference.Attester)
+ private static final io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester();
+ }
+
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Attester 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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private int bitField0_;
+ public static final int ATTESTER_FIELD_NUMBER = 1;
+ private io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester attester_;
+ /**
+ * .in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;
+ * @return Whether the attester field is set.
+ */
+ @java.lang.Override
+ public boolean hasAttester() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;
+ * @return The attester.
+ */
+ @java.lang.Override
+ public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester getAttester() {
+ return attester_ == null ? io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.getDefaultInstance() : attester_;
+ }
+ /**
+ * .in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;
+ */
+ @java.lang.Override
+ public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.AttesterOrBuilder getAttesterOrBuilder() {
+ return attester_ == null ? io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.getDefaultInstance() : attester_;
+ }
+
+ public static final int REFERENCES_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private java.util.List references_;
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ @java.lang.Override
+ public java.util.List getReferencesList() {
+ return references_;
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ @java.lang.Override
+ public java.util.List extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder>
+ getReferencesOrBuilderList() {
+ return references_;
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ @java.lang.Override
+ public int getReferencesCount() {
+ return references_.size();
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ @java.lang.Override
+ public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor getReferences(int index) {
+ return references_.get(index);
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ @java.lang.Override
+ public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder getReferencesOrBuilder(
+ int index) {
+ return references_.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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getAttester());
+ }
+ for (int i = 0; i < references_.size(); i++) {
+ output.writeMessage(2, references_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getAttester());
+ }
+ for (int i = 0; i < references_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, references_.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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference)) {
+ return super.equals(obj);
+ }
+ io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference other = (io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference) obj;
+
+ if (hasAttester() != other.hasAttester()) return false;
+ if (hasAttester()) {
+ if (!getAttester()
+ .equals(other.getAttester())) return false;
+ }
+ if (!getReferencesList()
+ .equals(other.getReferencesList())) 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 (hasAttester()) {
+ hash = (37 * hash) + ATTESTER_FIELD_NUMBER;
+ hash = (53 * hash) + getAttester().hashCode();
+ }
+ if (getReferencesCount() > 0) {
+ hash = (37 * hash) + REFERENCES_FIELD_NUMBER;
+ hash = (53 * hash) + getReferencesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference 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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference 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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference 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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference 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 in_toto_attestation.predicates.reference.v0.Reference}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:in_toto_attestation.predicates.reference.v0.Reference)
+ io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.ReferenceOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.class, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Builder.class);
+ }
+
+ // Construct using io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getAttesterFieldBuilder();
+ getReferencesFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ attester_ = null;
+ if (attesterBuilder_ != null) {
+ attesterBuilder_.dispose();
+ attesterBuilder_ = null;
+ }
+ if (referencesBuilder_ == null) {
+ references_ = java.util.Collections.emptyList();
+ } else {
+ references_ = null;
+ referencesBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_descriptor;
+ }
+
+ @java.lang.Override
+ public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference getDefaultInstanceForType() {
+ return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference build() {
+ io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference buildPartial() {
+ io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference result = new io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference result) {
+ if (referencesBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
+ references_ = java.util.Collections.unmodifiableList(references_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.references_ = references_;
+ } else {
+ result.references_ = referencesBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.attester_ = attesterBuilder_ == null
+ ? attester_
+ : attesterBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference) {
+ return mergeFrom((io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference other) {
+ if (other == io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.getDefaultInstance()) return this;
+ if (other.hasAttester()) {
+ mergeAttester(other.getAttester());
+ }
+ if (referencesBuilder_ == null) {
+ if (!other.references_.isEmpty()) {
+ if (references_.isEmpty()) {
+ references_ = other.references_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureReferencesIsMutable();
+ references_.addAll(other.references_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.references_.isEmpty()) {
+ if (referencesBuilder_.isEmpty()) {
+ referencesBuilder_.dispose();
+ referencesBuilder_ = null;
+ references_ = other.references_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ referencesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getReferencesFieldBuilder() : null;
+ } else {
+ referencesBuilder_.addAllMessages(other.references_);
+ }
+ }
+ }
+ 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(
+ getAttesterFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor m =
+ input.readMessage(
+ io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.parser(),
+ extensionRegistry);
+ if (referencesBuilder_ == null) {
+ ensureReferencesIsMutable();
+ references_.add(m);
+ } else {
+ referencesBuilder_.addMessage(m);
+ }
+ 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 io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester attester_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.Builder, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.AttesterOrBuilder> attesterBuilder_;
+ /**
+ * .in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;
+ * @return Whether the attester field is set.
+ */
+ public boolean hasAttester() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;
+ * @return The attester.
+ */
+ public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester getAttester() {
+ if (attesterBuilder_ == null) {
+ return attester_ == null ? io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.getDefaultInstance() : attester_;
+ } else {
+ return attesterBuilder_.getMessage();
+ }
+ }
+ /**
+ * .in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;
+ */
+ public Builder setAttester(io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester value) {
+ if (attesterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ attester_ = value;
+ } else {
+ attesterBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * .in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;
+ */
+ public Builder setAttester(
+ io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.Builder builderForValue) {
+ if (attesterBuilder_ == null) {
+ attester_ = builderForValue.build();
+ } else {
+ attesterBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * .in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;
+ */
+ public Builder mergeAttester(io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester value) {
+ if (attesterBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ attester_ != null &&
+ attester_ != io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.getDefaultInstance()) {
+ getAttesterBuilder().mergeFrom(value);
+ } else {
+ attester_ = value;
+ }
+ } else {
+ attesterBuilder_.mergeFrom(value);
+ }
+ if (attester_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;
+ */
+ public Builder clearAttester() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ attester_ = null;
+ if (attesterBuilder_ != null) {
+ attesterBuilder_.dispose();
+ attesterBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;
+ */
+ public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.Builder getAttesterBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getAttesterFieldBuilder().getBuilder();
+ }
+ /**
+ * .in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;
+ */
+ public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.AttesterOrBuilder getAttesterOrBuilder() {
+ if (attesterBuilder_ != null) {
+ return attesterBuilder_.getMessageOrBuilder();
+ } else {
+ return attester_ == null ?
+ io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.getDefaultInstance() : attester_;
+ }
+ }
+ /**
+ * .in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.Builder, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.AttesterOrBuilder>
+ getAttesterFieldBuilder() {
+ if (attesterBuilder_ == null) {
+ attesterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.Builder, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.AttesterOrBuilder>(
+ getAttester(),
+ getParentForChildren(),
+ isClean());
+ attester_ = null;
+ }
+ return attesterBuilder_;
+ }
+
+ private java.util.List references_ =
+ java.util.Collections.emptyList();
+ private void ensureReferencesIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ references_ = new java.util.ArrayList(references_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder> referencesBuilder_;
+
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ public java.util.List getReferencesList() {
+ if (referencesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(references_);
+ } else {
+ return referencesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ public int getReferencesCount() {
+ if (referencesBuilder_ == null) {
+ return references_.size();
+ } else {
+ return referencesBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor getReferences(int index) {
+ if (referencesBuilder_ == null) {
+ return references_.get(index);
+ } else {
+ return referencesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ public Builder setReferences(
+ int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor value) {
+ if (referencesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureReferencesIsMutable();
+ references_.set(index, value);
+ onChanged();
+ } else {
+ referencesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ public Builder setReferences(
+ int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder builderForValue) {
+ if (referencesBuilder_ == null) {
+ ensureReferencesIsMutable();
+ references_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ referencesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ public Builder addReferences(io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor value) {
+ if (referencesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureReferencesIsMutable();
+ references_.add(value);
+ onChanged();
+ } else {
+ referencesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ public Builder addReferences(
+ int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor value) {
+ if (referencesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureReferencesIsMutable();
+ references_.add(index, value);
+ onChanged();
+ } else {
+ referencesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ public Builder addReferences(
+ io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder builderForValue) {
+ if (referencesBuilder_ == null) {
+ ensureReferencesIsMutable();
+ references_.add(builderForValue.build());
+ onChanged();
+ } else {
+ referencesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ public Builder addReferences(
+ int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder builderForValue) {
+ if (referencesBuilder_ == null) {
+ ensureReferencesIsMutable();
+ references_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ referencesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ public Builder addAllReferences(
+ java.lang.Iterable extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> values) {
+ if (referencesBuilder_ == null) {
+ ensureReferencesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, references_);
+ onChanged();
+ } else {
+ referencesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ public Builder clearReferences() {
+ if (referencesBuilder_ == null) {
+ references_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ referencesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ public Builder removeReferences(int index) {
+ if (referencesBuilder_ == null) {
+ ensureReferencesIsMutable();
+ references_.remove(index);
+ onChanged();
+ } else {
+ referencesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder getReferencesBuilder(
+ int index) {
+ return getReferencesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder getReferencesOrBuilder(
+ int index) {
+ if (referencesBuilder_ == null) {
+ return references_.get(index); } else {
+ return referencesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ public java.util.List extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder>
+ getReferencesOrBuilderList() {
+ if (referencesBuilder_ != null) {
+ return referencesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(references_);
+ }
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder addReferencesBuilder() {
+ return getReferencesFieldBuilder().addBuilder(
+ io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.getDefaultInstance());
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder addReferencesBuilder(
+ int index) {
+ return getReferencesFieldBuilder().addBuilder(
+ index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.getDefaultInstance());
+ }
+ /**
+ * repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;
+ */
+ public java.util.List
+ getReferencesBuilderList() {
+ return getReferencesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder>
+ getReferencesFieldBuilder() {
+ if (referencesBuilder_ == null) {
+ referencesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder>(
+ references_,
+ ((bitField0_ & 0x00000002) != 0),
+ getParentForChildren(),
+ isClean());
+ references_ = null;
+ }
+ return referencesBuilder_;
+ }
+ @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:in_toto_attestation.predicates.reference.v0.Reference)
+ }
+
+ // @@protoc_insertion_point(class_scope:in_toto_attestation.predicates.reference.v0.Reference)
+ private static final io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference();
+ }
+
+ public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Reference 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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_in_toto_attestation_predicates_reference_v0_Reference_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_in_toto_attestation_predicates_reference_v0_Reference_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n;in_toto_attestation/predicates/referen" +
+ "ce/v0/reference.proto\022+in_toto_attestati" +
+ "on.predicates.reference.v0\0320in_toto_atte" +
+ "station/v1/resource_descriptor.proto\"\266\001\n" +
+ "\tReference\022Q\n\010attester\030\001 \001(\0132?.in_toto_a" +
+ "ttestation.predicates.reference.v0.Refer" +
+ "ence.Attester\022>\n\nreferences\030\002 \003(\0132*.in_t" +
+ "oto_attestation.v1.ResourceDescriptor\032\026\n" +
+ "\010Attester\022\n\n\002id\030\001 \001(\tBq\n4io.github.intot" +
+ "o.attestation.predicates.reference.v0Z9g" +
+ "ithub.com/in-toto/attestation/go/predica" +
+ "tes/reference/v0b\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.getDescriptor(),
+ });
+ internal_static_in_toto_attestation_predicates_reference_v0_Reference_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_in_toto_attestation_predicates_reference_v0_Reference_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_in_toto_attestation_predicates_reference_v0_Reference_descriptor,
+ new java.lang.String[] { "Attester", "References", });
+ internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_descriptor =
+ internal_static_in_toto_attestation_predicates_reference_v0_Reference_descriptor.getNestedTypes().get(0);
+ internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_descriptor,
+ new java.lang.String[] { "Id", });
+ io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/python/in_toto_attestation/predicates/reference/v0/reference_pb2.py b/python/in_toto_attestation/predicates/reference/v0/reference_pb2.py
new file mode 100644
index 00000000..fd3739cf
--- /dev/null
+++ b/python/in_toto_attestation/predicates/reference/v0/reference_pb2.py
@@ -0,0 +1,37 @@
+# Generated by the protocol buffer compiler. DO NOT EDIT!
+# source: in_toto_attestation/predicates/reference/v0/reference.proto
+"""Generated protocol buffer code."""
+
+from google.protobuf import descriptor as _descriptor
+from google.protobuf import descriptor_pool as _descriptor_pool
+from google.protobuf import symbol_database as _symbol_database
+from google.protobuf.internal import builder as _builder
+
+# @@protoc_insertion_point(imports)
+
+_sym_db = _symbol_database.Default()
+
+
+from in_toto_attestation.v1 import (
+ resource_descriptor_pb2 as in__toto__attestation_dot_v1_dot_resource__descriptor__pb2,
+)
+
+DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
+ b'\n;in_toto_attestation/predicates/reference/v0/reference.proto\x12+in_toto_attestation.predicates.reference.v0\x1a\x30in_toto_attestation/v1/resource_descriptor.proto"\xb6\x01\n\tReference\x12Q\n\x08\x61ttester\x18\x01 \x01(\x0b\x32?.in_toto_attestation.predicates.reference.v0.Reference.Attester\x12>\n\nreferences\x18\x02 \x03(\x0b\x32*.in_toto_attestation.v1.ResourceDescriptor\x1a\x16\n\x08\x41ttester\x12\n\n\x02id\x18\x01 \x01(\tBq\n4io.github.intoto.attestation.predicates.reference.v0Z9github.com/in-toto/attestation/go/predicates/reference/v0b\x06proto3'
+)
+
+_globals = globals()
+_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
+_builder.BuildTopDescriptorsAndMessages(
+ DESCRIPTOR, "in_toto_attestation.predicates.reference.v0.reference_pb2", _globals
+)
+if _descriptor._USE_C_DESCRIPTORS == False:
+ _globals["DESCRIPTOR"]._options = None
+ _globals[
+ "DESCRIPTOR"
+ ]._serialized_options = b"\n4io.github.intoto.attestation.predicates.reference.v0Z9github.com/in-toto/attestation/go/predicates/reference/v0"
+ _globals["_REFERENCE"]._serialized_start = 159
+ _globals["_REFERENCE"]._serialized_end = 341
+ _globals["_REFERENCE_ATTESTER"]._serialized_start = 319
+ _globals["_REFERENCE_ATTESTER"]._serialized_end = 341
+# @@protoc_insertion_point(module_scope)