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.

195 lines
5.4 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 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. XXX_unrecognized []byte `json:"-"`
  106. }
  107. func (m *JoinMessage) Reset() { *m = JoinMessage{} }
  108. func (m *JoinMessage) String() string { return proto.CompactTextString(m) }
  109. func (*JoinMessage) ProtoMessage() {}
  110. func (m *JoinMessage) GetIsInit() bool {
  111. if m != nil && m.IsInit != nil {
  112. return *m.IsInit
  113. }
  114. return false
  115. }
  116. func (m *JoinMessage) GetIp() string {
  117. if m != nil && m.Ip != nil {
  118. return *m.Ip
  119. }
  120. return ""
  121. }
  122. func (m *JoinMessage) GetPort() uint32 {
  123. if m != nil && m.Port != nil {
  124. return *m.Port
  125. }
  126. return 0
  127. }
  128. func (m *JoinMessage) GetPublicUrl() string {
  129. if m != nil && m.PublicUrl != nil {
  130. return *m.PublicUrl
  131. }
  132. return ""
  133. }
  134. func (m *JoinMessage) GetMaxVolumeCount() uint32 {
  135. if m != nil && m.MaxVolumeCount != nil {
  136. return *m.MaxVolumeCount
  137. }
  138. return 0
  139. }
  140. func (m *JoinMessage) GetMaxFileKey() uint64 {
  141. if m != nil && m.MaxFileKey != nil {
  142. return *m.MaxFileKey
  143. }
  144. return 0
  145. }
  146. func (m *JoinMessage) GetDataCenter() string {
  147. if m != nil && m.DataCenter != nil {
  148. return *m.DataCenter
  149. }
  150. return ""
  151. }
  152. func (m *JoinMessage) GetRack() string {
  153. if m != nil && m.Rack != nil {
  154. return *m.Rack
  155. }
  156. return ""
  157. }
  158. func (m *JoinMessage) GetVolumes() []*VolumeInformationMessage {
  159. if m != nil {
  160. return m.Volumes
  161. }
  162. return nil
  163. }
  164. func init() {
  165. }