google_type

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_google_type_date_proto protoreflect.FileDescriptor
View Source
var File_google_type_money_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Date

type Date struct {

	// Day of month. Must be from 1 to 31 and valid for the year and month, or 0. if specifying a year by itself or a year and month where the day is not significant.
	Day int32 `protobuf:"varint,3,opt,name=day,proto3" json:"day,omitempty"`
	// Localized String representation of date
	DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.
	Month int32 `protobuf:"varint,2,opt,name=month,proto3" json:"month,omitempty"`
	// Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
	Year int32 `protobuf:"varint,1,opt,name=year,proto3" json:"year,omitempty"`
	// contains filtered or unexported fields
}

Date, https://github.com/googleapis/googleapis/blob/master/google/date.proto

func (*Date) Descriptor deprecated

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

Deprecated: Use Date.ProtoReflect.Descriptor instead.

func (*Date) GetDay

func (x *Date) GetDay() int32

func (*Date) GetDisplayName

func (x *Date) GetDisplayName() string

func (*Date) GetMonth

func (x *Date) GetMonth() int32

func (*Date) GetYear

func (x *Date) GetYear() int32

func (*Date) ProtoMessage

func (*Date) ProtoMessage()

func (*Date) ProtoReflect

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

func (*Date) Reset

func (x *Date) Reset()

func (*Date) String

func (x *Date) String() string

type Money

type Money struct {

	// The 3-letter currency code defined in ISO 4217.
	CurrencyCode string `protobuf:"bytes,2,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
	// String representation of money entity
	DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Number of nano (10^-9) units of the amount. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
	Nanos int64 `protobuf:"varint,4,opt,name=nanos,proto3" json:"nanos,omitempty"`
	// The whole units of the amount.
	Units int64 `protobuf:"varint,3,opt,name=units,proto3" json:"units,omitempty"`
	// contains filtered or unexported fields
}

Represents an amount of money with its currency type. https://github.com/googleapis/googleapis/blob/master/google/money.proto

func (*Money) Descriptor deprecated

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

Deprecated: Use Money.ProtoReflect.Descriptor instead.

func (*Money) GetCurrencyCode

func (x *Money) GetCurrencyCode() string

func (*Money) GetDisplayName

func (x *Money) GetDisplayName() string

func (*Money) GetNanos

func (x *Money) GetNanos() int64

func (*Money) GetUnits

func (x *Money) GetUnits() int64

func (*Money) ProtoMessage

func (*Money) ProtoMessage()

func (*Money) ProtoReflect

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

func (*Money) Reset

func (x *Money) Reset()

func (*Money) String

func (x *Money) String() string

Jump to

Keyboard shortcuts

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