Debian Codegraph @

googleapis/type/fraction/fraction.pb.go

raw
1 // Copyright 2026 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.26.0
18 // protoc v4.24.4
19 // source: google/type/fraction.proto
20
21 package fraction
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 )
30
31 const (
32 // Verify that this generated code is sufficiently up-to-date.
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34 // Verify that runtime/protoimpl is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38 // Represents a fraction in terms of a numerator divided by a denominator.
39 type Fraction struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44 // The numerator in the fraction, e.g. 2 in 2/3.
45 Numerator int64 `protobuf:"varint,1,opt,name=numerator,proto3" json:"numerator,omitempty"`
46 // The value by which the numerator is divided, e.g. 3 in 2/3. Must be
47 // positive.
48 Denominator int64 `protobuf:"varint,2,opt,name=denominator,proto3" json:"denominator,omitempty"`
49 }
50
51 func (x *Fraction) Reset() {
52 *x = Fraction{}
53 if protoimpl.UnsafeEnabled {
54 mi := &file_google_type_fraction_proto_msgTypes[0]
55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
56 ms.StoreMessageInfo(mi)
57 }
58 }
59
60 func (x *Fraction) String() string {
61 return protoimpl.X.MessageStringOf(x)
62 }
63
64 func (*Fraction) ProtoMessage() {}
65
66 func (x *Fraction) ProtoReflect() protoreflect.Message {
67 mi := &file_google_type_fraction_proto_msgTypes[0]
68 if protoimpl.UnsafeEnabled && x != nil {
69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
70 if ms.LoadMessageInfo() == nil {
71 ms.StoreMessageInfo(mi)
72 }
73 return ms
74 }
75 return mi.MessageOf(x)
76 }
77
78 // Deprecated: Use Fraction.ProtoReflect.Descriptor instead.
79 func (*Fraction) Descriptor() ([]byte, []int) {
80 return file_google_type_fraction_proto_rawDescGZIP(), []int{0}
81 }
82
83 func (x *Fraction) GetNumerator() int64 {
84 if x != nil {
85 return x.Numerator
86 }
87 return 0
88 }
89
90 func (x *Fraction) GetDenominator() int64 {
91 if x != nil {
92 return x.Denominator
93 }
94 return 0
95 }
96
97 var File_google_type_fraction_proto protoreflect.FileDescriptor
98
99 var file_google_type_fraction_proto_rawDesc = []byte{
100 0x0a, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x66, 0x72,
101 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x6f,
102 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x22, 0x4a, 0x0a, 0x08, 0x46, 0x72, 0x61,
103 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x75, 0x6d, 0x65, 0x72, 0x61, 0x74,
104 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6e, 0x75, 0x6d, 0x65, 0x72, 0x61,
105 0x74, 0x6f, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x6e, 0x61, 0x74,
106 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x69,
107 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x66, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
108 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x42, 0x0d, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69,
109 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
110 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
111 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
112 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x66, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3b, 0x66,
113 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x47, 0x54, 0x50, 0x62, 0x06, 0x70,
114 0x72, 0x6f, 0x74, 0x6f, 0x33,
115 }
116
117 var (
118 file_google_type_fraction_proto_rawDescOnce sync.Once
119 file_google_type_fraction_proto_rawDescData = file_google_type_fraction_proto_rawDesc
120 )
121
122 func file_google_type_fraction_proto_rawDescGZIP() []byte {
123 file_google_type_fraction_proto_rawDescOnce.Do(func() {
124 file_google_type_fraction_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_type_fraction_proto_rawDescData)
125 })
126 return file_google_type_fraction_proto_rawDescData
127 }
128
129 var file_google_type_fraction_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
130 var file_google_type_fraction_proto_goTypes = []interface{}{
131 (*Fraction)(nil), // 0: google.type.Fraction
132 }
133 var file_google_type_fraction_proto_depIdxs = []int32{
134 0, // [0:0] is the sub-list for method output_type
135 0, // [0:0] is the sub-list for method input_type
136 0, // [0:0] is the sub-list for extension type_name
137 0, // [0:0] is the sub-list for extension extendee
138 0, // [0:0] is the sub-list for field type_name
139 }
140
141 func init() { file_google_type_fraction_proto_init() }
142 func file_google_type_fraction_proto_init() {
143 if File_google_type_fraction_proto != nil {
144 return
145 }
146 if !protoimpl.UnsafeEnabled {
147 file_google_type_fraction_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
148 switch v := v.(*Fraction); i {
149 case 0:
150 return &v.state
151 case 1:
152 return &v.sizeCache
153 case 2:
154 return &v.unknownFields
155 default:
156 return nil
157 }
158 }
159 }
160 type x struct{}
161 out := protoimpl.TypeBuilder{
162 File: protoimpl.DescBuilder{
163 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
164 RawDescriptor: file_google_type_fraction_proto_rawDesc,
165 NumEnums: 0,
166 NumMessages: 1,
167 NumExtensions: 0,
168 NumServices: 0,
169 },
170 GoTypes: file_google_type_fraction_proto_goTypes,
171 DependencyIndexes: file_google_type_fraction_proto_depIdxs,
172 MessageInfos: file_google_type_fraction_proto_msgTypes,
173 }.Build()
174 File_google_type_fraction_proto = out.File
175 file_google_type_fraction_proto_rawDesc = nil
176 file_google_type_fraction_proto_goTypes = nil
177 file_google_type_fraction_proto_depIdxs = nil
178 }