1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/type/fraction.proto 3 4package fraction 5 6import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11) 12 13// Reference imports to suppress errors if they are not otherwise used. 14var _ = proto.Marshal 15var _ = fmt.Errorf 16var _ = math.Inf 17 18// This is a compile-time assertion to ensure that this generated file 19// is compatible with the proto package it is being compiled against. 20// A compilation error at this line likely means your copy of the 21// proto package needs to be updated. 22const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 23 24// Represents a fraction in terms of a numerator divided by a denominator. 25type Fraction struct { 26 // The portion of the denominator in the faction, e.g. 2 in 2/3. 27 Numerator int64 `protobuf:"varint,1,opt,name=numerator,proto3" json:"numerator,omitempty"` 28 // The value by which the numerator is divided, e.g. 3 in 2/3. Must be 29 // positive. 30 Denominator int64 `protobuf:"varint,2,opt,name=denominator,proto3" json:"denominator,omitempty"` 31 XXX_NoUnkeyedLiteral struct{} `json:"-"` 32 XXX_unrecognized []byte `json:"-"` 33 XXX_sizecache int32 `json:"-"` 34} 35 36func (m *Fraction) Reset() { *m = Fraction{} } 37func (m *Fraction) String() string { return proto.CompactTextString(m) } 38func (*Fraction) ProtoMessage() {} 39func (*Fraction) Descriptor() ([]byte, []int) { 40 return fileDescriptor_154821c252985829, []int{0} 41} 42 43func (m *Fraction) XXX_Unmarshal(b []byte) error { 44 return xxx_messageInfo_Fraction.Unmarshal(m, b) 45} 46func (m *Fraction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 47 return xxx_messageInfo_Fraction.Marshal(b, m, deterministic) 48} 49func (m *Fraction) XXX_Merge(src proto.Message) { 50 xxx_messageInfo_Fraction.Merge(m, src) 51} 52func (m *Fraction) XXX_Size() int { 53 return xxx_messageInfo_Fraction.Size(m) 54} 55func (m *Fraction) XXX_DiscardUnknown() { 56 xxx_messageInfo_Fraction.DiscardUnknown(m) 57} 58 59var xxx_messageInfo_Fraction proto.InternalMessageInfo 60 61func (m *Fraction) GetNumerator() int64 { 62 if m != nil { 63 return m.Numerator 64 } 65 return 0 66} 67 68func (m *Fraction) GetDenominator() int64 { 69 if m != nil { 70 return m.Denominator 71 } 72 return 0 73} 74 75func init() { 76 proto.RegisterType((*Fraction)(nil), "google.type.Fraction") 77} 78 79func init() { proto.RegisterFile("google/type/fraction.proto", fileDescriptor_154821c252985829) } 80 81var fileDescriptor_154821c252985829 = []byte{ 82 // 168 bytes of a gzipped FileDescriptorProto 83 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4a, 0xcf, 0xcf, 0x4f, 84 0xcf, 0x49, 0xd5, 0x2f, 0xa9, 0x2c, 0x48, 0xd5, 0x4f, 0x2b, 0x4a, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 85 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0xc8, 0xe9, 0x81, 0xe4, 0x94, 0xbc, 0xb8, 86 0x38, 0xdc, 0xa0, 0xd2, 0x42, 0x32, 0x5c, 0x9c, 0x79, 0xa5, 0xb9, 0xa9, 0x45, 0x89, 0x25, 0xf9, 87 0x45, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0xcc, 0x41, 0x08, 0x01, 0x21, 0x05, 0x2e, 0xee, 0x94, 0xd4, 88 0xbc, 0xfc, 0xdc, 0xcc, 0x3c, 0xb0, 0x3c, 0x13, 0x58, 0x1e, 0x59, 0xc8, 0x29, 0x8d, 0x8b, 0x3f, 89 0x39, 0x3f, 0x57, 0x0f, 0xc9, 0x78, 0x27, 0x5e, 0x98, 0xe1, 0x01, 0x20, 0xab, 0x03, 0x18, 0xa3, 90 0x6c, 0xa0, 0xb2, 0xe9, 0xf9, 0x39, 0x89, 0x79, 0xe9, 0x7a, 0xf9, 0x45, 0xe9, 0xfa, 0xe9, 0xa9, 91 0x79, 0x60, 0x87, 0xe9, 0x43, 0xa4, 0x12, 0x0b, 0x32, 0x8b, 0x51, 0xdd, 0x6d, 0x0d, 0x63, 0x2c, 92 0x62, 0x62, 0x76, 0x0f, 0x09, 0x48, 0x62, 0x03, 0x2b, 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 93 0xd9, 0xdd, 0xa8, 0x56, 0xe5, 0x00, 0x00, 0x00, 94} 95