@flyteorg/flyteidl2
Version:
Compiled protocol buffers and gRPC service and connect clients/servers for Flyte IDLs
233 lines (200 loc) • 6.69 kB
text/typescript
// @generated by protoc-gen-es v2.2.5 with parameter "target=ts,import_extension=.ts"
// @generated from file flyteidl2/common/list.proto (package flyteidl2.common, syntax proto3)
/* eslint-disable */
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file flyteidl2/common/list.proto.
*/
export const file_flyteidl2_common_list: GenFile = /*@__PURE__*/
fileDesc("ChtmbHl0ZWlkbDIvY29tbW9uL2xpc3QucHJvdG8SEGZseXRlaWRsMi5jb21tb24idAoEU29ydBILCgNrZXkYASABKAkSMwoJZGlyZWN0aW9uGAIgASgOMiAuZmx5dGVpZGwyLmNvbW1vbi5Tb3J0LkRpcmVjdGlvbiIqCglEaXJlY3Rpb24SDgoKREVTQ0VORElORxAAEg0KCUFTQ0VORElORxABIsgBCgtMaXN0UmVxdWVzdBINCgVsaW1pdBgBIAEoDRINCgV0b2tlbhgCIAEoCRIrCgdzb3J0X2J5GAMgASgLMhYuZmx5dGVpZGwyLmNvbW1vbi5Tb3J0QgIYARIpCgdmaWx0ZXJzGAQgAygLMhguZmx5dGVpZGwyLmNvbW1vbi5GaWx0ZXISEwoLcmF3X2ZpbHRlcnMYBSADKAkSLgoOc29ydF9ieV9maWVsZHMYBiADKAsyFi5mbHl0ZWlkbDIuY29tbW9uLlNvcnQitAIKBkZpbHRlchIzCghmdW5jdGlvbhgBIAEoDjIhLmZseXRlaWRsMi5jb21tb24uRmlsdGVyLkZ1bmN0aW9uEg0KBWZpZWxkGAIgASgJEg4KBnZhbHVlcxgDIAMoCSLVAQoIRnVuY3Rpb24SCQoFRVFVQUwQABINCglOT1RfRVFVQUwQARIQCgxHUkVBVEVSX1RIQU4QAhIZChVHUkVBVEVSX1RIQU5fT1JfRVFVQUwQAxINCglMRVNTX1RIQU4QBBIWChJMRVNTX1RIQU5fT1JfRVFVQUwQBRIMCghDT05UQUlOUxAGEgwKCFZBTFVFX0lOEAcSDQoJRU5EU19XSVRIEAwSEQoNTk9UX0VORFNfV0lUSBANEh0KGUNPTlRBSU5TX0NBU0VfSU5TRU5TSVRJVkUQDkK6AQoUY29tLmZseXRlaWRsMi5jb21tb25CCUxpc3RQcm90b0gCUAFaNGdpdGh1Yi5jb20vZmx5dGVvcmcvZmx5dGUvdjIvZ2VuL2dvL2ZseXRlaWRsMi9jb21tb26iAgNGQ1iqAhBGbHl0ZWlkbDIuQ29tbW9uygIQRmx5dGVpZGwyXENvbW1vbuICHEZseXRlaWRsMlxDb21tb25cR1BCTWV0YWRhdGHqAhFGbHl0ZWlkbDI6OkNvbW1vbmIGcHJvdG8z");
/**
* Specifies sort ordering in a list request.
*
* @generated from message flyteidl2.common.Sort
*/
export type Sort = Message<"flyteidl2.common.Sort"> & {
/**
* Indicates an attribute to sort the response values.
* +required
*
* @generated from field: string key = 1;
*/
key: string;
/**
* Indicates the direction to apply sort key for response values.
* +optional
*
* @generated from field: flyteidl2.common.Sort.Direction direction = 2;
*/
direction: Sort_Direction;
};
/**
* Describes the message flyteidl2.common.Sort.
* Use `create(SortSchema)` to create a new message.
*/
export const SortSchema: GenMessage<Sort> = /*@__PURE__*/
messageDesc(file_flyteidl2_common_list, 0);
/**
* @generated from enum flyteidl2.common.Sort.Direction
*/
export enum Sort_Direction {
/**
* By default, fields are sorted in descending order.
*
* @generated from enum value: DESCENDING = 0;
*/
DESCENDING = 0,
/**
* @generated from enum value: ASCENDING = 1;
*/
ASCENDING = 1,
}
/**
* Describes the enum flyteidl2.common.Sort.Direction.
*/
export const Sort_DirectionSchema: GenEnum<Sort_Direction> = /*@__PURE__*/
enumDesc(file_flyteidl2_common_list, 0, 0);
/**
* @generated from message flyteidl2.common.ListRequest
*/
export type ListRequest = Message<"flyteidl2.common.ListRequest"> & {
/**
* Indicates the number of resources to be returned.
* +required
*
* @generated from field: uint32 limit = 1;
*/
limit: number;
/**
* In the case of multiple pages of results, the server-provided token can be used to fetch the next page
* in a query.
* +optional
*
* @generated from field: string token = 2;
*/
token: string;
/**
* Deprecated, use sort_by_fields instead.
* Specifies how listed entities should be sorted in the response.
* +optional
*
* @generated from field: flyteidl2.common.Sort sort_by = 3 [deprecated = true];
* @deprecated
*/
sortBy?: Sort;
/**
* Indicates a list of filters. This field is used for grpc get requests.
* +optional
*
* @generated from field: repeated flyteidl2.common.Filter filters = 4;
*/
filters: Filter[];
/**
* Indicates a raw list of filters passed as string.This field is used for REST get requests
* +optional
*
* @generated from field: repeated string raw_filters = 5;
*/
rawFilters: string[];
/**
* Specifies how listed entities should be sorted in the response.
* Sort fields are applied in order.
* +optional
*
* @generated from field: repeated flyteidl2.common.Sort sort_by_fields = 6;
*/
sortByFields: Sort[];
};
/**
* Describes the message flyteidl2.common.ListRequest.
* Use `create(ListRequestSchema)` to create a new message.
*/
export const ListRequestSchema: GenMessage<ListRequest> = /*@__PURE__*/
messageDesc(file_flyteidl2_common_list, 1);
/**
* @generated from message flyteidl2.common.Filter
*/
export type Filter = Message<"flyteidl2.common.Filter"> & {
/**
* @generated from field: flyteidl2.common.Filter.Function function = 1;
*/
function: Filter_Function;
/**
* e.g. name or version
*
* @generated from field: string field = 2;
*/
field: string;
/**
* Only in the case of a VALUE_IN function, values may contain multiple entries.
*
* @generated from field: repeated string values = 3;
*/
values: string[];
};
/**
* Describes the message flyteidl2.common.Filter.
* Use `create(FilterSchema)` to create a new message.
*/
export const FilterSchema: GenMessage<Filter> = /*@__PURE__*/
messageDesc(file_flyteidl2_common_list, 2);
/**
* @generated from enum flyteidl2.common.Filter.Function
*/
export enum Filter_Function {
/**
* @generated from enum value: EQUAL = 0;
*/
EQUAL = 0,
/**
* @generated from enum value: NOT_EQUAL = 1;
*/
NOT_EQUAL = 1,
/**
* @generated from enum value: GREATER_THAN = 2;
*/
GREATER_THAN = 2,
/**
* @generated from enum value: GREATER_THAN_OR_EQUAL = 3;
*/
GREATER_THAN_OR_EQUAL = 3,
/**
* @generated from enum value: LESS_THAN = 4;
*/
LESS_THAN = 4,
/**
* @generated from enum value: LESS_THAN_OR_EQUAL = 5;
*/
LESS_THAN_OR_EQUAL = 5,
/**
* Case sensitive contains function.
*
* @generated from enum value: CONTAINS = 6;
*/
CONTAINS = 6,
/**
* @generated from enum value: VALUE_IN = 7;
*/
VALUE_IN = 7,
/**
* @generated from enum value: ENDS_WITH = 12;
*/
ENDS_WITH = 12,
/**
* @generated from enum value: NOT_ENDS_WITH = 13;
*/
NOT_ENDS_WITH = 13,
/**
* Case insensitive contains function.
*
* @generated from enum value: CONTAINS_CASE_INSENSITIVE = 14;
*/
CONTAINS_CASE_INSENSITIVE = 14,
}
/**
* Describes the enum flyteidl2.common.Filter.Function.
*/
export const Filter_FunctionSchema: GenEnum<Filter_Function> = /*@__PURE__*/
enumDesc(file_flyteidl2_common_list, 2, 0);