usage

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-helpers. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	RecordType_name = map[int32]string{
		0: "RECORD_TYPE_UNSPECIFIED",
		1: "RECORD_TYPE_ACTIONS",
		2: "RECORD_TYPE_ACTIVE_STORAGE",
		3: "RECORD_TYPE_RETAINED_STORAGE",
	}
	RecordType_value = map[string]int32{
		"RECORD_TYPE_UNSPECIFIED":      0,
		"RECORD_TYPE_ACTIONS":          1,
		"RECORD_TYPE_ACTIVE_STORAGE":   2,
		"RECORD_TYPE_RETAINED_STORAGE": 3,
	}
)

Enum value maps for RecordType.

View Source
var (
	RecordUnit_name = map[int32]string{
		0: "RECORD_UNIT_UNSPECIFIED",
		1: "RECORD_UNIT_NUMBER",
		2: "RECORD_UNIT_BYTE_SECONDS",
	}
	RecordUnit_value = map[string]int32{
		"RECORD_UNIT_UNSPECIFIED":  0,
		"RECORD_UNIT_NUMBER":       1,
		"RECORD_UNIT_BYTE_SECONDS": 2,
	}
)

Enum value maps for RecordUnit.

View Source
var (
	GroupByKey_name = map[int32]string{
		0: "GROUP_BY_KEY_UNSPECIFIED",
		1: "GROUP_BY_KEY_NAMESPACE",
	}
	GroupByKey_value = map[string]int32{
		"GROUP_BY_KEY_UNSPECIFIED": 0,
		"GROUP_BY_KEY_NAMESPACE":   1,
	}
)

Enum value maps for GroupByKey.

View Source
var File_temporal_api_cloud_usage_v1_message_proto protoreflect.FileDescriptor
View Source
var (
	GroupByKey_shorthandValue = map[string]int32{
		"Unspecified": 0,
		"Namespace":   1,
	}
)
View Source
var (
	RecordType_shorthandValue = map[string]int32{
		"Unspecified":     0,
		"Actions":         1,
		"ActiveStorage":   2,
		"RetainedStorage": 3,
	}
)
View Source
var (
	RecordUnit_shorthandValue = map[string]int32{
		"Unspecified": 0,
		"Number":      1,
		"ByteSeconds": 2,
	}
)

Functions

This section is empty.

Types

type GroupBy

type GroupBy struct {
	Key   GroupByKey `protobuf:"varint,1,opt,name=key,proto3,enum=temporal.api.cloud.usage.v1.GroupByKey" json:"key,omitempty"`
	Value string     `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupBy) Descriptor deprecated

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

Deprecated: Use GroupBy.ProtoReflect.Descriptor instead.

func (*GroupBy) Equal

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

Equal returns whether two GroupBy values are equivalent by recursively comparing the message's fields. For more information see the documentation for https://pkg.go.dev/google.golang.org/protobuf/proto#Equal

func (*GroupBy) GetKey

func (x *GroupBy) GetKey() GroupByKey

func (*GroupBy) GetValue

func (x *GroupBy) GetValue() string

func (*GroupBy) Marshal

func (val *GroupBy) Marshal() ([]byte, error)

Marshal an object of type GroupBy to the protobuf v3 wire format

func (*GroupBy) ProtoMessage

func (*GroupBy) ProtoMessage()

func (*GroupBy) ProtoReflect

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

func (*GroupBy) Reset

func (x *GroupBy) Reset()

func (*GroupBy) Size

func (val *GroupBy) Size() int

Size returns the size of the object, in bytes, once serialized

func (*GroupBy) String

func (x *GroupBy) String() string

func (*GroupBy) Unmarshal

func (val *GroupBy) Unmarshal(buf []byte) error

Unmarshal an object of type GroupBy from the protobuf v3 wire format

type GroupByKey

type GroupByKey int32
const (
	GROUP_BY_KEY_UNSPECIFIED GroupByKey = 0
	GROUP_BY_KEY_NAMESPACE   GroupByKey = 1
)

func GroupByKeyFromString

func GroupByKeyFromString(s string) (GroupByKey, error)

GroupByKeyFromString parses a GroupByKey value from either the protojson canonical SCREAMING_CASE enum or the traditional temporal PascalCase enum to GroupByKey

func (GroupByKey) Descriptor

func (GroupByKey) Descriptor() protoreflect.EnumDescriptor

func (GroupByKey) Enum

func (x GroupByKey) Enum() *GroupByKey

func (GroupByKey) EnumDescriptor deprecated

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

Deprecated: Use GroupByKey.Descriptor instead.

func (GroupByKey) Number

func (x GroupByKey) Number() protoreflect.EnumNumber

func (GroupByKey) String

func (x GroupByKey) String() string

func (GroupByKey) Type

type Record

type Record struct {
	Type  RecordType `protobuf:"varint,1,opt,name=type,proto3,enum=temporal.api.cloud.usage.v1.RecordType" json:"type,omitempty"`
	Unit  RecordUnit `protobuf:"varint,2,opt,name=unit,proto3,enum=temporal.api.cloud.usage.v1.RecordUnit" json:"unit,omitempty"`
	Value float64    `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Record) Descriptor deprecated

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) Equal

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

Equal returns whether two Record values are equivalent by recursively comparing the message's fields. For more information see the documentation for https://pkg.go.dev/google.golang.org/protobuf/proto#Equal

func (*Record) GetType

func (x *Record) GetType() RecordType

func (*Record) GetUnit

func (x *Record) GetUnit() RecordUnit

func (*Record) GetValue

func (x *Record) GetValue() float64

func (*Record) Marshal

func (val *Record) Marshal() ([]byte, error)

Marshal an object of type Record to the protobuf v3 wire format

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

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

func (*Record) Reset

func (x *Record) Reset()

func (*Record) Size

func (val *Record) Size() int

Size returns the size of the object, in bytes, once serialized

func (*Record) String

func (x *Record) String() string

func (*Record) Unmarshal

func (val *Record) Unmarshal(buf []byte) error

Unmarshal an object of type Record from the protobuf v3 wire format

type RecordGroup

type RecordGroup struct {

	// GroupBy keys and their values for this record group. Multiple fields are combined with logical AND.
	GroupBys []*GroupBy `protobuf:"bytes,1,rep,name=group_bys,json=groupBys,proto3" json:"group_bys,omitempty"`
	Records  []*Record  `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"`
	// contains filtered or unexported fields
}

func (*RecordGroup) Descriptor deprecated

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

Deprecated: Use RecordGroup.ProtoReflect.Descriptor instead.

func (*RecordGroup) Equal

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

Equal returns whether two RecordGroup values are equivalent by recursively comparing the message's fields. For more information see the documentation for https://pkg.go.dev/google.golang.org/protobuf/proto#Equal

func (*RecordGroup) GetGroupBys

func (x *RecordGroup) GetGroupBys() []*GroupBy

func (*RecordGroup) GetRecords

func (x *RecordGroup) GetRecords() []*Record

func (*RecordGroup) Marshal

func (val *RecordGroup) Marshal() ([]byte, error)

Marshal an object of type RecordGroup to the protobuf v3 wire format

func (*RecordGroup) ProtoMessage

func (*RecordGroup) ProtoMessage()

func (*RecordGroup) ProtoReflect

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

func (*RecordGroup) Reset

func (x *RecordGroup) Reset()

func (*RecordGroup) Size

func (val *RecordGroup) Size() int

Size returns the size of the object, in bytes, once serialized

func (*RecordGroup) String

func (x *RecordGroup) String() string

func (*RecordGroup) Unmarshal

func (val *RecordGroup) Unmarshal(buf []byte) error

Unmarshal an object of type RecordGroup from the protobuf v3 wire format

type RecordType

type RecordType int32
const (
	RECORD_TYPE_UNSPECIFIED      RecordType = 0
	RECORD_TYPE_ACTIONS          RecordType = 1
	RECORD_TYPE_ACTIVE_STORAGE   RecordType = 2
	RECORD_TYPE_RETAINED_STORAGE RecordType = 3
)

func RecordTypeFromString

func RecordTypeFromString(s string) (RecordType, error)

RecordTypeFromString parses a RecordType value from either the protojson canonical SCREAMING_CASE enum or the traditional temporal PascalCase enum to RecordType

func (RecordType) Descriptor

func (RecordType) Descriptor() protoreflect.EnumDescriptor

func (RecordType) Enum

func (x RecordType) Enum() *RecordType

func (RecordType) EnumDescriptor deprecated

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

Deprecated: Use RecordType.Descriptor instead.

func (RecordType) Number

func (x RecordType) Number() protoreflect.EnumNumber

func (RecordType) String

func (x RecordType) String() string

func (RecordType) Type

type RecordUnit

type RecordUnit int32
const (
	RECORD_UNIT_UNSPECIFIED  RecordUnit = 0
	RECORD_UNIT_NUMBER       RecordUnit = 1
	RECORD_UNIT_BYTE_SECONDS RecordUnit = 2
)

func RecordUnitFromString

func RecordUnitFromString(s string) (RecordUnit, error)

RecordUnitFromString parses a RecordUnit value from either the protojson canonical SCREAMING_CASE enum or the traditional temporal PascalCase enum to RecordUnit

func (RecordUnit) Descriptor

func (RecordUnit) Descriptor() protoreflect.EnumDescriptor

func (RecordUnit) Enum

func (x RecordUnit) Enum() *RecordUnit

func (RecordUnit) EnumDescriptor deprecated

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

Deprecated: Use RecordUnit.Descriptor instead.

func (RecordUnit) Number

func (x RecordUnit) Number() protoreflect.EnumNumber

func (RecordUnit) String

func (x RecordUnit) String() string

func (RecordUnit) Type

type Summary

type Summary struct {

	// Start of UTC day for now (inclusive)
	StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// End of UTC day for now (exclusive)
	EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// Records grouped by namespace
	RecordGroups []*RecordGroup `protobuf:"bytes,3,rep,name=record_groups,json=recordGroups,proto3" json:"record_groups,omitempty"`
	// True if data for given time window is not fully available yet (e.g. delays)
	// When true, records for the given time range could still be added/updated in the future (until false)
	Incomplete bool `protobuf:"varint,4,opt,name=incomplete,proto3" json:"incomplete,omitempty"`
	// contains filtered or unexported fields
}

func (*Summary) Descriptor deprecated

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

Deprecated: Use Summary.ProtoReflect.Descriptor instead.

func (*Summary) Equal

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

Equal returns whether two Summary values are equivalent by recursively comparing the message's fields. For more information see the documentation for https://pkg.go.dev/google.golang.org/protobuf/proto#Equal

func (*Summary) GetEndTime

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

func (*Summary) GetIncomplete

func (x *Summary) GetIncomplete() bool

func (*Summary) GetRecordGroups

func (x *Summary) GetRecordGroups() []*RecordGroup

func (*Summary) GetStartTime

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

func (*Summary) Marshal

func (val *Summary) Marshal() ([]byte, error)

Marshal an object of type Summary to the protobuf v3 wire format

func (*Summary) ProtoMessage

func (*Summary) ProtoMessage()

func (*Summary) ProtoReflect

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

func (*Summary) Reset

func (x *Summary) Reset()

func (*Summary) Size

func (val *Summary) Size() int

Size returns the size of the object, in bytes, once serialized

func (*Summary) String

func (x *Summary) String() string

func (*Summary) Unmarshal

func (val *Summary) Unmarshal(buf []byte) error

Unmarshal an object of type Summary from the protobuf v3 wire format

Jump to

Keyboard shortcuts

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