type google.golang.org/protobuf/types/known/durationpb.Duration
65 uses
google.golang.org/protobuf/types/known/durationpb (current package)
duration.pb.go#L148: type Duration struct {
duration.pb.go#L167: func New(d time.Duration) *Duration {
duration.pb.go#L171: return &Duration{Seconds: int64(secs), Nanos: int32(nanos)}
duration.pb.go#L176: func (x *Duration) AsDuration() time.Duration {
duration.pb.go#L197: func (x *Duration) IsValid() bool {
duration.pb.go#L205: func (x *Duration) CheckValid() error {
duration.pb.go#L231: func (x *Duration) check() uint {
duration.pb.go#L251: func (x *Duration) Reset() {
duration.pb.go#L252: *x = Duration{}
duration.pb.go#L260: func (x *Duration) String() string {
duration.pb.go#L264: func (*Duration) ProtoMessage() {}
duration.pb.go#L266: func (x *Duration) ProtoReflect() protoreflect.Message {
duration.pb.go#L279: func (*Duration) Descriptor() ([]byte, []int) {
duration.pb.go#L283: func (x *Duration) GetSeconds() int64 {
duration.pb.go#L290: func (x *Duration) GetNanos() int32 {
duration.pb.go#L332: (*Duration)(nil), // 0: google.protobuf.Duration
duration.pb.go#L349: switch v := v.(*Duration); i {
google.golang.org/genproto/googleapis/api/metric
metric.pb.go#L551: SamplePeriod *durationpb.Duration `protobuf:"bytes,2,opt,name=sample_period,json=samplePeriod,proto3" json:"sample_period,omitempty"`
metric.pb.go#L555: IngestDelay *durationpb.Duration `protobuf:"bytes,3,opt,name=ingest_delay,json=ingestDelay,proto3" json:"ingest_delay,omitempty"`
metric.pb.go#L598: func (x *MetricDescriptor_MetricDescriptorMetadata) GetSamplePeriod() *durationpb.Duration {
metric.pb.go#L605: func (x *MetricDescriptor_MetricDescriptorMetadata) GetIngestDelay() *durationpb.Duration {
metric.pb.go#L724: (*durationpb.Duration)(nil), // 8: google.protobuf.Duration
google.golang.org/genproto/googleapis/cloud/tasks/v2
queue.pb.go#L478: MaxRetryDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=max_retry_duration,json=maxRetryDuration,proto3" json:"max_retry_duration,omitempty"`
queue.pb.go#L494: MinBackoff *durationpb.Duration `protobuf:"bytes,3,opt,name=min_backoff,json=minBackoff,proto3" json:"min_backoff,omitempty"`
queue.pb.go#L510: MaxBackoff *durationpb.Duration `protobuf:"bytes,4,opt,name=max_backoff,json=maxBackoff,proto3" json:"max_backoff,omitempty"`
queue.pb.go#L579: func (x *RetryConfig) GetMaxRetryDuration() *durationpb.Duration {
queue.pb.go#L586: func (x *RetryConfig) GetMinBackoff() *durationpb.Duration {
queue.pb.go#L593: func (x *RetryConfig) GetMaxBackoff() *durationpb.Duration {
queue.pb.go#L782: (*durationpb.Duration)(nil), // 7: google.protobuf.Duration
task.pb.go#L190: DispatchDeadline *durationpb.Duration `protobuf:"bytes,6,opt,name=dispatch_deadline,json=dispatchDeadline,proto3" json:"dispatch_deadline,omitempty"`
task.pb.go#L284: func (x *Task) GetDispatchDeadline() *durationpb.Duration {
task.pb.go#L551: (*durationpb.Duration)(nil), // 6: google.protobuf.Duration
google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1
error_stats_service.pb.go#L276: TimedCountDuration *durationpb.Duration `protobuf:"bytes,6,opt,name=timed_count_duration,json=timedCountDuration,proto3" json:"timed_count_duration,omitempty"`
error_stats_service.pb.go#L355: func (x *ListGroupStatsRequest) GetTimedCountDuration() *durationpb.Duration {
error_stats_service.pb.go#L1398: (*durationpb.Duration)(nil), // 13: google.protobuf.Duration
google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2
profiler.pb.go#L342: Duration *durationpb.Duration `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"`
profiler.pb.go#L405: func (x *Profile) GetDuration() *durationpb.Duration {
profiler.pb.go#L672: (*durationpb.Duration)(nil), // 9: google.protobuf.Duration
google.golang.org/genproto/googleapis/logging/type
http_request.pb.go#L84: Latency *durationpb.Duration `protobuf:"bytes,14,opt,name=latency,proto3" json:"latency,omitempty"`
http_request.pb.go#L196: func (x *HttpRequest) GetLatency() *durationpb.Duration {
http_request.pb.go#L314: (*durationpb.Duration)(nil), // 1: google.protobuf.Duration
google.golang.org/genproto/googleapis/monitoring/v3
alert.pb.go#L652: Duration *durationpb.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"`
alert.pb.go#L736: func (x *AlertPolicy_Condition_MetricThreshold) GetDuration() *durationpb.Duration {
alert.pb.go#L789: Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`
alert.pb.go#L843: func (x *AlertPolicy_Condition_MetricAbsence) GetDuration() *durationpb.Duration {
alert.pb.go#L1079: (*durationpb.Duration)(nil), // 13: google.protobuf.Duration
common.pb.go#L800: AlignmentPeriod *durationpb.Duration `protobuf:"bytes,1,opt,name=alignment_period,json=alignmentPeriod,proto3" json:"alignment_period,omitempty"`
common.pb.go#L882: func (x *Aggregation) GetAlignmentPeriod() *durationpb.Duration {
common.pb.go#L1065: (*durationpb.Duration)(nil), // 9: google.protobuf.Duration
service.pb.go#L373: func (x *ServiceLevelObjective) GetRollingPeriod() *durationpb.Duration {
service.pb.go#L394: RollingPeriod *durationpb.Duration `protobuf:"bytes,5,opt,name=rolling_period,json=rollingPeriod,proto3,oneof"`
service.pb.go#L968: WindowPeriod *durationpb.Duration `protobuf:"bytes,4,opt,name=window_period,json=windowPeriod,proto3" json:"window_period,omitempty"`
service.pb.go#L1038: func (x *WindowsBasedSli) GetWindowPeriod() *durationpb.Duration {
service.pb.go#L1475: Threshold *durationpb.Duration `protobuf:"bytes,3,opt,name=threshold,proto3" json:"threshold,omitempty"`
service.pb.go#L1510: func (x *BasicSli_LatencyCriteria) GetThreshold() *durationpb.Duration {
service.pb.go#L1986: (*durationpb.Duration)(nil), // 20: google.protobuf.Duration
uptime.pb.go#L549: Period *durationpb.Duration `protobuf:"bytes,7,opt,name=period,proto3" json:"period,omitempty"`
uptime.pb.go#L552: Timeout *durationpb.Duration `protobuf:"bytes,8,opt,name=timeout,proto3" json:"timeout,omitempty"`
uptime.pb.go#L669: func (x *UptimeCheckConfig) GetPeriod() *durationpb.Duration {
uptime.pb.go#L676: func (x *UptimeCheckConfig) GetTimeout() *durationpb.Duration {
uptime.pb.go#L1472: (*durationpb.Duration)(nil), // 16: google.protobuf.Duration
google.golang.org/genproto/googleapis/rpc/errdetails
error_details.pb.go#L63: RetryDelay *durationpb.Duration `protobuf:"bytes,1,opt,name=retry_delay,json=retryDelay,proto3" json:"retry_delay,omitempty"`
error_details.pb.go#L98: func (x *RetryInfo) GetRetryDelay() *durationpb.Duration {
error_details.pb.go#L1074: (*durationpb.Duration)(nil), // 15: google.protobuf.Duration
github.com/golang/protobuf/ptypes/duration
duration.pb.go#L15: type Duration = durationpb.Duration
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |