25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

108 satır
4.1 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/type/date.proto
  3. package date // import "google.golang.org/genproto/googleapis/type/date"
  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 whole calendar date, e.g. date of birth. The time of day and
  17. // time zone are either specified elsewhere or are not significant. The date
  18. // is relative to the Proleptic Gregorian Calendar. The day may be 0 to
  19. // represent a year and month where the day is not significant, e.g. credit card
  20. // expiration date. The year may be 0 to represent a month and day independent
  21. // of year, e.g. anniversary date. Related types are
  22. // [google.type.TimeOfDay][google.type.TimeOfDay] and
  23. // `google.protobuf.Timestamp`.
  24. type Date struct {
  25. // Year of date. Must be from 1 to 9999, or 0 if specifying a date without
  26. // a year.
  27. Year int32 `protobuf:"varint,1,opt,name=year,proto3" json:"year,omitempty"`
  28. // Month of year. Must be from 1 to 12.
  29. Month int32 `protobuf:"varint,2,opt,name=month,proto3" json:"month,omitempty"`
  30. // Day of month. Must be from 1 to 31 and valid for the year and month, or 0
  31. // if specifying a year/month where the day is not significant.
  32. Day int32 `protobuf:"varint,3,opt,name=day,proto3" json:"day,omitempty"`
  33. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  34. XXX_unrecognized []byte `json:"-"`
  35. XXX_sizecache int32 `json:"-"`
  36. }
  37. func (m *Date) Reset() { *m = Date{} }
  38. func (m *Date) String() string { return proto.CompactTextString(m) }
  39. func (*Date) ProtoMessage() {}
  40. func (*Date) Descriptor() ([]byte, []int) {
  41. return fileDescriptor_date_bb7972959c40caee, []int{0}
  42. }
  43. func (m *Date) XXX_Unmarshal(b []byte) error {
  44. return xxx_messageInfo_Date.Unmarshal(m, b)
  45. }
  46. func (m *Date) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  47. return xxx_messageInfo_Date.Marshal(b, m, deterministic)
  48. }
  49. func (dst *Date) XXX_Merge(src proto.Message) {
  50. xxx_messageInfo_Date.Merge(dst, src)
  51. }
  52. func (m *Date) XXX_Size() int {
  53. return xxx_messageInfo_Date.Size(m)
  54. }
  55. func (m *Date) XXX_DiscardUnknown() {
  56. xxx_messageInfo_Date.DiscardUnknown(m)
  57. }
  58. var xxx_messageInfo_Date proto.InternalMessageInfo
  59. func (m *Date) GetYear() int32 {
  60. if m != nil {
  61. return m.Year
  62. }
  63. return 0
  64. }
  65. func (m *Date) GetMonth() int32 {
  66. if m != nil {
  67. return m.Month
  68. }
  69. return 0
  70. }
  71. func (m *Date) GetDay() int32 {
  72. if m != nil {
  73. return m.Day
  74. }
  75. return 0
  76. }
  77. func init() {
  78. proto.RegisterType((*Date)(nil), "google.type.Date")
  79. }
  80. func init() { proto.RegisterFile("google/type/date.proto", fileDescriptor_date_bb7972959c40caee) }
  81. var fileDescriptor_date_bb7972959c40caee = []byte{
  82. // 172 bytes of a gzipped FileDescriptorProto
  83. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4b, 0xcf, 0xcf, 0x4f,
  84. 0xcf, 0x49, 0xd5, 0x2f, 0xa9, 0x2c, 0x48, 0xd5, 0x4f, 0x49, 0x2c, 0x49, 0xd5, 0x2b, 0x28, 0xca,
  85. 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0x88, 0xeb, 0x81, 0xc4, 0x95, 0x9c, 0xb8, 0x58, 0x5c, 0x12, 0x4b,
  86. 0x52, 0x85, 0x84, 0xb8, 0x58, 0x2a, 0x53, 0x13, 0x8b, 0x24, 0x18, 0x15, 0x18, 0x35, 0x58, 0x83,
  87. 0xc0, 0x6c, 0x21, 0x11, 0x2e, 0xd6, 0xdc, 0xfc, 0xbc, 0x92, 0x0c, 0x09, 0x26, 0xb0, 0x20, 0x84,
  88. 0x23, 0x24, 0xc0, 0xc5, 0x9c, 0x92, 0x58, 0x29, 0xc1, 0x0c, 0x16, 0x03, 0x31, 0x9d, 0x62, 0xb9,
  89. 0xf8, 0x93, 0xf3, 0x73, 0xf5, 0x90, 0x8c, 0x75, 0xe2, 0x04, 0x19, 0x1a, 0x00, 0xb2, 0x2e, 0x80,
  90. 0x31, 0xca, 0x04, 0x2a, 0x93, 0x9e, 0x9f, 0x93, 0x98, 0x97, 0xae, 0x97, 0x5f, 0x94, 0xae, 0x9f,
  91. 0x9e, 0x9a, 0x07, 0x76, 0x8c, 0x3e, 0x44, 0x2a, 0xb1, 0x20, 0xb3, 0x18, 0xe1, 0x4e, 0x6b, 0x10,
  92. 0xf1, 0x83, 0x91, 0x71, 0x11, 0x13, 0xb3, 0x7b, 0x48, 0x40, 0x12, 0x1b, 0x58, 0xa5, 0x31, 0x20,
  93. 0x00, 0x00, 0xff, 0xff, 0x84, 0x95, 0xf3, 0x4c, 0xd0, 0x00, 0x00, 0x00,
  94. }