genproto: google.golang.org/genproto/googleapis/type/fraction Index | Files

package fraction

import "google.golang.org/genproto/googleapis/type/fraction"

Index

Package Files

fraction.pb.go

Variables

var File_google_type_fraction_proto protoreflect.FileDescriptor

type Fraction Uses

type Fraction struct {

    // The portion of the denominator in the faction, 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 Uses

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

Deprecated: Use Fraction.ProtoReflect.Descriptor instead.

func (*Fraction) GetDenominator Uses

func (x *Fraction) GetDenominator() int64

func (*Fraction) GetNumerator Uses

func (x *Fraction) GetNumerator() int64

func (*Fraction) ProtoMessage Uses

func (*Fraction) ProtoMessage()

func (*Fraction) ProtoReflect Uses

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

func (*Fraction) Reset Uses

func (x *Fraction) Reset()

func (*Fraction) String Uses

func (x *Fraction) String() string

Package fraction imports 5 packages (graph) and is imported by 2 packages. Updated 2020-06-12. Refresh now. Tools for package owners.