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.

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