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.

203 lines
5.6 KiB

  1. // Code generated by protoc-gen-go.
  2. // source: system_message.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package operation is a generated protocol buffer package.
  6. It is generated from these files:
  7. system_message.proto
  8. It has these top-level messages:
  9. VolumeInformationMessage
  10. JoinMessage
  11. */
  12. package operation
  13. import proto "github.com/golang/protobuf/proto"
  14. import math "math"
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = math.Inf
  18. type VolumeInformationMessage struct {
  19. Id *uint32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"`
  20. Size *uint64 `protobuf:"varint,2,req,name=size" json:"size,omitempty"`
  21. Collection *string `protobuf:"bytes,3,opt,name=collection" json:"collection,omitempty"`
  22. FileCount *uint64 `protobuf:"varint,4,req,name=file_count" json:"file_count,omitempty"`
  23. DeleteCount *uint64 `protobuf:"varint,5,req,name=delete_count" json:"delete_count,omitempty"`
  24. DeletedByteCount *uint64 `protobuf:"varint,6,req,name=deleted_byte_count" json:"deleted_byte_count,omitempty"`
  25. ReadOnly *bool `protobuf:"varint,7,opt,name=read_only" json:"read_only,omitempty"`
  26. ReplicaPlacement *uint32 `protobuf:"varint,8,req,name=replica_placement" json:"replica_placement,omitempty"`
  27. Version *uint32 `protobuf:"varint,9,opt,name=version,def=2" json:"version,omitempty"`
  28. Ttl *uint32 `protobuf:"varint,10,opt,name=ttl" json:"ttl,omitempty"`
  29. XXX_unrecognized []byte `json:"-"`
  30. }
  31. func (m *VolumeInformationMessage) Reset() { *m = VolumeInformationMessage{} }
  32. func (m *VolumeInformationMessage) String() string { return proto.CompactTextString(m) }
  33. func (*VolumeInformationMessage) ProtoMessage() {}
  34. const Default_VolumeInformationMessage_Version uint32 = 2
  35. func (m *VolumeInformationMessage) GetId() uint32 {
  36. if m != nil && m.Id != nil {
  37. return *m.Id
  38. }
  39. return 0
  40. }
  41. func (m *VolumeInformationMessage) GetSize() uint64 {
  42. if m != nil && m.Size != nil {
  43. return *m.Size
  44. }
  45. return 0
  46. }
  47. func (m *VolumeInformationMessage) GetCollection() string {
  48. if m != nil && m.Collection != nil {
  49. return *m.Collection
  50. }
  51. return ""
  52. }
  53. func (m *VolumeInformationMessage) GetFileCount() uint64 {
  54. if m != nil && m.FileCount != nil {
  55. return *m.FileCount
  56. }
  57. return 0
  58. }
  59. func (m *VolumeInformationMessage) GetDeleteCount() uint64 {
  60. if m != nil && m.DeleteCount != nil {
  61. return *m.DeleteCount
  62. }
  63. return 0
  64. }
  65. func (m *VolumeInformationMessage) GetDeletedByteCount() uint64 {
  66. if m != nil && m.DeletedByteCount != nil {
  67. return *m.DeletedByteCount
  68. }
  69. return 0
  70. }
  71. func (m *VolumeInformationMessage) GetReadOnly() bool {
  72. if m != nil && m.ReadOnly != nil {
  73. return *m.ReadOnly
  74. }
  75. return false
  76. }
  77. func (m *VolumeInformationMessage) GetReplicaPlacement() uint32 {
  78. if m != nil && m.ReplicaPlacement != nil {
  79. return *m.ReplicaPlacement
  80. }
  81. return 0
  82. }
  83. func (m *VolumeInformationMessage) GetVersion() uint32 {
  84. if m != nil && m.Version != nil {
  85. return *m.Version
  86. }
  87. return Default_VolumeInformationMessage_Version
  88. }
  89. func (m *VolumeInformationMessage) GetTtl() uint32 {
  90. if m != nil && m.Ttl != nil {
  91. return *m.Ttl
  92. }
  93. return 0
  94. }
  95. type JoinMessage struct {
  96. IsInit *bool `protobuf:"varint,1,opt,name=is_init" json:"is_init,omitempty"`
  97. Ip *string `protobuf:"bytes,2,req,name=ip" json:"ip,omitempty"`
  98. Port *uint32 `protobuf:"varint,3,req,name=port" json:"port,omitempty"`
  99. PublicUrl *string `protobuf:"bytes,4,opt,name=public_url" json:"public_url,omitempty"`
  100. MaxVolumeCount *uint32 `protobuf:"varint,5,req,name=max_volume_count" json:"max_volume_count,omitempty"`
  101. MaxFileKey *uint64 `protobuf:"varint,6,req,name=max_file_key" json:"max_file_key,omitempty"`
  102. DataCenter *string `protobuf:"bytes,7,opt,name=data_center" json:"data_center,omitempty"`
  103. Rack *string `protobuf:"bytes,8,opt,name=rack" json:"rack,omitempty"`
  104. Volumes []*VolumeInformationMessage `protobuf:"bytes,9,rep,name=volumes" json:"volumes,omitempty"`
  105. AdminPort *uint32 `protobuf:"varint,10,opt,name=admin_port" json:"admin_port,omitempty"`
  106. XXX_unrecognized []byte `json:"-"`
  107. }
  108. func (m *JoinMessage) Reset() { *m = JoinMessage{} }
  109. func (m *JoinMessage) String() string { return proto.CompactTextString(m) }
  110. func (*JoinMessage) ProtoMessage() {}
  111. func (m *JoinMessage) GetIsInit() bool {
  112. if m != nil && m.IsInit != nil {
  113. return *m.IsInit
  114. }
  115. return false
  116. }
  117. func (m *JoinMessage) GetIp() string {
  118. if m != nil && m.Ip != nil {
  119. return *m.Ip
  120. }
  121. return ""
  122. }
  123. func (m *JoinMessage) GetPort() uint32 {
  124. if m != nil && m.Port != nil {
  125. return *m.Port
  126. }
  127. return 0
  128. }
  129. func (m *JoinMessage) GetPublicUrl() string {
  130. if m != nil && m.PublicUrl != nil {
  131. return *m.PublicUrl
  132. }
  133. return ""
  134. }
  135. func (m *JoinMessage) GetMaxVolumeCount() uint32 {
  136. if m != nil && m.MaxVolumeCount != nil {
  137. return *m.MaxVolumeCount
  138. }
  139. return 0
  140. }
  141. func (m *JoinMessage) GetMaxFileKey() uint64 {
  142. if m != nil && m.MaxFileKey != nil {
  143. return *m.MaxFileKey
  144. }
  145. return 0
  146. }
  147. func (m *JoinMessage) GetDataCenter() string {
  148. if m != nil && m.DataCenter != nil {
  149. return *m.DataCenter
  150. }
  151. return ""
  152. }
  153. func (m *JoinMessage) GetRack() string {
  154. if m != nil && m.Rack != nil {
  155. return *m.Rack
  156. }
  157. return ""
  158. }
  159. func (m *JoinMessage) GetVolumes() []*VolumeInformationMessage {
  160. if m != nil {
  161. return m.Volumes
  162. }
  163. return nil
  164. }
  165. func (m *JoinMessage) GetAdminPort() uint32 {
  166. if m != nil && m.AdminPort != nil {
  167. return *m.AdminPort
  168. }
  169. return 0
  170. }
  171. func init() {
  172. }