github.com/golang/dep@v0.5.4/gps/internal/pb/source_cache.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: source_cache.proto
     3  
     4  /*
     5  Package pb is a generated protocol buffer package.
     6  
     7  It is generated from these files:
     8  	source_cache.proto
     9  
    10  It has these top-level messages:
    11  	Constraint
    12  	ProjectProperties
    13  	LockedProject
    14  */
    15  package pb
    16  
    17  import proto "github.com/golang/protobuf/proto"
    18  import fmt "fmt"
    19  import math "math"
    20  
    21  // Reference imports to suppress errors if they are not otherwise used.
    22  var _ = proto.Marshal
    23  var _ = fmt.Errorf
    24  var _ = math.Inf
    25  
    26  // This is a compile-time assertion to ensure that this generated file
    27  // is compatible with the proto package it is being compiled against.
    28  // A compilation error at this line likely means your copy of the
    29  // proto package needs to be updated.
    30  const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
    31  
    32  type Constraint_Type int32
    33  
    34  const (
    35  	Constraint_Revision      Constraint_Type = 0
    36  	Constraint_Branch        Constraint_Type = 1
    37  	Constraint_DefaultBranch Constraint_Type = 2
    38  	Constraint_Version       Constraint_Type = 3
    39  	Constraint_Semver        Constraint_Type = 4
    40  )
    41  
    42  var Constraint_Type_name = map[int32]string{
    43  	0: "Revision",
    44  	1: "Branch",
    45  	2: "DefaultBranch",
    46  	3: "Version",
    47  	4: "Semver",
    48  }
    49  var Constraint_Type_value = map[string]int32{
    50  	"Revision":      0,
    51  	"Branch":        1,
    52  	"DefaultBranch": 2,
    53  	"Version":       3,
    54  	"Semver":        4,
    55  }
    56  
    57  func (x Constraint_Type) String() string {
    58  	return proto.EnumName(Constraint_Type_name, int32(x))
    59  }
    60  func (Constraint_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
    61  
    62  // Constraint is a serializable representation of a gps.Constraint or gps.UnpairedVersion.
    63  type Constraint struct {
    64  	Type  Constraint_Type `protobuf:"varint,1,opt,name=type,enum=pb.Constraint_Type" json:"type,omitempty"`
    65  	Value string          `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
    66  }
    67  
    68  func (m *Constraint) Reset()                    { *m = Constraint{} }
    69  func (m *Constraint) String() string            { return proto.CompactTextString(m) }
    70  func (*Constraint) ProtoMessage()               {}
    71  func (*Constraint) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
    72  
    73  func (m *Constraint) GetType() Constraint_Type {
    74  	if m != nil {
    75  		return m.Type
    76  	}
    77  	return Constraint_Revision
    78  }
    79  
    80  func (m *Constraint) GetValue() string {
    81  	if m != nil {
    82  		return m.Value
    83  	}
    84  	return ""
    85  }
    86  
    87  // ProjectProperties is a serializable representation of gps.ProjectRoot and gps.ProjectProperties.
    88  type ProjectProperties struct {
    89  	Root       string      `protobuf:"bytes,1,opt,name=root" json:"root,omitempty"`
    90  	Source     string      `protobuf:"bytes,2,opt,name=source" json:"source,omitempty"`
    91  	Constraint *Constraint `protobuf:"bytes,3,opt,name=constraint" json:"constraint,omitempty"`
    92  }
    93  
    94  func (m *ProjectProperties) Reset()                    { *m = ProjectProperties{} }
    95  func (m *ProjectProperties) String() string            { return proto.CompactTextString(m) }
    96  func (*ProjectProperties) ProtoMessage()               {}
    97  func (*ProjectProperties) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
    98  
    99  func (m *ProjectProperties) GetRoot() string {
   100  	if m != nil {
   101  		return m.Root
   102  	}
   103  	return ""
   104  }
   105  
   106  func (m *ProjectProperties) GetSource() string {
   107  	if m != nil {
   108  		return m.Source
   109  	}
   110  	return ""
   111  }
   112  
   113  func (m *ProjectProperties) GetConstraint() *Constraint {
   114  	if m != nil {
   115  		return m.Constraint
   116  	}
   117  	return nil
   118  }
   119  
   120  // LockedProject is a serializable representation of gps.LockedProject.
   121  type LockedProject struct {
   122  	Root            string      `protobuf:"bytes,1,opt,name=root" json:"root,omitempty"`
   123  	Source          string      `protobuf:"bytes,2,opt,name=source" json:"source,omitempty"`
   124  	UnpairedVersion *Constraint `protobuf:"bytes,3,opt,name=unpairedVersion" json:"unpairedVersion,omitempty"`
   125  	Revision        string      `protobuf:"bytes,4,opt,name=revision" json:"revision,omitempty"`
   126  	Packages        []string    `protobuf:"bytes,5,rep,name=packages" json:"packages,omitempty"`
   127  }
   128  
   129  func (m *LockedProject) Reset()                    { *m = LockedProject{} }
   130  func (m *LockedProject) String() string            { return proto.CompactTextString(m) }
   131  func (*LockedProject) ProtoMessage()               {}
   132  func (*LockedProject) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
   133  
   134  func (m *LockedProject) GetRoot() string {
   135  	if m != nil {
   136  		return m.Root
   137  	}
   138  	return ""
   139  }
   140  
   141  func (m *LockedProject) GetSource() string {
   142  	if m != nil {
   143  		return m.Source
   144  	}
   145  	return ""
   146  }
   147  
   148  func (m *LockedProject) GetUnpairedVersion() *Constraint {
   149  	if m != nil {
   150  		return m.UnpairedVersion
   151  	}
   152  	return nil
   153  }
   154  
   155  func (m *LockedProject) GetRevision() string {
   156  	if m != nil {
   157  		return m.Revision
   158  	}
   159  	return ""
   160  }
   161  
   162  func (m *LockedProject) GetPackages() []string {
   163  	if m != nil {
   164  		return m.Packages
   165  	}
   166  	return nil
   167  }
   168  
   169  func init() {
   170  	proto.RegisterType((*Constraint)(nil), "pb.Constraint")
   171  	proto.RegisterType((*ProjectProperties)(nil), "pb.ProjectProperties")
   172  	proto.RegisterType((*LockedProject)(nil), "pb.LockedProject")
   173  	proto.RegisterEnum("pb.Constraint_Type", Constraint_Type_name, Constraint_Type_value)
   174  }
   175  
   176  func init() { proto.RegisterFile("source_cache.proto", fileDescriptor0) }
   177  
   178  var fileDescriptor0 = []byte{
   179  	// 294 bytes of a gzipped FileDescriptorProto
   180  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0x4f, 0x4f, 0xc2, 0x40,
   181  	0x14, 0xc4, 0x5d, 0x28, 0x08, 0x0f, 0x41, 0x78, 0x1a, 0xd3, 0x78, 0x6a, 0x7a, 0x91, 0x53, 0x0f,
   182  	0x78, 0xf1, 0xac, 0x1e, 0x39, 0x90, 0x6a, 0xbc, 0x9a, 0xed, 0xf2, 0x94, 0x0a, 0x76, 0x37, 0xaf,
   183  	0xdb, 0x26, 0x7c, 0x14, 0x3f, 0x84, 0xdf, 0xd1, 0x74, 0x59, 0xf1, 0x4f, 0xe2, 0xc1, 0x5b, 0xa7,
   184  	0xf3, 0xcb, 0xce, 0xcc, 0x2e, 0x60, 0xa9, 0x2b, 0x56, 0xf4, 0xa8, 0xa4, 0x5a, 0x51, 0x62, 0x58,
   185  	0x5b, 0x8d, 0x2d, 0x93, 0xc5, 0x6f, 0x02, 0xe0, 0x46, 0x17, 0xa5, 0x65, 0x99, 0x17, 0x16, 0x2f,
   186  	0x20, 0xb0, 0x5b, 0x43, 0xa1, 0x88, 0xc4, 0x74, 0x34, 0x3b, 0x49, 0x4c, 0x96, 0x7c, 0xb9, 0xc9,
   187  	0xfd, 0xd6, 0x50, 0xea, 0x00, 0x3c, 0x85, 0x4e, 0x2d, 0x37, 0x15, 0x85, 0xad, 0x48, 0x4c, 0xfb,
   188  	0xe9, 0x4e, 0xc4, 0x73, 0x08, 0x1a, 0x06, 0x8f, 0xa0, 0x97, 0x52, 0x9d, 0x97, 0xb9, 0x2e, 0xc6,
   189  	0x07, 0x08, 0xd0, 0xbd, 0x66, 0x59, 0xa8, 0xd5, 0x58, 0xe0, 0x04, 0x86, 0xb7, 0xf4, 0x24, 0xab,
   190  	0x8d, 0xf5, 0xbf, 0x5a, 0x38, 0x80, 0xc3, 0x07, 0x62, 0xc7, 0xb6, 0x1b, 0xf6, 0x8e, 0x5e, 0x6b,
   191  	0xe2, 0x71, 0x10, 0x6b, 0x98, 0x2c, 0x58, 0xbf, 0x90, 0xb2, 0x0b, 0xd6, 0x86, 0xd8, 0xe6, 0x54,
   192  	0x22, 0x42, 0xc0, 0x5a, 0x5b, 0xd7, 0xb0, 0x9f, 0xba, 0x6f, 0x3c, 0x83, 0xee, 0x6e, 0x9e, 0x6f,
   193  	0xe3, 0x15, 0x26, 0x00, 0x6a, 0xdf, 0x3e, 0x6c, 0x47, 0x62, 0x3a, 0x98, 0x8d, 0x7e, 0x6e, 0x4a,
   194  	0xbf, 0x11, 0xf1, 0xbb, 0x80, 0xe1, 0x5c, 0xab, 0x35, 0x2d, 0x7d, 0xee, 0xbf, 0xd2, 0xae, 0xe0,
   195  	0xb8, 0x2a, 0x8c, 0xcc, 0x99, 0x96, 0x7e, 0xcf, 0x1f, 0x91, 0xbf, 0x31, 0x3c, 0x87, 0x1e, 0xfb,
   196  	0xeb, 0x0a, 0x03, 0x77, 0xe6, 0x5e, 0x37, 0x9e, 0x91, 0x6a, 0x2d, 0x9f, 0xa9, 0x0c, 0x3b, 0x51,
   197  	0xbb, 0xf1, 0x3e, 0x75, 0xd6, 0x75, 0xef, 0x78, 0xf9, 0x11, 0x00, 0x00, 0xff, 0xff, 0xbd, 0x52,
   198  	0x77, 0xb3, 0xdd, 0x01, 0x00, 0x00,
   199  }