tokencounterv1

package
v2.0.0-...-d8f0e26 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var File_aperture_tokencounter_v1_state_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CancelInflightRequest

type CancelInflightRequest struct {
	RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelInflightRequest) Descriptor deprecated

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

Deprecated: Use CancelInflightRequest.ProtoReflect.Descriptor instead.

func (*CancelInflightRequest) GetRequestId

func (x *CancelInflightRequest) GetRequestId() string

func (*CancelInflightRequest) MarshalJSON

func (msg *CancelInflightRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*CancelInflightRequest) MarshalToSizedBufferVT

func (m *CancelInflightRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CancelInflightRequest) MarshalToVT

func (m *CancelInflightRequest) MarshalToVT(dAtA []byte) (int, error)

func (*CancelInflightRequest) MarshalVT

func (m *CancelInflightRequest) MarshalVT() (dAtA []byte, err error)

func (*CancelInflightRequest) ProtoMessage

func (*CancelInflightRequest) ProtoMessage()

func (*CancelInflightRequest) ProtoReflect

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

func (*CancelInflightRequest) Reset

func (x *CancelInflightRequest) Reset()

func (*CancelInflightRequest) SizeVT

func (m *CancelInflightRequest) SizeVT() (n int)

func (*CancelInflightRequest) String

func (x *CancelInflightRequest) String() string

func (*CancelInflightRequest) UnmarshalJSON

func (msg *CancelInflightRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*CancelInflightRequest) UnmarshalVT

func (m *CancelInflightRequest) UnmarshalVT(dAtA []byte) error

func (*CancelInflightRequest) Validate

func (m *CancelInflightRequest) Validate() error

Validate checks the field values on CancelInflightRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CancelInflightRequest) ValidateAll

func (m *CancelInflightRequest) ValidateAll() error

ValidateAll checks the field values on CancelInflightRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CancelInflightRequestMultiError, or nil if none found.

type CancelInflightRequestMultiError

type CancelInflightRequestMultiError []error

CancelInflightRequestMultiError is an error wrapping multiple validation errors returned by CancelInflightRequest.ValidateAll() if the designated constraints aren't met.

func (CancelInflightRequestMultiError) AllErrors

func (m CancelInflightRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CancelInflightRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CancelInflightRequestValidationError

type CancelInflightRequestValidationError struct {
	// contains filtered or unexported fields
}

CancelInflightRequestValidationError is the validation error returned by CancelInflightRequest.Validate if the designated constraints aren't met.

func (CancelInflightRequestValidationError) Cause

Cause function returns cause value.

func (CancelInflightRequestValidationError) Error

Error satisfies the builtin error interface

func (CancelInflightRequestValidationError) ErrorName

ErrorName returns error name.

func (CancelInflightRequestValidationError) Field

Field function returns field value.

func (CancelInflightRequestValidationError) Key

Key function returns key value.

func (CancelInflightRequestValidationError) Reason

Reason function returns reason value.

type CancelInflightResponse

type CancelInflightResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelInflightResponse) Descriptor deprecated

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

Deprecated: Use CancelInflightResponse.ProtoReflect.Descriptor instead.

func (*CancelInflightResponse) GetOk

func (x *CancelInflightResponse) GetOk() bool

func (*CancelInflightResponse) MarshalJSON

func (msg *CancelInflightResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*CancelInflightResponse) MarshalToSizedBufferVT

func (m *CancelInflightResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CancelInflightResponse) MarshalToVT

func (m *CancelInflightResponse) MarshalToVT(dAtA []byte) (int, error)

func (*CancelInflightResponse) MarshalVT

func (m *CancelInflightResponse) MarshalVT() (dAtA []byte, err error)

func (*CancelInflightResponse) ProtoMessage

func (*CancelInflightResponse) ProtoMessage()

func (*CancelInflightResponse) ProtoReflect

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

func (*CancelInflightResponse) Reset

func (x *CancelInflightResponse) Reset()

func (*CancelInflightResponse) SizeVT

func (m *CancelInflightResponse) SizeVT() (n int)

func (*CancelInflightResponse) String

func (x *CancelInflightResponse) String() string

func (*CancelInflightResponse) UnmarshalJSON

func (msg *CancelInflightResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*CancelInflightResponse) UnmarshalVT

func (m *CancelInflightResponse) UnmarshalVT(dAtA []byte) error

func (*CancelInflightResponse) Validate

func (m *CancelInflightResponse) Validate() error

Validate checks the field values on CancelInflightResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CancelInflightResponse) ValidateAll

func (m *CancelInflightResponse) ValidateAll() error

ValidateAll checks the field values on CancelInflightResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CancelInflightResponseMultiError, or nil if none found.

type CancelInflightResponseMultiError

type CancelInflightResponseMultiError []error

CancelInflightResponseMultiError is an error wrapping multiple validation errors returned by CancelInflightResponse.ValidateAll() if the designated constraints aren't met.

func (CancelInflightResponseMultiError) AllErrors

func (m CancelInflightResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CancelInflightResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CancelInflightResponseValidationError

type CancelInflightResponseValidationError struct {
	// contains filtered or unexported fields
}

CancelInflightResponseValidationError is the validation error returned by CancelInflightResponse.Validate if the designated constraints aren't met.

func (CancelInflightResponseValidationError) Cause

Cause function returns cause value.

func (CancelInflightResponseValidationError) Error

Error satisfies the builtin error interface

func (CancelInflightResponseValidationError) ErrorName

ErrorName returns error name.

func (CancelInflightResponseValidationError) Field

Field function returns field value.

func (CancelInflightResponseValidationError) Key

Key function returns key value.

func (CancelInflightResponseValidationError) Reason

Reason function returns reason value.

type CancelQueuedRequest

type CancelQueuedRequest struct {
	RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelQueuedRequest) Descriptor deprecated

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

Deprecated: Use CancelQueuedRequest.ProtoReflect.Descriptor instead.

func (*CancelQueuedRequest) GetRequestId

func (x *CancelQueuedRequest) GetRequestId() string

func (*CancelQueuedRequest) MarshalJSON

func (msg *CancelQueuedRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*CancelQueuedRequest) MarshalToSizedBufferVT

func (m *CancelQueuedRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CancelQueuedRequest) MarshalToVT

func (m *CancelQueuedRequest) MarshalToVT(dAtA []byte) (int, error)

func (*CancelQueuedRequest) MarshalVT

func (m *CancelQueuedRequest) MarshalVT() (dAtA []byte, err error)

func (*CancelQueuedRequest) ProtoMessage

func (*CancelQueuedRequest) ProtoMessage()

func (*CancelQueuedRequest) ProtoReflect

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

func (*CancelQueuedRequest) Reset

func (x *CancelQueuedRequest) Reset()

func (*CancelQueuedRequest) SizeVT

func (m *CancelQueuedRequest) SizeVT() (n int)

func (*CancelQueuedRequest) String

func (x *CancelQueuedRequest) String() string

func (*CancelQueuedRequest) UnmarshalJSON

func (msg *CancelQueuedRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*CancelQueuedRequest) UnmarshalVT

func (m *CancelQueuedRequest) UnmarshalVT(dAtA []byte) error

func (*CancelQueuedRequest) Validate

func (m *CancelQueuedRequest) Validate() error

Validate checks the field values on CancelQueuedRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CancelQueuedRequest) ValidateAll

func (m *CancelQueuedRequest) ValidateAll() error

ValidateAll checks the field values on CancelQueuedRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CancelQueuedRequestMultiError, or nil if none found.

type CancelQueuedRequestMultiError

type CancelQueuedRequestMultiError []error

CancelQueuedRequestMultiError is an error wrapping multiple validation errors returned by CancelQueuedRequest.ValidateAll() if the designated constraints aren't met.

func (CancelQueuedRequestMultiError) AllErrors

func (m CancelQueuedRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CancelQueuedRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CancelQueuedRequestValidationError

type CancelQueuedRequestValidationError struct {
	// contains filtered or unexported fields
}

CancelQueuedRequestValidationError is the validation error returned by CancelQueuedRequest.Validate if the designated constraints aren't met.

func (CancelQueuedRequestValidationError) Cause

Cause function returns cause value.

func (CancelQueuedRequestValidationError) Error

Error satisfies the builtin error interface

func (CancelQueuedRequestValidationError) ErrorName

ErrorName returns error name.

func (CancelQueuedRequestValidationError) Field

Field function returns field value.

func (CancelQueuedRequestValidationError) Key

Key function returns key value.

func (CancelQueuedRequestValidationError) Reason

Reason function returns reason value.

type CancelQueuedResponse

type CancelQueuedResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelQueuedResponse) Descriptor deprecated

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

Deprecated: Use CancelQueuedResponse.ProtoReflect.Descriptor instead.

func (*CancelQueuedResponse) GetOk

func (x *CancelQueuedResponse) GetOk() bool

func (*CancelQueuedResponse) MarshalJSON

func (msg *CancelQueuedResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*CancelQueuedResponse) MarshalToSizedBufferVT

func (m *CancelQueuedResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CancelQueuedResponse) MarshalToVT

func (m *CancelQueuedResponse) MarshalToVT(dAtA []byte) (int, error)

func (*CancelQueuedResponse) MarshalVT

func (m *CancelQueuedResponse) MarshalVT() (dAtA []byte, err error)

func (*CancelQueuedResponse) ProtoMessage

func (*CancelQueuedResponse) ProtoMessage()

func (*CancelQueuedResponse) ProtoReflect

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

func (*CancelQueuedResponse) Reset

func (x *CancelQueuedResponse) Reset()

func (*CancelQueuedResponse) SizeVT

func (m *CancelQueuedResponse) SizeVT() (n int)

func (*CancelQueuedResponse) String

func (x *CancelQueuedResponse) String() string

func (*CancelQueuedResponse) UnmarshalJSON

func (msg *CancelQueuedResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*CancelQueuedResponse) UnmarshalVT

func (m *CancelQueuedResponse) UnmarshalVT(dAtA []byte) error

func (*CancelQueuedResponse) Validate

func (m *CancelQueuedResponse) Validate() error

Validate checks the field values on CancelQueuedResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CancelQueuedResponse) ValidateAll

func (m *CancelQueuedResponse) ValidateAll() error

ValidateAll checks the field values on CancelQueuedResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CancelQueuedResponseMultiError, or nil if none found.

type CancelQueuedResponseMultiError

type CancelQueuedResponseMultiError []error

CancelQueuedResponseMultiError is an error wrapping multiple validation errors returned by CancelQueuedResponse.ValidateAll() if the designated constraints aren't met.

func (CancelQueuedResponseMultiError) AllErrors

func (m CancelQueuedResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CancelQueuedResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CancelQueuedResponseValidationError

type CancelQueuedResponseValidationError struct {
	// contains filtered or unexported fields
}

CancelQueuedResponseValidationError is the validation error returned by CancelQueuedResponse.Validate if the designated constraints aren't met.

func (CancelQueuedResponseValidationError) Cause

Cause function returns cause value.

func (CancelQueuedResponseValidationError) Error

Error satisfies the builtin error interface

func (CancelQueuedResponseValidationError) ErrorName

ErrorName returns error name.

func (CancelQueuedResponseValidationError) Field

Field function returns field value.

func (CancelQueuedResponseValidationError) Key

Key function returns key value.

func (CancelQueuedResponseValidationError) Reason

Reason function returns reason value.

type Request

type Request struct {
	RequestId  string                 `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	ExpiresAt  *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	Tokens     float64                `protobuf:"fixed64,3,opt,name=tokens,proto3" json:"tokens,omitempty"`
	WaitFor    *durationpb.Duration   `protobuf:"bytes,4,opt,name=wait_for,json=waitFor,proto3" json:"wait_for,omitempty"`
	NumRetries int32                  `protobuf:"varint,5,opt,name=num_retries,json=numRetries,proto3" json:"num_retries,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetExpiresAt

func (x *Request) GetExpiresAt() *timestamppb.Timestamp

func (*Request) GetNumRetries

func (x *Request) GetNumRetries() int32

func (*Request) GetRequestId

func (x *Request) GetRequestId() string

func (*Request) GetTokens

func (x *Request) GetTokens() float64

func (*Request) GetWaitFor

func (x *Request) GetWaitFor() *durationpb.Duration

func (*Request) MarshalJSON

func (msg *Request) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Request) MarshalToSizedBufferVT

func (m *Request) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Request) MarshalToVT

func (m *Request) MarshalToVT(dAtA []byte) (int, error)

func (*Request) MarshalVT

func (m *Request) MarshalVT() (dAtA []byte, err error)

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) SizeVT

func (m *Request) SizeVT() (n int)

func (*Request) String

func (x *Request) String() string

func (*Request) UnmarshalJSON

func (msg *Request) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*Request) UnmarshalVT

func (m *Request) UnmarshalVT(dAtA []byte) error

func (*Request) Validate

func (m *Request) Validate() error

Validate checks the field values on Request with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Request) ValidateAll

func (m *Request) ValidateAll() error

ValidateAll checks the field values on Request with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RequestMultiError, or nil if none found.

type RequestMultiError

type RequestMultiError []error

RequestMultiError is an error wrapping multiple validation errors returned by Request.ValidateAll() if the designated constraints aren't met.

func (RequestMultiError) AllErrors

func (m RequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RequestMultiError) Error

func (m RequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RequestValidationError

type RequestValidationError struct {
	// contains filtered or unexported fields
}

RequestValidationError is the validation error returned by Request.Validate if the designated constraints aren't met.

func (RequestValidationError) Cause

func (e RequestValidationError) Cause() error

Cause function returns cause value.

func (RequestValidationError) Error

func (e RequestValidationError) Error() string

Error satisfies the builtin error interface

func (RequestValidationError) ErrorName

func (e RequestValidationError) ErrorName() string

ErrorName returns error name.

func (RequestValidationError) Field

func (e RequestValidationError) Field() string

Field function returns field value.

func (RequestValidationError) Key

func (e RequestValidationError) Key() bool

Key function returns key value.

func (RequestValidationError) Reason

func (e RequestValidationError) Reason() string

Reason function returns reason value.

type ReturnNRequest

type ReturnNRequest struct {
	RequestId string  `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	Tokens    float64 `protobuf:"fixed64,2,opt,name=tokens,proto3" json:"tokens,omitempty"`
	// contains filtered or unexported fields
}

func (*ReturnNRequest) Descriptor deprecated

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

Deprecated: Use ReturnNRequest.ProtoReflect.Descriptor instead.

func (*ReturnNRequest) GetRequestId

func (x *ReturnNRequest) GetRequestId() string

func (*ReturnNRequest) GetTokens

func (x *ReturnNRequest) GetTokens() float64

func (*ReturnNRequest) MarshalJSON

func (msg *ReturnNRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*ReturnNRequest) MarshalToSizedBufferVT

func (m *ReturnNRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ReturnNRequest) MarshalToVT

func (m *ReturnNRequest) MarshalToVT(dAtA []byte) (int, error)

func (*ReturnNRequest) MarshalVT

func (m *ReturnNRequest) MarshalVT() (dAtA []byte, err error)

func (*ReturnNRequest) ProtoMessage

func (*ReturnNRequest) ProtoMessage()

func (*ReturnNRequest) ProtoReflect

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

func (*ReturnNRequest) Reset

func (x *ReturnNRequest) Reset()

func (*ReturnNRequest) SizeVT

func (m *ReturnNRequest) SizeVT() (n int)

func (*ReturnNRequest) String

func (x *ReturnNRequest) String() string

func (*ReturnNRequest) UnmarshalJSON

func (msg *ReturnNRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*ReturnNRequest) UnmarshalVT

func (m *ReturnNRequest) UnmarshalVT(dAtA []byte) error

func (*ReturnNRequest) Validate

func (m *ReturnNRequest) Validate() error

Validate checks the field values on ReturnNRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ReturnNRequest) ValidateAll

func (m *ReturnNRequest) ValidateAll() error

ValidateAll checks the field values on ReturnNRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ReturnNRequestMultiError, or nil if none found.

type ReturnNRequestMultiError

type ReturnNRequestMultiError []error

ReturnNRequestMultiError is an error wrapping multiple validation errors returned by ReturnNRequest.ValidateAll() if the designated constraints aren't met.

func (ReturnNRequestMultiError) AllErrors

func (m ReturnNRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ReturnNRequestMultiError) Error

func (m ReturnNRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ReturnNRequestValidationError

type ReturnNRequestValidationError struct {
	// contains filtered or unexported fields
}

ReturnNRequestValidationError is the validation error returned by ReturnNRequest.Validate if the designated constraints aren't met.

func (ReturnNRequestValidationError) Cause

Cause function returns cause value.

func (ReturnNRequestValidationError) Error

Error satisfies the builtin error interface

func (ReturnNRequestValidationError) ErrorName

func (e ReturnNRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ReturnNRequestValidationError) Field

Field function returns field value.

func (ReturnNRequestValidationError) Key

Key function returns key value.

func (ReturnNRequestValidationError) Reason

Reason function returns reason value.

type ReturnNResponse

type ReturnNResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*ReturnNResponse) Descriptor deprecated

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

Deprecated: Use ReturnNResponse.ProtoReflect.Descriptor instead.

func (*ReturnNResponse) GetOk

func (x *ReturnNResponse) GetOk() bool

func (*ReturnNResponse) MarshalJSON

func (msg *ReturnNResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*ReturnNResponse) MarshalToSizedBufferVT

func (m *ReturnNResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ReturnNResponse) MarshalToVT

func (m *ReturnNResponse) MarshalToVT(dAtA []byte) (int, error)

func (*ReturnNResponse) MarshalVT

func (m *ReturnNResponse) MarshalVT() (dAtA []byte, err error)

func (*ReturnNResponse) ProtoMessage

func (*ReturnNResponse) ProtoMessage()

func (*ReturnNResponse) ProtoReflect

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

func (*ReturnNResponse) Reset

func (x *ReturnNResponse) Reset()

func (*ReturnNResponse) SizeVT

func (m *ReturnNResponse) SizeVT() (n int)

func (*ReturnNResponse) String

func (x *ReturnNResponse) String() string

func (*ReturnNResponse) UnmarshalJSON

func (msg *ReturnNResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*ReturnNResponse) UnmarshalVT

func (m *ReturnNResponse) UnmarshalVT(dAtA []byte) error

func (*ReturnNResponse) Validate

func (m *ReturnNResponse) Validate() error

Validate checks the field values on ReturnNResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ReturnNResponse) ValidateAll

func (m *ReturnNResponse) ValidateAll() error

ValidateAll checks the field values on ReturnNResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ReturnNResponseMultiError, or nil if none found.

type ReturnNResponseMultiError

type ReturnNResponseMultiError []error

ReturnNResponseMultiError is an error wrapping multiple validation errors returned by ReturnNResponse.ValidateAll() if the designated constraints aren't met.

func (ReturnNResponseMultiError) AllErrors

func (m ReturnNResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ReturnNResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ReturnNResponseValidationError

type ReturnNResponseValidationError struct {
	// contains filtered or unexported fields
}

ReturnNResponseValidationError is the validation error returned by ReturnNResponse.Validate if the designated constraints aren't met.

func (ReturnNResponseValidationError) Cause

Cause function returns cause value.

func (ReturnNResponseValidationError) Error

Error satisfies the builtin error interface

func (ReturnNResponseValidationError) ErrorName

func (e ReturnNResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ReturnNResponseValidationError) Field

Field function returns field value.

func (ReturnNResponseValidationError) Key

Key function returns key value.

func (ReturnNResponseValidationError) Reason

Reason function returns reason value.

type State

type State struct {
	RequestsQueued   []*Request         `protobuf:"bytes,1,rep,name=requests_queued,json=requestsQueued,proto3" json:"requests_queued,omitempty"`
	RequestsInflight []*Request         `protobuf:"bytes,2,rep,name=requests_inflight,json=requestsInflight,proto3" json:"requests_inflight,omitempty"`
	TokenWindow      *State_TokenWindow `protobuf:"bytes,3,opt,name=token_window,json=tokenWindow,proto3" json:"token_window,omitempty"`
	TokenRate        float64            `protobuf:"fixed64,4,opt,name=token_rate,json=tokenRate,proto3" json:"token_rate,omitempty"`
	// contains filtered or unexported fields
}

func (*State) Descriptor deprecated

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

Deprecated: Use State.ProtoReflect.Descriptor instead.

func (*State) GetRequestsInflight

func (x *State) GetRequestsInflight() []*Request

func (*State) GetRequestsQueued

func (x *State) GetRequestsQueued() []*Request

func (*State) GetTokenRate

func (x *State) GetTokenRate() float64

func (*State) GetTokenWindow

func (x *State) GetTokenWindow() *State_TokenWindow

func (*State) MarshalJSON

func (msg *State) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*State) MarshalToSizedBufferVT

func (m *State) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*State) MarshalToVT

func (m *State) MarshalToVT(dAtA []byte) (int, error)

func (*State) MarshalVT

func (m *State) MarshalVT() (dAtA []byte, err error)

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) ProtoReflect

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

func (*State) Reset

func (x *State) Reset()

func (*State) SizeVT

func (m *State) SizeVT() (n int)

func (*State) String

func (x *State) String() string

func (*State) UnmarshalJSON

func (msg *State) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*State) UnmarshalVT

func (m *State) UnmarshalVT(dAtA []byte) error

func (*State) Validate

func (m *State) Validate() error

Validate checks the field values on State with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*State) ValidateAll

func (m *State) ValidateAll() error

ValidateAll checks the field values on State with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StateMultiError, or nil if none found.

type StateMultiError

type StateMultiError []error

StateMultiError is an error wrapping multiple validation errors returned by State.ValidateAll() if the designated constraints aren't met.

func (StateMultiError) AllErrors

func (m StateMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StateMultiError) Error

func (m StateMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StateValidationError

type StateValidationError struct {
	// contains filtered or unexported fields
}

StateValidationError is the validation error returned by State.Validate if the designated constraints aren't met.

func (StateValidationError) Cause

func (e StateValidationError) Cause() error

Cause function returns cause value.

func (StateValidationError) Error

func (e StateValidationError) Error() string

Error satisfies the builtin error interface

func (StateValidationError) ErrorName

func (e StateValidationError) ErrorName() string

ErrorName returns error name.

func (StateValidationError) Field

func (e StateValidationError) Field() string

Field function returns field value.

func (StateValidationError) Key

func (e StateValidationError) Key() bool

Key function returns key value.

func (StateValidationError) Reason

func (e StateValidationError) Reason() string

Reason function returns reason value.

type State_TokenWindow

type State_TokenWindow struct {
	Start *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
	End   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
	Sum   float64                `protobuf:"fixed64,3,opt,name=sum,proto3" json:"sum,omitempty"`
	Count float64                `protobuf:"fixed64,4,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*State_TokenWindow) Descriptor deprecated

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

Deprecated: Use State_TokenWindow.ProtoReflect.Descriptor instead.

func (*State_TokenWindow) GetCount

func (x *State_TokenWindow) GetCount() float64

func (*State_TokenWindow) GetEnd

func (*State_TokenWindow) GetStart

func (x *State_TokenWindow) GetStart() *timestamppb.Timestamp

func (*State_TokenWindow) GetSum

func (x *State_TokenWindow) GetSum() float64

func (*State_TokenWindow) MarshalJSON

func (msg *State_TokenWindow) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*State_TokenWindow) MarshalToSizedBufferVT

func (m *State_TokenWindow) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*State_TokenWindow) MarshalToVT

func (m *State_TokenWindow) MarshalToVT(dAtA []byte) (int, error)

func (*State_TokenWindow) MarshalVT

func (m *State_TokenWindow) MarshalVT() (dAtA []byte, err error)

func (*State_TokenWindow) ProtoMessage

func (*State_TokenWindow) ProtoMessage()

func (*State_TokenWindow) ProtoReflect

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

func (*State_TokenWindow) Reset

func (x *State_TokenWindow) Reset()

func (*State_TokenWindow) SizeVT

func (m *State_TokenWindow) SizeVT() (n int)

func (*State_TokenWindow) String

func (x *State_TokenWindow) String() string

func (*State_TokenWindow) UnmarshalJSON

func (msg *State_TokenWindow) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*State_TokenWindow) UnmarshalVT

func (m *State_TokenWindow) UnmarshalVT(dAtA []byte) error

func (*State_TokenWindow) Validate

func (m *State_TokenWindow) Validate() error

Validate checks the field values on State_TokenWindow with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*State_TokenWindow) ValidateAll

func (m *State_TokenWindow) ValidateAll() error

ValidateAll checks the field values on State_TokenWindow with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in State_TokenWindowMultiError, or nil if none found.

type State_TokenWindowMultiError

type State_TokenWindowMultiError []error

State_TokenWindowMultiError is an error wrapping multiple validation errors returned by State_TokenWindow.ValidateAll() if the designated constraints aren't met.

func (State_TokenWindowMultiError) AllErrors

func (m State_TokenWindowMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (State_TokenWindowMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type State_TokenWindowValidationError

type State_TokenWindowValidationError struct {
	// contains filtered or unexported fields
}

State_TokenWindowValidationError is the validation error returned by State_TokenWindow.Validate if the designated constraints aren't met.

func (State_TokenWindowValidationError) Cause

Cause function returns cause value.

func (State_TokenWindowValidationError) Error

Error satisfies the builtin error interface

func (State_TokenWindowValidationError) ErrorName

ErrorName returns error name.

func (State_TokenWindowValidationError) Field

Field function returns field value.

func (State_TokenWindowValidationError) Key

Key function returns key value.

func (State_TokenWindowValidationError) Reason

Reason function returns reason value.

type TakeNRequest

type TakeNRequest struct {
	RequestId string                 `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	Deadline  *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=deadline,proto3" json:"deadline,omitempty"`
	Tokens    float64                `protobuf:"fixed64,3,opt,name=tokens,proto3" json:"tokens,omitempty"`
	CanWait   bool                   `protobuf:"varint,4,opt,name=can_wait,json=canWait,proto3" json:"can_wait,omitempty"`
	// contains filtered or unexported fields
}

func (*TakeNRequest) Descriptor deprecated

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

Deprecated: Use TakeNRequest.ProtoReflect.Descriptor instead.

func (*TakeNRequest) GetCanWait

func (x *TakeNRequest) GetCanWait() bool

func (*TakeNRequest) GetDeadline

func (x *TakeNRequest) GetDeadline() *timestamppb.Timestamp

func (*TakeNRequest) GetRequestId

func (x *TakeNRequest) GetRequestId() string

func (*TakeNRequest) GetTokens

func (x *TakeNRequest) GetTokens() float64

func (*TakeNRequest) MarshalJSON

func (msg *TakeNRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*TakeNRequest) MarshalToSizedBufferVT

func (m *TakeNRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*TakeNRequest) MarshalToVT

func (m *TakeNRequest) MarshalToVT(dAtA []byte) (int, error)

func (*TakeNRequest) MarshalVT

func (m *TakeNRequest) MarshalVT() (dAtA []byte, err error)

func (*TakeNRequest) ProtoMessage

func (*TakeNRequest) ProtoMessage()

func (*TakeNRequest) ProtoReflect

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

func (*TakeNRequest) Reset

func (x *TakeNRequest) Reset()

func (*TakeNRequest) SizeVT

func (m *TakeNRequest) SizeVT() (n int)

func (*TakeNRequest) String

func (x *TakeNRequest) String() string

func (*TakeNRequest) UnmarshalJSON

func (msg *TakeNRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*TakeNRequest) UnmarshalVT

func (m *TakeNRequest) UnmarshalVT(dAtA []byte) error

func (*TakeNRequest) Validate

func (m *TakeNRequest) Validate() error

Validate checks the field values on TakeNRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TakeNRequest) ValidateAll

func (m *TakeNRequest) ValidateAll() error

ValidateAll checks the field values on TakeNRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TakeNRequestMultiError, or nil if none found.

type TakeNRequestMultiError

type TakeNRequestMultiError []error

TakeNRequestMultiError is an error wrapping multiple validation errors returned by TakeNRequest.ValidateAll() if the designated constraints aren't met.

func (TakeNRequestMultiError) AllErrors

func (m TakeNRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TakeNRequestMultiError) Error

func (m TakeNRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TakeNRequestValidationError

type TakeNRequestValidationError struct {
	// contains filtered or unexported fields
}

TakeNRequestValidationError is the validation error returned by TakeNRequest.Validate if the designated constraints aren't met.

func (TakeNRequestValidationError) Cause

Cause function returns cause value.

func (TakeNRequestValidationError) Error

Error satisfies the builtin error interface

func (TakeNRequestValidationError) ErrorName

func (e TakeNRequestValidationError) ErrorName() string

ErrorName returns error name.

func (TakeNRequestValidationError) Field

Field function returns field value.

func (TakeNRequestValidationError) Key

Key function returns key value.

func (TakeNRequestValidationError) Reason

Reason function returns reason value.

type TakeNResponse

type TakeNResponse struct {
	AvailableNow bool                   `protobuf:"varint,1,opt,name=available_now,json=availableNow,proto3" json:"available_now,omitempty"`
	Current      float64                `protobuf:"fixed64,2,opt,name=current,proto3" json:"current,omitempty"`
	Remaining    float64                `protobuf:"fixed64,3,opt,name=remaining,proto3" json:"remaining,omitempty"`
	CheckBackAt  *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=check_back_at,json=checkBackAt,proto3" json:"check_back_at,omitempty"`
	Ok           bool                   `protobuf:"varint,5,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*TakeNResponse) Descriptor deprecated

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

Deprecated: Use TakeNResponse.ProtoReflect.Descriptor instead.

func (*TakeNResponse) GetAvailableNow

func (x *TakeNResponse) GetAvailableNow() bool

func (*TakeNResponse) GetCheckBackAt

func (x *TakeNResponse) GetCheckBackAt() *timestamppb.Timestamp

func (*TakeNResponse) GetCurrent

func (x *TakeNResponse) GetCurrent() float64

func (*TakeNResponse) GetOk

func (x *TakeNResponse) GetOk() bool

func (*TakeNResponse) GetRemaining

func (x *TakeNResponse) GetRemaining() float64

func (*TakeNResponse) MarshalJSON

func (msg *TakeNResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*TakeNResponse) MarshalToSizedBufferVT

func (m *TakeNResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*TakeNResponse) MarshalToVT

func (m *TakeNResponse) MarshalToVT(dAtA []byte) (int, error)

func (*TakeNResponse) MarshalVT

func (m *TakeNResponse) MarshalVT() (dAtA []byte, err error)

func (*TakeNResponse) ProtoMessage

func (*TakeNResponse) ProtoMessage()

func (*TakeNResponse) ProtoReflect

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

func (*TakeNResponse) Reset

func (x *TakeNResponse) Reset()

func (*TakeNResponse) SizeVT

func (m *TakeNResponse) SizeVT() (n int)

func (*TakeNResponse) String

func (x *TakeNResponse) String() string

func (*TakeNResponse) UnmarshalJSON

func (msg *TakeNResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*TakeNResponse) UnmarshalVT

func (m *TakeNResponse) UnmarshalVT(dAtA []byte) error

func (*TakeNResponse) Validate

func (m *TakeNResponse) Validate() error

Validate checks the field values on TakeNResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TakeNResponse) ValidateAll

func (m *TakeNResponse) ValidateAll() error

ValidateAll checks the field values on TakeNResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TakeNResponseMultiError, or nil if none found.

type TakeNResponseMultiError

type TakeNResponseMultiError []error

TakeNResponseMultiError is an error wrapping multiple validation errors returned by TakeNResponse.ValidateAll() if the designated constraints aren't met.

func (TakeNResponseMultiError) AllErrors

func (m TakeNResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TakeNResponseMultiError) Error

func (m TakeNResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TakeNResponseValidationError

type TakeNResponseValidationError struct {
	// contains filtered or unexported fields
}

TakeNResponseValidationError is the validation error returned by TakeNResponse.Validate if the designated constraints aren't met.

func (TakeNResponseValidationError) Cause

Cause function returns cause value.

func (TakeNResponseValidationError) Error

Error satisfies the builtin error interface

func (TakeNResponseValidationError) ErrorName

func (e TakeNResponseValidationError) ErrorName() string

ErrorName returns error name.

func (TakeNResponseValidationError) Field

Field function returns field value.

func (TakeNResponseValidationError) Key

Key function returns key value.

func (TakeNResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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