menupb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Provider_name = map[int32]string{
		0: "PROVIDER_UNSPECIFIED",
		1: "PROVIDER_CHATGPT",
		2: "PROVIDER_CLAUDE",
	}
	Provider_value = map[string]int32{
		"PROVIDER_UNSPECIFIED": 0,
		"PROVIDER_CHATGPT":     1,
		"PROVIDER_CLAUDE":      2,
	}
)

Enum value maps for Provider.

View Source
var (
	AccountState_name = map[int32]string{
		0: "ACCOUNT_STATE_UNSPECIFIED",
		1: "ACCOUNT_STATE_READY",
		2: "ACCOUNT_STATE_LIMITED",
		3: "ACCOUNT_STATE_SIGN_IN_REQUIRED",
		4: "ACCOUNT_STATE_CREDENTIALS_UNAVAILABLE",
		5: "ACCOUNT_STATE_USAGE_CHECK_FAILED",
	}
	AccountState_value = map[string]int32{
		"ACCOUNT_STATE_UNSPECIFIED":             0,
		"ACCOUNT_STATE_READY":                   1,
		"ACCOUNT_STATE_LIMITED":                 2,
		"ACCOUNT_STATE_SIGN_IN_REQUIRED":        3,
		"ACCOUNT_STATE_CREDENTIALS_UNAVAILABLE": 4,
		"ACCOUNT_STATE_USAGE_CHECK_FAILED":      5,
	}
)

Enum value maps for AccountState.

View Source
var (
	ReportingPeriodKind_name = map[int32]string{
		0: "REPORTING_PERIOD_UNSPECIFIED",
		1: "REPORTING_PERIOD_TODAY",
		2: "REPORTING_PERIOD_SEVEN_DAYS",
		3: "REPORTING_PERIOD_THIRTY_DAYS",
	}
	ReportingPeriodKind_value = map[string]int32{
		"REPORTING_PERIOD_UNSPECIFIED": 0,
		"REPORTING_PERIOD_TODAY":       1,
		"REPORTING_PERIOD_SEVEN_DAYS":  2,
		"REPORTING_PERIOD_THIRTY_DAYS": 3,
	}
)

Enum value maps for ReportingPeriodKind.

View Source
var File_menu_snapshot_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Account

type Account struct {
	Key           string                `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Email         string                `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Plan          string                `protobuf:"bytes,3,opt,name=plan,proto3" json:"plan,omitempty"`
	State         AccountState          `protobuf:"varint,4,opt,name=state,proto3,enum=codex_switch.menu.AccountState" json:"state,omitempty"`
	Allowance     *AllowanceObservation `protobuf:"bytes,5,opt,name=allowance,proto3" json:"allowance,omitempty"`
	AccountNumber uint32                `protobuf:"varint,6,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
	Usable        bool                  `protobuf:"varint,7,opt,name=usable,proto3" json:"usable,omitempty"`
	// Why the account cannot take new work for the configured model; empty when usable.
	UnavailableReason string `protobuf:"bytes,8,opt,name=unavailable_reason,json=unavailableReason,proto3" json:"unavailable_reason,omitempty"`
	// The account's plan offers the model Codex is configured to use, so it is
	// part of the pool for current work even while its allowance is used up.
	OffersConfiguredModel bool     `` /* 127-byte string literal not displayed */
	Provider              Provider `protobuf:"varint,10,opt,name=provider,proto3,enum=codex_switch.menu.Provider" json:"provider,omitempty"`
	// Why new work goes elsewhere while the account remains usable.
	ReserveStatus string `protobuf:"bytes,11,opt,name=reserve_status,json=reserveStatus,proto3" json:"reserve_status,omitempty"`
	// contains filtered or unexported fields
}

func (*Account) Descriptor deprecated

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAccountNumber

func (x *Account) GetAccountNumber() uint32

func (*Account) GetAllowance

func (x *Account) GetAllowance() *AllowanceObservation

func (*Account) GetEmail

func (x *Account) GetEmail() string

func (*Account) GetKey

func (x *Account) GetKey() string

func (*Account) GetOffersConfiguredModel

func (x *Account) GetOffersConfiguredModel() bool

func (*Account) GetPlan

func (x *Account) GetPlan() string

func (*Account) GetProvider

func (x *Account) GetProvider() Provider

func (*Account) GetReserveStatus

func (x *Account) GetReserveStatus() string

func (*Account) GetState

func (x *Account) GetState() AccountState

func (*Account) GetUnavailableReason

func (x *Account) GetUnavailableReason() string

func (*Account) GetUsable

func (x *Account) GetUsable() bool

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

type AccountDay

type AccountDay struct {
	AccountKey  string                 `protobuf:"bytes,1,opt,name=account_key,json=accountKey,proto3" json:"account_key,omitempty"`
	StartedAt   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	Tokens      int64                  `protobuf:"varint,3,opt,name=tokens,proto3" json:"tokens,omitempty"`
	CostNanoUsd *int64                 `protobuf:"varint,4,opt,name=cost_nano_usd,json=costNanoUsd,proto3,oneof" json:"cost_nano_usd,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountDay) Descriptor deprecated

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

Deprecated: Use AccountDay.ProtoReflect.Descriptor instead.

func (*AccountDay) GetAccountKey

func (x *AccountDay) GetAccountKey() string

func (*AccountDay) GetCostNanoUsd

func (x *AccountDay) GetCostNanoUsd() int64

func (*AccountDay) GetStartedAt

func (x *AccountDay) GetStartedAt() *timestamppb.Timestamp

func (*AccountDay) GetTokens

func (x *AccountDay) GetTokens() int64

func (*AccountDay) ProtoMessage

func (*AccountDay) ProtoMessage()

func (*AccountDay) ProtoReflect

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

func (*AccountDay) Reset

func (x *AccountDay) Reset()

func (*AccountDay) String

func (x *AccountDay) String() string

type AccountState

type AccountState int32
const (
	AccountState_ACCOUNT_STATE_UNSPECIFIED             AccountState = 0
	AccountState_ACCOUNT_STATE_READY                   AccountState = 1
	AccountState_ACCOUNT_STATE_LIMITED                 AccountState = 2
	AccountState_ACCOUNT_STATE_SIGN_IN_REQUIRED        AccountState = 3
	AccountState_ACCOUNT_STATE_CREDENTIALS_UNAVAILABLE AccountState = 4
	AccountState_ACCOUNT_STATE_USAGE_CHECK_FAILED      AccountState = 5
)

func (AccountState) Descriptor

func (AccountState) Enum

func (x AccountState) Enum() *AccountState

func (AccountState) EnumDescriptor deprecated

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

Deprecated: Use AccountState.Descriptor instead.

func (AccountState) Number

func (AccountState) String

func (x AccountState) String() string

func (AccountState) Type

type AccountTotal

type AccountTotal struct {
	AccountKey  string `protobuf:"bytes,1,opt,name=account_key,json=accountKey,proto3" json:"account_key,omitempty"`
	Tokens      int64  `protobuf:"varint,2,opt,name=tokens,proto3" json:"tokens,omitempty"`
	CostNanoUsd *int64 `protobuf:"varint,3,opt,name=cost_nano_usd,json=costNanoUsd,proto3,oneof" json:"cost_nano_usd,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountTotal) Descriptor deprecated

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

Deprecated: Use AccountTotal.ProtoReflect.Descriptor instead.

func (*AccountTotal) GetAccountKey

func (x *AccountTotal) GetAccountKey() string

func (*AccountTotal) GetCostNanoUsd

func (x *AccountTotal) GetCostNanoUsd() int64

func (*AccountTotal) GetTokens

func (x *AccountTotal) GetTokens() int64

func (*AccountTotal) ProtoMessage

func (*AccountTotal) ProtoMessage()

func (*AccountTotal) ProtoReflect

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

func (*AccountTotal) Reset

func (x *AccountTotal) Reset()

func (*AccountTotal) String

func (x *AccountTotal) String() string

type AllowanceObservation

type AllowanceObservation struct {
	ObservedAt            *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=observed_at,json=observedAt,proto3" json:"observed_at,omitempty"`
	Allowed               bool                   `protobuf:"varint,2,opt,name=allowed,proto3" json:"allowed,omitempty"`
	LimitReached          bool                   `protobuf:"varint,3,opt,name=limit_reached,json=limitReached,proto3" json:"limit_reached,omitempty"`
	Windows               []*AllowanceWindow     `protobuf:"bytes,4,rep,name=windows,proto3" json:"windows,omitempty"`
	AvailableResetCredits *uint32                `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*AllowanceObservation) Descriptor deprecated

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

Deprecated: Use AllowanceObservation.ProtoReflect.Descriptor instead.

func (*AllowanceObservation) GetAllowed

func (x *AllowanceObservation) GetAllowed() bool

func (*AllowanceObservation) GetAvailableResetCredits

func (x *AllowanceObservation) GetAvailableResetCredits() uint32

func (*AllowanceObservation) GetLimitReached

func (x *AllowanceObservation) GetLimitReached() bool

func (*AllowanceObservation) GetObservedAt

func (x *AllowanceObservation) GetObservedAt() *timestamppb.Timestamp

func (*AllowanceObservation) GetWindows

func (x *AllowanceObservation) GetWindows() []*AllowanceWindow

func (*AllowanceObservation) ProtoMessage

func (*AllowanceObservation) ProtoMessage()

func (*AllowanceObservation) ProtoReflect

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

func (*AllowanceObservation) Reset

func (x *AllowanceObservation) Reset()

func (*AllowanceObservation) String

func (x *AllowanceObservation) String() string

type AllowanceWindow

type AllowanceWindow struct {
	PeriodSeconds int64                  `protobuf:"varint,1,opt,name=period_seconds,json=periodSeconds,proto3" json:"period_seconds,omitempty"`
	UsedPercent   float64                `protobuf:"fixed64,2,opt,name=used_percent,json=usedPercent,proto3" json:"used_percent,omitempty"`
	ResetAt       *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=reset_at,json=resetAt,proto3" json:"reset_at,omitempty"`
	// Empty for a window shared by all models.
	ModelId   string `protobuf:"bytes,4,opt,name=model_id,json=modelId,proto3" json:"model_id,omitempty"`
	ModelName string `protobuf:"bytes,5,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"`
	// contains filtered or unexported fields
}

func (*AllowanceWindow) Descriptor deprecated

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

Deprecated: Use AllowanceWindow.ProtoReflect.Descriptor instead.

func (*AllowanceWindow) GetModelId

func (x *AllowanceWindow) GetModelId() string

func (*AllowanceWindow) GetModelName

func (x *AllowanceWindow) GetModelName() string

func (*AllowanceWindow) GetPeriodSeconds

func (x *AllowanceWindow) GetPeriodSeconds() int64

func (*AllowanceWindow) GetResetAt

func (x *AllowanceWindow) GetResetAt() *timestamppb.Timestamp

func (*AllowanceWindow) GetUsedPercent

func (x *AllowanceWindow) GetUsedPercent() float64

func (*AllowanceWindow) ProtoMessage

func (*AllowanceWindow) ProtoMessage()

func (*AllowanceWindow) ProtoReflect

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

func (*AllowanceWindow) Reset

func (x *AllowanceWindow) Reset()

func (*AllowanceWindow) String

func (x *AllowanceWindow) String() string

type CompletedTask

type CompletedTask struct {
	TaskId          string                 `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	AccountKeys     []string               `protobuf:"bytes,2,rep,name=account_keys,json=accountKeys,proto3" json:"account_keys,omitempty"`
	Title           *string                `protobuf:"bytes,3,opt,name=title,proto3,oneof" json:"title,omitempty"`
	LastCompletedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_completed_at,json=lastCompletedAt,proto3" json:"last_completed_at,omitempty"`
	Tokens          *int64                 `protobuf:"varint,5,opt,name=tokens,proto3,oneof" json:"tokens,omitempty"`
	CostNanoUsd     *int64                 `protobuf:"varint,6,opt,name=cost_nano_usd,json=costNanoUsd,proto3,oneof" json:"cost_nano_usd,omitempty"`
	// contains filtered or unexported fields
}

func (*CompletedTask) Descriptor deprecated

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

Deprecated: Use CompletedTask.ProtoReflect.Descriptor instead.

func (*CompletedTask) GetAccountKeys

func (x *CompletedTask) GetAccountKeys() []string

func (*CompletedTask) GetCostNanoUsd

func (x *CompletedTask) GetCostNanoUsd() int64

func (*CompletedTask) GetLastCompletedAt

func (x *CompletedTask) GetLastCompletedAt() *timestamppb.Timestamp

func (*CompletedTask) GetTaskId

func (x *CompletedTask) GetTaskId() string

func (*CompletedTask) GetTitle

func (x *CompletedTask) GetTitle() string

func (*CompletedTask) GetTokens

func (x *CompletedTask) GetTokens() int64

func (*CompletedTask) ProtoMessage

func (*CompletedTask) ProtoMessage()

func (*CompletedTask) ProtoReflect

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

func (*CompletedTask) Reset

func (x *CompletedTask) Reset()

func (*CompletedTask) String

func (x *CompletedTask) String() string

type Connection

type Connection struct {
	NewTasksConfigured bool `protobuf:"varint,1,opt,name=new_tasks_configured,json=newTasksConfigured,proto3" json:"new_tasks_configured,omitempty"`
	// contains filtered or unexported fields
}

func (*Connection) Descriptor deprecated

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

Deprecated: Use Connection.ProtoReflect.Descriptor instead.

func (*Connection) GetNewTasksConfigured

func (x *Connection) GetNewTasksConfigured() bool

func (*Connection) ProtoMessage

func (*Connection) ProtoMessage()

func (*Connection) ProtoReflect

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

func (*Connection) Reset

func (x *Connection) Reset()

func (*Connection) String

func (x *Connection) String() string
type MenuSnapshot struct {
	GeneratedAt      *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=generated_at,json=generatedAt,proto3" json:"generated_at,omitempty"`
	Accounts         []*Account             `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"`
	Connection       *Connection            `protobuf:"bytes,4,opt,name=connection,proto3" json:"connection,omitempty"`
	ReportingPeriods []*ReportingPeriod     `protobuf:"bytes,5,rep,name=reporting_periods,json=reportingPeriods,proto3" json:"reporting_periods,omitempty"`
	ProxyActivity    *ProxyActivity         `protobuf:"bytes,6,opt,name=proxy_activity,json=proxyActivity,proto3" json:"proxy_activity,omitempty"`
	// Each account's usage per UTC date for the last 30 days, oldest first.
	AccountDays []*AccountDay `protobuf:"bytes,7,rep,name=account_days,json=accountDays,proto3" json:"account_days,omitempty"`
	// contains filtered or unexported fields
}
func (*MenuSnapshot) Descriptor() ([]byte, []int)

Deprecated: Use MenuSnapshot.ProtoReflect.Descriptor instead.

func (x *MenuSnapshot) GetAccountDays() []*AccountDay
func (x *MenuSnapshot) GetAccounts() []*Account
func (x *MenuSnapshot) GetConnection() *Connection
func (x *MenuSnapshot) GetGeneratedAt() *timestamppb.Timestamp
func (x *MenuSnapshot) GetProxyActivity() *ProxyActivity
func (x *MenuSnapshot) GetReportingPeriods() []*ReportingPeriod
func (*MenuSnapshot) ProtoMessage()
func (x *MenuSnapshot) ProtoReflect() protoreflect.Message
func (x *MenuSnapshot) Reset()
func (x *MenuSnapshot) String() string

type ModelRequestCounts

type ModelRequestCounts struct {
	Requests    int64 `protobuf:"varint,1,opt,name=requests,proto3" json:"requests,omitempty"`
	Successful  int64 `protobuf:"varint,2,opt,name=successful,proto3" json:"successful,omitempty"`
	Failed      int64 `protobuf:"varint,3,opt,name=failed,proto3" json:"failed,omitempty"`
	Interrupted int64 `protobuf:"varint,4,opt,name=interrupted,proto3" json:"interrupted,omitempty"`
	// contains filtered or unexported fields
}

func (*ModelRequestCounts) Descriptor deprecated

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

Deprecated: Use ModelRequestCounts.ProtoReflect.Descriptor instead.

func (*ModelRequestCounts) GetFailed

func (x *ModelRequestCounts) GetFailed() int64

func (*ModelRequestCounts) GetInterrupted

func (x *ModelRequestCounts) GetInterrupted() int64

func (*ModelRequestCounts) GetRequests

func (x *ModelRequestCounts) GetRequests() int64

func (*ModelRequestCounts) GetSuccessful

func (x *ModelRequestCounts) GetSuccessful() int64

func (*ModelRequestCounts) ProtoMessage

func (*ModelRequestCounts) ProtoMessage()

func (*ModelRequestCounts) ProtoReflect

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

func (*ModelRequestCounts) Reset

func (x *ModelRequestCounts) Reset()

func (*ModelRequestCounts) String

func (x *ModelRequestCounts) String() string

type Provider

type Provider int32
const (
	Provider_PROVIDER_UNSPECIFIED Provider = 0
	Provider_PROVIDER_CHATGPT     Provider = 1
	Provider_PROVIDER_CLAUDE      Provider = 2
)

func (Provider) Descriptor

func (Provider) Descriptor() protoreflect.EnumDescriptor

func (Provider) Enum

func (x Provider) Enum() *Provider

func (Provider) EnumDescriptor deprecated

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

Deprecated: Use Provider.Descriptor instead.

func (Provider) Number

func (x Provider) Number() protoreflect.EnumNumber

func (Provider) String

func (x Provider) String() string

func (Provider) Type

type ProxyAccountActivity

type ProxyAccountActivity struct {
	AccountKey         string              `protobuf:"bytes,1,opt,name=account_key,json=accountKey,proto3" json:"account_key,omitempty"`
	CompletedResponses int64               `protobuf:"varint,2,opt,name=completed_responses,json=completedResponses,proto3" json:"completed_responses,omitempty"`
	Tokens             int64               `protobuf:"varint,3,opt,name=tokens,proto3" json:"tokens,omitempty"`
	RequestCounts      *ModelRequestCounts `protobuf:"bytes,4,opt,name=request_counts,json=requestCounts,proto3" json:"request_counts,omitempty"`
	// contains filtered or unexported fields
}

func (*ProxyAccountActivity) Descriptor deprecated

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

Deprecated: Use ProxyAccountActivity.ProtoReflect.Descriptor instead.

func (*ProxyAccountActivity) GetAccountKey

func (x *ProxyAccountActivity) GetAccountKey() string

func (*ProxyAccountActivity) GetCompletedResponses

func (x *ProxyAccountActivity) GetCompletedResponses() int64

func (*ProxyAccountActivity) GetRequestCounts

func (x *ProxyAccountActivity) GetRequestCounts() *ModelRequestCounts

func (*ProxyAccountActivity) GetTokens

func (x *ProxyAccountActivity) GetTokens() int64

func (*ProxyAccountActivity) ProtoMessage

func (*ProxyAccountActivity) ProtoMessage()

func (*ProxyAccountActivity) ProtoReflect

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

func (*ProxyAccountActivity) Reset

func (x *ProxyAccountActivity) Reset()

func (*ProxyAccountActivity) String

func (x *ProxyAccountActivity) String() string

type ProxyActivity

type ProxyActivity struct {
	StartedAt         *timestamppb.Timestamp  `protobuf:"bytes,1,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	EndedAt           *timestamppb.Timestamp  `protobuf:"bytes,2,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"`
	Accounts          []*ProxyAccountActivity `protobuf:"bytes,3,rep,name=accounts,proto3" json:"accounts,omitempty"`
	Tasks             []*CompletedTask        `protobuf:"bytes,4,rep,name=tasks,proto3" json:"tasks,omitempty"`
	RequestsStartedAt *timestamppb.Timestamp  `protobuf:"bytes,5,opt,name=requests_started_at,json=requestsStartedAt,proto3" json:"requests_started_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ProxyActivity) Descriptor deprecated

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

Deprecated: Use ProxyActivity.ProtoReflect.Descriptor instead.

func (*ProxyActivity) GetAccounts

func (x *ProxyActivity) GetAccounts() []*ProxyAccountActivity

func (*ProxyActivity) GetEndedAt

func (x *ProxyActivity) GetEndedAt() *timestamppb.Timestamp

func (*ProxyActivity) GetRequestsStartedAt

func (x *ProxyActivity) GetRequestsStartedAt() *timestamppb.Timestamp

func (*ProxyActivity) GetStartedAt

func (x *ProxyActivity) GetStartedAt() *timestamppb.Timestamp

func (*ProxyActivity) GetTasks

func (x *ProxyActivity) GetTasks() []*CompletedTask

func (*ProxyActivity) ProtoMessage

func (*ProxyActivity) ProtoMessage()

func (*ProxyActivity) ProtoReflect

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

func (*ProxyActivity) Reset

func (x *ProxyActivity) Reset()

func (*ProxyActivity) String

func (x *ProxyActivity) String() string

type ReportingPeriod

type ReportingPeriod struct {
	Kind      ReportingPeriodKind    `protobuf:"varint,1,opt,name=kind,proto3,enum=codex_switch.menu.ReportingPeriodKind" json:"kind,omitempty"`
	StartedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	EndedAt   *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"`
	Accounts  []*AccountTotal        `protobuf:"bytes,4,rep,name=accounts,proto3" json:"accounts,omitempty"`
	TaskUsage *TaskUsageReport       `protobuf:"bytes,5,opt,name=task_usage,json=taskUsage,proto3" json:"task_usage,omitempty"`
	// contains filtered or unexported fields
}

func (*ReportingPeriod) Descriptor deprecated

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

Deprecated: Use ReportingPeriod.ProtoReflect.Descriptor instead.

func (*ReportingPeriod) GetAccounts

func (x *ReportingPeriod) GetAccounts() []*AccountTotal

func (*ReportingPeriod) GetEndedAt

func (x *ReportingPeriod) GetEndedAt() *timestamppb.Timestamp

func (*ReportingPeriod) GetKind

func (x *ReportingPeriod) GetKind() ReportingPeriodKind

func (*ReportingPeriod) GetStartedAt

func (x *ReportingPeriod) GetStartedAt() *timestamppb.Timestamp

func (*ReportingPeriod) GetTaskUsage

func (x *ReportingPeriod) GetTaskUsage() *TaskUsageReport

func (*ReportingPeriod) ProtoMessage

func (*ReportingPeriod) ProtoMessage()

func (*ReportingPeriod) ProtoReflect

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

func (*ReportingPeriod) Reset

func (x *ReportingPeriod) Reset()

func (*ReportingPeriod) String

func (x *ReportingPeriod) String() string

type ReportingPeriodKind

type ReportingPeriodKind int32
const (
	ReportingPeriodKind_REPORTING_PERIOD_UNSPECIFIED ReportingPeriodKind = 0
	ReportingPeriodKind_REPORTING_PERIOD_TODAY       ReportingPeriodKind = 1
	ReportingPeriodKind_REPORTING_PERIOD_SEVEN_DAYS  ReportingPeriodKind = 2
	ReportingPeriodKind_REPORTING_PERIOD_THIRTY_DAYS ReportingPeriodKind = 3
)

func (ReportingPeriodKind) Descriptor

func (ReportingPeriodKind) Enum

func (ReportingPeriodKind) EnumDescriptor deprecated

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

Deprecated: Use ReportingPeriodKind.Descriptor instead.

func (ReportingPeriodKind) Number

func (ReportingPeriodKind) String

func (x ReportingPeriodKind) String() string

func (ReportingPeriodKind) Type

type TaskUsageReport

type TaskUsageReport struct {
	Tasks []*CompletedTask `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"`
	// contains filtered or unexported fields
}

func (*TaskUsageReport) Descriptor deprecated

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

Deprecated: Use TaskUsageReport.ProtoReflect.Descriptor instead.

func (*TaskUsageReport) GetTasks

func (x *TaskUsageReport) GetTasks() []*CompletedTask

func (*TaskUsageReport) ProtoMessage

func (*TaskUsageReport) ProtoMessage()

func (*TaskUsageReport) ProtoReflect

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

func (*TaskUsageReport) Reset

func (x *TaskUsageReport) Reset()

func (*TaskUsageReport) String

func (x *TaskUsageReport) String() string

Jump to

Keyboard shortcuts

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