interval

package
v0.0.0-...-10f96fb Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 39

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_google_type_interval_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Interval

type Interval struct {

	// Optional. Inclusive start of the interval.
	//
	// If specified, a Timestamp matching this interval will have to be the same
	// or after the start.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Optional. Exclusive end of the interval.
	//
	// If specified, a Timestamp matching this interval will have to be before the
	// end.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).

The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.

func (*Interval) Descriptor deprecated

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

Deprecated: Use Interval.ProtoReflect.Descriptor instead.

func (*Interval) GetEndTime

func (x *Interval) GetEndTime() *timestamppb.Timestamp

func (*Interval) GetStartTime

func (x *Interval) GetStartTime() *timestamppb.Timestamp

func (*Interval) ProtoMessage

func (*Interval) ProtoMessage()

func (*Interval) ProtoReflect

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

func (*Interval) Reset

func (x *Interval) Reset()

func (*Interval) String

func (x *Interval) String() string

Jump to

Keyboard shortcuts

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