You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1171 rivejä
41 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/devtools/source/v1/source_context.proto
  3. package source // import "google.golang.org/genproto/googleapis/devtools/source/v1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "google.golang.org/genproto/googleapis/api/annotations"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. // The type of an Alias.
  18. type AliasContext_Kind int32
  19. const (
  20. // Do not use.
  21. AliasContext_ANY AliasContext_Kind = 0
  22. // Git tag
  23. AliasContext_FIXED AliasContext_Kind = 1
  24. // Git branch
  25. AliasContext_MOVABLE AliasContext_Kind = 2
  26. // OTHER is used to specify non-standard aliases, those not of the kinds
  27. // above. For example, if a Git repo has a ref named "refs/foo/bar", it
  28. // is considered to be of kind OTHER.
  29. AliasContext_OTHER AliasContext_Kind = 4
  30. )
  31. var AliasContext_Kind_name = map[int32]string{
  32. 0: "ANY",
  33. 1: "FIXED",
  34. 2: "MOVABLE",
  35. 4: "OTHER",
  36. }
  37. var AliasContext_Kind_value = map[string]int32{
  38. "ANY": 0,
  39. "FIXED": 1,
  40. "MOVABLE": 2,
  41. "OTHER": 4,
  42. }
  43. func (x AliasContext_Kind) String() string {
  44. return proto.EnumName(AliasContext_Kind_name, int32(x))
  45. }
  46. func (AliasContext_Kind) EnumDescriptor() ([]byte, []int) {
  47. return fileDescriptor_source_context_1ea7723ad5b6ed16, []int{2, 0}
  48. }
  49. // A SourceContext is a reference to a tree of files. A SourceContext together
  50. // with a path point to a unique revision of a single file or directory.
  51. type SourceContext struct {
  52. // A SourceContext can refer any one of the following types of repositories.
  53. //
  54. // Types that are valid to be assigned to Context:
  55. // *SourceContext_CloudRepo
  56. // *SourceContext_CloudWorkspace
  57. // *SourceContext_Gerrit
  58. // *SourceContext_Git
  59. Context isSourceContext_Context `protobuf_oneof:"context"`
  60. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  61. XXX_unrecognized []byte `json:"-"`
  62. XXX_sizecache int32 `json:"-"`
  63. }
  64. func (m *SourceContext) Reset() { *m = SourceContext{} }
  65. func (m *SourceContext) String() string { return proto.CompactTextString(m) }
  66. func (*SourceContext) ProtoMessage() {}
  67. func (*SourceContext) Descriptor() ([]byte, []int) {
  68. return fileDescriptor_source_context_1ea7723ad5b6ed16, []int{0}
  69. }
  70. func (m *SourceContext) XXX_Unmarshal(b []byte) error {
  71. return xxx_messageInfo_SourceContext.Unmarshal(m, b)
  72. }
  73. func (m *SourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  74. return xxx_messageInfo_SourceContext.Marshal(b, m, deterministic)
  75. }
  76. func (dst *SourceContext) XXX_Merge(src proto.Message) {
  77. xxx_messageInfo_SourceContext.Merge(dst, src)
  78. }
  79. func (m *SourceContext) XXX_Size() int {
  80. return xxx_messageInfo_SourceContext.Size(m)
  81. }
  82. func (m *SourceContext) XXX_DiscardUnknown() {
  83. xxx_messageInfo_SourceContext.DiscardUnknown(m)
  84. }
  85. var xxx_messageInfo_SourceContext proto.InternalMessageInfo
  86. type isSourceContext_Context interface {
  87. isSourceContext_Context()
  88. }
  89. type SourceContext_CloudRepo struct {
  90. CloudRepo *CloudRepoSourceContext `protobuf:"bytes,1,opt,name=cloud_repo,json=cloudRepo,proto3,oneof"`
  91. }
  92. type SourceContext_CloudWorkspace struct {
  93. CloudWorkspace *CloudWorkspaceSourceContext `protobuf:"bytes,2,opt,name=cloud_workspace,json=cloudWorkspace,proto3,oneof"`
  94. }
  95. type SourceContext_Gerrit struct {
  96. Gerrit *GerritSourceContext `protobuf:"bytes,3,opt,name=gerrit,proto3,oneof"`
  97. }
  98. type SourceContext_Git struct {
  99. Git *GitSourceContext `protobuf:"bytes,6,opt,name=git,proto3,oneof"`
  100. }
  101. func (*SourceContext_CloudRepo) isSourceContext_Context() {}
  102. func (*SourceContext_CloudWorkspace) isSourceContext_Context() {}
  103. func (*SourceContext_Gerrit) isSourceContext_Context() {}
  104. func (*SourceContext_Git) isSourceContext_Context() {}
  105. func (m *SourceContext) GetContext() isSourceContext_Context {
  106. if m != nil {
  107. return m.Context
  108. }
  109. return nil
  110. }
  111. func (m *SourceContext) GetCloudRepo() *CloudRepoSourceContext {
  112. if x, ok := m.GetContext().(*SourceContext_CloudRepo); ok {
  113. return x.CloudRepo
  114. }
  115. return nil
  116. }
  117. func (m *SourceContext) GetCloudWorkspace() *CloudWorkspaceSourceContext {
  118. if x, ok := m.GetContext().(*SourceContext_CloudWorkspace); ok {
  119. return x.CloudWorkspace
  120. }
  121. return nil
  122. }
  123. func (m *SourceContext) GetGerrit() *GerritSourceContext {
  124. if x, ok := m.GetContext().(*SourceContext_Gerrit); ok {
  125. return x.Gerrit
  126. }
  127. return nil
  128. }
  129. func (m *SourceContext) GetGit() *GitSourceContext {
  130. if x, ok := m.GetContext().(*SourceContext_Git); ok {
  131. return x.Git
  132. }
  133. return nil
  134. }
  135. // XXX_OneofFuncs is for the internal use of the proto package.
  136. func (*SourceContext) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  137. return _SourceContext_OneofMarshaler, _SourceContext_OneofUnmarshaler, _SourceContext_OneofSizer, []interface{}{
  138. (*SourceContext_CloudRepo)(nil),
  139. (*SourceContext_CloudWorkspace)(nil),
  140. (*SourceContext_Gerrit)(nil),
  141. (*SourceContext_Git)(nil),
  142. }
  143. }
  144. func _SourceContext_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  145. m := msg.(*SourceContext)
  146. // context
  147. switch x := m.Context.(type) {
  148. case *SourceContext_CloudRepo:
  149. b.EncodeVarint(1<<3 | proto.WireBytes)
  150. if err := b.EncodeMessage(x.CloudRepo); err != nil {
  151. return err
  152. }
  153. case *SourceContext_CloudWorkspace:
  154. b.EncodeVarint(2<<3 | proto.WireBytes)
  155. if err := b.EncodeMessage(x.CloudWorkspace); err != nil {
  156. return err
  157. }
  158. case *SourceContext_Gerrit:
  159. b.EncodeVarint(3<<3 | proto.WireBytes)
  160. if err := b.EncodeMessage(x.Gerrit); err != nil {
  161. return err
  162. }
  163. case *SourceContext_Git:
  164. b.EncodeVarint(6<<3 | proto.WireBytes)
  165. if err := b.EncodeMessage(x.Git); err != nil {
  166. return err
  167. }
  168. case nil:
  169. default:
  170. return fmt.Errorf("SourceContext.Context has unexpected type %T", x)
  171. }
  172. return nil
  173. }
  174. func _SourceContext_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  175. m := msg.(*SourceContext)
  176. switch tag {
  177. case 1: // context.cloud_repo
  178. if wire != proto.WireBytes {
  179. return true, proto.ErrInternalBadWireType
  180. }
  181. msg := new(CloudRepoSourceContext)
  182. err := b.DecodeMessage(msg)
  183. m.Context = &SourceContext_CloudRepo{msg}
  184. return true, err
  185. case 2: // context.cloud_workspace
  186. if wire != proto.WireBytes {
  187. return true, proto.ErrInternalBadWireType
  188. }
  189. msg := new(CloudWorkspaceSourceContext)
  190. err := b.DecodeMessage(msg)
  191. m.Context = &SourceContext_CloudWorkspace{msg}
  192. return true, err
  193. case 3: // context.gerrit
  194. if wire != proto.WireBytes {
  195. return true, proto.ErrInternalBadWireType
  196. }
  197. msg := new(GerritSourceContext)
  198. err := b.DecodeMessage(msg)
  199. m.Context = &SourceContext_Gerrit{msg}
  200. return true, err
  201. case 6: // context.git
  202. if wire != proto.WireBytes {
  203. return true, proto.ErrInternalBadWireType
  204. }
  205. msg := new(GitSourceContext)
  206. err := b.DecodeMessage(msg)
  207. m.Context = &SourceContext_Git{msg}
  208. return true, err
  209. default:
  210. return false, nil
  211. }
  212. }
  213. func _SourceContext_OneofSizer(msg proto.Message) (n int) {
  214. m := msg.(*SourceContext)
  215. // context
  216. switch x := m.Context.(type) {
  217. case *SourceContext_CloudRepo:
  218. s := proto.Size(x.CloudRepo)
  219. n += 1 // tag and wire
  220. n += proto.SizeVarint(uint64(s))
  221. n += s
  222. case *SourceContext_CloudWorkspace:
  223. s := proto.Size(x.CloudWorkspace)
  224. n += 1 // tag and wire
  225. n += proto.SizeVarint(uint64(s))
  226. n += s
  227. case *SourceContext_Gerrit:
  228. s := proto.Size(x.Gerrit)
  229. n += 1 // tag and wire
  230. n += proto.SizeVarint(uint64(s))
  231. n += s
  232. case *SourceContext_Git:
  233. s := proto.Size(x.Git)
  234. n += 1 // tag and wire
  235. n += proto.SizeVarint(uint64(s))
  236. n += s
  237. case nil:
  238. default:
  239. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  240. }
  241. return n
  242. }
  243. // An ExtendedSourceContext is a SourceContext combined with additional
  244. // details describing the context.
  245. type ExtendedSourceContext struct {
  246. // Any source context.
  247. Context *SourceContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
  248. // Labels with user defined metadata.
  249. Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  250. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  251. XXX_unrecognized []byte `json:"-"`
  252. XXX_sizecache int32 `json:"-"`
  253. }
  254. func (m *ExtendedSourceContext) Reset() { *m = ExtendedSourceContext{} }
  255. func (m *ExtendedSourceContext) String() string { return proto.CompactTextString(m) }
  256. func (*ExtendedSourceContext) ProtoMessage() {}
  257. func (*ExtendedSourceContext) Descriptor() ([]byte, []int) {
  258. return fileDescriptor_source_context_1ea7723ad5b6ed16, []int{1}
  259. }
  260. func (m *ExtendedSourceContext) XXX_Unmarshal(b []byte) error {
  261. return xxx_messageInfo_ExtendedSourceContext.Unmarshal(m, b)
  262. }
  263. func (m *ExtendedSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  264. return xxx_messageInfo_ExtendedSourceContext.Marshal(b, m, deterministic)
  265. }
  266. func (dst *ExtendedSourceContext) XXX_Merge(src proto.Message) {
  267. xxx_messageInfo_ExtendedSourceContext.Merge(dst, src)
  268. }
  269. func (m *ExtendedSourceContext) XXX_Size() int {
  270. return xxx_messageInfo_ExtendedSourceContext.Size(m)
  271. }
  272. func (m *ExtendedSourceContext) XXX_DiscardUnknown() {
  273. xxx_messageInfo_ExtendedSourceContext.DiscardUnknown(m)
  274. }
  275. var xxx_messageInfo_ExtendedSourceContext proto.InternalMessageInfo
  276. func (m *ExtendedSourceContext) GetContext() *SourceContext {
  277. if m != nil {
  278. return m.Context
  279. }
  280. return nil
  281. }
  282. func (m *ExtendedSourceContext) GetLabels() map[string]string {
  283. if m != nil {
  284. return m.Labels
  285. }
  286. return nil
  287. }
  288. // An alias to a repo revision.
  289. type AliasContext struct {
  290. // The alias kind.
  291. Kind AliasContext_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=google.devtools.source.v1.AliasContext_Kind" json:"kind,omitempty"`
  292. // The alias name.
  293. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  294. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  295. XXX_unrecognized []byte `json:"-"`
  296. XXX_sizecache int32 `json:"-"`
  297. }
  298. func (m *AliasContext) Reset() { *m = AliasContext{} }
  299. func (m *AliasContext) String() string { return proto.CompactTextString(m) }
  300. func (*AliasContext) ProtoMessage() {}
  301. func (*AliasContext) Descriptor() ([]byte, []int) {
  302. return fileDescriptor_source_context_1ea7723ad5b6ed16, []int{2}
  303. }
  304. func (m *AliasContext) XXX_Unmarshal(b []byte) error {
  305. return xxx_messageInfo_AliasContext.Unmarshal(m, b)
  306. }
  307. func (m *AliasContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  308. return xxx_messageInfo_AliasContext.Marshal(b, m, deterministic)
  309. }
  310. func (dst *AliasContext) XXX_Merge(src proto.Message) {
  311. xxx_messageInfo_AliasContext.Merge(dst, src)
  312. }
  313. func (m *AliasContext) XXX_Size() int {
  314. return xxx_messageInfo_AliasContext.Size(m)
  315. }
  316. func (m *AliasContext) XXX_DiscardUnknown() {
  317. xxx_messageInfo_AliasContext.DiscardUnknown(m)
  318. }
  319. var xxx_messageInfo_AliasContext proto.InternalMessageInfo
  320. func (m *AliasContext) GetKind() AliasContext_Kind {
  321. if m != nil {
  322. return m.Kind
  323. }
  324. return AliasContext_ANY
  325. }
  326. func (m *AliasContext) GetName() string {
  327. if m != nil {
  328. return m.Name
  329. }
  330. return ""
  331. }
  332. // A CloudRepoSourceContext denotes a particular revision in a cloud
  333. // repo (a repo hosted by the Google Cloud Platform).
  334. type CloudRepoSourceContext struct {
  335. // The ID of the repo.
  336. RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
  337. // A revision in a cloud repository can be identified by either its revision
  338. // ID or its Alias.
  339. //
  340. // Types that are valid to be assigned to Revision:
  341. // *CloudRepoSourceContext_RevisionId
  342. // *CloudRepoSourceContext_AliasName
  343. // *CloudRepoSourceContext_AliasContext
  344. Revision isCloudRepoSourceContext_Revision `protobuf_oneof:"revision"`
  345. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  346. XXX_unrecognized []byte `json:"-"`
  347. XXX_sizecache int32 `json:"-"`
  348. }
  349. func (m *CloudRepoSourceContext) Reset() { *m = CloudRepoSourceContext{} }
  350. func (m *CloudRepoSourceContext) String() string { return proto.CompactTextString(m) }
  351. func (*CloudRepoSourceContext) ProtoMessage() {}
  352. func (*CloudRepoSourceContext) Descriptor() ([]byte, []int) {
  353. return fileDescriptor_source_context_1ea7723ad5b6ed16, []int{3}
  354. }
  355. func (m *CloudRepoSourceContext) XXX_Unmarshal(b []byte) error {
  356. return xxx_messageInfo_CloudRepoSourceContext.Unmarshal(m, b)
  357. }
  358. func (m *CloudRepoSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  359. return xxx_messageInfo_CloudRepoSourceContext.Marshal(b, m, deterministic)
  360. }
  361. func (dst *CloudRepoSourceContext) XXX_Merge(src proto.Message) {
  362. xxx_messageInfo_CloudRepoSourceContext.Merge(dst, src)
  363. }
  364. func (m *CloudRepoSourceContext) XXX_Size() int {
  365. return xxx_messageInfo_CloudRepoSourceContext.Size(m)
  366. }
  367. func (m *CloudRepoSourceContext) XXX_DiscardUnknown() {
  368. xxx_messageInfo_CloudRepoSourceContext.DiscardUnknown(m)
  369. }
  370. var xxx_messageInfo_CloudRepoSourceContext proto.InternalMessageInfo
  371. func (m *CloudRepoSourceContext) GetRepoId() *RepoId {
  372. if m != nil {
  373. return m.RepoId
  374. }
  375. return nil
  376. }
  377. type isCloudRepoSourceContext_Revision interface {
  378. isCloudRepoSourceContext_Revision()
  379. }
  380. type CloudRepoSourceContext_RevisionId struct {
  381. RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3,oneof"`
  382. }
  383. type CloudRepoSourceContext_AliasName struct {
  384. AliasName string `protobuf:"bytes,3,opt,name=alias_name,json=aliasName,proto3,oneof"`
  385. }
  386. type CloudRepoSourceContext_AliasContext struct {
  387. AliasContext *AliasContext `protobuf:"bytes,4,opt,name=alias_context,json=aliasContext,proto3,oneof"`
  388. }
  389. func (*CloudRepoSourceContext_RevisionId) isCloudRepoSourceContext_Revision() {}
  390. func (*CloudRepoSourceContext_AliasName) isCloudRepoSourceContext_Revision() {}
  391. func (*CloudRepoSourceContext_AliasContext) isCloudRepoSourceContext_Revision() {}
  392. func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision {
  393. if m != nil {
  394. return m.Revision
  395. }
  396. return nil
  397. }
  398. func (m *CloudRepoSourceContext) GetRevisionId() string {
  399. if x, ok := m.GetRevision().(*CloudRepoSourceContext_RevisionId); ok {
  400. return x.RevisionId
  401. }
  402. return ""
  403. }
  404. func (m *CloudRepoSourceContext) GetAliasName() string {
  405. if x, ok := m.GetRevision().(*CloudRepoSourceContext_AliasName); ok {
  406. return x.AliasName
  407. }
  408. return ""
  409. }
  410. func (m *CloudRepoSourceContext) GetAliasContext() *AliasContext {
  411. if x, ok := m.GetRevision().(*CloudRepoSourceContext_AliasContext); ok {
  412. return x.AliasContext
  413. }
  414. return nil
  415. }
  416. // XXX_OneofFuncs is for the internal use of the proto package.
  417. func (*CloudRepoSourceContext) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  418. return _CloudRepoSourceContext_OneofMarshaler, _CloudRepoSourceContext_OneofUnmarshaler, _CloudRepoSourceContext_OneofSizer, []interface{}{
  419. (*CloudRepoSourceContext_RevisionId)(nil),
  420. (*CloudRepoSourceContext_AliasName)(nil),
  421. (*CloudRepoSourceContext_AliasContext)(nil),
  422. }
  423. }
  424. func _CloudRepoSourceContext_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  425. m := msg.(*CloudRepoSourceContext)
  426. // revision
  427. switch x := m.Revision.(type) {
  428. case *CloudRepoSourceContext_RevisionId:
  429. b.EncodeVarint(2<<3 | proto.WireBytes)
  430. b.EncodeStringBytes(x.RevisionId)
  431. case *CloudRepoSourceContext_AliasName:
  432. b.EncodeVarint(3<<3 | proto.WireBytes)
  433. b.EncodeStringBytes(x.AliasName)
  434. case *CloudRepoSourceContext_AliasContext:
  435. b.EncodeVarint(4<<3 | proto.WireBytes)
  436. if err := b.EncodeMessage(x.AliasContext); err != nil {
  437. return err
  438. }
  439. case nil:
  440. default:
  441. return fmt.Errorf("CloudRepoSourceContext.Revision has unexpected type %T", x)
  442. }
  443. return nil
  444. }
  445. func _CloudRepoSourceContext_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  446. m := msg.(*CloudRepoSourceContext)
  447. switch tag {
  448. case 2: // revision.revision_id
  449. if wire != proto.WireBytes {
  450. return true, proto.ErrInternalBadWireType
  451. }
  452. x, err := b.DecodeStringBytes()
  453. m.Revision = &CloudRepoSourceContext_RevisionId{x}
  454. return true, err
  455. case 3: // revision.alias_name
  456. if wire != proto.WireBytes {
  457. return true, proto.ErrInternalBadWireType
  458. }
  459. x, err := b.DecodeStringBytes()
  460. m.Revision = &CloudRepoSourceContext_AliasName{x}
  461. return true, err
  462. case 4: // revision.alias_context
  463. if wire != proto.WireBytes {
  464. return true, proto.ErrInternalBadWireType
  465. }
  466. msg := new(AliasContext)
  467. err := b.DecodeMessage(msg)
  468. m.Revision = &CloudRepoSourceContext_AliasContext{msg}
  469. return true, err
  470. default:
  471. return false, nil
  472. }
  473. }
  474. func _CloudRepoSourceContext_OneofSizer(msg proto.Message) (n int) {
  475. m := msg.(*CloudRepoSourceContext)
  476. // revision
  477. switch x := m.Revision.(type) {
  478. case *CloudRepoSourceContext_RevisionId:
  479. n += 1 // tag and wire
  480. n += proto.SizeVarint(uint64(len(x.RevisionId)))
  481. n += len(x.RevisionId)
  482. case *CloudRepoSourceContext_AliasName:
  483. n += 1 // tag and wire
  484. n += proto.SizeVarint(uint64(len(x.AliasName)))
  485. n += len(x.AliasName)
  486. case *CloudRepoSourceContext_AliasContext:
  487. s := proto.Size(x.AliasContext)
  488. n += 1 // tag and wire
  489. n += proto.SizeVarint(uint64(s))
  490. n += s
  491. case nil:
  492. default:
  493. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  494. }
  495. return n
  496. }
  497. // A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
  498. type CloudWorkspaceSourceContext struct {
  499. // The ID of the workspace.
  500. WorkspaceId *CloudWorkspaceId `protobuf:"bytes,1,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
  501. // The ID of the snapshot.
  502. // An empty snapshot_id refers to the most recent snapshot.
  503. SnapshotId string `protobuf:"bytes,2,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"`
  504. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  505. XXX_unrecognized []byte `json:"-"`
  506. XXX_sizecache int32 `json:"-"`
  507. }
  508. func (m *CloudWorkspaceSourceContext) Reset() { *m = CloudWorkspaceSourceContext{} }
  509. func (m *CloudWorkspaceSourceContext) String() string { return proto.CompactTextString(m) }
  510. func (*CloudWorkspaceSourceContext) ProtoMessage() {}
  511. func (*CloudWorkspaceSourceContext) Descriptor() ([]byte, []int) {
  512. return fileDescriptor_source_context_1ea7723ad5b6ed16, []int{4}
  513. }
  514. func (m *CloudWorkspaceSourceContext) XXX_Unmarshal(b []byte) error {
  515. return xxx_messageInfo_CloudWorkspaceSourceContext.Unmarshal(m, b)
  516. }
  517. func (m *CloudWorkspaceSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  518. return xxx_messageInfo_CloudWorkspaceSourceContext.Marshal(b, m, deterministic)
  519. }
  520. func (dst *CloudWorkspaceSourceContext) XXX_Merge(src proto.Message) {
  521. xxx_messageInfo_CloudWorkspaceSourceContext.Merge(dst, src)
  522. }
  523. func (m *CloudWorkspaceSourceContext) XXX_Size() int {
  524. return xxx_messageInfo_CloudWorkspaceSourceContext.Size(m)
  525. }
  526. func (m *CloudWorkspaceSourceContext) XXX_DiscardUnknown() {
  527. xxx_messageInfo_CloudWorkspaceSourceContext.DiscardUnknown(m)
  528. }
  529. var xxx_messageInfo_CloudWorkspaceSourceContext proto.InternalMessageInfo
  530. func (m *CloudWorkspaceSourceContext) GetWorkspaceId() *CloudWorkspaceId {
  531. if m != nil {
  532. return m.WorkspaceId
  533. }
  534. return nil
  535. }
  536. func (m *CloudWorkspaceSourceContext) GetSnapshotId() string {
  537. if m != nil {
  538. return m.SnapshotId
  539. }
  540. return ""
  541. }
  542. // A SourceContext referring to a Gerrit project.
  543. type GerritSourceContext struct {
  544. // The URI of a running Gerrit instance.
  545. HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri,proto3" json:"host_uri,omitempty"`
  546. // The full project name within the host. Projects may be nested, so
  547. // "project/subproject" is a valid project name.
  548. // The "repo name" is hostURI/project.
  549. GerritProject string `protobuf:"bytes,2,opt,name=gerrit_project,json=gerritProject,proto3" json:"gerrit_project,omitempty"`
  550. // A revision in a Gerrit project can be identified by either its revision ID
  551. // or its alias.
  552. //
  553. // Types that are valid to be assigned to Revision:
  554. // *GerritSourceContext_RevisionId
  555. // *GerritSourceContext_AliasName
  556. // *GerritSourceContext_AliasContext
  557. Revision isGerritSourceContext_Revision `protobuf_oneof:"revision"`
  558. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  559. XXX_unrecognized []byte `json:"-"`
  560. XXX_sizecache int32 `json:"-"`
  561. }
  562. func (m *GerritSourceContext) Reset() { *m = GerritSourceContext{} }
  563. func (m *GerritSourceContext) String() string { return proto.CompactTextString(m) }
  564. func (*GerritSourceContext) ProtoMessage() {}
  565. func (*GerritSourceContext) Descriptor() ([]byte, []int) {
  566. return fileDescriptor_source_context_1ea7723ad5b6ed16, []int{5}
  567. }
  568. func (m *GerritSourceContext) XXX_Unmarshal(b []byte) error {
  569. return xxx_messageInfo_GerritSourceContext.Unmarshal(m, b)
  570. }
  571. func (m *GerritSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  572. return xxx_messageInfo_GerritSourceContext.Marshal(b, m, deterministic)
  573. }
  574. func (dst *GerritSourceContext) XXX_Merge(src proto.Message) {
  575. xxx_messageInfo_GerritSourceContext.Merge(dst, src)
  576. }
  577. func (m *GerritSourceContext) XXX_Size() int {
  578. return xxx_messageInfo_GerritSourceContext.Size(m)
  579. }
  580. func (m *GerritSourceContext) XXX_DiscardUnknown() {
  581. xxx_messageInfo_GerritSourceContext.DiscardUnknown(m)
  582. }
  583. var xxx_messageInfo_GerritSourceContext proto.InternalMessageInfo
  584. func (m *GerritSourceContext) GetHostUri() string {
  585. if m != nil {
  586. return m.HostUri
  587. }
  588. return ""
  589. }
  590. func (m *GerritSourceContext) GetGerritProject() string {
  591. if m != nil {
  592. return m.GerritProject
  593. }
  594. return ""
  595. }
  596. type isGerritSourceContext_Revision interface {
  597. isGerritSourceContext_Revision()
  598. }
  599. type GerritSourceContext_RevisionId struct {
  600. RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3,oneof"`
  601. }
  602. type GerritSourceContext_AliasName struct {
  603. AliasName string `protobuf:"bytes,4,opt,name=alias_name,json=aliasName,proto3,oneof"`
  604. }
  605. type GerritSourceContext_AliasContext struct {
  606. AliasContext *AliasContext `protobuf:"bytes,5,opt,name=alias_context,json=aliasContext,proto3,oneof"`
  607. }
  608. func (*GerritSourceContext_RevisionId) isGerritSourceContext_Revision() {}
  609. func (*GerritSourceContext_AliasName) isGerritSourceContext_Revision() {}
  610. func (*GerritSourceContext_AliasContext) isGerritSourceContext_Revision() {}
  611. func (m *GerritSourceContext) GetRevision() isGerritSourceContext_Revision {
  612. if m != nil {
  613. return m.Revision
  614. }
  615. return nil
  616. }
  617. func (m *GerritSourceContext) GetRevisionId() string {
  618. if x, ok := m.GetRevision().(*GerritSourceContext_RevisionId); ok {
  619. return x.RevisionId
  620. }
  621. return ""
  622. }
  623. func (m *GerritSourceContext) GetAliasName() string {
  624. if x, ok := m.GetRevision().(*GerritSourceContext_AliasName); ok {
  625. return x.AliasName
  626. }
  627. return ""
  628. }
  629. func (m *GerritSourceContext) GetAliasContext() *AliasContext {
  630. if x, ok := m.GetRevision().(*GerritSourceContext_AliasContext); ok {
  631. return x.AliasContext
  632. }
  633. return nil
  634. }
  635. // XXX_OneofFuncs is for the internal use of the proto package.
  636. func (*GerritSourceContext) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  637. return _GerritSourceContext_OneofMarshaler, _GerritSourceContext_OneofUnmarshaler, _GerritSourceContext_OneofSizer, []interface{}{
  638. (*GerritSourceContext_RevisionId)(nil),
  639. (*GerritSourceContext_AliasName)(nil),
  640. (*GerritSourceContext_AliasContext)(nil),
  641. }
  642. }
  643. func _GerritSourceContext_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  644. m := msg.(*GerritSourceContext)
  645. // revision
  646. switch x := m.Revision.(type) {
  647. case *GerritSourceContext_RevisionId:
  648. b.EncodeVarint(3<<3 | proto.WireBytes)
  649. b.EncodeStringBytes(x.RevisionId)
  650. case *GerritSourceContext_AliasName:
  651. b.EncodeVarint(4<<3 | proto.WireBytes)
  652. b.EncodeStringBytes(x.AliasName)
  653. case *GerritSourceContext_AliasContext:
  654. b.EncodeVarint(5<<3 | proto.WireBytes)
  655. if err := b.EncodeMessage(x.AliasContext); err != nil {
  656. return err
  657. }
  658. case nil:
  659. default:
  660. return fmt.Errorf("GerritSourceContext.Revision has unexpected type %T", x)
  661. }
  662. return nil
  663. }
  664. func _GerritSourceContext_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  665. m := msg.(*GerritSourceContext)
  666. switch tag {
  667. case 3: // revision.revision_id
  668. if wire != proto.WireBytes {
  669. return true, proto.ErrInternalBadWireType
  670. }
  671. x, err := b.DecodeStringBytes()
  672. m.Revision = &GerritSourceContext_RevisionId{x}
  673. return true, err
  674. case 4: // revision.alias_name
  675. if wire != proto.WireBytes {
  676. return true, proto.ErrInternalBadWireType
  677. }
  678. x, err := b.DecodeStringBytes()
  679. m.Revision = &GerritSourceContext_AliasName{x}
  680. return true, err
  681. case 5: // revision.alias_context
  682. if wire != proto.WireBytes {
  683. return true, proto.ErrInternalBadWireType
  684. }
  685. msg := new(AliasContext)
  686. err := b.DecodeMessage(msg)
  687. m.Revision = &GerritSourceContext_AliasContext{msg}
  688. return true, err
  689. default:
  690. return false, nil
  691. }
  692. }
  693. func _GerritSourceContext_OneofSizer(msg proto.Message) (n int) {
  694. m := msg.(*GerritSourceContext)
  695. // revision
  696. switch x := m.Revision.(type) {
  697. case *GerritSourceContext_RevisionId:
  698. n += 1 // tag and wire
  699. n += proto.SizeVarint(uint64(len(x.RevisionId)))
  700. n += len(x.RevisionId)
  701. case *GerritSourceContext_AliasName:
  702. n += 1 // tag and wire
  703. n += proto.SizeVarint(uint64(len(x.AliasName)))
  704. n += len(x.AliasName)
  705. case *GerritSourceContext_AliasContext:
  706. s := proto.Size(x.AliasContext)
  707. n += 1 // tag and wire
  708. n += proto.SizeVarint(uint64(s))
  709. n += s
  710. case nil:
  711. default:
  712. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  713. }
  714. return n
  715. }
  716. // A GitSourceContext denotes a particular revision in a third party Git
  717. // repository (e.g. GitHub).
  718. type GitSourceContext struct {
  719. // Git repository URL.
  720. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
  721. // Git commit hash.
  722. // required.
  723. RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"`
  724. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  725. XXX_unrecognized []byte `json:"-"`
  726. XXX_sizecache int32 `json:"-"`
  727. }
  728. func (m *GitSourceContext) Reset() { *m = GitSourceContext{} }
  729. func (m *GitSourceContext) String() string { return proto.CompactTextString(m) }
  730. func (*GitSourceContext) ProtoMessage() {}
  731. func (*GitSourceContext) Descriptor() ([]byte, []int) {
  732. return fileDescriptor_source_context_1ea7723ad5b6ed16, []int{6}
  733. }
  734. func (m *GitSourceContext) XXX_Unmarshal(b []byte) error {
  735. return xxx_messageInfo_GitSourceContext.Unmarshal(m, b)
  736. }
  737. func (m *GitSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  738. return xxx_messageInfo_GitSourceContext.Marshal(b, m, deterministic)
  739. }
  740. func (dst *GitSourceContext) XXX_Merge(src proto.Message) {
  741. xxx_messageInfo_GitSourceContext.Merge(dst, src)
  742. }
  743. func (m *GitSourceContext) XXX_Size() int {
  744. return xxx_messageInfo_GitSourceContext.Size(m)
  745. }
  746. func (m *GitSourceContext) XXX_DiscardUnknown() {
  747. xxx_messageInfo_GitSourceContext.DiscardUnknown(m)
  748. }
  749. var xxx_messageInfo_GitSourceContext proto.InternalMessageInfo
  750. func (m *GitSourceContext) GetUrl() string {
  751. if m != nil {
  752. return m.Url
  753. }
  754. return ""
  755. }
  756. func (m *GitSourceContext) GetRevisionId() string {
  757. if m != nil {
  758. return m.RevisionId
  759. }
  760. return ""
  761. }
  762. // A unique identifier for a cloud repo.
  763. type RepoId struct {
  764. // A cloud repository can be identified by either its project ID and
  765. // repository name combination, or its globally unique identifier.
  766. //
  767. // Types that are valid to be assigned to Id:
  768. // *RepoId_ProjectRepoId
  769. // *RepoId_Uid
  770. Id isRepoId_Id `protobuf_oneof:"id"`
  771. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  772. XXX_unrecognized []byte `json:"-"`
  773. XXX_sizecache int32 `json:"-"`
  774. }
  775. func (m *RepoId) Reset() { *m = RepoId{} }
  776. func (m *RepoId) String() string { return proto.CompactTextString(m) }
  777. func (*RepoId) ProtoMessage() {}
  778. func (*RepoId) Descriptor() ([]byte, []int) {
  779. return fileDescriptor_source_context_1ea7723ad5b6ed16, []int{7}
  780. }
  781. func (m *RepoId) XXX_Unmarshal(b []byte) error {
  782. return xxx_messageInfo_RepoId.Unmarshal(m, b)
  783. }
  784. func (m *RepoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  785. return xxx_messageInfo_RepoId.Marshal(b, m, deterministic)
  786. }
  787. func (dst *RepoId) XXX_Merge(src proto.Message) {
  788. xxx_messageInfo_RepoId.Merge(dst, src)
  789. }
  790. func (m *RepoId) XXX_Size() int {
  791. return xxx_messageInfo_RepoId.Size(m)
  792. }
  793. func (m *RepoId) XXX_DiscardUnknown() {
  794. xxx_messageInfo_RepoId.DiscardUnknown(m)
  795. }
  796. var xxx_messageInfo_RepoId proto.InternalMessageInfo
  797. type isRepoId_Id interface {
  798. isRepoId_Id()
  799. }
  800. type RepoId_ProjectRepoId struct {
  801. ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id,json=projectRepoId,proto3,oneof"`
  802. }
  803. type RepoId_Uid struct {
  804. Uid string `protobuf:"bytes,2,opt,name=uid,proto3,oneof"`
  805. }
  806. func (*RepoId_ProjectRepoId) isRepoId_Id() {}
  807. func (*RepoId_Uid) isRepoId_Id() {}
  808. func (m *RepoId) GetId() isRepoId_Id {
  809. if m != nil {
  810. return m.Id
  811. }
  812. return nil
  813. }
  814. func (m *RepoId) GetProjectRepoId() *ProjectRepoId {
  815. if x, ok := m.GetId().(*RepoId_ProjectRepoId); ok {
  816. return x.ProjectRepoId
  817. }
  818. return nil
  819. }
  820. func (m *RepoId) GetUid() string {
  821. if x, ok := m.GetId().(*RepoId_Uid); ok {
  822. return x.Uid
  823. }
  824. return ""
  825. }
  826. // XXX_OneofFuncs is for the internal use of the proto package.
  827. func (*RepoId) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  828. return _RepoId_OneofMarshaler, _RepoId_OneofUnmarshaler, _RepoId_OneofSizer, []interface{}{
  829. (*RepoId_ProjectRepoId)(nil),
  830. (*RepoId_Uid)(nil),
  831. }
  832. }
  833. func _RepoId_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  834. m := msg.(*RepoId)
  835. // id
  836. switch x := m.Id.(type) {
  837. case *RepoId_ProjectRepoId:
  838. b.EncodeVarint(1<<3 | proto.WireBytes)
  839. if err := b.EncodeMessage(x.ProjectRepoId); err != nil {
  840. return err
  841. }
  842. case *RepoId_Uid:
  843. b.EncodeVarint(2<<3 | proto.WireBytes)
  844. b.EncodeStringBytes(x.Uid)
  845. case nil:
  846. default:
  847. return fmt.Errorf("RepoId.Id has unexpected type %T", x)
  848. }
  849. return nil
  850. }
  851. func _RepoId_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  852. m := msg.(*RepoId)
  853. switch tag {
  854. case 1: // id.project_repo_id
  855. if wire != proto.WireBytes {
  856. return true, proto.ErrInternalBadWireType
  857. }
  858. msg := new(ProjectRepoId)
  859. err := b.DecodeMessage(msg)
  860. m.Id = &RepoId_ProjectRepoId{msg}
  861. return true, err
  862. case 2: // id.uid
  863. if wire != proto.WireBytes {
  864. return true, proto.ErrInternalBadWireType
  865. }
  866. x, err := b.DecodeStringBytes()
  867. m.Id = &RepoId_Uid{x}
  868. return true, err
  869. default:
  870. return false, nil
  871. }
  872. }
  873. func _RepoId_OneofSizer(msg proto.Message) (n int) {
  874. m := msg.(*RepoId)
  875. // id
  876. switch x := m.Id.(type) {
  877. case *RepoId_ProjectRepoId:
  878. s := proto.Size(x.ProjectRepoId)
  879. n += 1 // tag and wire
  880. n += proto.SizeVarint(uint64(s))
  881. n += s
  882. case *RepoId_Uid:
  883. n += 1 // tag and wire
  884. n += proto.SizeVarint(uint64(len(x.Uid)))
  885. n += len(x.Uid)
  886. case nil:
  887. default:
  888. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  889. }
  890. return n
  891. }
  892. // Selects a repo using a Google Cloud Platform project ID
  893. // (e.g. winged-cargo-31) and a repo name within that project.
  894. type ProjectRepoId struct {
  895. // The ID of the project.
  896. ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
  897. // The name of the repo. Leave empty for the default repo.
  898. RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"`
  899. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  900. XXX_unrecognized []byte `json:"-"`
  901. XXX_sizecache int32 `json:"-"`
  902. }
  903. func (m *ProjectRepoId) Reset() { *m = ProjectRepoId{} }
  904. func (m *ProjectRepoId) String() string { return proto.CompactTextString(m) }
  905. func (*ProjectRepoId) ProtoMessage() {}
  906. func (*ProjectRepoId) Descriptor() ([]byte, []int) {
  907. return fileDescriptor_source_context_1ea7723ad5b6ed16, []int{8}
  908. }
  909. func (m *ProjectRepoId) XXX_Unmarshal(b []byte) error {
  910. return xxx_messageInfo_ProjectRepoId.Unmarshal(m, b)
  911. }
  912. func (m *ProjectRepoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  913. return xxx_messageInfo_ProjectRepoId.Marshal(b, m, deterministic)
  914. }
  915. func (dst *ProjectRepoId) XXX_Merge(src proto.Message) {
  916. xxx_messageInfo_ProjectRepoId.Merge(dst, src)
  917. }
  918. func (m *ProjectRepoId) XXX_Size() int {
  919. return xxx_messageInfo_ProjectRepoId.Size(m)
  920. }
  921. func (m *ProjectRepoId) XXX_DiscardUnknown() {
  922. xxx_messageInfo_ProjectRepoId.DiscardUnknown(m)
  923. }
  924. var xxx_messageInfo_ProjectRepoId proto.InternalMessageInfo
  925. func (m *ProjectRepoId) GetProjectId() string {
  926. if m != nil {
  927. return m.ProjectId
  928. }
  929. return ""
  930. }
  931. func (m *ProjectRepoId) GetRepoName() string {
  932. if m != nil {
  933. return m.RepoName
  934. }
  935. return ""
  936. }
  937. // A CloudWorkspaceId is a unique identifier for a cloud workspace.
  938. // A cloud workspace is a place associated with a repo where modified files
  939. // can be stored before they are committed.
  940. type CloudWorkspaceId struct {
  941. // The ID of the repo containing the workspace.
  942. RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
  943. // The unique name of the workspace within the repo. This is the name
  944. // chosen by the client in the Source API's CreateWorkspace method.
  945. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  946. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  947. XXX_unrecognized []byte `json:"-"`
  948. XXX_sizecache int32 `json:"-"`
  949. }
  950. func (m *CloudWorkspaceId) Reset() { *m = CloudWorkspaceId{} }
  951. func (m *CloudWorkspaceId) String() string { return proto.CompactTextString(m) }
  952. func (*CloudWorkspaceId) ProtoMessage() {}
  953. func (*CloudWorkspaceId) Descriptor() ([]byte, []int) {
  954. return fileDescriptor_source_context_1ea7723ad5b6ed16, []int{9}
  955. }
  956. func (m *CloudWorkspaceId) XXX_Unmarshal(b []byte) error {
  957. return xxx_messageInfo_CloudWorkspaceId.Unmarshal(m, b)
  958. }
  959. func (m *CloudWorkspaceId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  960. return xxx_messageInfo_CloudWorkspaceId.Marshal(b, m, deterministic)
  961. }
  962. func (dst *CloudWorkspaceId) XXX_Merge(src proto.Message) {
  963. xxx_messageInfo_CloudWorkspaceId.Merge(dst, src)
  964. }
  965. func (m *CloudWorkspaceId) XXX_Size() int {
  966. return xxx_messageInfo_CloudWorkspaceId.Size(m)
  967. }
  968. func (m *CloudWorkspaceId) XXX_DiscardUnknown() {
  969. xxx_messageInfo_CloudWorkspaceId.DiscardUnknown(m)
  970. }
  971. var xxx_messageInfo_CloudWorkspaceId proto.InternalMessageInfo
  972. func (m *CloudWorkspaceId) GetRepoId() *RepoId {
  973. if m != nil {
  974. return m.RepoId
  975. }
  976. return nil
  977. }
  978. func (m *CloudWorkspaceId) GetName() string {
  979. if m != nil {
  980. return m.Name
  981. }
  982. return ""
  983. }
  984. func init() {
  985. proto.RegisterType((*SourceContext)(nil), "google.devtools.source.v1.SourceContext")
  986. proto.RegisterType((*ExtendedSourceContext)(nil), "google.devtools.source.v1.ExtendedSourceContext")
  987. proto.RegisterMapType((map[string]string)(nil), "google.devtools.source.v1.ExtendedSourceContext.LabelsEntry")
  988. proto.RegisterType((*AliasContext)(nil), "google.devtools.source.v1.AliasContext")
  989. proto.RegisterType((*CloudRepoSourceContext)(nil), "google.devtools.source.v1.CloudRepoSourceContext")
  990. proto.RegisterType((*CloudWorkspaceSourceContext)(nil), "google.devtools.source.v1.CloudWorkspaceSourceContext")
  991. proto.RegisterType((*GerritSourceContext)(nil), "google.devtools.source.v1.GerritSourceContext")
  992. proto.RegisterType((*GitSourceContext)(nil), "google.devtools.source.v1.GitSourceContext")
  993. proto.RegisterType((*RepoId)(nil), "google.devtools.source.v1.RepoId")
  994. proto.RegisterType((*ProjectRepoId)(nil), "google.devtools.source.v1.ProjectRepoId")
  995. proto.RegisterType((*CloudWorkspaceId)(nil), "google.devtools.source.v1.CloudWorkspaceId")
  996. proto.RegisterEnum("google.devtools.source.v1.AliasContext_Kind", AliasContext_Kind_name, AliasContext_Kind_value)
  997. }
  998. func init() {
  999. proto.RegisterFile("google/devtools/source/v1/source_context.proto", fileDescriptor_source_context_1ea7723ad5b6ed16)
  1000. }
  1001. var fileDescriptor_source_context_1ea7723ad5b6ed16 = []byte{
  1002. // 809 bytes of a gzipped FileDescriptorProto
  1003. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x5d, 0x4e, 0xdb, 0x4a,
  1004. 0x14, 0x8e, 0x9d, 0x90, 0xe0, 0x13, 0x02, 0xd1, 0xdc, 0x1f, 0x05, 0xb8, 0x08, 0xf0, 0xd5, 0xd5,
  1005. 0x45, 0xa2, 0x72, 0x94, 0x54, 0xaa, 0x5a, 0x5a, 0x89, 0x62, 0x48, 0x49, 0x04, 0x0d, 0x68, 0x4a,
  1006. 0xe9, 0x8f, 0x22, 0x45, 0xc6, 0x1e, 0x19, 0x17, 0xe3, 0xb1, 0x6c, 0x27, 0xc0, 0x26, 0xfa, 0xdc,
  1007. 0x35, 0x74, 0x0f, 0xdd, 0x40, 0xd7, 0xd0, 0x25, 0x74, 0x01, 0x48, 0x7d, 0xa9, 0x66, 0xc6, 0x86,
  1008. 0x24, 0x04, 0x83, 0xd4, 0x3e, 0x79, 0xe6, 0xf8, 0xfb, 0xbe, 0x73, 0xe6, 0xfc, 0xcc, 0x80, 0x66,
  1009. 0x53, 0x6a, 0xbb, 0xa4, 0x6a, 0x91, 0x7e, 0x44, 0xa9, 0x1b, 0x56, 0x43, 0xda, 0x0b, 0x4c, 0x52,
  1010. 0xed, 0xd7, 0xe2, 0x55, 0xd7, 0xa4, 0x5e, 0x44, 0xce, 0x23, 0xcd, 0x0f, 0x68, 0x44, 0xd1, 0xac,
  1011. 0xc0, 0x6b, 0x09, 0x5e, 0x13, 0x28, 0xad, 0x5f, 0x9b, 0xfb, 0x27, 0x96, 0x32, 0x7c, 0xa7, 0x6a,
  1012. 0x78, 0x1e, 0x8d, 0x8c, 0xc8, 0xa1, 0x5e, 0x28, 0x88, 0xea, 0x37, 0x19, 0x4a, 0xaf, 0x38, 0x76,
  1013. 0x53, 0x08, 0x22, 0x0c, 0x60, 0xba, 0xb4, 0x67, 0x75, 0x03, 0xe2, 0xd3, 0x8a, 0xb4, 0x24, 0xad,
  1014. 0x14, 0xeb, 0x35, 0xed, 0x56, 0x7d, 0x6d, 0x93, 0x81, 0x31, 0xf1, 0xe9, 0x90, 0x4c, 0x33, 0x83,
  1015. 0x15, 0x33, 0xf9, 0x83, 0x0c, 0x98, 0x11, 0x9a, 0x67, 0x34, 0x38, 0x09, 0x7d, 0xc3, 0x24, 0x15,
  1016. 0x99, 0x0b, 0x3f, 0xba, 0x4b, 0xf8, 0x4d, 0x42, 0x18, 0x55, 0x9f, 0x36, 0x87, 0x7e, 0xa3, 0x26,
  1017. 0xe4, 0x6d, 0x12, 0x04, 0x4e, 0x54, 0xc9, 0x72, 0x65, 0x2d, 0x45, 0x79, 0x9b, 0x03, 0x47, 0x15,
  1018. 0x63, 0x3e, 0x5a, 0x87, 0xac, 0xed, 0x44, 0x95, 0x3c, 0x97, 0x59, 0x4d, 0x93, 0xb9, 0xa9, 0xc1,
  1019. 0x98, 0xba, 0x02, 0x85, 0xb8, 0x3a, 0xea, 0x77, 0x09, 0xfe, 0x6a, 0x9c, 0x47, 0xc4, 0xb3, 0x88,
  1020. 0x35, 0x9c, 0x66, 0xfd, 0x0a, 0x14, 0xe7, 0x78, 0x25, 0xc5, 0xd3, 0x10, 0x15, 0x27, 0x44, 0x74,
  1021. 0x00, 0x79, 0xd7, 0x38, 0x22, 0x6e, 0x58, 0x91, 0x97, 0xb2, 0x2b, 0xc5, 0xfa, 0xb3, 0x14, 0x89,
  1022. 0xb1, 0x51, 0x68, 0xbb, 0x9c, 0xde, 0xf0, 0xa2, 0xe0, 0x02, 0xc7, 0x5a, 0x73, 0x4f, 0xa0, 0x38,
  1023. 0x60, 0x46, 0x65, 0xc8, 0x9e, 0x90, 0x0b, 0x1e, 0xa4, 0x82, 0xd9, 0x12, 0xfd, 0x09, 0x13, 0x7d,
  1024. 0xc3, 0xed, 0x89, 0x1a, 0x2a, 0x58, 0x6c, 0xd6, 0xe4, 0xc7, 0x92, 0xfa, 0x49, 0x82, 0xa9, 0x0d,
  1025. 0xd7, 0x31, 0xc2, 0xe4, 0x94, 0xcf, 0x21, 0x77, 0xe2, 0x78, 0x16, 0x67, 0x4f, 0xd7, 0x1f, 0xa4,
  1026. 0xc4, 0x37, 0x48, 0xd3, 0x76, 0x1c, 0xcf, 0xc2, 0x9c, 0x89, 0x10, 0xe4, 0x3c, 0xe3, 0x34, 0xf1,
  1027. 0xc5, 0xd7, 0x6a, 0x1d, 0x72, 0x0c, 0x81, 0x0a, 0x90, 0xdd, 0x68, 0xbf, 0x2b, 0x67, 0x90, 0x02,
  1028. 0x13, 0x2f, 0x5a, 0x6f, 0x1b, 0x5b, 0x65, 0x09, 0x15, 0xa1, 0xf0, 0x72, 0xef, 0x70, 0x43, 0xdf,
  1029. 0x6d, 0x94, 0x65, 0x66, 0xdf, 0x3b, 0x68, 0x36, 0x70, 0x39, 0xa7, 0x5e, 0x4a, 0xf0, 0xf7, 0xf8,
  1030. 0x56, 0x45, 0x6b, 0x50, 0x60, 0xbd, 0xde, 0x75, 0xac, 0xb8, 0x14, 0xcb, 0x29, 0x71, 0x32, 0x7a,
  1031. 0xcb, 0xc2, 0xf9, 0x80, 0x7f, 0xd1, 0x32, 0x14, 0x03, 0xd2, 0x77, 0x42, 0x87, 0x7a, 0x8c, 0xcf,
  1032. 0xa3, 0x6c, 0x66, 0x30, 0x24, 0xc6, 0x96, 0x85, 0xfe, 0x05, 0x30, 0xd8, 0xe1, 0xba, 0xfc, 0x1c,
  1033. 0xac, 0x3b, 0x15, 0x5d, 0xae, 0x48, 0x6c, 0x42, 0xb8, 0xbd, 0x6d, 0x9c, 0x12, 0xd4, 0x86, 0x92,
  1034. 0x00, 0x25, 0x4d, 0x91, 0xe3, 0x91, 0xfc, 0x7f, 0xcf, 0x8c, 0x35, 0x33, 0x78, 0xca, 0x18, 0xd8,
  1035. 0xeb, 0x00, 0x93, 0x49, 0x08, 0xea, 0x47, 0x09, 0xe6, 0x53, 0x86, 0x09, 0xb5, 0x61, 0xea, 0x6a,
  1036. 0x2e, 0xaf, 0x93, 0xb0, 0x7a, 0xef, 0xd1, 0x6c, 0x59, 0xb8, 0x78, 0x76, 0xbd, 0x41, 0x8b, 0x50,
  1037. 0x0c, 0x3d, 0xc3, 0x0f, 0x8f, 0x69, 0x74, 0x95, 0x13, 0x0c, 0x89, 0xa9, 0x65, 0xa9, 0x3f, 0x24,
  1038. 0xf8, 0x63, 0xcc, 0x0c, 0xa2, 0x59, 0x98, 0x3c, 0xa6, 0x61, 0xd4, 0xed, 0x05, 0x4e, 0xdc, 0x6f,
  1039. 0x05, 0xb6, 0x7f, 0x1d, 0x38, 0xe8, 0x3f, 0x98, 0x16, 0xe3, 0xd9, 0xf5, 0x03, 0xfa, 0x81, 0x98,
  1040. 0x51, 0x2c, 0x5b, 0x12, 0xd6, 0x7d, 0x61, 0x1c, 0x2d, 0x47, 0xf6, 0xce, 0x72, 0xe4, 0xee, 0x59,
  1041. 0x8e, 0x89, 0xdf, 0x57, 0x8e, 0x06, 0x94, 0x47, 0x6f, 0x0e, 0x36, 0x64, 0xbd, 0xc0, 0x4d, 0x86,
  1042. 0xac, 0x17, 0xb8, 0x2c, 0x89, 0x37, 0x1a, 0x6b, 0xf0, 0x1c, 0x6a, 0x1f, 0xf2, 0xa2, 0x17, 0x11,
  1043. 0x86, 0x99, 0x38, 0x29, 0xdd, 0xe1, 0x3e, 0x4e, 0xbb, 0x52, 0xe2, 0x8c, 0x09, 0x89, 0x66, 0x06,
  1044. 0x97, 0xfc, 0x41, 0x03, 0x42, 0x90, 0xed, 0x0d, 0xf4, 0x33, 0xdb, 0xe8, 0x39, 0x90, 0x1d, 0x4b,
  1045. 0xdd, 0x81, 0xd2, 0x10, 0x17, 0x2d, 0x00, 0x24, 0xee, 0x63, 0xcf, 0x0a, 0x56, 0x62, 0x4b, 0xcb,
  1046. 0x42, 0xf3, 0xa0, 0xf0, 0xa8, 0x06, 0xa6, 0x78, 0x92, 0x19, 0x58, 0x9e, 0xd5, 0x23, 0x28, 0x8f,
  1047. 0xf6, 0xd2, 0x2f, 0x8d, 0xe3, 0x98, 0xdb, 0x42, 0xff, 0x22, 0xc1, 0x82, 0x49, 0x4f, 0x6f, 0x17,
  1048. 0xd1, 0xd1, 0x50, 0x31, 0xf6, 0xd9, 0xc3, 0xb8, 0x2f, 0xbd, 0x5f, 0x8f, 0x09, 0x36, 0x75, 0x0d,
  1049. 0xcf, 0xd6, 0x68, 0x60, 0x57, 0x6d, 0xe2, 0xf1, 0x67, 0xb3, 0x2a, 0x7e, 0x19, 0xbe, 0x13, 0x8e,
  1050. 0x79, 0xa2, 0x9f, 0x8a, 0xd5, 0xa5, 0x24, 0x7d, 0x96, 0x17, 0xb7, 0x85, 0x08, 0x3f, 0xa5, 0xb6,
  1051. 0x45, 0xfa, 0x07, 0xdc, 0xb7, 0x70, 0xa8, 0x1d, 0xd6, 0xbe, 0x26, 0x88, 0x0e, 0x47, 0x74, 0x12,
  1052. 0x44, 0x47, 0x20, 0x3a, 0x87, 0xb5, 0xa3, 0x3c, 0x77, 0xf9, 0xf0, 0x67, 0x00, 0x00, 0x00, 0xff,
  1053. 0xff, 0x98, 0x86, 0xf5, 0x6f, 0x14, 0x08, 0x00, 0x00,
  1054. }