google_type

package
v0.0.0-...-940152b Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthColor = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowColor   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthDate = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDate   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthLatlng = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLatlng   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthMoney = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMoney   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthPostalAddress = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPostalAddress   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthTimeofday = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTimeofday   = fmt.Errorf("proto: integer overflow")
)
View Source
var DayOfWeek_name = map[int32]string{
	0: "DAY_OF_WEEK_UNSPECIFIED",
	1: "MONDAY",
	2: "TUESDAY",
	3: "WEDNESDAY",
	4: "THURSDAY",
	5: "FRIDAY",
	6: "SATURDAY",
	7: "SUNDAY",
}
View Source
var DayOfWeek_value = map[string]int32{
	"DAY_OF_WEEK_UNSPECIFIED": 0,
	"MONDAY":                  1,
	"TUESDAY":                 2,
	"WEDNESDAY":               3,
	"THURSDAY":                4,
	"FRIDAY":                  5,
	"SATURDAY":                6,
	"SUNDAY":                  7,
}

Functions

This section is empty.

Types

type Color

type Color struct {
	// The amount of red in the color as a value in the interval [0, 1].
	Red float32 `protobuf:"fixed32,1,opt,name=red,proto3" json:"red,omitempty"`
	// The amount of green in the color as a value in the interval [0, 1].
	Green float32 `protobuf:"fixed32,2,opt,name=green,proto3" json:"green,omitempty"`
	// The amount of blue in the color as a value in the interval [0, 1].
	Blue float32 `protobuf:"fixed32,3,opt,name=blue,proto3" json:"blue,omitempty"`
	// The fraction of this color that should be applied to the pixel. That is,
	// the final pixel color is defined by the equation:
	//
	//   pixel color = alpha * (this color) + (1.0 - alpha) * (background color)
	//
	// This means that a value of 1.0 corresponds to a solid color, whereas
	// a value of 0.0 corresponds to a completely transparent color. This
	// uses a wrapper message rather than a simple float scalar so that it is
	// possible to distinguish between a default value and the value being unset.
	// If omitted, this color object is to be rendered as a solid color
	// (as if the alpha value had been explicitly given with a value of 1.0).
	Alpha *types.FloatValue `protobuf:"bytes,4,opt,name=alpha,proto3" json:"alpha,omitempty"`
}

Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to/from color representations in various languages over compactness; for example, the fields of this representation can be trivially provided to the constructor of "java.awt.Color" in Java; it can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" method in iOS; and, with just a little work, it can be easily formatted into a CSS "rgba()" string in JavaScript, as well.

Note: this proto does not carry information about the absolute color space that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color space.

Example (Java):

import com.google.type.Color;

// ...
public static java.awt.Color fromProto(Color protocolor) {
  float alpha = protocolor.hasAlpha()
      ? protocolor.getAlpha().getValue()
      : 1.0;

  return new java.awt.Color(
      protocolor.getRed(),
      protocolor.getGreen(),
      protocolor.getBlue(),
      alpha);
}

public static Color toProto(java.awt.Color color) {
  float red = (float) color.getRed();
  float green = (float) color.getGreen();
  float blue = (float) color.getBlue();
  float denominator = 255.0;
  Color.Builder resultBuilder =
      Color
          .newBuilder()
          .setRed(red / denominator)
          .setGreen(green / denominator)
          .setBlue(blue / denominator);
  int alpha = color.getAlpha();
  if (alpha != 255) {
    result.setAlpha(
        FloatValue
            .newBuilder()
            .setValue(((float) alpha) / denominator)
            .build());
  }
  return resultBuilder.build();
}
// ...

Example (iOS / Obj-C):

    // ...
    static UIColor* fromProto(Color* protocolor) {
       float red = [protocolor red];
       float green = [protocolor green];
       float blue = [protocolor blue];
       FloatValue* alpha_wrapper = [protocolor alpha];
       float alpha = 1.0;
       if (alpha_wrapper != nil) {
         alpha = [alpha_wrapper value];
       }
       return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
    }

    static Color* toProto(UIColor* color) {
        CGFloat red, green, blue, alpha;
        if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) {
          return nil;
        }
        Color* result = [[Color alloc] init];
        [result setRed:red];
        [result setGreen:green];
        [result setBlue:blue];
        if (alpha <= 0.9999) {
          [result setAlpha:floatWrapperWithValue(alpha)];
        }
        [result autorelease];
        return result;
   }
   // ...

Example (JavaScript):

   // ...

   var protoToCssColor = function(rgb_color) {
      var redFrac = rgb_color.red || 0.0;
      var greenFrac = rgb_color.green || 0.0;
      var blueFrac = rgb_color.blue || 0.0;
      var red = Math.floor(redFrac * 255);
      var green = Math.floor(greenFrac * 255);
      var blue = Math.floor(blueFrac * 255);

      if (!('alpha' in rgb_color)) {
         return rgbToCssColor_(red, green, blue);
      }

      var alphaFrac = rgb_color.alpha.value || 0.0;
      var rgbParams = [red, green, blue].join(',');
      return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
   };

   var rgbToCssColor_ = function(red, green, blue) {
     var rgbNumber = new Number((red << 16) | (green << 8) | blue);
     var hexString = rgbNumber.toString(16);
     var missingZeros = 6 - hexString.length;
     var resultBuilder = ['#'];
     for (var i = 0; i < missingZeros; i++) {
        resultBuilder.push('0');
     }
     resultBuilder.push(hexString);
     return resultBuilder.join('');
   };

   // ...

func (*Color) Descriptor

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

func (*Color) Equal

func (this *Color) Equal(that interface{}) bool

func (*Color) GetAlpha

func (m *Color) GetAlpha() *types.FloatValue

func (*Color) GetBlue

func (m *Color) GetBlue() float32

func (*Color) GetGreen

func (m *Color) GetGreen() float32

func (*Color) GetRed

func (m *Color) GetRed() float32

func (*Color) GoString

func (this *Color) GoString() string

func (*Color) Marshal

func (m *Color) Marshal() (dAtA []byte, err error)

func (*Color) MarshalTo

func (m *Color) MarshalTo(dAtA []byte) (int, error)

func (*Color) MarshalToSizedBuffer

func (m *Color) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Color) ProtoMessage

func (*Color) ProtoMessage()

func (*Color) Reset

func (m *Color) Reset()

func (*Color) Size

func (m *Color) Size() (n int)

func (*Color) String

func (this *Color) String() string

func (*Color) Unmarshal

func (m *Color) Unmarshal(dAtA []byte) error

func (*Color) XXX_DiscardUnknown

func (m *Color) XXX_DiscardUnknown()

func (*Color) XXX_Marshal

func (m *Color) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Color) XXX_Merge

func (m *Color) XXX_Merge(src proto.Message)

func (*Color) XXX_Size

func (m *Color) XXX_Size() int

func (*Color) XXX_Unmarshal

func (m *Color) XXX_Unmarshal(b []byte) error

type Date

type Date struct {
	// 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"`
	// 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"`
	// 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"`
}

Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent:

* A full date, with non-zero year, month and day values * A month and day value, with a zero year, e.g. an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, e.g. a credit card expiration date

Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and `google.protobuf.Timestamp`.

func (*Date) Descriptor

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

func (*Date) Equal

func (this *Date) Equal(that interface{}) bool

func (*Date) GetDay

func (m *Date) GetDay() int32

func (*Date) GetMonth

func (m *Date) GetMonth() int32

func (*Date) GetYear

func (m *Date) GetYear() int32

func (*Date) GoString

func (this *Date) GoString() string

func (*Date) Marshal

func (m *Date) Marshal() (dAtA []byte, err error)

func (*Date) MarshalTo

func (m *Date) MarshalTo(dAtA []byte) (int, error)

func (*Date) MarshalToSizedBuffer

func (m *Date) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Date) ProtoMessage

func (*Date) ProtoMessage()

func (*Date) Reset

func (m *Date) Reset()

func (*Date) Size

func (m *Date) Size() (n int)

func (*Date) String

func (this *Date) String() string

func (*Date) Unmarshal

func (m *Date) Unmarshal(dAtA []byte) error

func (*Date) XXX_DiscardUnknown

func (m *Date) XXX_DiscardUnknown()

func (*Date) XXX_Marshal

func (m *Date) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Date) XXX_Merge

func (m *Date) XXX_Merge(src proto.Message)

func (*Date) XXX_Size

func (m *Date) XXX_Size() int

func (*Date) XXX_Unmarshal

func (m *Date) XXX_Unmarshal(b []byte) error

type DayOfWeek

type DayOfWeek int32

Represents a day of week.

const (
	// The unspecified day-of-week.
	DAY_OF_WEEK_UNSPECIFIED DayOfWeek = 0
	// The day-of-week of Monday.
	MONDAY DayOfWeek = 1
	// The day-of-week of Tuesday.
	TUESDAY DayOfWeek = 2
	// The day-of-week of Wednesday.
	WEDNESDAY DayOfWeek = 3
	// The day-of-week of Thursday.
	THURSDAY DayOfWeek = 4
	// The day-of-week of Friday.
	FRIDAY DayOfWeek = 5
	// The day-of-week of Saturday.
	SATURDAY DayOfWeek = 6
	// The day-of-week of Sunday.
	SUNDAY DayOfWeek = 7
)

func (DayOfWeek) EnumDescriptor

func (DayOfWeek) EnumDescriptor() ([]byte, []int)

func (DayOfWeek) String

func (x DayOfWeek) String() string

type LatLng

type LatLng struct {
	// The latitude in degrees. It must be in the range [-90.0, +90.0].
	Latitude float64 `protobuf:"fixed64,1,opt,name=latitude,proto3" json:"latitude,omitempty"`
	// The longitude in degrees. It must be in the range [-180.0, +180.0].
	Longitude float64 `protobuf:"fixed64,2,opt,name=longitude,proto3" json:"longitude,omitempty"`
}

An object representing a latitude/longitude pair. This is expressed as a pair of doubles representing degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84 standard</a>. Values must be within normalized ranges.

func (*LatLng) Descriptor

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

func (*LatLng) Equal

func (this *LatLng) Equal(that interface{}) bool

func (*LatLng) GetLatitude

func (m *LatLng) GetLatitude() float64

func (*LatLng) GetLongitude

func (m *LatLng) GetLongitude() float64

func (*LatLng) GoString

func (this *LatLng) GoString() string

func (*LatLng) Marshal

func (m *LatLng) Marshal() (dAtA []byte, err error)

func (*LatLng) MarshalTo

func (m *LatLng) MarshalTo(dAtA []byte) (int, error)

func (*LatLng) MarshalToSizedBuffer

func (m *LatLng) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LatLng) ProtoMessage

func (*LatLng) ProtoMessage()

func (*LatLng) Reset

func (m *LatLng) Reset()

func (*LatLng) Size

func (m *LatLng) Size() (n int)

func (*LatLng) String

func (this *LatLng) String() string

func (*LatLng) Unmarshal

func (m *LatLng) Unmarshal(dAtA []byte) error

func (*LatLng) XXX_DiscardUnknown

func (m *LatLng) XXX_DiscardUnknown()

func (*LatLng) XXX_Marshal

func (m *LatLng) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LatLng) XXX_Merge

func (m *LatLng) XXX_Merge(src proto.Message)

func (*LatLng) XXX_Size

func (m *LatLng) XXX_Size() int

func (*LatLng) XXX_Unmarshal

func (m *LatLng) XXX_Unmarshal(b []byte) error

type Money

type Money struct {
	// The 3-letter currency code defined in ISO 4217.
	CurrencyCode string `protobuf:"bytes,1,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
	// The whole units of the amount.
	// For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
	Units int64 `protobuf:"varint,2,opt,name=units,proto3" json:"units,omitempty"`
	// Number of nano (10^-9) units of the amount.
	// The value must be between -999,999,999 and +999,999,999 inclusive.
	// If `units` is positive, `nanos` must be positive or zero.
	// If `units` is zero, `nanos` can be positive, zero, or negative.
	// If `units` is negative, `nanos` must be negative or zero.
	// For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
	Nanos int32 `protobuf:"varint,3,opt,name=nanos,proto3" json:"nanos,omitempty"`
}

Represents an amount of money with its currency type.

func (*Money) Descriptor

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

func (*Money) Equal

func (this *Money) Equal(that interface{}) bool

func (*Money) GetCurrencyCode

func (m *Money) GetCurrencyCode() string

func (*Money) GetNanos

func (m *Money) GetNanos() int32

func (*Money) GetUnits

func (m *Money) GetUnits() int64

func (*Money) GoString

func (this *Money) GoString() string

func (*Money) Marshal

func (m *Money) Marshal() (dAtA []byte, err error)

func (*Money) MarshalTo

func (m *Money) MarshalTo(dAtA []byte) (int, error)

func (*Money) MarshalToSizedBuffer

func (m *Money) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Money) ProtoMessage

func (*Money) ProtoMessage()

func (*Money) Reset

func (m *Money) Reset()

func (*Money) Size

func (m *Money) Size() (n int)

func (*Money) String

func (this *Money) String() string

func (*Money) Unmarshal

func (m *Money) Unmarshal(dAtA []byte) error

func (*Money) XXX_DiscardUnknown

func (m *Money) XXX_DiscardUnknown()

func (*Money) XXX_Marshal

func (m *Money) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Money) XXX_Merge

func (m *Money) XXX_Merge(src proto.Message)

func (*Money) XXX_Size

func (m *Money) XXX_Size() int

func (*Money) XXX_Unmarshal

func (m *Money) XXX_Unmarshal(b []byte) error

type PostalAddress

type PostalAddress struct {
	// The schema revision of the `PostalAddress`.
	// All new revisions **must** be backward compatible with old revisions.
	Revision int32 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
	// Required. CLDR region code of the country/region of the address. This
	// is never inferred and it is up to the user to ensure the value is
	// correct. See http://cldr.unicode.org/ and
	// http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
	// for details. Example: "CH" for Switzerland.
	RegionCode string `protobuf:"bytes,2,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
	// Optional. BCP-47 language code of the contents of this address (if
	// known). This is often the UI language of the input form or is expected
	// to match one of the languages used in the address' country/region, or their
	// transliterated equivalents.
	// This can affect formatting in certain countries, but is not critical
	// to the correctness of the data and will never affect any validation or
	// other non-formatting related operations.
	//
	// If this value is not known, it should be omitted (rather than specifying a
	// possibly incorrect default).
	//
	// Examples: "zh-Hant", "ja", "ja-Latn", "en".
	LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// Optional. Postal code of the address. Not all countries use or require
	// postal codes to be present, but where they are used, they may trigger
	// additional validation with other parts of the address (e.g. state/zip
	// validation in the U.S.A.).
	PostalCode string `protobuf:"bytes,4,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"`
	// Optional. Additional, country-specific, sorting code. This is not used
	// in most regions. Where it is used, the value is either a string like
	// "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number
	// alone, representing the "sector code" (Jamaica), "delivery area indicator"
	// (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
	SortingCode string `protobuf:"bytes,5,opt,name=sorting_code,json=sortingCode,proto3" json:"sorting_code,omitempty"`
	// Optional. Highest administrative subdivision which is used for postal
	// addresses of a country or region.
	// For example, this can be a state, a province, an oblast, or a prefecture.
	// Specifically, for Spain this is the province and not the autonomous
	// community (e.g. "Barcelona" and not "Catalonia").
	// Many countries don't use an administrative area in postal addresses. E.g.
	// in Switzerland this should be left unpopulated.
	AdministrativeArea string `protobuf:"bytes,6,opt,name=administrative_area,json=administrativeArea,proto3" json:"administrative_area,omitempty"`
	// Optional. Generally refers to the city/town portion of the address.
	// Examples: US city, IT comune, UK post town.
	// In regions of the world where localities are not well defined or do not fit
	// into this structure well, leave locality empty and use address_lines.
	Locality string `protobuf:"bytes,7,opt,name=locality,proto3" json:"locality,omitempty"`
	// Optional. Sublocality of the address.
	// For example, this can be neighborhoods, boroughs, districts.
	Sublocality string `protobuf:"bytes,8,opt,name=sublocality,proto3" json:"sublocality,omitempty"`
	// Unstructured address lines describing the lower levels of an address.
	//
	// Because values in address_lines do not have type information and may
	// sometimes contain multiple values in a single field (e.g.
	// "Austin, TX"), it is important that the line order is clear. The order of
	// address lines should be "envelope order" for the country/region of the
	// address. In places where this can vary (e.g. Japan), address_language is
	// used to make it explicit (e.g. "ja" for large-to-small ordering and
	// "ja-Latn" or "en" for small-to-large). This way, the most specific line of
	// an address can be selected based on the language.
	//
	// The minimum permitted structural representation of an address consists
	// of a region_code with all remaining information placed in the
	// address_lines. It would be possible to format such an address very
	// approximately without geocoding, but no semantic reasoning could be
	// made about any of the address components until it was at least
	// partially resolved.
	//
	// Creating an address only containing a region_code and address_lines, and
	// then geocoding is the recommended way to handle completely unstructured
	// addresses (as opposed to guessing which parts of the address should be
	// localities or administrative areas).
	AddressLines []string `protobuf:"bytes,9,rep,name=address_lines,json=addressLines,proto3" json:"address_lines,omitempty"`
	// Optional. The recipient at the address.
	// This field may, under certain circumstances, contain multiline information.
	// For example, it might contain "care of" information.
	Recipients []string `protobuf:"bytes,10,rep,name=recipients,proto3" json:"recipients,omitempty"`
	// Optional. The name of the organization at the address.
	Organization string `protobuf:"bytes,11,opt,name=organization,proto3" json:"organization,omitempty"`
}

Represents a postal address, e.g. for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains).

In typical usage an address would be created via user input or from importing existing data, depending on the type of process.

Advice on address input / editing:

  • Users should not be presented with UI elements for input or editing of fields outside countries where that field is used.

For more guidance on how to use this schema, please see: https://support.google.com/business/answer/6397478

func (*PostalAddress) Descriptor

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

func (*PostalAddress) Equal

func (this *PostalAddress) Equal(that interface{}) bool

func (*PostalAddress) GetAddressLines

func (m *PostalAddress) GetAddressLines() []string

func (*PostalAddress) GetAdministrativeArea

func (m *PostalAddress) GetAdministrativeArea() string

func (*PostalAddress) GetLanguageCode

func (m *PostalAddress) GetLanguageCode() string

func (*PostalAddress) GetLocality

func (m *PostalAddress) GetLocality() string

func (*PostalAddress) GetOrganization

func (m *PostalAddress) GetOrganization() string

func (*PostalAddress) GetPostalCode

func (m *PostalAddress) GetPostalCode() string

func (*PostalAddress) GetRecipients

func (m *PostalAddress) GetRecipients() []string

func (*PostalAddress) GetRegionCode

func (m *PostalAddress) GetRegionCode() string

func (*PostalAddress) GetRevision

func (m *PostalAddress) GetRevision() int32

func (*PostalAddress) GetSortingCode

func (m *PostalAddress) GetSortingCode() string

func (*PostalAddress) GetSublocality

func (m *PostalAddress) GetSublocality() string

func (*PostalAddress) GoString

func (this *PostalAddress) GoString() string

func (*PostalAddress) Marshal

func (m *PostalAddress) Marshal() (dAtA []byte, err error)

func (*PostalAddress) MarshalTo

func (m *PostalAddress) MarshalTo(dAtA []byte) (int, error)

func (*PostalAddress) MarshalToSizedBuffer

func (m *PostalAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PostalAddress) ProtoMessage

func (*PostalAddress) ProtoMessage()

func (*PostalAddress) Reset

func (m *PostalAddress) Reset()

func (*PostalAddress) Size

func (m *PostalAddress) Size() (n int)

func (*PostalAddress) String

func (this *PostalAddress) String() string

func (*PostalAddress) Unmarshal

func (m *PostalAddress) Unmarshal(dAtA []byte) error

func (*PostalAddress) XXX_DiscardUnknown

func (m *PostalAddress) XXX_DiscardUnknown()

func (*PostalAddress) XXX_Marshal

func (m *PostalAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PostalAddress) XXX_Merge

func (m *PostalAddress) XXX_Merge(src proto.Message)

func (*PostalAddress) XXX_Size

func (m *PostalAddress) XXX_Size() int

func (*PostalAddress) XXX_Unmarshal

func (m *PostalAddress) XXX_Unmarshal(b []byte) error

type TimeOfDay

type TimeOfDay struct {
	// Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
	// to allow the value "24:00:00" for scenarios like business closing time.
	Hours int32 `protobuf:"varint,1,opt,name=hours,proto3" json:"hours,omitempty"`
	// Minutes of hour of day. Must be from 0 to 59.
	Minutes int32 `protobuf:"varint,2,opt,name=minutes,proto3" json:"minutes,omitempty"`
	// Seconds of minutes of the time. Must normally be from 0 to 59. An API may
	// allow the value 60 if it allows leap-seconds.
	Seconds int32 `protobuf:"varint,3,opt,name=seconds,proto3" json:"seconds,omitempty"`
	// Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
	Nanos int32 `protobuf:"varint,4,opt,name=nanos,proto3" json:"nanos,omitempty"`
}

Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are [google.type.Date][google.type.Date] and `google.protobuf.Timestamp`.

func (*TimeOfDay) Descriptor

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

func (*TimeOfDay) Equal

func (this *TimeOfDay) Equal(that interface{}) bool

func (*TimeOfDay) GetHours

func (m *TimeOfDay) GetHours() int32

func (*TimeOfDay) GetMinutes

func (m *TimeOfDay) GetMinutes() int32

func (*TimeOfDay) GetNanos

func (m *TimeOfDay) GetNanos() int32

func (*TimeOfDay) GetSeconds

func (m *TimeOfDay) GetSeconds() int32

func (*TimeOfDay) GoString

func (this *TimeOfDay) GoString() string

func (*TimeOfDay) Marshal

func (m *TimeOfDay) Marshal() (dAtA []byte, err error)

func (*TimeOfDay) MarshalTo

func (m *TimeOfDay) MarshalTo(dAtA []byte) (int, error)

func (*TimeOfDay) MarshalToSizedBuffer

func (m *TimeOfDay) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TimeOfDay) ProtoMessage

func (*TimeOfDay) ProtoMessage()

func (*TimeOfDay) Reset

func (m *TimeOfDay) Reset()

func (*TimeOfDay) Size

func (m *TimeOfDay) Size() (n int)

func (*TimeOfDay) String

func (this *TimeOfDay) String() string

func (*TimeOfDay) Unmarshal

func (m *TimeOfDay) Unmarshal(dAtA []byte) error

func (*TimeOfDay) XXX_DiscardUnknown

func (m *TimeOfDay) XXX_DiscardUnknown()

func (*TimeOfDay) XXX_Marshal

func (m *TimeOfDay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TimeOfDay) XXX_Merge

func (m *TimeOfDay) XXX_Merge(src proto.Message)

func (*TimeOfDay) XXX_Size

func (m *TimeOfDay) XXX_Size() int

func (*TimeOfDay) XXX_Unmarshal

func (m *TimeOfDay) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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