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.
 
 
 

117 lines
4.5 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/type/timeofday.proto
  3. package timeofday // import "google.golang.org/genproto/googleapis/type/timeofday"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the proto package it is being compiled against.
  13. // A compilation error at this line likely means your copy of the
  14. // proto package needs to be updated.
  15. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  16. // Represents a time of day. The date and time zone are either not significant
  17. // or are specified elsewhere. An API may chose to allow leap seconds. Related
  18. // types are [google.type.Date][google.type.Date] and
  19. // `google.protobuf.Timestamp`.
  20. type TimeOfDay struct {
  21. // Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
  22. // to allow the value "24:00:00" for scenarios like business closing time.
  23. Hours int32 `protobuf:"varint,1,opt,name=hours,proto3" json:"hours,omitempty"`
  24. // Minutes of hour of day. Must be from 0 to 59.
  25. Minutes int32 `protobuf:"varint,2,opt,name=minutes,proto3" json:"minutes,omitempty"`
  26. // Seconds of minutes of the time. Must normally be from 0 to 59. An API may
  27. // allow the value 60 if it allows leap-seconds.
  28. Seconds int32 `protobuf:"varint,3,opt,name=seconds,proto3" json:"seconds,omitempty"`
  29. // Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
  30. Nanos int32 `protobuf:"varint,4,opt,name=nanos,proto3" json:"nanos,omitempty"`
  31. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  32. XXX_unrecognized []byte `json:"-"`
  33. XXX_sizecache int32 `json:"-"`
  34. }
  35. func (m *TimeOfDay) Reset() { *m = TimeOfDay{} }
  36. func (m *TimeOfDay) String() string { return proto.CompactTextString(m) }
  37. func (*TimeOfDay) ProtoMessage() {}
  38. func (*TimeOfDay) Descriptor() ([]byte, []int) {
  39. return fileDescriptor_timeofday_53fe8e3f23d45dda, []int{0}
  40. }
  41. func (m *TimeOfDay) XXX_Unmarshal(b []byte) error {
  42. return xxx_messageInfo_TimeOfDay.Unmarshal(m, b)
  43. }
  44. func (m *TimeOfDay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  45. return xxx_messageInfo_TimeOfDay.Marshal(b, m, deterministic)
  46. }
  47. func (dst *TimeOfDay) XXX_Merge(src proto.Message) {
  48. xxx_messageInfo_TimeOfDay.Merge(dst, src)
  49. }
  50. func (m *TimeOfDay) XXX_Size() int {
  51. return xxx_messageInfo_TimeOfDay.Size(m)
  52. }
  53. func (m *TimeOfDay) XXX_DiscardUnknown() {
  54. xxx_messageInfo_TimeOfDay.DiscardUnknown(m)
  55. }
  56. var xxx_messageInfo_TimeOfDay proto.InternalMessageInfo
  57. func (m *TimeOfDay) GetHours() int32 {
  58. if m != nil {
  59. return m.Hours
  60. }
  61. return 0
  62. }
  63. func (m *TimeOfDay) GetMinutes() int32 {
  64. if m != nil {
  65. return m.Minutes
  66. }
  67. return 0
  68. }
  69. func (m *TimeOfDay) GetSeconds() int32 {
  70. if m != nil {
  71. return m.Seconds
  72. }
  73. return 0
  74. }
  75. func (m *TimeOfDay) GetNanos() int32 {
  76. if m != nil {
  77. return m.Nanos
  78. }
  79. return 0
  80. }
  81. func init() {
  82. proto.RegisterType((*TimeOfDay)(nil), "google.type.TimeOfDay")
  83. }
  84. func init() {
  85. proto.RegisterFile("google/type/timeofday.proto", fileDescriptor_timeofday_53fe8e3f23d45dda)
  86. }
  87. var fileDescriptor_timeofday_53fe8e3f23d45dda = []byte{
  88. // 198 bytes of a gzipped FileDescriptorProto
  89. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4e, 0xcf, 0xcf, 0x4f,
  90. 0xcf, 0x49, 0xd5, 0x2f, 0xa9, 0x2c, 0x48, 0xd5, 0x2f, 0xc9, 0xcc, 0x4d, 0xcd, 0x4f, 0x4b, 0x49,
  91. 0xac, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0x48, 0xea, 0x81, 0x24, 0x95, 0xb2,
  92. 0xb9, 0x38, 0x43, 0x32, 0x73, 0x53, 0xfd, 0xd3, 0x5c, 0x12, 0x2b, 0x85, 0x44, 0xb8, 0x58, 0x33,
  93. 0xf2, 0x4b, 0x8b, 0x8a, 0x25, 0x18, 0x15, 0x18, 0x35, 0x58, 0x83, 0x20, 0x1c, 0x21, 0x09, 0x2e,
  94. 0xf6, 0xdc, 0xcc, 0xbc, 0xd2, 0x92, 0xd4, 0x62, 0x09, 0x26, 0xb0, 0x38, 0x8c, 0x0b, 0x92, 0x29,
  95. 0x4e, 0x4d, 0xce, 0xcf, 0x4b, 0x29, 0x96, 0x60, 0x86, 0xc8, 0x40, 0xb9, 0x20, 0x93, 0xf2, 0x12,
  96. 0xf3, 0xf2, 0x8b, 0x25, 0x58, 0x20, 0x26, 0x81, 0x39, 0x4e, 0x99, 0x5c, 0xfc, 0xc9, 0xf9, 0xb9,
  97. 0x7a, 0x48, 0xf6, 0x3b, 0xf1, 0xc1, 0x6d, 0x0f, 0x00, 0x39, 0x2e, 0x80, 0x31, 0xca, 0x0e, 0x2a,
  98. 0x9d, 0x9e, 0x9f, 0x93, 0x98, 0x97, 0xae, 0x97, 0x5f, 0x94, 0xae, 0x9f, 0x9e, 0x9a, 0x07, 0x76,
  99. 0xba, 0x3e, 0x44, 0x2a, 0xb1, 0x20, 0xb3, 0x18, 0xcd, 0x6b, 0xd6, 0x70, 0xd6, 0x22, 0x26, 0x66,
  100. 0xf7, 0x90, 0x80, 0x24, 0x36, 0xb0, 0x06, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x47, 0x79,
  101. 0x6a, 0x06, 0x0a, 0x01, 0x00, 0x00,
  102. }