common

package
v1.33.0-20230622223511... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Sort_Direction_name = map[int32]string{
		0: "DESCENDING",
		1: "ASCENDING",
	}
	Sort_Direction_value = map[string]int32{
		"DESCENDING": 0,
		"ASCENDING":  1,
	}
)

Enum value maps for Sort_Direction.

View Source
var (
	Filter_Function_name = map[int32]string{
		0: "EQUAL",
		1: "NOT_EQUAL",
		2: "GREATER_THAN",
		3: "GREATER_THAN_OR_EQUAL",
		4: "LESS_THAN",
		5: "LESS_THAN_OR_EQUAL",
		6: "CONTAINS",
		7: "VALUE_IN",
	}
	Filter_Function_value = map[string]int32{
		"EQUAL":                 0,
		"NOT_EQUAL":             1,
		"GREATER_THAN":          2,
		"GREATER_THAN_OR_EQUAL": 3,
		"LESS_THAN":             4,
		"LESS_THAN_OR_EQUAL":    5,
		"CONTAINS":              6,
		"VALUE_IN":              7,
	}
)

Enum value maps for Filter_Function.

View Source
var File_common_list_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Function Filter_Function `protobuf:"varint,1,opt,name=function,proto3,enum=cloudidl.common.Filter_Function" json:"function,omitempty"`
	// e.g. name or version
	Field string `protobuf:"bytes,2,opt,name=field,proto3" json:"field,omitempty"`
	// Only in the case of a VALUE_IN function, values may contain multiple entries.
	Values []string `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*Filter) Descriptor deprecated

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

Deprecated: Use Filter.ProtoReflect.Descriptor instead.

func (*Filter) GetField

func (x *Filter) GetField() string

func (*Filter) GetFunction

func (x *Filter) GetFunction() Filter_Function

func (*Filter) GetValues

func (x *Filter) GetValues() []string

func (*Filter) ProtoMessage

func (*Filter) ProtoMessage()

func (*Filter) ProtoReflect

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

func (*Filter) Reset

func (x *Filter) Reset()

func (*Filter) String

func (x *Filter) String() string

type Filter_Function

type Filter_Function int32
const (
	Filter_EQUAL                 Filter_Function = 0
	Filter_NOT_EQUAL             Filter_Function = 1
	Filter_GREATER_THAN          Filter_Function = 2
	Filter_GREATER_THAN_OR_EQUAL Filter_Function = 3
	Filter_LESS_THAN             Filter_Function = 4
	Filter_LESS_THAN_OR_EQUAL    Filter_Function = 5
	Filter_CONTAINS              Filter_Function = 6
	Filter_VALUE_IN              Filter_Function = 7
)

func (Filter_Function) Descriptor

func (Filter_Function) Enum

func (x Filter_Function) Enum() *Filter_Function

func (Filter_Function) EnumDescriptor deprecated

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

Deprecated: Use Filter_Function.Descriptor instead.

func (Filter_Function) Number

func (Filter_Function) String

func (x Filter_Function) String() string

func (Filter_Function) Type

type ListRequest

type ListRequest struct {

	// Indicates the number of resources to be returned.
	// +required
	Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	// In the case of multiple pages of results, the server-provided token can be used to fetch the next page
	// in a query.
	// +optional
	Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// Specifies how listed entities should be sorted in the response.
	// +optional
	SortBy *Sort `protobuf:"bytes,3,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"`
	// Indicates a list of filters. This field is used for grpc get requests.
	// +optional
	Filters []*Filter `protobuf:"bytes,4,rep,name=filters,proto3" json:"filters,omitempty"`
	// Indicates a raw list of filters passed as string.This field is used for REST get requests
	// +optional
	RawFilters []string `protobuf:"bytes,5,rep,name=raw_filters,json=rawFilters,proto3" json:"raw_filters,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetFilters

func (x *ListRequest) GetFilters() []*Filter

func (*ListRequest) GetLimit

func (x *ListRequest) GetLimit() uint32

func (*ListRequest) GetRawFilters

func (x *ListRequest) GetRawFilters() []string

func (*ListRequest) GetSortBy

func (x *ListRequest) GetSortBy() *Sort

func (*ListRequest) GetToken

func (x *ListRequest) GetToken() string

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type Sort

type Sort struct {

	// Indicates an attribute to sort the response values.
	// +required
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Indicates the direction to apply sort key for response values.
	// +optional
	Direction Sort_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=cloudidl.common.Sort_Direction" json:"direction,omitempty"`
	// contains filtered or unexported fields
}

Specifies sort ordering in a list request.

func (*Sort) Descriptor deprecated

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

Deprecated: Use Sort.ProtoReflect.Descriptor instead.

func (*Sort) GetDirection

func (x *Sort) GetDirection() Sort_Direction

func (*Sort) GetKey

func (x *Sort) GetKey() string

func (*Sort) ProtoMessage

func (*Sort) ProtoMessage()

func (*Sort) ProtoReflect

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

func (*Sort) Reset

func (x *Sort) Reset()

func (*Sort) String

func (x *Sort) String() string

type Sort_Direction

type Sort_Direction int32
const (
	// By default, fields are sorted in descending order.
	Sort_DESCENDING Sort_Direction = 0
	Sort_ASCENDING  Sort_Direction = 1
)

func (Sort_Direction) Descriptor

func (Sort_Direction) Enum

func (x Sort_Direction) Enum() *Sort_Direction

func (Sort_Direction) EnumDescriptor deprecated

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

Deprecated: Use Sort_Direction.Descriptor instead.

func (Sort_Direction) Number

func (Sort_Direction) String

func (x Sort_Direction) String() string

func (Sort_Direction) Type

Jump to

Keyboard shortcuts

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