| OLD | NEW |
| (Empty) | |
| 1 // Code generated by protoc-gen-go. |
| 2 // source: github.com/luci/luci-go/vpython/api/env/spec.proto |
| 3 // DO NOT EDIT! |
| 4 |
| 5 /* |
| 6 Package env is a generated protocol buffer package. |
| 7 |
| 8 It is generated from these files: |
| 9 github.com/luci/luci-go/vpython/api/env/spec.proto |
| 10 |
| 11 It has these top-level messages: |
| 12 Spec |
| 13 */ |
| 14 package env |
| 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 type Spec struct { |
| 32 // The Python version to use. This should be of the form: |
| 33 // "Major[.Minor[.Patch]]" |
| 34 // |
| 35 // If specified, |
| 36 // - The Major version will be enforced absolutely. Python 3 will not be |
| 37 // preferred over Python 2 because '3' is greater than '2'. |
| 38 // - The remaining versions, if specified, will be regarded as *minimum* |
| 39 // versions. In other words, if "2.7.4" is specified and the system ha
s |
| 40 // "2.7.12", that will suffice. Similarly, "2.6" would accept a "2.7" |
| 41 // interpreter. |
| 42 // |
| 43 // If empty, the default Python interpreter ("python") will be used. |
| 44 PythonVersion string `protobuf:"bytes,1,opt,name=python_version
,json=pythonVersion" json:"python_version,omitempty"` |
| 45 Wheel []*Spec_Package `protobuf:"bytes,2,rep,name=wheel" json:"w
heel,omitempty"` |
| 46 // The VirtualEnv package. |
| 47 // |
| 48 // This should be left empty to use the `vpython` default package |
| 49 // (recommended). |
| 50 Virtualenv *Spec_Package `protobuf:"bytes,3,opt,name=virtualenv" json:"v
irtualenv,omitempty"` |
| 51 } |
| 52 |
| 53 func (m *Spec) Reset() { *m = Spec{} } |
| 54 func (m *Spec) String() string { return proto.CompactTextString(m) } |
| 55 func (*Spec) ProtoMessage() {} |
| 56 func (*Spec) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } |
| 57 |
| 58 func (m *Spec) GetPythonVersion() string { |
| 59 if m != nil { |
| 60 return m.PythonVersion |
| 61 } |
| 62 return "" |
| 63 } |
| 64 |
| 65 func (m *Spec) GetWheel() []*Spec_Package { |
| 66 if m != nil { |
| 67 return m.Wheel |
| 68 } |
| 69 return nil |
| 70 } |
| 71 |
| 72 func (m *Spec) GetVirtualenv() *Spec_Package { |
| 73 if m != nil { |
| 74 return m.Virtualenv |
| 75 } |
| 76 return nil |
| 77 } |
| 78 |
| 79 // A definition for a remote package. The type of package depends on the |
| 80 // configured package resolver. |
| 81 type Spec_Package struct { |
| 82 // The path of the package. |
| 83 // |
| 84 // - For CIPD, this is the package name. |
| 85 Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` |
| 86 // The package version. |
| 87 // |
| 88 // - For CIPD, this will be any recognized CIPD version (i.e., ID, tag,
or |
| 89 // ref). |
| 90 Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitem
pty"` |
| 91 } |
| 92 |
| 93 func (m *Spec_Package) Reset() { *m = Spec_Package{} } |
| 94 func (m *Spec_Package) String() string { return proto.CompactTextStri
ng(m) } |
| 95 func (*Spec_Package) ProtoMessage() {} |
| 96 func (*Spec_Package) Descriptor() ([]byte, []int) { return fileDescriptor0, []in
t{0, 0} } |
| 97 |
| 98 func (m *Spec_Package) GetPath() string { |
| 99 if m != nil { |
| 100 return m.Path |
| 101 } |
| 102 return "" |
| 103 } |
| 104 |
| 105 func (m *Spec_Package) GetVersion() string { |
| 106 if m != nil { |
| 107 return m.Version |
| 108 } |
| 109 return "" |
| 110 } |
| 111 |
| 112 func init() { |
| 113 proto.RegisterType((*Spec)(nil), "env.Spec") |
| 114 proto.RegisterType((*Spec_Package)(nil), "env.Spec.Package") |
| 115 } |
| 116 |
| 117 func init() { proto.RegisterFile("github.com/luci/luci-go/vpython/api/env/spec.p
roto", fileDescriptor0) } |
| 118 |
| 119 var fileDescriptor0 = []byte{ |
| 120 // 204 bytes of a gzipped FileDescriptorProto |
| 121 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x8f,
0xc1, 0x4a, 0xc4, 0x30, |
| 122 0x10, 0x86, 0x49, 0x5b, 0x2d, 0x8e, 0x28, 0x98, 0x53, 0xf0, 0x54, 0x04,
0xb1, 0x17, 0x13, 0xac, |
| 123 0x07, 0x5f, 0x43, 0x2a, 0x78, 0x95, 0x34, 0x0c, 0x4d, 0xb0, 0x26, 0xa1,
0x4d, 0x23, 0xbe, 0x9e, |
| 124 0x4f, 0xb6, 0x6c, 0xd2, 0xc2, 0x1e, 0xf6, 0x32, 0xcc, 0x7c, 0xf3, 0x31,
0xfc, 0x03, 0xdd, 0x68, |
| 125 0x82, 0x5e, 0x07, 0xae, 0xdc, 0x8f, 0x98, 0x56, 0x65, 0x52, 0x79, 0x1e,
0x9d, 0x88, 0xfe, 0x2f, |
| 126 0x68, 0x67, 0x85, 0xf4, 0x46, 0xa0, 0x8d, 0x62, 0xf1, 0xa8, 0xb8, 0x9f,
0x5d, 0x70, 0xb4, 0x44, |
| 127 0x1b, 0x1f, 0xfe, 0x09, 0x54, 0x1f, 0x1e, 0x15, 0x7d, 0x84, 0xdb, 0xac,
0x7e, 0x45, 0x9c, 0x17, |
| 128 0xe3, 0x2c, 0x23, 0x0d, 0x69, 0xaf, 0xfa, 0x9b, 0x4c, 0x3f, 0x33, 0xa4,
0x4f, 0x70, 0xf1, 0xab, |
| 129 0x11, 0x27, 0x56, 0x34, 0x65, 0x7b, 0xdd, 0xdd, 0x71, 0xb4, 0x91, 0x1f,
0x0f, 0xf0, 0x77, 0xa9, |
| 130 0xbe, 0xe5, 0x88, 0x7d, 0xde, 0xd3, 0x17, 0x80, 0x68, 0xe6, 0xb0, 0xca,
0x09, 0x6d, 0x64, 0x65, |
| 131 0x43, 0xce, 0xdb, 0x27, 0xd2, 0xfd, 0x1b, 0xd4, 0x1b, 0xa6, 0x14, 0x2a,
0x2f, 0x83, 0xde, 0x32, |
| 132 0xa4, 0x9e, 0x32, 0xa8, 0xf7, 0x68, 0x45, 0xc2, 0xfb, 0x38, 0x5c, 0xa6,
0x87, 0x5e, 0x0f, 0x01, |
| 133 0x00, 0x00, 0xff, 0xff, 0x1c, 0x2a, 0x9f, 0x43, 0x06, 0x01, 0x00, 0x00, |
| 134 } |
| OLD | NEW |