fraction

package
v0.0.0-...-8c6c420 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_google_type_fraction_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Fraction

type Fraction struct {

	// The numerator in the fraction, e.g. 2 in 2/3.
	Numerator int64 `protobuf:"varint,1,opt,name=numerator,proto3" json:"numerator,omitempty"`
	// The value by which the numerator is divided, e.g. 3 in 2/3. Must be
	// positive.
	Denominator int64 `protobuf:"varint,2,opt,name=denominator,proto3" json:"denominator,omitempty"`
	// contains filtered or unexported fields
}

Represents a fraction in terms of a numerator divided by a denominator.

func (*Fraction) Descriptor deprecated

func (*Fraction) Descriptor() ([]byte, []int)

Deprecated: Use Fraction.ProtoReflect.Descriptor instead.

func (*Fraction) GetDenominator

func (x *Fraction) GetDenominator() int64

func (*Fraction) GetNumerator

func (x *Fraction) GetNumerator() int64

func (*Fraction) ProtoMessage

func (*Fraction) ProtoMessage()

func (*Fraction) ProtoReflect

func (x *Fraction) ProtoReflect() protoreflect.Message

func (*Fraction) Reset

func (x *Fraction) Reset()

func (*Fraction) String

func (x *Fraction) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL