github.com/mre-fog/trillianxx@v1.1.2-0.20180615153820-ae375a99d36a/examples/ct/ctmapper/ctmapperpb/ct_mapper.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: ct_mapper.proto
     3  
     4  /*
     5  Package ctmapperpb is a generated protocol buffer package.
     6  
     7  It is generated from these files:
     8  	ct_mapper.proto
     9  
    10  It has these top-level messages:
    11  	MapperMetadata
    12  	EntryList
    13  */
    14  package ctmapperpb
    15  
    16  import proto "github.com/golang/protobuf/proto"
    17  import fmt "fmt"
    18  import math "math"
    19  
    20  // Reference imports to suppress errors if they are not otherwise used.
    21  var _ = proto.Marshal
    22  var _ = fmt.Errorf
    23  var _ = math.Inf
    24  
    25  // This is a compile-time assertion to ensure that this generated file
    26  // is compatible with the proto package it is being compiled against.
    27  // A compilation error at this line likely means your copy of the
    28  // proto package needs to be updated.
    29  const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
    30  
    31  // MapperMetadata represents the state of the CT Mapper after it
    32  // completes a run of loading the Map from the CT Log being watched.
    33  // It is effectively a cursor over the source CT Log.
    34  type MapperMetadata struct {
    35  	// LogID of the CT log source.
    36  	SourceLogId []byte `protobuf:"bytes,1,opt,name=source_log_id,json=sourceLogId,proto3" json:"source_log_id,omitempty"`
    37  	// Log Index in the source log of the highest entry mapped
    38  	// in an earlier run.
    39  	HighestFullyCompletedSeq int64 `protobuf:"varint,2,opt,name=highest_fully_completed_seq,json=highestFullyCompletedSeq" json:"highest_fully_completed_seq,omitempty"`
    40  }
    41  
    42  func (m *MapperMetadata) Reset()                    { *m = MapperMetadata{} }
    43  func (m *MapperMetadata) String() string            { return proto.CompactTextString(m) }
    44  func (*MapperMetadata) ProtoMessage()               {}
    45  func (*MapperMetadata) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
    46  
    47  func (m *MapperMetadata) GetSourceLogId() []byte {
    48  	if m != nil {
    49  		return m.SourceLogId
    50  	}
    51  	return nil
    52  }
    53  
    54  func (m *MapperMetadata) GetHighestFullyCompletedSeq() int64 {
    55  	if m != nil {
    56  		return m.HighestFullyCompletedSeq
    57  	}
    58  	return 0
    59  }
    60  
    61  // EntryList represents a mapping stored in the Map after a source
    62  // CT Log has been fetched and mapped.  It holds the entry indices
    63  // from the Log for all certificates and all pre-certificates that
    64  // reference a particular domain.
    65  type EntryList struct {
    66  	// The domain referenced by entries in the mapped CT Log.
    67  	Domain string `protobuf:"bytes,1,opt,name=domain" json:"domain,omitempty"`
    68  	// All log indexes of mapped Log entries referencing domain in
    69  	// X.509 certs.
    70  	CertIndex []int64 `protobuf:"varint,2,rep,packed,name=cert_index,json=certIndex" json:"cert_index,omitempty"`
    71  	// All log indexes of mapped Log entries referencing domain in
    72  	// pre-certs.
    73  	PrecertIndex []int64 `protobuf:"varint,3,rep,packed,name=precert_index,json=precertIndex" json:"precert_index,omitempty"`
    74  }
    75  
    76  func (m *EntryList) Reset()                    { *m = EntryList{} }
    77  func (m *EntryList) String() string            { return proto.CompactTextString(m) }
    78  func (*EntryList) ProtoMessage()               {}
    79  func (*EntryList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
    80  
    81  func (m *EntryList) GetDomain() string {
    82  	if m != nil {
    83  		return m.Domain
    84  	}
    85  	return ""
    86  }
    87  
    88  func (m *EntryList) GetCertIndex() []int64 {
    89  	if m != nil {
    90  		return m.CertIndex
    91  	}
    92  	return nil
    93  }
    94  
    95  func (m *EntryList) GetPrecertIndex() []int64 {
    96  	if m != nil {
    97  		return m.PrecertIndex
    98  	}
    99  	return nil
   100  }
   101  
   102  func init() {
   103  	proto.RegisterType((*MapperMetadata)(nil), "ctmapperpb.MapperMetadata")
   104  	proto.RegisterType((*EntryList)(nil), "ctmapperpb.EntryList")
   105  }
   106  
   107  func init() { proto.RegisterFile("ct_mapper.proto", fileDescriptor0) }
   108  
   109  var fileDescriptor0 = []byte{
   110  	// 215 bytes of a gzipped FileDescriptorProto
   111  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0xcf, 0xc1, 0x4b, 0xc3, 0x30,
   112  	0x14, 0xc7, 0x71, 0xba, 0xc2, 0xa0, 0xcf, 0x4d, 0x21, 0x07, 0x09, 0x88, 0x50, 0xea, 0xa5, 0x27,
   113  	0x2f, 0x9e, 0x3d, 0x89, 0xc2, 0x60, 0xbb, 0xc4, 0x3f, 0x20, 0x64, 0xc9, 0x33, 0x0b, 0xa4, 0x4d,
   114  	0x96, 0xbc, 0x81, 0xfb, 0xef, 0xa5, 0x69, 0x85, 0xdd, 0xf2, 0xfb, 0xf2, 0x81, 0xf0, 0xe0, 0x41,
   115  	0x93, 0x1c, 0x54, 0x8c, 0x98, 0x5e, 0x63, 0x0a, 0x14, 0x18, 0x68, 0x9a, 0x77, 0x3c, 0x76, 0x19,
   116  	0xee, 0x0f, 0xe5, 0x7d, 0x40, 0x52, 0x46, 0x91, 0x62, 0x1d, 0x6c, 0x73, 0xb8, 0x24, 0x8d, 0xd2,
   117  	0x07, 0x2b, 0x9d, 0xe1, 0x55, 0x5b, 0xf5, 0x1b, 0x71, 0x37, 0xc7, 0x7d, 0xb0, 0x3b, 0xc3, 0xde,
   118  	0xe1, 0xe9, 0xe4, 0xec, 0x09, 0x33, 0xc9, 0x9f, 0x8b, 0xf7, 0x57, 0xa9, 0xc3, 0x10, 0x3d, 0x12,
   119  	0x1a, 0x99, 0xf1, 0xcc, 0x57, 0x6d, 0xd5, 0xd7, 0x82, 0x2f, 0xe4, 0x6b, 0x12, 0x1f, 0xff, 0xe0,
   120  	0x1b, 0xcf, 0x9d, 0x85, 0xe6, 0x73, 0xa4, 0x74, 0xdd, 0xbb, 0x4c, 0xec, 0x11, 0xd6, 0x26, 0x0c,
   121  	0xca, 0x8d, 0xe5, 0xa3, 0x46, 0x2c, 0x8b, 0x3d, 0x03, 0x68, 0x4c, 0x24, 0xdd, 0x68, 0xf0, 0x97,
   122  	0xaf, 0xda, 0xba, 0xaf, 0x45, 0x33, 0x95, 0xdd, 0x14, 0xd8, 0x0b, 0x6c, 0x63, 0xc2, 0x1b, 0x51,
   123  	0x17, 0xb1, 0x59, 0x62, 0x41, 0xc7, 0x75, 0x39, 0xf8, 0xed, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xa7,
   124  	0x09, 0xed, 0x2c, 0x03, 0x01, 0x00, 0x00,
   125  }