union.pb.go 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. // message结构的属性名请使用 驼峰小写字母开始
  2. // Code generated by protoc-gen-go. DO NOT EDIT.
  3. // versions:
  4. // protoc-gen-go v1.36.8
  5. // protoc v6.31.1
  6. // source: union.proto
  7. package pb
  8. import (
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. unsafe "unsafe"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. // 联盟外交申请处理
  22. type UnionApplyOp struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. // 联盟ID
  25. LeagueID int64 `protobuf:"varint,1,opt,name=leagueID,proto3" json:"leagueID,omitempty"`
  26. // 申请类型 1友盟 2联邦
  27. ApplyType int32 `protobuf:"varint,2,opt,name=applyType,proto3" json:"applyType,omitempty"`
  28. // 是否同意 true同意 false拒绝
  29. Agree bool `protobuf:"varint,3,opt,name=agree,proto3" json:"agree,omitempty"`
  30. unknownFields protoimpl.UnknownFields
  31. sizeCache protoimpl.SizeCache
  32. }
  33. func (x *UnionApplyOp) Reset() {
  34. *x = UnionApplyOp{}
  35. mi := &file_union_proto_msgTypes[0]
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. ms.StoreMessageInfo(mi)
  38. }
  39. func (x *UnionApplyOp) String() string {
  40. return protoimpl.X.MessageStringOf(x)
  41. }
  42. func (*UnionApplyOp) ProtoMessage() {}
  43. func (x *UnionApplyOp) ProtoReflect() protoreflect.Message {
  44. mi := &file_union_proto_msgTypes[0]
  45. if x != nil {
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. if ms.LoadMessageInfo() == nil {
  48. ms.StoreMessageInfo(mi)
  49. }
  50. return ms
  51. }
  52. return mi.MessageOf(x)
  53. }
  54. // Deprecated: Use UnionApplyOp.ProtoReflect.Descriptor instead.
  55. func (*UnionApplyOp) Descriptor() ([]byte, []int) {
  56. return file_union_proto_rawDescGZIP(), []int{0}
  57. }
  58. func (x *UnionApplyOp) GetLeagueID() int64 {
  59. if x != nil {
  60. return x.LeagueID
  61. }
  62. return 0
  63. }
  64. func (x *UnionApplyOp) GetApplyType() int32 {
  65. if x != nil {
  66. return x.ApplyType
  67. }
  68. return 0
  69. }
  70. func (x *UnionApplyOp) GetAgree() bool {
  71. if x != nil {
  72. return x.Agree
  73. }
  74. return false
  75. }
  76. var File_union_proto protoreflect.FileDescriptor
  77. const file_union_proto_rawDesc = "" +
  78. "\n" +
  79. "\vunion.proto\x12\x02pb\"^\n" +
  80. "\fUnionApplyOp\x12\x1a\n" +
  81. "\bleagueID\x18\x01 \x01(\x03R\bleagueID\x12\x1c\n" +
  82. "\tapplyType\x18\x02 \x01(\x05R\tapplyType\x12\x14\n" +
  83. "\x05agree\x18\x03 \x01(\bR\x05agreeB\x05Z\x03/pbb\x06proto3"
  84. var (
  85. file_union_proto_rawDescOnce sync.Once
  86. file_union_proto_rawDescData []byte
  87. )
  88. func file_union_proto_rawDescGZIP() []byte {
  89. file_union_proto_rawDescOnce.Do(func() {
  90. file_union_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_union_proto_rawDesc), len(file_union_proto_rawDesc)))
  91. })
  92. return file_union_proto_rawDescData
  93. }
  94. var file_union_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  95. var file_union_proto_goTypes = []any{
  96. (*UnionApplyOp)(nil), // 0: pb.UnionApplyOp
  97. }
  98. var file_union_proto_depIdxs = []int32{
  99. 0, // [0:0] is the sub-list for method output_type
  100. 0, // [0:0] is the sub-list for method input_type
  101. 0, // [0:0] is the sub-list for extension type_name
  102. 0, // [0:0] is the sub-list for extension extendee
  103. 0, // [0:0] is the sub-list for field type_name
  104. }
  105. func init() { file_union_proto_init() }
  106. func file_union_proto_init() {
  107. if File_union_proto != nil {
  108. return
  109. }
  110. type x struct{}
  111. out := protoimpl.TypeBuilder{
  112. File: protoimpl.DescBuilder{
  113. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  114. RawDescriptor: unsafe.Slice(unsafe.StringData(file_union_proto_rawDesc), len(file_union_proto_rawDesc)),
  115. NumEnums: 0,
  116. NumMessages: 1,
  117. NumExtensions: 0,
  118. NumServices: 0,
  119. },
  120. GoTypes: file_union_proto_goTypes,
  121. DependencyIndexes: file_union_proto_depIdxs,
  122. MessageInfos: file_union_proto_msgTypes,
  123. }.Build()
  124. File_union_proto = out.File
  125. file_union_proto_goTypes = nil
  126. file_union_proto_depIdxs = nil
  127. }