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

package calendarperiod

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

Index

Package Files

calendar_period.pb.go

Variables

var (
    CalendarPeriod_name = map[int32]string{
        0:  "CALENDAR_PERIOD_UNSPECIFIED",
        1:  "DAY",
        2:  "WEEK",
        3:  "FORTNIGHT",
        4:  "MONTH",
        5:  "QUARTER",
        6:  "HALF",
        7:  "YEAR",
    }
    CalendarPeriod_value = map[string]int32{
        "CALENDAR_PERIOD_UNSPECIFIED": 0,
        "DAY":                         1,
        "WEEK":                        2,
        "FORTNIGHT":                   3,
        "MONTH":                       4,
        "QUARTER":                     5,
        "HALF":                        6,
        "YEAR":                        7,
    }
)

Enum value maps for CalendarPeriod.

var File_google_type_calendar_period_proto protoreflect.FileDescriptor

type CalendarPeriod Uses

type CalendarPeriod int32

A `CalendarPeriod` represents the abstract concept of a time period that has a canonical start. Grammatically, "the start of the current `CalendarPeriod`." All calendar times begin at midnight UTC.

const (
    // Undefined period, raises an error.
    CalendarPeriod_CALENDAR_PERIOD_UNSPECIFIED CalendarPeriod = 0
    // A day.
    CalendarPeriod_DAY CalendarPeriod = 1
    // A week. Weeks begin on Monday, following
    // [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).
    CalendarPeriod_WEEK CalendarPeriod = 2
    // A fortnight. The first calendar fortnight of the year begins at the start
    // of week 1 according to
    // [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).
    CalendarPeriod_FORTNIGHT CalendarPeriod = 3
    // A month.
    CalendarPeriod_MONTH CalendarPeriod = 4
    // A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each
    // year.
    CalendarPeriod_QUARTER CalendarPeriod = 5
    // A half-year. Half-years start on dates 1-Jan and 1-Jul.
    CalendarPeriod_HALF CalendarPeriod = 6
    // A year.
    CalendarPeriod_YEAR CalendarPeriod = 7
)

func (CalendarPeriod) Descriptor Uses

func (CalendarPeriod) Descriptor() protoreflect.EnumDescriptor

func (CalendarPeriod) Enum Uses

func (x CalendarPeriod) Enum() *CalendarPeriod

func (CalendarPeriod) EnumDescriptor Uses

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

Deprecated: Use CalendarPeriod.Descriptor instead.

func (CalendarPeriod) Number Uses

func (x CalendarPeriod) Number() protoreflect.EnumNumber

func (CalendarPeriod) String Uses

func (x CalendarPeriod) String() string

func (CalendarPeriod) Type Uses

func (CalendarPeriod) Type() protoreflect.EnumType

Package calendarperiod imports 5 packages (graph) and is imported by 3 packages. Updated 2020-06-30. Refresh now. Tools for package owners.