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.
 
 
 

80 lines
1.6 KiB

  1. // @Title Golang SDK Client
  2. // @Description This code is auto generated
  3. // @Author Ecloud SDK
  4. package model
  5. import (
  6. "gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
  7. "gitlab.ecloud.com/ecloud/ecloudsdkcore/utils"
  8. )
  9. type GetSegmentPath struct {
  10. position.Path
  11. // 分段Id(URL路径参数)
  12. SegmentId *string `json:"segmentId,omitempty"`
  13. // 知识库Id(URL路径参数)
  14. DatasetId *string `json:"datasetId,omitempty"`
  15. // 文档Id(URL路径参数)
  16. DocumentId *string `json:"documentId,omitempty"`
  17. }
  18. func (s GetSegmentPath) String() string {
  19. return utils.Beautify(s)
  20. }
  21. func (s GetSegmentPath) GoString() string {
  22. return s.String()
  23. }
  24. func (s GetSegmentPath) ToJsonString() string {
  25. return utils.ToJsonString(s)
  26. }
  27. func (s *GetSegmentPath) SetSegmentId(v string) *GetSegmentPath {
  28. s.SegmentId = &v
  29. return s
  30. }
  31. func (s *GetSegmentPath) SetDatasetId(v string) *GetSegmentPath {
  32. s.DatasetId = &v
  33. return s
  34. }
  35. func (s *GetSegmentPath) SetDocumentId(v string) *GetSegmentPath {
  36. s.DocumentId = &v
  37. return s
  38. }
  39. type GetSegmentPathBuilder struct {
  40. s *GetSegmentPath
  41. }
  42. func NewGetSegmentPathBuilder() *GetSegmentPathBuilder {
  43. s := &GetSegmentPath{}
  44. b := &GetSegmentPathBuilder{s: s}
  45. return b
  46. }
  47. func (b *GetSegmentPathBuilder) SegmentId(v string) *GetSegmentPathBuilder {
  48. b.s.SegmentId = &v
  49. return b
  50. }
  51. func (b *GetSegmentPathBuilder) DatasetId(v string) *GetSegmentPathBuilder {
  52. b.s.DatasetId = &v
  53. return b
  54. }
  55. func (b *GetSegmentPathBuilder) DocumentId(v string) *GetSegmentPathBuilder {
  56. b.s.DocumentId = &v
  57. return b
  58. }
  59. func (b *GetSegmentPathBuilder) Build() *GetSegmentPath {
  60. return b.s
  61. }