Time.pb.go 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.2
  4. // protoc v5.29.3
  5. // source: gRPC_Model/Time.proto
  6. package gRPC_Model
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type Timestamp struct {
  20. state protoimpl.MessageState `protogen:"open.v1"`
  21. Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
  22. unknownFields protoimpl.UnknownFields
  23. sizeCache protoimpl.SizeCache
  24. }
  25. func (x *Timestamp) Reset() {
  26. *x = Timestamp{}
  27. mi := &file_gRPC_Model_Time_proto_msgTypes[0]
  28. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  29. ms.StoreMessageInfo(mi)
  30. }
  31. func (x *Timestamp) String() string {
  32. return protoimpl.X.MessageStringOf(x)
  33. }
  34. func (*Timestamp) ProtoMessage() {}
  35. func (x *Timestamp) ProtoReflect() protoreflect.Message {
  36. mi := &file_gRPC_Model_Time_proto_msgTypes[0]
  37. if x != nil {
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. if ms.LoadMessageInfo() == nil {
  40. ms.StoreMessageInfo(mi)
  41. }
  42. return ms
  43. }
  44. return mi.MessageOf(x)
  45. }
  46. // Deprecated: Use Timestamp.ProtoReflect.Descriptor instead.
  47. func (*Timestamp) Descriptor() ([]byte, []int) {
  48. return file_gRPC_Model_Time_proto_rawDescGZIP(), []int{0}
  49. }
  50. func (x *Timestamp) GetSeconds() int64 {
  51. if x != nil {
  52. return x.Seconds
  53. }
  54. return 0
  55. }
  56. type StateSwitch struct {
  57. state protoimpl.MessageState `protogen:"open.v1"`
  58. State bool `protobuf:"varint,1,opt,name=State,proto3" json:"State,omitempty"`
  59. unknownFields protoimpl.UnknownFields
  60. sizeCache protoimpl.SizeCache
  61. }
  62. func (x *StateSwitch) Reset() {
  63. *x = StateSwitch{}
  64. mi := &file_gRPC_Model_Time_proto_msgTypes[1]
  65. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  66. ms.StoreMessageInfo(mi)
  67. }
  68. func (x *StateSwitch) String() string {
  69. return protoimpl.X.MessageStringOf(x)
  70. }
  71. func (*StateSwitch) ProtoMessage() {}
  72. func (x *StateSwitch) ProtoReflect() protoreflect.Message {
  73. mi := &file_gRPC_Model_Time_proto_msgTypes[1]
  74. if x != nil {
  75. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  76. if ms.LoadMessageInfo() == nil {
  77. ms.StoreMessageInfo(mi)
  78. }
  79. return ms
  80. }
  81. return mi.MessageOf(x)
  82. }
  83. // Deprecated: Use StateSwitch.ProtoReflect.Descriptor instead.
  84. func (*StateSwitch) Descriptor() ([]byte, []int) {
  85. return file_gRPC_Model_Time_proto_rawDescGZIP(), []int{1}
  86. }
  87. func (x *StateSwitch) GetState() bool {
  88. if x != nil {
  89. return x.State
  90. }
  91. return false
  92. }
  93. var File_gRPC_Model_Time_proto protoreflect.FileDescriptor
  94. var file_gRPC_Model_Time_proto_rawDesc = []byte{
  95. 0x0a, 0x15, 0x67, 0x52, 0x50, 0x43, 0x5f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x54, 0x69, 0x6d,
  96. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x67, 0x52, 0x50, 0x43, 0x5f, 0x4d, 0x6f,
  97. 0x64, 0x65, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  98. 0x6f, 0x22, 0x25, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x18,
  99. 0x0a, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  100. 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x23, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x74,
  101. 0x65, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65,
  102. 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x32, 0x8b, 0x01,
  103. 0x0a, 0x04, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x54, 0x69, 0x6d,
  104. 0x65, 0x12, 0x06, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x0a, 0x2e, 0x54, 0x69, 0x6d, 0x65,
  105. 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x1d, 0x0a, 0x07, 0x53, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65,
  106. 0x12, 0x0a, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x1a, 0x06, 0x2e, 0x45,
  107. 0x6d, 0x70, 0x74, 0x79, 0x12, 0x1f, 0x0a, 0x07, 0x41, 0x75, 0x74, 0x6f, 0x53, 0x65, 0x74, 0x12,
  108. 0x0c, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x1a, 0x06, 0x2e,
  109. 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x24, 0x0a, 0x0c, 0x41, 0x75, 0x74, 0x6f, 0x53, 0x65, 0x74,
  110. 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x06, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x0c, 0x2e,
  111. 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x42, 0x0e, 0x5a, 0x0c, 0x2e,
  112. 0x2f, 0x67, 0x52, 0x50, 0x43, 0x5f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f,
  113. 0x74, 0x6f, 0x33,
  114. }
  115. var (
  116. file_gRPC_Model_Time_proto_rawDescOnce sync.Once
  117. file_gRPC_Model_Time_proto_rawDescData = file_gRPC_Model_Time_proto_rawDesc
  118. )
  119. func file_gRPC_Model_Time_proto_rawDescGZIP() []byte {
  120. file_gRPC_Model_Time_proto_rawDescOnce.Do(func() {
  121. file_gRPC_Model_Time_proto_rawDescData = protoimpl.X.CompressGZIP(file_gRPC_Model_Time_proto_rawDescData)
  122. })
  123. return file_gRPC_Model_Time_proto_rawDescData
  124. }
  125. var file_gRPC_Model_Time_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  126. var file_gRPC_Model_Time_proto_goTypes = []any{
  127. (*Timestamp)(nil), // 0: Timestamp
  128. (*StateSwitch)(nil), // 1: StateSwitch
  129. (*Empty)(nil), // 2: Empty
  130. }
  131. var file_gRPC_Model_Time_proto_depIdxs = []int32{
  132. 2, // 0: Time.GetTime:input_type -> Empty
  133. 0, // 1: Time.SetTime:input_type -> Timestamp
  134. 1, // 2: Time.AutoSet:input_type -> StateSwitch
  135. 2, // 3: Time.AutoSetState:input_type -> Empty
  136. 0, // 4: Time.GetTime:output_type -> Timestamp
  137. 2, // 5: Time.SetTime:output_type -> Empty
  138. 2, // 6: Time.AutoSet:output_type -> Empty
  139. 1, // 7: Time.AutoSetState:output_type -> StateSwitch
  140. 4, // [4:8] is the sub-list for method output_type
  141. 0, // [0:4] is the sub-list for method input_type
  142. 0, // [0:0] is the sub-list for extension type_name
  143. 0, // [0:0] is the sub-list for extension extendee
  144. 0, // [0:0] is the sub-list for field type_name
  145. }
  146. func init() { file_gRPC_Model_Time_proto_init() }
  147. func file_gRPC_Model_Time_proto_init() {
  148. if File_gRPC_Model_Time_proto != nil {
  149. return
  150. }
  151. file_gRPC_Model_general_proto_init()
  152. type x struct{}
  153. out := protoimpl.TypeBuilder{
  154. File: protoimpl.DescBuilder{
  155. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  156. RawDescriptor: file_gRPC_Model_Time_proto_rawDesc,
  157. NumEnums: 0,
  158. NumMessages: 2,
  159. NumExtensions: 0,
  160. NumServices: 1,
  161. },
  162. GoTypes: file_gRPC_Model_Time_proto_goTypes,
  163. DependencyIndexes: file_gRPC_Model_Time_proto_depIdxs,
  164. MessageInfos: file_gRPC_Model_Time_proto_msgTypes,
  165. }.Build()
  166. File_gRPC_Model_Time_proto = out.File
  167. file_gRPC_Model_Time_proto_rawDesc = nil
  168. file_gRPC_Model_Time_proto_goTypes = nil
  169. file_gRPC_Model_Time_proto_depIdxs = nil
  170. }