diff --git a/docs/docs/08-api.md b/docs/docs/08-api.md index 599608840..7ec582ef6 100644 --- a/docs/docs/08-api.md +++ b/docs/docs/08-api.md @@ -759,10 +759,11 @@ Declares a Variable. | Field | Label | Type | Description | | ----- | ---- | ---- | ----------- | -| `type` | | [VariableType](#variabletype) | The Type of the variable. | +| `primitive` | oneof `type`| [PrimitiveType](#primitivetype) | The primitive type of the variable. | +| `schema` | oneof `type`| [SchemaId](#schemaid) | The ID of the schema that the variable belongs to. | | `name` | | string | The name of the variable. | | `default_value` | optional| [VariableValue](#variablevalue) | Optional default value if the variable isn't set; for example, in a ThreadRun if you start a ThreadRun or WfRun without passing a variable in, then this is used. | -| `masked_value` | | bool | If true, the variable value will show as a masked string. | +| `is_masked` | | bool | If true, the variable value will show as a masked string. | @@ -1137,6 +1138,20 @@ ID for a ScheduledWfRun +### Message `SchemaId` {#schemaid} + +ID for a Schema + + +| Field | Label | Type | Description | +| ----- | ---- | ---- | ----------- | +| `name` | | string | The name of the `Schema`. | +| `version` | | int32 | The version of the `Schema`. | + + + + + ### Message `TaskDefId` {#taskdefid} ID for a TaskDef. @@ -1863,7 +1878,8 @@ EXPERIMENTAL: Creates a WorkflowEventDef | Field | Label | Type | Description | | ----- | ---- | ---- | ----------- | | `name` | | string | | -| `type` | | [VariableType](#variabletype) | | +| `primitive_type` | oneof `type`| [PrimitiveType](#primitivetype) | | +| `schema` | oneof `type`| [SchemaId](#schemaid) | | @@ -2976,7 +2992,7 @@ A UserTaskField is a specific field of data to be entered into a UserTaskRun. | Field | Label | Type | Description | | ----- | ---- | ---- | ----------- | | `name` | | string | The name of the field. When a UserTaskRun is completed, the NodeOutput is a single-level JSON_OBJ. Each key is the name of the field. Must be unique. | -| `type` | | [VariableType](#variabletype) | The type of the output. Must be a primitive type (STR, BOOL, INT, DOUBLE). | +| `type` | | [PrimitiveType](#primitivetype) | The type of the output. Must be a primitive type (STR, BOOL, INT, DOUBLE). | | `description` | optional| string | Optional description which can be displayed by the User Task UI application. Does not affect WfRun execution. | | `display_name` | | string | The name to be displayed by the User Task UI application. Does not affect WfRun execution. | | `required` | | bool | Whether this field is required for UserTaskRun completion. | @@ -3049,6 +3065,108 @@ SDK, which allows the Task Method to determine where the TaskRun comes from. +### Message `InlineSchema` {#inlineschema} + +An `InlineSchema` is the actual representation of the Schema. + + +| Field | Label | Type | Description | +| ----- | ---- | ---- | ----------- | +| `fields` | repeated| [SchemaField](#schemafield) | The fields in this schema. | + + + + + +### Message `InlineStruct` {#inlinestruct} + +An `InlineStruct` is a pre-validated set of fields that are part of a `Struct`. + + +| Field | Label | Type | Description | +| ----- | ---- | ---- | ----------- | +| `fields` | repeated| [StructField](#structfield) | The fields in the inline struct. | + + + + + +### Message `Schema` {#schema} + +A `Schema` is a versioned metadata object (tenant-scoped) inside LittleHorse +that defines the structure and content of a variable value. It allows strong typing. + + +| Field | Label | Type | Description | +| ----- | ---- | ---- | ----------- | +| `id` | | [SchemaId](#schemaid) | The id of the `Schema`. This includes the version. | +| `description` | optional| string | Optionally description of the schema. | +| `schema` | | [InlineSchema](#inlineschema) | The `InlineSchema` defines the actual structure of any `Struct` using this `Schema`. | + + + + + +### Message `SchemaField` {#schemafield} + +A `SchemaField` defines a field inside a `Schema`. + + +| Field | Label | Type | Description | +| ----- | ---- | ---- | ----------- | +| `name` | | string | The name of the field. | +| `optional` | | bool | Whether the field is optional. | +| `primitive` | oneof `field_type`| [PrimitiveType](#primitivetype) | Specifies that the field is a primitive `VariableValue` of the specified type. | +| `schema_id` | oneof `field_type`| [SchemaId](#schemaid) | Specifies that the field is of a specific `Schema`. | +| `inline_schema` | oneof `field_type`| [InlineSchema](#inlineschema) | Specifies that field must be a `Struct` conforming to the accompanying schema. | + + + + + +### Message `Struct` {#struct} + +A Struct is a strongly-typed structure containing fields. The Struct is defined +according to the `Schema` object. + + +| Field | Label | Type | Description | +| ----- | ---- | ---- | ----------- | +| `schema_id` | | [SchemaId](#schemaid) | The id of the schema. | +| `struct` | | [InlineStruct](#inlinestruct) | The content of the Struct | + + + + + +### Message `StructField` {#structfield} + +A StructField represents the value for a single field in a struct. + + +| Field | Label | Type | Description | +| ----- | ---- | ---- | ----------- | +| `primitive` | oneof `struct_value`| [VariableValue](#variablevalue) | The `value` of the field is an untyped primitive `VariableValue`. | +| `struct` | oneof `struct_value`| [InlineStruct](#inlinestruct) | The `value` of the field is a complex `Struct`. | +| `list` | oneof `struct_value`| [StructField.FieldList](#structfieldfieldlist) | The `value` of the field is a list of fields. | + + + + + +### Message `StructField.FieldList` {#structfieldfieldlist} + +A FieldList is a sub-structure of a `Struct` + + +| Field | Label | Type | Description | +| ----- | ---- | ---- | ----------- | +| `fields` | repeated| [StructField](#structfield) | | + + + + + ### Message `Variable` {#variable} A Variable is an instance of a variable assigned to a WfRun. @@ -3082,6 +3200,7 @@ from a TaskRun, as the value of a WfRun's Variable, etc. | `str` | oneof `value`| string | A string. | | `int` | oneof `value`| int64 | The `INT` variable type is stored as a 64-bit integer. The `INT` can be cast to a `DOUBLE`. | | `bytes` | oneof `value`| bytes | An arbitrary String of bytes. | +| `struct` | oneof `value`| [Struct](#struct) | A strongly-typed struct | @@ -3412,7 +3531,7 @@ JSON Path. | Field | Label | Type | Description | | ----- | ---- | ---- | ----------- | | `field_path` | | string | Denotes the path in JSONPath format (according to the Java Jayway library) that has a field we should index. | -| `field_type` | | [VariableType](#variabletype) | Is the type of the field we are indexing. | +| `field_type` | | [PrimitiveType](#primitivetype) | Is the type of the field we are indexing. | @@ -3838,14 +3957,14 @@ world. ### Message `WorkflowEventDef` {#workfloweventdef} - +A `WorkflowEventDef` defines the blueprint for a `WorkflowEvent`. | Field | Label | Type | Description | | ----- | ---- | ---- | ----------- | -| `id` | | [WorkflowEventDefId](#workfloweventdefid) | | -| `created_at` | | google.protobuf.Timestamp | | -| `type` | | [VariableType](#variabletype) | | +| `id` | | [WorkflowEventDefId](#workfloweventdefid) | The `id` of the `WorkflowEventDef`. | +| `created_at` | | google.protobuf.Timestamp | The timestamp at which the `WorkflowEventDef` was created. | +| `type` | | [PrimitiveType](#primitivetype) | The type of the content of the `WorkflowEvent`.

TODO: Support schemas | @@ -3949,25 +4068,7 @@ Metrics -### Enum TaskStatus {#taskstatus} -Status of a TaskRun. - -| Name | Number | Description | -| ---- | ------ | ----------- | -| TASK_SCHEDULED | 0 | Scheduled in the Task Queue but not yet picked up by a Task Worker. | -| TASK_RUNNING | 1 | Picked up by a Task Worker, but not yet reported or timed out. | -| TASK_SUCCESS | 2 | Successfully completed. | -| TASK_FAILED | 3 | Task Worker reported a technical failure while attempting to execute the TaskRun | -| TASK_TIMEOUT | 4 | Task Worker did not report a result in time. | -| TASK_OUTPUT_SERIALIZING_ERROR | 5 | Task Worker reported that it was unable to serialize the output of the TaskRun. | -| TASK_INPUT_VAR_SUB_ERROR | 6 | Task Worker was unable to deserialize the input variables into appropriate language-specific objects to pass into the Task Function | -| TASK_EXCEPTION | 8 | Task Function business logic determined that there was a business exception. | -| TASK_PENDING | 9 | Refers to a TaskAttempt that is not yet scheduled. This happens when using retries with an ExponentialBackoffRetryPolicy: the TaskAttempt isn't supposed to be scheduled until it "matures", but it does already exist. | - - - - -### Enum VariableType {#variabletype} +### Enum PrimitiveType {#primitivetype} Type of a Varaible in LittleHorse. Corresponds to the possible value type's of a VariableValue. @@ -3984,6 +4085,24 @@ The `JSON_OBJ` variable allows you to store complex objects in the JSON format. | BYTES | 6 | The `BYTES` variable type allows you to store an arbitrary byte string. | + + +### Enum TaskStatus {#taskstatus} +Status of a TaskRun. + +| Name | Number | Description | +| ---- | ------ | ----------- | +| TASK_SCHEDULED | 0 | Scheduled in the Task Queue but not yet picked up by a Task Worker. | +| TASK_RUNNING | 1 | Picked up by a Task Worker, but not yet reported or timed out. | +| TASK_SUCCESS | 2 | Successfully completed. | +| TASK_FAILED | 3 | Task Worker reported a technical failure while attempting to execute the TaskRun | +| TASK_TIMEOUT | 4 | Task Worker did not report a result in time. | +| TASK_OUTPUT_SERIALIZING_ERROR | 5 | Task Worker reported that it was unable to serialize the output of the TaskRun. | +| TASK_INPUT_VAR_SUB_ERROR | 6 | Task Worker was unable to deserialize the input variables into appropriate language-specific objects to pass into the Task Function | +| TASK_EXCEPTION | 8 | Task Function business logic determined that there was a business exception. | +| TASK_PENDING | 9 | Refers to a TaskAttempt that is not yet scheduled. This happens when using retries with an ExponentialBackoffRetryPolicy: the TaskAttempt isn't supposed to be scheduled until it "matures", but it does already exist. | + + diff --git a/schemas/littlehorse/common_enums.proto b/schemas/littlehorse/common_enums.proto index e0dba41e1..832ed5eab 100644 --- a/schemas/littlehorse/common_enums.proto +++ b/schemas/littlehorse/common_enums.proto @@ -78,7 +78,7 @@ enum MetricsWindowLength { // Type of a Varaible in LittleHorse. Corresponds to the possible value type's of a // VariableValue. -enum VariableType { +enum PrimitiveType { // An object represented as a json string.
// // The `JSON_OBJ` variable allows you to store complex objects in the JSON format. diff --git a/schemas/littlehorse/common_wfspec.proto b/schemas/littlehorse/common_wfspec.proto index 188444883..162b54117 100644 --- a/schemas/littlehorse/common_wfspec.proto +++ b/schemas/littlehorse/common_wfspec.proto @@ -108,7 +108,13 @@ message VariableMutation { // Declares a Variable. message VariableDef { // The Type of the variable. - VariableType type = 1; + oneof type { + // The primitive type of the variable. + PrimitiveType primitive = 1; + + // The ID of the schema that the variable belongs to. + SchemaId schema = 5; + } // The name of the variable. string name = 2; @@ -119,7 +125,7 @@ message VariableDef { optional VariableValue default_value = 3; // If true, the variable value will show as a masked string. - bool masked_value = 4; + bool is_masked = 4; } // Operator for comparing two values to create a boolean expression. diff --git a/schemas/littlehorse/object_id.proto b/schemas/littlehorse/object_id.proto index 302390f1e..099fc8b32 100644 --- a/schemas/littlehorse/object_id.proto +++ b/schemas/littlehorse/object_id.proto @@ -63,6 +63,15 @@ message WorkflowEventDefId { string name = 1; } +// ID for a Schema +message SchemaId { + // The name of the `Schema`. + string name = 1; + + // The version of the `Schema`. + int32 version = 2; +} + // ID for a TaskWorkerGroup. message TaskWorkerGroupId { // TaskWorkerGroups are uniquely identified by their TaskDefId. diff --git a/schemas/littlehorse/service.proto b/schemas/littlehorse/service.proto index ae4f303cb..2faa43538 100644 --- a/schemas/littlehorse/service.proto +++ b/schemas/littlehorse/service.proto @@ -338,7 +338,10 @@ message PutTaskDefRequest { // EXPERIMENTAL: Creates a WorkflowEventDef message PutWorkflowEventDefRequest { string name = 1; - VariableType type = 2; + oneof type { + PrimitiveType primitive_type = 2; + SchemaId schema = 3; + } } // Creates a UserTaskDef. diff --git a/schemas/littlehorse/user_tasks.proto b/schemas/littlehorse/user_tasks.proto index f414a538c..d8acbaffb 100644 --- a/schemas/littlehorse/user_tasks.proto +++ b/schemas/littlehorse/user_tasks.proto @@ -41,7 +41,7 @@ message UserTaskField { string name = 1; // The type of the output. Must be a primitive type (STR, BOOL, INT, DOUBLE). - VariableType type = 2; + PrimitiveType type = 2; // Optional description which can be displayed by the User Task UI application. // Does not affect WfRun execution. diff --git a/schemas/littlehorse/variable.proto b/schemas/littlehorse/variable.proto index 7f58f8609..72612e0e6 100644 --- a/schemas/littlehorse/variable.proto +++ b/schemas/littlehorse/variable.proto @@ -4,6 +4,7 @@ package littlehorse; import "google/protobuf/timestamp.proto"; import "object_id.proto"; +import "common_enums.proto"; option go_package = ".;lhproto"; option java_multiple_files = true; @@ -40,6 +41,13 @@ message VariableValue { // An arbitrary String of bytes. bytes bytes = 8; + + // A strongly-typed struct + Struct struct = 9; + + // In the future, we can add things like: + // RegexString regex_string = 10; + // Timestamp timestamp = 11; } } @@ -61,3 +69,80 @@ message Variable { // Marks a variable to show masked values bool masked = 5; } + +// A Struct is a strongly-typed structure containing fields. The Struct is defined +// according to the `Schema` object. +message Struct { + // The id of the schema. + SchemaId schema_id = 1; + + // The content of the Struct + InlineStruct struct = 2; +} + +// An `InlineStruct` is a pre-validated set of fields that are part of a `Struct`. +message InlineStruct { + // The fields in the inline struct. + repeated StructField fields = 1; +} + +// A StructField represents the value for a single field in a struct. +message StructField { + // The value, which can be primitive or complex. + oneof struct_value { + // The `value` of the field is an untyped primitive `VariableValue`. + VariableValue primitive = 1; + + // The `value` of the field is a complex `Struct`. + InlineStruct struct = 2; + + // The `value` of the field is a list of fields. + FieldList list = 3; + } + + // A FieldList is a sub-structure of a `Struct` + message FieldList { + repeated StructField fields = 1; + } +} + +// A `SchemaField` defines a field inside a `Schema`. +message SchemaField { + // The name of the field. + string name = 1; + + // Whether the field is optional. + bool optional = 2; + + // The type of the field. + oneof field_type { + // Specifies that the field is a primitive `VariableValue` of the specified type. + PrimitiveType primitive = 3; + + // Specifies that the field is of a specific `Schema`. + SchemaId schema_id = 4; + + // Specifies that field must be a `Struct` conforming to the accompanying schema. + InlineSchema inline_schema = 5; + } +} + +// A `Schema` is a versioned metadata object (tenant-scoped) inside LittleHorse +// that defines the structure and content of a variable value. It allows strong typing. +message Schema { + + // The id of the `Schema`. This includes the version. + SchemaId id = 1; + + // Optionally description of the schema. + optional string description = 2; + + // The `InlineSchema` defines the actual structure of any `Struct` using this `Schema`. + InlineSchema schema = 3; +} + +// An `InlineSchema` is the actual representation of the Schema. +message InlineSchema { + // The fields in this schema. + repeated SchemaField fields = 1; +} \ No newline at end of file diff --git a/schemas/littlehorse/wf_spec.proto b/schemas/littlehorse/wf_spec.proto index 63d801a31..ef0856246 100644 --- a/schemas/littlehorse/wf_spec.proto +++ b/schemas/littlehorse/wf_spec.proto @@ -88,7 +88,7 @@ message JsonIndex { string field_path = 1; // Is the type of the field we are indexing. - VariableType field_type = 2; + PrimitiveType field_type = 2; } // Determines the Access Level for a Variable in a ThreadSpec/WfSpec. diff --git a/schemas/littlehorse/workflow_event.proto b/schemas/littlehorse/workflow_event.proto index 831f8a5b1..9f7297ac6 100644 --- a/schemas/littlehorse/workflow_event.proto +++ b/schemas/littlehorse/workflow_event.proto @@ -29,8 +29,16 @@ message WorkflowEvent { google.protobuf.Timestamp created_at = 3; } +// A `WorkflowEventDef` defines the blueprint for a `WorkflowEvent`. message WorkflowEventDef { + // The `id` of the `WorkflowEventDef`. WorkflowEventDefId id = 1; + + // The timestamp at which the `WorkflowEventDef` was created. google.protobuf.Timestamp created_at = 2; - VariableType type = 3; + + // The type of the content of the `WorkflowEvent`. + // + // TODO: Support schemas + PrimitiveType type = 3; } diff --git a/sdk-go/lhproto/common_enums.pb.go b/sdk-go/lhproto/common_enums.pb.go index 174134b0a..4bbaea91f 100644 --- a/sdk-go/lhproto/common_enums.pb.go +++ b/sdk-go/lhproto/common_enums.pb.go @@ -278,7 +278,7 @@ func (MetricsWindowLength) EnumDescriptor() ([]byte, []int) { // Type of a Varaible in LittleHorse. Corresponds to the possible value type's of a // VariableValue. -type VariableType int32 +type PrimitiveType int32 const ( // An object represented as a json string.
@@ -288,28 +288,28 @@ const ( // used transparently to the user. For example, the Java Task Worker SDK can // inspect your method signature and automatically deserialize an input variable // into a POJO. - VariableType_JSON_OBJ VariableType = 0 + PrimitiveType_JSON_OBJ PrimitiveType = 0 // The `JSON_ARR` variable allows you to store collections of objects as a JSON // array. The behavior is similar to the `JSON_OBJ` variable type. - VariableType_JSON_ARR VariableType = 1 + PrimitiveType_JSON_ARR PrimitiveType = 1 // The `DOUBLE` variable type is a 64-bit floating point number. It can // be cast to an `INT`. - VariableType_DOUBLE VariableType = 2 + PrimitiveType_DOUBLE PrimitiveType = 2 // Boolean denotes a simple boolean switch. - VariableType_BOOL VariableType = 3 + PrimitiveType_BOOL PrimitiveType = 3 // The `STR` variable type is stored as a String. `INT`, `DOUBLE`, // and `BOOL` variables can be cast to a `STR`. - VariableType_STR VariableType = 4 + PrimitiveType_STR PrimitiveType = 4 // The `INT` variable type is stored as a 64-bit integer. The // `INT` can be cast to a `DOUBLE`. - VariableType_INT VariableType = 5 + PrimitiveType_INT PrimitiveType = 5 // The `BYTES` variable type allows you to store an arbitrary byte string. - VariableType_BYTES VariableType = 6 + PrimitiveType_BYTES PrimitiveType = 6 ) -// Enum value maps for VariableType. +// Enum value maps for PrimitiveType. var ( - VariableType_name = map[int32]string{ + PrimitiveType_name = map[int32]string{ 0: "JSON_OBJ", 1: "JSON_ARR", 2: "DOUBLE", @@ -318,7 +318,7 @@ var ( 5: "INT", 6: "BYTES", } - VariableType_value = map[string]int32{ + PrimitiveType_value = map[string]int32{ "JSON_OBJ": 0, "JSON_ARR": 1, "DOUBLE": 2, @@ -329,30 +329,30 @@ var ( } ) -func (x VariableType) Enum() *VariableType { - p := new(VariableType) +func (x PrimitiveType) Enum() *PrimitiveType { + p := new(PrimitiveType) *p = x return p } -func (x VariableType) String() string { +func (x PrimitiveType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (VariableType) Descriptor() protoreflect.EnumDescriptor { +func (PrimitiveType) Descriptor() protoreflect.EnumDescriptor { return file_common_enums_proto_enumTypes[4].Descriptor() } -func (VariableType) Type() protoreflect.EnumType { +func (PrimitiveType) Type() protoreflect.EnumType { return &file_common_enums_proto_enumTypes[4] } -func (x VariableType) Number() protoreflect.EnumNumber { +func (x PrimitiveType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use VariableType.Descriptor instead. -func (VariableType) EnumDescriptor() ([]byte, []int) { +// Deprecated: Use PrimitiveType.Descriptor instead. +func (PrimitiveType) EnumDescriptor() ([]byte, []int) { return file_common_enums_proto_rawDescGZIP(), []int{4} } @@ -465,30 +465,30 @@ var file_common_enums_proto_rawDesc = []byte{ 0x69, 0x63, 0x73, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x0d, 0x0a, 0x09, 0x4d, 0x49, 0x4e, 0x55, 0x54, 0x45, 0x53, 0x5f, 0x35, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x48, 0x4f, 0x55, 0x52, 0x53, 0x5f, 0x32, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x44, - 0x41, 0x59, 0x53, 0x5f, 0x31, 0x10, 0x02, 0x2a, 0x5d, 0x0a, 0x0c, 0x56, 0x61, 0x72, 0x69, 0x61, - 0x62, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, - 0x4f, 0x42, 0x4a, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x41, 0x52, - 0x52, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x10, 0x02, 0x12, - 0x08, 0x0a, 0x04, 0x42, 0x4f, 0x4f, 0x4c, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x54, 0x52, - 0x10, 0x04, 0x12, 0x07, 0x0a, 0x03, 0x49, 0x4e, 0x54, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, 0x42, - 0x59, 0x54, 0x45, 0x53, 0x10, 0x06, 0x2a, 0xb6, 0x01, 0x0a, 0x0b, 0x4c, 0x48, 0x45, 0x72, 0x72, - 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x48, 0x49, 0x4c, 0x44, 0x5f, - 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x56, 0x41, 0x52, - 0x5f, 0x53, 0x55, 0x42, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, - 0x56, 0x41, 0x52, 0x5f, 0x4d, 0x55, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, - 0x4f, 0x52, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x54, 0x41, 0x53, - 0x4b, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0b, 0x0a, - 0x07, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x41, - 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09, - 0x56, 0x41, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x06, 0x12, 0x0e, 0x0a, 0x0a, 0x54, - 0x41, 0x53, 0x4b, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x07, 0x12, 0x12, 0x0a, 0x0e, 0x49, - 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x08, 0x42, - 0x49, 0x0a, 0x1f, 0x69, 0x6f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, - 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x09, 0x2e, 0x3b, 0x6c, 0x68, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0xaa, - 0x02, 0x18, 0x4c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x41, 0x59, 0x53, 0x5f, 0x31, 0x10, 0x02, 0x2a, 0x5e, 0x0a, 0x0d, 0x50, 0x72, 0x69, 0x6d, 0x69, + 0x74, 0x69, 0x76, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x4a, 0x53, 0x4f, 0x4e, + 0x5f, 0x4f, 0x42, 0x4a, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x41, + 0x52, 0x52, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x10, 0x02, + 0x12, 0x08, 0x0a, 0x04, 0x42, 0x4f, 0x4f, 0x4c, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x54, + 0x52, 0x10, 0x04, 0x12, 0x07, 0x0a, 0x03, 0x49, 0x4e, 0x54, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, + 0x42, 0x59, 0x54, 0x45, 0x53, 0x10, 0x06, 0x2a, 0xb6, 0x01, 0x0a, 0x0b, 0x4c, 0x48, 0x45, 0x72, + 0x72, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x48, 0x49, 0x4c, 0x44, + 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x56, 0x41, + 0x52, 0x5f, 0x53, 0x55, 0x42, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x16, 0x0a, + 0x12, 0x56, 0x41, 0x52, 0x5f, 0x4d, 0x55, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x52, + 0x52, 0x4f, 0x52, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x54, 0x41, + 0x53, 0x4b, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0b, + 0x0a, 0x07, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x54, + 0x41, 0x53, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x05, 0x12, 0x0d, 0x0a, + 0x09, 0x56, 0x41, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x06, 0x12, 0x0e, 0x0a, 0x0a, + 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x07, 0x12, 0x12, 0x0a, 0x0e, + 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x08, + 0x42, 0x49, 0x0a, 0x1f, 0x69, 0x6f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, + 0x73, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x09, 0x2e, 0x3b, 0x6c, 0x68, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0xaa, 0x02, 0x18, 0x4c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x43, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -509,7 +509,7 @@ var file_common_enums_proto_goTypes = []interface{}{ (MetadataStatus)(0), // 1: littlehorse.MetadataStatus (TaskStatus)(0), // 2: littlehorse.TaskStatus (MetricsWindowLength)(0), // 3: littlehorse.MetricsWindowLength - (VariableType)(0), // 4: littlehorse.VariableType + (PrimitiveType)(0), // 4: littlehorse.PrimitiveType (LHErrorType)(0), // 5: littlehorse.LHErrorType } var file_common_enums_proto_depIdxs = []int32{ diff --git a/sdk-go/lhproto/common_wfspec.pb.go b/sdk-go/lhproto/common_wfspec.pb.go index 10c702c35..ab3939836 100644 --- a/sdk-go/lhproto/common_wfspec.pb.go +++ b/sdk-go/lhproto/common_wfspec.pb.go @@ -490,7 +490,11 @@ type VariableDef struct { unknownFields protoimpl.UnknownFields // The Type of the variable. - Type VariableType `protobuf:"varint,1,opt,name=type,proto3,enum=littlehorse.VariableType" json:"type,omitempty"` + // + // Types that are assignable to Type: + // *VariableDef_Primitive + // *VariableDef_Schema + Type isVariableDef_Type `protobuf_oneof:"type"` // The name of the variable. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Optional default value if the variable isn't set; for example, in a ThreadRun @@ -498,7 +502,7 @@ type VariableDef struct { // used. DefaultValue *VariableValue `protobuf:"bytes,3,opt,name=default_value,json=defaultValue,proto3,oneof" json:"default_value,omitempty"` // If true, the variable value will show as a masked string. - MaskedValue bool `protobuf:"varint,4,opt,name=masked_value,json=maskedValue,proto3" json:"masked_value,omitempty"` + IsMasked bool `protobuf:"varint,4,opt,name=is_masked,json=isMasked,proto3" json:"is_masked,omitempty"` } func (x *VariableDef) Reset() { @@ -533,11 +537,25 @@ func (*VariableDef) Descriptor() ([]byte, []int) { return file_common_wfspec_proto_rawDescGZIP(), []int{2} } -func (x *VariableDef) GetType() VariableType { - if x != nil { - return x.Type +func (m *VariableDef) GetType() isVariableDef_Type { + if m != nil { + return m.Type } - return VariableType_JSON_OBJ + return nil +} + +func (x *VariableDef) GetPrimitive() PrimitiveType { + if x, ok := x.GetType().(*VariableDef_Primitive); ok { + return x.Primitive + } + return PrimitiveType_JSON_OBJ +} + +func (x *VariableDef) GetSchema() *SchemaId { + if x, ok := x.GetType().(*VariableDef_Schema); ok { + return x.Schema + } + return nil } func (x *VariableDef) GetName() string { @@ -554,13 +572,31 @@ func (x *VariableDef) GetDefaultValue() *VariableValue { return nil } -func (x *VariableDef) GetMaskedValue() bool { +func (x *VariableDef) GetIsMasked() bool { if x != nil { - return x.MaskedValue + return x.IsMasked } return false } +type isVariableDef_Type interface { + isVariableDef_Type() +} + +type VariableDef_Primitive struct { + // The primitive type of the variable. + Primitive PrimitiveType `protobuf:"varint,1,opt,name=primitive,proto3,enum=littlehorse.PrimitiveType,oneof"` +} + +type VariableDef_Schema struct { + // The ID of the schema that the variable belongs to. + Schema *SchemaId `protobuf:"bytes,5,opt,name=schema,proto3,oneof"` +} + +func (*VariableDef_Primitive) isVariableDef_Type() {} + +func (*VariableDef_Schema) isVariableDef_Type() {} + // A UTActionTrigger triggers an action upon certain lifecycle hooks // in a User Task. Actions include: // - re-assign the User Task Run @@ -1218,18 +1254,22 @@ var file_common_wfspec_proto_rawDesc = []byte{ 0x61, 0x74, 0x68, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x70, 0x61, 0x74, 0x68, 0x42, 0x0b, 0x0a, 0x09, 0x72, 0x68, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x6c, 0x68, 0x73, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x70, 0x61, - 0x74, 0x68, 0x22, 0xcb, 0x01, 0x0a, 0x0b, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x44, - 0x65, 0x66, 0x12, 0x2d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x19, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, - 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, - 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, - 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x12, 0x21, 0x0a, 0x0c, 0x6d, - 0x61, 0x73, 0x6b, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0b, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x10, + 0x74, 0x68, 0x22, 0x8b, 0x02, 0x0a, 0x0b, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x44, + 0x65, 0x66, 0x12, 0x3a, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, + 0x72, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x54, 0x79, 0x70, + 0x65, 0x48, 0x00, 0x52, 0x09, 0x70, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x2f, + 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, + 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x49, 0x64, 0x48, 0x00, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, + 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, + 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x01, 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, + 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, + 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, + 0x4d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xbf, 0x05, 0x0a, 0x0f, 0x55, 0x54, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, @@ -1366,8 +1406,9 @@ var file_common_wfspec_proto_goTypes = []interface{}{ (*UTActionTrigger_UTATask)(nil), // 12: littlehorse.UTActionTrigger.UTATask (*UTActionTrigger_UTAReassign)(nil), // 13: littlehorse.UTActionTrigger.UTAReassign (*VariableValue)(nil), // 14: littlehorse.VariableValue - (VariableType)(0), // 15: littlehorse.VariableType - (*TaskDefId)(nil), // 16: littlehorse.TaskDefId + (PrimitiveType)(0), // 15: littlehorse.PrimitiveType + (*SchemaId)(nil), // 16: littlehorse.SchemaId + (*TaskDefId)(nil), // 17: littlehorse.TaskDefId } var file_common_wfspec_proto_depIdxs = []int32{ 14, // 0: littlehorse.VariableAssignment.literal_value:type_name -> littlehorse.VariableValue @@ -1376,28 +1417,29 @@ var file_common_wfspec_proto_depIdxs = []int32{ 3, // 3: littlehorse.VariableMutation.source_variable:type_name -> littlehorse.VariableAssignment 14, // 4: littlehorse.VariableMutation.literal_value:type_name -> littlehorse.VariableValue 10, // 5: littlehorse.VariableMutation.node_output:type_name -> littlehorse.VariableMutation.NodeOutputSource - 15, // 6: littlehorse.VariableDef.type:type_name -> littlehorse.VariableType - 14, // 7: littlehorse.VariableDef.default_value:type_name -> littlehorse.VariableValue - 12, // 8: littlehorse.UTActionTrigger.task:type_name -> littlehorse.UTActionTrigger.UTATask - 11, // 9: littlehorse.UTActionTrigger.cancel:type_name -> littlehorse.UTActionTrigger.UTACancel - 13, // 10: littlehorse.UTActionTrigger.reassign:type_name -> littlehorse.UTActionTrigger.UTAReassign - 3, // 11: littlehorse.UTActionTrigger.delay_seconds:type_name -> littlehorse.VariableAssignment - 2, // 12: littlehorse.UTActionTrigger.hook:type_name -> littlehorse.UTActionTrigger.UTHook - 16, // 13: littlehorse.TaskNode.task_def_id:type_name -> littlehorse.TaskDefId - 3, // 14: littlehorse.TaskNode.dynamic_task:type_name -> littlehorse.VariableAssignment - 7, // 15: littlehorse.TaskNode.exponential_backoff:type_name -> littlehorse.ExponentialBackoffRetryPolicy - 3, // 16: littlehorse.TaskNode.variables:type_name -> littlehorse.VariableAssignment - 3, // 17: littlehorse.VariableAssignment.FormatString.format:type_name -> littlehorse.VariableAssignment - 3, // 18: littlehorse.VariableAssignment.FormatString.args:type_name -> littlehorse.VariableAssignment - 8, // 19: littlehorse.UTActionTrigger.UTATask.task:type_name -> littlehorse.TaskNode - 4, // 20: littlehorse.UTActionTrigger.UTATask.mutations:type_name -> littlehorse.VariableMutation - 3, // 21: littlehorse.UTActionTrigger.UTAReassign.user_id:type_name -> littlehorse.VariableAssignment - 3, // 22: littlehorse.UTActionTrigger.UTAReassign.user_group:type_name -> littlehorse.VariableAssignment - 23, // [23:23] is the sub-list for method output_type - 23, // [23:23] is the sub-list for method input_type - 23, // [23:23] is the sub-list for extension type_name - 23, // [23:23] is the sub-list for extension extendee - 0, // [0:23] is the sub-list for field type_name + 15, // 6: littlehorse.VariableDef.primitive:type_name -> littlehorse.PrimitiveType + 16, // 7: littlehorse.VariableDef.schema:type_name -> littlehorse.SchemaId + 14, // 8: littlehorse.VariableDef.default_value:type_name -> littlehorse.VariableValue + 12, // 9: littlehorse.UTActionTrigger.task:type_name -> littlehorse.UTActionTrigger.UTATask + 11, // 10: littlehorse.UTActionTrigger.cancel:type_name -> littlehorse.UTActionTrigger.UTACancel + 13, // 11: littlehorse.UTActionTrigger.reassign:type_name -> littlehorse.UTActionTrigger.UTAReassign + 3, // 12: littlehorse.UTActionTrigger.delay_seconds:type_name -> littlehorse.VariableAssignment + 2, // 13: littlehorse.UTActionTrigger.hook:type_name -> littlehorse.UTActionTrigger.UTHook + 17, // 14: littlehorse.TaskNode.task_def_id:type_name -> littlehorse.TaskDefId + 3, // 15: littlehorse.TaskNode.dynamic_task:type_name -> littlehorse.VariableAssignment + 7, // 16: littlehorse.TaskNode.exponential_backoff:type_name -> littlehorse.ExponentialBackoffRetryPolicy + 3, // 17: littlehorse.TaskNode.variables:type_name -> littlehorse.VariableAssignment + 3, // 18: littlehorse.VariableAssignment.FormatString.format:type_name -> littlehorse.VariableAssignment + 3, // 19: littlehorse.VariableAssignment.FormatString.args:type_name -> littlehorse.VariableAssignment + 8, // 20: littlehorse.UTActionTrigger.UTATask.task:type_name -> littlehorse.TaskNode + 4, // 21: littlehorse.UTActionTrigger.UTATask.mutations:type_name -> littlehorse.VariableMutation + 3, // 22: littlehorse.UTActionTrigger.UTAReassign.user_id:type_name -> littlehorse.VariableAssignment + 3, // 23: littlehorse.UTActionTrigger.UTAReassign.user_group:type_name -> littlehorse.VariableAssignment + 24, // [24:24] is the sub-list for method output_type + 24, // [24:24] is the sub-list for method input_type + 24, // [24:24] is the sub-list for extension type_name + 24, // [24:24] is the sub-list for extension extendee + 0, // [0:24] is the sub-list for field type_name } func init() { file_common_wfspec_proto_init() } @@ -1552,7 +1594,10 @@ func file_common_wfspec_proto_init() { (*VariableMutation_LiteralValue)(nil), (*VariableMutation_NodeOutput)(nil), } - file_common_wfspec_proto_msgTypes[2].OneofWrappers = []interface{}{} + file_common_wfspec_proto_msgTypes[2].OneofWrappers = []interface{}{ + (*VariableDef_Primitive)(nil), + (*VariableDef_Schema)(nil), + } file_common_wfspec_proto_msgTypes[3].OneofWrappers = []interface{}{ (*UTActionTrigger_Task)(nil), (*UTActionTrigger_Cancel)(nil), diff --git a/sdk-go/lhproto/object_id.pb.go b/sdk-go/lhproto/object_id.pb.go index 9cb61e840..94cdabbaf 100644 --- a/sdk-go/lhproto/object_id.pb.go +++ b/sdk-go/lhproto/object_id.pb.go @@ -307,6 +307,64 @@ func (x *WorkflowEventDefId) GetName() string { return "" } +// ID for a Schema +type SchemaId struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The name of the `Schema`. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The version of the `Schema`. + Version int32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` +} + +func (x *SchemaId) Reset() { + *x = SchemaId{} + if protoimpl.UnsafeEnabled { + mi := &file_object_id_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchemaId) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchemaId) ProtoMessage() {} + +func (x *SchemaId) ProtoReflect() protoreflect.Message { + mi := &file_object_id_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchemaId.ProtoReflect.Descriptor instead. +func (*SchemaId) Descriptor() ([]byte, []int) { + return file_object_id_proto_rawDescGZIP(), []int{5} +} + +func (x *SchemaId) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *SchemaId) GetVersion() int32 { + if x != nil { + return x.Version + } + return 0 +} + // ID for a TaskWorkerGroup. type TaskWorkerGroupId struct { state protoimpl.MessageState @@ -320,7 +378,7 @@ type TaskWorkerGroupId struct { func (x *TaskWorkerGroupId) Reset() { *x = TaskWorkerGroupId{} if protoimpl.UnsafeEnabled { - mi := &file_object_id_proto_msgTypes[5] + mi := &file_object_id_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -333,7 +391,7 @@ func (x *TaskWorkerGroupId) String() string { func (*TaskWorkerGroupId) ProtoMessage() {} func (x *TaskWorkerGroupId) ProtoReflect() protoreflect.Message { - mi := &file_object_id_proto_msgTypes[5] + mi := &file_object_id_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -346,7 +404,7 @@ func (x *TaskWorkerGroupId) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskWorkerGroupId.ProtoReflect.Descriptor instead. func (*TaskWorkerGroupId) Descriptor() ([]byte, []int) { - return file_object_id_proto_rawDescGZIP(), []int{5} + return file_object_id_proto_rawDescGZIP(), []int{6} } func (x *TaskWorkerGroupId) GetTaskDefId() *TaskDefId { @@ -375,7 +433,7 @@ type VariableId struct { func (x *VariableId) Reset() { *x = VariableId{} if protoimpl.UnsafeEnabled { - mi := &file_object_id_proto_msgTypes[6] + mi := &file_object_id_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -388,7 +446,7 @@ func (x *VariableId) String() string { func (*VariableId) ProtoMessage() {} func (x *VariableId) ProtoReflect() protoreflect.Message { - mi := &file_object_id_proto_msgTypes[6] + mi := &file_object_id_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -401,7 +459,7 @@ func (x *VariableId) ProtoReflect() protoreflect.Message { // Deprecated: Use VariableId.ProtoReflect.Descriptor instead. func (*VariableId) Descriptor() ([]byte, []int) { - return file_object_id_proto_rawDescGZIP(), []int{6} + return file_object_id_proto_rawDescGZIP(), []int{7} } func (x *VariableId) GetWfRunId() *WfRunId { @@ -444,7 +502,7 @@ type ExternalEventId struct { func (x *ExternalEventId) Reset() { *x = ExternalEventId{} if protoimpl.UnsafeEnabled { - mi := &file_object_id_proto_msgTypes[7] + mi := &file_object_id_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -457,7 +515,7 @@ func (x *ExternalEventId) String() string { func (*ExternalEventId) ProtoMessage() {} func (x *ExternalEventId) ProtoReflect() protoreflect.Message { - mi := &file_object_id_proto_msgTypes[7] + mi := &file_object_id_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -470,7 +528,7 @@ func (x *ExternalEventId) ProtoReflect() protoreflect.Message { // Deprecated: Use ExternalEventId.ProtoReflect.Descriptor instead. func (*ExternalEventId) Descriptor() ([]byte, []int) { - return file_object_id_proto_rawDescGZIP(), []int{7} + return file_object_id_proto_rawDescGZIP(), []int{8} } func (x *ExternalEventId) GetWfRunId() *WfRunId { @@ -509,7 +567,7 @@ type WfRunId struct { func (x *WfRunId) Reset() { *x = WfRunId{} if protoimpl.UnsafeEnabled { - mi := &file_object_id_proto_msgTypes[8] + mi := &file_object_id_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -522,7 +580,7 @@ func (x *WfRunId) String() string { func (*WfRunId) ProtoMessage() {} func (x *WfRunId) ProtoReflect() protoreflect.Message { - mi := &file_object_id_proto_msgTypes[8] + mi := &file_object_id_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -535,7 +593,7 @@ func (x *WfRunId) ProtoReflect() protoreflect.Message { // Deprecated: Use WfRunId.ProtoReflect.Descriptor instead. func (*WfRunId) Descriptor() ([]byte, []int) { - return file_object_id_proto_rawDescGZIP(), []int{8} + return file_object_id_proto_rawDescGZIP(), []int{9} } func (x *WfRunId) GetId() string { @@ -570,7 +628,7 @@ type NodeRunId struct { func (x *NodeRunId) Reset() { *x = NodeRunId{} if protoimpl.UnsafeEnabled { - mi := &file_object_id_proto_msgTypes[9] + mi := &file_object_id_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -583,7 +641,7 @@ func (x *NodeRunId) String() string { func (*NodeRunId) ProtoMessage() {} func (x *NodeRunId) ProtoReflect() protoreflect.Message { - mi := &file_object_id_proto_msgTypes[9] + mi := &file_object_id_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -596,7 +654,7 @@ func (x *NodeRunId) ProtoReflect() protoreflect.Message { // Deprecated: Use NodeRunId.ProtoReflect.Descriptor instead. func (*NodeRunId) Descriptor() ([]byte, []int) { - return file_object_id_proto_rawDescGZIP(), []int{9} + return file_object_id_proto_rawDescGZIP(), []int{10} } func (x *NodeRunId) GetWfRunId() *WfRunId { @@ -639,7 +697,7 @@ type WorkflowEventId struct { func (x *WorkflowEventId) Reset() { *x = WorkflowEventId{} if protoimpl.UnsafeEnabled { - mi := &file_object_id_proto_msgTypes[10] + mi := &file_object_id_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -652,7 +710,7 @@ func (x *WorkflowEventId) String() string { func (*WorkflowEventId) ProtoMessage() {} func (x *WorkflowEventId) ProtoReflect() protoreflect.Message { - mi := &file_object_id_proto_msgTypes[10] + mi := &file_object_id_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -665,7 +723,7 @@ func (x *WorkflowEventId) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowEventId.ProtoReflect.Descriptor instead. func (*WorkflowEventId) Descriptor() ([]byte, []int) { - return file_object_id_proto_rawDescGZIP(), []int{10} + return file_object_id_proto_rawDescGZIP(), []int{11} } func (x *WorkflowEventId) GetWfRunId() *WfRunId { @@ -705,7 +763,7 @@ type TaskRunId struct { func (x *TaskRunId) Reset() { *x = TaskRunId{} if protoimpl.UnsafeEnabled { - mi := &file_object_id_proto_msgTypes[11] + mi := &file_object_id_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -718,7 +776,7 @@ func (x *TaskRunId) String() string { func (*TaskRunId) ProtoMessage() {} func (x *TaskRunId) ProtoReflect() protoreflect.Message { - mi := &file_object_id_proto_msgTypes[11] + mi := &file_object_id_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -731,7 +789,7 @@ func (x *TaskRunId) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskRunId.ProtoReflect.Descriptor instead. func (*TaskRunId) Descriptor() ([]byte, []int) { - return file_object_id_proto_rawDescGZIP(), []int{11} + return file_object_id_proto_rawDescGZIP(), []int{12} } func (x *TaskRunId) GetWfRunId() *WfRunId { @@ -764,7 +822,7 @@ type UserTaskRunId struct { func (x *UserTaskRunId) Reset() { *x = UserTaskRunId{} if protoimpl.UnsafeEnabled { - mi := &file_object_id_proto_msgTypes[12] + mi := &file_object_id_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -777,7 +835,7 @@ func (x *UserTaskRunId) String() string { func (*UserTaskRunId) ProtoMessage() {} func (x *UserTaskRunId) ProtoReflect() protoreflect.Message { - mi := &file_object_id_proto_msgTypes[12] + mi := &file_object_id_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -790,7 +848,7 @@ func (x *UserTaskRunId) ProtoReflect() protoreflect.Message { // Deprecated: Use UserTaskRunId.ProtoReflect.Descriptor instead. func (*UserTaskRunId) Descriptor() ([]byte, []int) { - return file_object_id_proto_rawDescGZIP(), []int{12} + return file_object_id_proto_rawDescGZIP(), []int{13} } func (x *UserTaskRunId) GetWfRunId() *WfRunId { @@ -824,7 +882,7 @@ type TaskDefMetricsId struct { func (x *TaskDefMetricsId) Reset() { *x = TaskDefMetricsId{} if protoimpl.UnsafeEnabled { - mi := &file_object_id_proto_msgTypes[13] + mi := &file_object_id_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -837,7 +895,7 @@ func (x *TaskDefMetricsId) String() string { func (*TaskDefMetricsId) ProtoMessage() {} func (x *TaskDefMetricsId) ProtoReflect() protoreflect.Message { - mi := &file_object_id_proto_msgTypes[13] + mi := &file_object_id_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -850,7 +908,7 @@ func (x *TaskDefMetricsId) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskDefMetricsId.ProtoReflect.Descriptor instead. func (*TaskDefMetricsId) Descriptor() ([]byte, []int) { - return file_object_id_proto_rawDescGZIP(), []int{13} + return file_object_id_proto_rawDescGZIP(), []int{14} } func (x *TaskDefMetricsId) GetWindowStart() *timestamppb.Timestamp { @@ -891,7 +949,7 @@ type WfSpecMetricsId struct { func (x *WfSpecMetricsId) Reset() { *x = WfSpecMetricsId{} if protoimpl.UnsafeEnabled { - mi := &file_object_id_proto_msgTypes[14] + mi := &file_object_id_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -904,7 +962,7 @@ func (x *WfSpecMetricsId) String() string { func (*WfSpecMetricsId) ProtoMessage() {} func (x *WfSpecMetricsId) ProtoReflect() protoreflect.Message { - mi := &file_object_id_proto_msgTypes[14] + mi := &file_object_id_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -917,7 +975,7 @@ func (x *WfSpecMetricsId) ProtoReflect() protoreflect.Message { // Deprecated: Use WfSpecMetricsId.ProtoReflect.Descriptor instead. func (*WfSpecMetricsId) Descriptor() ([]byte, []int) { - return file_object_id_proto_rawDescGZIP(), []int{14} + return file_object_id_proto_rawDescGZIP(), []int{15} } func (x *WfSpecMetricsId) GetWindowStart() *timestamppb.Timestamp { @@ -955,7 +1013,7 @@ type PrincipalId struct { func (x *PrincipalId) Reset() { *x = PrincipalId{} if protoimpl.UnsafeEnabled { - mi := &file_object_id_proto_msgTypes[15] + mi := &file_object_id_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -968,7 +1026,7 @@ func (x *PrincipalId) String() string { func (*PrincipalId) ProtoMessage() {} func (x *PrincipalId) ProtoReflect() protoreflect.Message { - mi := &file_object_id_proto_msgTypes[15] + mi := &file_object_id_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -981,7 +1039,7 @@ func (x *PrincipalId) ProtoReflect() protoreflect.Message { // Deprecated: Use PrincipalId.ProtoReflect.Descriptor instead. func (*PrincipalId) Descriptor() ([]byte, []int) { - return file_object_id_proto_rawDescGZIP(), []int{15} + return file_object_id_proto_rawDescGZIP(), []int{16} } func (x *PrincipalId) GetId() string { @@ -1004,7 +1062,7 @@ type TenantId struct { func (x *TenantId) Reset() { *x = TenantId{} if protoimpl.UnsafeEnabled { - mi := &file_object_id_proto_msgTypes[16] + mi := &file_object_id_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1017,7 +1075,7 @@ func (x *TenantId) String() string { func (*TenantId) ProtoMessage() {} func (x *TenantId) ProtoReflect() protoreflect.Message { - mi := &file_object_id_proto_msgTypes[16] + mi := &file_object_id_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1030,7 +1088,7 @@ func (x *TenantId) ProtoReflect() protoreflect.Message { // Deprecated: Use TenantId.ProtoReflect.Descriptor instead. func (*TenantId) Descriptor() ([]byte, []int) { - return file_object_id_proto_rawDescGZIP(), []int{16} + return file_object_id_proto_rawDescGZIP(), []int{17} } func (x *TenantId) GetId() string { @@ -1052,7 +1110,7 @@ type ScheduledWfRunId struct { func (x *ScheduledWfRunId) Reset() { *x = ScheduledWfRunId{} if protoimpl.UnsafeEnabled { - mi := &file_object_id_proto_msgTypes[17] + mi := &file_object_id_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1065,7 +1123,7 @@ func (x *ScheduledWfRunId) String() string { func (*ScheduledWfRunId) ProtoMessage() {} func (x *ScheduledWfRunId) ProtoReflect() protoreflect.Message { - mi := &file_object_id_proto_msgTypes[17] + mi := &file_object_id_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1078,7 +1136,7 @@ func (x *ScheduledWfRunId) ProtoReflect() protoreflect.Message { // Deprecated: Use ScheduledWfRunId.ProtoReflect.Descriptor instead. func (*ScheduledWfRunId) Descriptor() ([]byte, []int) { - return file_object_id_proto_rawDescGZIP(), []int{17} + return file_object_id_proto_rawDescGZIP(), []int{18} } func (x *ScheduledWfRunId) GetId() string { @@ -1113,107 +1171,110 @@ var file_object_id_proto_rawDesc = []byte{ 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x28, 0x0a, 0x12, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x4b, 0x0a, 0x11, 0x54, 0x61, 0x73, 0x6b, - 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x36, 0x0a, - 0x0b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x64, 0x65, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, - 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x44, 0x65, 0x66, 0x49, 0x64, 0x52, 0x09, 0x74, 0x61, 0x73, 0x6b, - 0x44, 0x65, 0x66, 0x49, 0x64, 0x22, 0x7e, 0x0a, 0x0a, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, - 0x65, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x09, 0x77, 0x66, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, - 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x57, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x52, 0x07, 0x77, 0x66, - 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, - 0x72, 0x75, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x0f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x52, 0x75, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, - 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xab, 0x01, 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, - 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x09, 0x77, 0x66, 0x5f, - 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, - 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x57, 0x66, 0x52, 0x75, 0x6e, - 0x49, 0x64, 0x52, 0x07, 0x77, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x52, 0x0a, 0x15, 0x65, - 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x65, - 0x66, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, - 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, - 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x49, 0x64, 0x52, 0x12, 0x65, 0x78, 0x74, - 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x49, 0x64, 0x12, - 0x12, 0x0a, 0x04, 0x67, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x67, - 0x75, 0x69, 0x64, 0x22, 0x72, 0x0a, 0x07, 0x57, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x42, - 0x0a, 0x10, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x77, 0x66, 0x5f, 0x72, 0x75, 0x6e, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, - 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x57, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x48, 0x00, - 0x52, 0x0d, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x57, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x88, - 0x01, 0x01, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x77, 0x66, - 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x22, 0x85, 0x01, 0x0a, 0x09, 0x4e, 0x6f, 0x64, 0x65, - 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x09, 0x77, 0x66, 0x5f, 0x72, 0x75, 0x6e, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, - 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x57, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x52, 0x07, - 0x77, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x68, 0x72, 0x65, 0x61, - 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x0f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x52, 0x75, 0x6e, 0x4e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, - 0xaf, 0x01, 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x38, 0x0a, 0x08, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x22, 0x4b, 0x0a, 0x11, 0x54, 0x61, 0x73, 0x6b, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x0b, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x64, 0x65, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, + 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x44, + 0x65, 0x66, 0x49, 0x64, 0x52, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x44, 0x65, 0x66, 0x49, 0x64, 0x22, + 0x7e, 0x0a, 0x0a, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x30, 0x0a, + 0x09, 0x77, 0x66, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x57, + 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x52, 0x07, 0x77, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, + 0x2a, 0x0a, 0x11, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x6e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x74, 0x68, 0x72, 0x65, + 0x61, 0x64, 0x52, 0x75, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, + 0xab, 0x01, 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x09, 0x77, 0x66, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x57, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x52, 0x07, 0x77, 0x66, - 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x52, 0x0a, 0x15, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x52, 0x0a, 0x15, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, - 0x73, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x44, 0x65, 0x66, 0x49, 0x64, 0x52, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, - 0x72, 0x22, 0x5a, 0x0a, 0x09, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x30, - 0x0a, 0x09, 0x77, 0x66, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, - 0x57, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x52, 0x07, 0x77, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, - 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x67, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x47, 0x75, 0x69, 0x64, 0x22, 0x67, 0x0a, - 0x0d, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x30, - 0x0a, 0x09, 0x77, 0x66, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, - 0x57, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x52, 0x07, 0x77, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, - 0x12, 0x24, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x67, 0x75, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x54, 0x61, - 0x73, 0x6b, 0x47, 0x75, 0x69, 0x64, 0x22, 0xcc, 0x01, 0x0a, 0x10, 0x54, 0x61, 0x73, 0x6b, 0x44, - 0x65, 0x66, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x0c, 0x77, - 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x77, - 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x41, 0x0a, 0x0b, 0x77, 0x69, - 0x6e, 0x64, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x20, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x4d, 0x65, - 0x74, 0x72, 0x69, 0x63, 0x73, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x4c, 0x65, 0x6e, 0x67, 0x74, - 0x68, 0x52, 0x0a, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x36, 0x0a, - 0x0b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x64, 0x65, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, - 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x44, 0x65, 0x66, 0x49, 0x64, 0x52, 0x09, 0x74, 0x61, 0x73, 0x6b, - 0x44, 0x65, 0x66, 0x49, 0x64, 0x22, 0xc8, 0x01, 0x0a, 0x0f, 0x57, 0x66, 0x53, 0x70, 0x65, 0x63, - 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x0c, 0x77, 0x69, 0x6e, - 0x64, 0x6f, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x77, 0x69, 0x6e, - 0x64, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x41, 0x0a, 0x0b, 0x77, 0x69, 0x6e, 0x64, - 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, - 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x72, - 0x69, 0x63, 0x73, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x52, - 0x0a, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x33, 0x0a, 0x0a, 0x77, - 0x66, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x15, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x57, 0x66, - 0x53, 0x70, 0x65, 0x63, 0x49, 0x64, 0x52, 0x08, 0x77, 0x66, 0x53, 0x70, 0x65, 0x63, 0x49, 0x64, - 0x22, 0x1d, 0x0a, 0x0b, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x49, 0x64, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, - 0x1a, 0x0a, 0x08, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x22, 0x0a, 0x10, 0x53, - 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x57, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x42, - 0x49, 0x0a, 0x1f, 0x69, 0x6f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, - 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x09, 0x2e, 0x3b, 0x6c, 0x68, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0xaa, - 0x02, 0x18, 0x4c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x73, 0x65, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x44, 0x65, 0x66, 0x49, 0x64, 0x52, 0x12, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x67, 0x75, 0x69, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x67, 0x75, 0x69, 0x64, 0x22, 0x72, 0x0a, + 0x07, 0x57, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x42, 0x0a, 0x10, 0x70, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x5f, 0x77, 0x66, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, + 0x2e, 0x57, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x57, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x13, 0x0a, 0x11, + 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x77, 0x66, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, + 0x64, 0x22, 0x85, 0x01, 0x0a, 0x09, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, + 0x30, 0x0a, 0x09, 0x77, 0x66, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, + 0x2e, 0x57, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x52, 0x07, 0x77, 0x66, 0x52, 0x75, 0x6e, 0x49, + 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x5f, + 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x74, 0x68, + 0x72, 0x65, 0x61, 0x64, 0x52, 0x75, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1a, 0x0a, + 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x01, 0x0a, 0x0f, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x30, 0x0a, + 0x09, 0x77, 0x66, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x57, + 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x52, 0x07, 0x77, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, + 0x52, 0x0a, 0x15, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x5f, 0x64, 0x65, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, + 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x49, 0x64, 0x52, + 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, + 0x66, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x5a, 0x0a, 0x09, 0x54, + 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x09, 0x77, 0x66, 0x5f, 0x72, + 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, + 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x57, 0x66, 0x52, 0x75, 0x6e, 0x49, + 0x64, 0x52, 0x07, 0x77, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x67, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, + 0x61, 0x73, 0x6b, 0x47, 0x75, 0x69, 0x64, 0x22, 0x67, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x54, + 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x09, 0x77, 0x66, 0x5f, 0x72, + 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, + 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x57, 0x66, 0x52, 0x75, 0x6e, 0x49, + 0x64, 0x52, 0x07, 0x77, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x67, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x47, 0x75, 0x69, 0x64, + 0x22, 0xcc, 0x01, 0x0a, 0x10, 0x54, 0x61, 0x73, 0x6b, 0x44, 0x65, 0x66, 0x4d, 0x65, 0x74, 0x72, + 0x69, 0x63, 0x73, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x0c, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x5f, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x53, + 0x74, 0x61, 0x72, 0x74, 0x12, 0x41, 0x0a, 0x0b, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x6c, 0x69, 0x74, 0x74, + 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x57, + 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x52, 0x0a, 0x77, 0x69, 0x6e, + 0x64, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x64, 0x65, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, + 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x44, + 0x65, 0x66, 0x49, 0x64, 0x52, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x44, 0x65, 0x66, 0x49, 0x64, 0x22, + 0xc8, 0x01, 0x0a, 0x0f, 0x57, 0x66, 0x53, 0x70, 0x65, 0x63, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, + 0x73, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x0c, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x5f, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x53, 0x74, 0x61, + 0x72, 0x74, 0x12, 0x41, 0x0a, 0x0b, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, + 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x57, 0x69, 0x6e, + 0x64, 0x6f, 0x77, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x52, 0x0a, 0x77, 0x69, 0x6e, 0x64, 0x6f, + 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x33, 0x0a, 0x0a, 0x77, 0x66, 0x5f, 0x73, 0x70, 0x65, 0x63, + 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6c, 0x69, 0x74, 0x74, + 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x57, 0x66, 0x53, 0x70, 0x65, 0x63, 0x49, 0x64, + 0x52, 0x08, 0x77, 0x66, 0x53, 0x70, 0x65, 0x63, 0x49, 0x64, 0x22, 0x1d, 0x0a, 0x0b, 0x50, 0x72, + 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x1a, 0x0a, 0x08, 0x54, 0x65, 0x6e, + 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x22, 0x0a, 0x10, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x64, 0x57, 0x66, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x42, 0x49, 0x0a, 0x1f, 0x69, 0x6f, 0x2e, + 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x09, + 0x2e, 0x3b, 0x6c, 0x68, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0xaa, 0x02, 0x18, 0x4c, 0x69, 0x74, 0x74, + 0x6c, 0x65, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1228,45 +1289,46 @@ func file_object_id_proto_rawDescGZIP() []byte { return file_object_id_proto_rawDescData } -var file_object_id_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_object_id_proto_msgTypes = make([]protoimpl.MessageInfo, 19) var file_object_id_proto_goTypes = []interface{}{ (*WfSpecId)(nil), // 0: littlehorse.WfSpecId (*TaskDefId)(nil), // 1: littlehorse.TaskDefId (*ExternalEventDefId)(nil), // 2: littlehorse.ExternalEventDefId (*UserTaskDefId)(nil), // 3: littlehorse.UserTaskDefId (*WorkflowEventDefId)(nil), // 4: littlehorse.WorkflowEventDefId - (*TaskWorkerGroupId)(nil), // 5: littlehorse.TaskWorkerGroupId - (*VariableId)(nil), // 6: littlehorse.VariableId - (*ExternalEventId)(nil), // 7: littlehorse.ExternalEventId - (*WfRunId)(nil), // 8: littlehorse.WfRunId - (*NodeRunId)(nil), // 9: littlehorse.NodeRunId - (*WorkflowEventId)(nil), // 10: littlehorse.WorkflowEventId - (*TaskRunId)(nil), // 11: littlehorse.TaskRunId - (*UserTaskRunId)(nil), // 12: littlehorse.UserTaskRunId - (*TaskDefMetricsId)(nil), // 13: littlehorse.TaskDefMetricsId - (*WfSpecMetricsId)(nil), // 14: littlehorse.WfSpecMetricsId - (*PrincipalId)(nil), // 15: littlehorse.PrincipalId - (*TenantId)(nil), // 16: littlehorse.TenantId - (*ScheduledWfRunId)(nil), // 17: littlehorse.ScheduledWfRunId - (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp - (MetricsWindowLength)(0), // 19: littlehorse.MetricsWindowLength + (*SchemaId)(nil), // 5: littlehorse.SchemaId + (*TaskWorkerGroupId)(nil), // 6: littlehorse.TaskWorkerGroupId + (*VariableId)(nil), // 7: littlehorse.VariableId + (*ExternalEventId)(nil), // 8: littlehorse.ExternalEventId + (*WfRunId)(nil), // 9: littlehorse.WfRunId + (*NodeRunId)(nil), // 10: littlehorse.NodeRunId + (*WorkflowEventId)(nil), // 11: littlehorse.WorkflowEventId + (*TaskRunId)(nil), // 12: littlehorse.TaskRunId + (*UserTaskRunId)(nil), // 13: littlehorse.UserTaskRunId + (*TaskDefMetricsId)(nil), // 14: littlehorse.TaskDefMetricsId + (*WfSpecMetricsId)(nil), // 15: littlehorse.WfSpecMetricsId + (*PrincipalId)(nil), // 16: littlehorse.PrincipalId + (*TenantId)(nil), // 17: littlehorse.TenantId + (*ScheduledWfRunId)(nil), // 18: littlehorse.ScheduledWfRunId + (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp + (MetricsWindowLength)(0), // 20: littlehorse.MetricsWindowLength } var file_object_id_proto_depIdxs = []int32{ 1, // 0: littlehorse.TaskWorkerGroupId.task_def_id:type_name -> littlehorse.TaskDefId - 8, // 1: littlehorse.VariableId.wf_run_id:type_name -> littlehorse.WfRunId - 8, // 2: littlehorse.ExternalEventId.wf_run_id:type_name -> littlehorse.WfRunId + 9, // 1: littlehorse.VariableId.wf_run_id:type_name -> littlehorse.WfRunId + 9, // 2: littlehorse.ExternalEventId.wf_run_id:type_name -> littlehorse.WfRunId 2, // 3: littlehorse.ExternalEventId.external_event_def_id:type_name -> littlehorse.ExternalEventDefId - 8, // 4: littlehorse.WfRunId.parent_wf_run_id:type_name -> littlehorse.WfRunId - 8, // 5: littlehorse.NodeRunId.wf_run_id:type_name -> littlehorse.WfRunId - 8, // 6: littlehorse.WorkflowEventId.wf_run_id:type_name -> littlehorse.WfRunId + 9, // 4: littlehorse.WfRunId.parent_wf_run_id:type_name -> littlehorse.WfRunId + 9, // 5: littlehorse.NodeRunId.wf_run_id:type_name -> littlehorse.WfRunId + 9, // 6: littlehorse.WorkflowEventId.wf_run_id:type_name -> littlehorse.WfRunId 4, // 7: littlehorse.WorkflowEventId.workflow_event_def_id:type_name -> littlehorse.WorkflowEventDefId - 8, // 8: littlehorse.TaskRunId.wf_run_id:type_name -> littlehorse.WfRunId - 8, // 9: littlehorse.UserTaskRunId.wf_run_id:type_name -> littlehorse.WfRunId - 18, // 10: littlehorse.TaskDefMetricsId.window_start:type_name -> google.protobuf.Timestamp - 19, // 11: littlehorse.TaskDefMetricsId.window_type:type_name -> littlehorse.MetricsWindowLength + 9, // 8: littlehorse.TaskRunId.wf_run_id:type_name -> littlehorse.WfRunId + 9, // 9: littlehorse.UserTaskRunId.wf_run_id:type_name -> littlehorse.WfRunId + 19, // 10: littlehorse.TaskDefMetricsId.window_start:type_name -> google.protobuf.Timestamp + 20, // 11: littlehorse.TaskDefMetricsId.window_type:type_name -> littlehorse.MetricsWindowLength 1, // 12: littlehorse.TaskDefMetricsId.task_def_id:type_name -> littlehorse.TaskDefId - 18, // 13: littlehorse.WfSpecMetricsId.window_start:type_name -> google.protobuf.Timestamp - 19, // 14: littlehorse.WfSpecMetricsId.window_type:type_name -> littlehorse.MetricsWindowLength + 19, // 13: littlehorse.WfSpecMetricsId.window_start:type_name -> google.protobuf.Timestamp + 20, // 14: littlehorse.WfSpecMetricsId.window_type:type_name -> littlehorse.MetricsWindowLength 0, // 15: littlehorse.WfSpecMetricsId.wf_spec_id:type_name -> littlehorse.WfSpecId 16, // [16:16] is the sub-list for method output_type 16, // [16:16] is the sub-list for method input_type @@ -1343,7 +1405,7 @@ func file_object_id_proto_init() { } } file_object_id_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskWorkerGroupId); i { + switch v := v.(*SchemaId); i { case 0: return &v.state case 1: @@ -1355,7 +1417,7 @@ func file_object_id_proto_init() { } } file_object_id_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VariableId); i { + switch v := v.(*TaskWorkerGroupId); i { case 0: return &v.state case 1: @@ -1367,7 +1429,7 @@ func file_object_id_proto_init() { } } file_object_id_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExternalEventId); i { + switch v := v.(*VariableId); i { case 0: return &v.state case 1: @@ -1379,7 +1441,7 @@ func file_object_id_proto_init() { } } file_object_id_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WfRunId); i { + switch v := v.(*ExternalEventId); i { case 0: return &v.state case 1: @@ -1391,7 +1453,7 @@ func file_object_id_proto_init() { } } file_object_id_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeRunId); i { + switch v := v.(*WfRunId); i { case 0: return &v.state case 1: @@ -1403,7 +1465,7 @@ func file_object_id_proto_init() { } } file_object_id_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowEventId); i { + switch v := v.(*NodeRunId); i { case 0: return &v.state case 1: @@ -1415,7 +1477,7 @@ func file_object_id_proto_init() { } } file_object_id_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskRunId); i { + switch v := v.(*WorkflowEventId); i { case 0: return &v.state case 1: @@ -1427,7 +1489,7 @@ func file_object_id_proto_init() { } } file_object_id_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserTaskRunId); i { + switch v := v.(*TaskRunId); i { case 0: return &v.state case 1: @@ -1439,7 +1501,7 @@ func file_object_id_proto_init() { } } file_object_id_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskDefMetricsId); i { + switch v := v.(*UserTaskRunId); i { case 0: return &v.state case 1: @@ -1451,7 +1513,7 @@ func file_object_id_proto_init() { } } file_object_id_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WfSpecMetricsId); i { + switch v := v.(*TaskDefMetricsId); i { case 0: return &v.state case 1: @@ -1463,7 +1525,7 @@ func file_object_id_proto_init() { } } file_object_id_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrincipalId); i { + switch v := v.(*WfSpecMetricsId); i { case 0: return &v.state case 1: @@ -1475,7 +1537,7 @@ func file_object_id_proto_init() { } } file_object_id_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TenantId); i { + switch v := v.(*PrincipalId); i { case 0: return &v.state case 1: @@ -1487,6 +1549,18 @@ func file_object_id_proto_init() { } } file_object_id_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TenantId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_object_id_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ScheduledWfRunId); i { case 0: return &v.state @@ -1499,14 +1573,14 @@ func file_object_id_proto_init() { } } } - file_object_id_proto_msgTypes[8].OneofWrappers = []interface{}{} + file_object_id_proto_msgTypes[9].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_object_id_proto_rawDesc, NumEnums: 0, - NumMessages: 18, + NumMessages: 19, NumExtensions: 0, NumServices: 0, }, diff --git a/sdk-go/lhproto/service.pb.go b/sdk-go/lhproto/service.pb.go index fa9868e41..dbfd09848 100644 --- a/sdk-go/lhproto/service.pb.go +++ b/sdk-go/lhproto/service.pb.go @@ -377,8 +377,11 @@ type PutWorkflowEventDefRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Type VariableType `protobuf:"varint,2,opt,name=type,proto3,enum=littlehorse.VariableType" json:"type,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are assignable to Type: + // *PutWorkflowEventDefRequest_PrimitiveType + // *PutWorkflowEventDefRequest_Schema + Type isPutWorkflowEventDefRequest_Type `protobuf_oneof:"type"` } func (x *PutWorkflowEventDefRequest) Reset() { @@ -420,13 +423,43 @@ func (x *PutWorkflowEventDefRequest) GetName() string { return "" } -func (x *PutWorkflowEventDefRequest) GetType() VariableType { - if x != nil { - return x.Type +func (m *PutWorkflowEventDefRequest) GetType() isPutWorkflowEventDefRequest_Type { + if m != nil { + return m.Type } - return VariableType_JSON_OBJ + return nil } +func (x *PutWorkflowEventDefRequest) GetPrimitiveType() PrimitiveType { + if x, ok := x.GetType().(*PutWorkflowEventDefRequest_PrimitiveType); ok { + return x.PrimitiveType + } + return PrimitiveType_JSON_OBJ +} + +func (x *PutWorkflowEventDefRequest) GetSchema() *SchemaId { + if x, ok := x.GetType().(*PutWorkflowEventDefRequest_Schema); ok { + return x.Schema + } + return nil +} + +type isPutWorkflowEventDefRequest_Type interface { + isPutWorkflowEventDefRequest_Type() +} + +type PutWorkflowEventDefRequest_PrimitiveType struct { + PrimitiveType PrimitiveType `protobuf:"varint,2,opt,name=primitive_type,json=primitiveType,proto3,enum=littlehorse.PrimitiveType,oneof"` +} + +type PutWorkflowEventDefRequest_Schema struct { + Schema *SchemaId `protobuf:"bytes,3,opt,name=schema,proto3,oneof"` +} + +func (*PutWorkflowEventDefRequest_PrimitiveType) isPutWorkflowEventDefRequest_Type() {} + +func (*PutWorkflowEventDefRequest_Schema) isPutWorkflowEventDefRequest_Type() {} + // Creates a UserTaskDef. type PutUserTaskDefRequest struct { state protoimpl.MessageState @@ -5730,12 +5763,17 @@ var file_service_proto_rawDesc = []byte{ 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x48, 0x00, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x88, 0x01, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x22, 0x5f, 0x0a, 0x1a, 0x50, 0x75, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x19, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, - 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, + 0x61, 0x22, 0xae, 0x01, 0x0a, 0x1a, 0x50, 0x75, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x0e, 0x70, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, + 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x6c, + 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x69, + 0x74, 0x69, 0x76, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x72, 0x69, 0x6d, + 0x69, 0x74, 0x69, 0x76, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6c, 0x69, 0x74, 0x74, + 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x49, 0x64, + 0x48, 0x00, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x15, 0x50, 0x75, 0x74, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x44, 0x65, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, @@ -7077,60 +7115,61 @@ var file_service_proto_goTypes = []interface{}{ (*WfSpec_ParentWfSpecReference)(nil), // 85: littlehorse.WfSpec.ParentWfSpecReference (*VariableDef)(nil), // 86: littlehorse.VariableDef (*TaskDefOutputSchema)(nil), // 87: littlehorse.TaskDefOutputSchema - (VariableType)(0), // 88: littlehorse.VariableType - (*UserTaskField)(nil), // 89: littlehorse.UserTaskField - (*ExternalEventRetentionPolicy)(nil), // 90: littlehorse.ExternalEventRetentionPolicy - (*WfRunId)(nil), // 91: littlehorse.WfRunId - (*ExternalEventDefId)(nil), // 92: littlehorse.ExternalEventDefId - (*VariableValue)(nil), // 93: littlehorse.VariableValue - (*ExternalEventId)(nil), // 94: littlehorse.ExternalEventId - (*ScheduledWfRunId)(nil), // 95: littlehorse.ScheduledWfRunId - (*TaskDefId)(nil), // 96: littlehorse.TaskDefId - (*UserTaskDefId)(nil), // 97: littlehorse.UserTaskDefId - (*WfSpecId)(nil), // 98: littlehorse.WfSpecId - (*WorkflowEventDefId)(nil), // 99: littlehorse.WorkflowEventDefId - (*WorkflowEventId)(nil), // 100: littlehorse.WorkflowEventId - (LHStatus)(0), // 101: littlehorse.LHStatus - (*timestamppb.Timestamp)(nil), // 102: google.protobuf.Timestamp - (TaskStatus)(0), // 103: littlehorse.TaskStatus - (*TaskRunId)(nil), // 104: littlehorse.TaskRunId - (*NodeRunId)(nil), // 105: littlehorse.NodeRunId - (UserTaskRunStatus)(0), // 106: littlehorse.UserTaskRunStatus - (*UserTaskRunId)(nil), // 107: littlehorse.UserTaskRunId - (*VariableId)(nil), // 108: littlehorse.VariableId - (*TenantId)(nil), // 109: littlehorse.TenantId - (*PrincipalId)(nil), // 110: littlehorse.PrincipalId - (*NodeRun)(nil), // 111: littlehorse.NodeRun - (*Variable)(nil), // 112: littlehorse.Variable - (*ExternalEvent)(nil), // 113: littlehorse.ExternalEvent - (*VarNameAndVal)(nil), // 114: littlehorse.VarNameAndVal - (*TaskRunSource)(nil), // 115: littlehorse.TaskRunSource - (*LHTaskError)(nil), // 116: littlehorse.LHTaskError - (*LHTaskException)(nil), // 117: littlehorse.LHTaskException - (MetricsWindowLength)(0), // 118: littlehorse.MetricsWindowLength - (*UserTaskRun)(nil), // 119: littlehorse.UserTaskRun - (*TaskWorkerGroupId)(nil), // 120: littlehorse.TaskWorkerGroupId - (*TaskRun)(nil), // 121: littlehorse.TaskRun - (*WfSpecVersionMigration)(nil), // 122: littlehorse.WfSpecVersionMigration - (*ThreadSpec)(nil), // 123: littlehorse.ThreadSpec - (*AssignUserTaskRunRequest)(nil), // 124: littlehorse.AssignUserTaskRunRequest - (*CompleteUserTaskRunRequest)(nil), // 125: littlehorse.CompleteUserTaskRunRequest - (*CancelUserTaskRunRequest)(nil), // 126: littlehorse.CancelUserTaskRunRequest - (*SaveUserTaskRunProgressRequest)(nil), // 127: littlehorse.SaveUserTaskRunProgressRequest - (*DeletePrincipalRequest)(nil), // 128: littlehorse.DeletePrincipalRequest - (*PutTenantRequest)(nil), // 129: littlehorse.PutTenantRequest - (*PutPrincipalRequest)(nil), // 130: littlehorse.PutPrincipalRequest - (*emptypb.Empty)(nil), // 131: google.protobuf.Empty - (*TaskDef)(nil), // 132: littlehorse.TaskDef - (*ExternalEventDef)(nil), // 133: littlehorse.ExternalEventDef - (*WorkflowEventDef)(nil), // 134: littlehorse.WorkflowEventDef - (*WfSpec)(nil), // 135: littlehorse.WfSpec - (*UserTaskDef)(nil), // 136: littlehorse.UserTaskDef - (*WfRun)(nil), // 137: littlehorse.WfRun - (*ScheduledWfRun)(nil), // 138: littlehorse.ScheduledWfRun - (*WorkflowEvent)(nil), // 139: littlehorse.WorkflowEvent - (*Tenant)(nil), // 140: littlehorse.Tenant - (*Principal)(nil), // 141: littlehorse.Principal + (PrimitiveType)(0), // 88: littlehorse.PrimitiveType + (*SchemaId)(nil), // 89: littlehorse.SchemaId + (*UserTaskField)(nil), // 90: littlehorse.UserTaskField + (*ExternalEventRetentionPolicy)(nil), // 91: littlehorse.ExternalEventRetentionPolicy + (*WfRunId)(nil), // 92: littlehorse.WfRunId + (*ExternalEventDefId)(nil), // 93: littlehorse.ExternalEventDefId + (*VariableValue)(nil), // 94: littlehorse.VariableValue + (*ExternalEventId)(nil), // 95: littlehorse.ExternalEventId + (*ScheduledWfRunId)(nil), // 96: littlehorse.ScheduledWfRunId + (*TaskDefId)(nil), // 97: littlehorse.TaskDefId + (*UserTaskDefId)(nil), // 98: littlehorse.UserTaskDefId + (*WfSpecId)(nil), // 99: littlehorse.WfSpecId + (*WorkflowEventDefId)(nil), // 100: littlehorse.WorkflowEventDefId + (*WorkflowEventId)(nil), // 101: littlehorse.WorkflowEventId + (LHStatus)(0), // 102: littlehorse.LHStatus + (*timestamppb.Timestamp)(nil), // 103: google.protobuf.Timestamp + (TaskStatus)(0), // 104: littlehorse.TaskStatus + (*TaskRunId)(nil), // 105: littlehorse.TaskRunId + (*NodeRunId)(nil), // 106: littlehorse.NodeRunId + (UserTaskRunStatus)(0), // 107: littlehorse.UserTaskRunStatus + (*UserTaskRunId)(nil), // 108: littlehorse.UserTaskRunId + (*VariableId)(nil), // 109: littlehorse.VariableId + (*TenantId)(nil), // 110: littlehorse.TenantId + (*PrincipalId)(nil), // 111: littlehorse.PrincipalId + (*NodeRun)(nil), // 112: littlehorse.NodeRun + (*Variable)(nil), // 113: littlehorse.Variable + (*ExternalEvent)(nil), // 114: littlehorse.ExternalEvent + (*VarNameAndVal)(nil), // 115: littlehorse.VarNameAndVal + (*TaskRunSource)(nil), // 116: littlehorse.TaskRunSource + (*LHTaskError)(nil), // 117: littlehorse.LHTaskError + (*LHTaskException)(nil), // 118: littlehorse.LHTaskException + (MetricsWindowLength)(0), // 119: littlehorse.MetricsWindowLength + (*UserTaskRun)(nil), // 120: littlehorse.UserTaskRun + (*TaskWorkerGroupId)(nil), // 121: littlehorse.TaskWorkerGroupId + (*TaskRun)(nil), // 122: littlehorse.TaskRun + (*WfSpecVersionMigration)(nil), // 123: littlehorse.WfSpecVersionMigration + (*ThreadSpec)(nil), // 124: littlehorse.ThreadSpec + (*AssignUserTaskRunRequest)(nil), // 125: littlehorse.AssignUserTaskRunRequest + (*CompleteUserTaskRunRequest)(nil), // 126: littlehorse.CompleteUserTaskRunRequest + (*CancelUserTaskRunRequest)(nil), // 127: littlehorse.CancelUserTaskRunRequest + (*SaveUserTaskRunProgressRequest)(nil), // 128: littlehorse.SaveUserTaskRunProgressRequest + (*DeletePrincipalRequest)(nil), // 129: littlehorse.DeletePrincipalRequest + (*PutTenantRequest)(nil), // 130: littlehorse.PutTenantRequest + (*PutPrincipalRequest)(nil), // 131: littlehorse.PutPrincipalRequest + (*emptypb.Empty)(nil), // 132: google.protobuf.Empty + (*TaskDef)(nil), // 133: littlehorse.TaskDef + (*ExternalEventDef)(nil), // 134: littlehorse.ExternalEventDef + (*WorkflowEventDef)(nil), // 135: littlehorse.WorkflowEventDef + (*WfSpec)(nil), // 136: littlehorse.WfSpec + (*UserTaskDef)(nil), // 137: littlehorse.UserTaskDef + (*WfRun)(nil), // 138: littlehorse.WfRun + (*ScheduledWfRun)(nil), // 139: littlehorse.ScheduledWfRun + (*WorkflowEvent)(nil), // 140: littlehorse.WorkflowEvent + (*Tenant)(nil), // 141: littlehorse.Tenant + (*Principal)(nil), // 142: littlehorse.Principal } var file_service_proto_depIdxs = []int32{ 80, // 0: littlehorse.PutWfSpecRequest.thread_specs:type_name -> littlehorse.PutWfSpecRequest.ThreadSpecsEntry @@ -7139,261 +7178,262 @@ var file_service_proto_depIdxs = []int32{ 0, // 3: littlehorse.PutWfSpecRequest.allowed_updates:type_name -> littlehorse.AllowedUpdateType 86, // 4: littlehorse.PutTaskDefRequest.input_vars:type_name -> littlehorse.VariableDef 87, // 5: littlehorse.PutTaskDefRequest.output_schema:type_name -> littlehorse.TaskDefOutputSchema - 88, // 6: littlehorse.PutWorkflowEventDefRequest.type:type_name -> littlehorse.VariableType - 89, // 7: littlehorse.PutUserTaskDefRequest.fields:type_name -> littlehorse.UserTaskField - 90, // 8: littlehorse.PutExternalEventDefRequest.retention_policy:type_name -> littlehorse.ExternalEventRetentionPolicy - 91, // 9: littlehorse.PutExternalEventRequest.wf_run_id:type_name -> littlehorse.WfRunId - 92, // 10: littlehorse.PutExternalEventRequest.external_event_def_id:type_name -> littlehorse.ExternalEventDefId - 93, // 11: littlehorse.PutExternalEventRequest.content:type_name -> littlehorse.VariableValue - 94, // 12: littlehorse.DeleteExternalEventRequest.id:type_name -> littlehorse.ExternalEventId - 95, // 13: littlehorse.DeleteScheduledWfRunRequest.id:type_name -> littlehorse.ScheduledWfRunId - 91, // 14: littlehorse.DeleteWfRunRequest.id:type_name -> littlehorse.WfRunId - 96, // 15: littlehorse.DeleteTaskDefRequest.id:type_name -> littlehorse.TaskDefId - 97, // 16: littlehorse.DeleteUserTaskDefRequest.id:type_name -> littlehorse.UserTaskDefId - 98, // 17: littlehorse.DeleteWfSpecRequest.id:type_name -> littlehorse.WfSpecId - 92, // 18: littlehorse.DeleteExternalEventDefRequest.id:type_name -> littlehorse.ExternalEventDefId - 81, // 19: littlehorse.RunWfRequest.variables:type_name -> littlehorse.RunWfRequest.VariablesEntry - 91, // 20: littlehorse.RunWfRequest.parent_wf_run_id:type_name -> littlehorse.WfRunId - 82, // 21: littlehorse.ScheduleWfRequest.variables:type_name -> littlehorse.ScheduleWfRequest.VariablesEntry - 91, // 22: littlehorse.ScheduleWfRequest.parent_wf_run_id:type_name -> littlehorse.WfRunId - 93, // 23: littlehorse.VariableMatch.value:type_name -> littlehorse.VariableValue - 91, // 24: littlehorse.AwaitWorkflowEventRequest.wf_run_id:type_name -> littlehorse.WfRunId - 99, // 25: littlehorse.AwaitWorkflowEventRequest.event_def_ids:type_name -> littlehorse.WorkflowEventDefId - 100, // 26: littlehorse.AwaitWorkflowEventRequest.workflow_events_to_ignore:type_name -> littlehorse.WorkflowEventId - 101, // 27: littlehorse.SearchWfRunRequest.status:type_name -> littlehorse.LHStatus - 102, // 28: littlehorse.SearchWfRunRequest.earliest_start:type_name -> google.protobuf.Timestamp - 102, // 29: littlehorse.SearchWfRunRequest.latest_start:type_name -> google.protobuf.Timestamp - 18, // 30: littlehorse.SearchWfRunRequest.variable_filters:type_name -> littlehorse.VariableMatch - 91, // 31: littlehorse.WfRunIdList.results:type_name -> littlehorse.WfRunId - 103, // 32: littlehorse.SearchTaskRunRequest.status:type_name -> littlehorse.TaskStatus - 102, // 33: littlehorse.SearchTaskRunRequest.earliest_start:type_name -> google.protobuf.Timestamp - 102, // 34: littlehorse.SearchTaskRunRequest.latest_start:type_name -> google.protobuf.Timestamp - 104, // 35: littlehorse.TaskRunIdList.results:type_name -> littlehorse.TaskRunId - 102, // 36: littlehorse.SearchNodeRunRequest.earliest_start:type_name -> google.protobuf.Timestamp - 102, // 37: littlehorse.SearchNodeRunRequest.latest_start:type_name -> google.protobuf.Timestamp - 1, // 38: littlehorse.SearchNodeRunRequest.node_type:type_name -> littlehorse.SearchNodeRunRequest.NodeType - 101, // 39: littlehorse.SearchNodeRunRequest.status:type_name -> littlehorse.LHStatus - 105, // 40: littlehorse.NodeRunIdList.results:type_name -> littlehorse.NodeRunId - 106, // 41: littlehorse.SearchUserTaskRunRequest.status:type_name -> littlehorse.UserTaskRunStatus - 102, // 42: littlehorse.SearchUserTaskRunRequest.earliest_start:type_name -> google.protobuf.Timestamp - 102, // 43: littlehorse.SearchUserTaskRunRequest.latest_start:type_name -> google.protobuf.Timestamp - 107, // 44: littlehorse.UserTaskRunIdList.results:type_name -> littlehorse.UserTaskRunId - 93, // 45: littlehorse.SearchVariableRequest.value:type_name -> littlehorse.VariableValue - 108, // 46: littlehorse.VariableIdList.results:type_name -> littlehorse.VariableId - 96, // 47: littlehorse.TaskDefIdList.results:type_name -> littlehorse.TaskDefId - 97, // 48: littlehorse.UserTaskDefIdList.results:type_name -> littlehorse.UserTaskDefId - 98, // 49: littlehorse.WfSpecIdList.results:type_name -> littlehorse.WfSpecId - 92, // 50: littlehorse.ExternalEventDefIdList.results:type_name -> littlehorse.ExternalEventDefId - 109, // 51: littlehorse.TenantIdList.results:type_name -> littlehorse.TenantId - 102, // 52: littlehorse.SearchPrincipalRequest.earliest_start:type_name -> google.protobuf.Timestamp - 102, // 53: littlehorse.SearchPrincipalRequest.latest_start:type_name -> google.protobuf.Timestamp - 110, // 54: littlehorse.PrincipalIdList.results:type_name -> littlehorse.PrincipalId - 102, // 55: littlehorse.SearchExternalEventRequest.earliest_start:type_name -> google.protobuf.Timestamp - 102, // 56: littlehorse.SearchExternalEventRequest.latest_start:type_name -> google.protobuf.Timestamp - 92, // 57: littlehorse.SearchExternalEventRequest.external_event_def_id:type_name -> littlehorse.ExternalEventDefId - 94, // 58: littlehorse.ExternalEventIdList.results:type_name -> littlehorse.ExternalEventId - 91, // 59: littlehorse.ListNodeRunsRequest.wf_run_id:type_name -> littlehorse.WfRunId - 111, // 60: littlehorse.NodeRunList.results:type_name -> littlehorse.NodeRun - 91, // 61: littlehorse.ListVariablesRequest.wf_run_id:type_name -> littlehorse.WfRunId - 112, // 62: littlehorse.VariableList.results:type_name -> littlehorse.Variable - 91, // 63: littlehorse.ListExternalEventsRequest.wf_run_id:type_name -> littlehorse.WfRunId - 113, // 64: littlehorse.ExternalEventList.results:type_name -> littlehorse.ExternalEvent - 96, // 65: littlehorse.RegisterTaskWorkerRequest.task_def_id:type_name -> littlehorse.TaskDefId - 96, // 66: littlehorse.TaskWorkerHeartBeatRequest.task_def_id:type_name -> littlehorse.TaskDefId - 53, // 67: littlehorse.RegisterTaskWorkerResponse.your_hosts:type_name -> littlehorse.LHHostInfo - 96, // 68: littlehorse.PollTaskRequest.task_def_id:type_name -> littlehorse.TaskDefId - 104, // 69: littlehorse.ScheduledTask.task_run_id:type_name -> littlehorse.TaskRunId - 96, // 70: littlehorse.ScheduledTask.task_def_id:type_name -> littlehorse.TaskDefId - 114, // 71: littlehorse.ScheduledTask.variables:type_name -> littlehorse.VarNameAndVal - 102, // 72: littlehorse.ScheduledTask.created_at:type_name -> google.protobuf.Timestamp - 115, // 73: littlehorse.ScheduledTask.source:type_name -> littlehorse.TaskRunSource - 55, // 74: littlehorse.PollTaskResponse.result:type_name -> littlehorse.ScheduledTask - 104, // 75: littlehorse.ReportTaskRun.task_run_id:type_name -> littlehorse.TaskRunId - 102, // 76: littlehorse.ReportTaskRun.time:type_name -> google.protobuf.Timestamp - 103, // 77: littlehorse.ReportTaskRun.status:type_name -> littlehorse.TaskStatus - 93, // 78: littlehorse.ReportTaskRun.log_output:type_name -> littlehorse.VariableValue - 93, // 79: littlehorse.ReportTaskRun.output:type_name -> littlehorse.VariableValue - 116, // 80: littlehorse.ReportTaskRun.error:type_name -> littlehorse.LHTaskError - 117, // 81: littlehorse.ReportTaskRun.exception:type_name -> littlehorse.LHTaskException - 91, // 82: littlehorse.StopWfRunRequest.wf_run_id:type_name -> littlehorse.WfRunId - 91, // 83: littlehorse.ResumeWfRunRequest.wf_run_id:type_name -> littlehorse.WfRunId - 91, // 84: littlehorse.RescueThreadRunRequest.wf_run_id:type_name -> littlehorse.WfRunId - 102, // 85: littlehorse.TaskDefMetricsQueryRequest.window_start:type_name -> google.protobuf.Timestamp - 118, // 86: littlehorse.TaskDefMetricsQueryRequest.window_type:type_name -> littlehorse.MetricsWindowLength - 96, // 87: littlehorse.ListTaskMetricsRequest.task_def_id:type_name -> littlehorse.TaskDefId - 102, // 88: littlehorse.ListTaskMetricsRequest.last_window_start:type_name -> google.protobuf.Timestamp - 118, // 89: littlehorse.ListTaskMetricsRequest.window_length:type_name -> littlehorse.MetricsWindowLength - 67, // 90: littlehorse.ListTaskMetricsResponse.results:type_name -> littlehorse.TaskDefMetrics - 98, // 91: littlehorse.WfSpecMetricsQueryRequest.wf_spec_id:type_name -> littlehorse.WfSpecId - 102, // 92: littlehorse.WfSpecMetricsQueryRequest.window_start:type_name -> google.protobuf.Timestamp - 118, // 93: littlehorse.WfSpecMetricsQueryRequest.window_length:type_name -> littlehorse.MetricsWindowLength - 98, // 94: littlehorse.ListWfMetricsRequest.wf_spec_id:type_name -> littlehorse.WfSpecId - 102, // 95: littlehorse.ListWfMetricsRequest.last_window_start:type_name -> google.protobuf.Timestamp - 118, // 96: littlehorse.ListWfMetricsRequest.window_length:type_name -> littlehorse.MetricsWindowLength - 68, // 97: littlehorse.ListWfMetricsResponse.results:type_name -> littlehorse.WfSpecMetrics - 96, // 98: littlehorse.TaskDefMetrics.task_def_id:type_name -> littlehorse.TaskDefId - 102, // 99: littlehorse.TaskDefMetrics.window_start:type_name -> google.protobuf.Timestamp - 118, // 100: littlehorse.TaskDefMetrics.type:type_name -> littlehorse.MetricsWindowLength - 98, // 101: littlehorse.WfSpecMetrics.wf_spec_id:type_name -> littlehorse.WfSpecId - 102, // 102: littlehorse.WfSpecMetrics.window_start:type_name -> google.protobuf.Timestamp - 118, // 103: littlehorse.WfSpecMetrics.type:type_name -> littlehorse.MetricsWindowLength - 91, // 104: littlehorse.ListUserTaskRunRequest.wf_run_id:type_name -> littlehorse.WfRunId - 119, // 105: littlehorse.UserTaskRunList.results:type_name -> littlehorse.UserTaskRun - 95, // 106: littlehorse.ScheduledWfRunIdList.results:type_name -> littlehorse.ScheduledWfRunId - 102, // 107: littlehorse.TaskWorkerMetadata.latest_heartbeat:type_name -> google.protobuf.Timestamp - 53, // 108: littlehorse.TaskWorkerMetadata.hosts:type_name -> littlehorse.LHHostInfo - 120, // 109: littlehorse.TaskWorkerGroup.id:type_name -> littlehorse.TaskWorkerGroupId - 102, // 110: littlehorse.TaskWorkerGroup.created_at:type_name -> google.protobuf.Timestamp - 83, // 111: littlehorse.TaskWorkerGroup.task_workers:type_name -> littlehorse.TaskWorkerGroup.TaskWorkersEntry - 91, // 112: littlehorse.ListTaskRunsRequest.wf_run_id:type_name -> littlehorse.WfRunId - 121, // 113: littlehorse.TaskRunList.results:type_name -> littlehorse.TaskRun - 98, // 114: littlehorse.MigrateWfSpecRequest.old_wf_spec:type_name -> littlehorse.WfSpecId - 122, // 115: littlehorse.MigrateWfSpecRequest.migration:type_name -> littlehorse.WfSpecVersionMigration - 123, // 116: littlehorse.PutWfSpecRequest.ThreadSpecsEntry.value:type_name -> littlehorse.ThreadSpec - 93, // 117: littlehorse.RunWfRequest.VariablesEntry.value:type_name -> littlehorse.VariableValue - 93, // 118: littlehorse.ScheduleWfRequest.VariablesEntry.value:type_name -> littlehorse.VariableValue - 73, // 119: littlehorse.TaskWorkerGroup.TaskWorkersEntry.value:type_name -> littlehorse.TaskWorkerMetadata - 4, // 120: littlehorse.LittleHorse.PutTaskDef:input_type -> littlehorse.PutTaskDefRequest - 96, // 121: littlehorse.LittleHorse.GetTaskDef:input_type -> littlehorse.TaskDefId - 96, // 122: littlehorse.LittleHorse.GetTaskWorkerGroup:input_type -> littlehorse.TaskDefId - 7, // 123: littlehorse.LittleHorse.PutExternalEventDef:input_type -> littlehorse.PutExternalEventDefRequest - 92, // 124: littlehorse.LittleHorse.GetExternalEventDef:input_type -> littlehorse.ExternalEventDefId - 5, // 125: littlehorse.LittleHorse.PutWorkflowEventDef:input_type -> littlehorse.PutWorkflowEventDefRequest - 3, // 126: littlehorse.LittleHorse.PutWfSpec:input_type -> littlehorse.PutWfSpecRequest - 98, // 127: littlehorse.LittleHorse.GetWfSpec:input_type -> littlehorse.WfSpecId - 78, // 128: littlehorse.LittleHorse.GetLatestWfSpec:input_type -> littlehorse.GetLatestWfSpecRequest - 77, // 129: littlehorse.LittleHorse.MigrateWfSpec:input_type -> littlehorse.MigrateWfSpecRequest - 6, // 130: littlehorse.LittleHorse.PutUserTaskDef:input_type -> littlehorse.PutUserTaskDefRequest - 97, // 131: littlehorse.LittleHorse.GetUserTaskDef:input_type -> littlehorse.UserTaskDefId - 2, // 132: littlehorse.LittleHorse.GetLatestUserTaskDef:input_type -> littlehorse.GetLatestUserTaskDefRequest - 16, // 133: littlehorse.LittleHorse.RunWf:input_type -> littlehorse.RunWfRequest - 17, // 134: littlehorse.LittleHorse.ScheduleWf:input_type -> littlehorse.ScheduleWfRequest - 72, // 135: littlehorse.LittleHorse.SearchScheduledWfRun:input_type -> littlehorse.SearchScheduledWfRunRequest - 95, // 136: littlehorse.LittleHorse.GetScheduledWfRun:input_type -> littlehorse.ScheduledWfRunId - 91, // 137: littlehorse.LittleHorse.GetWfRun:input_type -> littlehorse.WfRunId - 107, // 138: littlehorse.LittleHorse.GetUserTaskRun:input_type -> littlehorse.UserTaskRunId - 124, // 139: littlehorse.LittleHorse.AssignUserTaskRun:input_type -> littlehorse.AssignUserTaskRunRequest - 125, // 140: littlehorse.LittleHorse.CompleteUserTaskRun:input_type -> littlehorse.CompleteUserTaskRunRequest - 126, // 141: littlehorse.LittleHorse.CancelUserTaskRun:input_type -> littlehorse.CancelUserTaskRunRequest - 127, // 142: littlehorse.LittleHorse.SaveUserTaskRunProgress:input_type -> littlehorse.SaveUserTaskRunProgressRequest - 69, // 143: littlehorse.LittleHorse.ListUserTaskRuns:input_type -> littlehorse.ListUserTaskRunRequest - 105, // 144: littlehorse.LittleHorse.GetNodeRun:input_type -> littlehorse.NodeRunId - 44, // 145: littlehorse.LittleHorse.ListNodeRuns:input_type -> littlehorse.ListNodeRunsRequest - 104, // 146: littlehorse.LittleHorse.GetTaskRun:input_type -> littlehorse.TaskRunId - 75, // 147: littlehorse.LittleHorse.ListTaskRuns:input_type -> littlehorse.ListTaskRunsRequest - 108, // 148: littlehorse.LittleHorse.GetVariable:input_type -> littlehorse.VariableId - 46, // 149: littlehorse.LittleHorse.ListVariables:input_type -> littlehorse.ListVariablesRequest - 8, // 150: littlehorse.LittleHorse.PutExternalEvent:input_type -> littlehorse.PutExternalEventRequest - 94, // 151: littlehorse.LittleHorse.GetExternalEvent:input_type -> littlehorse.ExternalEventId - 19, // 152: littlehorse.LittleHorse.AwaitWorkflowEvent:input_type -> littlehorse.AwaitWorkflowEventRequest - 48, // 153: littlehorse.LittleHorse.ListExternalEvents:input_type -> littlehorse.ListExternalEventsRequest - 20, // 154: littlehorse.LittleHorse.SearchWfRun:input_type -> littlehorse.SearchWfRunRequest - 24, // 155: littlehorse.LittleHorse.SearchNodeRun:input_type -> littlehorse.SearchNodeRunRequest - 22, // 156: littlehorse.LittleHorse.SearchTaskRun:input_type -> littlehorse.SearchTaskRunRequest - 26, // 157: littlehorse.LittleHorse.SearchUserTaskRun:input_type -> littlehorse.SearchUserTaskRunRequest - 28, // 158: littlehorse.LittleHorse.SearchVariable:input_type -> littlehorse.SearchVariableRequest - 42, // 159: littlehorse.LittleHorse.SearchExternalEvent:input_type -> littlehorse.SearchExternalEventRequest - 30, // 160: littlehorse.LittleHorse.SearchTaskDef:input_type -> littlehorse.SearchTaskDefRequest - 32, // 161: littlehorse.LittleHorse.SearchUserTaskDef:input_type -> littlehorse.SearchUserTaskDefRequest - 34, // 162: littlehorse.LittleHorse.SearchWfSpec:input_type -> littlehorse.SearchWfSpecRequest - 36, // 163: littlehorse.LittleHorse.SearchExternalEventDef:input_type -> littlehorse.SearchExternalEventDefRequest - 38, // 164: littlehorse.LittleHorse.SearchTenant:input_type -> littlehorse.SearchTenantRequest - 40, // 165: littlehorse.LittleHorse.SearchPrincipal:input_type -> littlehorse.SearchPrincipalRequest - 50, // 166: littlehorse.LittleHorse.RegisterTaskWorker:input_type -> littlehorse.RegisterTaskWorkerRequest - 54, // 167: littlehorse.LittleHorse.PollTask:input_type -> littlehorse.PollTaskRequest - 57, // 168: littlehorse.LittleHorse.ReportTask:input_type -> littlehorse.ReportTaskRun - 58, // 169: littlehorse.LittleHorse.StopWfRun:input_type -> littlehorse.StopWfRunRequest - 59, // 170: littlehorse.LittleHorse.ResumeWfRun:input_type -> littlehorse.ResumeWfRunRequest - 60, // 171: littlehorse.LittleHorse.RescueThreadRun:input_type -> littlehorse.RescueThreadRunRequest - 11, // 172: littlehorse.LittleHorse.DeleteWfRun:input_type -> littlehorse.DeleteWfRunRequest - 12, // 173: littlehorse.LittleHorse.DeleteTaskDef:input_type -> littlehorse.DeleteTaskDefRequest - 14, // 174: littlehorse.LittleHorse.DeleteWfSpec:input_type -> littlehorse.DeleteWfSpecRequest - 13, // 175: littlehorse.LittleHorse.DeleteUserTaskDef:input_type -> littlehorse.DeleteUserTaskDefRequest - 15, // 176: littlehorse.LittleHorse.DeleteExternalEventDef:input_type -> littlehorse.DeleteExternalEventDefRequest - 128, // 177: littlehorse.LittleHorse.DeletePrincipal:input_type -> littlehorse.DeletePrincipalRequest - 10, // 178: littlehorse.LittleHorse.DeleteScheduledWfRun:input_type -> littlehorse.DeleteScheduledWfRunRequest - 61, // 179: littlehorse.LittleHorse.GetTaskDefMetricsWindow:input_type -> littlehorse.TaskDefMetricsQueryRequest - 64, // 180: littlehorse.LittleHorse.GetWfSpecMetricsWindow:input_type -> littlehorse.WfSpecMetricsQueryRequest - 62, // 181: littlehorse.LittleHorse.ListTaskDefMetrics:input_type -> littlehorse.ListTaskMetricsRequest - 65, // 182: littlehorse.LittleHorse.ListWfSpecMetrics:input_type -> littlehorse.ListWfMetricsRequest - 129, // 183: littlehorse.LittleHorse.PutTenant:input_type -> littlehorse.PutTenantRequest - 109, // 184: littlehorse.LittleHorse.GetTenant:input_type -> littlehorse.TenantId - 130, // 185: littlehorse.LittleHorse.PutPrincipal:input_type -> littlehorse.PutPrincipalRequest - 131, // 186: littlehorse.LittleHorse.Whoami:input_type -> google.protobuf.Empty - 131, // 187: littlehorse.LittleHorse.GetServerVersion:input_type -> google.protobuf.Empty - 132, // 188: littlehorse.LittleHorse.PutTaskDef:output_type -> littlehorse.TaskDef - 132, // 189: littlehorse.LittleHorse.GetTaskDef:output_type -> littlehorse.TaskDef - 74, // 190: littlehorse.LittleHorse.GetTaskWorkerGroup:output_type -> littlehorse.TaskWorkerGroup - 133, // 191: littlehorse.LittleHorse.PutExternalEventDef:output_type -> littlehorse.ExternalEventDef - 133, // 192: littlehorse.LittleHorse.GetExternalEventDef:output_type -> littlehorse.ExternalEventDef - 134, // 193: littlehorse.LittleHorse.PutWorkflowEventDef:output_type -> littlehorse.WorkflowEventDef - 135, // 194: littlehorse.LittleHorse.PutWfSpec:output_type -> littlehorse.WfSpec - 135, // 195: littlehorse.LittleHorse.GetWfSpec:output_type -> littlehorse.WfSpec - 135, // 196: littlehorse.LittleHorse.GetLatestWfSpec:output_type -> littlehorse.WfSpec - 135, // 197: littlehorse.LittleHorse.MigrateWfSpec:output_type -> littlehorse.WfSpec - 136, // 198: littlehorse.LittleHorse.PutUserTaskDef:output_type -> littlehorse.UserTaskDef - 136, // 199: littlehorse.LittleHorse.GetUserTaskDef:output_type -> littlehorse.UserTaskDef - 136, // 200: littlehorse.LittleHorse.GetLatestUserTaskDef:output_type -> littlehorse.UserTaskDef - 137, // 201: littlehorse.LittleHorse.RunWf:output_type -> littlehorse.WfRun - 138, // 202: littlehorse.LittleHorse.ScheduleWf:output_type -> littlehorse.ScheduledWfRun - 71, // 203: littlehorse.LittleHorse.SearchScheduledWfRun:output_type -> littlehorse.ScheduledWfRunIdList - 138, // 204: littlehorse.LittleHorse.GetScheduledWfRun:output_type -> littlehorse.ScheduledWfRun - 137, // 205: littlehorse.LittleHorse.GetWfRun:output_type -> littlehorse.WfRun - 119, // 206: littlehorse.LittleHorse.GetUserTaskRun:output_type -> littlehorse.UserTaskRun - 131, // 207: littlehorse.LittleHorse.AssignUserTaskRun:output_type -> google.protobuf.Empty - 131, // 208: littlehorse.LittleHorse.CompleteUserTaskRun:output_type -> google.protobuf.Empty - 131, // 209: littlehorse.LittleHorse.CancelUserTaskRun:output_type -> google.protobuf.Empty - 119, // 210: littlehorse.LittleHorse.SaveUserTaskRunProgress:output_type -> littlehorse.UserTaskRun - 70, // 211: littlehorse.LittleHorse.ListUserTaskRuns:output_type -> littlehorse.UserTaskRunList - 111, // 212: littlehorse.LittleHorse.GetNodeRun:output_type -> littlehorse.NodeRun - 45, // 213: littlehorse.LittleHorse.ListNodeRuns:output_type -> littlehorse.NodeRunList - 121, // 214: littlehorse.LittleHorse.GetTaskRun:output_type -> littlehorse.TaskRun - 76, // 215: littlehorse.LittleHorse.ListTaskRuns:output_type -> littlehorse.TaskRunList - 112, // 216: littlehorse.LittleHorse.GetVariable:output_type -> littlehorse.Variable - 47, // 217: littlehorse.LittleHorse.ListVariables:output_type -> littlehorse.VariableList - 113, // 218: littlehorse.LittleHorse.PutExternalEvent:output_type -> littlehorse.ExternalEvent - 113, // 219: littlehorse.LittleHorse.GetExternalEvent:output_type -> littlehorse.ExternalEvent - 139, // 220: littlehorse.LittleHorse.AwaitWorkflowEvent:output_type -> littlehorse.WorkflowEvent - 49, // 221: littlehorse.LittleHorse.ListExternalEvents:output_type -> littlehorse.ExternalEventList - 21, // 222: littlehorse.LittleHorse.SearchWfRun:output_type -> littlehorse.WfRunIdList - 25, // 223: littlehorse.LittleHorse.SearchNodeRun:output_type -> littlehorse.NodeRunIdList - 23, // 224: littlehorse.LittleHorse.SearchTaskRun:output_type -> littlehorse.TaskRunIdList - 27, // 225: littlehorse.LittleHorse.SearchUserTaskRun:output_type -> littlehorse.UserTaskRunIdList - 29, // 226: littlehorse.LittleHorse.SearchVariable:output_type -> littlehorse.VariableIdList - 43, // 227: littlehorse.LittleHorse.SearchExternalEvent:output_type -> littlehorse.ExternalEventIdList - 31, // 228: littlehorse.LittleHorse.SearchTaskDef:output_type -> littlehorse.TaskDefIdList - 33, // 229: littlehorse.LittleHorse.SearchUserTaskDef:output_type -> littlehorse.UserTaskDefIdList - 35, // 230: littlehorse.LittleHorse.SearchWfSpec:output_type -> littlehorse.WfSpecIdList - 37, // 231: littlehorse.LittleHorse.SearchExternalEventDef:output_type -> littlehorse.ExternalEventDefIdList - 39, // 232: littlehorse.LittleHorse.SearchTenant:output_type -> littlehorse.TenantIdList - 41, // 233: littlehorse.LittleHorse.SearchPrincipal:output_type -> littlehorse.PrincipalIdList - 52, // 234: littlehorse.LittleHorse.RegisterTaskWorker:output_type -> littlehorse.RegisterTaskWorkerResponse - 56, // 235: littlehorse.LittleHorse.PollTask:output_type -> littlehorse.PollTaskResponse - 131, // 236: littlehorse.LittleHorse.ReportTask:output_type -> google.protobuf.Empty - 131, // 237: littlehorse.LittleHorse.StopWfRun:output_type -> google.protobuf.Empty - 131, // 238: littlehorse.LittleHorse.ResumeWfRun:output_type -> google.protobuf.Empty - 137, // 239: littlehorse.LittleHorse.RescueThreadRun:output_type -> littlehorse.WfRun - 131, // 240: littlehorse.LittleHorse.DeleteWfRun:output_type -> google.protobuf.Empty - 131, // 241: littlehorse.LittleHorse.DeleteTaskDef:output_type -> google.protobuf.Empty - 131, // 242: littlehorse.LittleHorse.DeleteWfSpec:output_type -> google.protobuf.Empty - 131, // 243: littlehorse.LittleHorse.DeleteUserTaskDef:output_type -> google.protobuf.Empty - 131, // 244: littlehorse.LittleHorse.DeleteExternalEventDef:output_type -> google.protobuf.Empty - 131, // 245: littlehorse.LittleHorse.DeletePrincipal:output_type -> google.protobuf.Empty - 131, // 246: littlehorse.LittleHorse.DeleteScheduledWfRun:output_type -> google.protobuf.Empty - 67, // 247: littlehorse.LittleHorse.GetTaskDefMetricsWindow:output_type -> littlehorse.TaskDefMetrics - 68, // 248: littlehorse.LittleHorse.GetWfSpecMetricsWindow:output_type -> littlehorse.WfSpecMetrics - 63, // 249: littlehorse.LittleHorse.ListTaskDefMetrics:output_type -> littlehorse.ListTaskMetricsResponse - 66, // 250: littlehorse.LittleHorse.ListWfSpecMetrics:output_type -> littlehorse.ListWfMetricsResponse - 140, // 251: littlehorse.LittleHorse.PutTenant:output_type -> littlehorse.Tenant - 140, // 252: littlehorse.LittleHorse.GetTenant:output_type -> littlehorse.Tenant - 141, // 253: littlehorse.LittleHorse.PutPrincipal:output_type -> littlehorse.Principal - 141, // 254: littlehorse.LittleHorse.Whoami:output_type -> littlehorse.Principal - 79, // 255: littlehorse.LittleHorse.GetServerVersion:output_type -> littlehorse.ServerVersionResponse - 188, // [188:256] is the sub-list for method output_type - 120, // [120:188] is the sub-list for method input_type - 120, // [120:120] is the sub-list for extension type_name - 120, // [120:120] is the sub-list for extension extendee - 0, // [0:120] is the sub-list for field type_name + 88, // 6: littlehorse.PutWorkflowEventDefRequest.primitive_type:type_name -> littlehorse.PrimitiveType + 89, // 7: littlehorse.PutWorkflowEventDefRequest.schema:type_name -> littlehorse.SchemaId + 90, // 8: littlehorse.PutUserTaskDefRequest.fields:type_name -> littlehorse.UserTaskField + 91, // 9: littlehorse.PutExternalEventDefRequest.retention_policy:type_name -> littlehorse.ExternalEventRetentionPolicy + 92, // 10: littlehorse.PutExternalEventRequest.wf_run_id:type_name -> littlehorse.WfRunId + 93, // 11: littlehorse.PutExternalEventRequest.external_event_def_id:type_name -> littlehorse.ExternalEventDefId + 94, // 12: littlehorse.PutExternalEventRequest.content:type_name -> littlehorse.VariableValue + 95, // 13: littlehorse.DeleteExternalEventRequest.id:type_name -> littlehorse.ExternalEventId + 96, // 14: littlehorse.DeleteScheduledWfRunRequest.id:type_name -> littlehorse.ScheduledWfRunId + 92, // 15: littlehorse.DeleteWfRunRequest.id:type_name -> littlehorse.WfRunId + 97, // 16: littlehorse.DeleteTaskDefRequest.id:type_name -> littlehorse.TaskDefId + 98, // 17: littlehorse.DeleteUserTaskDefRequest.id:type_name -> littlehorse.UserTaskDefId + 99, // 18: littlehorse.DeleteWfSpecRequest.id:type_name -> littlehorse.WfSpecId + 93, // 19: littlehorse.DeleteExternalEventDefRequest.id:type_name -> littlehorse.ExternalEventDefId + 81, // 20: littlehorse.RunWfRequest.variables:type_name -> littlehorse.RunWfRequest.VariablesEntry + 92, // 21: littlehorse.RunWfRequest.parent_wf_run_id:type_name -> littlehorse.WfRunId + 82, // 22: littlehorse.ScheduleWfRequest.variables:type_name -> littlehorse.ScheduleWfRequest.VariablesEntry + 92, // 23: littlehorse.ScheduleWfRequest.parent_wf_run_id:type_name -> littlehorse.WfRunId + 94, // 24: littlehorse.VariableMatch.value:type_name -> littlehorse.VariableValue + 92, // 25: littlehorse.AwaitWorkflowEventRequest.wf_run_id:type_name -> littlehorse.WfRunId + 100, // 26: littlehorse.AwaitWorkflowEventRequest.event_def_ids:type_name -> littlehorse.WorkflowEventDefId + 101, // 27: littlehorse.AwaitWorkflowEventRequest.workflow_events_to_ignore:type_name -> littlehorse.WorkflowEventId + 102, // 28: littlehorse.SearchWfRunRequest.status:type_name -> littlehorse.LHStatus + 103, // 29: littlehorse.SearchWfRunRequest.earliest_start:type_name -> google.protobuf.Timestamp + 103, // 30: littlehorse.SearchWfRunRequest.latest_start:type_name -> google.protobuf.Timestamp + 18, // 31: littlehorse.SearchWfRunRequest.variable_filters:type_name -> littlehorse.VariableMatch + 92, // 32: littlehorse.WfRunIdList.results:type_name -> littlehorse.WfRunId + 104, // 33: littlehorse.SearchTaskRunRequest.status:type_name -> littlehorse.TaskStatus + 103, // 34: littlehorse.SearchTaskRunRequest.earliest_start:type_name -> google.protobuf.Timestamp + 103, // 35: littlehorse.SearchTaskRunRequest.latest_start:type_name -> google.protobuf.Timestamp + 105, // 36: littlehorse.TaskRunIdList.results:type_name -> littlehorse.TaskRunId + 103, // 37: littlehorse.SearchNodeRunRequest.earliest_start:type_name -> google.protobuf.Timestamp + 103, // 38: littlehorse.SearchNodeRunRequest.latest_start:type_name -> google.protobuf.Timestamp + 1, // 39: littlehorse.SearchNodeRunRequest.node_type:type_name -> littlehorse.SearchNodeRunRequest.NodeType + 102, // 40: littlehorse.SearchNodeRunRequest.status:type_name -> littlehorse.LHStatus + 106, // 41: littlehorse.NodeRunIdList.results:type_name -> littlehorse.NodeRunId + 107, // 42: littlehorse.SearchUserTaskRunRequest.status:type_name -> littlehorse.UserTaskRunStatus + 103, // 43: littlehorse.SearchUserTaskRunRequest.earliest_start:type_name -> google.protobuf.Timestamp + 103, // 44: littlehorse.SearchUserTaskRunRequest.latest_start:type_name -> google.protobuf.Timestamp + 108, // 45: littlehorse.UserTaskRunIdList.results:type_name -> littlehorse.UserTaskRunId + 94, // 46: littlehorse.SearchVariableRequest.value:type_name -> littlehorse.VariableValue + 109, // 47: littlehorse.VariableIdList.results:type_name -> littlehorse.VariableId + 97, // 48: littlehorse.TaskDefIdList.results:type_name -> littlehorse.TaskDefId + 98, // 49: littlehorse.UserTaskDefIdList.results:type_name -> littlehorse.UserTaskDefId + 99, // 50: littlehorse.WfSpecIdList.results:type_name -> littlehorse.WfSpecId + 93, // 51: littlehorse.ExternalEventDefIdList.results:type_name -> littlehorse.ExternalEventDefId + 110, // 52: littlehorse.TenantIdList.results:type_name -> littlehorse.TenantId + 103, // 53: littlehorse.SearchPrincipalRequest.earliest_start:type_name -> google.protobuf.Timestamp + 103, // 54: littlehorse.SearchPrincipalRequest.latest_start:type_name -> google.protobuf.Timestamp + 111, // 55: littlehorse.PrincipalIdList.results:type_name -> littlehorse.PrincipalId + 103, // 56: littlehorse.SearchExternalEventRequest.earliest_start:type_name -> google.protobuf.Timestamp + 103, // 57: littlehorse.SearchExternalEventRequest.latest_start:type_name -> google.protobuf.Timestamp + 93, // 58: littlehorse.SearchExternalEventRequest.external_event_def_id:type_name -> littlehorse.ExternalEventDefId + 95, // 59: littlehorse.ExternalEventIdList.results:type_name -> littlehorse.ExternalEventId + 92, // 60: littlehorse.ListNodeRunsRequest.wf_run_id:type_name -> littlehorse.WfRunId + 112, // 61: littlehorse.NodeRunList.results:type_name -> littlehorse.NodeRun + 92, // 62: littlehorse.ListVariablesRequest.wf_run_id:type_name -> littlehorse.WfRunId + 113, // 63: littlehorse.VariableList.results:type_name -> littlehorse.Variable + 92, // 64: littlehorse.ListExternalEventsRequest.wf_run_id:type_name -> littlehorse.WfRunId + 114, // 65: littlehorse.ExternalEventList.results:type_name -> littlehorse.ExternalEvent + 97, // 66: littlehorse.RegisterTaskWorkerRequest.task_def_id:type_name -> littlehorse.TaskDefId + 97, // 67: littlehorse.TaskWorkerHeartBeatRequest.task_def_id:type_name -> littlehorse.TaskDefId + 53, // 68: littlehorse.RegisterTaskWorkerResponse.your_hosts:type_name -> littlehorse.LHHostInfo + 97, // 69: littlehorse.PollTaskRequest.task_def_id:type_name -> littlehorse.TaskDefId + 105, // 70: littlehorse.ScheduledTask.task_run_id:type_name -> littlehorse.TaskRunId + 97, // 71: littlehorse.ScheduledTask.task_def_id:type_name -> littlehorse.TaskDefId + 115, // 72: littlehorse.ScheduledTask.variables:type_name -> littlehorse.VarNameAndVal + 103, // 73: littlehorse.ScheduledTask.created_at:type_name -> google.protobuf.Timestamp + 116, // 74: littlehorse.ScheduledTask.source:type_name -> littlehorse.TaskRunSource + 55, // 75: littlehorse.PollTaskResponse.result:type_name -> littlehorse.ScheduledTask + 105, // 76: littlehorse.ReportTaskRun.task_run_id:type_name -> littlehorse.TaskRunId + 103, // 77: littlehorse.ReportTaskRun.time:type_name -> google.protobuf.Timestamp + 104, // 78: littlehorse.ReportTaskRun.status:type_name -> littlehorse.TaskStatus + 94, // 79: littlehorse.ReportTaskRun.log_output:type_name -> littlehorse.VariableValue + 94, // 80: littlehorse.ReportTaskRun.output:type_name -> littlehorse.VariableValue + 117, // 81: littlehorse.ReportTaskRun.error:type_name -> littlehorse.LHTaskError + 118, // 82: littlehorse.ReportTaskRun.exception:type_name -> littlehorse.LHTaskException + 92, // 83: littlehorse.StopWfRunRequest.wf_run_id:type_name -> littlehorse.WfRunId + 92, // 84: littlehorse.ResumeWfRunRequest.wf_run_id:type_name -> littlehorse.WfRunId + 92, // 85: littlehorse.RescueThreadRunRequest.wf_run_id:type_name -> littlehorse.WfRunId + 103, // 86: littlehorse.TaskDefMetricsQueryRequest.window_start:type_name -> google.protobuf.Timestamp + 119, // 87: littlehorse.TaskDefMetricsQueryRequest.window_type:type_name -> littlehorse.MetricsWindowLength + 97, // 88: littlehorse.ListTaskMetricsRequest.task_def_id:type_name -> littlehorse.TaskDefId + 103, // 89: littlehorse.ListTaskMetricsRequest.last_window_start:type_name -> google.protobuf.Timestamp + 119, // 90: littlehorse.ListTaskMetricsRequest.window_length:type_name -> littlehorse.MetricsWindowLength + 67, // 91: littlehorse.ListTaskMetricsResponse.results:type_name -> littlehorse.TaskDefMetrics + 99, // 92: littlehorse.WfSpecMetricsQueryRequest.wf_spec_id:type_name -> littlehorse.WfSpecId + 103, // 93: littlehorse.WfSpecMetricsQueryRequest.window_start:type_name -> google.protobuf.Timestamp + 119, // 94: littlehorse.WfSpecMetricsQueryRequest.window_length:type_name -> littlehorse.MetricsWindowLength + 99, // 95: littlehorse.ListWfMetricsRequest.wf_spec_id:type_name -> littlehorse.WfSpecId + 103, // 96: littlehorse.ListWfMetricsRequest.last_window_start:type_name -> google.protobuf.Timestamp + 119, // 97: littlehorse.ListWfMetricsRequest.window_length:type_name -> littlehorse.MetricsWindowLength + 68, // 98: littlehorse.ListWfMetricsResponse.results:type_name -> littlehorse.WfSpecMetrics + 97, // 99: littlehorse.TaskDefMetrics.task_def_id:type_name -> littlehorse.TaskDefId + 103, // 100: littlehorse.TaskDefMetrics.window_start:type_name -> google.protobuf.Timestamp + 119, // 101: littlehorse.TaskDefMetrics.type:type_name -> littlehorse.MetricsWindowLength + 99, // 102: littlehorse.WfSpecMetrics.wf_spec_id:type_name -> littlehorse.WfSpecId + 103, // 103: littlehorse.WfSpecMetrics.window_start:type_name -> google.protobuf.Timestamp + 119, // 104: littlehorse.WfSpecMetrics.type:type_name -> littlehorse.MetricsWindowLength + 92, // 105: littlehorse.ListUserTaskRunRequest.wf_run_id:type_name -> littlehorse.WfRunId + 120, // 106: littlehorse.UserTaskRunList.results:type_name -> littlehorse.UserTaskRun + 96, // 107: littlehorse.ScheduledWfRunIdList.results:type_name -> littlehorse.ScheduledWfRunId + 103, // 108: littlehorse.TaskWorkerMetadata.latest_heartbeat:type_name -> google.protobuf.Timestamp + 53, // 109: littlehorse.TaskWorkerMetadata.hosts:type_name -> littlehorse.LHHostInfo + 121, // 110: littlehorse.TaskWorkerGroup.id:type_name -> littlehorse.TaskWorkerGroupId + 103, // 111: littlehorse.TaskWorkerGroup.created_at:type_name -> google.protobuf.Timestamp + 83, // 112: littlehorse.TaskWorkerGroup.task_workers:type_name -> littlehorse.TaskWorkerGroup.TaskWorkersEntry + 92, // 113: littlehorse.ListTaskRunsRequest.wf_run_id:type_name -> littlehorse.WfRunId + 122, // 114: littlehorse.TaskRunList.results:type_name -> littlehorse.TaskRun + 99, // 115: littlehorse.MigrateWfSpecRequest.old_wf_spec:type_name -> littlehorse.WfSpecId + 123, // 116: littlehorse.MigrateWfSpecRequest.migration:type_name -> littlehorse.WfSpecVersionMigration + 124, // 117: littlehorse.PutWfSpecRequest.ThreadSpecsEntry.value:type_name -> littlehorse.ThreadSpec + 94, // 118: littlehorse.RunWfRequest.VariablesEntry.value:type_name -> littlehorse.VariableValue + 94, // 119: littlehorse.ScheduleWfRequest.VariablesEntry.value:type_name -> littlehorse.VariableValue + 73, // 120: littlehorse.TaskWorkerGroup.TaskWorkersEntry.value:type_name -> littlehorse.TaskWorkerMetadata + 4, // 121: littlehorse.LittleHorse.PutTaskDef:input_type -> littlehorse.PutTaskDefRequest + 97, // 122: littlehorse.LittleHorse.GetTaskDef:input_type -> littlehorse.TaskDefId + 97, // 123: littlehorse.LittleHorse.GetTaskWorkerGroup:input_type -> littlehorse.TaskDefId + 7, // 124: littlehorse.LittleHorse.PutExternalEventDef:input_type -> littlehorse.PutExternalEventDefRequest + 93, // 125: littlehorse.LittleHorse.GetExternalEventDef:input_type -> littlehorse.ExternalEventDefId + 5, // 126: littlehorse.LittleHorse.PutWorkflowEventDef:input_type -> littlehorse.PutWorkflowEventDefRequest + 3, // 127: littlehorse.LittleHorse.PutWfSpec:input_type -> littlehorse.PutWfSpecRequest + 99, // 128: littlehorse.LittleHorse.GetWfSpec:input_type -> littlehorse.WfSpecId + 78, // 129: littlehorse.LittleHorse.GetLatestWfSpec:input_type -> littlehorse.GetLatestWfSpecRequest + 77, // 130: littlehorse.LittleHorse.MigrateWfSpec:input_type -> littlehorse.MigrateWfSpecRequest + 6, // 131: littlehorse.LittleHorse.PutUserTaskDef:input_type -> littlehorse.PutUserTaskDefRequest + 98, // 132: littlehorse.LittleHorse.GetUserTaskDef:input_type -> littlehorse.UserTaskDefId + 2, // 133: littlehorse.LittleHorse.GetLatestUserTaskDef:input_type -> littlehorse.GetLatestUserTaskDefRequest + 16, // 134: littlehorse.LittleHorse.RunWf:input_type -> littlehorse.RunWfRequest + 17, // 135: littlehorse.LittleHorse.ScheduleWf:input_type -> littlehorse.ScheduleWfRequest + 72, // 136: littlehorse.LittleHorse.SearchScheduledWfRun:input_type -> littlehorse.SearchScheduledWfRunRequest + 96, // 137: littlehorse.LittleHorse.GetScheduledWfRun:input_type -> littlehorse.ScheduledWfRunId + 92, // 138: littlehorse.LittleHorse.GetWfRun:input_type -> littlehorse.WfRunId + 108, // 139: littlehorse.LittleHorse.GetUserTaskRun:input_type -> littlehorse.UserTaskRunId + 125, // 140: littlehorse.LittleHorse.AssignUserTaskRun:input_type -> littlehorse.AssignUserTaskRunRequest + 126, // 141: littlehorse.LittleHorse.CompleteUserTaskRun:input_type -> littlehorse.CompleteUserTaskRunRequest + 127, // 142: littlehorse.LittleHorse.CancelUserTaskRun:input_type -> littlehorse.CancelUserTaskRunRequest + 128, // 143: littlehorse.LittleHorse.SaveUserTaskRunProgress:input_type -> littlehorse.SaveUserTaskRunProgressRequest + 69, // 144: littlehorse.LittleHorse.ListUserTaskRuns:input_type -> littlehorse.ListUserTaskRunRequest + 106, // 145: littlehorse.LittleHorse.GetNodeRun:input_type -> littlehorse.NodeRunId + 44, // 146: littlehorse.LittleHorse.ListNodeRuns:input_type -> littlehorse.ListNodeRunsRequest + 105, // 147: littlehorse.LittleHorse.GetTaskRun:input_type -> littlehorse.TaskRunId + 75, // 148: littlehorse.LittleHorse.ListTaskRuns:input_type -> littlehorse.ListTaskRunsRequest + 109, // 149: littlehorse.LittleHorse.GetVariable:input_type -> littlehorse.VariableId + 46, // 150: littlehorse.LittleHorse.ListVariables:input_type -> littlehorse.ListVariablesRequest + 8, // 151: littlehorse.LittleHorse.PutExternalEvent:input_type -> littlehorse.PutExternalEventRequest + 95, // 152: littlehorse.LittleHorse.GetExternalEvent:input_type -> littlehorse.ExternalEventId + 19, // 153: littlehorse.LittleHorse.AwaitWorkflowEvent:input_type -> littlehorse.AwaitWorkflowEventRequest + 48, // 154: littlehorse.LittleHorse.ListExternalEvents:input_type -> littlehorse.ListExternalEventsRequest + 20, // 155: littlehorse.LittleHorse.SearchWfRun:input_type -> littlehorse.SearchWfRunRequest + 24, // 156: littlehorse.LittleHorse.SearchNodeRun:input_type -> littlehorse.SearchNodeRunRequest + 22, // 157: littlehorse.LittleHorse.SearchTaskRun:input_type -> littlehorse.SearchTaskRunRequest + 26, // 158: littlehorse.LittleHorse.SearchUserTaskRun:input_type -> littlehorse.SearchUserTaskRunRequest + 28, // 159: littlehorse.LittleHorse.SearchVariable:input_type -> littlehorse.SearchVariableRequest + 42, // 160: littlehorse.LittleHorse.SearchExternalEvent:input_type -> littlehorse.SearchExternalEventRequest + 30, // 161: littlehorse.LittleHorse.SearchTaskDef:input_type -> littlehorse.SearchTaskDefRequest + 32, // 162: littlehorse.LittleHorse.SearchUserTaskDef:input_type -> littlehorse.SearchUserTaskDefRequest + 34, // 163: littlehorse.LittleHorse.SearchWfSpec:input_type -> littlehorse.SearchWfSpecRequest + 36, // 164: littlehorse.LittleHorse.SearchExternalEventDef:input_type -> littlehorse.SearchExternalEventDefRequest + 38, // 165: littlehorse.LittleHorse.SearchTenant:input_type -> littlehorse.SearchTenantRequest + 40, // 166: littlehorse.LittleHorse.SearchPrincipal:input_type -> littlehorse.SearchPrincipalRequest + 50, // 167: littlehorse.LittleHorse.RegisterTaskWorker:input_type -> littlehorse.RegisterTaskWorkerRequest + 54, // 168: littlehorse.LittleHorse.PollTask:input_type -> littlehorse.PollTaskRequest + 57, // 169: littlehorse.LittleHorse.ReportTask:input_type -> littlehorse.ReportTaskRun + 58, // 170: littlehorse.LittleHorse.StopWfRun:input_type -> littlehorse.StopWfRunRequest + 59, // 171: littlehorse.LittleHorse.ResumeWfRun:input_type -> littlehorse.ResumeWfRunRequest + 60, // 172: littlehorse.LittleHorse.RescueThreadRun:input_type -> littlehorse.RescueThreadRunRequest + 11, // 173: littlehorse.LittleHorse.DeleteWfRun:input_type -> littlehorse.DeleteWfRunRequest + 12, // 174: littlehorse.LittleHorse.DeleteTaskDef:input_type -> littlehorse.DeleteTaskDefRequest + 14, // 175: littlehorse.LittleHorse.DeleteWfSpec:input_type -> littlehorse.DeleteWfSpecRequest + 13, // 176: littlehorse.LittleHorse.DeleteUserTaskDef:input_type -> littlehorse.DeleteUserTaskDefRequest + 15, // 177: littlehorse.LittleHorse.DeleteExternalEventDef:input_type -> littlehorse.DeleteExternalEventDefRequest + 129, // 178: littlehorse.LittleHorse.DeletePrincipal:input_type -> littlehorse.DeletePrincipalRequest + 10, // 179: littlehorse.LittleHorse.DeleteScheduledWfRun:input_type -> littlehorse.DeleteScheduledWfRunRequest + 61, // 180: littlehorse.LittleHorse.GetTaskDefMetricsWindow:input_type -> littlehorse.TaskDefMetricsQueryRequest + 64, // 181: littlehorse.LittleHorse.GetWfSpecMetricsWindow:input_type -> littlehorse.WfSpecMetricsQueryRequest + 62, // 182: littlehorse.LittleHorse.ListTaskDefMetrics:input_type -> littlehorse.ListTaskMetricsRequest + 65, // 183: littlehorse.LittleHorse.ListWfSpecMetrics:input_type -> littlehorse.ListWfMetricsRequest + 130, // 184: littlehorse.LittleHorse.PutTenant:input_type -> littlehorse.PutTenantRequest + 110, // 185: littlehorse.LittleHorse.GetTenant:input_type -> littlehorse.TenantId + 131, // 186: littlehorse.LittleHorse.PutPrincipal:input_type -> littlehorse.PutPrincipalRequest + 132, // 187: littlehorse.LittleHorse.Whoami:input_type -> google.protobuf.Empty + 132, // 188: littlehorse.LittleHorse.GetServerVersion:input_type -> google.protobuf.Empty + 133, // 189: littlehorse.LittleHorse.PutTaskDef:output_type -> littlehorse.TaskDef + 133, // 190: littlehorse.LittleHorse.GetTaskDef:output_type -> littlehorse.TaskDef + 74, // 191: littlehorse.LittleHorse.GetTaskWorkerGroup:output_type -> littlehorse.TaskWorkerGroup + 134, // 192: littlehorse.LittleHorse.PutExternalEventDef:output_type -> littlehorse.ExternalEventDef + 134, // 193: littlehorse.LittleHorse.GetExternalEventDef:output_type -> littlehorse.ExternalEventDef + 135, // 194: littlehorse.LittleHorse.PutWorkflowEventDef:output_type -> littlehorse.WorkflowEventDef + 136, // 195: littlehorse.LittleHorse.PutWfSpec:output_type -> littlehorse.WfSpec + 136, // 196: littlehorse.LittleHorse.GetWfSpec:output_type -> littlehorse.WfSpec + 136, // 197: littlehorse.LittleHorse.GetLatestWfSpec:output_type -> littlehorse.WfSpec + 136, // 198: littlehorse.LittleHorse.MigrateWfSpec:output_type -> littlehorse.WfSpec + 137, // 199: littlehorse.LittleHorse.PutUserTaskDef:output_type -> littlehorse.UserTaskDef + 137, // 200: littlehorse.LittleHorse.GetUserTaskDef:output_type -> littlehorse.UserTaskDef + 137, // 201: littlehorse.LittleHorse.GetLatestUserTaskDef:output_type -> littlehorse.UserTaskDef + 138, // 202: littlehorse.LittleHorse.RunWf:output_type -> littlehorse.WfRun + 139, // 203: littlehorse.LittleHorse.ScheduleWf:output_type -> littlehorse.ScheduledWfRun + 71, // 204: littlehorse.LittleHorse.SearchScheduledWfRun:output_type -> littlehorse.ScheduledWfRunIdList + 139, // 205: littlehorse.LittleHorse.GetScheduledWfRun:output_type -> littlehorse.ScheduledWfRun + 138, // 206: littlehorse.LittleHorse.GetWfRun:output_type -> littlehorse.WfRun + 120, // 207: littlehorse.LittleHorse.GetUserTaskRun:output_type -> littlehorse.UserTaskRun + 132, // 208: littlehorse.LittleHorse.AssignUserTaskRun:output_type -> google.protobuf.Empty + 132, // 209: littlehorse.LittleHorse.CompleteUserTaskRun:output_type -> google.protobuf.Empty + 132, // 210: littlehorse.LittleHorse.CancelUserTaskRun:output_type -> google.protobuf.Empty + 120, // 211: littlehorse.LittleHorse.SaveUserTaskRunProgress:output_type -> littlehorse.UserTaskRun + 70, // 212: littlehorse.LittleHorse.ListUserTaskRuns:output_type -> littlehorse.UserTaskRunList + 112, // 213: littlehorse.LittleHorse.GetNodeRun:output_type -> littlehorse.NodeRun + 45, // 214: littlehorse.LittleHorse.ListNodeRuns:output_type -> littlehorse.NodeRunList + 122, // 215: littlehorse.LittleHorse.GetTaskRun:output_type -> littlehorse.TaskRun + 76, // 216: littlehorse.LittleHorse.ListTaskRuns:output_type -> littlehorse.TaskRunList + 113, // 217: littlehorse.LittleHorse.GetVariable:output_type -> littlehorse.Variable + 47, // 218: littlehorse.LittleHorse.ListVariables:output_type -> littlehorse.VariableList + 114, // 219: littlehorse.LittleHorse.PutExternalEvent:output_type -> littlehorse.ExternalEvent + 114, // 220: littlehorse.LittleHorse.GetExternalEvent:output_type -> littlehorse.ExternalEvent + 140, // 221: littlehorse.LittleHorse.AwaitWorkflowEvent:output_type -> littlehorse.WorkflowEvent + 49, // 222: littlehorse.LittleHorse.ListExternalEvents:output_type -> littlehorse.ExternalEventList + 21, // 223: littlehorse.LittleHorse.SearchWfRun:output_type -> littlehorse.WfRunIdList + 25, // 224: littlehorse.LittleHorse.SearchNodeRun:output_type -> littlehorse.NodeRunIdList + 23, // 225: littlehorse.LittleHorse.SearchTaskRun:output_type -> littlehorse.TaskRunIdList + 27, // 226: littlehorse.LittleHorse.SearchUserTaskRun:output_type -> littlehorse.UserTaskRunIdList + 29, // 227: littlehorse.LittleHorse.SearchVariable:output_type -> littlehorse.VariableIdList + 43, // 228: littlehorse.LittleHorse.SearchExternalEvent:output_type -> littlehorse.ExternalEventIdList + 31, // 229: littlehorse.LittleHorse.SearchTaskDef:output_type -> littlehorse.TaskDefIdList + 33, // 230: littlehorse.LittleHorse.SearchUserTaskDef:output_type -> littlehorse.UserTaskDefIdList + 35, // 231: littlehorse.LittleHorse.SearchWfSpec:output_type -> littlehorse.WfSpecIdList + 37, // 232: littlehorse.LittleHorse.SearchExternalEventDef:output_type -> littlehorse.ExternalEventDefIdList + 39, // 233: littlehorse.LittleHorse.SearchTenant:output_type -> littlehorse.TenantIdList + 41, // 234: littlehorse.LittleHorse.SearchPrincipal:output_type -> littlehorse.PrincipalIdList + 52, // 235: littlehorse.LittleHorse.RegisterTaskWorker:output_type -> littlehorse.RegisterTaskWorkerResponse + 56, // 236: littlehorse.LittleHorse.PollTask:output_type -> littlehorse.PollTaskResponse + 132, // 237: littlehorse.LittleHorse.ReportTask:output_type -> google.protobuf.Empty + 132, // 238: littlehorse.LittleHorse.StopWfRun:output_type -> google.protobuf.Empty + 132, // 239: littlehorse.LittleHorse.ResumeWfRun:output_type -> google.protobuf.Empty + 138, // 240: littlehorse.LittleHorse.RescueThreadRun:output_type -> littlehorse.WfRun + 132, // 241: littlehorse.LittleHorse.DeleteWfRun:output_type -> google.protobuf.Empty + 132, // 242: littlehorse.LittleHorse.DeleteTaskDef:output_type -> google.protobuf.Empty + 132, // 243: littlehorse.LittleHorse.DeleteWfSpec:output_type -> google.protobuf.Empty + 132, // 244: littlehorse.LittleHorse.DeleteUserTaskDef:output_type -> google.protobuf.Empty + 132, // 245: littlehorse.LittleHorse.DeleteExternalEventDef:output_type -> google.protobuf.Empty + 132, // 246: littlehorse.LittleHorse.DeletePrincipal:output_type -> google.protobuf.Empty + 132, // 247: littlehorse.LittleHorse.DeleteScheduledWfRun:output_type -> google.protobuf.Empty + 67, // 248: littlehorse.LittleHorse.GetTaskDefMetricsWindow:output_type -> littlehorse.TaskDefMetrics + 68, // 249: littlehorse.LittleHorse.GetWfSpecMetricsWindow:output_type -> littlehorse.WfSpecMetrics + 63, // 250: littlehorse.LittleHorse.ListTaskDefMetrics:output_type -> littlehorse.ListTaskMetricsResponse + 66, // 251: littlehorse.LittleHorse.ListWfSpecMetrics:output_type -> littlehorse.ListWfMetricsResponse + 141, // 252: littlehorse.LittleHorse.PutTenant:output_type -> littlehorse.Tenant + 141, // 253: littlehorse.LittleHorse.GetTenant:output_type -> littlehorse.Tenant + 142, // 254: littlehorse.LittleHorse.PutPrincipal:output_type -> littlehorse.Principal + 142, // 255: littlehorse.LittleHorse.Whoami:output_type -> littlehorse.Principal + 79, // 256: littlehorse.LittleHorse.GetServerVersion:output_type -> littlehorse.ServerVersionResponse + 189, // [189:257] is the sub-list for method output_type + 121, // [121:189] is the sub-list for method input_type + 121, // [121:121] is the sub-list for extension type_name + 121, // [121:121] is the sub-list for extension extendee + 0, // [0:121] is the sub-list for field type_name } func init() { file_service_proto_init() } @@ -8355,6 +8395,10 @@ func file_service_proto_init() { } file_service_proto_msgTypes[1].OneofWrappers = []interface{}{} file_service_proto_msgTypes[2].OneofWrappers = []interface{}{} + file_service_proto_msgTypes[3].OneofWrappers = []interface{}{ + (*PutWorkflowEventDefRequest_PrimitiveType)(nil), + (*PutWorkflowEventDefRequest_Schema)(nil), + } file_service_proto_msgTypes[4].OneofWrappers = []interface{}{} file_service_proto_msgTypes[6].OneofWrappers = []interface{}{} file_service_proto_msgTypes[14].OneofWrappers = []interface{}{} diff --git a/sdk-go/lhproto/user_tasks.pb.go b/sdk-go/lhproto/user_tasks.pb.go index 52e588a08..8e1c6f70e 100644 --- a/sdk-go/lhproto/user_tasks.pb.go +++ b/sdk-go/lhproto/user_tasks.pb.go @@ -229,7 +229,7 @@ type UserTaskField struct { // single-level JSON_OBJ. Each key is the name of the field. Must be unique. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The type of the output. Must be a primitive type (STR, BOOL, INT, DOUBLE). - Type VariableType `protobuf:"varint,2,opt,name=type,proto3,enum=littlehorse.VariableType" json:"type,omitempty"` + Type PrimitiveType `protobuf:"varint,2,opt,name=type,proto3,enum=littlehorse.PrimitiveType" json:"type,omitempty"` // Optional description which can be displayed by the User Task UI application. // Does not affect WfRun execution. Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"` @@ -279,11 +279,11 @@ func (x *UserTaskField) GetName() string { return "" } -func (x *UserTaskField) GetType() VariableType { +func (x *UserTaskField) GetType() PrimitiveType { if x != nil { return x.Type } - return VariableType_JSON_OBJ + return PrimitiveType_JSON_OBJ } func (x *UserTaskField) GetDescription() string { @@ -1215,212 +1215,212 @@ var file_user_tasks_proto_rawDesc = []byte{ 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc8, 0x01, 0x0a, 0x0d, 0x55, 0x73, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc9, 0x01, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x2d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, - 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, - 0x61, 0x62, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x25, - 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, - 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, - 0x69, 0x72, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, - 0x69, 0x72, 0x65, 0x64, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x96, 0x05, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, - 0x6b, 0x52, 0x75, 0x6e, 0x12, 0x2a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x43, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x64, 0x65, - 0x66, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, - 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, - 0x6b, 0x44, 0x65, 0x66, 0x49, 0x64, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, - 0x44, 0x65, 0x66, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x75, 0x73, 0x65, - 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x88, 0x01, 0x01, 0x12, 0x1c, 0x0a, 0x07, 0x75, 0x73, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x06, 0x75, 0x73, - 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x3f, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, - 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, - 0x75, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x36, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, - 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, - 0x75, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x32, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x73, 0x12, 0x19, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, - 0x41, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, - 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x54, 0x69, - 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, - 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, - 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x52, - 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, - 0x6f, 0x63, 0x68, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, - 0x1a, 0x56, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, + 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x69, 0x6d, + 0x69, 0x74, 0x69, 0x76, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, + 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, + 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x71, + 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x71, + 0x75, 0x69, 0x72, 0x65, 0x64, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x96, 0x05, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, + 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x12, 0x2a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, - 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x75, 0x73, 0x65, - 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x75, 0x73, 0x65, 0x72, - 0x5f, 0x69, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x22, 0xe3, 0x01, - 0x0a, 0x18, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, - 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x10, 0x75, 0x73, - 0x65, 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, - 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, - 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, - 0x25, 0x0a, 0x0e, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x69, - 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, - 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x12, 0x22, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, + 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x43, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x64, + 0x65, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, + 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, + 0x73, 0x6b, 0x44, 0x65, 0x66, 0x49, 0x64, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, + 0x6b, 0x44, 0x65, 0x66, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x88, 0x01, 0x01, 0x12, 0x1c, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x06, 0x75, - 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x75, 0x73, 0x65, - 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x75, 0x73, 0x65, 0x72, - 0x5f, 0x69, 0x64, 0x22, 0xa2, 0x02, 0x0a, 0x1a, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, - 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x43, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, - 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, - 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, - 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x54, 0x61, - 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x4e, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, - 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x55, - 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, - 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, - 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, - 0x1a, 0x56, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x3f, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6c, 0x69, 0x74, 0x74, + 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, + 0x52, 0x75, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x36, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x6c, 0x69, 0x74, 0x74, + 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, + 0x52, 0x75, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x32, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, - 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xe2, 0x03, 0x0a, 0x1e, 0x53, 0x61, 0x76, - 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x50, 0x72, 0x6f, 0x67, - 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x10, 0x75, + 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x19, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, + 0x12, 0x41, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x54, + 0x69, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x72, 0x75, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, + 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x75, 0x6e, 0x49, 0x64, + 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x1a, 0x56, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, + 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x22, 0xe3, + 0x01, 0x0a, 0x18, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, + 0x6b, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, - 0x12, 0x52, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x38, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, - 0x53, 0x61, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x50, - 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x63, 0x0a, - 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x4b, 0x2e, - 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x53, 0x61, 0x76, 0x65, - 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x50, 0x72, 0x6f, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x55, - 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, - 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x1a, 0x56, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, - 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x51, 0x0a, 0x1f, 0x53, 0x61, - 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x41, 0x73, 0x73, - 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1c, 0x0a, - 0x18, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x49, 0x46, 0x5f, 0x43, 0x4c, 0x41, 0x49, 0x4d, 0x45, 0x44, - 0x5f, 0x42, 0x59, 0x5f, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x49, - 0x47, 0x4e, 0x4f, 0x52, 0x45, 0x5f, 0x43, 0x4c, 0x41, 0x49, 0x4d, 0x10, 0x01, 0x22, 0x5f, 0x0a, - 0x18, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, - 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x10, 0x75, 0x73, 0x65, - 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, - 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x52, - 0x0d, 0x75, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x22, 0xe4, - 0x01, 0x0a, 0x18, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x72, 0x69, 0x67, 0x67, - 0x65, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x6e, - 0x6f, 0x64, 0x65, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x4e, - 0x6f, 0x64, 0x65, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x75, - 0x6e, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x16, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, - 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x13, 0x75, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, - 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x75, 0x73, 0x65, - 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x09, 0x75, 0x73, - 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x75, - 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x97, 0x07, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, - 0x73, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x51, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x5f, - 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, - 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, - 0x72, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x55, 0x54, 0x45, 0x54, 0x61, - 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0c, 0x74, 0x61, - 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x64, 0x12, 0x44, 0x0a, 0x08, 0x61, 0x73, - 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6c, - 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, - 0x61, 0x73, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x55, 0x54, 0x45, 0x41, 0x73, 0x73, 0x69, - 0x67, 0x6e, 0x65, 0x64, 0x48, 0x00, 0x52, 0x08, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, - 0x12, 0x47, 0x0a, 0x09, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, - 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, - 0x55, 0x54, 0x45, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x48, 0x00, 0x52, 0x09, - 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x3b, 0x0a, 0x05, 0x73, 0x61, 0x76, - 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, - 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x55, 0x54, 0x45, 0x53, 0x61, 0x76, 0x65, 0x64, 0x48, 0x00, 0x52, - 0x05, 0x73, 0x61, 0x76, 0x65, 0x64, 0x1a, 0x28, 0x0a, 0x0c, 0x55, 0x54, 0x45, 0x43, 0x61, 0x6e, - 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x1a, 0x44, 0x0a, 0x0f, 0x55, 0x54, 0x45, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x65, 0x64, 0x12, 0x31, 0x0a, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, - 0x72, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x52, 0x07, 0x74, - 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x1a, 0xc7, 0x01, 0x0a, 0x08, 0x55, 0x54, 0x45, 0x53, 0x61, - 0x76, 0x65, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x4a, 0x0a, 0x07, - 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, + 0x12, 0x25, 0x0a, 0x0e, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x5f, 0x63, 0x6c, 0x61, + 0x69, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, + 0x64, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x12, 0x22, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x75, + 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x88, 0x01, 0x01, 0x12, 0x1c, 0x0a, 0x07, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x06, + 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x22, 0xa2, 0x02, 0x0a, 0x1a, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, + 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, - 0x54, 0x61, 0x73, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x55, 0x54, 0x45, 0x53, 0x61, 0x76, - 0x65, 0x64, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x1a, 0x56, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, - 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x1a, 0xf3, 0x01, 0x0a, 0x0b, 0x55, 0x54, 0x45, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, - 0x12, 0x23, 0x0a, 0x0b, 0x6f, 0x6c, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6c, 0x64, 0x55, 0x73, 0x65, 0x72, - 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x29, 0x0a, 0x0e, 0x6f, 0x6c, 0x64, 0x5f, 0x75, 0x73, 0x65, - 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, - 0x0c, 0x6f, 0x6c, 0x64, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x88, 0x01, 0x01, - 0x12, 0x23, 0x0a, 0x0b, 0x6e, 0x65, 0x77, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x55, 0x73, 0x65, 0x72, - 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x29, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x75, 0x73, 0x65, - 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, - 0x0c, 0x6e, 0x65, 0x77, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x88, 0x01, 0x01, - 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x6f, 0x6c, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, - 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x6f, 0x6c, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x6e, 0x65, 0x77, 0x5f, 0x75, 0x73, 0x65, 0x72, - 0x5f, 0x69, 0x64, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x6e, 0x65, 0x77, 0x5f, 0x75, 0x73, 0x65, 0x72, - 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2a, - 0x4a, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x0e, 0x0a, 0x0a, 0x55, 0x4e, 0x41, 0x53, 0x53, 0x49, 0x47, 0x4e, - 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x53, 0x53, 0x49, 0x47, 0x4e, 0x45, 0x44, - 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, - 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x42, 0x49, 0x0a, 0x1f, 0x69, - 0x6f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x73, 0x64, - 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x09, 0x2e, 0x3b, 0x6c, 0x68, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0xaa, 0x02, 0x18, 0x4c, 0x69, - 0x74, 0x74, 0x6c, 0x65, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x54, + 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x4e, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x6c, 0x69, 0x74, 0x74, + 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, + 0x64, 0x1a, 0x56, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, + 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xe2, 0x03, 0x0a, 0x1e, 0x53, 0x61, + 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x50, 0x72, 0x6f, + 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x10, + 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, + 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, + 0x49, 0x64, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, + 0x64, 0x12, 0x52, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, + 0x2e, 0x53, 0x61, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, + 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, + 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x63, + 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x4b, + 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x53, 0x61, 0x76, + 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x50, 0x72, 0x6f, 0x67, + 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x61, 0x76, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x41, 0x73, 0x73, 0x69, 0x67, + 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x1a, 0x56, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, + 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x51, 0x0a, 0x1f, 0x53, + 0x61, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x41, 0x73, + 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1c, + 0x0a, 0x18, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x49, 0x46, 0x5f, 0x43, 0x4c, 0x41, 0x49, 0x4d, 0x45, + 0x44, 0x5f, 0x42, 0x59, 0x5f, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, + 0x49, 0x47, 0x4e, 0x4f, 0x52, 0x45, 0x5f, 0x43, 0x4c, 0x41, 0x49, 0x4d, 0x10, 0x01, 0x22, 0x5f, + 0x0a, 0x18, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, + 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x10, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, + 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, + 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x22, + 0xe4, 0x01, 0x0a, 0x18, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x72, 0x69, 0x67, + 0x67, 0x65, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x36, 0x0a, 0x0b, + 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, + 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x52, + 0x75, 0x6e, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x16, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x75, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x07, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x75, 0x73, + 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x09, 0x75, + 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, + 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x97, 0x07, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x54, + 0x61, 0x73, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x51, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x55, 0x54, 0x45, 0x54, + 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0c, 0x74, + 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x64, 0x12, 0x44, 0x0a, 0x08, 0x61, + 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x54, 0x61, 0x73, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x55, 0x54, 0x45, 0x41, 0x73, 0x73, + 0x69, 0x67, 0x6e, 0x65, 0x64, 0x48, 0x00, 0x52, 0x08, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, + 0x64, 0x12, 0x47, 0x0a, 0x09, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, + 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x2e, 0x55, 0x54, 0x45, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x48, 0x00, 0x52, + 0x09, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x3b, 0x0a, 0x05, 0x73, 0x61, + 0x76, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6c, 0x69, 0x74, 0x74, + 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x55, 0x54, 0x45, 0x53, 0x61, 0x76, 0x65, 0x64, 0x48, 0x00, + 0x52, 0x05, 0x73, 0x61, 0x76, 0x65, 0x64, 0x1a, 0x28, 0x0a, 0x0c, 0x55, 0x54, 0x45, 0x43, 0x61, + 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x1a, 0x44, 0x0a, 0x0f, 0x55, 0x54, 0x45, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x65, 0x64, 0x12, 0x31, 0x0a, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x75, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, + 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x52, 0x07, + 0x74, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x1a, 0xc7, 0x01, 0x0a, 0x08, 0x55, 0x54, 0x45, 0x53, + 0x61, 0x76, 0x65, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x4a, 0x0a, + 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, + 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, + 0x72, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x55, 0x54, 0x45, 0x53, 0x61, + 0x76, 0x65, 0x64, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x1a, 0x56, 0x0a, 0x0c, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x30, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, + 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, + 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x1a, 0xf3, 0x01, 0x0a, 0x0b, 0x55, 0x54, 0x45, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, + 0x64, 0x12, 0x23, 0x0a, 0x0b, 0x6f, 0x6c, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6c, 0x64, 0x55, 0x73, 0x65, + 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x29, 0x0a, 0x0e, 0x6f, 0x6c, 0x64, 0x5f, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, + 0x52, 0x0c, 0x6f, 0x6c, 0x64, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x88, 0x01, + 0x01, 0x12, 0x23, 0x0a, 0x0b, 0x6e, 0x65, 0x77, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x55, 0x73, 0x65, + 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x29, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, + 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x88, 0x01, + 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x6f, 0x6c, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x6f, 0x6c, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x6e, 0x65, 0x77, 0x5f, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x6e, 0x65, 0x77, 0x5f, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x2a, 0x4a, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0e, 0x0a, 0x0a, 0x55, 0x4e, 0x41, 0x53, 0x53, 0x49, 0x47, + 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x53, 0x53, 0x49, 0x47, 0x4e, 0x45, + 0x44, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x03, 0x12, 0x0d, 0x0a, + 0x09, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x42, 0x49, 0x0a, 0x1f, + 0x69, 0x6f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x73, + 0x64, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x09, 0x2e, 0x3b, 0x6c, 0x68, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0xaa, 0x02, 0x18, 0x4c, + 0x69, 0x74, 0x74, 0x6c, 0x65, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1458,7 +1458,7 @@ var file_user_tasks_proto_goTypes = []interface{}{ (*UserTaskEvent_UTEAssigned)(nil), // 17: littlehorse.UserTaskEvent.UTEAssigned nil, // 18: littlehorse.UserTaskEvent.UTESaved.ResultsEntry (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp - (VariableType)(0), // 20: littlehorse.VariableType + (PrimitiveType)(0), // 20: littlehorse.PrimitiveType (*UserTaskRunId)(nil), // 21: littlehorse.UserTaskRunId (*UserTaskDefId)(nil), // 22: littlehorse.UserTaskDefId (*NodeRunId)(nil), // 23: littlehorse.NodeRunId @@ -1468,7 +1468,7 @@ var file_user_tasks_proto_goTypes = []interface{}{ var file_user_tasks_proto_depIdxs = []int32{ 3, // 0: littlehorse.UserTaskDef.fields:type_name -> littlehorse.UserTaskField 19, // 1: littlehorse.UserTaskDef.created_at:type_name -> google.protobuf.Timestamp - 20, // 2: littlehorse.UserTaskField.type:type_name -> littlehorse.VariableType + 20, // 2: littlehorse.UserTaskField.type:type_name -> littlehorse.PrimitiveType 21, // 3: littlehorse.UserTaskRun.id:type_name -> littlehorse.UserTaskRunId 22, // 4: littlehorse.UserTaskRun.user_task_def_id:type_name -> littlehorse.UserTaskDefId 11, // 5: littlehorse.UserTaskRun.results:type_name -> littlehorse.UserTaskRun.ResultsEntry diff --git a/sdk-go/lhproto/variable.pb.go b/sdk-go/lhproto/variable.pb.go index 8c7a6eedf..13ee77e13 100644 --- a/sdk-go/lhproto/variable.pb.go +++ b/sdk-go/lhproto/variable.pb.go @@ -40,6 +40,7 @@ type VariableValue struct { // *VariableValue_Str // *VariableValue_Int // *VariableValue_Bytes + // *VariableValue_Struct Value isVariableValue_Value `protobuf_oneof:"value"` } @@ -131,6 +132,13 @@ func (x *VariableValue) GetBytes() []byte { return nil } +func (x *VariableValue) GetStruct() *Struct { + if x, ok := x.GetValue().(*VariableValue_Struct); ok { + return x.Struct + } + return nil +} + type isVariableValue_Value interface { isVariableValue_Value() } @@ -171,6 +179,11 @@ type VariableValue_Bytes struct { Bytes []byte `protobuf:"bytes,8,opt,name=bytes,proto3,oneof"` } +type VariableValue_Struct struct { + // A strongly-typed struct + Struct *Struct `protobuf:"bytes,9,opt,name=struct,proto3,oneof"` +} + func (*VariableValue_JsonObj) isVariableValue_Value() {} func (*VariableValue_JsonArr) isVariableValue_Value() {} @@ -185,6 +198,8 @@ func (*VariableValue_Int) isVariableValue_Value() {} func (*VariableValue_Bytes) isVariableValue_Value() {} +func (*VariableValue_Struct) isVariableValue_Value() {} + // A Variable is an instance of a variable assigned to a WfRun. type Variable struct { state protoimpl.MessageState @@ -271,6 +286,497 @@ func (x *Variable) GetMasked() bool { return false } +// A Struct is a strongly-typed structure containing fields. The Struct is defined +// according to the `Schema` object. +type Struct struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The id of the schema. + SchemaId *SchemaId `protobuf:"bytes,1,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty"` + // The content of the Struct + Struct *InlineStruct `protobuf:"bytes,2,opt,name=struct,proto3" json:"struct,omitempty"` +} + +func (x *Struct) Reset() { + *x = Struct{} + if protoimpl.UnsafeEnabled { + mi := &file_variable_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Struct) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Struct) ProtoMessage() {} + +func (x *Struct) ProtoReflect() protoreflect.Message { + mi := &file_variable_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Struct.ProtoReflect.Descriptor instead. +func (*Struct) Descriptor() ([]byte, []int) { + return file_variable_proto_rawDescGZIP(), []int{2} +} + +func (x *Struct) GetSchemaId() *SchemaId { + if x != nil { + return x.SchemaId + } + return nil +} + +func (x *Struct) GetStruct() *InlineStruct { + if x != nil { + return x.Struct + } + return nil +} + +// An `InlineStruct` is a pre-validated set of fields that are part of a `Struct`. +type InlineStruct struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The fields in the inline struct. + Fields []*StructField `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` +} + +func (x *InlineStruct) Reset() { + *x = InlineStruct{} + if protoimpl.UnsafeEnabled { + mi := &file_variable_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InlineStruct) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InlineStruct) ProtoMessage() {} + +func (x *InlineStruct) ProtoReflect() protoreflect.Message { + mi := &file_variable_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InlineStruct.ProtoReflect.Descriptor instead. +func (*InlineStruct) Descriptor() ([]byte, []int) { + return file_variable_proto_rawDescGZIP(), []int{3} +} + +func (x *InlineStruct) GetFields() []*StructField { + if x != nil { + return x.Fields + } + return nil +} + +// A StructField represents the value for a single field in a struct. +type StructField struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The value, which can be primitive or complex. + // + // Types that are assignable to StructValue: + // *StructField_Primitive + // *StructField_Struct + // *StructField_List + StructValue isStructField_StructValue `protobuf_oneof:"struct_value"` +} + +func (x *StructField) Reset() { + *x = StructField{} + if protoimpl.UnsafeEnabled { + mi := &file_variable_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StructField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StructField) ProtoMessage() {} + +func (x *StructField) ProtoReflect() protoreflect.Message { + mi := &file_variable_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StructField.ProtoReflect.Descriptor instead. +func (*StructField) Descriptor() ([]byte, []int) { + return file_variable_proto_rawDescGZIP(), []int{4} +} + +func (m *StructField) GetStructValue() isStructField_StructValue { + if m != nil { + return m.StructValue + } + return nil +} + +func (x *StructField) GetPrimitive() *VariableValue { + if x, ok := x.GetStructValue().(*StructField_Primitive); ok { + return x.Primitive + } + return nil +} + +func (x *StructField) GetStruct() *InlineStruct { + if x, ok := x.GetStructValue().(*StructField_Struct); ok { + return x.Struct + } + return nil +} + +func (x *StructField) GetList() *StructField_FieldList { + if x, ok := x.GetStructValue().(*StructField_List); ok { + return x.List + } + return nil +} + +type isStructField_StructValue interface { + isStructField_StructValue() +} + +type StructField_Primitive struct { + // The `value` of the field is an untyped primitive `VariableValue`. + Primitive *VariableValue `protobuf:"bytes,1,opt,name=primitive,proto3,oneof"` +} + +type StructField_Struct struct { + // The `value` of the field is a complex `Struct`. + Struct *InlineStruct `protobuf:"bytes,2,opt,name=struct,proto3,oneof"` +} + +type StructField_List struct { + // The `value` of the field is a list of fields. + List *StructField_FieldList `protobuf:"bytes,3,opt,name=list,proto3,oneof"` +} + +func (*StructField_Primitive) isStructField_StructValue() {} + +func (*StructField_Struct) isStructField_StructValue() {} + +func (*StructField_List) isStructField_StructValue() {} + +// A `SchemaField` defines a field inside a `Schema`. +type SchemaField struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The name of the field. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Whether the field is optional. + Optional bool `protobuf:"varint,2,opt,name=optional,proto3" json:"optional,omitempty"` + // The type of the field. + // + // Types that are assignable to FieldType: + // *SchemaField_Primitive + // *SchemaField_SchemaId + // *SchemaField_InlineSchema + FieldType isSchemaField_FieldType `protobuf_oneof:"field_type"` +} + +func (x *SchemaField) Reset() { + *x = SchemaField{} + if protoimpl.UnsafeEnabled { + mi := &file_variable_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchemaField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchemaField) ProtoMessage() {} + +func (x *SchemaField) ProtoReflect() protoreflect.Message { + mi := &file_variable_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchemaField.ProtoReflect.Descriptor instead. +func (*SchemaField) Descriptor() ([]byte, []int) { + return file_variable_proto_rawDescGZIP(), []int{5} +} + +func (x *SchemaField) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *SchemaField) GetOptional() bool { + if x != nil { + return x.Optional + } + return false +} + +func (m *SchemaField) GetFieldType() isSchemaField_FieldType { + if m != nil { + return m.FieldType + } + return nil +} + +func (x *SchemaField) GetPrimitive() PrimitiveType { + if x, ok := x.GetFieldType().(*SchemaField_Primitive); ok { + return x.Primitive + } + return PrimitiveType_JSON_OBJ +} + +func (x *SchemaField) GetSchemaId() *SchemaId { + if x, ok := x.GetFieldType().(*SchemaField_SchemaId); ok { + return x.SchemaId + } + return nil +} + +func (x *SchemaField) GetInlineSchema() *InlineSchema { + if x, ok := x.GetFieldType().(*SchemaField_InlineSchema); ok { + return x.InlineSchema + } + return nil +} + +type isSchemaField_FieldType interface { + isSchemaField_FieldType() +} + +type SchemaField_Primitive struct { + // Specifies that the field is a primitive `VariableValue` of the specified type. + Primitive PrimitiveType `protobuf:"varint,3,opt,name=primitive,proto3,enum=littlehorse.PrimitiveType,oneof"` +} + +type SchemaField_SchemaId struct { + // Specifies that the field is of a specific `Schema`. + SchemaId *SchemaId `protobuf:"bytes,4,opt,name=schema_id,json=schemaId,proto3,oneof"` +} + +type SchemaField_InlineSchema struct { + // Specifies that field must be a `Struct` conforming to the accompanying schema. + InlineSchema *InlineSchema `protobuf:"bytes,5,opt,name=inline_schema,json=inlineSchema,proto3,oneof"` +} + +func (*SchemaField_Primitive) isSchemaField_FieldType() {} + +func (*SchemaField_SchemaId) isSchemaField_FieldType() {} + +func (*SchemaField_InlineSchema) isSchemaField_FieldType() {} + +// A `Schema` is a versioned metadata object (tenant-scoped) inside LittleHorse +// that defines the structure and content of a variable value. It allows strong typing. +type Schema struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The id of the `Schema`. This includes the version. + Id *SchemaId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Optionally description of the schema. + Description *string `protobuf:"bytes,2,opt,name=description,proto3,oneof" json:"description,omitempty"` + // The `InlineSchema` defines the actual structure of any `Struct` using this `Schema`. + Schema *InlineSchema `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"` +} + +func (x *Schema) Reset() { + *x = Schema{} + if protoimpl.UnsafeEnabled { + mi := &file_variable_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Schema) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Schema) ProtoMessage() {} + +func (x *Schema) ProtoReflect() protoreflect.Message { + mi := &file_variable_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Schema.ProtoReflect.Descriptor instead. +func (*Schema) Descriptor() ([]byte, []int) { + return file_variable_proto_rawDescGZIP(), []int{6} +} + +func (x *Schema) GetId() *SchemaId { + if x != nil { + return x.Id + } + return nil +} + +func (x *Schema) GetDescription() string { + if x != nil && x.Description != nil { + return *x.Description + } + return "" +} + +func (x *Schema) GetSchema() *InlineSchema { + if x != nil { + return x.Schema + } + return nil +} + +// An `InlineSchema` is the actual representation of the Schema. +type InlineSchema struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The fields in this schema. + Fields []*SchemaField `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` +} + +func (x *InlineSchema) Reset() { + *x = InlineSchema{} + if protoimpl.UnsafeEnabled { + mi := &file_variable_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InlineSchema) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InlineSchema) ProtoMessage() {} + +func (x *InlineSchema) ProtoReflect() protoreflect.Message { + mi := &file_variable_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InlineSchema.ProtoReflect.Descriptor instead. +func (*InlineSchema) Descriptor() ([]byte, []int) { + return file_variable_proto_rawDescGZIP(), []int{7} +} + +func (x *InlineSchema) GetFields() []*SchemaField { + if x != nil { + return x.Fields + } + return nil +} + +// A FieldList is a sub-structure of a `Struct` +type StructField_FieldList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Fields []*StructField `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` +} + +func (x *StructField_FieldList) Reset() { + *x = StructField_FieldList{} + if protoimpl.UnsafeEnabled { + mi := &file_variable_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StructField_FieldList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StructField_FieldList) ProtoMessage() {} + +func (x *StructField_FieldList) ProtoReflect() protoreflect.Message { + mi := &file_variable_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StructField_FieldList.ProtoReflect.Descriptor instead. +func (*StructField_FieldList) Descriptor() ([]byte, []int) { + return file_variable_proto_rawDescGZIP(), []int{4, 0} +} + +func (x *StructField_FieldList) GetFields() []*StructField { + if x != nil { + return x.Fields + } + return nil +} + var File_variable_proto protoreflect.FileDescriptor var file_variable_proto_rawDesc = []byte{ @@ -278,35 +784,97 @@ var file_variable_proto_rawDesc = []byte{ 0x12, 0x0b, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, - 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0xc8, 0x01, 0x0a, 0x0d, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x1b, 0x0a, 0x08, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x6f, 0x62, 0x6a, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6a, 0x73, 0x6f, 0x6e, 0x4f, 0x62, 0x6a, 0x12, 0x1b, - 0x0a, 0x08, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x61, 0x72, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x00, 0x52, 0x07, 0x6a, 0x73, 0x6f, 0x6e, 0x41, 0x72, 0x72, 0x12, 0x18, 0x0a, 0x06, 0x64, - 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x06, 0x64, - 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x03, 0x73, - 0x74, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x73, 0x74, 0x72, 0x12, - 0x12, 0x0a, 0x03, 0x69, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x03, - 0x69, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x0c, 0x48, 0x00, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, 0xed, 0x01, 0x0a, 0x08, 0x56, - 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x27, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, - 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, - 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x33, 0x0a, - 0x0a, 0x77, 0x66, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x15, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, - 0x57, 0x66, 0x53, 0x70, 0x65, 0x63, 0x49, 0x64, 0x52, 0x08, 0x77, 0x66, 0x53, 0x70, 0x65, 0x63, - 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x06, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x42, 0x49, 0x0a, 0x1f, 0x69, 0x6f, + 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x12, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0xf7, 0x01, 0x0a, 0x0d, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x08, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x6f, 0x62, + 0x6a, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6a, 0x73, 0x6f, 0x6e, 0x4f, + 0x62, 0x6a, 0x12, 0x1b, 0x0a, 0x08, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x61, 0x72, 0x72, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6a, 0x73, 0x6f, 0x6e, 0x41, 0x72, 0x72, 0x12, + 0x18, 0x0a, 0x06, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x48, + 0x00, 0x52, 0x06, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x04, 0x62, 0x6f, 0x6f, + 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x12, + 0x12, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, + 0x73, 0x74, 0x72, 0x12, 0x12, 0x0a, 0x03, 0x69, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, + 0x48, 0x00, 0x52, 0x03, 0x69, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, + 0x2d, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x13, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x53, 0x74, + 0x72, 0x75, 0x63, 0x74, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x42, 0x07, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, 0xed, 0x01, + 0x0a, 0x08, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x27, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, + 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, + 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, + 0x12, 0x33, 0x0a, 0x0a, 0x77, 0x66, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, + 0x73, 0x65, 0x2e, 0x57, 0x66, 0x53, 0x70, 0x65, 0x63, 0x49, 0x64, 0x52, 0x08, 0x77, 0x66, 0x53, + 0x70, 0x65, 0x63, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x22, 0x6f, 0x0a, + 0x06, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x12, 0x32, 0x0a, 0x09, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6c, 0x69, 0x74, + 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x49, + 0x64, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x49, 0x64, 0x12, 0x31, 0x0a, 0x06, 0x73, + 0x74, 0x72, 0x75, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x69, + 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x49, 0x6e, 0x6c, 0x69, 0x6e, 0x65, + 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x06, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x22, 0x40, + 0x0a, 0x0c, 0x49, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x12, 0x30, + 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, + 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x72, + 0x75, 0x63, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, + 0x22, 0x87, 0x02, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x12, 0x3a, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, + 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, + 0x00, 0x52, 0x09, 0x70, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x33, 0x0a, 0x06, + 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, + 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x49, 0x6e, 0x6c, 0x69, 0x6e, + 0x65, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x72, 0x75, 0x63, + 0x74, 0x12, 0x38, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x22, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x53, 0x74, + 0x72, 0x75, 0x63, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4c, + 0x69, 0x73, 0x74, 0x48, 0x00, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x1a, 0x3d, 0x0a, 0x09, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, + 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, + 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x42, 0x0e, 0x0a, 0x0c, 0x73, 0x74, + 0x72, 0x75, 0x63, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xff, 0x01, 0x0a, 0x0b, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, + 0x0a, 0x08, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x08, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x3a, 0x0a, 0x09, 0x70, 0x72, + 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, + 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x69, 0x6d, + 0x69, 0x74, 0x69, 0x76, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x09, 0x70, 0x72, 0x69, + 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x34, 0x0a, 0x09, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6c, 0x69, 0x74, 0x74, + 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x49, 0x64, + 0x48, 0x00, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x49, 0x64, 0x12, 0x40, 0x0a, 0x0d, + 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, + 0x65, 0x2e, 0x49, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x48, 0x00, + 0x52, 0x0c, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x0c, + 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x99, 0x01, 0x0a, + 0x06, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x25, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, + 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x25, + 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x31, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, + 0x72, 0x73, 0x65, 0x2e, 0x49, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x40, 0x0a, 0x0c, 0x49, 0x6e, 0x6c, 0x69, + 0x6e, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x30, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, + 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, + 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x42, 0x49, 0x0a, 0x1f, 0x69, 0x6f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x09, 0x2e, 0x3b, 0x6c, 0x68, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0xaa, 0x02, 0x18, 0x4c, 0x69, 0x74, @@ -326,24 +894,47 @@ func file_variable_proto_rawDescGZIP() []byte { return file_variable_proto_rawDescData } -var file_variable_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_variable_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_variable_proto_goTypes = []interface{}{ (*VariableValue)(nil), // 0: littlehorse.VariableValue (*Variable)(nil), // 1: littlehorse.Variable - (*VariableId)(nil), // 2: littlehorse.VariableId - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp - (*WfSpecId)(nil), // 4: littlehorse.WfSpecId + (*Struct)(nil), // 2: littlehorse.Struct + (*InlineStruct)(nil), // 3: littlehorse.InlineStruct + (*StructField)(nil), // 4: littlehorse.StructField + (*SchemaField)(nil), // 5: littlehorse.SchemaField + (*Schema)(nil), // 6: littlehorse.Schema + (*InlineSchema)(nil), // 7: littlehorse.InlineSchema + (*StructField_FieldList)(nil), // 8: littlehorse.StructField.FieldList + (*VariableId)(nil), // 9: littlehorse.VariableId + (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp + (*WfSpecId)(nil), // 11: littlehorse.WfSpecId + (*SchemaId)(nil), // 12: littlehorse.SchemaId + (PrimitiveType)(0), // 13: littlehorse.PrimitiveType } var file_variable_proto_depIdxs = []int32{ - 2, // 0: littlehorse.Variable.id:type_name -> littlehorse.VariableId - 0, // 1: littlehorse.Variable.value:type_name -> littlehorse.VariableValue - 3, // 2: littlehorse.Variable.created_at:type_name -> google.protobuf.Timestamp - 4, // 3: littlehorse.Variable.wf_spec_id:type_name -> littlehorse.WfSpecId - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 2, // 0: littlehorse.VariableValue.struct:type_name -> littlehorse.Struct + 9, // 1: littlehorse.Variable.id:type_name -> littlehorse.VariableId + 0, // 2: littlehorse.Variable.value:type_name -> littlehorse.VariableValue + 10, // 3: littlehorse.Variable.created_at:type_name -> google.protobuf.Timestamp + 11, // 4: littlehorse.Variable.wf_spec_id:type_name -> littlehorse.WfSpecId + 12, // 5: littlehorse.Struct.schema_id:type_name -> littlehorse.SchemaId + 3, // 6: littlehorse.Struct.struct:type_name -> littlehorse.InlineStruct + 4, // 7: littlehorse.InlineStruct.fields:type_name -> littlehorse.StructField + 0, // 8: littlehorse.StructField.primitive:type_name -> littlehorse.VariableValue + 3, // 9: littlehorse.StructField.struct:type_name -> littlehorse.InlineStruct + 8, // 10: littlehorse.StructField.list:type_name -> littlehorse.StructField.FieldList + 13, // 11: littlehorse.SchemaField.primitive:type_name -> littlehorse.PrimitiveType + 12, // 12: littlehorse.SchemaField.schema_id:type_name -> littlehorse.SchemaId + 7, // 13: littlehorse.SchemaField.inline_schema:type_name -> littlehorse.InlineSchema + 12, // 14: littlehorse.Schema.id:type_name -> littlehorse.SchemaId + 7, // 15: littlehorse.Schema.schema:type_name -> littlehorse.InlineSchema + 5, // 16: littlehorse.InlineSchema.fields:type_name -> littlehorse.SchemaField + 4, // 17: littlehorse.StructField.FieldList.fields:type_name -> littlehorse.StructField + 18, // [18:18] is the sub-list for method output_type + 18, // [18:18] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name } func init() { file_variable_proto_init() } @@ -352,6 +943,7 @@ func file_variable_proto_init() { return } file_object_id_proto_init() + file_common_enums_proto_init() if !protoimpl.UnsafeEnabled { file_variable_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*VariableValue); i { @@ -377,6 +969,90 @@ func file_variable_proto_init() { return nil } } + file_variable_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Struct); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_variable_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InlineStruct); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_variable_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StructField); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_variable_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchemaField); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_variable_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Schema); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_variable_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InlineSchema); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_variable_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StructField_FieldList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } file_variable_proto_msgTypes[0].OneofWrappers = []interface{}{ (*VariableValue_JsonObj)(nil), @@ -386,14 +1062,26 @@ func file_variable_proto_init() { (*VariableValue_Str)(nil), (*VariableValue_Int)(nil), (*VariableValue_Bytes)(nil), + (*VariableValue_Struct)(nil), + } + file_variable_proto_msgTypes[4].OneofWrappers = []interface{}{ + (*StructField_Primitive)(nil), + (*StructField_Struct)(nil), + (*StructField_List)(nil), + } + file_variable_proto_msgTypes[5].OneofWrappers = []interface{}{ + (*SchemaField_Primitive)(nil), + (*SchemaField_SchemaId)(nil), + (*SchemaField_InlineSchema)(nil), } + file_variable_proto_msgTypes[6].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_variable_proto_rawDesc, NumEnums: 0, - NumMessages: 2, + NumMessages: 9, NumExtensions: 0, NumServices: 0, }, diff --git a/sdk-go/lhproto/wf_spec.pb.go b/sdk-go/lhproto/wf_spec.pb.go index 6b5db1a18..c231d8587 100644 --- a/sdk-go/lhproto/wf_spec.pb.go +++ b/sdk-go/lhproto/wf_spec.pb.go @@ -339,7 +339,7 @@ type JsonIndex struct { // has a field we should index. FieldPath string `protobuf:"bytes,1,opt,name=field_path,json=fieldPath,proto3" json:"field_path,omitempty"` // Is the type of the field we are indexing. - FieldType VariableType `protobuf:"varint,2,opt,name=field_type,json=fieldType,proto3,enum=littlehorse.VariableType" json:"field_type,omitempty"` + FieldType PrimitiveType `protobuf:"varint,2,opt,name=field_type,json=fieldType,proto3,enum=littlehorse.PrimitiveType" json:"field_type,omitempty"` } func (x *JsonIndex) Reset() { @@ -381,11 +381,11 @@ func (x *JsonIndex) GetFieldPath() string { return "" } -func (x *JsonIndex) GetFieldType() VariableType { +func (x *JsonIndex) GetFieldType() PrimitiveType { if x != nil { return x.FieldType } - return VariableType_JSON_OBJ + return PrimitiveType_JSON_OBJ } // Denotes a variable declaration at the ThreadSpec level. @@ -2344,366 +2344,366 @@ var file_wf_spec_proto_rawDesc = []byte{ 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x19, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x57, 0x66, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0e, 0x0a, - 0x0c, 0x77, 0x66, 0x5f, 0x67, 0x63, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x64, 0x0a, + 0x0c, 0x77, 0x66, 0x5f, 0x67, 0x63, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x65, 0x0a, 0x09, 0x4a, 0x73, 0x6f, 0x6e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x66, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x12, 0x38, 0x0a, 0x0a, 0x66, 0x69, 0x65, - 0x6c, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, - 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, - 0x61, 0x62, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x54, - 0x79, 0x70, 0x65, 0x22, 0x82, 0x02, 0x0a, 0x0c, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x56, 0x61, - 0x72, 0x44, 0x65, 0x66, 0x12, 0x31, 0x0a, 0x07, 0x76, 0x61, 0x72, 0x5f, 0x64, 0x65, 0x66, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, - 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x65, 0x66, 0x52, - 0x06, 0x76, 0x61, 0x72, 0x44, 0x65, 0x66, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, - 0x72, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, - 0x72, 0x65, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x61, 0x62, 0x6c, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x61, - 0x62, 0x6c, 0x65, 0x12, 0x39, 0x0a, 0x0c, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x74, 0x74, - 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x4a, 0x73, 0x6f, 0x6e, 0x49, 0x6e, 0x64, 0x65, - 0x78, 0x52, 0x0b, 0x6a, 0x73, 0x6f, 0x6e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x12, 0x48, - 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, - 0x73, 0x65, 0x2e, 0x57, 0x66, 0x52, 0x75, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, - 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0b, 0x61, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0xfe, 0x02, 0x0a, 0x0a, 0x54, 0x68, 0x72, - 0x65, 0x61, 0x64, 0x53, 0x70, 0x65, 0x63, 0x12, 0x38, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, - 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x53, 0x70, 0x65, 0x63, 0x2e, - 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, - 0x73, 0x12, 0x3e, 0x0a, 0x0d, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x64, 0x65, - 0x66, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, - 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x56, 0x61, 0x72, - 0x44, 0x65, 0x66, 0x52, 0x0c, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x65, 0x66, - 0x73, 0x12, 0x40, 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x5f, 0x64, - 0x65, 0x66, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x69, 0x74, 0x74, - 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, - 0x74, 0x44, 0x65, 0x66, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x44, - 0x65, 0x66, 0x73, 0x12, 0x52, 0x0a, 0x10, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, - 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x54, 0x68, 0x72, 0x65, - 0x61, 0x64, 0x52, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x48, 0x00, 0x52, 0x0f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x88, 0x01, 0x01, 0x1a, 0x4b, 0x0a, 0x0a, 0x4e, 0x6f, 0x64, 0x65, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, - 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x76, 0x0a, 0x15, 0x54, 0x68, 0x72, + 0x66, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x12, 0x39, 0x0a, 0x0a, 0x66, 0x69, 0x65, + 0x6c, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, + 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x69, 0x6d, + 0x69, 0x74, 0x69, 0x76, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, + 0x54, 0x79, 0x70, 0x65, 0x22, 0x82, 0x02, 0x0a, 0x0c, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x56, + 0x61, 0x72, 0x44, 0x65, 0x66, 0x12, 0x31, 0x0a, 0x07, 0x76, 0x61, 0x72, 0x5f, 0x64, 0x65, 0x66, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, + 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x65, 0x66, + 0x52, 0x06, 0x76, 0x61, 0x72, 0x44, 0x65, 0x66, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, + 0x69, 0x72, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, + 0x69, 0x72, 0x65, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x61, 0x62, + 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, + 0x61, 0x62, 0x6c, 0x65, 0x12, 0x39, 0x0a, 0x0c, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x64, + 0x65, 0x78, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x74, + 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x4a, 0x73, 0x6f, 0x6e, 0x49, 0x6e, 0x64, + 0x65, 0x78, 0x52, 0x0b, 0x6a, 0x73, 0x6f, 0x6e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x12, + 0x48, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, + 0x72, 0x73, 0x65, 0x2e, 0x57, 0x66, 0x52, 0x75, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, + 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0b, 0x61, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0xfe, 0x02, 0x0a, 0x0a, 0x54, 0x68, + 0x72, 0x65, 0x61, 0x64, 0x53, 0x70, 0x65, 0x63, 0x12, 0x38, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, + 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x53, 0x70, 0x65, 0x63, + 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x6e, 0x6f, 0x64, + 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x0d, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x64, + 0x65, 0x66, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x69, 0x74, 0x74, + 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x56, 0x61, + 0x72, 0x44, 0x65, 0x66, 0x52, 0x0c, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x65, + 0x66, 0x73, 0x12, 0x40, 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x5f, + 0x64, 0x65, 0x66, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x69, 0x74, + 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, + 0x70, 0x74, 0x44, 0x65, 0x66, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, + 0x44, 0x65, 0x66, 0x73, 0x12, 0x52, 0x0a, 0x10, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, + 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x52, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x12, 0x49, 0x0a, 0x20, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x5f, 0x61, 0x66, - 0x74, 0x65, 0x72, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x1d, - 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x54, 0x68, 0x72, 0x65, - 0x61, 0x64, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x12, 0x0a, - 0x10, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x67, 0x63, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x22, 0x8e, 0x01, 0x0a, 0x0c, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x44, - 0x65, 0x66, 0x12, 0x52, 0x0a, 0x15, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, - 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, - 0x49, 0x64, 0x52, 0x12, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x44, 0x65, 0x66, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, - 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x53, 0x70, 0x65, 0x63, 0x4e, 0x61, - 0x6d, 0x65, 0x22, 0xe5, 0x01, 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x68, 0x72, 0x65, - 0x61, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, - 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0e, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x53, 0x70, 0x65, 0x63, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x49, 0x0a, 0x09, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, - 0x65, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x4e, 0x6f, 0x64, - 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x09, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x1a, 0x5d, 0x0a, 0x0e, 0x56, - 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, - 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, - 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb4, 0x02, 0x0a, 0x18, 0x53, - 0x74, 0x61, 0x72, 0x74, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x54, 0x68, 0x72, 0x65, - 0x61, 0x64, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x68, 0x72, 0x65, 0x61, - 0x64, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0e, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x53, 0x70, 0x65, 0x63, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x52, 0x0a, 0x09, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, - 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, - 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, - 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x76, 0x61, 0x72, 0x69, - 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x08, 0x69, 0x74, 0x65, 0x72, 0x61, 0x62, 0x6c, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, - 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, - 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x69, 0x74, 0x65, 0x72, 0x61, 0x62, - 0x6c, 0x65, 0x1a, 0x5d, 0x0a, 0x0e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, - 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, - 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, - 0x01, 0x22, 0xa4, 0x02, 0x0a, 0x11, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x48, 0x61, 0x6e, - 0x64, 0x6c, 0x65, 0x72, 0x44, 0x65, 0x66, 0x12, 0x2a, 0x0a, 0x11, 0x68, 0x61, 0x6e, 0x64, 0x6c, + 0x63, 0x79, 0x48, 0x00, 0x52, 0x0f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x88, 0x01, 0x01, 0x1a, 0x4b, 0x0a, 0x0a, 0x4e, 0x6f, 0x64, 0x65, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, + 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x76, 0x0a, 0x15, 0x54, 0x68, + 0x72, 0x65, 0x61, 0x64, 0x52, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x12, 0x49, 0x0a, 0x20, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x5f, 0x61, + 0x66, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x65, 0x72, 0x6d, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, + 0x1d, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x54, 0x68, 0x72, + 0x65, 0x61, 0x64, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x12, + 0x0a, 0x10, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x67, 0x63, 0x5f, 0x70, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x22, 0x8e, 0x01, 0x0a, 0x0c, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, + 0x44, 0x65, 0x66, 0x12, 0x52, 0x0a, 0x15, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, + 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, + 0x66, 0x49, 0x64, 0x52, 0x12, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x44, 0x65, 0x66, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x53, 0x70, 0x65, 0x63, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x10, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x5f, - 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, - 0x0f, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, - 0x12, 0x5d, 0x0a, 0x13, 0x61, 0x6e, 0x79, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, - 0x6f, 0x66, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, - 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x46, 0x61, 0x69, 0x6c, - 0x75, 0x72, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x44, 0x65, 0x66, 0x2e, 0x4c, 0x48, - 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x10, 0x61, - 0x6e, 0x79, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x4f, 0x66, 0x54, 0x79, 0x70, 0x65, 0x22, - 0x43, 0x0a, 0x0d, 0x4c, 0x48, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x16, 0x0a, 0x12, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x46, 0x41, 0x49, 0x4c, - 0x55, 0x52, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x50, 0x54, 0x49, - 0x4f, 0x4e, 0x10, 0x01, 0x42, 0x12, 0x0a, 0x10, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, - 0x74, 0x6f, 0x5f, 0x63, 0x61, 0x74, 0x63, 0x68, 0x22, 0xdb, 0x03, 0x0a, 0x12, 0x57, 0x61, 0x69, - 0x74, 0x46, 0x6f, 0x72, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x12, - 0x4c, 0x0a, 0x07, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x30, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x57, - 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x4e, 0x6f, 0x64, - 0x65, 0x2e, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x54, 0x6f, 0x57, 0x61, 0x69, 0x74, 0x46, - 0x6f, 0x72, 0x48, 0x00, 0x52, 0x07, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x12, 0x42, 0x0a, - 0x0b, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, - 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, - 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x4c, 0x69, 0x73, - 0x74, 0x12, 0x5d, 0x0a, 0x1b, 0x70, 0x65, 0x72, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, - 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, - 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x48, 0x61, 0x6e, 0x64, - 0x6c, 0x65, 0x72, 0x44, 0x65, 0x66, 0x52, 0x18, 0x70, 0x65, 0x72, 0x54, 0x68, 0x72, 0x65, 0x61, - 0x64, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, - 0x1a, 0x5e, 0x0a, 0x0f, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x54, 0x6f, 0x57, 0x61, 0x69, 0x74, - 0x46, 0x6f, 0x72, 0x12, 0x4b, 0x0a, 0x11, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x72, 0x75, - 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, - 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, - 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, - 0x0f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x52, 0x75, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, - 0x1a, 0x5d, 0x0a, 0x10, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x54, 0x6f, 0x57, 0x61, 0x69, - 0x74, 0x46, 0x6f, 0x72, 0x12, 0x49, 0x0a, 0x07, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, - 0x72, 0x73, 0x65, 0x2e, 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x54, 0x68, 0x72, 0x65, 0x61, - 0x64, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x2e, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x54, 0x6f, 0x57, - 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x52, 0x07, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x42, - 0x15, 0x0a, 0x13, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x5f, 0x74, 0x6f, 0x5f, 0x77, 0x61, - 0x69, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x22, 0xb1, 0x01, 0x0a, 0x11, 0x45, 0x78, 0x74, 0x65, 0x72, - 0x6e, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x52, 0x0a, 0x15, - 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x64, - 0x65, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, - 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, - 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x49, 0x64, 0x52, 0x12, 0x65, 0x78, - 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x49, 0x64, - 0x12, 0x48, 0x0a, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x6f, - 0x6e, 0x64, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, - 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, - 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0e, 0x74, 0x69, 0x6d, 0x65, - 0x6f, 0x75, 0x74, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x10, 0x0a, 0x0e, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x22, 0x59, 0x0a, 0x08, - 0x45, 0x78, 0x69, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x3d, 0x0a, 0x0b, 0x66, 0x61, 0x69, 0x6c, - 0x75, 0x72, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x46, 0x61, 0x69, 0x6c, - 0x75, 0x72, 0x65, 0x44, 0x65, 0x66, 0x48, 0x00, 0x52, 0x0a, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, - 0x65, 0x44, 0x65, 0x66, 0x88, 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x66, 0x61, 0x69, 0x6c, - 0x75, 0x72, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x22, 0x95, 0x01, 0x0a, 0x0a, 0x46, 0x61, 0x69, 0x6c, - 0x75, 0x72, 0x65, 0x44, 0x65, 0x66, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, - 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x61, - 0x69, 0x6c, 0x75, 0x72, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, - 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, - 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, - 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, - 0xb8, 0x06, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x38, 0x0a, 0x0e, 0x6f, 0x75, 0x74, 0x67, - 0x6f, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x64, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x11, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x45, - 0x64, 0x67, 0x65, 0x52, 0x0d, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x45, 0x64, 0x67, - 0x65, 0x73, 0x12, 0x49, 0x0a, 0x10, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x68, 0x61, - 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, - 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x75, - 0x72, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x44, 0x65, 0x66, 0x52, 0x0f, 0x66, 0x61, - 0x69, 0x6c, 0x75, 0x72, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, 0x12, 0x3d, 0x0a, - 0x0a, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, - 0x52, 0x0a, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x2b, 0x0a, 0x04, - 0x65, 0x78, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6c, 0x69, 0x74, - 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x45, 0x78, 0x69, 0x74, 0x4e, 0x6f, 0x64, - 0x65, 0x48, 0x00, 0x52, 0x04, 0x65, 0x78, 0x69, 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x74, 0x61, 0x73, - 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, - 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, - 0x52, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x12, 0x47, 0x0a, 0x0e, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, - 0x61, 0x6c, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, - 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x45, 0x78, 0x74, - 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, - 0x52, 0x0d, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, - 0x41, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, - 0x72, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x4e, - 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x68, 0x72, 0x65, - 0x61, 0x64, 0x12, 0x4b, 0x0a, 0x10, 0x77, 0x61, 0x69, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x74, - 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, - 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x57, 0x61, 0x69, 0x74, 0x46, - 0x6f, 0x72, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, - 0x0e, 0x77, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x12, - 0x28, 0x0a, 0x03, 0x6e, 0x6f, 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, - 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x4e, 0x6f, 0x70, 0x4e, 0x6f, - 0x64, 0x65, 0x48, 0x00, 0x52, 0x03, 0x6e, 0x6f, 0x70, 0x12, 0x2e, 0x0a, 0x05, 0x73, 0x6c, 0x65, - 0x65, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, - 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x53, 0x6c, 0x65, 0x65, 0x70, 0x4e, 0x6f, 0x64, 0x65, - 0x48, 0x00, 0x52, 0x05, 0x73, 0x6c, 0x65, 0x65, 0x70, 0x12, 0x38, 0x0a, 0x09, 0x75, 0x73, 0x65, - 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, - 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, - 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54, - 0x61, 0x73, 0x6b, 0x12, 0x5d, 0x0a, 0x16, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6d, 0x75, 0x6c, - 0x74, 0x69, 0x70, 0x6c, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x18, 0x0f, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, - 0x65, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x54, - 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x14, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x54, 0x68, 0x72, 0x65, 0x61, - 0x64, 0x73, 0x12, 0x3e, 0x0a, 0x0b, 0x74, 0x68, 0x72, 0x6f, 0x77, 0x5f, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, - 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x54, 0x68, 0x72, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x74, 0x68, 0x72, 0x6f, 0x77, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x42, 0x06, 0x0a, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x22, 0x8e, 0x01, 0x0a, 0x0e, 0x54, - 0x68, 0x72, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x41, 0x0a, - 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, - 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, - 0x65, 0x66, 0x49, 0x64, 0x52, 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x49, 0x64, - 0x12, 0x39, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, - 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, - 0x6e, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0xb8, 0x04, 0x0a, 0x0c, - 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x2b, 0x0a, 0x12, - 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x64, 0x65, 0x66, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x54, 0x61, - 0x73, 0x6b, 0x44, 0x65, 0x66, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x0a, 0x75, 0x73, 0x65, - 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, - 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, - 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, - 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x88, 0x01, 0x01, 0x12, 0x3d, - 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x61, 0x6d, 0x65, 0x22, 0xe5, 0x01, 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x68, 0x72, + 0x65, 0x61, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x68, 0x72, 0x65, 0x61, + 0x64, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0e, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x53, 0x70, 0x65, 0x63, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x49, 0x0a, 0x09, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, + 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x4e, 0x6f, + 0x64, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x09, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x1a, 0x5d, 0x0a, 0x0e, + 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, - 0x48, 0x01, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x36, 0x0a, - 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x54, 0x41, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x52, 0x07, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x36, 0x0a, 0x15, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x61, - 0x73, 0x6b, 0x5f, 0x64, 0x65, 0x66, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x05, 0x48, 0x02, 0x52, 0x12, 0x75, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, - 0x44, 0x65, 0x66, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x3a, 0x0a, - 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, - 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, - 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x03, 0x52, - 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x69, 0x0a, 0x1e, 0x6f, 0x6e, 0x5f, - 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x78, 0x63, - 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, - 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, - 0x6e, 0x74, 0x48, 0x04, 0x52, 0x1b, 0x6f, 0x6e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, - 0x65, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, - 0x18, 0x0a, 0x16, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x64, 0x65, - 0x66, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6e, 0x6f, - 0x74, 0x65, 0x73, 0x42, 0x21, 0x0a, 0x1f, 0x5f, 0x6f, 0x6e, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, - 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x0d, 0x45, 0x64, 0x67, 0x65, 0x43, - 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, - 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x6c, - 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, - 0x72, 0x12, 0x33, 0x0a, 0x04, 0x6c, 0x65, 0x66, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb4, 0x02, 0x0a, 0x18, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x54, 0x68, 0x72, + 0x65, 0x61, 0x64, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x68, 0x72, 0x65, + 0x61, 0x64, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x53, 0x70, 0x65, 0x63, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x52, 0x0a, 0x09, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, + 0x72, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, + 0x65, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x2e, 0x56, 0x61, 0x72, + 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x76, 0x61, 0x72, + 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x08, 0x69, 0x74, 0x65, 0x72, 0x61, 0x62, + 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, + 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, + 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x69, 0x74, 0x65, 0x72, 0x61, + 0x62, 0x6c, 0x65, 0x1a, 0x5d, 0x0a, 0x0e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, + 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, + 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0xa4, 0x02, 0x0a, 0x11, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x48, 0x61, + 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x44, 0x65, 0x66, 0x12, 0x2a, 0x0a, 0x11, 0x68, 0x61, 0x6e, 0x64, + 0x6c, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x53, 0x70, 0x65, 0x63, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x10, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, + 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, + 0x52, 0x0f, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, + 0x65, 0x12, 0x5d, 0x0a, 0x13, 0x61, 0x6e, 0x79, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, + 0x5f, 0x6f, 0x66, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, + 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x46, 0x61, 0x69, + 0x6c, 0x75, 0x72, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x44, 0x65, 0x66, 0x2e, 0x4c, + 0x48, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x10, + 0x61, 0x6e, 0x79, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x4f, 0x66, 0x54, 0x79, 0x70, 0x65, + 0x22, 0x43, 0x0a, 0x0d, 0x4c, 0x48, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x16, 0x0a, 0x12, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x46, 0x41, 0x49, + 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x50, 0x54, + 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x42, 0x12, 0x0a, 0x10, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, + 0x5f, 0x74, 0x6f, 0x5f, 0x63, 0x61, 0x74, 0x63, 0x68, 0x22, 0xdb, 0x03, 0x0a, 0x12, 0x57, 0x61, + 0x69, 0x74, 0x46, 0x6f, 0x72, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x4e, 0x6f, 0x64, 0x65, + 0x12, 0x4c, 0x0a, 0x07, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x30, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, + 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x4e, 0x6f, + 0x64, 0x65, 0x2e, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x54, 0x6f, 0x57, 0x61, 0x69, 0x74, + 0x46, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x07, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x12, 0x42, + 0x0a, 0x0b, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, + 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, + 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x4c, 0x69, + 0x73, 0x74, 0x12, 0x5d, 0x0a, 0x1b, 0x70, 0x65, 0x72, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, + 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, + 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x48, 0x61, 0x6e, + 0x64, 0x6c, 0x65, 0x72, 0x44, 0x65, 0x66, 0x52, 0x18, 0x70, 0x65, 0x72, 0x54, 0x68, 0x72, 0x65, + 0x61, 0x64, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, + 0x73, 0x1a, 0x5e, 0x0a, 0x0f, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x54, 0x6f, 0x57, 0x61, 0x69, + 0x74, 0x46, 0x6f, 0x72, 0x12, 0x4b, 0x0a, 0x11, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x72, + 0x75, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, - 0x52, 0x04, 0x6c, 0x65, 0x66, 0x74, 0x12, 0x35, 0x0a, 0x05, 0x72, 0x69, 0x67, 0x68, 0x74, 0x18, + 0x52, 0x0f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x52, 0x75, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, + 0x72, 0x1a, 0x5d, 0x0a, 0x10, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x54, 0x6f, 0x57, 0x61, + 0x69, 0x74, 0x46, 0x6f, 0x72, 0x12, 0x49, 0x0a, 0x07, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, + 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x54, 0x68, 0x72, 0x65, + 0x61, 0x64, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x2e, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x54, 0x6f, + 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x52, 0x07, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, + 0x42, 0x15, 0x0a, 0x13, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x5f, 0x74, 0x6f, 0x5f, 0x77, + 0x61, 0x69, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x22, 0xb1, 0x01, 0x0a, 0x11, 0x45, 0x78, 0x74, 0x65, + 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x52, 0x0a, + 0x15, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, + 0x64, 0x65, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, + 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x49, 0x64, 0x52, 0x12, 0x65, + 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x49, + 0x64, 0x12, 0x48, 0x0a, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x65, 0x63, + 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, + 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, + 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0e, 0x74, 0x69, 0x6d, + 0x65, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x10, 0x0a, 0x0e, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x22, 0x59, 0x0a, + 0x08, 0x45, 0x78, 0x69, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x3d, 0x0a, 0x0b, 0x66, 0x61, 0x69, + 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x46, 0x61, 0x69, + 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x66, 0x48, 0x00, 0x52, 0x0a, 0x66, 0x61, 0x69, 0x6c, 0x75, + 0x72, 0x65, 0x44, 0x65, 0x66, 0x88, 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x66, 0x61, 0x69, + 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x22, 0x95, 0x01, 0x0a, 0x0a, 0x46, 0x61, 0x69, + 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x66, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x61, 0x69, 0x6c, 0x75, + 0x72, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66, + 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, - 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x72, 0x69, 0x67, 0x68, 0x74, 0x22, 0xc7, 0x01, - 0x0a, 0x04, 0x45, 0x64, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x69, 0x6e, 0x6b, 0x5f, 0x6e, - 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x73, 0x69, 0x6e, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x09, - 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x45, 0x64, - 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x09, 0x63, - 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x4c, 0x0a, 0x12, 0x76, - 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, - 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x75, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, - 0x4d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x63, 0x6f, - 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x09, 0x0a, 0x07, 0x4e, 0x6f, 0x70, 0x4e, 0x6f, - 0x64, 0x65, 0x22, 0xde, 0x01, 0x0a, 0x09, 0x53, 0x6c, 0x65, 0x65, 0x70, 0x4e, 0x6f, 0x64, 0x65, - 0x12, 0x42, 0x0a, 0x0b, 0x72, 0x61, 0x77, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, - 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, - 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x61, 0x77, 0x53, 0x65, 0x63, - 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x3f, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, - 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, - 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x3c, 0x0a, 0x08, 0x69, 0x73, 0x6f, 0x5f, 0x64, 0x61, 0x74, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, - 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, - 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x69, 0x73, 0x6f, 0x44, - 0x61, 0x74, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x73, 0x6c, 0x65, 0x65, 0x70, 0x5f, 0x6c, 0x65, 0x6e, - 0x67, 0x74, 0x68, 0x22, 0xc7, 0x02, 0x0a, 0x16, 0x57, 0x66, 0x53, 0x70, 0x65, 0x63, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, - 0x0a, 0x11, 0x6e, 0x65, 0x77, 0x5f, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x6e, 0x65, 0x77, 0x4d, 0x61, - 0x6a, 0x6f, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, - 0x77, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x73, 0x0a, - 0x16, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x6d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, - 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x57, 0x66, 0x53, 0x70, - 0x65, 0x63, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x53, 0x70, 0x65, 0x63, 0x4d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x14, 0x74, 0x68, - 0x72, 0x65, 0x61, 0x64, 0x53, 0x70, 0x65, 0x63, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x1a, 0x69, 0x0a, 0x19, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x53, 0x70, 0x65, 0x63, - 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x20, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x54, + 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, + 0x74, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x22, 0xb8, 0x06, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x38, 0x0a, 0x0e, 0x6f, 0x75, 0x74, + 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x64, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x11, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, + 0x45, 0x64, 0x67, 0x65, 0x52, 0x0d, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x45, 0x64, + 0x67, 0x65, 0x73, 0x12, 0x49, 0x0a, 0x10, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x68, + 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, + 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x46, 0x61, 0x69, 0x6c, + 0x75, 0x72, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x44, 0x65, 0x66, 0x52, 0x0f, 0x66, + 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, 0x12, 0x3d, + 0x0a, 0x0a, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, + 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x48, + 0x00, 0x52, 0x0a, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x2b, 0x0a, + 0x04, 0x65, 0x78, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6c, 0x69, + 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x45, 0x78, 0x69, 0x74, 0x4e, 0x6f, + 0x64, 0x65, 0x48, 0x00, 0x52, 0x04, 0x65, 0x78, 0x69, 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x74, 0x61, + 0x73, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, + 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x48, + 0x00, 0x52, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x12, 0x47, 0x0a, 0x0e, 0x65, 0x78, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1e, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x45, 0x78, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x48, + 0x00, 0x52, 0x0d, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x12, 0x41, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, + 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, + 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x68, 0x72, + 0x65, 0x61, 0x64, 0x12, 0x4b, 0x0a, 0x10, 0x77, 0x61, 0x69, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x5f, + 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, + 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x57, 0x61, 0x69, 0x74, + 0x46, 0x6f, 0x72, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, + 0x52, 0x0e, 0x77, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, + 0x12, 0x28, 0x0a, 0x03, 0x6e, 0x6f, 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x4e, 0x6f, 0x70, 0x4e, + 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x03, 0x6e, 0x6f, 0x70, 0x12, 0x2e, 0x0a, 0x05, 0x73, 0x6c, + 0x65, 0x65, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x74, 0x74, + 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x53, 0x6c, 0x65, 0x65, 0x70, 0x4e, 0x6f, 0x64, + 0x65, 0x48, 0x00, 0x52, 0x05, 0x73, 0x6c, 0x65, 0x65, 0x70, 0x12, 0x38, 0x0a, 0x09, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, + 0x54, 0x61, 0x73, 0x6b, 0x12, 0x5d, 0x0a, 0x16, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6d, 0x75, + 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x18, 0x0f, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, + 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, + 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x14, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x54, 0x68, 0x72, 0x65, + 0x61, 0x64, 0x73, 0x12, 0x3e, 0x0a, 0x0b, 0x74, 0x68, 0x72, 0x6f, 0x77, 0x5f, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, + 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x54, 0x68, 0x72, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x74, 0x68, 0x72, 0x6f, 0x77, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x42, 0x06, 0x0a, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x22, 0x8e, 0x01, 0x0a, 0x0e, + 0x54, 0x68, 0x72, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x41, + 0x0a, 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, + 0x73, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x44, 0x65, 0x66, 0x49, 0x64, 0x52, 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x49, + 0x64, 0x12, 0x39, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, + 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, + 0x65, 0x6e, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0xb8, 0x04, 0x0a, + 0x0c, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x2b, 0x0a, + 0x12, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x64, 0x65, 0x66, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x54, + 0x61, 0x73, 0x6b, 0x44, 0x65, 0x66, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x0a, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, + 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, + 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x48, + 0x00, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x88, 0x01, 0x01, 0x12, + 0x3d, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, + 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, + 0x74, 0x48, 0x01, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x36, + 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1c, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x55, 0x54, + 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x52, 0x07, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x36, 0x0a, 0x15, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x64, 0x65, 0x66, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x05, 0x48, 0x02, 0x52, 0x12, 0x75, 0x73, 0x65, 0x72, 0x54, 0x61, 0x73, + 0x6b, 0x44, 0x65, 0x66, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x3a, + 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, + 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, + 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x03, + 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x69, 0x0a, 0x1e, 0x6f, 0x6e, + 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x78, + 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, + 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, + 0x65, 0x6e, 0x74, 0x48, 0x04, 0x52, 0x1b, 0x6f, 0x6e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, + 0x6d, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x42, 0x18, 0x0a, 0x16, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x64, + 0x65, 0x66, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6e, + 0x6f, 0x74, 0x65, 0x73, 0x42, 0x21, 0x0a, 0x1f, 0x5f, 0x6f, 0x6e, 0x5f, 0x63, 0x61, 0x6e, 0x63, + 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x0d, 0x45, 0x64, 0x67, 0x65, + 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, + 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, + 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, + 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x12, 0x33, 0x0a, 0x04, 0x6c, 0x65, 0x66, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, + 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, + 0x74, 0x52, 0x04, 0x6c, 0x65, 0x66, 0x74, 0x12, 0x35, 0x0a, 0x05, 0x72, 0x69, 0x67, 0x68, 0x74, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, + 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, + 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x72, 0x69, 0x67, 0x68, 0x74, 0x22, 0xc7, + 0x01, 0x0a, 0x04, 0x45, 0x64, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x69, 0x6e, 0x6b, 0x5f, + 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x73, 0x69, 0x6e, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3d, 0x0a, + 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x45, + 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x09, + 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x4c, 0x0a, 0x12, + 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, + 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4d, + 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, + 0x65, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x63, + 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x09, 0x0a, 0x07, 0x4e, 0x6f, 0x70, 0x4e, + 0x6f, 0x64, 0x65, 0x22, 0xde, 0x01, 0x0a, 0x09, 0x53, 0x6c, 0x65, 0x65, 0x70, 0x4e, 0x6f, 0x64, + 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x72, 0x61, 0x77, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, + 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x73, 0x73, + 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x61, 0x77, 0x53, 0x65, + 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x3f, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, + 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, + 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x09, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x3c, 0x0a, 0x08, 0x69, 0x73, 0x6f, 0x5f, 0x64, 0x61, + 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, + 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, + 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x69, 0x73, 0x6f, + 0x44, 0x61, 0x74, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x73, 0x6c, 0x65, 0x65, 0x70, 0x5f, 0x6c, 0x65, + 0x6e, 0x67, 0x74, 0x68, 0x22, 0xc7, 0x02, 0x0a, 0x16, 0x57, 0x66, 0x53, 0x70, 0x65, 0x63, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x2a, 0x0a, 0x11, 0x6e, 0x65, 0x77, 0x5f, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x5f, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x6e, 0x65, 0x77, 0x4d, + 0x61, 0x6a, 0x6f, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x6e, + 0x65, 0x77, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x73, + 0x0a, 0x16, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, + 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x57, 0x66, 0x53, + 0x70, 0x65, 0x63, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x53, 0x70, 0x65, 0x63, 0x4d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x14, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x53, 0x70, 0x65, 0x63, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x84, 0x02, - 0x0a, 0x13, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x53, 0x70, 0x65, 0x63, 0x4d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x14, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x68, 0x72, - 0x65, 0x61, 0x64, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x11, 0x6e, 0x65, 0x77, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x53, 0x70, - 0x65, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x5d, 0x0a, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x34, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x54, 0x68, - 0x72, 0x65, 0x61, 0x64, 0x53, 0x70, 0x65, 0x63, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x6e, 0x6f, 0x64, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x5d, 0x0a, 0x13, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x30, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, - 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x22, 0x33, 0x0a, 0x0d, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0d, 0x6e, 0x65, 0x77, 0x5f, 0x6e, 0x6f, 0x64, - 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, - 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x2a, 0x4e, 0x0a, 0x18, 0x57, 0x66, 0x52, - 0x75, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, - 0x56, 0x41, 0x52, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, - 0x5f, 0x56, 0x41, 0x52, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x49, 0x4e, 0x48, 0x45, 0x52, 0x49, - 0x54, 0x45, 0x44, 0x5f, 0x56, 0x41, 0x52, 0x10, 0x02, 0x42, 0x49, 0x0a, 0x1f, 0x69, 0x6f, 0x2e, - 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x09, - 0x2e, 0x3b, 0x6c, 0x68, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0xaa, 0x02, 0x18, 0x4c, 0x69, 0x74, 0x74, - 0x6c, 0x65, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x6e, 0x73, 0x1a, 0x69, 0x0a, 0x19, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x53, 0x70, 0x65, + 0x63, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, + 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x53, 0x70, 0x65, 0x63, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x84, + 0x02, 0x0a, 0x13, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x53, 0x70, 0x65, 0x63, 0x4d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x14, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x68, + 0x72, 0x65, 0x61, 0x64, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6e, 0x65, 0x77, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x53, + 0x70, 0x65, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x5d, 0x0a, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x34, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x54, + 0x68, 0x72, 0x65, 0x61, 0x64, 0x53, 0x70, 0x65, 0x63, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x6e, 0x6f, 0x64, 0x65, 0x4d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x5d, 0x0a, 0x13, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x4e, 0x6f, 0x64, + 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x33, 0x0a, 0x0d, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0d, 0x6e, 0x65, 0x77, 0x5f, 0x6e, 0x6f, + 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, + 0x65, 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x2a, 0x4e, 0x0a, 0x18, 0x57, 0x66, + 0x52, 0x75, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, + 0x5f, 0x56, 0x41, 0x52, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, + 0x45, 0x5f, 0x56, 0x41, 0x52, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x49, 0x4e, 0x48, 0x45, 0x52, + 0x49, 0x54, 0x45, 0x44, 0x5f, 0x56, 0x41, 0x52, 0x10, 0x02, 0x42, 0x49, 0x0a, 0x1f, 0x69, 0x6f, + 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x73, 0x64, 0x6b, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x09, 0x2e, 0x3b, 0x6c, 0x68, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0xaa, 0x02, 0x18, 0x4c, 0x69, 0x74, + 0x74, 0x6c, 0x65, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2760,7 +2760,7 @@ var file_wf_spec_proto_goTypes = []interface{}{ (*WfSpecId)(nil), // 36: littlehorse.WfSpecId (*timestamppb.Timestamp)(nil), // 37: google.protobuf.Timestamp (MetadataStatus)(0), // 38: littlehorse.MetadataStatus - (VariableType)(0), // 39: littlehorse.VariableType + (PrimitiveType)(0), // 39: littlehorse.PrimitiveType (*VariableDef)(nil), // 40: littlehorse.VariableDef (*ExternalEventDefId)(nil), // 41: littlehorse.ExternalEventDefId (*VariableAssignment)(nil), // 42: littlehorse.VariableAssignment @@ -2779,7 +2779,7 @@ var file_wf_spec_proto_depIdxs = []int32{ 3, // 5: littlehorse.WfSpec.retention_policy:type_name -> littlehorse.WorkflowRetentionPolicy 24, // 6: littlehorse.WfSpec.migration:type_name -> littlehorse.WfSpecVersionMigration 28, // 7: littlehorse.WfSpec.parent_wf_spec:type_name -> littlehorse.WfSpec.ParentWfSpecReference - 39, // 8: littlehorse.JsonIndex.field_type:type_name -> littlehorse.VariableType + 39, // 8: littlehorse.JsonIndex.field_type:type_name -> littlehorse.PrimitiveType 40, // 9: littlehorse.ThreadVarDef.var_def:type_name -> littlehorse.VariableDef 4, // 10: littlehorse.ThreadVarDef.json_indexes:type_name -> littlehorse.JsonIndex 0, // 11: littlehorse.ThreadVarDef.access_level:type_name -> littlehorse.WfRunVariableAccessLevel diff --git a/sdk-go/lhproto/workflow_event.pb.go b/sdk-go/lhproto/workflow_event.pb.go index 9c0925c0b..b42c2edd1 100644 --- a/sdk-go/lhproto/workflow_event.pb.go +++ b/sdk-go/lhproto/workflow_event.pb.go @@ -93,14 +93,20 @@ func (x *WorkflowEvent) GetCreatedAt() *timestamppb.Timestamp { return nil } +// A `WorkflowEventDef` defines the blueprint for a `WorkflowEvent`. type WorkflowEventDef struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id *WorkflowEventDefId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // The `id` of the `WorkflowEventDef`. + Id *WorkflowEventDefId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // The timestamp at which the `WorkflowEventDef` was created. CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - Type VariableType `protobuf:"varint,3,opt,name=type,proto3,enum=littlehorse.VariableType" json:"type,omitempty"` + // The type of the content of the `WorkflowEvent`. + // + // TODO: Support schemas + Type PrimitiveType `protobuf:"varint,3,opt,name=type,proto3,enum=littlehorse.PrimitiveType" json:"type,omitempty"` } func (x *WorkflowEventDef) Reset() { @@ -149,11 +155,11 @@ func (x *WorkflowEventDef) GetCreatedAt() *timestamppb.Timestamp { return nil } -func (x *WorkflowEventDef) GetType() VariableType { +func (x *WorkflowEventDef) GetType() PrimitiveType { if x != nil { return x.Type } - return VariableType_JSON_OBJ + return PrimitiveType_JSON_OBJ } var File_workflow_event_proto protoreflect.FileDescriptor @@ -177,7 +183,7 @@ var file_workflow_event_proto_rawDesc = []byte{ 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0xad, 0x01, 0x0a, 0x10, 0x57, + 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0xae, 0x01, 0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x12, 0x2f, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, @@ -185,15 +191,15 @@ var file_workflow_event_proto_rawDesc = []byte{ 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x6c, 0x69, 0x74, 0x74, - 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x42, 0x49, 0x0a, 0x1f, 0x69, 0x6f, - 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x73, 0x64, 0x6b, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x09, 0x2e, 0x3b, 0x6c, 0x68, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0xaa, 0x02, 0x18, 0x4c, 0x69, 0x74, - 0x74, 0x6c, 0x65, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x2e, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x74, 0x74, + 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x42, 0x49, 0x0a, 0x1f, 0x69, + 0x6f, 0x2e, 0x6c, 0x69, 0x74, 0x74, 0x6c, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x73, 0x64, + 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x09, 0x2e, 0x3b, 0x6c, 0x68, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0xaa, 0x02, 0x18, 0x4c, 0x69, + 0x74, 0x74, 0x6c, 0x65, 0x48, 0x6f, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -216,7 +222,7 @@ var file_workflow_event_proto_goTypes = []interface{}{ (*VariableValue)(nil), // 3: littlehorse.VariableValue (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp (*WorkflowEventDefId)(nil), // 5: littlehorse.WorkflowEventDefId - (VariableType)(0), // 6: littlehorse.VariableType + (PrimitiveType)(0), // 6: littlehorse.PrimitiveType } var file_workflow_event_proto_depIdxs = []int32{ 2, // 0: littlehorse.WorkflowEvent.id:type_name -> littlehorse.WorkflowEventId @@ -224,7 +230,7 @@ var file_workflow_event_proto_depIdxs = []int32{ 4, // 2: littlehorse.WorkflowEvent.created_at:type_name -> google.protobuf.Timestamp 5, // 3: littlehorse.WorkflowEventDef.id:type_name -> littlehorse.WorkflowEventDefId 4, // 4: littlehorse.WorkflowEventDef.created_at:type_name -> google.protobuf.Timestamp - 6, // 5: littlehorse.WorkflowEventDef.type:type_name -> littlehorse.VariableType + 6, // 5: littlehorse.WorkflowEventDef.type:type_name -> littlehorse.PrimitiveType 6, // [6:6] is the sub-list for method output_type 6, // [6:6] is the sub-list for method input_type 6, // [6:6] is the sub-list for extension type_name diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/CommonEnums.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/CommonEnums.java index 0e5c7f927..39e65191d 100644 --- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/CommonEnums.java +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/CommonEnums.java @@ -34,16 +34,16 @@ public static void registerAllExtensions( "_SERIALIZING_ERROR\020\005\022\034\n\030TASK_INPUT_VAR_S" + "UB_ERROR\020\006\022\022\n\016TASK_EXCEPTION\020\010\022\020\n\014TASK_P" + "ENDING\020\t*=\n\023MetricsWindowLength\022\r\n\tMINUT" + - "ES_5\020\000\022\013\n\007HOURS_2\020\001\022\n\n\006DAYS_1\020\002*]\n\014Varia" + - "bleType\022\014\n\010JSON_OBJ\020\000\022\014\n\010JSON_ARR\020\001\022\n\n\006D" + - "OUBLE\020\002\022\010\n\004BOOL\020\003\022\007\n\003STR\020\004\022\007\n\003INT\020\005\022\t\n\005B" + - "YTES\020\006*\266\001\n\013LHErrorType\022\021\n\rCHILD_FAILURE\020" + - "\000\022\021\n\rVAR_SUB_ERROR\020\001\022\026\n\022VAR_MUTATION_ERR" + - "OR\020\002\022\027\n\023USER_TASK_CANCELLED\020\003\022\013\n\007TIMEOUT" + - "\020\004\022\020\n\014TASK_FAILURE\020\005\022\r\n\tVAR_ERROR\020\006\022\016\n\nT" + - "ASK_ERROR\020\007\022\022\n\016INTERNAL_ERROR\020\010BI\n\037io.li" + - "ttlehorse.sdk.common.protoP\001Z\t.;lhproto\252" + - "\002\030LittleHorse.Common.Protob\006proto3" + "ES_5\020\000\022\013\n\007HOURS_2\020\001\022\n\n\006DAYS_1\020\002*^\n\rPrimi" + + "tiveType\022\014\n\010JSON_OBJ\020\000\022\014\n\010JSON_ARR\020\001\022\n\n\006" + + "DOUBLE\020\002\022\010\n\004BOOL\020\003\022\007\n\003STR\020\004\022\007\n\003INT\020\005\022\t\n\005" + + "BYTES\020\006*\266\001\n\013LHErrorType\022\021\n\rCHILD_FAILURE" + + "\020\000\022\021\n\rVAR_SUB_ERROR\020\001\022\026\n\022VAR_MUTATION_ER" + + "ROR\020\002\022\027\n\023USER_TASK_CANCELLED\020\003\022\013\n\007TIMEOU" + + "T\020\004\022\020\n\014TASK_FAILURE\020\005\022\r\n\tVAR_ERROR\020\006\022\016\n\n" + + "TASK_ERROR\020\007\022\022\n\016INTERNAL_ERROR\020\010BI\n\037io.l" + + "ittlehorse.sdk.common.protoP\001Z\t.;lhproto" + + "\252\002\030LittleHorse.Common.Protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/CommonWfspec.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/CommonWfspec.java index d69bf42a1..5c5410e7b 100644 --- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/CommonWfspec.java +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/CommonWfspec.java @@ -98,47 +98,48 @@ public static void registerAllExtensions( "tlehorse.VariableMutation.NodeOutputSour" + "ceH\000\0326\n\020NodeOutputSource\022\025\n\010jsonpath\030\n \001" + "(\tH\000\210\001\001B\013\n\t_jsonpathB\013\n\trhs_valueB\020\n\016_lh" + - "s_json_path\"\244\001\n\013VariableDef\022\'\n\004type\030\001 \001(" + - "\0162\031.littlehorse.VariableType\022\014\n\004name\030\002 \001" + - "(\t\0226\n\rdefault_value\030\003 \001(\0132\032.littlehorse." + - "VariableValueH\000\210\001\001\022\024\n\014masked_value\030\004 \001(\010" + - "B\020\n\016_default_value\"\357\004\n\017UTActionTrigger\0224" + - "\n\004task\030\001 \001(\0132$.littlehorse.UTActionTrigg" + - "er.UTATaskH\000\0228\n\006cancel\030\002 \001(\0132&.littlehor" + - "se.UTActionTrigger.UTACancelH\000\022<\n\010reassi" + - "gn\030\003 \001(\0132(.littlehorse.UTActionTrigger.U" + - "TAReassignH\000\0226\n\rdelay_seconds\030\005 \001(\0132\037.li" + - "ttlehorse.VariableAssignment\0221\n\004hook\030\006 \001" + - "(\0162#.littlehorse.UTActionTrigger.UTHook\032" + - "\013\n\tUTACancel\032`\n\007UTATask\022#\n\004task\030\001 \001(\0132\025." + - "littlehorse.TaskNode\0220\n\tmutations\030\002 \003(\0132" + - "\035.littlehorse.VariableMutation\032\231\001\n\013UTARe" + - "assign\0225\n\007user_id\030\001 \001(\0132\037.littlehorse.Va" + - "riableAssignmentH\000\210\001\001\0228\n\nuser_group\030\002 \001(" + - "\0132\037.littlehorse.VariableAssignmentH\001\210\001\001B" + - "\n\n\010_user_idB\r\n\013_user_group\".\n\006UTHook\022\016\n\n" + - "ON_ARRIVAL\020\000\022\024\n\020ON_TASK_ASSIGNED\020\001B\010\n\006ac" + - "tion\"c\n\035ExponentialBackoffRetryPolicy\022\030\n" + - "\020base_interval_ms\030\001 \001(\005\022\024\n\014max_delay_ms\030" + - "\002 \001(\003\022\022\n\nmultiplier\030\003 \001(\002\"\311\002\n\010TaskNode\022-" + - "\n\013task_def_id\030\001 \001(\0132\026.littlehorse.TaskDe" + - "fIdH\000\0227\n\014dynamic_task\030\006 \001(\0132\037.littlehors" + - "e.VariableAssignmentH\000\022\027\n\017timeout_second" + - "s\030\002 \001(\005\022\017\n\007retries\030\003 \001(\005\022L\n\023exponential_" + - "backoff\030\005 \001(\0132*.littlehorse.ExponentialB" + - "ackoffRetryPolicyH\001\210\001\001\0222\n\tvariables\030\004 \003(" + - "\0132\037.littlehorse.VariableAssignmentB\021\n\017ta" + - "sk_to_executeB\026\n\024_exponential_backoff*\230\001" + - "\n\024VariableMutationType\022\n\n\006ASSIGN\020\000\022\007\n\003AD" + - "D\020\001\022\n\n\006EXTEND\020\002\022\014\n\010SUBTRACT\020\003\022\014\n\010MULTIPL" + - "Y\020\004\022\n\n\006DIVIDE\020\005\022\025\n\021REMOVE_IF_PRESENT\020\006\022\020" + - "\n\014REMOVE_INDEX\020\007\022\016\n\nREMOVE_KEY\020\010*\204\001\n\nCom" + - "parator\022\r\n\tLESS_THAN\020\000\022\020\n\014GREATER_THAN\020\001" + - "\022\020\n\014LESS_THAN_EQ\020\002\022\023\n\017GREATER_THAN_EQ\020\003\022" + - "\n\n\006EQUALS\020\004\022\016\n\nNOT_EQUALS\020\005\022\006\n\002IN\020\006\022\n\n\006N" + - "OT_IN\020\007BI\n\037io.littlehorse.sdk.common.pro" + - "toP\001Z\t.;lhproto\252\002\030LittleHorse.Common.Pro" + - "tob\006proto3" + "s_json_path\"\332\001\n\013VariableDef\022/\n\tprimitive" + + "\030\001 \001(\0162\032.littlehorse.PrimitiveTypeH\000\022\'\n\006" + + "schema\030\005 \001(\0132\025.littlehorse.SchemaIdH\000\022\014\n" + + "\004name\030\002 \001(\t\0226\n\rdefault_value\030\003 \001(\0132\032.lit" + + "tlehorse.VariableValueH\001\210\001\001\022\021\n\tis_masked" + + "\030\004 \001(\010B\006\n\004typeB\020\n\016_default_value\"\357\004\n\017UTA" + + "ctionTrigger\0224\n\004task\030\001 \001(\0132$.littlehorse" + + ".UTActionTrigger.UTATaskH\000\0228\n\006cancel\030\002 \001" + + "(\0132&.littlehorse.UTActionTrigger.UTACanc" + + "elH\000\022<\n\010reassign\030\003 \001(\0132(.littlehorse.UTA" + + "ctionTrigger.UTAReassignH\000\0226\n\rdelay_seco" + + "nds\030\005 \001(\0132\037.littlehorse.VariableAssignme" + + "nt\0221\n\004hook\030\006 \001(\0162#.littlehorse.UTActionT" + + "rigger.UTHook\032\013\n\tUTACancel\032`\n\007UTATask\022#\n" + + "\004task\030\001 \001(\0132\025.littlehorse.TaskNode\0220\n\tmu" + + "tations\030\002 \003(\0132\035.littlehorse.VariableMuta" + + "tion\032\231\001\n\013UTAReassign\0225\n\007user_id\030\001 \001(\0132\037." + + "littlehorse.VariableAssignmentH\000\210\001\001\0228\n\nu" + + "ser_group\030\002 \001(\0132\037.littlehorse.VariableAs" + + "signmentH\001\210\001\001B\n\n\010_user_idB\r\n\013_user_group" + + "\".\n\006UTHook\022\016\n\nON_ARRIVAL\020\000\022\024\n\020ON_TASK_AS" + + "SIGNED\020\001B\010\n\006action\"c\n\035ExponentialBackoff" + + "RetryPolicy\022\030\n\020base_interval_ms\030\001 \001(\005\022\024\n" + + "\014max_delay_ms\030\002 \001(\003\022\022\n\nmultiplier\030\003 \001(\002\"" + + "\311\002\n\010TaskNode\022-\n\013task_def_id\030\001 \001(\0132\026.litt" + + "lehorse.TaskDefIdH\000\0227\n\014dynamic_task\030\006 \001(" + + "\0132\037.littlehorse.VariableAssignmentH\000\022\027\n\017" + + "timeout_seconds\030\002 \001(\005\022\017\n\007retries\030\003 \001(\005\022L" + + "\n\023exponential_backoff\030\005 \001(\0132*.littlehors" + + "e.ExponentialBackoffRetryPolicyH\001\210\001\001\0222\n\t" + + "variables\030\004 \003(\0132\037.littlehorse.VariableAs" + + "signmentB\021\n\017task_to_executeB\026\n\024_exponent" + + "ial_backoff*\230\001\n\024VariableMutationType\022\n\n\006" + + "ASSIGN\020\000\022\007\n\003ADD\020\001\022\n\n\006EXTEND\020\002\022\014\n\010SUBTRAC" + + "T\020\003\022\014\n\010MULTIPLY\020\004\022\n\n\006DIVIDE\020\005\022\025\n\021REMOVE_" + + "IF_PRESENT\020\006\022\020\n\014REMOVE_INDEX\020\007\022\016\n\nREMOVE" + + "_KEY\020\010*\204\001\n\nComparator\022\r\n\tLESS_THAN\020\000\022\020\n\014" + + "GREATER_THAN\020\001\022\020\n\014LESS_THAN_EQ\020\002\022\023\n\017GREA" + + "TER_THAN_EQ\020\003\022\n\n\006EQUALS\020\004\022\016\n\nNOT_EQUALS\020" + + "\005\022\006\n\002IN\020\006\022\n\n\006NOT_IN\020\007BI\n\037io.littlehorse." + + "sdk.common.protoP\001Z\t.;lhproto\252\002\030LittleHo" + + "rse.Common.Protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -176,7 +177,7 @@ public static void registerAllExtensions( internal_static_littlehorse_VariableDef_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_littlehorse_VariableDef_descriptor, - new java.lang.String[] { "Type", "Name", "DefaultValue", "MaskedValue", "DefaultValue", }); + new java.lang.String[] { "Primitive", "Schema", "Name", "DefaultValue", "IsMasked", "Type", "DefaultValue", }); internal_static_littlehorse_UTActionTrigger_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_littlehorse_UTActionTrigger_fieldAccessorTable = new diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/InlineSchema.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/InlineSchema.java new file mode 100644 index 000000000..5094fbe15 --- /dev/null +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/InlineSchema.java @@ -0,0 +1,859 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: variable.proto + +package io.littlehorse.sdk.common.proto; + +/** + *
+ * An `InlineSchema` is the actual representation of the Schema.
+ * 
+ * + * Protobuf type {@code littlehorse.InlineSchema} + */ +public final class InlineSchema extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:littlehorse.InlineSchema) + InlineSchemaOrBuilder { +private static final long serialVersionUID = 0L; + // Use InlineSchema.newBuilder() to construct. + private InlineSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InlineSchema() { + fields_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InlineSchema(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_InlineSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_InlineSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.littlehorse.sdk.common.proto.InlineSchema.class, io.littlehorse.sdk.common.proto.InlineSchema.Builder.class); + } + + public static final int FIELDS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List fields_; + /** + *
+   * The fields in this schema.
+   * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + @java.lang.Override + public java.util.List getFieldsList() { + return fields_; + } + /** + *
+   * The fields in this schema.
+   * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + @java.lang.Override + public java.util.List + getFieldsOrBuilderList() { + return fields_; + } + /** + *
+   * The fields in this schema.
+   * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + @java.lang.Override + public int getFieldsCount() { + return fields_.size(); + } + /** + *
+   * The fields in this schema.
+   * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaField getFields(int index) { + return fields_.get(index); + } + /** + *
+   * The fields in this schema.
+   * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaFieldOrBuilder getFieldsOrBuilder( + int index) { + return fields_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < fields_.size(); i++) { + output.writeMessage(1, fields_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < fields_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, fields_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.littlehorse.sdk.common.proto.InlineSchema)) { + return super.equals(obj); + } + io.littlehorse.sdk.common.proto.InlineSchema other = (io.littlehorse.sdk.common.proto.InlineSchema) obj; + + if (!getFieldsList() + .equals(other.getFieldsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFieldsCount() > 0) { + hash = (37 * hash) + FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getFieldsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.littlehorse.sdk.common.proto.InlineSchema parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.InlineSchema parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.InlineSchema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.InlineSchema parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.InlineSchema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.InlineSchema parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.InlineSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.littlehorse.sdk.common.proto.InlineSchema parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.littlehorse.sdk.common.proto.InlineSchema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.littlehorse.sdk.common.proto.InlineSchema parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.InlineSchema parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.littlehorse.sdk.common.proto.InlineSchema parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.littlehorse.sdk.common.proto.InlineSchema prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * An `InlineSchema` is the actual representation of the Schema.
+   * 
+ * + * Protobuf type {@code littlehorse.InlineSchema} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:littlehorse.InlineSchema) + io.littlehorse.sdk.common.proto.InlineSchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_InlineSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_InlineSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.littlehorse.sdk.common.proto.InlineSchema.class, io.littlehorse.sdk.common.proto.InlineSchema.Builder.class); + } + + // Construct using io.littlehorse.sdk.common.proto.InlineSchema.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + } else { + fields_ = null; + fieldsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_InlineSchema_descriptor; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineSchema getDefaultInstanceForType() { + return io.littlehorse.sdk.common.proto.InlineSchema.getDefaultInstance(); + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineSchema build() { + io.littlehorse.sdk.common.proto.InlineSchema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineSchema buildPartial() { + io.littlehorse.sdk.common.proto.InlineSchema result = new io.littlehorse.sdk.common.proto.InlineSchema(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.littlehorse.sdk.common.proto.InlineSchema result) { + if (fieldsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + fields_ = java.util.Collections.unmodifiableList(fields_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.fields_ = fields_; + } else { + result.fields_ = fieldsBuilder_.build(); + } + } + + private void buildPartial0(io.littlehorse.sdk.common.proto.InlineSchema result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.littlehorse.sdk.common.proto.InlineSchema) { + return mergeFrom((io.littlehorse.sdk.common.proto.InlineSchema)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.littlehorse.sdk.common.proto.InlineSchema other) { + if (other == io.littlehorse.sdk.common.proto.InlineSchema.getDefaultInstance()) return this; + if (fieldsBuilder_ == null) { + if (!other.fields_.isEmpty()) { + if (fields_.isEmpty()) { + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFieldsIsMutable(); + fields_.addAll(other.fields_); + } + onChanged(); + } + } else { + if (!other.fields_.isEmpty()) { + if (fieldsBuilder_.isEmpty()) { + fieldsBuilder_.dispose(); + fieldsBuilder_ = null; + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000001); + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFieldsFieldBuilder() : null; + } else { + fieldsBuilder_.addAllMessages(other.fields_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.littlehorse.sdk.common.proto.SchemaField m = + input.readMessage( + io.littlehorse.sdk.common.proto.SchemaField.parser(), + extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List fields_ = + java.util.Collections.emptyList(); + private void ensureFieldsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + fields_ = new java.util.ArrayList(fields_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.littlehorse.sdk.common.proto.SchemaField, io.littlehorse.sdk.common.proto.SchemaField.Builder, io.littlehorse.sdk.common.proto.SchemaFieldOrBuilder> fieldsBuilder_; + + /** + *
+     * The fields in this schema.
+     * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + public java.util.List getFieldsList() { + if (fieldsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fields_); + } else { + return fieldsBuilder_.getMessageList(); + } + } + /** + *
+     * The fields in this schema.
+     * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + public int getFieldsCount() { + if (fieldsBuilder_ == null) { + return fields_.size(); + } else { + return fieldsBuilder_.getCount(); + } + } + /** + *
+     * The fields in this schema.
+     * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + public io.littlehorse.sdk.common.proto.SchemaField getFields(int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); + } else { + return fieldsBuilder_.getMessage(index); + } + } + /** + *
+     * The fields in this schema.
+     * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + public Builder setFields( + int index, io.littlehorse.sdk.common.proto.SchemaField value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.set(index, value); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The fields in this schema.
+     * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + public Builder setFields( + int index, io.littlehorse.sdk.common.proto.SchemaField.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.set(index, builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The fields in this schema.
+     * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + public Builder addFields(io.littlehorse.sdk.common.proto.SchemaField value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(value); + onChanged(); + } else { + fieldsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The fields in this schema.
+     * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + public Builder addFields( + int index, io.littlehorse.sdk.common.proto.SchemaField value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(index, value); + onChanged(); + } else { + fieldsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The fields in this schema.
+     * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + public Builder addFields( + io.littlehorse.sdk.common.proto.SchemaField.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The fields in this schema.
+     * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + public Builder addFields( + int index, io.littlehorse.sdk.common.proto.SchemaField.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(index, builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The fields in this schema.
+     * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + public Builder addAllFields( + java.lang.Iterable values) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fields_); + onChanged(); + } else { + fieldsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The fields in this schema.
+     * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + public Builder clearFields() { + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + fieldsBuilder_.clear(); + } + return this; + } + /** + *
+     * The fields in this schema.
+     * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + public Builder removeFields(int index) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.remove(index); + onChanged(); + } else { + fieldsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The fields in this schema.
+     * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + public io.littlehorse.sdk.common.proto.SchemaField.Builder getFieldsBuilder( + int index) { + return getFieldsFieldBuilder().getBuilder(index); + } + /** + *
+     * The fields in this schema.
+     * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + public io.littlehorse.sdk.common.proto.SchemaFieldOrBuilder getFieldsOrBuilder( + int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); } else { + return fieldsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The fields in this schema.
+     * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + public java.util.List + getFieldsOrBuilderList() { + if (fieldsBuilder_ != null) { + return fieldsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fields_); + } + } + /** + *
+     * The fields in this schema.
+     * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + public io.littlehorse.sdk.common.proto.SchemaField.Builder addFieldsBuilder() { + return getFieldsFieldBuilder().addBuilder( + io.littlehorse.sdk.common.proto.SchemaField.getDefaultInstance()); + } + /** + *
+     * The fields in this schema.
+     * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + public io.littlehorse.sdk.common.proto.SchemaField.Builder addFieldsBuilder( + int index) { + return getFieldsFieldBuilder().addBuilder( + index, io.littlehorse.sdk.common.proto.SchemaField.getDefaultInstance()); + } + /** + *
+     * The fields in this schema.
+     * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + public java.util.List + getFieldsBuilderList() { + return getFieldsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.littlehorse.sdk.common.proto.SchemaField, io.littlehorse.sdk.common.proto.SchemaField.Builder, io.littlehorse.sdk.common.proto.SchemaFieldOrBuilder> + getFieldsFieldBuilder() { + if (fieldsBuilder_ == null) { + fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.littlehorse.sdk.common.proto.SchemaField, io.littlehorse.sdk.common.proto.SchemaField.Builder, io.littlehorse.sdk.common.proto.SchemaFieldOrBuilder>( + fields_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + fields_ = null; + } + return fieldsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:littlehorse.InlineSchema) + } + + // @@protoc_insertion_point(class_scope:littlehorse.InlineSchema) + private static final io.littlehorse.sdk.common.proto.InlineSchema DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.littlehorse.sdk.common.proto.InlineSchema(); + } + + public static io.littlehorse.sdk.common.proto.InlineSchema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InlineSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineSchema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/InlineSchemaOrBuilder.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/InlineSchemaOrBuilder.java new file mode 100644 index 000000000..b33f39245 --- /dev/null +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/InlineSchemaOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: variable.proto + +package io.littlehorse.sdk.common.proto; + +public interface InlineSchemaOrBuilder extends + // @@protoc_insertion_point(interface_extends:littlehorse.InlineSchema) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The fields in this schema.
+   * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + java.util.List + getFieldsList(); + /** + *
+   * The fields in this schema.
+   * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + io.littlehorse.sdk.common.proto.SchemaField getFields(int index); + /** + *
+   * The fields in this schema.
+   * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + int getFieldsCount(); + /** + *
+   * The fields in this schema.
+   * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + java.util.List + getFieldsOrBuilderList(); + /** + *
+   * The fields in this schema.
+   * 
+ * + * repeated .littlehorse.SchemaField fields = 1; + */ + io.littlehorse.sdk.common.proto.SchemaFieldOrBuilder getFieldsOrBuilder( + int index); +} diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/InlineStruct.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/InlineStruct.java new file mode 100644 index 000000000..bde3af016 --- /dev/null +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/InlineStruct.java @@ -0,0 +1,859 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: variable.proto + +package io.littlehorse.sdk.common.proto; + +/** + *
+ * An `InlineStruct` is a pre-validated set of fields that are part of a `Struct`.
+ * 
+ * + * Protobuf type {@code littlehorse.InlineStruct} + */ +public final class InlineStruct extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:littlehorse.InlineStruct) + InlineStructOrBuilder { +private static final long serialVersionUID = 0L; + // Use InlineStruct.newBuilder() to construct. + private InlineStruct(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InlineStruct() { + fields_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InlineStruct(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_InlineStruct_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_InlineStruct_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.littlehorse.sdk.common.proto.InlineStruct.class, io.littlehorse.sdk.common.proto.InlineStruct.Builder.class); + } + + public static final int FIELDS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List fields_; + /** + *
+   * The fields in the inline struct.
+   * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + @java.lang.Override + public java.util.List getFieldsList() { + return fields_; + } + /** + *
+   * The fields in the inline struct.
+   * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + @java.lang.Override + public java.util.List + getFieldsOrBuilderList() { + return fields_; + } + /** + *
+   * The fields in the inline struct.
+   * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + @java.lang.Override + public int getFieldsCount() { + return fields_.size(); + } + /** + *
+   * The fields in the inline struct.
+   * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.StructField getFields(int index) { + return fields_.get(index); + } + /** + *
+   * The fields in the inline struct.
+   * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.StructFieldOrBuilder getFieldsOrBuilder( + int index) { + return fields_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < fields_.size(); i++) { + output.writeMessage(1, fields_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < fields_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, fields_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.littlehorse.sdk.common.proto.InlineStruct)) { + return super.equals(obj); + } + io.littlehorse.sdk.common.proto.InlineStruct other = (io.littlehorse.sdk.common.proto.InlineStruct) obj; + + if (!getFieldsList() + .equals(other.getFieldsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFieldsCount() > 0) { + hash = (37 * hash) + FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getFieldsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.littlehorse.sdk.common.proto.InlineStruct parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.InlineStruct parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.InlineStruct parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.InlineStruct parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.InlineStruct parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.InlineStruct parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.InlineStruct parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.littlehorse.sdk.common.proto.InlineStruct parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.littlehorse.sdk.common.proto.InlineStruct parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.littlehorse.sdk.common.proto.InlineStruct parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.InlineStruct parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.littlehorse.sdk.common.proto.InlineStruct parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.littlehorse.sdk.common.proto.InlineStruct prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * An `InlineStruct` is a pre-validated set of fields that are part of a `Struct`.
+   * 
+ * + * Protobuf type {@code littlehorse.InlineStruct} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:littlehorse.InlineStruct) + io.littlehorse.sdk.common.proto.InlineStructOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_InlineStruct_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_InlineStruct_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.littlehorse.sdk.common.proto.InlineStruct.class, io.littlehorse.sdk.common.proto.InlineStruct.Builder.class); + } + + // Construct using io.littlehorse.sdk.common.proto.InlineStruct.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + } else { + fields_ = null; + fieldsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_InlineStruct_descriptor; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineStruct getDefaultInstanceForType() { + return io.littlehorse.sdk.common.proto.InlineStruct.getDefaultInstance(); + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineStruct build() { + io.littlehorse.sdk.common.proto.InlineStruct result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineStruct buildPartial() { + io.littlehorse.sdk.common.proto.InlineStruct result = new io.littlehorse.sdk.common.proto.InlineStruct(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.littlehorse.sdk.common.proto.InlineStruct result) { + if (fieldsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + fields_ = java.util.Collections.unmodifiableList(fields_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.fields_ = fields_; + } else { + result.fields_ = fieldsBuilder_.build(); + } + } + + private void buildPartial0(io.littlehorse.sdk.common.proto.InlineStruct result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.littlehorse.sdk.common.proto.InlineStruct) { + return mergeFrom((io.littlehorse.sdk.common.proto.InlineStruct)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.littlehorse.sdk.common.proto.InlineStruct other) { + if (other == io.littlehorse.sdk.common.proto.InlineStruct.getDefaultInstance()) return this; + if (fieldsBuilder_ == null) { + if (!other.fields_.isEmpty()) { + if (fields_.isEmpty()) { + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFieldsIsMutable(); + fields_.addAll(other.fields_); + } + onChanged(); + } + } else { + if (!other.fields_.isEmpty()) { + if (fieldsBuilder_.isEmpty()) { + fieldsBuilder_.dispose(); + fieldsBuilder_ = null; + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000001); + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFieldsFieldBuilder() : null; + } else { + fieldsBuilder_.addAllMessages(other.fields_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.littlehorse.sdk.common.proto.StructField m = + input.readMessage( + io.littlehorse.sdk.common.proto.StructField.parser(), + extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List fields_ = + java.util.Collections.emptyList(); + private void ensureFieldsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + fields_ = new java.util.ArrayList(fields_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.littlehorse.sdk.common.proto.StructField, io.littlehorse.sdk.common.proto.StructField.Builder, io.littlehorse.sdk.common.proto.StructFieldOrBuilder> fieldsBuilder_; + + /** + *
+     * The fields in the inline struct.
+     * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + public java.util.List getFieldsList() { + if (fieldsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fields_); + } else { + return fieldsBuilder_.getMessageList(); + } + } + /** + *
+     * The fields in the inline struct.
+     * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + public int getFieldsCount() { + if (fieldsBuilder_ == null) { + return fields_.size(); + } else { + return fieldsBuilder_.getCount(); + } + } + /** + *
+     * The fields in the inline struct.
+     * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + public io.littlehorse.sdk.common.proto.StructField getFields(int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); + } else { + return fieldsBuilder_.getMessage(index); + } + } + /** + *
+     * The fields in the inline struct.
+     * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + public Builder setFields( + int index, io.littlehorse.sdk.common.proto.StructField value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.set(index, value); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The fields in the inline struct.
+     * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + public Builder setFields( + int index, io.littlehorse.sdk.common.proto.StructField.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.set(index, builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The fields in the inline struct.
+     * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + public Builder addFields(io.littlehorse.sdk.common.proto.StructField value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(value); + onChanged(); + } else { + fieldsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The fields in the inline struct.
+     * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + public Builder addFields( + int index, io.littlehorse.sdk.common.proto.StructField value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(index, value); + onChanged(); + } else { + fieldsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The fields in the inline struct.
+     * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + public Builder addFields( + io.littlehorse.sdk.common.proto.StructField.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The fields in the inline struct.
+     * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + public Builder addFields( + int index, io.littlehorse.sdk.common.proto.StructField.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(index, builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The fields in the inline struct.
+     * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + public Builder addAllFields( + java.lang.Iterable values) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fields_); + onChanged(); + } else { + fieldsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The fields in the inline struct.
+     * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + public Builder clearFields() { + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + fieldsBuilder_.clear(); + } + return this; + } + /** + *
+     * The fields in the inline struct.
+     * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + public Builder removeFields(int index) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.remove(index); + onChanged(); + } else { + fieldsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The fields in the inline struct.
+     * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + public io.littlehorse.sdk.common.proto.StructField.Builder getFieldsBuilder( + int index) { + return getFieldsFieldBuilder().getBuilder(index); + } + /** + *
+     * The fields in the inline struct.
+     * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + public io.littlehorse.sdk.common.proto.StructFieldOrBuilder getFieldsOrBuilder( + int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); } else { + return fieldsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The fields in the inline struct.
+     * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + public java.util.List + getFieldsOrBuilderList() { + if (fieldsBuilder_ != null) { + return fieldsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fields_); + } + } + /** + *
+     * The fields in the inline struct.
+     * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + public io.littlehorse.sdk.common.proto.StructField.Builder addFieldsBuilder() { + return getFieldsFieldBuilder().addBuilder( + io.littlehorse.sdk.common.proto.StructField.getDefaultInstance()); + } + /** + *
+     * The fields in the inline struct.
+     * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + public io.littlehorse.sdk.common.proto.StructField.Builder addFieldsBuilder( + int index) { + return getFieldsFieldBuilder().addBuilder( + index, io.littlehorse.sdk.common.proto.StructField.getDefaultInstance()); + } + /** + *
+     * The fields in the inline struct.
+     * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + public java.util.List + getFieldsBuilderList() { + return getFieldsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.littlehorse.sdk.common.proto.StructField, io.littlehorse.sdk.common.proto.StructField.Builder, io.littlehorse.sdk.common.proto.StructFieldOrBuilder> + getFieldsFieldBuilder() { + if (fieldsBuilder_ == null) { + fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.littlehorse.sdk.common.proto.StructField, io.littlehorse.sdk.common.proto.StructField.Builder, io.littlehorse.sdk.common.proto.StructFieldOrBuilder>( + fields_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + fields_ = null; + } + return fieldsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:littlehorse.InlineStruct) + } + + // @@protoc_insertion_point(class_scope:littlehorse.InlineStruct) + private static final io.littlehorse.sdk.common.proto.InlineStruct DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.littlehorse.sdk.common.proto.InlineStruct(); + } + + public static io.littlehorse.sdk.common.proto.InlineStruct getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InlineStruct parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineStruct getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/InlineStructOrBuilder.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/InlineStructOrBuilder.java new file mode 100644 index 000000000..b5d7cfd58 --- /dev/null +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/InlineStructOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: variable.proto + +package io.littlehorse.sdk.common.proto; + +public interface InlineStructOrBuilder extends + // @@protoc_insertion_point(interface_extends:littlehorse.InlineStruct) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The fields in the inline struct.
+   * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + java.util.List + getFieldsList(); + /** + *
+   * The fields in the inline struct.
+   * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + io.littlehorse.sdk.common.proto.StructField getFields(int index); + /** + *
+   * The fields in the inline struct.
+   * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + int getFieldsCount(); + /** + *
+   * The fields in the inline struct.
+   * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + java.util.List + getFieldsOrBuilderList(); + /** + *
+   * The fields in the inline struct.
+   * 
+ * + * repeated .littlehorse.StructField fields = 1; + */ + io.littlehorse.sdk.common.proto.StructFieldOrBuilder getFieldsOrBuilder( + int index); +} diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/JsonIndex.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/JsonIndex.java index 554e62920..ca41fd65e 100644 --- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/JsonIndex.java +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/JsonIndex.java @@ -101,7 +101,7 @@ public java.lang.String getFieldPath() { * Is the type of the field we are indexing. * * - * .littlehorse.VariableType field_type = 2; + * .littlehorse.PrimitiveType field_type = 2; * @return The enum numeric value on the wire for fieldType. */ @java.lang.Override public int getFieldTypeValue() { @@ -112,12 +112,12 @@ public java.lang.String getFieldPath() { * Is the type of the field we are indexing. * * - * .littlehorse.VariableType field_type = 2; + * .littlehorse.PrimitiveType field_type = 2; * @return The fieldType. */ - @java.lang.Override public io.littlehorse.sdk.common.proto.VariableType getFieldType() { - io.littlehorse.sdk.common.proto.VariableType result = io.littlehorse.sdk.common.proto.VariableType.forNumber(fieldType_); - return result == null ? io.littlehorse.sdk.common.proto.VariableType.UNRECOGNIZED : result; + @java.lang.Override public io.littlehorse.sdk.common.proto.PrimitiveType getFieldType() { + io.littlehorse.sdk.common.proto.PrimitiveType result = io.littlehorse.sdk.common.proto.PrimitiveType.forNumber(fieldType_); + return result == null ? io.littlehorse.sdk.common.proto.PrimitiveType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -137,7 +137,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldPath_); } - if (fieldType_ != io.littlehorse.sdk.common.proto.VariableType.JSON_OBJ.getNumber()) { + if (fieldType_ != io.littlehorse.sdk.common.proto.PrimitiveType.JSON_OBJ.getNumber()) { output.writeEnum(2, fieldType_); } getUnknownFields().writeTo(output); @@ -152,7 +152,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldPath_); } - if (fieldType_ != io.littlehorse.sdk.common.proto.VariableType.JSON_OBJ.getNumber()) { + if (fieldType_ != io.littlehorse.sdk.common.proto.PrimitiveType.JSON_OBJ.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, fieldType_); } @@ -576,7 +576,7 @@ public Builder setFieldPathBytes( * Is the type of the field we are indexing. * * - * .littlehorse.VariableType field_type = 2; + * .littlehorse.PrimitiveType field_type = 2; * @return The enum numeric value on the wire for fieldType. */ @java.lang.Override public int getFieldTypeValue() { @@ -587,7 +587,7 @@ public Builder setFieldPathBytes( * Is the type of the field we are indexing. * * - * .littlehorse.VariableType field_type = 2; + * .littlehorse.PrimitiveType field_type = 2; * @param value The enum numeric value on the wire for fieldType to set. * @return This builder for chaining. */ @@ -602,24 +602,24 @@ public Builder setFieldTypeValue(int value) { * Is the type of the field we are indexing. * * - * .littlehorse.VariableType field_type = 2; + * .littlehorse.PrimitiveType field_type = 2; * @return The fieldType. */ @java.lang.Override - public io.littlehorse.sdk.common.proto.VariableType getFieldType() { - io.littlehorse.sdk.common.proto.VariableType result = io.littlehorse.sdk.common.proto.VariableType.forNumber(fieldType_); - return result == null ? io.littlehorse.sdk.common.proto.VariableType.UNRECOGNIZED : result; + public io.littlehorse.sdk.common.proto.PrimitiveType getFieldType() { + io.littlehorse.sdk.common.proto.PrimitiveType result = io.littlehorse.sdk.common.proto.PrimitiveType.forNumber(fieldType_); + return result == null ? io.littlehorse.sdk.common.proto.PrimitiveType.UNRECOGNIZED : result; } /** *
      * Is the type of the field we are indexing.
      * 
* - * .littlehorse.VariableType field_type = 2; + * .littlehorse.PrimitiveType field_type = 2; * @param value The fieldType to set. * @return This builder for chaining. */ - public Builder setFieldType(io.littlehorse.sdk.common.proto.VariableType value) { + public Builder setFieldType(io.littlehorse.sdk.common.proto.PrimitiveType value) { if (value == null) { throw new NullPointerException(); } @@ -633,7 +633,7 @@ public Builder setFieldType(io.littlehorse.sdk.common.proto.VariableType value) * Is the type of the field we are indexing. * * - * .littlehorse.VariableType field_type = 2; + * .littlehorse.PrimitiveType field_type = 2; * @return This builder for chaining. */ public Builder clearFieldType() { diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/JsonIndexOrBuilder.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/JsonIndexOrBuilder.java index 72c47a7ba..4b47f43b2 100644 --- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/JsonIndexOrBuilder.java +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/JsonIndexOrBuilder.java @@ -34,7 +34,7 @@ public interface JsonIndexOrBuilder extends * Is the type of the field we are indexing. * * - * .littlehorse.VariableType field_type = 2; + * .littlehorse.PrimitiveType field_type = 2; * @return The enum numeric value on the wire for fieldType. */ int getFieldTypeValue(); @@ -43,8 +43,8 @@ public interface JsonIndexOrBuilder extends * Is the type of the field we are indexing. * * - * .littlehorse.VariableType field_type = 2; + * .littlehorse.PrimitiveType field_type = 2; * @return The fieldType. */ - io.littlehorse.sdk.common.proto.VariableType getFieldType(); + io.littlehorse.sdk.common.proto.PrimitiveType getFieldType(); } diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/ObjectId.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/ObjectId.java index 1f1a04b50..915b86f9e 100644 --- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/ObjectId.java +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/ObjectId.java @@ -39,6 +39,11 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_littlehorse_WorkflowEventDefId_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_littlehorse_SchemaId_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_littlehorse_SchemaId_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_littlehorse_TaskWorkerGroupId_descriptor; static final @@ -120,39 +125,40 @@ public static void registerAllExtensions( "fId\022\014\n\004name\030\001 \001(\t\"\"\n\022ExternalEventDefId\022" + "\014\n\004name\030\001 \001(\t\".\n\rUserTaskDefId\022\014\n\004name\030\001" + " \001(\t\022\017\n\007version\030\002 \001(\005\"\"\n\022WorkflowEventDe" + - "fId\022\014\n\004name\030\001 \001(\t\"@\n\021TaskWorkerGroupId\022+" + - "\n\013task_def_id\030\001 \001(\0132\026.littlehorse.TaskDe" + - "fId\"^\n\nVariableId\022\'\n\twf_run_id\030\001 \001(\0132\024.l" + - "ittlehorse.WfRunId\022\031\n\021thread_run_number\030" + - "\002 \001(\005\022\014\n\004name\030\003 \001(\t\"\210\001\n\017ExternalEventId\022" + - "\'\n\twf_run_id\030\001 \001(\0132\024.littlehorse.WfRunId" + - "\022>\n\025external_event_def_id\030\002 \001(\0132\037.little" + - "horse.ExternalEventDefId\022\014\n\004guid\030\003 \001(\t\"_" + - "\n\007WfRunId\022\n\n\002id\030\001 \001(\t\0223\n\020parent_wf_run_i" + - "d\030\002 \001(\0132\024.littlehorse.WfRunIdH\000\210\001\001B\023\n\021_p" + - "arent_wf_run_id\"a\n\tNodeRunId\022\'\n\twf_run_i" + - "d\030\001 \001(\0132\024.littlehorse.WfRunId\022\031\n\021thread_" + - "run_number\030\002 \001(\005\022\020\n\010position\030\003 \001(\005\"\212\001\n\017W" + - "orkflowEventId\022\'\n\twf_run_id\030\001 \001(\0132\024.litt" + - "lehorse.WfRunId\022>\n\025workflow_event_def_id" + - "\030\002 \001(\0132\037.littlehorse.WorkflowEventDefId\022" + - "\016\n\006number\030\003 \001(\005\"G\n\tTaskRunId\022\'\n\twf_run_i" + - "d\030\001 \001(\0132\024.littlehorse.WfRunId\022\021\n\ttask_gu" + - "id\030\002 \001(\t\"P\n\rUserTaskRunId\022\'\n\twf_run_id\030\001" + - " \001(\0132\024.littlehorse.WfRunId\022\026\n\016user_task_" + - "guid\030\002 \001(\t\"\250\001\n\020TaskDefMetricsId\0220\n\014windo" + - "w_start\030\001 \001(\0132\032.google.protobuf.Timestam" + - "p\0225\n\013window_type\030\002 \001(\0162 .littlehorse.Met" + - "ricsWindowLength\022+\n\013task_def_id\030\003 \001(\0132\026." + - "littlehorse.TaskDefId\"\245\001\n\017WfSpecMetricsI" + - "d\0220\n\014window_start\030\001 \001(\0132\032.google.protobu" + - "f.Timestamp\0225\n\013window_type\030\002 \001(\0162 .littl" + - "ehorse.MetricsWindowLength\022)\n\nwf_spec_id" + - "\030\003 \001(\0132\025.littlehorse.WfSpecId\"\031\n\013Princip" + - "alId\022\n\n\002id\030\001 \001(\t\"\026\n\010TenantId\022\n\n\002id\030\001 \001(\t" + - "\"\036\n\020ScheduledWfRunId\022\n\n\002id\030\001 \001(\tBI\n\037io.l" + - "ittlehorse.sdk.common.protoP\001Z\t.;lhproto" + - "\252\002\030LittleHorse.Common.Protob\006proto3" + "fId\022\014\n\004name\030\001 \001(\t\")\n\010SchemaId\022\014\n\004name\030\001 " + + "\001(\t\022\017\n\007version\030\002 \001(\005\"@\n\021TaskWorkerGroupI" + + "d\022+\n\013task_def_id\030\001 \001(\0132\026.littlehorse.Tas" + + "kDefId\"^\n\nVariableId\022\'\n\twf_run_id\030\001 \001(\0132" + + "\024.littlehorse.WfRunId\022\031\n\021thread_run_numb" + + "er\030\002 \001(\005\022\014\n\004name\030\003 \001(\t\"\210\001\n\017ExternalEvent" + + "Id\022\'\n\twf_run_id\030\001 \001(\0132\024.littlehorse.WfRu" + + "nId\022>\n\025external_event_def_id\030\002 \001(\0132\037.lit" + + "tlehorse.ExternalEventDefId\022\014\n\004guid\030\003 \001(" + + "\t\"_\n\007WfRunId\022\n\n\002id\030\001 \001(\t\0223\n\020parent_wf_ru" + + "n_id\030\002 \001(\0132\024.littlehorse.WfRunIdH\000\210\001\001B\023\n" + + "\021_parent_wf_run_id\"a\n\tNodeRunId\022\'\n\twf_ru" + + "n_id\030\001 \001(\0132\024.littlehorse.WfRunId\022\031\n\021thre" + + "ad_run_number\030\002 \001(\005\022\020\n\010position\030\003 \001(\005\"\212\001" + + "\n\017WorkflowEventId\022\'\n\twf_run_id\030\001 \001(\0132\024.l" + + "ittlehorse.WfRunId\022>\n\025workflow_event_def" + + "_id\030\002 \001(\0132\037.littlehorse.WorkflowEventDef" + + "Id\022\016\n\006number\030\003 \001(\005\"G\n\tTaskRunId\022\'\n\twf_ru" + + "n_id\030\001 \001(\0132\024.littlehorse.WfRunId\022\021\n\ttask" + + "_guid\030\002 \001(\t\"P\n\rUserTaskRunId\022\'\n\twf_run_i" + + "d\030\001 \001(\0132\024.littlehorse.WfRunId\022\026\n\016user_ta" + + "sk_guid\030\002 \001(\t\"\250\001\n\020TaskDefMetricsId\0220\n\014wi" + + "ndow_start\030\001 \001(\0132\032.google.protobuf.Times" + + "tamp\0225\n\013window_type\030\002 \001(\0162 .littlehorse." + + "MetricsWindowLength\022+\n\013task_def_id\030\003 \001(\013" + + "2\026.littlehorse.TaskDefId\"\245\001\n\017WfSpecMetri" + + "csId\0220\n\014window_start\030\001 \001(\0132\032.google.prot" + + "obuf.Timestamp\0225\n\013window_type\030\002 \001(\0162 .li" + + "ttlehorse.MetricsWindowLength\022)\n\nwf_spec" + + "_id\030\003 \001(\0132\025.littlehorse.WfSpecId\"\031\n\013Prin" + + "cipalId\022\n\n\002id\030\001 \001(\t\"\026\n\010TenantId\022\n\n\002id\030\001 " + + "\001(\t\"\036\n\020ScheduledWfRunId\022\n\n\002id\030\001 \001(\tBI\n\037i" + + "o.littlehorse.sdk.common.protoP\001Z\t.;lhpr" + + "oto\252\002\030LittleHorse.Common.Protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -190,80 +196,86 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_littlehorse_WorkflowEventDefId_descriptor, new java.lang.String[] { "Name", }); - internal_static_littlehorse_TaskWorkerGroupId_descriptor = + internal_static_littlehorse_SchemaId_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_littlehorse_SchemaId_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_littlehorse_SchemaId_descriptor, + new java.lang.String[] { "Name", "Version", }); + internal_static_littlehorse_TaskWorkerGroupId_descriptor = + getDescriptor().getMessageTypes().get(6); internal_static_littlehorse_TaskWorkerGroupId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_littlehorse_TaskWorkerGroupId_descriptor, new java.lang.String[] { "TaskDefId", }); internal_static_littlehorse_VariableId_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_littlehorse_VariableId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_littlehorse_VariableId_descriptor, new java.lang.String[] { "WfRunId", "ThreadRunNumber", "Name", }); internal_static_littlehorse_ExternalEventId_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_littlehorse_ExternalEventId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_littlehorse_ExternalEventId_descriptor, new java.lang.String[] { "WfRunId", "ExternalEventDefId", "Guid", }); internal_static_littlehorse_WfRunId_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_littlehorse_WfRunId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_littlehorse_WfRunId_descriptor, new java.lang.String[] { "Id", "ParentWfRunId", "ParentWfRunId", }); internal_static_littlehorse_NodeRunId_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_littlehorse_NodeRunId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_littlehorse_NodeRunId_descriptor, new java.lang.String[] { "WfRunId", "ThreadRunNumber", "Position", }); internal_static_littlehorse_WorkflowEventId_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_littlehorse_WorkflowEventId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_littlehorse_WorkflowEventId_descriptor, new java.lang.String[] { "WfRunId", "WorkflowEventDefId", "Number", }); internal_static_littlehorse_TaskRunId_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_littlehorse_TaskRunId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_littlehorse_TaskRunId_descriptor, new java.lang.String[] { "WfRunId", "TaskGuid", }); internal_static_littlehorse_UserTaskRunId_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_littlehorse_UserTaskRunId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_littlehorse_UserTaskRunId_descriptor, new java.lang.String[] { "WfRunId", "UserTaskGuid", }); internal_static_littlehorse_TaskDefMetricsId_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_littlehorse_TaskDefMetricsId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_littlehorse_TaskDefMetricsId_descriptor, new java.lang.String[] { "WindowStart", "WindowType", "TaskDefId", }); internal_static_littlehorse_WfSpecMetricsId_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_littlehorse_WfSpecMetricsId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_littlehorse_WfSpecMetricsId_descriptor, new java.lang.String[] { "WindowStart", "WindowType", "WfSpecId", }); internal_static_littlehorse_PrincipalId_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_littlehorse_PrincipalId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_littlehorse_PrincipalId_descriptor, new java.lang.String[] { "Id", }); internal_static_littlehorse_TenantId_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_littlehorse_TenantId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_littlehorse_TenantId_descriptor, new java.lang.String[] { "Id", }); internal_static_littlehorse_ScheduledWfRunId_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_littlehorse_ScheduledWfRunId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_littlehorse_ScheduledWfRunId_descriptor, diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableType.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/PrimitiveType.java similarity index 89% rename from sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableType.java rename to sdk-java/src/main/java/io/littlehorse/sdk/common/proto/PrimitiveType.java index b67df5a6b..3620f648f 100644 --- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableType.java +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/PrimitiveType.java @@ -9,9 +9,9 @@ * VariableValue. * * - * Protobuf enum {@code littlehorse.VariableType} + * Protobuf enum {@code littlehorse.PrimitiveType} */ -public enum VariableType +public enum PrimitiveType implements com.google.protobuf.ProtocolMessageEnum { /** *
@@ -164,7 +164,7 @@ public final int getNumber() {
    * @deprecated Use {@link #forNumber(int)} instead.
    */
   @java.lang.Deprecated
-  public static VariableType valueOf(int value) {
+  public static PrimitiveType valueOf(int value) {
     return forNumber(value);
   }
 
@@ -172,7 +172,7 @@ public static VariableType valueOf(int value) {
    * @param value The numeric wire value of the corresponding enum entry.
    * @return The enum associated with the given numeric wire value.
    */
-  public static VariableType forNumber(int value) {
+  public static PrimitiveType forNumber(int value) {
     switch (value) {
       case 0: return JSON_OBJ;
       case 1: return JSON_ARR;
@@ -185,15 +185,15 @@ public static VariableType forNumber(int value) {
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap
+  public static com.google.protobuf.Internal.EnumLiteMap
       internalGetValueMap() {
     return internalValueMap;
   }
   private static final com.google.protobuf.Internal.EnumLiteMap<
-      VariableType> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public VariableType findValueByNumber(int number) {
-            return VariableType.forNumber(number);
+      PrimitiveType> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public PrimitiveType findValueByNumber(int number) {
+            return PrimitiveType.forNumber(number);
           }
         };
 
@@ -214,9 +214,9 @@ public VariableType findValueByNumber(int number) {
     return io.littlehorse.sdk.common.proto.CommonEnums.getDescriptor().getEnumTypes().get(4);
   }
 
-  private static final VariableType[] VALUES = values();
+  private static final PrimitiveType[] VALUES = values();
 
-  public static VariableType valueOf(
+  public static PrimitiveType valueOf(
       com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
       throw new java.lang.IllegalArgumentException(
@@ -230,10 +230,10 @@ public static VariableType valueOf(
 
   private final int value;
 
-  private VariableType(int value) {
+  private PrimitiveType(int value) {
     this.value = value;
   }
 
-  // @@protoc_insertion_point(enum_scope:littlehorse.VariableType)
+  // @@protoc_insertion_point(enum_scope:littlehorse.PrimitiveType)
 }
 
diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/PutWorkflowEventDefRequest.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/PutWorkflowEventDefRequest.java
index a5a9521c0..85f308262 100644
--- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/PutWorkflowEventDefRequest.java
+++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/PutWorkflowEventDefRequest.java
@@ -21,7 +21,6 @@ private PutWorkflowEventDefRequest(com.google.protobuf.GeneratedMessageV3.Builde
   }
   private PutWorkflowEventDefRequest() {
     name_ = "";
-    type_ = 0;
   }
 
   @java.lang.Override
@@ -44,6 +43,48 @@ protected java.lang.Object newInstance(
             io.littlehorse.sdk.common.proto.PutWorkflowEventDefRequest.class, io.littlehorse.sdk.common.proto.PutWorkflowEventDefRequest.Builder.class);
   }
 
+  private int typeCase_ = 0;
+  @SuppressWarnings("serial")
+  private java.lang.Object type_;
+  public enum TypeCase
+      implements com.google.protobuf.Internal.EnumLite,
+          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+    PRIMITIVE_TYPE(2),
+    SCHEMA(3),
+    TYPE_NOT_SET(0);
+    private final int value;
+    private TypeCase(int value) {
+      this.value = value;
+    }
+    /**
+     * @param value The number of the enum to look for.
+     * @return The enum associated with the given number.
+     * @deprecated Use {@link #forNumber(int)} instead.
+     */
+    @java.lang.Deprecated
+    public static TypeCase valueOf(int value) {
+      return forNumber(value);
+    }
+
+    public static TypeCase forNumber(int value) {
+      switch (value) {
+        case 2: return PRIMITIVE_TYPE;
+        case 3: return SCHEMA;
+        case 0: return TYPE_NOT_SET;
+        default: return null;
+      }
+    }
+    public int getNumber() {
+      return this.value;
+    }
+  };
+
+  public TypeCase
+  getTypeCase() {
+    return TypeCase.forNumber(
+        typeCase_);
+  }
+
   public static final int NAME_FIELD_NUMBER = 1;
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
@@ -83,22 +124,66 @@ public java.lang.String getName() {
     }
   }
 
-  public static final int TYPE_FIELD_NUMBER = 2;
-  private int type_ = 0;
+  public static final int PRIMITIVE_TYPE_FIELD_NUMBER = 2;
+  /**
+   * .littlehorse.PrimitiveType primitive_type = 2;
+   * @return Whether the primitiveType field is set.
+   */
+  public boolean hasPrimitiveType() {
+    return typeCase_ == 2;
+  }
+  /**
+   * .littlehorse.PrimitiveType primitive_type = 2;
+   * @return The enum numeric value on the wire for primitiveType.
+   */
+  public int getPrimitiveTypeValue() {
+    if (typeCase_ == 2) {
+      return (java.lang.Integer) type_;
+    }
+    return 0;
+  }
+  /**
+   * .littlehorse.PrimitiveType primitive_type = 2;
+   * @return The primitiveType.
+   */
+  public io.littlehorse.sdk.common.proto.PrimitiveType getPrimitiveType() {
+    if (typeCase_ == 2) {
+      io.littlehorse.sdk.common.proto.PrimitiveType result = io.littlehorse.sdk.common.proto.PrimitiveType.forNumber(
+          (java.lang.Integer) type_);
+      return result == null ? io.littlehorse.sdk.common.proto.PrimitiveType.UNRECOGNIZED : result;
+    }
+    return io.littlehorse.sdk.common.proto.PrimitiveType.JSON_OBJ;
+  }
+
+  public static final int SCHEMA_FIELD_NUMBER = 3;
+  /**
+   * .littlehorse.SchemaId schema = 3;
+   * @return Whether the schema field is set.
+   */
+  @java.lang.Override
+  public boolean hasSchema() {
+    return typeCase_ == 3;
+  }
   /**
-   * .littlehorse.VariableType type = 2;
-   * @return The enum numeric value on the wire for type.
+   * .littlehorse.SchemaId schema = 3;
+   * @return The schema.
    */
-  @java.lang.Override public int getTypeValue() {
-    return type_;
+  @java.lang.Override
+  public io.littlehorse.sdk.common.proto.SchemaId getSchema() {
+    if (typeCase_ == 3) {
+       return (io.littlehorse.sdk.common.proto.SchemaId) type_;
+    }
+    return io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance();
   }
   /**
-   * .littlehorse.VariableType type = 2;
-   * @return The type.
+   * .littlehorse.SchemaId schema = 3;
    */
-  @java.lang.Override public io.littlehorse.sdk.common.proto.VariableType getType() {
-    io.littlehorse.sdk.common.proto.VariableType result = io.littlehorse.sdk.common.proto.VariableType.forNumber(type_);
-    return result == null ? io.littlehorse.sdk.common.proto.VariableType.UNRECOGNIZED : result;
+  @java.lang.Override
+  public io.littlehorse.sdk.common.proto.SchemaIdOrBuilder getSchemaOrBuilder() {
+    if (typeCase_ == 3) {
+       return (io.littlehorse.sdk.common.proto.SchemaId) type_;
+    }
+    return io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
@@ -118,8 +203,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
-    if (type_ != io.littlehorse.sdk.common.proto.VariableType.JSON_OBJ.getNumber()) {
-      output.writeEnum(2, type_);
+    if (typeCase_ == 2) {
+      output.writeEnum(2, ((java.lang.Integer) type_));
+    }
+    if (typeCase_ == 3) {
+      output.writeMessage(3, (io.littlehorse.sdk.common.proto.SchemaId) type_);
     }
     getUnknownFields().writeTo(output);
   }
@@ -133,9 +221,13 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
-    if (type_ != io.littlehorse.sdk.common.proto.VariableType.JSON_OBJ.getNumber()) {
+    if (typeCase_ == 2) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(2, ((java.lang.Integer) type_));
+    }
+    if (typeCase_ == 3) {
       size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(2, type_);
+        .computeMessageSize(3, (io.littlehorse.sdk.common.proto.SchemaId) type_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -154,7 +246,19 @@ public boolean equals(final java.lang.Object obj) {
 
     if (!getName()
         .equals(other.getName())) return false;
-    if (type_ != other.type_) return false;
+    if (!getTypeCase().equals(other.getTypeCase())) return false;
+    switch (typeCase_) {
+      case 2:
+        if (getPrimitiveTypeValue()
+            != other.getPrimitiveTypeValue()) return false;
+        break;
+      case 3:
+        if (!getSchema()
+            .equals(other.getSchema())) return false;
+        break;
+      case 0:
+      default:
+    }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -168,8 +272,18 @@ public int hashCode() {
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + NAME_FIELD_NUMBER;
     hash = (53 * hash) + getName().hashCode();
-    hash = (37 * hash) + TYPE_FIELD_NUMBER;
-    hash = (53 * hash) + type_;
+    switch (typeCase_) {
+      case 2:
+        hash = (37 * hash) + PRIMITIVE_TYPE_FIELD_NUMBER;
+        hash = (53 * hash) + getPrimitiveTypeValue();
+        break;
+      case 3:
+        hash = (37 * hash) + SCHEMA_FIELD_NUMBER;
+        hash = (53 * hash) + getSchema().hashCode();
+        break;
+      case 0:
+      default:
+    }
     hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
@@ -306,7 +420,11 @@ public Builder clear() {
       super.clear();
       bitField0_ = 0;
       name_ = "";
-      type_ = 0;
+      if (schemaBuilder_ != null) {
+        schemaBuilder_.clear();
+      }
+      typeCase_ = 0;
+      type_ = null;
       return this;
     }
 
@@ -334,6 +452,7 @@ public io.littlehorse.sdk.common.proto.PutWorkflowEventDefRequest build() {
     public io.littlehorse.sdk.common.proto.PutWorkflowEventDefRequest buildPartial() {
       io.littlehorse.sdk.common.proto.PutWorkflowEventDefRequest result = new io.littlehorse.sdk.common.proto.PutWorkflowEventDefRequest(this);
       if (bitField0_ != 0) { buildPartial0(result); }
+      buildPartialOneofs(result);
       onBuilt();
       return result;
     }
@@ -343,8 +462,14 @@ private void buildPartial0(io.littlehorse.sdk.common.proto.PutWorkflowEventDefRe
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
       }
-      if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.type_ = type_;
+    }
+
+    private void buildPartialOneofs(io.littlehorse.sdk.common.proto.PutWorkflowEventDefRequest result) {
+      result.typeCase_ = typeCase_;
+      result.type_ = this.type_;
+      if (typeCase_ == 3 &&
+          schemaBuilder_ != null) {
+        result.type_ = schemaBuilder_.build();
       }
     }
 
@@ -397,8 +522,18 @@ public Builder mergeFrom(io.littlehorse.sdk.common.proto.PutWorkflowEventDefRequ
         bitField0_ |= 0x00000001;
         onChanged();
       }
-      if (other.type_ != 0) {
-        setTypeValue(other.getTypeValue());
+      switch (other.getTypeCase()) {
+        case PRIMITIVE_TYPE: {
+          setPrimitiveTypeValue(other.getPrimitiveTypeValue());
+          break;
+        }
+        case SCHEMA: {
+          mergeSchema(other.getSchema());
+          break;
+        }
+        case TYPE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -432,10 +567,18 @@ public Builder mergeFrom(
               break;
             } // case 10
             case 16: {
-              type_ = input.readEnum();
-              bitField0_ |= 0x00000002;
+              int rawValue = input.readEnum();
+              typeCase_ = 2;
+              type_ = rawValue;
               break;
             } // case 16
+            case 26: {
+              input.readMessage(
+                  getSchemaFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              typeCase_ = 3;
+              break;
+            } // case 26
             default: {
               if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                 done = true; // was an endgroup tag
@@ -451,6 +594,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+    private int typeCase_ = 0;
+    private java.lang.Object type_;
+    public TypeCase
+        getTypeCase() {
+      return TypeCase.forNumber(
+          typeCase_);
+    }
+
+    public Builder clearType() {
+      typeCase_ = 0;
+      type_ = null;
+      onChanged();
+      return this;
+    }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
@@ -525,58 +683,217 @@ public Builder setNameBytes(
       return this;
     }
 
-    private int type_ = 0;
     /**
-     * .littlehorse.VariableType type = 2;
-     * @return The enum numeric value on the wire for type.
+     * .littlehorse.PrimitiveType primitive_type = 2;
+     * @return Whether the primitiveType field is set.
      */
-    @java.lang.Override public int getTypeValue() {
-      return type_;
+    @java.lang.Override
+    public boolean hasPrimitiveType() {
+      return typeCase_ == 2;
     }
     /**
-     * .littlehorse.VariableType type = 2;
-     * @param value The enum numeric value on the wire for type to set.
+     * .littlehorse.PrimitiveType primitive_type = 2;
+     * @return The enum numeric value on the wire for primitiveType.
+     */
+    @java.lang.Override
+    public int getPrimitiveTypeValue() {
+      if (typeCase_ == 2) {
+        return ((java.lang.Integer) type_).intValue();
+      }
+      return 0;
+    }
+    /**
+     * .littlehorse.PrimitiveType primitive_type = 2;
+     * @param value The enum numeric value on the wire for primitiveType to set.
      * @return This builder for chaining.
      */
-    public Builder setTypeValue(int value) {
+    public Builder setPrimitiveTypeValue(int value) {
+      typeCase_ = 2;
       type_ = value;
-      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
     /**
-     * .littlehorse.VariableType type = 2;
-     * @return The type.
+     * .littlehorse.PrimitiveType primitive_type = 2;
+     * @return The primitiveType.
      */
     @java.lang.Override
-    public io.littlehorse.sdk.common.proto.VariableType getType() {
-      io.littlehorse.sdk.common.proto.VariableType result = io.littlehorse.sdk.common.proto.VariableType.forNumber(type_);
-      return result == null ? io.littlehorse.sdk.common.proto.VariableType.UNRECOGNIZED : result;
+    public io.littlehorse.sdk.common.proto.PrimitiveType getPrimitiveType() {
+      if (typeCase_ == 2) {
+        io.littlehorse.sdk.common.proto.PrimitiveType result = io.littlehorse.sdk.common.proto.PrimitiveType.forNumber(
+            (java.lang.Integer) type_);
+        return result == null ? io.littlehorse.sdk.common.proto.PrimitiveType.UNRECOGNIZED : result;
+      }
+      return io.littlehorse.sdk.common.proto.PrimitiveType.JSON_OBJ;
     }
     /**
-     * .littlehorse.VariableType type = 2;
-     * @param value The type to set.
+     * .littlehorse.PrimitiveType primitive_type = 2;
+     * @param value The primitiveType to set.
      * @return This builder for chaining.
      */
-    public Builder setType(io.littlehorse.sdk.common.proto.VariableType value) {
+    public Builder setPrimitiveType(io.littlehorse.sdk.common.proto.PrimitiveType value) {
       if (value == null) {
         throw new NullPointerException();
       }
-      bitField0_ |= 0x00000002;
+      typeCase_ = 2;
       type_ = value.getNumber();
       onChanged();
       return this;
     }
     /**
-     * .littlehorse.VariableType type = 2;
+     * .littlehorse.PrimitiveType primitive_type = 2;
      * @return This builder for chaining.
      */
-    public Builder clearType() {
-      bitField0_ = (bitField0_ & ~0x00000002);
-      type_ = 0;
-      onChanged();
+    public Builder clearPrimitiveType() {
+      if (typeCase_ == 2) {
+        typeCase_ = 0;
+        type_ = null;
+        onChanged();
+      }
+      return this;
+    }
+
+    private com.google.protobuf.SingleFieldBuilderV3<
+        io.littlehorse.sdk.common.proto.SchemaId, io.littlehorse.sdk.common.proto.SchemaId.Builder, io.littlehorse.sdk.common.proto.SchemaIdOrBuilder> schemaBuilder_;
+    /**
+     * .littlehorse.SchemaId schema = 3;
+     * @return Whether the schema field is set.
+     */
+    @java.lang.Override
+    public boolean hasSchema() {
+      return typeCase_ == 3;
+    }
+    /**
+     * .littlehorse.SchemaId schema = 3;
+     * @return The schema.
+     */
+    @java.lang.Override
+    public io.littlehorse.sdk.common.proto.SchemaId getSchema() {
+      if (schemaBuilder_ == null) {
+        if (typeCase_ == 3) {
+          return (io.littlehorse.sdk.common.proto.SchemaId) type_;
+        }
+        return io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance();
+      } else {
+        if (typeCase_ == 3) {
+          return schemaBuilder_.getMessage();
+        }
+        return io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance();
+      }
+    }
+    /**
+     * .littlehorse.SchemaId schema = 3;
+     */
+    public Builder setSchema(io.littlehorse.sdk.common.proto.SchemaId value) {
+      if (schemaBuilder_ == null) {
+        if (value == null) {
+          throw new NullPointerException();
+        }
+        type_ = value;
+        onChanged();
+      } else {
+        schemaBuilder_.setMessage(value);
+      }
+      typeCase_ = 3;
+      return this;
+    }
+    /**
+     * .littlehorse.SchemaId schema = 3;
+     */
+    public Builder setSchema(
+        io.littlehorse.sdk.common.proto.SchemaId.Builder builderForValue) {
+      if (schemaBuilder_ == null) {
+        type_ = builderForValue.build();
+        onChanged();
+      } else {
+        schemaBuilder_.setMessage(builderForValue.build());
+      }
+      typeCase_ = 3;
+      return this;
+    }
+    /**
+     * .littlehorse.SchemaId schema = 3;
+     */
+    public Builder mergeSchema(io.littlehorse.sdk.common.proto.SchemaId value) {
+      if (schemaBuilder_ == null) {
+        if (typeCase_ == 3 &&
+            type_ != io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance()) {
+          type_ = io.littlehorse.sdk.common.proto.SchemaId.newBuilder((io.littlehorse.sdk.common.proto.SchemaId) type_)
+              .mergeFrom(value).buildPartial();
+        } else {
+          type_ = value;
+        }
+        onChanged();
+      } else {
+        if (typeCase_ == 3) {
+          schemaBuilder_.mergeFrom(value);
+        } else {
+          schemaBuilder_.setMessage(value);
+        }
+      }
+      typeCase_ = 3;
+      return this;
+    }
+    /**
+     * .littlehorse.SchemaId schema = 3;
+     */
+    public Builder clearSchema() {
+      if (schemaBuilder_ == null) {
+        if (typeCase_ == 3) {
+          typeCase_ = 0;
+          type_ = null;
+          onChanged();
+        }
+      } else {
+        if (typeCase_ == 3) {
+          typeCase_ = 0;
+          type_ = null;
+        }
+        schemaBuilder_.clear();
+      }
       return this;
     }
+    /**
+     * .littlehorse.SchemaId schema = 3;
+     */
+    public io.littlehorse.sdk.common.proto.SchemaId.Builder getSchemaBuilder() {
+      return getSchemaFieldBuilder().getBuilder();
+    }
+    /**
+     * .littlehorse.SchemaId schema = 3;
+     */
+    @java.lang.Override
+    public io.littlehorse.sdk.common.proto.SchemaIdOrBuilder getSchemaOrBuilder() {
+      if ((typeCase_ == 3) && (schemaBuilder_ != null)) {
+        return schemaBuilder_.getMessageOrBuilder();
+      } else {
+        if (typeCase_ == 3) {
+          return (io.littlehorse.sdk.common.proto.SchemaId) type_;
+        }
+        return io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance();
+      }
+    }
+    /**
+     * .littlehorse.SchemaId schema = 3;
+     */
+    private com.google.protobuf.SingleFieldBuilderV3<
+        io.littlehorse.sdk.common.proto.SchemaId, io.littlehorse.sdk.common.proto.SchemaId.Builder, io.littlehorse.sdk.common.proto.SchemaIdOrBuilder> 
+        getSchemaFieldBuilder() {
+      if (schemaBuilder_ == null) {
+        if (!(typeCase_ == 3)) {
+          type_ = io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance();
+        }
+        schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            io.littlehorse.sdk.common.proto.SchemaId, io.littlehorse.sdk.common.proto.SchemaId.Builder, io.littlehorse.sdk.common.proto.SchemaIdOrBuilder>(
+                (io.littlehorse.sdk.common.proto.SchemaId) type_,
+                getParentForChildren(),
+                isClean());
+        type_ = null;
+      }
+      typeCase_ = 3;
+      onChanged();
+      return schemaBuilder_;
+    }
     @java.lang.Override
     public final Builder setUnknownFields(
         final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/PutWorkflowEventDefRequestOrBuilder.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/PutWorkflowEventDefRequestOrBuilder.java
index ecf8c9a7c..20dd8188e 100644
--- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/PutWorkflowEventDefRequestOrBuilder.java
+++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/PutWorkflowEventDefRequestOrBuilder.java
@@ -20,13 +20,35 @@ public interface PutWorkflowEventDefRequestOrBuilder extends
       getNameBytes();
 
   /**
-   * .littlehorse.VariableType type = 2;
-   * @return The enum numeric value on the wire for type.
+   * .littlehorse.PrimitiveType primitive_type = 2;
+   * @return Whether the primitiveType field is set.
    */
-  int getTypeValue();
+  boolean hasPrimitiveType();
   /**
-   * .littlehorse.VariableType type = 2;
-   * @return The type.
+   * .littlehorse.PrimitiveType primitive_type = 2;
+   * @return The enum numeric value on the wire for primitiveType.
    */
-  io.littlehorse.sdk.common.proto.VariableType getType();
+  int getPrimitiveTypeValue();
+  /**
+   * .littlehorse.PrimitiveType primitive_type = 2;
+   * @return The primitiveType.
+   */
+  io.littlehorse.sdk.common.proto.PrimitiveType getPrimitiveType();
+
+  /**
+   * .littlehorse.SchemaId schema = 3;
+   * @return Whether the schema field is set.
+   */
+  boolean hasSchema();
+  /**
+   * .littlehorse.SchemaId schema = 3;
+   * @return The schema.
+   */
+  io.littlehorse.sdk.common.proto.SchemaId getSchema();
+  /**
+   * .littlehorse.SchemaId schema = 3;
+   */
+  io.littlehorse.sdk.common.proto.SchemaIdOrBuilder getSchemaOrBuilder();
+
+  io.littlehorse.sdk.common.proto.PutWorkflowEventDefRequest.TypeCase getTypeCase();
 }
diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/Schema.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/Schema.java
new file mode 100644
index 000000000..935ea7757
--- /dev/null
+++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/Schema.java
@@ -0,0 +1,1069 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: variable.proto
+
+package io.littlehorse.sdk.common.proto;
+
+/**
+ * 
+ * A `Schema` is a versioned metadata object (tenant-scoped) inside LittleHorse
+ * that defines the structure and content of a variable value. It allows strong typing.
+ * 
+ * + * Protobuf type {@code littlehorse.Schema} + */ +public final class Schema extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:littlehorse.Schema) + SchemaOrBuilder { +private static final long serialVersionUID = 0L; + // Use Schema.newBuilder() to construct. + private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Schema() { + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Schema(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_Schema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_Schema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.littlehorse.sdk.common.proto.Schema.class, io.littlehorse.sdk.common.proto.Schema.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + private io.littlehorse.sdk.common.proto.SchemaId id_; + /** + *
+   * The id of the `Schema`. This includes the version.
+   * 
+ * + * .littlehorse.SchemaId id = 1; + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return id_ != null; + } + /** + *
+   * The id of the `Schema`. This includes the version.
+   * 
+ * + * .littlehorse.SchemaId id = 1; + * @return The id. + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaId getId() { + return id_ == null ? io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance() : id_; + } + /** + *
+   * The id of the `Schema`. This includes the version.
+   * 
+ * + * .littlehorse.SchemaId id = 1; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaIdOrBuilder getIdOrBuilder() { + return id_ == null ? io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance() : id_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + *
+   * Optionally description of the schema.
+   * 
+ * + * optional string description = 2; + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Optionally description of the schema.
+   * 
+ * + * optional string description = 2; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+   * Optionally description of the schema.
+   * 
+ * + * optional string description = 2; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_FIELD_NUMBER = 3; + private io.littlehorse.sdk.common.proto.InlineSchema schema_; + /** + *
+   * The `InlineSchema` defines the actual structure of any `Struct` using this `Schema`.
+   * 
+ * + * .littlehorse.InlineSchema schema = 3; + * @return Whether the schema field is set. + */ + @java.lang.Override + public boolean hasSchema() { + return schema_ != null; + } + /** + *
+   * The `InlineSchema` defines the actual structure of any `Struct` using this `Schema`.
+   * 
+ * + * .littlehorse.InlineSchema schema = 3; + * @return The schema. + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineSchema getSchema() { + return schema_ == null ? io.littlehorse.sdk.common.proto.InlineSchema.getDefaultInstance() : schema_; + } + /** + *
+   * The `InlineSchema` defines the actual structure of any `Struct` using this `Schema`.
+   * 
+ * + * .littlehorse.InlineSchema schema = 3; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineSchemaOrBuilder getSchemaOrBuilder() { + return schema_ == null ? io.littlehorse.sdk.common.proto.InlineSchema.getDefaultInstance() : schema_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (schema_ != null) { + output.writeMessage(3, getSchema()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (schema_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSchema()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.littlehorse.sdk.common.proto.Schema)) { + return super.equals(obj); + } + io.littlehorse.sdk.common.proto.Schema other = (io.littlehorse.sdk.common.proto.Schema) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription() + .equals(other.getDescription())) return false; + } + if (hasSchema() != other.hasSchema()) return false; + if (hasSchema()) { + if (!getSchema() + .equals(other.getSchema())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (hasSchema()) { + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.littlehorse.sdk.common.proto.Schema parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.Schema parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.Schema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.Schema parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.Schema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.Schema parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.Schema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.littlehorse.sdk.common.proto.Schema parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.littlehorse.sdk.common.proto.Schema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.littlehorse.sdk.common.proto.Schema parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.Schema parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.littlehorse.sdk.common.proto.Schema parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.littlehorse.sdk.common.proto.Schema prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A `Schema` is a versioned metadata object (tenant-scoped) inside LittleHorse
+   * that defines the structure and content of a variable value. It allows strong typing.
+   * 
+ * + * Protobuf type {@code littlehorse.Schema} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:littlehorse.Schema) + io.littlehorse.sdk.common.proto.SchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_Schema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_Schema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.littlehorse.sdk.common.proto.Schema.class, io.littlehorse.sdk.common.proto.Schema.Builder.class); + } + + // Construct using io.littlehorse.sdk.common.proto.Schema.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = null; + if (idBuilder_ != null) { + idBuilder_.dispose(); + idBuilder_ = null; + } + description_ = ""; + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); + schemaBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_Schema_descriptor; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.Schema getDefaultInstanceForType() { + return io.littlehorse.sdk.common.proto.Schema.getDefaultInstance(); + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.Schema build() { + io.littlehorse.sdk.common.proto.Schema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.Schema buildPartial() { + io.littlehorse.sdk.common.proto.Schema result = new io.littlehorse.sdk.common.proto.Schema(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.littlehorse.sdk.common.proto.Schema result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = idBuilder_ == null + ? id_ + : idBuilder_.build(); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.schema_ = schemaBuilder_ == null + ? schema_ + : schemaBuilder_.build(); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.littlehorse.sdk.common.proto.Schema) { + return mergeFrom((io.littlehorse.sdk.common.proto.Schema)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.littlehorse.sdk.common.proto.Schema other) { + if (other == io.littlehorse.sdk.common.proto.Schema.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasDescription()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasSchema()) { + mergeSchema(other.getSchema()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getIdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getSchemaFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.littlehorse.sdk.common.proto.SchemaId id_; + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.SchemaId, io.littlehorse.sdk.common.proto.SchemaId.Builder, io.littlehorse.sdk.common.proto.SchemaIdOrBuilder> idBuilder_; + /** + *
+     * The id of the `Schema`. This includes the version.
+     * 
+ * + * .littlehorse.SchemaId id = 1; + * @return Whether the id field is set. + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * The id of the `Schema`. This includes the version.
+     * 
+ * + * .littlehorse.SchemaId id = 1; + * @return The id. + */ + public io.littlehorse.sdk.common.proto.SchemaId getId() { + if (idBuilder_ == null) { + return id_ == null ? io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+     * The id of the `Schema`. This includes the version.
+     * 
+ * + * .littlehorse.SchemaId id = 1; + */ + public Builder setId(io.littlehorse.sdk.common.proto.SchemaId value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + } else { + idBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The id of the `Schema`. This includes the version.
+     * 
+ * + * .littlehorse.SchemaId id = 1; + */ + public Builder setId( + io.littlehorse.sdk.common.proto.SchemaId.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The id of the `Schema`. This includes the version.
+     * 
+ * + * .littlehorse.SchemaId id = 1; + */ + public Builder mergeId(io.littlehorse.sdk.common.proto.SchemaId value) { + if (idBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + id_ != null && + id_ != io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance()) { + getIdBuilder().mergeFrom(value); + } else { + id_ = value; + } + } else { + idBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The id of the `Schema`. This includes the version.
+     * 
+ * + * .littlehorse.SchemaId id = 1; + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = null; + if (idBuilder_ != null) { + idBuilder_.dispose(); + idBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The id of the `Schema`. This includes the version.
+     * 
+ * + * .littlehorse.SchemaId id = 1; + */ + public io.littlehorse.sdk.common.proto.SchemaId.Builder getIdBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+     * The id of the `Schema`. This includes the version.
+     * 
+ * + * .littlehorse.SchemaId id = 1; + */ + public io.littlehorse.sdk.common.proto.SchemaIdOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance() : id_; + } + } + /** + *
+     * The id of the `Schema`. This includes the version.
+     * 
+ * + * .littlehorse.SchemaId id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.SchemaId, io.littlehorse.sdk.common.proto.SchemaId.Builder, io.littlehorse.sdk.common.proto.SchemaIdOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.SchemaId, io.littlehorse.sdk.common.proto.SchemaId.Builder, io.littlehorse.sdk.common.proto.SchemaIdOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object description_ = ""; + /** + *
+     * Optionally description of the schema.
+     * 
+ * + * optional string description = 2; + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Optionally description of the schema.
+     * 
+ * + * optional string description = 2; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optionally description of the schema.
+     * 
+ * + * optional string description = 2; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optionally description of the schema.
+     * 
+ * + * optional string description = 2; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Optionally description of the schema.
+     * 
+ * + * optional string description = 2; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Optionally description of the schema.
+     * 
+ * + * optional string description = 2; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private io.littlehorse.sdk.common.proto.InlineSchema schema_; + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.InlineSchema, io.littlehorse.sdk.common.proto.InlineSchema.Builder, io.littlehorse.sdk.common.proto.InlineSchemaOrBuilder> schemaBuilder_; + /** + *
+     * The `InlineSchema` defines the actual structure of any `Struct` using this `Schema`.
+     * 
+ * + * .littlehorse.InlineSchema schema = 3; + * @return Whether the schema field is set. + */ + public boolean hasSchema() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * The `InlineSchema` defines the actual structure of any `Struct` using this `Schema`.
+     * 
+ * + * .littlehorse.InlineSchema schema = 3; + * @return The schema. + */ + public io.littlehorse.sdk.common.proto.InlineSchema getSchema() { + if (schemaBuilder_ == null) { + return schema_ == null ? io.littlehorse.sdk.common.proto.InlineSchema.getDefaultInstance() : schema_; + } else { + return schemaBuilder_.getMessage(); + } + } + /** + *
+     * The `InlineSchema` defines the actual structure of any `Struct` using this `Schema`.
+     * 
+ * + * .littlehorse.InlineSchema schema = 3; + */ + public Builder setSchema(io.littlehorse.sdk.common.proto.InlineSchema value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schema_ = value; + } else { + schemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The `InlineSchema` defines the actual structure of any `Struct` using this `Schema`.
+     * 
+ * + * .littlehorse.InlineSchema schema = 3; + */ + public Builder setSchema( + io.littlehorse.sdk.common.proto.InlineSchema.Builder builderForValue) { + if (schemaBuilder_ == null) { + schema_ = builderForValue.build(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The `InlineSchema` defines the actual structure of any `Struct` using this `Schema`.
+     * 
+ * + * .littlehorse.InlineSchema schema = 3; + */ + public Builder mergeSchema(io.littlehorse.sdk.common.proto.InlineSchema value) { + if (schemaBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + schema_ != null && + schema_ != io.littlehorse.sdk.common.proto.InlineSchema.getDefaultInstance()) { + getSchemaBuilder().mergeFrom(value); + } else { + schema_ = value; + } + } else { + schemaBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The `InlineSchema` defines the actual structure of any `Struct` using this `Schema`.
+     * 
+ * + * .littlehorse.InlineSchema schema = 3; + */ + public Builder clearSchema() { + bitField0_ = (bitField0_ & ~0x00000004); + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); + schemaBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The `InlineSchema` defines the actual structure of any `Struct` using this `Schema`.
+     * 
+ * + * .littlehorse.InlineSchema schema = 3; + */ + public io.littlehorse.sdk.common.proto.InlineSchema.Builder getSchemaBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSchemaFieldBuilder().getBuilder(); + } + /** + *
+     * The `InlineSchema` defines the actual structure of any `Struct` using this `Schema`.
+     * 
+ * + * .littlehorse.InlineSchema schema = 3; + */ + public io.littlehorse.sdk.common.proto.InlineSchemaOrBuilder getSchemaOrBuilder() { + if (schemaBuilder_ != null) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + return schema_ == null ? + io.littlehorse.sdk.common.proto.InlineSchema.getDefaultInstance() : schema_; + } + } + /** + *
+     * The `InlineSchema` defines the actual structure of any `Struct` using this `Schema`.
+     * 
+ * + * .littlehorse.InlineSchema schema = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.InlineSchema, io.littlehorse.sdk.common.proto.InlineSchema.Builder, io.littlehorse.sdk.common.proto.InlineSchemaOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.InlineSchema, io.littlehorse.sdk.common.proto.InlineSchema.Builder, io.littlehorse.sdk.common.proto.InlineSchemaOrBuilder>( + getSchema(), + getParentForChildren(), + isClean()); + schema_ = null; + } + return schemaBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:littlehorse.Schema) + } + + // @@protoc_insertion_point(class_scope:littlehorse.Schema) + private static final io.littlehorse.sdk.common.proto.Schema DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.littlehorse.sdk.common.proto.Schema(); + } + + public static io.littlehorse.sdk.common.proto.Schema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.Schema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/SchemaField.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/SchemaField.java new file mode 100644 index 000000000..3e197e508 --- /dev/null +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/SchemaField.java @@ -0,0 +1,1411 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: variable.proto + +package io.littlehorse.sdk.common.proto; + +/** + *
+ * A `SchemaField` defines a field inside a `Schema`.
+ * 
+ * + * Protobuf type {@code littlehorse.SchemaField} + */ +public final class SchemaField extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:littlehorse.SchemaField) + SchemaFieldOrBuilder { +private static final long serialVersionUID = 0L; + // Use SchemaField.newBuilder() to construct. + private SchemaField(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SchemaField() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SchemaField(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_SchemaField_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_SchemaField_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.littlehorse.sdk.common.proto.SchemaField.class, io.littlehorse.sdk.common.proto.SchemaField.Builder.class); + } + + private int fieldTypeCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object fieldType_; + public enum FieldTypeCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PRIMITIVE(3), + SCHEMA_ID(4), + INLINE_SCHEMA(5), + FIELDTYPE_NOT_SET(0); + private final int value; + private FieldTypeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FieldTypeCase valueOf(int value) { + return forNumber(value); + } + + public static FieldTypeCase forNumber(int value) { + switch (value) { + case 3: return PRIMITIVE; + case 4: return SCHEMA_ID; + case 5: return INLINE_SCHEMA; + case 0: return FIELDTYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public FieldTypeCase + getFieldTypeCase() { + return FieldTypeCase.forNumber( + fieldTypeCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The name of the field.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of the field.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPTIONAL_FIELD_NUMBER = 2; + private boolean optional_ = false; + /** + *
+   * Whether the field is optional.
+   * 
+ * + * bool optional = 2; + * @return The optional. + */ + @java.lang.Override + public boolean getOptional() { + return optional_; + } + + public static final int PRIMITIVE_FIELD_NUMBER = 3; + /** + *
+   * Specifies that the field is a primitive `VariableValue` of the specified type.
+   * 
+ * + * .littlehorse.PrimitiveType primitive = 3; + * @return Whether the primitive field is set. + */ + public boolean hasPrimitive() { + return fieldTypeCase_ == 3; + } + /** + *
+   * Specifies that the field is a primitive `VariableValue` of the specified type.
+   * 
+ * + * .littlehorse.PrimitiveType primitive = 3; + * @return The enum numeric value on the wire for primitive. + */ + public int getPrimitiveValue() { + if (fieldTypeCase_ == 3) { + return (java.lang.Integer) fieldType_; + } + return 0; + } + /** + *
+   * Specifies that the field is a primitive `VariableValue` of the specified type.
+   * 
+ * + * .littlehorse.PrimitiveType primitive = 3; + * @return The primitive. + */ + public io.littlehorse.sdk.common.proto.PrimitiveType getPrimitive() { + if (fieldTypeCase_ == 3) { + io.littlehorse.sdk.common.proto.PrimitiveType result = io.littlehorse.sdk.common.proto.PrimitiveType.forNumber( + (java.lang.Integer) fieldType_); + return result == null ? io.littlehorse.sdk.common.proto.PrimitiveType.UNRECOGNIZED : result; + } + return io.littlehorse.sdk.common.proto.PrimitiveType.JSON_OBJ; + } + + public static final int SCHEMA_ID_FIELD_NUMBER = 4; + /** + *
+   * Specifies that the field is of a specific `Schema`.
+   * 
+ * + * .littlehorse.SchemaId schema_id = 4; + * @return Whether the schemaId field is set. + */ + @java.lang.Override + public boolean hasSchemaId() { + return fieldTypeCase_ == 4; + } + /** + *
+   * Specifies that the field is of a specific `Schema`.
+   * 
+ * + * .littlehorse.SchemaId schema_id = 4; + * @return The schemaId. + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaId getSchemaId() { + if (fieldTypeCase_ == 4) { + return (io.littlehorse.sdk.common.proto.SchemaId) fieldType_; + } + return io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance(); + } + /** + *
+   * Specifies that the field is of a specific `Schema`.
+   * 
+ * + * .littlehorse.SchemaId schema_id = 4; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaIdOrBuilder getSchemaIdOrBuilder() { + if (fieldTypeCase_ == 4) { + return (io.littlehorse.sdk.common.proto.SchemaId) fieldType_; + } + return io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance(); + } + + public static final int INLINE_SCHEMA_FIELD_NUMBER = 5; + /** + *
+   * Specifies that field must be a `Struct` conforming to the accompanying schema.
+   * 
+ * + * .littlehorse.InlineSchema inline_schema = 5; + * @return Whether the inlineSchema field is set. + */ + @java.lang.Override + public boolean hasInlineSchema() { + return fieldTypeCase_ == 5; + } + /** + *
+   * Specifies that field must be a `Struct` conforming to the accompanying schema.
+   * 
+ * + * .littlehorse.InlineSchema inline_schema = 5; + * @return The inlineSchema. + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineSchema getInlineSchema() { + if (fieldTypeCase_ == 5) { + return (io.littlehorse.sdk.common.proto.InlineSchema) fieldType_; + } + return io.littlehorse.sdk.common.proto.InlineSchema.getDefaultInstance(); + } + /** + *
+   * Specifies that field must be a `Struct` conforming to the accompanying schema.
+   * 
+ * + * .littlehorse.InlineSchema inline_schema = 5; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineSchemaOrBuilder getInlineSchemaOrBuilder() { + if (fieldTypeCase_ == 5) { + return (io.littlehorse.sdk.common.proto.InlineSchema) fieldType_; + } + return io.littlehorse.sdk.common.proto.InlineSchema.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (optional_ != false) { + output.writeBool(2, optional_); + } + if (fieldTypeCase_ == 3) { + output.writeEnum(3, ((java.lang.Integer) fieldType_)); + } + if (fieldTypeCase_ == 4) { + output.writeMessage(4, (io.littlehorse.sdk.common.proto.SchemaId) fieldType_); + } + if (fieldTypeCase_ == 5) { + output.writeMessage(5, (io.littlehorse.sdk.common.proto.InlineSchema) fieldType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (optional_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, optional_); + } + if (fieldTypeCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, ((java.lang.Integer) fieldType_)); + } + if (fieldTypeCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (io.littlehorse.sdk.common.proto.SchemaId) fieldType_); + } + if (fieldTypeCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (io.littlehorse.sdk.common.proto.InlineSchema) fieldType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.littlehorse.sdk.common.proto.SchemaField)) { + return super.equals(obj); + } + io.littlehorse.sdk.common.proto.SchemaField other = (io.littlehorse.sdk.common.proto.SchemaField) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getOptional() + != other.getOptional()) return false; + if (!getFieldTypeCase().equals(other.getFieldTypeCase())) return false; + switch (fieldTypeCase_) { + case 3: + if (getPrimitiveValue() + != other.getPrimitiveValue()) return false; + break; + case 4: + if (!getSchemaId() + .equals(other.getSchemaId())) return false; + break; + case 5: + if (!getInlineSchema() + .equals(other.getInlineSchema())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + OPTIONAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOptional()); + switch (fieldTypeCase_) { + case 3: + hash = (37 * hash) + PRIMITIVE_FIELD_NUMBER; + hash = (53 * hash) + getPrimitiveValue(); + break; + case 4: + hash = (37 * hash) + SCHEMA_ID_FIELD_NUMBER; + hash = (53 * hash) + getSchemaId().hashCode(); + break; + case 5: + hash = (37 * hash) + INLINE_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getInlineSchema().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.littlehorse.sdk.common.proto.SchemaField parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.SchemaField parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.SchemaField parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.SchemaField parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.SchemaField parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.SchemaField parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.SchemaField parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.littlehorse.sdk.common.proto.SchemaField parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.littlehorse.sdk.common.proto.SchemaField parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.littlehorse.sdk.common.proto.SchemaField parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.SchemaField parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.littlehorse.sdk.common.proto.SchemaField parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.littlehorse.sdk.common.proto.SchemaField prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A `SchemaField` defines a field inside a `Schema`.
+   * 
+ * + * Protobuf type {@code littlehorse.SchemaField} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:littlehorse.SchemaField) + io.littlehorse.sdk.common.proto.SchemaFieldOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_SchemaField_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_SchemaField_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.littlehorse.sdk.common.proto.SchemaField.class, io.littlehorse.sdk.common.proto.SchemaField.Builder.class); + } + + // Construct using io.littlehorse.sdk.common.proto.SchemaField.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + optional_ = false; + if (schemaIdBuilder_ != null) { + schemaIdBuilder_.clear(); + } + if (inlineSchemaBuilder_ != null) { + inlineSchemaBuilder_.clear(); + } + fieldTypeCase_ = 0; + fieldType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_SchemaField_descriptor; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaField getDefaultInstanceForType() { + return io.littlehorse.sdk.common.proto.SchemaField.getDefaultInstance(); + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaField build() { + io.littlehorse.sdk.common.proto.SchemaField result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaField buildPartial() { + io.littlehorse.sdk.common.proto.SchemaField result = new io.littlehorse.sdk.common.proto.SchemaField(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(io.littlehorse.sdk.common.proto.SchemaField result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.optional_ = optional_; + } + } + + private void buildPartialOneofs(io.littlehorse.sdk.common.proto.SchemaField result) { + result.fieldTypeCase_ = fieldTypeCase_; + result.fieldType_ = this.fieldType_; + if (fieldTypeCase_ == 4 && + schemaIdBuilder_ != null) { + result.fieldType_ = schemaIdBuilder_.build(); + } + if (fieldTypeCase_ == 5 && + inlineSchemaBuilder_ != null) { + result.fieldType_ = inlineSchemaBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.littlehorse.sdk.common.proto.SchemaField) { + return mergeFrom((io.littlehorse.sdk.common.proto.SchemaField)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.littlehorse.sdk.common.proto.SchemaField other) { + if (other == io.littlehorse.sdk.common.proto.SchemaField.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getOptional() != false) { + setOptional(other.getOptional()); + } + switch (other.getFieldTypeCase()) { + case PRIMITIVE: { + setPrimitiveValue(other.getPrimitiveValue()); + break; + } + case SCHEMA_ID: { + mergeSchemaId(other.getSchemaId()); + break; + } + case INLINE_SCHEMA: { + mergeInlineSchema(other.getInlineSchema()); + break; + } + case FIELDTYPE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + optional_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + int rawValue = input.readEnum(); + fieldTypeCase_ = 3; + fieldType_ = rawValue; + break; + } // case 24 + case 34: { + input.readMessage( + getSchemaIdFieldBuilder().getBuilder(), + extensionRegistry); + fieldTypeCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getInlineSchemaFieldBuilder().getBuilder(), + extensionRegistry); + fieldTypeCase_ = 5; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int fieldTypeCase_ = 0; + private java.lang.Object fieldType_; + public FieldTypeCase + getFieldTypeCase() { + return FieldTypeCase.forNumber( + fieldTypeCase_); + } + + public Builder clearFieldType() { + fieldTypeCase_ = 0; + fieldType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * The name of the field.
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the field.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the field.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The name of the field.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The name of the field.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean optional_ ; + /** + *
+     * Whether the field is optional.
+     * 
+ * + * bool optional = 2; + * @return The optional. + */ + @java.lang.Override + public boolean getOptional() { + return optional_; + } + /** + *
+     * Whether the field is optional.
+     * 
+ * + * bool optional = 2; + * @param value The optional to set. + * @return This builder for chaining. + */ + public Builder setOptional(boolean value) { + + optional_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Whether the field is optional.
+     * 
+ * + * bool optional = 2; + * @return This builder for chaining. + */ + public Builder clearOptional() { + bitField0_ = (bitField0_ & ~0x00000002); + optional_ = false; + onChanged(); + return this; + } + + /** + *
+     * Specifies that the field is a primitive `VariableValue` of the specified type.
+     * 
+ * + * .littlehorse.PrimitiveType primitive = 3; + * @return Whether the primitive field is set. + */ + @java.lang.Override + public boolean hasPrimitive() { + return fieldTypeCase_ == 3; + } + /** + *
+     * Specifies that the field is a primitive `VariableValue` of the specified type.
+     * 
+ * + * .littlehorse.PrimitiveType primitive = 3; + * @return The enum numeric value on the wire for primitive. + */ + @java.lang.Override + public int getPrimitiveValue() { + if (fieldTypeCase_ == 3) { + return ((java.lang.Integer) fieldType_).intValue(); + } + return 0; + } + /** + *
+     * Specifies that the field is a primitive `VariableValue` of the specified type.
+     * 
+ * + * .littlehorse.PrimitiveType primitive = 3; + * @param value The enum numeric value on the wire for primitive to set. + * @return This builder for chaining. + */ + public Builder setPrimitiveValue(int value) { + fieldTypeCase_ = 3; + fieldType_ = value; + onChanged(); + return this; + } + /** + *
+     * Specifies that the field is a primitive `VariableValue` of the specified type.
+     * 
+ * + * .littlehorse.PrimitiveType primitive = 3; + * @return The primitive. + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.PrimitiveType getPrimitive() { + if (fieldTypeCase_ == 3) { + io.littlehorse.sdk.common.proto.PrimitiveType result = io.littlehorse.sdk.common.proto.PrimitiveType.forNumber( + (java.lang.Integer) fieldType_); + return result == null ? io.littlehorse.sdk.common.proto.PrimitiveType.UNRECOGNIZED : result; + } + return io.littlehorse.sdk.common.proto.PrimitiveType.JSON_OBJ; + } + /** + *
+     * Specifies that the field is a primitive `VariableValue` of the specified type.
+     * 
+ * + * .littlehorse.PrimitiveType primitive = 3; + * @param value The primitive to set. + * @return This builder for chaining. + */ + public Builder setPrimitive(io.littlehorse.sdk.common.proto.PrimitiveType value) { + if (value == null) { + throw new NullPointerException(); + } + fieldTypeCase_ = 3; + fieldType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Specifies that the field is a primitive `VariableValue` of the specified type.
+     * 
+ * + * .littlehorse.PrimitiveType primitive = 3; + * @return This builder for chaining. + */ + public Builder clearPrimitive() { + if (fieldTypeCase_ == 3) { + fieldTypeCase_ = 0; + fieldType_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.SchemaId, io.littlehorse.sdk.common.proto.SchemaId.Builder, io.littlehorse.sdk.common.proto.SchemaIdOrBuilder> schemaIdBuilder_; + /** + *
+     * Specifies that the field is of a specific `Schema`.
+     * 
+ * + * .littlehorse.SchemaId schema_id = 4; + * @return Whether the schemaId field is set. + */ + @java.lang.Override + public boolean hasSchemaId() { + return fieldTypeCase_ == 4; + } + /** + *
+     * Specifies that the field is of a specific `Schema`.
+     * 
+ * + * .littlehorse.SchemaId schema_id = 4; + * @return The schemaId. + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaId getSchemaId() { + if (schemaIdBuilder_ == null) { + if (fieldTypeCase_ == 4) { + return (io.littlehorse.sdk.common.proto.SchemaId) fieldType_; + } + return io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance(); + } else { + if (fieldTypeCase_ == 4) { + return schemaIdBuilder_.getMessage(); + } + return io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance(); + } + } + /** + *
+     * Specifies that the field is of a specific `Schema`.
+     * 
+ * + * .littlehorse.SchemaId schema_id = 4; + */ + public Builder setSchemaId(io.littlehorse.sdk.common.proto.SchemaId value) { + if (schemaIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fieldType_ = value; + onChanged(); + } else { + schemaIdBuilder_.setMessage(value); + } + fieldTypeCase_ = 4; + return this; + } + /** + *
+     * Specifies that the field is of a specific `Schema`.
+     * 
+ * + * .littlehorse.SchemaId schema_id = 4; + */ + public Builder setSchemaId( + io.littlehorse.sdk.common.proto.SchemaId.Builder builderForValue) { + if (schemaIdBuilder_ == null) { + fieldType_ = builderForValue.build(); + onChanged(); + } else { + schemaIdBuilder_.setMessage(builderForValue.build()); + } + fieldTypeCase_ = 4; + return this; + } + /** + *
+     * Specifies that the field is of a specific `Schema`.
+     * 
+ * + * .littlehorse.SchemaId schema_id = 4; + */ + public Builder mergeSchemaId(io.littlehorse.sdk.common.proto.SchemaId value) { + if (schemaIdBuilder_ == null) { + if (fieldTypeCase_ == 4 && + fieldType_ != io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance()) { + fieldType_ = io.littlehorse.sdk.common.proto.SchemaId.newBuilder((io.littlehorse.sdk.common.proto.SchemaId) fieldType_) + .mergeFrom(value).buildPartial(); + } else { + fieldType_ = value; + } + onChanged(); + } else { + if (fieldTypeCase_ == 4) { + schemaIdBuilder_.mergeFrom(value); + } else { + schemaIdBuilder_.setMessage(value); + } + } + fieldTypeCase_ = 4; + return this; + } + /** + *
+     * Specifies that the field is of a specific `Schema`.
+     * 
+ * + * .littlehorse.SchemaId schema_id = 4; + */ + public Builder clearSchemaId() { + if (schemaIdBuilder_ == null) { + if (fieldTypeCase_ == 4) { + fieldTypeCase_ = 0; + fieldType_ = null; + onChanged(); + } + } else { + if (fieldTypeCase_ == 4) { + fieldTypeCase_ = 0; + fieldType_ = null; + } + schemaIdBuilder_.clear(); + } + return this; + } + /** + *
+     * Specifies that the field is of a specific `Schema`.
+     * 
+ * + * .littlehorse.SchemaId schema_id = 4; + */ + public io.littlehorse.sdk.common.proto.SchemaId.Builder getSchemaIdBuilder() { + return getSchemaIdFieldBuilder().getBuilder(); + } + /** + *
+     * Specifies that the field is of a specific `Schema`.
+     * 
+ * + * .littlehorse.SchemaId schema_id = 4; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaIdOrBuilder getSchemaIdOrBuilder() { + if ((fieldTypeCase_ == 4) && (schemaIdBuilder_ != null)) { + return schemaIdBuilder_.getMessageOrBuilder(); + } else { + if (fieldTypeCase_ == 4) { + return (io.littlehorse.sdk.common.proto.SchemaId) fieldType_; + } + return io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance(); + } + } + /** + *
+     * Specifies that the field is of a specific `Schema`.
+     * 
+ * + * .littlehorse.SchemaId schema_id = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.SchemaId, io.littlehorse.sdk.common.proto.SchemaId.Builder, io.littlehorse.sdk.common.proto.SchemaIdOrBuilder> + getSchemaIdFieldBuilder() { + if (schemaIdBuilder_ == null) { + if (!(fieldTypeCase_ == 4)) { + fieldType_ = io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance(); + } + schemaIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.SchemaId, io.littlehorse.sdk.common.proto.SchemaId.Builder, io.littlehorse.sdk.common.proto.SchemaIdOrBuilder>( + (io.littlehorse.sdk.common.proto.SchemaId) fieldType_, + getParentForChildren(), + isClean()); + fieldType_ = null; + } + fieldTypeCase_ = 4; + onChanged(); + return schemaIdBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.InlineSchema, io.littlehorse.sdk.common.proto.InlineSchema.Builder, io.littlehorse.sdk.common.proto.InlineSchemaOrBuilder> inlineSchemaBuilder_; + /** + *
+     * Specifies that field must be a `Struct` conforming to the accompanying schema.
+     * 
+ * + * .littlehorse.InlineSchema inline_schema = 5; + * @return Whether the inlineSchema field is set. + */ + @java.lang.Override + public boolean hasInlineSchema() { + return fieldTypeCase_ == 5; + } + /** + *
+     * Specifies that field must be a `Struct` conforming to the accompanying schema.
+     * 
+ * + * .littlehorse.InlineSchema inline_schema = 5; + * @return The inlineSchema. + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineSchema getInlineSchema() { + if (inlineSchemaBuilder_ == null) { + if (fieldTypeCase_ == 5) { + return (io.littlehorse.sdk.common.proto.InlineSchema) fieldType_; + } + return io.littlehorse.sdk.common.proto.InlineSchema.getDefaultInstance(); + } else { + if (fieldTypeCase_ == 5) { + return inlineSchemaBuilder_.getMessage(); + } + return io.littlehorse.sdk.common.proto.InlineSchema.getDefaultInstance(); + } + } + /** + *
+     * Specifies that field must be a `Struct` conforming to the accompanying schema.
+     * 
+ * + * .littlehorse.InlineSchema inline_schema = 5; + */ + public Builder setInlineSchema(io.littlehorse.sdk.common.proto.InlineSchema value) { + if (inlineSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fieldType_ = value; + onChanged(); + } else { + inlineSchemaBuilder_.setMessage(value); + } + fieldTypeCase_ = 5; + return this; + } + /** + *
+     * Specifies that field must be a `Struct` conforming to the accompanying schema.
+     * 
+ * + * .littlehorse.InlineSchema inline_schema = 5; + */ + public Builder setInlineSchema( + io.littlehorse.sdk.common.proto.InlineSchema.Builder builderForValue) { + if (inlineSchemaBuilder_ == null) { + fieldType_ = builderForValue.build(); + onChanged(); + } else { + inlineSchemaBuilder_.setMessage(builderForValue.build()); + } + fieldTypeCase_ = 5; + return this; + } + /** + *
+     * Specifies that field must be a `Struct` conforming to the accompanying schema.
+     * 
+ * + * .littlehorse.InlineSchema inline_schema = 5; + */ + public Builder mergeInlineSchema(io.littlehorse.sdk.common.proto.InlineSchema value) { + if (inlineSchemaBuilder_ == null) { + if (fieldTypeCase_ == 5 && + fieldType_ != io.littlehorse.sdk.common.proto.InlineSchema.getDefaultInstance()) { + fieldType_ = io.littlehorse.sdk.common.proto.InlineSchema.newBuilder((io.littlehorse.sdk.common.proto.InlineSchema) fieldType_) + .mergeFrom(value).buildPartial(); + } else { + fieldType_ = value; + } + onChanged(); + } else { + if (fieldTypeCase_ == 5) { + inlineSchemaBuilder_.mergeFrom(value); + } else { + inlineSchemaBuilder_.setMessage(value); + } + } + fieldTypeCase_ = 5; + return this; + } + /** + *
+     * Specifies that field must be a `Struct` conforming to the accompanying schema.
+     * 
+ * + * .littlehorse.InlineSchema inline_schema = 5; + */ + public Builder clearInlineSchema() { + if (inlineSchemaBuilder_ == null) { + if (fieldTypeCase_ == 5) { + fieldTypeCase_ = 0; + fieldType_ = null; + onChanged(); + } + } else { + if (fieldTypeCase_ == 5) { + fieldTypeCase_ = 0; + fieldType_ = null; + } + inlineSchemaBuilder_.clear(); + } + return this; + } + /** + *
+     * Specifies that field must be a `Struct` conforming to the accompanying schema.
+     * 
+ * + * .littlehorse.InlineSchema inline_schema = 5; + */ + public io.littlehorse.sdk.common.proto.InlineSchema.Builder getInlineSchemaBuilder() { + return getInlineSchemaFieldBuilder().getBuilder(); + } + /** + *
+     * Specifies that field must be a `Struct` conforming to the accompanying schema.
+     * 
+ * + * .littlehorse.InlineSchema inline_schema = 5; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineSchemaOrBuilder getInlineSchemaOrBuilder() { + if ((fieldTypeCase_ == 5) && (inlineSchemaBuilder_ != null)) { + return inlineSchemaBuilder_.getMessageOrBuilder(); + } else { + if (fieldTypeCase_ == 5) { + return (io.littlehorse.sdk.common.proto.InlineSchema) fieldType_; + } + return io.littlehorse.sdk.common.proto.InlineSchema.getDefaultInstance(); + } + } + /** + *
+     * Specifies that field must be a `Struct` conforming to the accompanying schema.
+     * 
+ * + * .littlehorse.InlineSchema inline_schema = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.InlineSchema, io.littlehorse.sdk.common.proto.InlineSchema.Builder, io.littlehorse.sdk.common.proto.InlineSchemaOrBuilder> + getInlineSchemaFieldBuilder() { + if (inlineSchemaBuilder_ == null) { + if (!(fieldTypeCase_ == 5)) { + fieldType_ = io.littlehorse.sdk.common.proto.InlineSchema.getDefaultInstance(); + } + inlineSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.InlineSchema, io.littlehorse.sdk.common.proto.InlineSchema.Builder, io.littlehorse.sdk.common.proto.InlineSchemaOrBuilder>( + (io.littlehorse.sdk.common.proto.InlineSchema) fieldType_, + getParentForChildren(), + isClean()); + fieldType_ = null; + } + fieldTypeCase_ = 5; + onChanged(); + return inlineSchemaBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:littlehorse.SchemaField) + } + + // @@protoc_insertion_point(class_scope:littlehorse.SchemaField) + private static final io.littlehorse.sdk.common.proto.SchemaField DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.littlehorse.sdk.common.proto.SchemaField(); + } + + public static io.littlehorse.sdk.common.proto.SchemaField getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchemaField parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaField getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/SchemaFieldOrBuilder.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/SchemaFieldOrBuilder.java new file mode 100644 index 000000000..ce178f5b1 --- /dev/null +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/SchemaFieldOrBuilder.java @@ -0,0 +1,123 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: variable.proto + +package io.littlehorse.sdk.common.proto; + +public interface SchemaFieldOrBuilder extends + // @@protoc_insertion_point(interface_extends:littlehorse.SchemaField) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the field.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The name of the field.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Whether the field is optional.
+   * 
+ * + * bool optional = 2; + * @return The optional. + */ + boolean getOptional(); + + /** + *
+   * Specifies that the field is a primitive `VariableValue` of the specified type.
+   * 
+ * + * .littlehorse.PrimitiveType primitive = 3; + * @return Whether the primitive field is set. + */ + boolean hasPrimitive(); + /** + *
+   * Specifies that the field is a primitive `VariableValue` of the specified type.
+   * 
+ * + * .littlehorse.PrimitiveType primitive = 3; + * @return The enum numeric value on the wire for primitive. + */ + int getPrimitiveValue(); + /** + *
+   * Specifies that the field is a primitive `VariableValue` of the specified type.
+   * 
+ * + * .littlehorse.PrimitiveType primitive = 3; + * @return The primitive. + */ + io.littlehorse.sdk.common.proto.PrimitiveType getPrimitive(); + + /** + *
+   * Specifies that the field is of a specific `Schema`.
+   * 
+ * + * .littlehorse.SchemaId schema_id = 4; + * @return Whether the schemaId field is set. + */ + boolean hasSchemaId(); + /** + *
+   * Specifies that the field is of a specific `Schema`.
+   * 
+ * + * .littlehorse.SchemaId schema_id = 4; + * @return The schemaId. + */ + io.littlehorse.sdk.common.proto.SchemaId getSchemaId(); + /** + *
+   * Specifies that the field is of a specific `Schema`.
+   * 
+ * + * .littlehorse.SchemaId schema_id = 4; + */ + io.littlehorse.sdk.common.proto.SchemaIdOrBuilder getSchemaIdOrBuilder(); + + /** + *
+   * Specifies that field must be a `Struct` conforming to the accompanying schema.
+   * 
+ * + * .littlehorse.InlineSchema inline_schema = 5; + * @return Whether the inlineSchema field is set. + */ + boolean hasInlineSchema(); + /** + *
+   * Specifies that field must be a `Struct` conforming to the accompanying schema.
+   * 
+ * + * .littlehorse.InlineSchema inline_schema = 5; + * @return The inlineSchema. + */ + io.littlehorse.sdk.common.proto.InlineSchema getInlineSchema(); + /** + *
+   * Specifies that field must be a `Struct` conforming to the accompanying schema.
+   * 
+ * + * .littlehorse.InlineSchema inline_schema = 5; + */ + io.littlehorse.sdk.common.proto.InlineSchemaOrBuilder getInlineSchemaOrBuilder(); + + io.littlehorse.sdk.common.proto.SchemaField.FieldTypeCase getFieldTypeCase(); +} diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/SchemaId.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/SchemaId.java new file mode 100644 index 000000000..9655d1aa8 --- /dev/null +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/SchemaId.java @@ -0,0 +1,659 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: object_id.proto + +package io.littlehorse.sdk.common.proto; + +/** + *
+ * ID for a Schema
+ * 
+ * + * Protobuf type {@code littlehorse.SchemaId} + */ +public final class SchemaId extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:littlehorse.SchemaId) + SchemaIdOrBuilder { +private static final long serialVersionUID = 0L; + // Use SchemaId.newBuilder() to construct. + private SchemaId(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SchemaId() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SchemaId(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.littlehorse.sdk.common.proto.ObjectId.internal_static_littlehorse_SchemaId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.littlehorse.sdk.common.proto.ObjectId.internal_static_littlehorse_SchemaId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.littlehorse.sdk.common.proto.SchemaId.class, io.littlehorse.sdk.common.proto.SchemaId.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The name of the `Schema`.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of the `Schema`.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 2; + private int version_ = 0; + /** + *
+   * The version of the `Schema`.
+   * 
+ * + * int32 version = 2; + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (version_ != 0) { + output.writeInt32(2, version_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (version_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, version_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.littlehorse.sdk.common.proto.SchemaId)) { + return super.equals(obj); + } + io.littlehorse.sdk.common.proto.SchemaId other = (io.littlehorse.sdk.common.proto.SchemaId) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getVersion() + != other.getVersion()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.littlehorse.sdk.common.proto.SchemaId parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.SchemaId parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.SchemaId parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.SchemaId parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.SchemaId parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.SchemaId parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.SchemaId parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.littlehorse.sdk.common.proto.SchemaId parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.littlehorse.sdk.common.proto.SchemaId parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.littlehorse.sdk.common.proto.SchemaId parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.SchemaId parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.littlehorse.sdk.common.proto.SchemaId parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.littlehorse.sdk.common.proto.SchemaId prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ID for a Schema
+   * 
+ * + * Protobuf type {@code littlehorse.SchemaId} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:littlehorse.SchemaId) + io.littlehorse.sdk.common.proto.SchemaIdOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.littlehorse.sdk.common.proto.ObjectId.internal_static_littlehorse_SchemaId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.littlehorse.sdk.common.proto.ObjectId.internal_static_littlehorse_SchemaId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.littlehorse.sdk.common.proto.SchemaId.class, io.littlehorse.sdk.common.proto.SchemaId.Builder.class); + } + + // Construct using io.littlehorse.sdk.common.proto.SchemaId.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + version_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.littlehorse.sdk.common.proto.ObjectId.internal_static_littlehorse_SchemaId_descriptor; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaId getDefaultInstanceForType() { + return io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance(); + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaId build() { + io.littlehorse.sdk.common.proto.SchemaId result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaId buildPartial() { + io.littlehorse.sdk.common.proto.SchemaId result = new io.littlehorse.sdk.common.proto.SchemaId(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.littlehorse.sdk.common.proto.SchemaId result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.version_ = version_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.littlehorse.sdk.common.proto.SchemaId) { + return mergeFrom((io.littlehorse.sdk.common.proto.SchemaId)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.littlehorse.sdk.common.proto.SchemaId other) { + if (other == io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getVersion() != 0) { + setVersion(other.getVersion()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + version_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * The name of the `Schema`.
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the `Schema`.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the `Schema`.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The name of the `Schema`.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The name of the `Schema`.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int version_ ; + /** + *
+     * The version of the `Schema`.
+     * 
+ * + * int32 version = 2; + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + /** + *
+     * The version of the `Schema`.
+     * 
+ * + * int32 version = 2; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(int value) { + + version_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The version of the `Schema`.
+     * 
+ * + * int32 version = 2; + * @return This builder for chaining. + */ + public Builder clearVersion() { + bitField0_ = (bitField0_ & ~0x00000002); + version_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:littlehorse.SchemaId) + } + + // @@protoc_insertion_point(class_scope:littlehorse.SchemaId) + private static final io.littlehorse.sdk.common.proto.SchemaId DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.littlehorse.sdk.common.proto.SchemaId(); + } + + public static io.littlehorse.sdk.common.proto.SchemaId getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchemaId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaId getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/SchemaIdOrBuilder.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/SchemaIdOrBuilder.java new file mode 100644 index 000000000..6022fd835 --- /dev/null +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/SchemaIdOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: object_id.proto + +package io.littlehorse.sdk.common.proto; + +public interface SchemaIdOrBuilder extends + // @@protoc_insertion_point(interface_extends:littlehorse.SchemaId) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the `Schema`.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The name of the `Schema`.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The version of the `Schema`.
+   * 
+ * + * int32 version = 2; + * @return The version. + */ + int getVersion(); +} diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/SchemaOrBuilder.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/SchemaOrBuilder.java new file mode 100644 index 000000000..c949bc947 --- /dev/null +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/SchemaOrBuilder.java @@ -0,0 +1,92 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: variable.proto + +package io.littlehorse.sdk.common.proto; + +public interface SchemaOrBuilder extends + // @@protoc_insertion_point(interface_extends:littlehorse.Schema) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The id of the `Schema`. This includes the version.
+   * 
+ * + * .littlehorse.SchemaId id = 1; + * @return Whether the id field is set. + */ + boolean hasId(); + /** + *
+   * The id of the `Schema`. This includes the version.
+   * 
+ * + * .littlehorse.SchemaId id = 1; + * @return The id. + */ + io.littlehorse.sdk.common.proto.SchemaId getId(); + /** + *
+   * The id of the `Schema`. This includes the version.
+   * 
+ * + * .littlehorse.SchemaId id = 1; + */ + io.littlehorse.sdk.common.proto.SchemaIdOrBuilder getIdOrBuilder(); + + /** + *
+   * Optionally description of the schema.
+   * 
+ * + * optional string description = 2; + * @return Whether the description field is set. + */ + boolean hasDescription(); + /** + *
+   * Optionally description of the schema.
+   * 
+ * + * optional string description = 2; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+   * Optionally description of the schema.
+   * 
+ * + * optional string description = 2; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+   * The `InlineSchema` defines the actual structure of any `Struct` using this `Schema`.
+   * 
+ * + * .littlehorse.InlineSchema schema = 3; + * @return Whether the schema field is set. + */ + boolean hasSchema(); + /** + *
+   * The `InlineSchema` defines the actual structure of any `Struct` using this `Schema`.
+   * 
+ * + * .littlehorse.InlineSchema schema = 3; + * @return The schema. + */ + io.littlehorse.sdk.common.proto.InlineSchema getSchema(); + /** + *
+   * The `InlineSchema` defines the actual structure of any `Struct` using this `Schema`.
+   * 
+ * + * .littlehorse.InlineSchema schema = 3; + */ + io.littlehorse.sdk.common.proto.InlineSchemaOrBuilder getSchemaOrBuilder(); +} diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/Service.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/Service.java index 934124066..bb9868e47 100644 --- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/Service.java +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/Service.java @@ -458,439 +458,441 @@ public static void registerAllExtensions( "name\030\001 \001(\t\022,\n\ninput_vars\030\002 \003(\0132\030.littleh" + "orse.VariableDef\022<\n\routput_schema\030\003 \001(\0132" + " .littlehorse.TaskDefOutputSchemaH\000\210\001\001B\020" + - "\n\016_output_schema\"S\n\032PutWorkflowEventDefR" + - "equest\022\014\n\004name\030\001 \001(\t\022\'\n\004type\030\002 \001(\0162\031.lit" + - "tlehorse.VariableType\"{\n\025PutUserTaskDefR" + - "equest\022\014\n\004name\030\001 \001(\t\022*\n\006fields\030\002 \003(\0132\032.l" + - "ittlehorse.UserTaskField\022\030\n\013description\030" + - "\003 \001(\tH\000\210\001\001B\016\n\014_description\"o\n\032PutExterna" + - "lEventDefRequest\022\014\n\004name\030\001 \001(\t\022C\n\020retent" + - "ion_policy\030\002 \001(\0132).littlehorse.ExternalE" + - "ventRetentionPolicy\"\303\002\n\027PutExternalEvent" + - "Request\022\'\n\twf_run_id\030\001 \001(\0132\024.littlehorse" + - ".WfRunId\022>\n\025external_event_def_id\030\002 \001(\0132" + - "\037.littlehorse.ExternalEventDefId\022\021\n\004guid" + - "\030\003 \001(\tH\000\210\001\001\022+\n\007content\030\005 \001(\0132\032.littlehor" + - "se.VariableValue\022\036\n\021thread_run_number\030\006 " + - "\001(\005H\001\210\001\001\022\036\n\021node_run_position\030\007 \001(\005H\002\210\001\001" + - "B\007\n\005_guidB\024\n\022_thread_run_numberB\024\n\022_node" + - "_run_positionJ\004\010\004\020\005J\004\010\010\020\t\"F\n\032DeleteExter" + - "nalEventRequest\022(\n\002id\030\001 \001(\0132\034.littlehors" + - "e.ExternalEventId\"H\n\033DeleteScheduledWfRu" + - "nRequest\022)\n\002id\030\001 \001(\0132\035.littlehorse.Sched" + - "uledWfRunId\"6\n\022DeleteWfRunRequest\022 \n\002id\030" + - "\001 \001(\0132\024.littlehorse.WfRunId\":\n\024DeleteTas" + - "kDefRequest\022\"\n\002id\030\001 \001(\0132\026.littlehorse.Ta" + - "skDefId\"B\n\030DeleteUserTaskDefRequest\022&\n\002i" + - "d\030\001 \001(\0132\032.littlehorse.UserTaskDefId\"8\n\023D" + - "eleteWfSpecRequest\022!\n\002id\030\001 \001(\0132\025.littleh" + - "orse.WfSpecId\"L\n\035DeleteExternalEventDefR" + - "equest\022+\n\002id\030\001 \001(\0132\037.littlehorse.Externa" + - "lEventDefId\"\343\002\n\014RunWfRequest\022\024\n\014wf_spec_" + - "name\030\001 \001(\t\022\032\n\rmajor_version\030\002 \001(\005H\000\210\001\001\022\025" + - "\n\010revision\030\003 \001(\005H\001\210\001\001\022;\n\tvariables\030\004 \003(\013" + - "2(.littlehorse.RunWfRequest.VariablesEnt" + - "ry\022\017\n\002id\030\005 \001(\tH\002\210\001\001\0223\n\020parent_wf_run_id\030" + - "\006 \001(\0132\024.littlehorse.WfRunIdH\003\210\001\001\032L\n\016Vari" + - "ablesEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032" + - ".littlehorse.VariableValue:\0028\001B\020\n\016_major" + - "_versionB\013\n\t_revisionB\005\n\003_idB\023\n\021_parent_" + - "wf_run_id\"\206\003\n\021ScheduleWfRequest\022\017\n\002id\030\001 " + - "\001(\tH\000\210\001\001\022\024\n\014wf_spec_name\030\002 \001(\t\022\032\n\rmajor_" + - "version\030\003 \001(\005H\001\210\001\001\022\025\n\010revision\030\004 \001(\005H\002\210\001" + - "\001\022@\n\tvariables\030\005 \003(\0132-.littlehorse.Sched" + - "uleWfRequest.VariablesEntry\0223\n\020parent_wf" + - "_run_id\030\006 \001(\0132\024.littlehorse.WfRunIdH\003\210\001\001" + - "\022\027\n\017cron_expression\030\007 \001(\t\032L\n\016VariablesEn" + - "try\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.little" + - "horse.VariableValue:\0028\001B\005\n\003_idB\020\n\016_major" + - "_versionB\013\n\t_revisionB\023\n\021_parent_wf_run_" + - "id\"L\n\rVariableMatch\022\020\n\010var_name\030\001 \001(\t\022)\n" + - "\005value\030\002 \001(\0132\032.littlehorse.VariableValue" + - "\"\275\001\n\031AwaitWorkflowEventRequest\022\'\n\twf_run" + - "_id\030\001 \001(\0132\024.littlehorse.WfRunId\0226\n\revent" + - "_def_ids\030\002 \003(\0132\037.littlehorse.WorkflowEve" + - "ntDefId\022?\n\031workflow_events_to_ignore\030\003 \003" + - "(\0132\034.littlehorse.WorkflowEventId\"\337\003\n\022Sea" + - "rchWfRunRequest\022\025\n\010bookmark\030\001 \001(\014H\000\210\001\001\022\022" + - "\n\005limit\030\002 \001(\005H\001\210\001\001\022\024\n\014wf_spec_name\030\003 \001(\t" + - "\022\"\n\025wf_spec_major_version\030\004 \001(\005H\002\210\001\001\022\035\n\020" + - "wf_spec_revision\030\005 \001(\005H\003\210\001\001\022*\n\006status\030\006 " + - "\001(\0162\025.littlehorse.LHStatusH\004\210\001\001\0227\n\016earli" + - "est_start\030\007 \001(\0132\032.google.protobuf.Timest" + - "ampH\005\210\001\001\0225\n\014latest_start\030\010 \001(\0132\032.google." + - "protobuf.TimestampH\006\210\001\001\0224\n\020variable_filt" + - "ers\030\t \003(\0132\032.littlehorse.VariableMatchB\013\n" + - "\t_bookmarkB\010\n\006_limitB\030\n\026_wf_spec_major_v" + - "ersionB\023\n\021_wf_spec_revisionB\t\n\007_statusB\021" + - "\n\017_earliest_startB\017\n\r_latest_start\"X\n\013Wf" + - "RunIdList\022%\n\007results\030\001 \003(\0132\024.littlehorse" + - ".WfRunId\022\025\n\010bookmark\030\002 \001(\014H\000\210\001\001B\013\n\t_book" + - "mark\"\274\002\n\024SearchTaskRunRequest\022\025\n\010bookmar" + - "k\030\001 \001(\014H\000\210\001\001\022\022\n\005limit\030\002 \001(\005H\001\210\001\001\022\025\n\rtask" + - "_def_name\030\003 \001(\t\022,\n\006status\030\004 \001(\0162\027.little" + - "horse.TaskStatusH\002\210\001\001\0227\n\016earliest_start\030" + - "\005 \001(\0132\032.google.protobuf.TimestampH\003\210\001\001\0225" + - "\n\014latest_start\030\006 \001(\0132\032.google.protobuf.T" + - "imestampH\004\210\001\001B\013\n\t_bookmarkB\010\n\006_limitB\t\n\007" + - "_statusB\021\n\017_earliest_startB\017\n\r_latest_st" + - "art\"\\\n\rTaskRunIdList\022\'\n\007results\030\001 \003(\0132\026." + - "littlehorse.TaskRunId\022\025\n\010bookmark\030\002 \001(\014H" + - "\000\210\001\001B\013\n\t_bookmark\"\361\003\n\024SearchNodeRunReque" + - "st\022\025\n\010bookmark\030\001 \001(\014H\000\210\001\001\022\022\n\005limit\030\002 \001(\005" + - "H\001\210\001\001\0227\n\016earliest_start\030\003 \001(\0132\032.google.p" + - "rotobuf.TimestampH\002\210\001\001\0225\n\014latest_start\030\004" + - " \001(\0132\032.google.protobuf.TimestampH\003\210\001\001\022=\n" + - "\tnode_type\030\005 \001(\0162*.littlehorse.SearchNod" + - "eRunRequest.NodeType\022%\n\006status\030\006 \001(\0162\025.l" + - "ittlehorse.LHStatus\"\234\001\n\010NodeType\022\010\n\004TASK" + - "\020\000\022\022\n\016EXTERNAL_EVENT\020\001\022\016\n\nENTRYPOINT\020\002\022\010" + - "\n\004EXIT\020\003\022\020\n\014START_THREAD\020\004\022\020\n\014WAIT_THREA" + - "DS\020\005\022\t\n\005SLEEP\020\006\022\r\n\tUSER_TASK\020\007\022\032\n\026START_" + - "MULTIPLE_THREADS\020\010B\013\n\t_bookmarkB\010\n\006_limi" + - "tB\021\n\017_earliest_startB\017\n\r_latest_start\"\\\n" + - "\rNodeRunIdList\022\'\n\007results\030\001 \003(\0132\026.little" + - "horse.NodeRunId\022\025\n\010bookmark\030\002 \001(\014H\000\210\001\001B\013" + - "\n\t_bookmark\"\262\003\n\030SearchUserTaskRunRequest" + - "\022\025\n\010bookmark\030\001 \001(\014H\000\210\001\001\022\022\n\005limit\030\002 \001(\005H\001" + - "\210\001\001\0223\n\006status\030\003 \001(\0162\036.littlehorse.UserTa" + - "skRunStatusH\002\210\001\001\022\037\n\022user_task_def_name\030\004" + - " \001(\tH\003\210\001\001\022\024\n\007user_id\030\005 \001(\tH\004\210\001\001\022\027\n\nuser_" + - "group\030\006 \001(\tH\005\210\001\001\0227\n\016earliest_start\030\007 \001(\013" + - "2\032.google.protobuf.TimestampH\006\210\001\001\0225\n\014lat" + - "est_start\030\010 \001(\0132\032.google.protobuf.Timest" + - "ampH\007\210\001\001B\013\n\t_bookmarkB\010\n\006_limitB\t\n\007_stat" + - "usB\025\n\023_user_task_def_nameB\n\n\010_user_idB\r\n" + - "\013_user_groupB\021\n\017_earliest_startB\017\n\r_late" + - "st_start\"d\n\021UserTaskRunIdList\022+\n\007results" + - "\030\001 \003(\0132\032.littlehorse.UserTaskRunId\022\025\n\010bo" + - "okmark\030\002 \001(\014H\000\210\001\001B\013\n\t_bookmark\"\236\002\n\025Searc" + - "hVariableRequest\022\025\n\010bookmark\030\001 \001(\014H\000\210\001\001\022" + - "\022\n\005limit\030\002 \001(\005H\001\210\001\001\022)\n\005value\030\003 \001(\0132\032.lit" + - "tlehorse.VariableValue\022\"\n\025wf_spec_major_" + - "version\030\004 \001(\005H\002\210\001\001\022\035\n\020wf_spec_revision\030\005" + - " \001(\005H\003\210\001\001\022\020\n\010var_name\030\006 \001(\t\022\024\n\014wf_spec_n" + - "ame\030\007 \001(\tB\013\n\t_bookmarkB\010\n\006_limitB\030\n\026_wf_" + - "spec_major_versionB\023\n\021_wf_spec_revision\"" + - "^\n\016VariableIdList\022(\n\007results\030\001 \003(\0132\027.lit" + - "tlehorse.VariableId\022\025\n\010bookmark\030\002 \001(\014H\000\210" + - "\001\001B\013\n\t_bookmark\"x\n\024SearchTaskDefRequest\022" + + "\n\016_output_schema\"\221\001\n\032PutWorkflowEventDef" + + "Request\022\014\n\004name\030\001 \001(\t\0224\n\016primitive_type\030" + + "\002 \001(\0162\032.littlehorse.PrimitiveTypeH\000\022\'\n\006s" + + "chema\030\003 \001(\0132\025.littlehorse.SchemaIdH\000B\006\n\004" + + "type\"{\n\025PutUserTaskDefRequest\022\014\n\004name\030\001 " + + "\001(\t\022*\n\006fields\030\002 \003(\0132\032.littlehorse.UserTa" + + "skField\022\030\n\013description\030\003 \001(\tH\000\210\001\001B\016\n\014_de" + + "scription\"o\n\032PutExternalEventDefRequest\022" + + "\014\n\004name\030\001 \001(\t\022C\n\020retention_policy\030\002 \001(\0132" + + ").littlehorse.ExternalEventRetentionPoli" + + "cy\"\303\002\n\027PutExternalEventRequest\022\'\n\twf_run" + + "_id\030\001 \001(\0132\024.littlehorse.WfRunId\022>\n\025exter" + + "nal_event_def_id\030\002 \001(\0132\037.littlehorse.Ext" + + "ernalEventDefId\022\021\n\004guid\030\003 \001(\tH\000\210\001\001\022+\n\007co" + + "ntent\030\005 \001(\0132\032.littlehorse.VariableValue\022" + + "\036\n\021thread_run_number\030\006 \001(\005H\001\210\001\001\022\036\n\021node_" + + "run_position\030\007 \001(\005H\002\210\001\001B\007\n\005_guidB\024\n\022_thr" + + "ead_run_numberB\024\n\022_node_run_positionJ\004\010\004" + + "\020\005J\004\010\010\020\t\"F\n\032DeleteExternalEventRequest\022(" + + "\n\002id\030\001 \001(\0132\034.littlehorse.ExternalEventId" + + "\"H\n\033DeleteScheduledWfRunRequest\022)\n\002id\030\001 " + + "\001(\0132\035.littlehorse.ScheduledWfRunId\"6\n\022De" + + "leteWfRunRequest\022 \n\002id\030\001 \001(\0132\024.littlehor" + + "se.WfRunId\":\n\024DeleteTaskDefRequest\022\"\n\002id" + + "\030\001 \001(\0132\026.littlehorse.TaskDefId\"B\n\030Delete" + + "UserTaskDefRequest\022&\n\002id\030\001 \001(\0132\032.littleh" + + "orse.UserTaskDefId\"8\n\023DeleteWfSpecReques" + + "t\022!\n\002id\030\001 \001(\0132\025.littlehorse.WfSpecId\"L\n\035" + + "DeleteExternalEventDefRequest\022+\n\002id\030\001 \001(" + + "\0132\037.littlehorse.ExternalEventDefId\"\343\002\n\014R" + + "unWfRequest\022\024\n\014wf_spec_name\030\001 \001(\t\022\032\n\rmaj" + + "or_version\030\002 \001(\005H\000\210\001\001\022\025\n\010revision\030\003 \001(\005H" + + "\001\210\001\001\022;\n\tvariables\030\004 \003(\0132(.littlehorse.Ru" + + "nWfRequest.VariablesEntry\022\017\n\002id\030\005 \001(\tH\002\210" + + "\001\001\0223\n\020parent_wf_run_id\030\006 \001(\0132\024.littlehor" + + "se.WfRunIdH\003\210\001\001\032L\n\016VariablesEntry\022\013\n\003key" + + "\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.littlehorse.Vari" + + "ableValue:\0028\001B\020\n\016_major_versionB\013\n\t_revi" + + "sionB\005\n\003_idB\023\n\021_parent_wf_run_id\"\206\003\n\021Sch" + + "eduleWfRequest\022\017\n\002id\030\001 \001(\tH\000\210\001\001\022\024\n\014wf_sp" + + "ec_name\030\002 \001(\t\022\032\n\rmajor_version\030\003 \001(\005H\001\210\001" + + "\001\022\025\n\010revision\030\004 \001(\005H\002\210\001\001\022@\n\tvariables\030\005 " + + "\003(\0132-.littlehorse.ScheduleWfRequest.Vari" + + "ablesEntry\0223\n\020parent_wf_run_id\030\006 \001(\0132\024.l" + + "ittlehorse.WfRunIdH\003\210\001\001\022\027\n\017cron_expressi" + + "on\030\007 \001(\t\032L\n\016VariablesEntry\022\013\n\003key\030\001 \001(\t\022" + + ")\n\005value\030\002 \001(\0132\032.littlehorse.VariableVal" + + "ue:\0028\001B\005\n\003_idB\020\n\016_major_versionB\013\n\t_revi" + + "sionB\023\n\021_parent_wf_run_id\"L\n\rVariableMat" + + "ch\022\020\n\010var_name\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.li" + + "ttlehorse.VariableValue\"\275\001\n\031AwaitWorkflo" + + "wEventRequest\022\'\n\twf_run_id\030\001 \001(\0132\024.littl" + + "ehorse.WfRunId\0226\n\revent_def_ids\030\002 \003(\0132\037." + + "littlehorse.WorkflowEventDefId\022?\n\031workfl" + + "ow_events_to_ignore\030\003 \003(\0132\034.littlehorse." + + "WorkflowEventId\"\337\003\n\022SearchWfRunRequest\022\025" + + "\n\010bookmark\030\001 \001(\014H\000\210\001\001\022\022\n\005limit\030\002 \001(\005H\001\210\001" + + "\001\022\024\n\014wf_spec_name\030\003 \001(\t\022\"\n\025wf_spec_major" + + "_version\030\004 \001(\005H\002\210\001\001\022\035\n\020wf_spec_revision\030" + + "\005 \001(\005H\003\210\001\001\022*\n\006status\030\006 \001(\0162\025.littlehorse" + + ".LHStatusH\004\210\001\001\0227\n\016earliest_start\030\007 \001(\0132\032" + + ".google.protobuf.TimestampH\005\210\001\001\0225\n\014lates" + + "t_start\030\010 \001(\0132\032.google.protobuf.Timestam" + + "pH\006\210\001\001\0224\n\020variable_filters\030\t \003(\0132\032.littl" + + "ehorse.VariableMatchB\013\n\t_bookmarkB\010\n\006_li" + + "mitB\030\n\026_wf_spec_major_versionB\023\n\021_wf_spe" + + "c_revisionB\t\n\007_statusB\021\n\017_earliest_start" + + "B\017\n\r_latest_start\"X\n\013WfRunIdList\022%\n\007resu" + + "lts\030\001 \003(\0132\024.littlehorse.WfRunId\022\025\n\010bookm" + + "ark\030\002 \001(\014H\000\210\001\001B\013\n\t_bookmark\"\274\002\n\024SearchTa" + + "skRunRequest\022\025\n\010bookmark\030\001 \001(\014H\000\210\001\001\022\022\n\005l" + + "imit\030\002 \001(\005H\001\210\001\001\022\025\n\rtask_def_name\030\003 \001(\t\022," + + "\n\006status\030\004 \001(\0162\027.littlehorse.TaskStatusH" + + "\002\210\001\001\0227\n\016earliest_start\030\005 \001(\0132\032.google.pr" + + "otobuf.TimestampH\003\210\001\001\0225\n\014latest_start\030\006 " + + "\001(\0132\032.google.protobuf.TimestampH\004\210\001\001B\013\n\t" + + "_bookmarkB\010\n\006_limitB\t\n\007_statusB\021\n\017_earli" + + "est_startB\017\n\r_latest_start\"\\\n\rTaskRunIdL" + + "ist\022\'\n\007results\030\001 \003(\0132\026.littlehorse.TaskR" + + "unId\022\025\n\010bookmark\030\002 \001(\014H\000\210\001\001B\013\n\t_bookmark" + + "\"\361\003\n\024SearchNodeRunRequest\022\025\n\010bookmark\030\001 " + + "\001(\014H\000\210\001\001\022\022\n\005limit\030\002 \001(\005H\001\210\001\001\0227\n\016earliest" + + "_start\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "H\002\210\001\001\0225\n\014latest_start\030\004 \001(\0132\032.google.pro" + + "tobuf.TimestampH\003\210\001\001\022=\n\tnode_type\030\005 \001(\0162" + + "*.littlehorse.SearchNodeRunRequest.NodeT" + + "ype\022%\n\006status\030\006 \001(\0162\025.littlehorse.LHStat" + + "us\"\234\001\n\010NodeType\022\010\n\004TASK\020\000\022\022\n\016EXTERNAL_EV" + + "ENT\020\001\022\016\n\nENTRYPOINT\020\002\022\010\n\004EXIT\020\003\022\020\n\014START" + + "_THREAD\020\004\022\020\n\014WAIT_THREADS\020\005\022\t\n\005SLEEP\020\006\022\r" + + "\n\tUSER_TASK\020\007\022\032\n\026START_MULTIPLE_THREADS\020" + + "\010B\013\n\t_bookmarkB\010\n\006_limitB\021\n\017_earliest_st" + + "artB\017\n\r_latest_start\"\\\n\rNodeRunIdList\022\'\n" + + "\007results\030\001 \003(\0132\026.littlehorse.NodeRunId\022\025" + + "\n\010bookmark\030\002 \001(\014H\000\210\001\001B\013\n\t_bookmark\"\262\003\n\030S" + + "earchUserTaskRunRequest\022\025\n\010bookmark\030\001 \001(" + + "\014H\000\210\001\001\022\022\n\005limit\030\002 \001(\005H\001\210\001\001\0223\n\006status\030\003 \001" + + "(\0162\036.littlehorse.UserTaskRunStatusH\002\210\001\001\022" + + "\037\n\022user_task_def_name\030\004 \001(\tH\003\210\001\001\022\024\n\007user" + + "_id\030\005 \001(\tH\004\210\001\001\022\027\n\nuser_group\030\006 \001(\tH\005\210\001\001\022" + + "7\n\016earliest_start\030\007 \001(\0132\032.google.protobu" + + "f.TimestampH\006\210\001\001\0225\n\014latest_start\030\010 \001(\0132\032" + + ".google.protobuf.TimestampH\007\210\001\001B\013\n\t_book" + + "markB\010\n\006_limitB\t\n\007_statusB\025\n\023_user_task_" + + "def_nameB\n\n\010_user_idB\r\n\013_user_groupB\021\n\017_" + + "earliest_startB\017\n\r_latest_start\"d\n\021UserT" + + "askRunIdList\022+\n\007results\030\001 \003(\0132\032.littleho" + + "rse.UserTaskRunId\022\025\n\010bookmark\030\002 \001(\014H\000\210\001\001" + + "B\013\n\t_bookmark\"\236\002\n\025SearchVariableRequest\022" + "\025\n\010bookmark\030\001 \001(\014H\000\210\001\001\022\022\n\005limit\030\002 \001(\005H\001\210" + - "\001\001\022\023\n\006prefix\030\003 \001(\tH\002\210\001\001B\013\n\t_bookmarkB\010\n\006" + - "_limitB\t\n\007_prefix\"\\\n\rTaskDefIdList\022\'\n\007re" + - "sults\030\001 \003(\0132\026.littlehorse.TaskDefId\022\025\n\010b" + - "ookmark\030\002 \001(\014H\000\210\001\001B\013\n\t_bookmark\"\230\001\n\030Sear" + - "chUserTaskDefRequest\022\025\n\010bookmark\030\001 \001(\014H\001" + - "\210\001\001\022\022\n\005limit\030\002 \001(\005H\002\210\001\001\022\020\n\006prefix\030\003 \001(\tH" + - "\000\022\016\n\004name\030\004 \001(\tH\000B\030\n\026user_task_def_crite" + - "riaB\013\n\t_bookmarkB\010\n\006_limit\"d\n\021UserTaskDe" + - "fIdList\022+\n\007results\030\001 \003(\0132\032.littlehorse.U" + - "serTaskDefId\022\025\n\010bookmark\030\002 \001(\014H\000\210\001\001B\013\n\t_" + - "bookmark\"\246\001\n\023SearchWfSpecRequest\022\025\n\010book" + - "mark\030\001 \001(\014H\001\210\001\001\022\022\n\005limit\030\002 \001(\005H\002\210\001\001\022\016\n\004n" + - "ame\030\003 \001(\tH\000\022\020\n\006prefix\030\004 \001(\tH\000\022\027\n\rtask_de" + - "f_name\030\005 \001(\tH\000B\022\n\020wf_spec_criteriaB\013\n\t_b" + - "ookmarkB\010\n\006_limit\"Z\n\014WfSpecIdList\022&\n\007res" + - "ults\030\001 \003(\0132\025.littlehorse.WfSpecId\022\025\n\010boo" + - "kmark\030\002 \001(\014H\000\210\001\001B\013\n\t_bookmark\"\201\001\n\035Search" + - "ExternalEventDefRequest\022\025\n\010bookmark\030\001 \001(" + - "\014H\000\210\001\001\022\022\n\005limit\030\002 \001(\005H\001\210\001\001\022\023\n\006prefix\030\003 \001" + - "(\tH\002\210\001\001B\013\n\t_bookmarkB\010\n\006_limitB\t\n\007_prefi" + - "x\"n\n\026ExternalEventDefIdList\0220\n\007results\030\001" + - " \003(\0132\037.littlehorse.ExternalEventDefId\022\025\n" + - "\010bookmark\030\002 \001(\014H\000\210\001\001B\013\n\t_bookmark\"W\n\023Sea" + - "rchTenantRequest\022\022\n\005limit\030\001 \001(\005H\000\210\001\001\022\025\n\010" + - "bookmark\030\002 \001(\014H\001\210\001\001B\010\n\006_limitB\013\n\t_bookma" + - "rk\"Z\n\014TenantIdList\022&\n\007results\030\001 \003(\0132\025.li" + - "ttlehorse.TenantId\022\025\n\010bookmark\030\002 \001(\014H\000\210\001" + - "\001B\013\n\t_bookmark\"\253\002\n\026SearchPrincipalReques" + - "t\022\025\n\010bookmark\030\001 \001(\014H\001\210\001\001\022\022\n\005limit\030\002 \001(\005H" + - "\002\210\001\001\0227\n\016earliest_start\030\003 \001(\0132\032.google.pr" + - "otobuf.TimestampH\003\210\001\001\0225\n\014latest_start\030\004 " + - "\001(\0132\032.google.protobuf.TimestampH\004\210\001\001\022\021\n\007" + - "isAdmin\030\005 \001(\010H\000\022\022\n\010tenantId\030\006 \001(\tH\000B\024\n\022p" + - "rincipal_criteriaB\013\n\t_bookmarkB\010\n\006_limit" + - "B\021\n\017_earliest_startB\017\n\r_latest_start\"`\n\017" + - "PrincipalIdList\022)\n\007results\030\001 \003(\0132\030.littl" + - "ehorse.PrincipalId\022\025\n\010bookmark\030\002 \001(\014H\000\210\001" + - "\001B\013\n\t_bookmark\"\332\002\n\032SearchExternalEventRe" + - "quest\022\025\n\010bookmark\030\001 \001(\014H\000\210\001\001\022\022\n\005limit\030\002 " + - "\001(\005H\001\210\001\001\0227\n\016earliest_start\030\003 \001(\0132\032.googl" + - "e.protobuf.TimestampH\002\210\001\001\0225\n\014latest_star" + - "t\030\004 \001(\0132\032.google.protobuf.TimestampH\003\210\001\001" + - "\022>\n\025external_event_def_id\030\005 \001(\0132\037.little" + - "horse.ExternalEventDefId\022\027\n\nis_claimed\030\006" + - " \001(\010H\004\210\001\001B\013\n\t_bookmarkB\010\n\006_limitB\021\n\017_ear" + - "liest_startB\017\n\r_latest_startB\r\n\013_is_clai" + - "med\"h\n\023ExternalEventIdList\022-\n\007results\030\001 " + - "\003(\0132\034.littlehorse.ExternalEventId\022\025\n\010boo" + - "kmark\030\002 \001(\014H\000\210\001\001B\013\n\t_bookmark\"\266\001\n\023ListNo" + - "deRunsRequest\022\'\n\twf_run_id\030\001 \001(\0132\024.littl" + - "ehorse.WfRunId\022\036\n\021thread_run_number\030\002 \001(" + - "\005H\000\210\001\001\022\025\n\010bookmark\030\003 \001(\014H\001\210\001\001\022\022\n\005limit\030\004" + - " \001(\005H\002\210\001\001B\024\n\022_thread_run_numberB\013\n\t_book" + - "markB\010\n\006_limit\"X\n\013NodeRunList\022%\n\007results" + - "\030\001 \003(\0132\024.littlehorse.NodeRun\022\025\n\010bookmark" + - "\030\002 \001(\014H\000\210\001\001B\013\n\t_bookmark\"?\n\024ListVariable" + - "sRequest\022\'\n\twf_run_id\030\001 \001(\0132\024.littlehors" + - "e.WfRunId\"6\n\014VariableList\022&\n\007results\030\001 \003" + - "(\0132\025.littlehorse.Variable\"D\n\031ListExterna" + - "lEventsRequest\022\'\n\twf_run_id\030\001 \001(\0132\024.litt" + - "lehorse.WfRunId\"@\n\021ExternalEventList\022+\n\007" + - "results\030\001 \003(\0132\032.littlehorse.ExternalEven" + - "t\"`\n\031RegisterTaskWorkerRequest\022\026\n\016task_w" + - "orker_id\030\001 \001(\t\022+\n\013task_def_id\030\002 \001(\0132\026.li" + - "ttlehorse.TaskDefId\"s\n\032TaskWorkerHeartBe" + - "atRequest\022\021\n\tclient_id\030\001 \001(\t\022+\n\013task_def" + - "_id\030\002 \001(\0132\026.littlehorse.TaskDefId\022\025\n\rlis" + - "tener_name\030\003 \001(\t\"\201\001\n\032RegisterTaskWorkerR" + - "esponse\022+\n\nyour_hosts\030\001 \003(\0132\027.littlehors" + - "e.LHHostInfo\022\037\n\022is_cluster_healthy\030\002 \001(\010" + - "H\000\210\001\001B\025\n\023_is_cluster_healthy\"(\n\nLHHostIn" + - "fo\022\014\n\004host\030\001 \001(\t\022\014\n\004port\030\002 \001(\005\"\213\001\n\017PollT" + - "askRequest\022+\n\013task_def_id\030\001 \001(\0132\026.little" + - "horse.TaskDefId\022\021\n\tclient_id\030\002 \001(\t\022 \n\023ta" + - "sk_worker_version\030\003 \001(\tH\000\210\001\001B\026\n\024_task_wo" + - "rker_version\"\214\002\n\rScheduledTask\022+\n\013task_r" + - "un_id\030\001 \001(\0132\026.littlehorse.TaskRunId\022+\n\013t" + - "ask_def_id\030\002 \001(\0132\026.littlehorse.TaskDefId" + - "\022\026\n\016attempt_number\030\003 \001(\005\022-\n\tvariables\030\004 " + - "\003(\0132\032.littlehorse.VarNameAndVal\022.\n\ncreat" + - "ed_at\030\005 \001(\0132\032.google.protobuf.Timestamp\022" + - "*\n\006source\030\006 \001(\0132\032.littlehorse.TaskRunSou" + - "rce\"N\n\020PollTaskResponse\022/\n\006result\030\001 \001(\0132" + - "\032.littlehorse.ScheduledTaskH\000\210\001\001B\t\n\007_res" + - "ult\"\201\003\n\rReportTaskRun\022+\n\013task_run_id\030\001 \001" + - "(\0132\026.littlehorse.TaskRunId\022(\n\004time\030\002 \001(\013" + - "2\032.google.protobuf.Timestamp\022\'\n\006status\030\003" + - " \001(\0162\027.littlehorse.TaskStatus\0223\n\nlog_out" + - "put\030\005 \001(\0132\032.littlehorse.VariableValueH\001\210" + - "\001\001\022\026\n\016attempt_number\030\006 \001(\005\022,\n\006output\030\004 \001" + - "(\0132\032.littlehorse.VariableValueH\000\022)\n\005erro" + - "r\030\007 \001(\0132\030.littlehorse.LHTaskErrorH\000\0221\n\te" + - "xception\030\010 \001(\0132\034.littlehorse.LHTaskExcep" + - "tionH\000B\010\n\006resultB\r\n\013_log_output\"V\n\020StopW" + - "fRunRequest\022\'\n\twf_run_id\030\001 \001(\0132\024.littleh" + - "orse.WfRunId\022\031\n\021thread_run_number\030\002 \001(\005\"" + - "X\n\022ResumeWfRunRequest\022\'\n\twf_run_id\030\001 \001(\013" + - "2\024.littlehorse.WfRunId\022\031\n\021thread_run_num" + - "ber\030\002 \001(\005\"w\n\026RescueThreadRunRequest\022\'\n\tw" + - "f_run_id\030\001 \001(\0132\024.littlehorse.WfRunId\022\031\n\021" + - "thread_run_number\030\002 \001(\005\022\031\n\021skip_current_" + - "node\030\003 \001(\010\"\263\001\n\032TaskDefMetricsQueryReques" + - "t\0220\n\014window_start\030\001 \001(\0132\032.google.protobu" + - "f.Timestamp\0225\n\013window_type\030\002 \001(\0162 .littl" + - "ehorse.MetricsWindowLength\022\032\n\rtask_def_n" + - "ame\030\003 \001(\tH\000\210\001\001B\020\n\016_task_def_name\"\312\001\n\026Lis" + - "tTaskMetricsRequest\022+\n\013task_def_id\030\001 \001(\013" + - "2\026.littlehorse.TaskDefId\0225\n\021last_window_" + - "start\030\002 \001(\0132\032.google.protobuf.Timestamp\022" + - "7\n\rwindow_length\030\003 \001(\0162 .littlehorse.Met" + - "ricsWindowLength\022\023\n\013num_windows\030\004 \001(\005\"G\n" + - "\027ListTaskMetricsResponse\022,\n\007results\030\001 \003(" + - "\0132\033.littlehorse.TaskDefMetrics\"\261\001\n\031WfSpe" + - "cMetricsQueryRequest\022)\n\nwf_spec_id\030\001 \001(\013" + - "2\025.littlehorse.WfSpecId\0220\n\014window_start\030" + - "\002 \001(\0132\032.google.protobuf.Timestamp\0227\n\rwin" + - "dow_length\030\003 \001(\0162 .littlehorse.MetricsWi" + - "ndowLength\"\306\001\n\024ListWfMetricsRequest\022)\n\nw" + - "f_spec_id\030\001 \001(\0132\025.littlehorse.WfSpecId\0225" + - "\n\021last_window_start\030\002 \001(\0132\032.google.proto" + - "buf.Timestamp\0227\n\rwindow_length\030\003 \001(\0162 .l" + - "ittlehorse.MetricsWindowLength\022\023\n\013num_wi" + - "ndows\030\004 \001(\005\"D\n\025ListWfMetricsResponse\022+\n\007" + - "results\030\001 \003(\0132\032.littlehorse.WfSpecMetric" + - "s\"\373\002\n\016TaskDefMetrics\022+\n\013task_def_id\030\001 \001(" + - "\0132\026.littlehorse.TaskDefId\0220\n\014window_star" + - "t\030\002 \001(\0132\032.google.protobuf.Timestamp\022.\n\004t" + - "ype\030\003 \001(\0162 .littlehorse.MetricsWindowLen" + - "gth\022\035\n\025schedule_to_start_max\030\004 \001(\003\022\035\n\025sc" + - "hedule_to_start_avg\030\005 \001(\003\022\035\n\025start_to_co" + - "mplete_max\030\006 \001(\003\022\035\n\025start_to_complete_av" + - "g\030\007 \001(\003\022\027\n\017total_completed\030\010 \001(\003\022\025\n\rtota" + - "l_errored\030\t \001(\003\022\025\n\rtotal_started\030\n \001(\003\022\027" + - "\n\017total_scheduled\030\013 \001(\003\"\241\002\n\rWfSpecMetric" + - "s\022)\n\nwf_spec_id\030\001 \001(\0132\025.littlehorse.WfSp" + - "ecId\0220\n\014window_start\030\002 \001(\0132\032.google.prot" + - "obuf.Timestamp\022.\n\004type\030\003 \001(\0162 .littlehor" + - "se.MetricsWindowLength\022\025\n\rtotal_started\030" + - "\004 \001(\003\022\027\n\017total_completed\030\005 \001(\003\022\025\n\rtotal_" + - "errored\030\006 \001(\003\022\035\n\025start_to_complete_max\030\007" + - " \001(\003\022\035\n\025start_to_complete_avg\030\010 \001(\003\"A\n\026L" + - "istUserTaskRunRequest\022\'\n\twf_run_id\030\001 \001(\013" + - "2\024.littlehorse.WfRunId\"<\n\017UserTaskRunLis" + - "t\022)\n\007results\030\001 \003(\0132\030.littlehorse.UserTas" + - "kRun\"F\n\024ScheduledWfRunIdList\022.\n\007results\030" + - "\001 \003(\0132\035.littlehorse.ScheduledWfRunId\"\205\001\n" + - "\033SearchScheduledWfRunRequest\022\024\n\014wf_spec_" + - "name\030\001 \001(\t\022\032\n\rmajor_version\030\002 \001(\005H\000\210\001\001\022\025" + - "\n\010revision\030\003 \001(\005H\001\210\001\001B\020\n\016_major_versionB" + - "\013\n\t_revision\"\212\001\n\022TaskWorkerMetadata\022\026\n\016t" + - "ask_worker_id\030\001 \001(\t\0224\n\020latest_heartbeat\030" + - "\002 \001(\0132\032.google.protobuf.Timestamp\022&\n\005hos" + - "ts\030\003 \003(\0132\027.littlehorse.LHHostInfo\"\207\002\n\017Ta" + - "skWorkerGroup\022*\n\002id\030\001 \001(\0132\036.littlehorse." + - "TaskWorkerGroupId\022.\n\ncreated_at\030\002 \001(\0132\032." + - "google.protobuf.Timestamp\022C\n\014task_worker" + - "s\030\003 \003(\0132-.littlehorse.TaskWorkerGroup.Ta" + - "skWorkersEntry\032S\n\020TaskWorkersEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022.\n\005value\030\002 \001(\0132\037.littlehorse.Tas" + - "kWorkerMetadata:\0028\001\">\n\023ListTaskRunsReque" + - "st\022\'\n\twf_run_id\030\001 \001(\0132\024.littlehorse.WfRu" + - "nId\"4\n\013TaskRunList\022%\n\007results\030\001 \003(\0132\024.li" + - "ttlehorse.TaskRun\"z\n\024MigrateWfSpecReques" + - "t\022*\n\013old_wf_spec\030\001 \001(\0132\025.littlehorse.WfS" + - "pecId\0226\n\tmigration\030\002 \001(\0132#.littlehorse.W" + - "fSpecVersionMigration\"T\n\026GetLatestWfSpec" + - "Request\022\014\n\004name\030\001 \001(\t\022\032\n\rmajor_version\030\002" + - " \001(\005H\000\210\001\001B\020\n\016_major_version\"\234\001\n\025ServerVe" + - "rsionResponse\022\025\n\rmajor_version\030\001 \001(\005\022\025\n\r" + - "minor_version\030\002 \001(\005\022\025\n\rpatch_version\030\003 \001" + - "(\005\022#\n\026pre_release_identifier\030\004 \001(\tH\000\210\001\001B" + - "\031\n\027_pre_release_identifier*P\n\021AllowedUpd" + - "ateType\022\017\n\013ALL_UPDATES\020\000\022\032\n\026MINOR_REVISI" + - "ON_UPDATES\020\001\022\016\n\nNO_UPDATES\020\0022\270+\n\013LittleH" + - "orse\022D\n\nPutTaskDef\022\036.littlehorse.PutTask" + - "DefRequest\032\024.littlehorse.TaskDef\"\000\022<\n\nGe" + - "tTaskDef\022\026.littlehorse.TaskDefId\032\024.littl" + - "ehorse.TaskDef\"\000\022L\n\022GetTaskWorkerGroup\022\026" + - ".littlehorse.TaskDefId\032\034.littlehorse.Tas" + - "kWorkerGroup\"\000\022_\n\023PutExternalEventDef\022\'." + - "littlehorse.PutExternalEventDefRequest\032\035" + - ".littlehorse.ExternalEventDef\"\000\022W\n\023GetEx" + - "ternalEventDef\022\037.littlehorse.ExternalEve" + - "ntDefId\032\035.littlehorse.ExternalEventDef\"\000" + - "\022_\n\023PutWorkflowEventDef\022\'.littlehorse.Pu" + - "tWorkflowEventDefRequest\032\035.littlehorse.W" + - "orkflowEventDef\"\000\022A\n\tPutWfSpec\022\035.littleh" + - "orse.PutWfSpecRequest\032\023.littlehorse.WfSp" + - "ec\"\000\0229\n\tGetWfSpec\022\025.littlehorse.WfSpecId" + - "\032\023.littlehorse.WfSpec\"\000\022M\n\017GetLatestWfSp" + - "ec\022#.littlehorse.GetLatestWfSpecRequest\032" + - "\023.littlehorse.WfSpec\"\000\022I\n\rMigrateWfSpec\022" + - "!.littlehorse.MigrateWfSpecRequest\032\023.lit" + - "tlehorse.WfSpec\"\000\022P\n\016PutUserTaskDef\022\".li" + - "ttlehorse.PutUserTaskDefRequest\032\030.little" + - "horse.UserTaskDef\"\000\022H\n\016GetUserTaskDef\022\032." + - "littlehorse.UserTaskDefId\032\030.littlehorse." + - "UserTaskDef\"\000\022\\\n\024GetLatestUserTaskDef\022(." + - "littlehorse.GetLatestUserTaskDefRequest\032" + - "\030.littlehorse.UserTaskDef\"\000\0228\n\005RunWf\022\031.l" + - "ittlehorse.RunWfRequest\032\022.littlehorse.Wf" + - "Run\"\000\022K\n\nScheduleWf\022\036.littlehorse.Schedu" + - "leWfRequest\032\033.littlehorse.ScheduledWfRun" + - "\"\000\022e\n\024SearchScheduledWfRun\022(.littlehorse" + - ".SearchScheduledWfRunRequest\032!.littlehor" + - "se.ScheduledWfRunIdList\"\000\022Q\n\021GetSchedule" + - "dWfRun\022\035.littlehorse.ScheduledWfRunId\032\033." + - "littlehorse.ScheduledWfRun\"\000\0226\n\010GetWfRun" + - "\022\024.littlehorse.WfRunId\032\022.littlehorse.WfR" + - "un\"\000\022H\n\016GetUserTaskRun\022\032.littlehorse.Use" + - "rTaskRunId\032\030.littlehorse.UserTaskRun\"\000\022T" + - "\n\021AssignUserTaskRun\022%.littlehorse.Assign" + - "UserTaskRunRequest\032\026.google.protobuf.Emp" + - "ty\"\000\022X\n\023CompleteUserTaskRun\022\'.littlehors" + - "e.CompleteUserTaskRunRequest\032\026.google.pr" + - "otobuf.Empty\"\000\022T\n\021CancelUserTaskRun\022%.li" + - "ttlehorse.CancelUserTaskRunRequest\032\026.goo" + - "gle.protobuf.Empty\"\000\022b\n\027SaveUserTaskRunP" + - "rogress\022+.littlehorse.SaveUserTaskRunPro" + - "gressRequest\032\030.littlehorse.UserTaskRun\"\000" + - "\022W\n\020ListUserTaskRuns\022#.littlehorse.ListU" + - "serTaskRunRequest\032\034.littlehorse.UserTask" + - "RunList\"\000\022<\n\nGetNodeRun\022\026.littlehorse.No" + - "deRunId\032\024.littlehorse.NodeRun\"\000\022L\n\014ListN" + - "odeRuns\022 .littlehorse.ListNodeRunsReques" + - "t\032\030.littlehorse.NodeRunList\"\000\022<\n\nGetTask" + - "Run\022\026.littlehorse.TaskRunId\032\024.littlehors" + - "e.TaskRun\"\000\022L\n\014ListTaskRuns\022 .littlehors" + - "e.ListTaskRunsRequest\032\030.littlehorse.Task" + - "RunList\"\000\022?\n\013GetVariable\022\027.littlehorse.V" + - "ariableId\032\025.littlehorse.Variable\"\000\022O\n\rLi" + - "stVariables\022!.littlehorse.ListVariablesR" + - "equest\032\031.littlehorse.VariableList\"\000\022V\n\020P" + - "utExternalEvent\022$.littlehorse.PutExterna" + - "lEventRequest\032\032.littlehorse.ExternalEven" + - "t\"\000\022N\n\020GetExternalEvent\022\034.littlehorse.Ex" + - "ternalEventId\032\032.littlehorse.ExternalEven" + - "t\"\000\022Z\n\022AwaitWorkflowEvent\022&.littlehorse." + - "AwaitWorkflowEventRequest\032\032.littlehorse." + - "WorkflowEvent\"\000\022^\n\022ListExternalEvents\022&." + - "littlehorse.ListExternalEventsRequest\032\036." + - "littlehorse.ExternalEventList\"\000\022J\n\013Searc" + - "hWfRun\022\037.littlehorse.SearchWfRunRequest\032" + - "\030.littlehorse.WfRunIdList\"\000\022P\n\rSearchNod" + - "eRun\022!.littlehorse.SearchNodeRunRequest\032" + - "\032.littlehorse.NodeRunIdList\"\000\022P\n\rSearchT" + - "askRun\022!.littlehorse.SearchTaskRunReques" + - "t\032\032.littlehorse.TaskRunIdList\"\000\022\\\n\021Searc" + - "hUserTaskRun\022%.littlehorse.SearchUserTas" + - "kRunRequest\032\036.littlehorse.UserTaskRunIdL" + - "ist\"\000\022S\n\016SearchVariable\022\".littlehorse.Se" + - "archVariableRequest\032\033.littlehorse.Variab" + - "leIdList\"\000\022b\n\023SearchExternalEvent\022\'.litt" + - "lehorse.SearchExternalEventRequest\032 .lit" + - "tlehorse.ExternalEventIdList\"\000\022P\n\rSearch" + - "TaskDef\022!.littlehorse.SearchTaskDefReque" + - "st\032\032.littlehorse.TaskDefIdList\"\000\022\\\n\021Sear", - "chUserTaskDef\022%.littlehorse.SearchUserTa" + - "skDefRequest\032\036.littlehorse.UserTaskDefId" + - "List\"\000\022M\n\014SearchWfSpec\022 .littlehorse.Sea" + - "rchWfSpecRequest\032\031.littlehorse.WfSpecIdL" + - "ist\"\000\022k\n\026SearchExternalEventDef\022*.little" + - "horse.SearchExternalEventDefRequest\032#.li" + - "ttlehorse.ExternalEventDefIdList\"\000\022M\n\014Se" + - "archTenant\022 .littlehorse.SearchTenantReq" + - "uest\032\031.littlehorse.TenantIdList\"\000\022V\n\017Sea" + - "rchPrincipal\022#.littlehorse.SearchPrincip" + - "alRequest\032\034.littlehorse.PrincipalIdList\"" + - "\000\022g\n\022RegisterTaskWorker\022&.littlehorse.Re" + - "gisterTaskWorkerRequest\032\'.littlehorse.Re" + - "gisterTaskWorkerResponse\"\000\022M\n\010PollTask\022\034" + - ".littlehorse.PollTaskRequest\032\035.littlehor" + - "se.PollTaskResponse\"\000(\0010\001\022B\n\nReportTask\022" + - "\032.littlehorse.ReportTaskRun\032\026.google.pro" + - "tobuf.Empty\"\000\022D\n\tStopWfRun\022\035.littlehorse" + - ".StopWfRunRequest\032\026.google.protobuf.Empt" + - "y\"\000\022H\n\013ResumeWfRun\022\037.littlehorse.ResumeW" + - "fRunRequest\032\026.google.protobuf.Empty\"\000\022L\n" + - "\017RescueThreadRun\022#.littlehorse.RescueThr" + - "eadRunRequest\032\022.littlehorse.WfRun\"\000\022H\n\013D" + - "eleteWfRun\022\037.littlehorse.DeleteWfRunRequ" + - "est\032\026.google.protobuf.Empty\"\000\022L\n\rDeleteT" + - "askDef\022!.littlehorse.DeleteTaskDefReques" + - "t\032\026.google.protobuf.Empty\"\000\022J\n\014DeleteWfS" + - "pec\022 .littlehorse.DeleteWfSpecRequest\032\026." + - "google.protobuf.Empty\"\000\022T\n\021DeleteUserTas" + - "kDef\022%.littlehorse.DeleteUserTaskDefRequ" + - "est\032\026.google.protobuf.Empty\"\000\022^\n\026DeleteE" + - "xternalEventDef\022*.littlehorse.DeleteExte" + - "rnalEventDefRequest\032\026.google.protobuf.Em" + - "pty\"\000\022P\n\017DeletePrincipal\022#.littlehorse.D" + - "eletePrincipalRequest\032\026.google.protobuf." + - "Empty\"\000\022Z\n\024DeleteScheduledWfRun\022(.little" + - "horse.DeleteScheduledWfRunRequest\032\026.goog" + - "le.protobuf.Empty\"\000\022a\n\027GetTaskDefMetrics" + - "Window\022\'.littlehorse.TaskDefMetricsQuery" + - "Request\032\033.littlehorse.TaskDefMetrics\"\000\022^" + - "\n\026GetWfSpecMetricsWindow\022&.littlehorse.W" + - "fSpecMetricsQueryRequest\032\032.littlehorse.W" + - "fSpecMetrics\"\000\022a\n\022ListTaskDefMetrics\022#.l" + - "ittlehorse.ListTaskMetricsRequest\032$.litt" + - "lehorse.ListTaskMetricsResponse\"\000\022\\\n\021Lis" + - "tWfSpecMetrics\022!.littlehorse.ListWfMetri" + - "csRequest\032\".littlehorse.ListWfMetricsRes" + - "ponse\"\000\022A\n\tPutTenant\022\035.littlehorse.PutTe" + - "nantRequest\032\023.littlehorse.Tenant\"\000\0229\n\tGe" + - "tTenant\022\025.littlehorse.TenantId\032\023.littleh" + - "orse.Tenant\"\000\022J\n\014PutPrincipal\022 .littleho" + - "rse.PutPrincipalRequest\032\026.littlehorse.Pr" + - "incipal\"\000\022:\n\006Whoami\022\026.google.protobuf.Em" + - "pty\032\026.littlehorse.Principal\"\000\022P\n\020GetServ" + - "erVersion\022\026.google.protobuf.Empty\032\".litt" + - "lehorse.ServerVersionResponse\"\000BI\n\037io.li" + - "ttlehorse.sdk.common.protoP\001Z\t.;lhproto\252" + - "\002\030LittleHorse.Common.Protob\006proto3" + "\001\001\022)\n\005value\030\003 \001(\0132\032.littlehorse.Variable" + + "Value\022\"\n\025wf_spec_major_version\030\004 \001(\005H\002\210\001" + + "\001\022\035\n\020wf_spec_revision\030\005 \001(\005H\003\210\001\001\022\020\n\010var_" + + "name\030\006 \001(\t\022\024\n\014wf_spec_name\030\007 \001(\tB\013\n\t_boo" + + "kmarkB\010\n\006_limitB\030\n\026_wf_spec_major_versio" + + "nB\023\n\021_wf_spec_revision\"^\n\016VariableIdList" + + "\022(\n\007results\030\001 \003(\0132\027.littlehorse.Variable" + + "Id\022\025\n\010bookmark\030\002 \001(\014H\000\210\001\001B\013\n\t_bookmark\"x" + + "\n\024SearchTaskDefRequest\022\025\n\010bookmark\030\001 \001(\014" + + "H\000\210\001\001\022\022\n\005limit\030\002 \001(\005H\001\210\001\001\022\023\n\006prefix\030\003 \001(" + + "\tH\002\210\001\001B\013\n\t_bookmarkB\010\n\006_limitB\t\n\007_prefix" + + "\"\\\n\rTaskDefIdList\022\'\n\007results\030\001 \003(\0132\026.lit" + + "tlehorse.TaskDefId\022\025\n\010bookmark\030\002 \001(\014H\000\210\001" + + "\001B\013\n\t_bookmark\"\230\001\n\030SearchUserTaskDefRequ" + + "est\022\025\n\010bookmark\030\001 \001(\014H\001\210\001\001\022\022\n\005limit\030\002 \001(" + + "\005H\002\210\001\001\022\020\n\006prefix\030\003 \001(\tH\000\022\016\n\004name\030\004 \001(\tH\000" + + "B\030\n\026user_task_def_criteriaB\013\n\t_bookmarkB" + + "\010\n\006_limit\"d\n\021UserTaskDefIdList\022+\n\007result" + + "s\030\001 \003(\0132\032.littlehorse.UserTaskDefId\022\025\n\010b" + + "ookmark\030\002 \001(\014H\000\210\001\001B\013\n\t_bookmark\"\246\001\n\023Sear" + + "chWfSpecRequest\022\025\n\010bookmark\030\001 \001(\014H\001\210\001\001\022\022" + + "\n\005limit\030\002 \001(\005H\002\210\001\001\022\016\n\004name\030\003 \001(\tH\000\022\020\n\006pr" + + "efix\030\004 \001(\tH\000\022\027\n\rtask_def_name\030\005 \001(\tH\000B\022\n" + + "\020wf_spec_criteriaB\013\n\t_bookmarkB\010\n\006_limit" + + "\"Z\n\014WfSpecIdList\022&\n\007results\030\001 \003(\0132\025.litt" + + "lehorse.WfSpecId\022\025\n\010bookmark\030\002 \001(\014H\000\210\001\001B" + + "\013\n\t_bookmark\"\201\001\n\035SearchExternalEventDefR" + + "equest\022\025\n\010bookmark\030\001 \001(\014H\000\210\001\001\022\022\n\005limit\030\002" + + " \001(\005H\001\210\001\001\022\023\n\006prefix\030\003 \001(\tH\002\210\001\001B\013\n\t_bookm" + + "arkB\010\n\006_limitB\t\n\007_prefix\"n\n\026ExternalEven" + + "tDefIdList\0220\n\007results\030\001 \003(\0132\037.littlehors" + + "e.ExternalEventDefId\022\025\n\010bookmark\030\002 \001(\014H\000" + + "\210\001\001B\013\n\t_bookmark\"W\n\023SearchTenantRequest\022" + + "\022\n\005limit\030\001 \001(\005H\000\210\001\001\022\025\n\010bookmark\030\002 \001(\014H\001\210" + + "\001\001B\010\n\006_limitB\013\n\t_bookmark\"Z\n\014TenantIdLis" + + "t\022&\n\007results\030\001 \003(\0132\025.littlehorse.TenantI" + + "d\022\025\n\010bookmark\030\002 \001(\014H\000\210\001\001B\013\n\t_bookmark\"\253\002" + + "\n\026SearchPrincipalRequest\022\025\n\010bookmark\030\001 \001" + + "(\014H\001\210\001\001\022\022\n\005limit\030\002 \001(\005H\002\210\001\001\0227\n\016earliest_" + + "start\030\003 \001(\0132\032.google.protobuf.TimestampH" + + "\003\210\001\001\0225\n\014latest_start\030\004 \001(\0132\032.google.prot" + + "obuf.TimestampH\004\210\001\001\022\021\n\007isAdmin\030\005 \001(\010H\000\022\022" + + "\n\010tenantId\030\006 \001(\tH\000B\024\n\022principal_criteria" + + "B\013\n\t_bookmarkB\010\n\006_limitB\021\n\017_earliest_sta" + + "rtB\017\n\r_latest_start\"`\n\017PrincipalIdList\022)" + + "\n\007results\030\001 \003(\0132\030.littlehorse.PrincipalI" + + "d\022\025\n\010bookmark\030\002 \001(\014H\000\210\001\001B\013\n\t_bookmark\"\332\002" + + "\n\032SearchExternalEventRequest\022\025\n\010bookmark" + + "\030\001 \001(\014H\000\210\001\001\022\022\n\005limit\030\002 \001(\005H\001\210\001\001\0227\n\016earli" + + "est_start\030\003 \001(\0132\032.google.protobuf.Timest" + + "ampH\002\210\001\001\0225\n\014latest_start\030\004 \001(\0132\032.google." + + "protobuf.TimestampH\003\210\001\001\022>\n\025external_even" + + "t_def_id\030\005 \001(\0132\037.littlehorse.ExternalEve" + + "ntDefId\022\027\n\nis_claimed\030\006 \001(\010H\004\210\001\001B\013\n\t_boo" + + "kmarkB\010\n\006_limitB\021\n\017_earliest_startB\017\n\r_l" + + "atest_startB\r\n\013_is_claimed\"h\n\023ExternalEv" + + "entIdList\022-\n\007results\030\001 \003(\0132\034.littlehorse" + + ".ExternalEventId\022\025\n\010bookmark\030\002 \001(\014H\000\210\001\001B" + + "\013\n\t_bookmark\"\266\001\n\023ListNodeRunsRequest\022\'\n\t" + + "wf_run_id\030\001 \001(\0132\024.littlehorse.WfRunId\022\036\n" + + "\021thread_run_number\030\002 \001(\005H\000\210\001\001\022\025\n\010bookmar" + + "k\030\003 \001(\014H\001\210\001\001\022\022\n\005limit\030\004 \001(\005H\002\210\001\001B\024\n\022_thr" + + "ead_run_numberB\013\n\t_bookmarkB\010\n\006_limit\"X\n" + + "\013NodeRunList\022%\n\007results\030\001 \003(\0132\024.littleho" + + "rse.NodeRun\022\025\n\010bookmark\030\002 \001(\014H\000\210\001\001B\013\n\t_b" + + "ookmark\"?\n\024ListVariablesRequest\022\'\n\twf_ru" + + "n_id\030\001 \001(\0132\024.littlehorse.WfRunId\"6\n\014Vari" + + "ableList\022&\n\007results\030\001 \003(\0132\025.littlehorse." + + "Variable\"D\n\031ListExternalEventsRequest\022\'\n" + + "\twf_run_id\030\001 \001(\0132\024.littlehorse.WfRunId\"@" + + "\n\021ExternalEventList\022+\n\007results\030\001 \003(\0132\032.l" + + "ittlehorse.ExternalEvent\"`\n\031RegisterTask" + + "WorkerRequest\022\026\n\016task_worker_id\030\001 \001(\t\022+\n" + + "\013task_def_id\030\002 \001(\0132\026.littlehorse.TaskDef" + + "Id\"s\n\032TaskWorkerHeartBeatRequest\022\021\n\tclie" + + "nt_id\030\001 \001(\t\022+\n\013task_def_id\030\002 \001(\0132\026.littl" + + "ehorse.TaskDefId\022\025\n\rlistener_name\030\003 \001(\t\"" + + "\201\001\n\032RegisterTaskWorkerResponse\022+\n\nyour_h" + + "osts\030\001 \003(\0132\027.littlehorse.LHHostInfo\022\037\n\022i" + + "s_cluster_healthy\030\002 \001(\010H\000\210\001\001B\025\n\023_is_clus" + + "ter_healthy\"(\n\nLHHostInfo\022\014\n\004host\030\001 \001(\t\022" + + "\014\n\004port\030\002 \001(\005\"\213\001\n\017PollTaskRequest\022+\n\013tas" + + "k_def_id\030\001 \001(\0132\026.littlehorse.TaskDefId\022\021" + + "\n\tclient_id\030\002 \001(\t\022 \n\023task_worker_version" + + "\030\003 \001(\tH\000\210\001\001B\026\n\024_task_worker_version\"\214\002\n\r" + + "ScheduledTask\022+\n\013task_run_id\030\001 \001(\0132\026.lit" + + "tlehorse.TaskRunId\022+\n\013task_def_id\030\002 \001(\0132" + + "\026.littlehorse.TaskDefId\022\026\n\016attempt_numbe" + + "r\030\003 \001(\005\022-\n\tvariables\030\004 \003(\0132\032.littlehorse" + + ".VarNameAndVal\022.\n\ncreated_at\030\005 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022*\n\006source\030\006 \001(\0132\032" + + ".littlehorse.TaskRunSource\"N\n\020PollTaskRe" + + "sponse\022/\n\006result\030\001 \001(\0132\032.littlehorse.Sch" + + "eduledTaskH\000\210\001\001B\t\n\007_result\"\201\003\n\rReportTas" + + "kRun\022+\n\013task_run_id\030\001 \001(\0132\026.littlehorse." + + "TaskRunId\022(\n\004time\030\002 \001(\0132\032.google.protobu" + + "f.Timestamp\022\'\n\006status\030\003 \001(\0162\027.littlehors" + + "e.TaskStatus\0223\n\nlog_output\030\005 \001(\0132\032.littl" + + "ehorse.VariableValueH\001\210\001\001\022\026\n\016attempt_num" + + "ber\030\006 \001(\005\022,\n\006output\030\004 \001(\0132\032.littlehorse." + + "VariableValueH\000\022)\n\005error\030\007 \001(\0132\030.littleh" + + "orse.LHTaskErrorH\000\0221\n\texception\030\010 \001(\0132\034." + + "littlehorse.LHTaskExceptionH\000B\010\n\006resultB" + + "\r\n\013_log_output\"V\n\020StopWfRunRequest\022\'\n\twf" + + "_run_id\030\001 \001(\0132\024.littlehorse.WfRunId\022\031\n\021t" + + "hread_run_number\030\002 \001(\005\"X\n\022ResumeWfRunReq" + + "uest\022\'\n\twf_run_id\030\001 \001(\0132\024.littlehorse.Wf" + + "RunId\022\031\n\021thread_run_number\030\002 \001(\005\"w\n\026Resc" + + "ueThreadRunRequest\022\'\n\twf_run_id\030\001 \001(\0132\024." + + "littlehorse.WfRunId\022\031\n\021thread_run_number" + + "\030\002 \001(\005\022\031\n\021skip_current_node\030\003 \001(\010\"\263\001\n\032Ta" + + "skDefMetricsQueryRequest\0220\n\014window_start" + + "\030\001 \001(\0132\032.google.protobuf.Timestamp\0225\n\013wi" + + "ndow_type\030\002 \001(\0162 .littlehorse.MetricsWin" + + "dowLength\022\032\n\rtask_def_name\030\003 \001(\tH\000\210\001\001B\020\n" + + "\016_task_def_name\"\312\001\n\026ListTaskMetricsReque" + + "st\022+\n\013task_def_id\030\001 \001(\0132\026.littlehorse.Ta" + + "skDefId\0225\n\021last_window_start\030\002 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\0227\n\rwindow_length\030" + + "\003 \001(\0162 .littlehorse.MetricsWindowLength\022" + + "\023\n\013num_windows\030\004 \001(\005\"G\n\027ListTaskMetricsR" + + "esponse\022,\n\007results\030\001 \003(\0132\033.littlehorse.T" + + "askDefMetrics\"\261\001\n\031WfSpecMetricsQueryRequ" + + "est\022)\n\nwf_spec_id\030\001 \001(\0132\025.littlehorse.Wf" + + "SpecId\0220\n\014window_start\030\002 \001(\0132\032.google.pr" + + "otobuf.Timestamp\0227\n\rwindow_length\030\003 \001(\0162" + + " .littlehorse.MetricsWindowLength\"\306\001\n\024Li" + + "stWfMetricsRequest\022)\n\nwf_spec_id\030\001 \001(\0132\025" + + ".littlehorse.WfSpecId\0225\n\021last_window_sta" + + "rt\030\002 \001(\0132\032.google.protobuf.Timestamp\0227\n\r" + + "window_length\030\003 \001(\0162 .littlehorse.Metric" + + "sWindowLength\022\023\n\013num_windows\030\004 \001(\005\"D\n\025Li" + + "stWfMetricsResponse\022+\n\007results\030\001 \003(\0132\032.l" + + "ittlehorse.WfSpecMetrics\"\373\002\n\016TaskDefMetr" + + "ics\022+\n\013task_def_id\030\001 \001(\0132\026.littlehorse.T" + + "askDefId\0220\n\014window_start\030\002 \001(\0132\032.google." + + "protobuf.Timestamp\022.\n\004type\030\003 \001(\0162 .littl" + + "ehorse.MetricsWindowLength\022\035\n\025schedule_t" + + "o_start_max\030\004 \001(\003\022\035\n\025schedule_to_start_a" + + "vg\030\005 \001(\003\022\035\n\025start_to_complete_max\030\006 \001(\003\022" + + "\035\n\025start_to_complete_avg\030\007 \001(\003\022\027\n\017total_" + + "completed\030\010 \001(\003\022\025\n\rtotal_errored\030\t \001(\003\022\025" + + "\n\rtotal_started\030\n \001(\003\022\027\n\017total_scheduled" + + "\030\013 \001(\003\"\241\002\n\rWfSpecMetrics\022)\n\nwf_spec_id\030\001" + + " \001(\0132\025.littlehorse.WfSpecId\0220\n\014window_st" + + "art\030\002 \001(\0132\032.google.protobuf.Timestamp\022.\n" + + "\004type\030\003 \001(\0162 .littlehorse.MetricsWindowL" + + "ength\022\025\n\rtotal_started\030\004 \001(\003\022\027\n\017total_co" + + "mpleted\030\005 \001(\003\022\025\n\rtotal_errored\030\006 \001(\003\022\035\n\025" + + "start_to_complete_max\030\007 \001(\003\022\035\n\025start_to_" + + "complete_avg\030\010 \001(\003\"A\n\026ListUserTaskRunReq" + + "uest\022\'\n\twf_run_id\030\001 \001(\0132\024.littlehorse.Wf" + + "RunId\"<\n\017UserTaskRunList\022)\n\007results\030\001 \003(" + + "\0132\030.littlehorse.UserTaskRun\"F\n\024Scheduled" + + "WfRunIdList\022.\n\007results\030\001 \003(\0132\035.littlehor" + + "se.ScheduledWfRunId\"\205\001\n\033SearchScheduledW" + + "fRunRequest\022\024\n\014wf_spec_name\030\001 \001(\t\022\032\n\rmaj" + + "or_version\030\002 \001(\005H\000\210\001\001\022\025\n\010revision\030\003 \001(\005H" + + "\001\210\001\001B\020\n\016_major_versionB\013\n\t_revision\"\212\001\n\022" + + "TaskWorkerMetadata\022\026\n\016task_worker_id\030\001 \001" + + "(\t\0224\n\020latest_heartbeat\030\002 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022&\n\005hosts\030\003 \003(\0132\027.little" + + "horse.LHHostInfo\"\207\002\n\017TaskWorkerGroup\022*\n\002" + + "id\030\001 \001(\0132\036.littlehorse.TaskWorkerGroupId" + + "\022.\n\ncreated_at\030\002 \001(\0132\032.google.protobuf.T" + + "imestamp\022C\n\014task_workers\030\003 \003(\0132-.littleh" + + "orse.TaskWorkerGroup.TaskWorkersEntry\032S\n" + + "\020TaskWorkersEntry\022\013\n\003key\030\001 \001(\t\022.\n\005value\030" + + "\002 \001(\0132\037.littlehorse.TaskWorkerMetadata:\002" + + "8\001\">\n\023ListTaskRunsRequest\022\'\n\twf_run_id\030\001" + + " \001(\0132\024.littlehorse.WfRunId\"4\n\013TaskRunLis" + + "t\022%\n\007results\030\001 \003(\0132\024.littlehorse.TaskRun" + + "\"z\n\024MigrateWfSpecRequest\022*\n\013old_wf_spec\030" + + "\001 \001(\0132\025.littlehorse.WfSpecId\0226\n\tmigratio" + + "n\030\002 \001(\0132#.littlehorse.WfSpecVersionMigra" + + "tion\"T\n\026GetLatestWfSpecRequest\022\014\n\004name\030\001" + + " \001(\t\022\032\n\rmajor_version\030\002 \001(\005H\000\210\001\001B\020\n\016_maj" + + "or_version\"\234\001\n\025ServerVersionResponse\022\025\n\r" + + "major_version\030\001 \001(\005\022\025\n\rminor_version\030\002 \001" + + "(\005\022\025\n\rpatch_version\030\003 \001(\005\022#\n\026pre_release" + + "_identifier\030\004 \001(\tH\000\210\001\001B\031\n\027_pre_release_i" + + "dentifier*P\n\021AllowedUpdateType\022\017\n\013ALL_UP" + + "DATES\020\000\022\032\n\026MINOR_REVISION_UPDATES\020\001\022\016\n\nN" + + "O_UPDATES\020\0022\270+\n\013LittleHorse\022D\n\nPutTaskDe" + + "f\022\036.littlehorse.PutTaskDefRequest\032\024.litt" + + "lehorse.TaskDef\"\000\022<\n\nGetTaskDef\022\026.little" + + "horse.TaskDefId\032\024.littlehorse.TaskDef\"\000\022" + + "L\n\022GetTaskWorkerGroup\022\026.littlehorse.Task" + + "DefId\032\034.littlehorse.TaskWorkerGroup\"\000\022_\n" + + "\023PutExternalEventDef\022\'.littlehorse.PutEx" + + "ternalEventDefRequest\032\035.littlehorse.Exte" + + "rnalEventDef\"\000\022W\n\023GetExternalEventDef\022\037." + + "littlehorse.ExternalEventDefId\032\035.littleh" + + "orse.ExternalEventDef\"\000\022_\n\023PutWorkflowEv" + + "entDef\022\'.littlehorse.PutWorkflowEventDef" + + "Request\032\035.littlehorse.WorkflowEventDef\"\000" + + "\022A\n\tPutWfSpec\022\035.littlehorse.PutWfSpecReq" + + "uest\032\023.littlehorse.WfSpec\"\000\0229\n\tGetWfSpec" + + "\022\025.littlehorse.WfSpecId\032\023.littlehorse.Wf" + + "Spec\"\000\022M\n\017GetLatestWfSpec\022#.littlehorse." + + "GetLatestWfSpecRequest\032\023.littlehorse.WfS" + + "pec\"\000\022I\n\rMigrateWfSpec\022!.littlehorse.Mig" + + "rateWfSpecRequest\032\023.littlehorse.WfSpec\"\000" + + "\022P\n\016PutUserTaskDef\022\".littlehorse.PutUser" + + "TaskDefRequest\032\030.littlehorse.UserTaskDef" + + "\"\000\022H\n\016GetUserTaskDef\022\032.littlehorse.UserT" + + "askDefId\032\030.littlehorse.UserTaskDef\"\000\022\\\n\024" + + "GetLatestUserTaskDef\022(.littlehorse.GetLa" + + "testUserTaskDefRequest\032\030.littlehorse.Use" + + "rTaskDef\"\000\0228\n\005RunWf\022\031.littlehorse.RunWfR" + + "equest\032\022.littlehorse.WfRun\"\000\022K\n\nSchedule" + + "Wf\022\036.littlehorse.ScheduleWfRequest\032\033.lit" + + "tlehorse.ScheduledWfRun\"\000\022e\n\024SearchSched" + + "uledWfRun\022(.littlehorse.SearchScheduledW" + + "fRunRequest\032!.littlehorse.ScheduledWfRun" + + "IdList\"\000\022Q\n\021GetScheduledWfRun\022\035.littleho" + + "rse.ScheduledWfRunId\032\033.littlehorse.Sched" + + "uledWfRun\"\000\0226\n\010GetWfRun\022\024.littlehorse.Wf" + + "RunId\032\022.littlehorse.WfRun\"\000\022H\n\016GetUserTa" + + "skRun\022\032.littlehorse.UserTaskRunId\032\030.litt" + + "lehorse.UserTaskRun\"\000\022T\n\021AssignUserTaskR" + + "un\022%.littlehorse.AssignUserTaskRunReques" + + "t\032\026.google.protobuf.Empty\"\000\022X\n\023CompleteU" + + "serTaskRun\022\'.littlehorse.CompleteUserTas" + + "kRunRequest\032\026.google.protobuf.Empty\"\000\022T\n" + + "\021CancelUserTaskRun\022%.littlehorse.CancelU" + + "serTaskRunRequest\032\026.google.protobuf.Empt" + + "y\"\000\022b\n\027SaveUserTaskRunProgress\022+.littleh" + + "orse.SaveUserTaskRunProgressRequest\032\030.li" + + "ttlehorse.UserTaskRun\"\000\022W\n\020ListUserTaskR" + + "uns\022#.littlehorse.ListUserTaskRunRequest" + + "\032\034.littlehorse.UserTaskRunList\"\000\022<\n\nGetN" + + "odeRun\022\026.littlehorse.NodeRunId\032\024.littleh" + + "orse.NodeRun\"\000\022L\n\014ListNodeRuns\022 .littleh" + + "orse.ListNodeRunsRequest\032\030.littlehorse.N" + + "odeRunList\"\000\022<\n\nGetTaskRun\022\026.littlehorse" + + ".TaskRunId\032\024.littlehorse.TaskRun\"\000\022L\n\014Li" + + "stTaskRuns\022 .littlehorse.ListTaskRunsReq" + + "uest\032\030.littlehorse.TaskRunList\"\000\022?\n\013GetV" + + "ariable\022\027.littlehorse.VariableId\032\025.littl" + + "ehorse.Variable\"\000\022O\n\rListVariables\022!.lit" + + "tlehorse.ListVariablesRequest\032\031.littleho" + + "rse.VariableList\"\000\022V\n\020PutExternalEvent\022$" + + ".littlehorse.PutExternalEventRequest\032\032.l" + + "ittlehorse.ExternalEvent\"\000\022N\n\020GetExterna" + + "lEvent\022\034.littlehorse.ExternalEventId\032\032.l" + + "ittlehorse.ExternalEvent\"\000\022Z\n\022AwaitWorkf" + + "lowEvent\022&.littlehorse.AwaitWorkflowEven" + + "tRequest\032\032.littlehorse.WorkflowEvent\"\000\022^" + + "\n\022ListExternalEvents\022&.littlehorse.ListE" + + "xternalEventsRequest\032\036.littlehorse.Exter" + + "nalEventList\"\000\022J\n\013SearchWfRun\022\037.littleho" + + "rse.SearchWfRunRequest\032\030.littlehorse.WfR" + + "unIdList\"\000\022P\n\rSearchNodeRun\022!.littlehors" + + "e.SearchNodeRunRequest\032\032.littlehorse.Nod" + + "eRunIdList\"\000\022P\n\rSearchTaskRun\022!.littleho" + + "rse.SearchTaskRunRequest\032\032.littlehorse.T" + + "askRunIdList\"\000\022\\\n\021SearchUserTaskRun\022%.li" + + "ttlehorse.SearchUserTaskRunRequest\032\036.lit" + + "tlehorse.UserTaskRunIdList\"\000\022S\n\016SearchVa" + + "riable\022\".littlehorse.SearchVariableReque" + + "st\032\033.littlehorse.VariableIdList\"\000\022b\n\023Sea" + + "rchExternalEvent\022\'.littlehorse.SearchExt" + + "ernalEventRequest\032 .littlehorse.External" + + "EventIdList\"\000\022P\n\rSearchTaskDef\022!.littleh", + "orse.SearchTaskDefRequest\032\032.littlehorse." + + "TaskDefIdList\"\000\022\\\n\021SearchUserTaskDef\022%.l" + + "ittlehorse.SearchUserTaskDefRequest\032\036.li" + + "ttlehorse.UserTaskDefIdList\"\000\022M\n\014SearchW" + + "fSpec\022 .littlehorse.SearchWfSpecRequest\032" + + "\031.littlehorse.WfSpecIdList\"\000\022k\n\026SearchEx" + + "ternalEventDef\022*.littlehorse.SearchExter" + + "nalEventDefRequest\032#.littlehorse.Externa" + + "lEventDefIdList\"\000\022M\n\014SearchTenant\022 .litt" + + "lehorse.SearchTenantRequest\032\031.littlehors" + + "e.TenantIdList\"\000\022V\n\017SearchPrincipal\022#.li" + + "ttlehorse.SearchPrincipalRequest\032\034.littl" + + "ehorse.PrincipalIdList\"\000\022g\n\022RegisterTask" + + "Worker\022&.littlehorse.RegisterTaskWorkerR" + + "equest\032\'.littlehorse.RegisterTaskWorkerR" + + "esponse\"\000\022M\n\010PollTask\022\034.littlehorse.Poll" + + "TaskRequest\032\035.littlehorse.PollTaskRespon" + + "se\"\000(\0010\001\022B\n\nReportTask\022\032.littlehorse.Rep" + + "ortTaskRun\032\026.google.protobuf.Empty\"\000\022D\n\t" + + "StopWfRun\022\035.littlehorse.StopWfRunRequest" + + "\032\026.google.protobuf.Empty\"\000\022H\n\013ResumeWfRu" + + "n\022\037.littlehorse.ResumeWfRunRequest\032\026.goo" + + "gle.protobuf.Empty\"\000\022L\n\017RescueThreadRun\022" + + "#.littlehorse.RescueThreadRunRequest\032\022.l" + + "ittlehorse.WfRun\"\000\022H\n\013DeleteWfRun\022\037.litt" + + "lehorse.DeleteWfRunRequest\032\026.google.prot" + + "obuf.Empty\"\000\022L\n\rDeleteTaskDef\022!.littleho" + + "rse.DeleteTaskDefRequest\032\026.google.protob" + + "uf.Empty\"\000\022J\n\014DeleteWfSpec\022 .littlehorse" + + ".DeleteWfSpecRequest\032\026.google.protobuf.E" + + "mpty\"\000\022T\n\021DeleteUserTaskDef\022%.littlehors" + + "e.DeleteUserTaskDefRequest\032\026.google.prot" + + "obuf.Empty\"\000\022^\n\026DeleteExternalEventDef\022*" + + ".littlehorse.DeleteExternalEventDefReque" + + "st\032\026.google.protobuf.Empty\"\000\022P\n\017DeletePr" + + "incipal\022#.littlehorse.DeletePrincipalReq" + + "uest\032\026.google.protobuf.Empty\"\000\022Z\n\024Delete" + + "ScheduledWfRun\022(.littlehorse.DeleteSched" + + "uledWfRunRequest\032\026.google.protobuf.Empty" + + "\"\000\022a\n\027GetTaskDefMetricsWindow\022\'.littleho" + + "rse.TaskDefMetricsQueryRequest\032\033.littleh" + + "orse.TaskDefMetrics\"\000\022^\n\026GetWfSpecMetric" + + "sWindow\022&.littlehorse.WfSpecMetricsQuery" + + "Request\032\032.littlehorse.WfSpecMetrics\"\000\022a\n" + + "\022ListTaskDefMetrics\022#.littlehorse.ListTa" + + "skMetricsRequest\032$.littlehorse.ListTaskM" + + "etricsResponse\"\000\022\\\n\021ListWfSpecMetrics\022!." + + "littlehorse.ListWfMetricsRequest\032\".littl" + + "ehorse.ListWfMetricsResponse\"\000\022A\n\tPutTen" + + "ant\022\035.littlehorse.PutTenantRequest\032\023.lit" + + "tlehorse.Tenant\"\000\0229\n\tGetTenant\022\025.littleh" + + "orse.TenantId\032\023.littlehorse.Tenant\"\000\022J\n\014" + + "PutPrincipal\022 .littlehorse.PutPrincipalR" + + "equest\032\026.littlehorse.Principal\"\000\022:\n\006Whoa" + + "mi\022\026.google.protobuf.Empty\032\026.littlehorse" + + ".Principal\"\000\022P\n\020GetServerVersion\022\026.googl" + + "e.protobuf.Empty\032\".littlehorse.ServerVer" + + "sionResponse\"\000BI\n\037io.littlehorse.sdk.com" + + "mon.protoP\001Z\t.;lhproto\252\002\030LittleHorse.Com" + + "mon.Protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -941,7 +943,7 @@ public static void registerAllExtensions( internal_static_littlehorse_PutWorkflowEventDefRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_littlehorse_PutWorkflowEventDefRequest_descriptor, - new java.lang.String[] { "Name", "Type", }); + new java.lang.String[] { "Name", "PrimitiveType", "Schema", "Type", }); internal_static_littlehorse_PutUserTaskDefRequest_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_littlehorse_PutUserTaskDefRequest_fieldAccessorTable = new diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/Struct.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/Struct.java new file mode 100644 index 000000000..9ca0389dd --- /dev/null +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/Struct.java @@ -0,0 +1,873 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: variable.proto + +package io.littlehorse.sdk.common.proto; + +/** + *
+ * A Struct is a strongly-typed structure containing fields. The Struct is defined
+ * according to the `Schema` object.
+ * 
+ * + * Protobuf type {@code littlehorse.Struct} + */ +public final class Struct extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:littlehorse.Struct) + StructOrBuilder { +private static final long serialVersionUID = 0L; + // Use Struct.newBuilder() to construct. + private Struct(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Struct() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Struct(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_Struct_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_Struct_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.littlehorse.sdk.common.proto.Struct.class, io.littlehorse.sdk.common.proto.Struct.Builder.class); + } + + public static final int SCHEMA_ID_FIELD_NUMBER = 1; + private io.littlehorse.sdk.common.proto.SchemaId schemaId_; + /** + *
+   * The id of the schema.
+   * 
+ * + * .littlehorse.SchemaId schema_id = 1; + * @return Whether the schemaId field is set. + */ + @java.lang.Override + public boolean hasSchemaId() { + return schemaId_ != null; + } + /** + *
+   * The id of the schema.
+   * 
+ * + * .littlehorse.SchemaId schema_id = 1; + * @return The schemaId. + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaId getSchemaId() { + return schemaId_ == null ? io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance() : schemaId_; + } + /** + *
+   * The id of the schema.
+   * 
+ * + * .littlehorse.SchemaId schema_id = 1; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaIdOrBuilder getSchemaIdOrBuilder() { + return schemaId_ == null ? io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance() : schemaId_; + } + + public static final int STRUCT_FIELD_NUMBER = 2; + private io.littlehorse.sdk.common.proto.InlineStruct struct_; + /** + *
+   * The content of the Struct
+   * 
+ * + * .littlehorse.InlineStruct struct = 2; + * @return Whether the struct field is set. + */ + @java.lang.Override + public boolean hasStruct() { + return struct_ != null; + } + /** + *
+   * The content of the Struct
+   * 
+ * + * .littlehorse.InlineStruct struct = 2; + * @return The struct. + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineStruct getStruct() { + return struct_ == null ? io.littlehorse.sdk.common.proto.InlineStruct.getDefaultInstance() : struct_; + } + /** + *
+   * The content of the Struct
+   * 
+ * + * .littlehorse.InlineStruct struct = 2; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineStructOrBuilder getStructOrBuilder() { + return struct_ == null ? io.littlehorse.sdk.common.proto.InlineStruct.getDefaultInstance() : struct_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (schemaId_ != null) { + output.writeMessage(1, getSchemaId()); + } + if (struct_ != null) { + output.writeMessage(2, getStruct()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (schemaId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSchemaId()); + } + if (struct_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStruct()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.littlehorse.sdk.common.proto.Struct)) { + return super.equals(obj); + } + io.littlehorse.sdk.common.proto.Struct other = (io.littlehorse.sdk.common.proto.Struct) obj; + + if (hasSchemaId() != other.hasSchemaId()) return false; + if (hasSchemaId()) { + if (!getSchemaId() + .equals(other.getSchemaId())) return false; + } + if (hasStruct() != other.hasStruct()) return false; + if (hasStruct()) { + if (!getStruct() + .equals(other.getStruct())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSchemaId()) { + hash = (37 * hash) + SCHEMA_ID_FIELD_NUMBER; + hash = (53 * hash) + getSchemaId().hashCode(); + } + if (hasStruct()) { + hash = (37 * hash) + STRUCT_FIELD_NUMBER; + hash = (53 * hash) + getStruct().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.littlehorse.sdk.common.proto.Struct parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.Struct parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.Struct parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.Struct parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.Struct parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.Struct parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.Struct parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.littlehorse.sdk.common.proto.Struct parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.littlehorse.sdk.common.proto.Struct parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.littlehorse.sdk.common.proto.Struct parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.Struct parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.littlehorse.sdk.common.proto.Struct parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.littlehorse.sdk.common.proto.Struct prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A Struct is a strongly-typed structure containing fields. The Struct is defined
+   * according to the `Schema` object.
+   * 
+ * + * Protobuf type {@code littlehorse.Struct} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:littlehorse.Struct) + io.littlehorse.sdk.common.proto.StructOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_Struct_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_Struct_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.littlehorse.sdk.common.proto.Struct.class, io.littlehorse.sdk.common.proto.Struct.Builder.class); + } + + // Construct using io.littlehorse.sdk.common.proto.Struct.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + schemaId_ = null; + if (schemaIdBuilder_ != null) { + schemaIdBuilder_.dispose(); + schemaIdBuilder_ = null; + } + struct_ = null; + if (structBuilder_ != null) { + structBuilder_.dispose(); + structBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_Struct_descriptor; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.Struct getDefaultInstanceForType() { + return io.littlehorse.sdk.common.proto.Struct.getDefaultInstance(); + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.Struct build() { + io.littlehorse.sdk.common.proto.Struct result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.Struct buildPartial() { + io.littlehorse.sdk.common.proto.Struct result = new io.littlehorse.sdk.common.proto.Struct(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.littlehorse.sdk.common.proto.Struct result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schemaId_ = schemaIdBuilder_ == null + ? schemaId_ + : schemaIdBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.struct_ = structBuilder_ == null + ? struct_ + : structBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.littlehorse.sdk.common.proto.Struct) { + return mergeFrom((io.littlehorse.sdk.common.proto.Struct)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.littlehorse.sdk.common.proto.Struct other) { + if (other == io.littlehorse.sdk.common.proto.Struct.getDefaultInstance()) return this; + if (other.hasSchemaId()) { + mergeSchemaId(other.getSchemaId()); + } + if (other.hasStruct()) { + mergeStruct(other.getStruct()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getSchemaIdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getStructFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private io.littlehorse.sdk.common.proto.SchemaId schemaId_; + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.SchemaId, io.littlehorse.sdk.common.proto.SchemaId.Builder, io.littlehorse.sdk.common.proto.SchemaIdOrBuilder> schemaIdBuilder_; + /** + *
+     * The id of the schema.
+     * 
+ * + * .littlehorse.SchemaId schema_id = 1; + * @return Whether the schemaId field is set. + */ + public boolean hasSchemaId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * The id of the schema.
+     * 
+ * + * .littlehorse.SchemaId schema_id = 1; + * @return The schemaId. + */ + public io.littlehorse.sdk.common.proto.SchemaId getSchemaId() { + if (schemaIdBuilder_ == null) { + return schemaId_ == null ? io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance() : schemaId_; + } else { + return schemaIdBuilder_.getMessage(); + } + } + /** + *
+     * The id of the schema.
+     * 
+ * + * .littlehorse.SchemaId schema_id = 1; + */ + public Builder setSchemaId(io.littlehorse.sdk.common.proto.SchemaId value) { + if (schemaIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schemaId_ = value; + } else { + schemaIdBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The id of the schema.
+     * 
+ * + * .littlehorse.SchemaId schema_id = 1; + */ + public Builder setSchemaId( + io.littlehorse.sdk.common.proto.SchemaId.Builder builderForValue) { + if (schemaIdBuilder_ == null) { + schemaId_ = builderForValue.build(); + } else { + schemaIdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The id of the schema.
+     * 
+ * + * .littlehorse.SchemaId schema_id = 1; + */ + public Builder mergeSchemaId(io.littlehorse.sdk.common.proto.SchemaId value) { + if (schemaIdBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + schemaId_ != null && + schemaId_ != io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance()) { + getSchemaIdBuilder().mergeFrom(value); + } else { + schemaId_ = value; + } + } else { + schemaIdBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The id of the schema.
+     * 
+ * + * .littlehorse.SchemaId schema_id = 1; + */ + public Builder clearSchemaId() { + bitField0_ = (bitField0_ & ~0x00000001); + schemaId_ = null; + if (schemaIdBuilder_ != null) { + schemaIdBuilder_.dispose(); + schemaIdBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The id of the schema.
+     * 
+ * + * .littlehorse.SchemaId schema_id = 1; + */ + public io.littlehorse.sdk.common.proto.SchemaId.Builder getSchemaIdBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSchemaIdFieldBuilder().getBuilder(); + } + /** + *
+     * The id of the schema.
+     * 
+ * + * .littlehorse.SchemaId schema_id = 1; + */ + public io.littlehorse.sdk.common.proto.SchemaIdOrBuilder getSchemaIdOrBuilder() { + if (schemaIdBuilder_ != null) { + return schemaIdBuilder_.getMessageOrBuilder(); + } else { + return schemaId_ == null ? + io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance() : schemaId_; + } + } + /** + *
+     * The id of the schema.
+     * 
+ * + * .littlehorse.SchemaId schema_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.SchemaId, io.littlehorse.sdk.common.proto.SchemaId.Builder, io.littlehorse.sdk.common.proto.SchemaIdOrBuilder> + getSchemaIdFieldBuilder() { + if (schemaIdBuilder_ == null) { + schemaIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.SchemaId, io.littlehorse.sdk.common.proto.SchemaId.Builder, io.littlehorse.sdk.common.proto.SchemaIdOrBuilder>( + getSchemaId(), + getParentForChildren(), + isClean()); + schemaId_ = null; + } + return schemaIdBuilder_; + } + + private io.littlehorse.sdk.common.proto.InlineStruct struct_; + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.InlineStruct, io.littlehorse.sdk.common.proto.InlineStruct.Builder, io.littlehorse.sdk.common.proto.InlineStructOrBuilder> structBuilder_; + /** + *
+     * The content of the Struct
+     * 
+ * + * .littlehorse.InlineStruct struct = 2; + * @return Whether the struct field is set. + */ + public boolean hasStruct() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * The content of the Struct
+     * 
+ * + * .littlehorse.InlineStruct struct = 2; + * @return The struct. + */ + public io.littlehorse.sdk.common.proto.InlineStruct getStruct() { + if (structBuilder_ == null) { + return struct_ == null ? io.littlehorse.sdk.common.proto.InlineStruct.getDefaultInstance() : struct_; + } else { + return structBuilder_.getMessage(); + } + } + /** + *
+     * The content of the Struct
+     * 
+ * + * .littlehorse.InlineStruct struct = 2; + */ + public Builder setStruct(io.littlehorse.sdk.common.proto.InlineStruct value) { + if (structBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + struct_ = value; + } else { + structBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The content of the Struct
+     * 
+ * + * .littlehorse.InlineStruct struct = 2; + */ + public Builder setStruct( + io.littlehorse.sdk.common.proto.InlineStruct.Builder builderForValue) { + if (structBuilder_ == null) { + struct_ = builderForValue.build(); + } else { + structBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The content of the Struct
+     * 
+ * + * .littlehorse.InlineStruct struct = 2; + */ + public Builder mergeStruct(io.littlehorse.sdk.common.proto.InlineStruct value) { + if (structBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + struct_ != null && + struct_ != io.littlehorse.sdk.common.proto.InlineStruct.getDefaultInstance()) { + getStructBuilder().mergeFrom(value); + } else { + struct_ = value; + } + } else { + structBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The content of the Struct
+     * 
+ * + * .littlehorse.InlineStruct struct = 2; + */ + public Builder clearStruct() { + bitField0_ = (bitField0_ & ~0x00000002); + struct_ = null; + if (structBuilder_ != null) { + structBuilder_.dispose(); + structBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The content of the Struct
+     * 
+ * + * .littlehorse.InlineStruct struct = 2; + */ + public io.littlehorse.sdk.common.proto.InlineStruct.Builder getStructBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStructFieldBuilder().getBuilder(); + } + /** + *
+     * The content of the Struct
+     * 
+ * + * .littlehorse.InlineStruct struct = 2; + */ + public io.littlehorse.sdk.common.proto.InlineStructOrBuilder getStructOrBuilder() { + if (structBuilder_ != null) { + return structBuilder_.getMessageOrBuilder(); + } else { + return struct_ == null ? + io.littlehorse.sdk.common.proto.InlineStruct.getDefaultInstance() : struct_; + } + } + /** + *
+     * The content of the Struct
+     * 
+ * + * .littlehorse.InlineStruct struct = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.InlineStruct, io.littlehorse.sdk.common.proto.InlineStruct.Builder, io.littlehorse.sdk.common.proto.InlineStructOrBuilder> + getStructFieldBuilder() { + if (structBuilder_ == null) { + structBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.InlineStruct, io.littlehorse.sdk.common.proto.InlineStruct.Builder, io.littlehorse.sdk.common.proto.InlineStructOrBuilder>( + getStruct(), + getParentForChildren(), + isClean()); + struct_ = null; + } + return structBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:littlehorse.Struct) + } + + // @@protoc_insertion_point(class_scope:littlehorse.Struct) + private static final io.littlehorse.sdk.common.proto.Struct DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.littlehorse.sdk.common.proto.Struct(); + } + + public static io.littlehorse.sdk.common.proto.Struct getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Struct parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.Struct getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/StructField.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/StructField.java new file mode 100644 index 000000000..999601fda --- /dev/null +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/StructField.java @@ -0,0 +1,2046 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: variable.proto + +package io.littlehorse.sdk.common.proto; + +/** + *
+ * A StructField represents the value for a single field in a struct.
+ * 
+ * + * Protobuf type {@code littlehorse.StructField} + */ +public final class StructField extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:littlehorse.StructField) + StructFieldOrBuilder { +private static final long serialVersionUID = 0L; + // Use StructField.newBuilder() to construct. + private StructField(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StructField() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StructField(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_StructField_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_StructField_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.littlehorse.sdk.common.proto.StructField.class, io.littlehorse.sdk.common.proto.StructField.Builder.class); + } + + public interface FieldListOrBuilder extends + // @@protoc_insertion_point(interface_extends:littlehorse.StructField.FieldList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .littlehorse.StructField fields = 1; + */ + java.util.List + getFieldsList(); + /** + * repeated .littlehorse.StructField fields = 1; + */ + io.littlehorse.sdk.common.proto.StructField getFields(int index); + /** + * repeated .littlehorse.StructField fields = 1; + */ + int getFieldsCount(); + /** + * repeated .littlehorse.StructField fields = 1; + */ + java.util.List + getFieldsOrBuilderList(); + /** + * repeated .littlehorse.StructField fields = 1; + */ + io.littlehorse.sdk.common.proto.StructFieldOrBuilder getFieldsOrBuilder( + int index); + } + /** + *
+   * A FieldList is a sub-structure of a `Struct`
+   * 
+ * + * Protobuf type {@code littlehorse.StructField.FieldList} + */ + public static final class FieldList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:littlehorse.StructField.FieldList) + FieldListOrBuilder { + private static final long serialVersionUID = 0L; + // Use FieldList.newBuilder() to construct. + private FieldList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FieldList() { + fields_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FieldList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_StructField_FieldList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_StructField_FieldList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.littlehorse.sdk.common.proto.StructField.FieldList.class, io.littlehorse.sdk.common.proto.StructField.FieldList.Builder.class); + } + + public static final int FIELDS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List fields_; + /** + * repeated .littlehorse.StructField fields = 1; + */ + @java.lang.Override + public java.util.List getFieldsList() { + return fields_; + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + @java.lang.Override + public java.util.List + getFieldsOrBuilderList() { + return fields_; + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + @java.lang.Override + public int getFieldsCount() { + return fields_.size(); + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.StructField getFields(int index) { + return fields_.get(index); + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.StructFieldOrBuilder getFieldsOrBuilder( + int index) { + return fields_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < fields_.size(); i++) { + output.writeMessage(1, fields_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < fields_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, fields_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.littlehorse.sdk.common.proto.StructField.FieldList)) { + return super.equals(obj); + } + io.littlehorse.sdk.common.proto.StructField.FieldList other = (io.littlehorse.sdk.common.proto.StructField.FieldList) obj; + + if (!getFieldsList() + .equals(other.getFieldsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFieldsCount() > 0) { + hash = (37 * hash) + FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getFieldsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.littlehorse.sdk.common.proto.StructField.FieldList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.StructField.FieldList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.StructField.FieldList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.StructField.FieldList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.StructField.FieldList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.StructField.FieldList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.StructField.FieldList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.littlehorse.sdk.common.proto.StructField.FieldList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.littlehorse.sdk.common.proto.StructField.FieldList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.littlehorse.sdk.common.proto.StructField.FieldList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.StructField.FieldList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.littlehorse.sdk.common.proto.StructField.FieldList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.littlehorse.sdk.common.proto.StructField.FieldList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A FieldList is a sub-structure of a `Struct`
+     * 
+ * + * Protobuf type {@code littlehorse.StructField.FieldList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:littlehorse.StructField.FieldList) + io.littlehorse.sdk.common.proto.StructField.FieldListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_StructField_FieldList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_StructField_FieldList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.littlehorse.sdk.common.proto.StructField.FieldList.class, io.littlehorse.sdk.common.proto.StructField.FieldList.Builder.class); + } + + // Construct using io.littlehorse.sdk.common.proto.StructField.FieldList.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + } else { + fields_ = null; + fieldsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_StructField_FieldList_descriptor; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.StructField.FieldList getDefaultInstanceForType() { + return io.littlehorse.sdk.common.proto.StructField.FieldList.getDefaultInstance(); + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.StructField.FieldList build() { + io.littlehorse.sdk.common.proto.StructField.FieldList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.StructField.FieldList buildPartial() { + io.littlehorse.sdk.common.proto.StructField.FieldList result = new io.littlehorse.sdk.common.proto.StructField.FieldList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.littlehorse.sdk.common.proto.StructField.FieldList result) { + if (fieldsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + fields_ = java.util.Collections.unmodifiableList(fields_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.fields_ = fields_; + } else { + result.fields_ = fieldsBuilder_.build(); + } + } + + private void buildPartial0(io.littlehorse.sdk.common.proto.StructField.FieldList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.littlehorse.sdk.common.proto.StructField.FieldList) { + return mergeFrom((io.littlehorse.sdk.common.proto.StructField.FieldList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.littlehorse.sdk.common.proto.StructField.FieldList other) { + if (other == io.littlehorse.sdk.common.proto.StructField.FieldList.getDefaultInstance()) return this; + if (fieldsBuilder_ == null) { + if (!other.fields_.isEmpty()) { + if (fields_.isEmpty()) { + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFieldsIsMutable(); + fields_.addAll(other.fields_); + } + onChanged(); + } + } else { + if (!other.fields_.isEmpty()) { + if (fieldsBuilder_.isEmpty()) { + fieldsBuilder_.dispose(); + fieldsBuilder_ = null; + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000001); + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFieldsFieldBuilder() : null; + } else { + fieldsBuilder_.addAllMessages(other.fields_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.littlehorse.sdk.common.proto.StructField m = + input.readMessage( + io.littlehorse.sdk.common.proto.StructField.parser(), + extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List fields_ = + java.util.Collections.emptyList(); + private void ensureFieldsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + fields_ = new java.util.ArrayList(fields_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.littlehorse.sdk.common.proto.StructField, io.littlehorse.sdk.common.proto.StructField.Builder, io.littlehorse.sdk.common.proto.StructFieldOrBuilder> fieldsBuilder_; + + /** + * repeated .littlehorse.StructField fields = 1; + */ + public java.util.List getFieldsList() { + if (fieldsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fields_); + } else { + return fieldsBuilder_.getMessageList(); + } + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + public int getFieldsCount() { + if (fieldsBuilder_ == null) { + return fields_.size(); + } else { + return fieldsBuilder_.getCount(); + } + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + public io.littlehorse.sdk.common.proto.StructField getFields(int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); + } else { + return fieldsBuilder_.getMessage(index); + } + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + public Builder setFields( + int index, io.littlehorse.sdk.common.proto.StructField value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.set(index, value); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + public Builder setFields( + int index, io.littlehorse.sdk.common.proto.StructField.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.set(index, builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + public Builder addFields(io.littlehorse.sdk.common.proto.StructField value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(value); + onChanged(); + } else { + fieldsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + public Builder addFields( + int index, io.littlehorse.sdk.common.proto.StructField value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(index, value); + onChanged(); + } else { + fieldsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + public Builder addFields( + io.littlehorse.sdk.common.proto.StructField.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + public Builder addFields( + int index, io.littlehorse.sdk.common.proto.StructField.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(index, builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + public Builder addAllFields( + java.lang.Iterable values) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fields_); + onChanged(); + } else { + fieldsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + public Builder clearFields() { + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + fieldsBuilder_.clear(); + } + return this; + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + public Builder removeFields(int index) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.remove(index); + onChanged(); + } else { + fieldsBuilder_.remove(index); + } + return this; + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + public io.littlehorse.sdk.common.proto.StructField.Builder getFieldsBuilder( + int index) { + return getFieldsFieldBuilder().getBuilder(index); + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + public io.littlehorse.sdk.common.proto.StructFieldOrBuilder getFieldsOrBuilder( + int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); } else { + return fieldsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + public java.util.List + getFieldsOrBuilderList() { + if (fieldsBuilder_ != null) { + return fieldsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fields_); + } + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + public io.littlehorse.sdk.common.proto.StructField.Builder addFieldsBuilder() { + return getFieldsFieldBuilder().addBuilder( + io.littlehorse.sdk.common.proto.StructField.getDefaultInstance()); + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + public io.littlehorse.sdk.common.proto.StructField.Builder addFieldsBuilder( + int index) { + return getFieldsFieldBuilder().addBuilder( + index, io.littlehorse.sdk.common.proto.StructField.getDefaultInstance()); + } + /** + * repeated .littlehorse.StructField fields = 1; + */ + public java.util.List + getFieldsBuilderList() { + return getFieldsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.littlehorse.sdk.common.proto.StructField, io.littlehorse.sdk.common.proto.StructField.Builder, io.littlehorse.sdk.common.proto.StructFieldOrBuilder> + getFieldsFieldBuilder() { + if (fieldsBuilder_ == null) { + fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.littlehorse.sdk.common.proto.StructField, io.littlehorse.sdk.common.proto.StructField.Builder, io.littlehorse.sdk.common.proto.StructFieldOrBuilder>( + fields_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + fields_ = null; + } + return fieldsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:littlehorse.StructField.FieldList) + } + + // @@protoc_insertion_point(class_scope:littlehorse.StructField.FieldList) + private static final io.littlehorse.sdk.common.proto.StructField.FieldList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.littlehorse.sdk.common.proto.StructField.FieldList(); + } + + public static io.littlehorse.sdk.common.proto.StructField.FieldList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FieldList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.StructField.FieldList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int structValueCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object structValue_; + public enum StructValueCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PRIMITIVE(1), + STRUCT(2), + LIST(3), + STRUCTVALUE_NOT_SET(0); + private final int value; + private StructValueCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static StructValueCase valueOf(int value) { + return forNumber(value); + } + + public static StructValueCase forNumber(int value) { + switch (value) { + case 1: return PRIMITIVE; + case 2: return STRUCT; + case 3: return LIST; + case 0: return STRUCTVALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public StructValueCase + getStructValueCase() { + return StructValueCase.forNumber( + structValueCase_); + } + + public static final int PRIMITIVE_FIELD_NUMBER = 1; + /** + *
+   * The `value` of the field is an untyped primitive `VariableValue`.
+   * 
+ * + * .littlehorse.VariableValue primitive = 1; + * @return Whether the primitive field is set. + */ + @java.lang.Override + public boolean hasPrimitive() { + return structValueCase_ == 1; + } + /** + *
+   * The `value` of the field is an untyped primitive `VariableValue`.
+   * 
+ * + * .littlehorse.VariableValue primitive = 1; + * @return The primitive. + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.VariableValue getPrimitive() { + if (structValueCase_ == 1) { + return (io.littlehorse.sdk.common.proto.VariableValue) structValue_; + } + return io.littlehorse.sdk.common.proto.VariableValue.getDefaultInstance(); + } + /** + *
+   * The `value` of the field is an untyped primitive `VariableValue`.
+   * 
+ * + * .littlehorse.VariableValue primitive = 1; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.VariableValueOrBuilder getPrimitiveOrBuilder() { + if (structValueCase_ == 1) { + return (io.littlehorse.sdk.common.proto.VariableValue) structValue_; + } + return io.littlehorse.sdk.common.proto.VariableValue.getDefaultInstance(); + } + + public static final int STRUCT_FIELD_NUMBER = 2; + /** + *
+   * The `value` of the field is a complex `Struct`.
+   * 
+ * + * .littlehorse.InlineStruct struct = 2; + * @return Whether the struct field is set. + */ + @java.lang.Override + public boolean hasStruct() { + return structValueCase_ == 2; + } + /** + *
+   * The `value` of the field is a complex `Struct`.
+   * 
+ * + * .littlehorse.InlineStruct struct = 2; + * @return The struct. + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineStruct getStruct() { + if (structValueCase_ == 2) { + return (io.littlehorse.sdk.common.proto.InlineStruct) structValue_; + } + return io.littlehorse.sdk.common.proto.InlineStruct.getDefaultInstance(); + } + /** + *
+   * The `value` of the field is a complex `Struct`.
+   * 
+ * + * .littlehorse.InlineStruct struct = 2; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineStructOrBuilder getStructOrBuilder() { + if (structValueCase_ == 2) { + return (io.littlehorse.sdk.common.proto.InlineStruct) structValue_; + } + return io.littlehorse.sdk.common.proto.InlineStruct.getDefaultInstance(); + } + + public static final int LIST_FIELD_NUMBER = 3; + /** + *
+   * The `value` of the field is a list of fields.
+   * 
+ * + * .littlehorse.StructField.FieldList list = 3; + * @return Whether the list field is set. + */ + @java.lang.Override + public boolean hasList() { + return structValueCase_ == 3; + } + /** + *
+   * The `value` of the field is a list of fields.
+   * 
+ * + * .littlehorse.StructField.FieldList list = 3; + * @return The list. + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.StructField.FieldList getList() { + if (structValueCase_ == 3) { + return (io.littlehorse.sdk.common.proto.StructField.FieldList) structValue_; + } + return io.littlehorse.sdk.common.proto.StructField.FieldList.getDefaultInstance(); + } + /** + *
+   * The `value` of the field is a list of fields.
+   * 
+ * + * .littlehorse.StructField.FieldList list = 3; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.StructField.FieldListOrBuilder getListOrBuilder() { + if (structValueCase_ == 3) { + return (io.littlehorse.sdk.common.proto.StructField.FieldList) structValue_; + } + return io.littlehorse.sdk.common.proto.StructField.FieldList.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (structValueCase_ == 1) { + output.writeMessage(1, (io.littlehorse.sdk.common.proto.VariableValue) structValue_); + } + if (structValueCase_ == 2) { + output.writeMessage(2, (io.littlehorse.sdk.common.proto.InlineStruct) structValue_); + } + if (structValueCase_ == 3) { + output.writeMessage(3, (io.littlehorse.sdk.common.proto.StructField.FieldList) structValue_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (structValueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (io.littlehorse.sdk.common.proto.VariableValue) structValue_); + } + if (structValueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (io.littlehorse.sdk.common.proto.InlineStruct) structValue_); + } + if (structValueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (io.littlehorse.sdk.common.proto.StructField.FieldList) structValue_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.littlehorse.sdk.common.proto.StructField)) { + return super.equals(obj); + } + io.littlehorse.sdk.common.proto.StructField other = (io.littlehorse.sdk.common.proto.StructField) obj; + + if (!getStructValueCase().equals(other.getStructValueCase())) return false; + switch (structValueCase_) { + case 1: + if (!getPrimitive() + .equals(other.getPrimitive())) return false; + break; + case 2: + if (!getStruct() + .equals(other.getStruct())) return false; + break; + case 3: + if (!getList() + .equals(other.getList())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (structValueCase_) { + case 1: + hash = (37 * hash) + PRIMITIVE_FIELD_NUMBER; + hash = (53 * hash) + getPrimitive().hashCode(); + break; + case 2: + hash = (37 * hash) + STRUCT_FIELD_NUMBER; + hash = (53 * hash) + getStruct().hashCode(); + break; + case 3: + hash = (37 * hash) + LIST_FIELD_NUMBER; + hash = (53 * hash) + getList().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.littlehorse.sdk.common.proto.StructField parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.StructField parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.StructField parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.StructField parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.StructField parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.littlehorse.sdk.common.proto.StructField parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.StructField parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.littlehorse.sdk.common.proto.StructField parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.littlehorse.sdk.common.proto.StructField parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.littlehorse.sdk.common.proto.StructField parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.littlehorse.sdk.common.proto.StructField parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.littlehorse.sdk.common.proto.StructField parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.littlehorse.sdk.common.proto.StructField prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A StructField represents the value for a single field in a struct.
+   * 
+ * + * Protobuf type {@code littlehorse.StructField} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:littlehorse.StructField) + io.littlehorse.sdk.common.proto.StructFieldOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_StructField_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_StructField_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.littlehorse.sdk.common.proto.StructField.class, io.littlehorse.sdk.common.proto.StructField.Builder.class); + } + + // Construct using io.littlehorse.sdk.common.proto.StructField.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (primitiveBuilder_ != null) { + primitiveBuilder_.clear(); + } + if (structBuilder_ != null) { + structBuilder_.clear(); + } + if (listBuilder_ != null) { + listBuilder_.clear(); + } + structValueCase_ = 0; + structValue_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.littlehorse.sdk.common.proto.VariableOuterClass.internal_static_littlehorse_StructField_descriptor; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.StructField getDefaultInstanceForType() { + return io.littlehorse.sdk.common.proto.StructField.getDefaultInstance(); + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.StructField build() { + io.littlehorse.sdk.common.proto.StructField result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.StructField buildPartial() { + io.littlehorse.sdk.common.proto.StructField result = new io.littlehorse.sdk.common.proto.StructField(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(io.littlehorse.sdk.common.proto.StructField result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(io.littlehorse.sdk.common.proto.StructField result) { + result.structValueCase_ = structValueCase_; + result.structValue_ = this.structValue_; + if (structValueCase_ == 1 && + primitiveBuilder_ != null) { + result.structValue_ = primitiveBuilder_.build(); + } + if (structValueCase_ == 2 && + structBuilder_ != null) { + result.structValue_ = structBuilder_.build(); + } + if (structValueCase_ == 3 && + listBuilder_ != null) { + result.structValue_ = listBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.littlehorse.sdk.common.proto.StructField) { + return mergeFrom((io.littlehorse.sdk.common.proto.StructField)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.littlehorse.sdk.common.proto.StructField other) { + if (other == io.littlehorse.sdk.common.proto.StructField.getDefaultInstance()) return this; + switch (other.getStructValueCase()) { + case PRIMITIVE: { + mergePrimitive(other.getPrimitive()); + break; + } + case STRUCT: { + mergeStruct(other.getStruct()); + break; + } + case LIST: { + mergeList(other.getList()); + break; + } + case STRUCTVALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPrimitiveFieldBuilder().getBuilder(), + extensionRegistry); + structValueCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getStructFieldBuilder().getBuilder(), + extensionRegistry); + structValueCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getListFieldBuilder().getBuilder(), + extensionRegistry); + structValueCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int structValueCase_ = 0; + private java.lang.Object structValue_; + public StructValueCase + getStructValueCase() { + return StructValueCase.forNumber( + structValueCase_); + } + + public Builder clearStructValue() { + structValueCase_ = 0; + structValue_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.VariableValue, io.littlehorse.sdk.common.proto.VariableValue.Builder, io.littlehorse.sdk.common.proto.VariableValueOrBuilder> primitiveBuilder_; + /** + *
+     * The `value` of the field is an untyped primitive `VariableValue`.
+     * 
+ * + * .littlehorse.VariableValue primitive = 1; + * @return Whether the primitive field is set. + */ + @java.lang.Override + public boolean hasPrimitive() { + return structValueCase_ == 1; + } + /** + *
+     * The `value` of the field is an untyped primitive `VariableValue`.
+     * 
+ * + * .littlehorse.VariableValue primitive = 1; + * @return The primitive. + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.VariableValue getPrimitive() { + if (primitiveBuilder_ == null) { + if (structValueCase_ == 1) { + return (io.littlehorse.sdk.common.proto.VariableValue) structValue_; + } + return io.littlehorse.sdk.common.proto.VariableValue.getDefaultInstance(); + } else { + if (structValueCase_ == 1) { + return primitiveBuilder_.getMessage(); + } + return io.littlehorse.sdk.common.proto.VariableValue.getDefaultInstance(); + } + } + /** + *
+     * The `value` of the field is an untyped primitive `VariableValue`.
+     * 
+ * + * .littlehorse.VariableValue primitive = 1; + */ + public Builder setPrimitive(io.littlehorse.sdk.common.proto.VariableValue value) { + if (primitiveBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + structValue_ = value; + onChanged(); + } else { + primitiveBuilder_.setMessage(value); + } + structValueCase_ = 1; + return this; + } + /** + *
+     * The `value` of the field is an untyped primitive `VariableValue`.
+     * 
+ * + * .littlehorse.VariableValue primitive = 1; + */ + public Builder setPrimitive( + io.littlehorse.sdk.common.proto.VariableValue.Builder builderForValue) { + if (primitiveBuilder_ == null) { + structValue_ = builderForValue.build(); + onChanged(); + } else { + primitiveBuilder_.setMessage(builderForValue.build()); + } + structValueCase_ = 1; + return this; + } + /** + *
+     * The `value` of the field is an untyped primitive `VariableValue`.
+     * 
+ * + * .littlehorse.VariableValue primitive = 1; + */ + public Builder mergePrimitive(io.littlehorse.sdk.common.proto.VariableValue value) { + if (primitiveBuilder_ == null) { + if (structValueCase_ == 1 && + structValue_ != io.littlehorse.sdk.common.proto.VariableValue.getDefaultInstance()) { + structValue_ = io.littlehorse.sdk.common.proto.VariableValue.newBuilder((io.littlehorse.sdk.common.proto.VariableValue) structValue_) + .mergeFrom(value).buildPartial(); + } else { + structValue_ = value; + } + onChanged(); + } else { + if (structValueCase_ == 1) { + primitiveBuilder_.mergeFrom(value); + } else { + primitiveBuilder_.setMessage(value); + } + } + structValueCase_ = 1; + return this; + } + /** + *
+     * The `value` of the field is an untyped primitive `VariableValue`.
+     * 
+ * + * .littlehorse.VariableValue primitive = 1; + */ + public Builder clearPrimitive() { + if (primitiveBuilder_ == null) { + if (structValueCase_ == 1) { + structValueCase_ = 0; + structValue_ = null; + onChanged(); + } + } else { + if (structValueCase_ == 1) { + structValueCase_ = 0; + structValue_ = null; + } + primitiveBuilder_.clear(); + } + return this; + } + /** + *
+     * The `value` of the field is an untyped primitive `VariableValue`.
+     * 
+ * + * .littlehorse.VariableValue primitive = 1; + */ + public io.littlehorse.sdk.common.proto.VariableValue.Builder getPrimitiveBuilder() { + return getPrimitiveFieldBuilder().getBuilder(); + } + /** + *
+     * The `value` of the field is an untyped primitive `VariableValue`.
+     * 
+ * + * .littlehorse.VariableValue primitive = 1; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.VariableValueOrBuilder getPrimitiveOrBuilder() { + if ((structValueCase_ == 1) && (primitiveBuilder_ != null)) { + return primitiveBuilder_.getMessageOrBuilder(); + } else { + if (structValueCase_ == 1) { + return (io.littlehorse.sdk.common.proto.VariableValue) structValue_; + } + return io.littlehorse.sdk.common.proto.VariableValue.getDefaultInstance(); + } + } + /** + *
+     * The `value` of the field is an untyped primitive `VariableValue`.
+     * 
+ * + * .littlehorse.VariableValue primitive = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.VariableValue, io.littlehorse.sdk.common.proto.VariableValue.Builder, io.littlehorse.sdk.common.proto.VariableValueOrBuilder> + getPrimitiveFieldBuilder() { + if (primitiveBuilder_ == null) { + if (!(structValueCase_ == 1)) { + structValue_ = io.littlehorse.sdk.common.proto.VariableValue.getDefaultInstance(); + } + primitiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.VariableValue, io.littlehorse.sdk.common.proto.VariableValue.Builder, io.littlehorse.sdk.common.proto.VariableValueOrBuilder>( + (io.littlehorse.sdk.common.proto.VariableValue) structValue_, + getParentForChildren(), + isClean()); + structValue_ = null; + } + structValueCase_ = 1; + onChanged(); + return primitiveBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.InlineStruct, io.littlehorse.sdk.common.proto.InlineStruct.Builder, io.littlehorse.sdk.common.proto.InlineStructOrBuilder> structBuilder_; + /** + *
+     * The `value` of the field is a complex `Struct`.
+     * 
+ * + * .littlehorse.InlineStruct struct = 2; + * @return Whether the struct field is set. + */ + @java.lang.Override + public boolean hasStruct() { + return structValueCase_ == 2; + } + /** + *
+     * The `value` of the field is a complex `Struct`.
+     * 
+ * + * .littlehorse.InlineStruct struct = 2; + * @return The struct. + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineStruct getStruct() { + if (structBuilder_ == null) { + if (structValueCase_ == 2) { + return (io.littlehorse.sdk.common.proto.InlineStruct) structValue_; + } + return io.littlehorse.sdk.common.proto.InlineStruct.getDefaultInstance(); + } else { + if (structValueCase_ == 2) { + return structBuilder_.getMessage(); + } + return io.littlehorse.sdk.common.proto.InlineStruct.getDefaultInstance(); + } + } + /** + *
+     * The `value` of the field is a complex `Struct`.
+     * 
+ * + * .littlehorse.InlineStruct struct = 2; + */ + public Builder setStruct(io.littlehorse.sdk.common.proto.InlineStruct value) { + if (structBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + structValue_ = value; + onChanged(); + } else { + structBuilder_.setMessage(value); + } + structValueCase_ = 2; + return this; + } + /** + *
+     * The `value` of the field is a complex `Struct`.
+     * 
+ * + * .littlehorse.InlineStruct struct = 2; + */ + public Builder setStruct( + io.littlehorse.sdk.common.proto.InlineStruct.Builder builderForValue) { + if (structBuilder_ == null) { + structValue_ = builderForValue.build(); + onChanged(); + } else { + structBuilder_.setMessage(builderForValue.build()); + } + structValueCase_ = 2; + return this; + } + /** + *
+     * The `value` of the field is a complex `Struct`.
+     * 
+ * + * .littlehorse.InlineStruct struct = 2; + */ + public Builder mergeStruct(io.littlehorse.sdk.common.proto.InlineStruct value) { + if (structBuilder_ == null) { + if (structValueCase_ == 2 && + structValue_ != io.littlehorse.sdk.common.proto.InlineStruct.getDefaultInstance()) { + structValue_ = io.littlehorse.sdk.common.proto.InlineStruct.newBuilder((io.littlehorse.sdk.common.proto.InlineStruct) structValue_) + .mergeFrom(value).buildPartial(); + } else { + structValue_ = value; + } + onChanged(); + } else { + if (structValueCase_ == 2) { + structBuilder_.mergeFrom(value); + } else { + structBuilder_.setMessage(value); + } + } + structValueCase_ = 2; + return this; + } + /** + *
+     * The `value` of the field is a complex `Struct`.
+     * 
+ * + * .littlehorse.InlineStruct struct = 2; + */ + public Builder clearStruct() { + if (structBuilder_ == null) { + if (structValueCase_ == 2) { + structValueCase_ = 0; + structValue_ = null; + onChanged(); + } + } else { + if (structValueCase_ == 2) { + structValueCase_ = 0; + structValue_ = null; + } + structBuilder_.clear(); + } + return this; + } + /** + *
+     * The `value` of the field is a complex `Struct`.
+     * 
+ * + * .littlehorse.InlineStruct struct = 2; + */ + public io.littlehorse.sdk.common.proto.InlineStruct.Builder getStructBuilder() { + return getStructFieldBuilder().getBuilder(); + } + /** + *
+     * The `value` of the field is a complex `Struct`.
+     * 
+ * + * .littlehorse.InlineStruct struct = 2; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.InlineStructOrBuilder getStructOrBuilder() { + if ((structValueCase_ == 2) && (structBuilder_ != null)) { + return structBuilder_.getMessageOrBuilder(); + } else { + if (structValueCase_ == 2) { + return (io.littlehorse.sdk.common.proto.InlineStruct) structValue_; + } + return io.littlehorse.sdk.common.proto.InlineStruct.getDefaultInstance(); + } + } + /** + *
+     * The `value` of the field is a complex `Struct`.
+     * 
+ * + * .littlehorse.InlineStruct struct = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.InlineStruct, io.littlehorse.sdk.common.proto.InlineStruct.Builder, io.littlehorse.sdk.common.proto.InlineStructOrBuilder> + getStructFieldBuilder() { + if (structBuilder_ == null) { + if (!(structValueCase_ == 2)) { + structValue_ = io.littlehorse.sdk.common.proto.InlineStruct.getDefaultInstance(); + } + structBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.InlineStruct, io.littlehorse.sdk.common.proto.InlineStruct.Builder, io.littlehorse.sdk.common.proto.InlineStructOrBuilder>( + (io.littlehorse.sdk.common.proto.InlineStruct) structValue_, + getParentForChildren(), + isClean()); + structValue_ = null; + } + structValueCase_ = 2; + onChanged(); + return structBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.StructField.FieldList, io.littlehorse.sdk.common.proto.StructField.FieldList.Builder, io.littlehorse.sdk.common.proto.StructField.FieldListOrBuilder> listBuilder_; + /** + *
+     * The `value` of the field is a list of fields.
+     * 
+ * + * .littlehorse.StructField.FieldList list = 3; + * @return Whether the list field is set. + */ + @java.lang.Override + public boolean hasList() { + return structValueCase_ == 3; + } + /** + *
+     * The `value` of the field is a list of fields.
+     * 
+ * + * .littlehorse.StructField.FieldList list = 3; + * @return The list. + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.StructField.FieldList getList() { + if (listBuilder_ == null) { + if (structValueCase_ == 3) { + return (io.littlehorse.sdk.common.proto.StructField.FieldList) structValue_; + } + return io.littlehorse.sdk.common.proto.StructField.FieldList.getDefaultInstance(); + } else { + if (structValueCase_ == 3) { + return listBuilder_.getMessage(); + } + return io.littlehorse.sdk.common.proto.StructField.FieldList.getDefaultInstance(); + } + } + /** + *
+     * The `value` of the field is a list of fields.
+     * 
+ * + * .littlehorse.StructField.FieldList list = 3; + */ + public Builder setList(io.littlehorse.sdk.common.proto.StructField.FieldList value) { + if (listBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + structValue_ = value; + onChanged(); + } else { + listBuilder_.setMessage(value); + } + structValueCase_ = 3; + return this; + } + /** + *
+     * The `value` of the field is a list of fields.
+     * 
+ * + * .littlehorse.StructField.FieldList list = 3; + */ + public Builder setList( + io.littlehorse.sdk.common.proto.StructField.FieldList.Builder builderForValue) { + if (listBuilder_ == null) { + structValue_ = builderForValue.build(); + onChanged(); + } else { + listBuilder_.setMessage(builderForValue.build()); + } + structValueCase_ = 3; + return this; + } + /** + *
+     * The `value` of the field is a list of fields.
+     * 
+ * + * .littlehorse.StructField.FieldList list = 3; + */ + public Builder mergeList(io.littlehorse.sdk.common.proto.StructField.FieldList value) { + if (listBuilder_ == null) { + if (structValueCase_ == 3 && + structValue_ != io.littlehorse.sdk.common.proto.StructField.FieldList.getDefaultInstance()) { + structValue_ = io.littlehorse.sdk.common.proto.StructField.FieldList.newBuilder((io.littlehorse.sdk.common.proto.StructField.FieldList) structValue_) + .mergeFrom(value).buildPartial(); + } else { + structValue_ = value; + } + onChanged(); + } else { + if (structValueCase_ == 3) { + listBuilder_.mergeFrom(value); + } else { + listBuilder_.setMessage(value); + } + } + structValueCase_ = 3; + return this; + } + /** + *
+     * The `value` of the field is a list of fields.
+     * 
+ * + * .littlehorse.StructField.FieldList list = 3; + */ + public Builder clearList() { + if (listBuilder_ == null) { + if (structValueCase_ == 3) { + structValueCase_ = 0; + structValue_ = null; + onChanged(); + } + } else { + if (structValueCase_ == 3) { + structValueCase_ = 0; + structValue_ = null; + } + listBuilder_.clear(); + } + return this; + } + /** + *
+     * The `value` of the field is a list of fields.
+     * 
+ * + * .littlehorse.StructField.FieldList list = 3; + */ + public io.littlehorse.sdk.common.proto.StructField.FieldList.Builder getListBuilder() { + return getListFieldBuilder().getBuilder(); + } + /** + *
+     * The `value` of the field is a list of fields.
+     * 
+ * + * .littlehorse.StructField.FieldList list = 3; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.StructField.FieldListOrBuilder getListOrBuilder() { + if ((structValueCase_ == 3) && (listBuilder_ != null)) { + return listBuilder_.getMessageOrBuilder(); + } else { + if (structValueCase_ == 3) { + return (io.littlehorse.sdk.common.proto.StructField.FieldList) structValue_; + } + return io.littlehorse.sdk.common.proto.StructField.FieldList.getDefaultInstance(); + } + } + /** + *
+     * The `value` of the field is a list of fields.
+     * 
+ * + * .littlehorse.StructField.FieldList list = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.StructField.FieldList, io.littlehorse.sdk.common.proto.StructField.FieldList.Builder, io.littlehorse.sdk.common.proto.StructField.FieldListOrBuilder> + getListFieldBuilder() { + if (listBuilder_ == null) { + if (!(structValueCase_ == 3)) { + structValue_ = io.littlehorse.sdk.common.proto.StructField.FieldList.getDefaultInstance(); + } + listBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.StructField.FieldList, io.littlehorse.sdk.common.proto.StructField.FieldList.Builder, io.littlehorse.sdk.common.proto.StructField.FieldListOrBuilder>( + (io.littlehorse.sdk.common.proto.StructField.FieldList) structValue_, + getParentForChildren(), + isClean()); + structValue_ = null; + } + structValueCase_ = 3; + onChanged(); + return listBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:littlehorse.StructField) + } + + // @@protoc_insertion_point(class_scope:littlehorse.StructField) + private static final io.littlehorse.sdk.common.proto.StructField DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.littlehorse.sdk.common.proto.StructField(); + } + + public static io.littlehorse.sdk.common.proto.StructField getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StructField parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.littlehorse.sdk.common.proto.StructField getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/StructFieldOrBuilder.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/StructFieldOrBuilder.java new file mode 100644 index 000000000..af2207142 --- /dev/null +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/StructFieldOrBuilder.java @@ -0,0 +1,92 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: variable.proto + +package io.littlehorse.sdk.common.proto; + +public interface StructFieldOrBuilder extends + // @@protoc_insertion_point(interface_extends:littlehorse.StructField) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The `value` of the field is an untyped primitive `VariableValue`.
+   * 
+ * + * .littlehorse.VariableValue primitive = 1; + * @return Whether the primitive field is set. + */ + boolean hasPrimitive(); + /** + *
+   * The `value` of the field is an untyped primitive `VariableValue`.
+   * 
+ * + * .littlehorse.VariableValue primitive = 1; + * @return The primitive. + */ + io.littlehorse.sdk.common.proto.VariableValue getPrimitive(); + /** + *
+   * The `value` of the field is an untyped primitive `VariableValue`.
+   * 
+ * + * .littlehorse.VariableValue primitive = 1; + */ + io.littlehorse.sdk.common.proto.VariableValueOrBuilder getPrimitiveOrBuilder(); + + /** + *
+   * The `value` of the field is a complex `Struct`.
+   * 
+ * + * .littlehorse.InlineStruct struct = 2; + * @return Whether the struct field is set. + */ + boolean hasStruct(); + /** + *
+   * The `value` of the field is a complex `Struct`.
+   * 
+ * + * .littlehorse.InlineStruct struct = 2; + * @return The struct. + */ + io.littlehorse.sdk.common.proto.InlineStruct getStruct(); + /** + *
+   * The `value` of the field is a complex `Struct`.
+   * 
+ * + * .littlehorse.InlineStruct struct = 2; + */ + io.littlehorse.sdk.common.proto.InlineStructOrBuilder getStructOrBuilder(); + + /** + *
+   * The `value` of the field is a list of fields.
+   * 
+ * + * .littlehorse.StructField.FieldList list = 3; + * @return Whether the list field is set. + */ + boolean hasList(); + /** + *
+   * The `value` of the field is a list of fields.
+   * 
+ * + * .littlehorse.StructField.FieldList list = 3; + * @return The list. + */ + io.littlehorse.sdk.common.proto.StructField.FieldList getList(); + /** + *
+   * The `value` of the field is a list of fields.
+   * 
+ * + * .littlehorse.StructField.FieldList list = 3; + */ + io.littlehorse.sdk.common.proto.StructField.FieldListOrBuilder getListOrBuilder(); + + io.littlehorse.sdk.common.proto.StructField.StructValueCase getStructValueCase(); +} diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/StructOrBuilder.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/StructOrBuilder.java new file mode 100644 index 000000000..c52afd0c7 --- /dev/null +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/StructOrBuilder.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: variable.proto + +package io.littlehorse.sdk.common.proto; + +public interface StructOrBuilder extends + // @@protoc_insertion_point(interface_extends:littlehorse.Struct) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The id of the schema.
+   * 
+ * + * .littlehorse.SchemaId schema_id = 1; + * @return Whether the schemaId field is set. + */ + boolean hasSchemaId(); + /** + *
+   * The id of the schema.
+   * 
+ * + * .littlehorse.SchemaId schema_id = 1; + * @return The schemaId. + */ + io.littlehorse.sdk.common.proto.SchemaId getSchemaId(); + /** + *
+   * The id of the schema.
+   * 
+ * + * .littlehorse.SchemaId schema_id = 1; + */ + io.littlehorse.sdk.common.proto.SchemaIdOrBuilder getSchemaIdOrBuilder(); + + /** + *
+   * The content of the Struct
+   * 
+ * + * .littlehorse.InlineStruct struct = 2; + * @return Whether the struct field is set. + */ + boolean hasStruct(); + /** + *
+   * The content of the Struct
+   * 
+ * + * .littlehorse.InlineStruct struct = 2; + * @return The struct. + */ + io.littlehorse.sdk.common.proto.InlineStruct getStruct(); + /** + *
+   * The content of the Struct
+   * 
+ * + * .littlehorse.InlineStruct struct = 2; + */ + io.littlehorse.sdk.common.proto.InlineStructOrBuilder getStructOrBuilder(); +} diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/UserTaskField.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/UserTaskField.java index 369f221a1..b7792a7ce 100644 --- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/UserTaskField.java +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/UserTaskField.java @@ -103,7 +103,7 @@ public java.lang.String getName() { * The type of the output. Must be a primitive type (STR, BOOL, INT, DOUBLE). *
* - * .littlehorse.VariableType type = 2; + * .littlehorse.PrimitiveType type = 2; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { @@ -114,12 +114,12 @@ public java.lang.String getName() { * The type of the output. Must be a primitive type (STR, BOOL, INT, DOUBLE). * * - * .littlehorse.VariableType type = 2; + * .littlehorse.PrimitiveType type = 2; * @return The type. */ - @java.lang.Override public io.littlehorse.sdk.common.proto.VariableType getType() { - io.littlehorse.sdk.common.proto.VariableType result = io.littlehorse.sdk.common.proto.VariableType.forNumber(type_); - return result == null ? io.littlehorse.sdk.common.proto.VariableType.UNRECOGNIZED : result; + @java.lang.Override public io.littlehorse.sdk.common.proto.PrimitiveType getType() { + io.littlehorse.sdk.common.proto.PrimitiveType result = io.littlehorse.sdk.common.proto.PrimitiveType.forNumber(type_); + return result == null ? io.littlehorse.sdk.common.proto.PrimitiveType.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 3; @@ -265,7 +265,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ != io.littlehorse.sdk.common.proto.VariableType.JSON_OBJ.getNumber()) { + if (type_ != io.littlehorse.sdk.common.proto.PrimitiveType.JSON_OBJ.getNumber()) { output.writeEnum(2, type_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -289,7 +289,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ != io.littlehorse.sdk.common.proto.VariableType.JSON_OBJ.getNumber()) { + if (type_ != io.littlehorse.sdk.common.proto.PrimitiveType.JSON_OBJ.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } @@ -783,7 +783,7 @@ public Builder setNameBytes( * The type of the output. Must be a primitive type (STR, BOOL, INT, DOUBLE). * * - * .littlehorse.VariableType type = 2; + * .littlehorse.PrimitiveType type = 2; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { @@ -794,7 +794,7 @@ public Builder setNameBytes( * The type of the output. Must be a primitive type (STR, BOOL, INT, DOUBLE). * * - * .littlehorse.VariableType type = 2; + * .littlehorse.PrimitiveType type = 2; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -809,24 +809,24 @@ public Builder setTypeValue(int value) { * The type of the output. Must be a primitive type (STR, BOOL, INT, DOUBLE). * * - * .littlehorse.VariableType type = 2; + * .littlehorse.PrimitiveType type = 2; * @return The type. */ @java.lang.Override - public io.littlehorse.sdk.common.proto.VariableType getType() { - io.littlehorse.sdk.common.proto.VariableType result = io.littlehorse.sdk.common.proto.VariableType.forNumber(type_); - return result == null ? io.littlehorse.sdk.common.proto.VariableType.UNRECOGNIZED : result; + public io.littlehorse.sdk.common.proto.PrimitiveType getType() { + io.littlehorse.sdk.common.proto.PrimitiveType result = io.littlehorse.sdk.common.proto.PrimitiveType.forNumber(type_); + return result == null ? io.littlehorse.sdk.common.proto.PrimitiveType.UNRECOGNIZED : result; } /** *
      * The type of the output. Must be a primitive type (STR, BOOL, INT, DOUBLE).
      * 
* - * .littlehorse.VariableType type = 2; + * .littlehorse.PrimitiveType type = 2; * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(io.littlehorse.sdk.common.proto.VariableType value) { + public Builder setType(io.littlehorse.sdk.common.proto.PrimitiveType value) { if (value == null) { throw new NullPointerException(); } @@ -840,7 +840,7 @@ public Builder setType(io.littlehorse.sdk.common.proto.VariableType value) { * The type of the output. Must be a primitive type (STR, BOOL, INT, DOUBLE). * * - * .littlehorse.VariableType type = 2; + * .littlehorse.PrimitiveType type = 2; * @return This builder for chaining. */ public Builder clearType() { diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/UserTaskFieldOrBuilder.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/UserTaskFieldOrBuilder.java index d56b99cbc..21ff894cb 100644 --- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/UserTaskFieldOrBuilder.java +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/UserTaskFieldOrBuilder.java @@ -34,7 +34,7 @@ public interface UserTaskFieldOrBuilder extends * The type of the output. Must be a primitive type (STR, BOOL, INT, DOUBLE). * * - * .littlehorse.VariableType type = 2; + * .littlehorse.PrimitiveType type = 2; * @return The enum numeric value on the wire for type. */ int getTypeValue(); @@ -43,10 +43,10 @@ public interface UserTaskFieldOrBuilder extends * The type of the output. Must be a primitive type (STR, BOOL, INT, DOUBLE). * * - * .littlehorse.VariableType type = 2; + * .littlehorse.PrimitiveType type = 2; * @return The type. */ - io.littlehorse.sdk.common.proto.VariableType getType(); + io.littlehorse.sdk.common.proto.PrimitiveType getType(); /** *
diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/UserTasks.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/UserTasks.java
index a7351822f..43680b3e1 100644
--- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/UserTasks.java
+++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/UserTasks.java
@@ -115,76 +115,76 @@ public static void registerAllExtensions(
       " \001(\005\022\030\n\013description\030\003 \001(\tH\000\210\001\001\022*\n\006fields" +
       "\030\004 \003(\0132\032.littlehorse.UserTaskField\022.\n\ncr" +
       "eated_at\030\005 \001(\0132\032.google.protobuf.Timesta" +
-      "mpB\016\n\014_description\"\230\001\n\rUserTaskField\022\014\n\004" +
-      "name\030\001 \001(\t\022\'\n\004type\030\002 \001(\0162\031.littlehorse.V" +
-      "ariableType\022\030\n\013description\030\003 \001(\tH\000\210\001\001\022\024\n" +
-      "\014display_name\030\004 \001(\t\022\020\n\010required\030\005 \001(\010B\016\n" +
-      "\014_description\"\243\004\n\013UserTaskRun\022&\n\002id\030\001 \001(" +
-      "\0132\032.littlehorse.UserTaskRunId\0224\n\020user_ta" +
-      "sk_def_id\030\002 \001(\0132\032.littlehorse.UserTaskDe" +
-      "fId\022\027\n\nuser_group\030\003 \001(\tH\000\210\001\001\022\024\n\007user_id\030" +
-      "\004 \001(\tH\001\210\001\001\0226\n\007results\030\006 \003(\0132%.littlehors" +
-      "e.UserTaskRun.ResultsEntry\022.\n\006status\030\007 \001" +
-      "(\0162\036.littlehorse.UserTaskRunStatus\022*\n\006ev" +
-      "ents\030\010 \003(\0132\032.littlehorse.UserTaskEvent\022\022" +
-      "\n\005notes\030\t \001(\tH\002\210\001\001\0222\n\016scheduled_time\030\n \001" +
-      "(\0132\032.google.protobuf.Timestamp\022+\n\013node_r" +
-      "un_id\030\013 \001(\0132\026.littlehorse.NodeRunId\022\r\n\005e" +
-      "poch\030\014 \001(\005\032J\n\014ResultsEntry\022\013\n\003key\030\001 \001(\t\022" +
-      ")\n\005value\030\002 \001(\0132\032.littlehorse.VariableVal" +
-      "ue:\0028\001B\r\n\013_user_groupB\n\n\010_user_idB\010\n\006_no" +
-      "tes\"\262\001\n\030AssignUserTaskRunRequest\0224\n\020user" +
-      "_task_run_id\030\001 \001(\0132\032.littlehorse.UserTas" +
-      "kRunId\022\026\n\016override_claim\030\002 \001(\010\022\027\n\nuser_g" +
-      "roup\030\003 \001(\tH\000\210\001\001\022\024\n\007user_id\030\004 \001(\tH\001\210\001\001B\r\n" +
-      "\013_user_groupB\n\n\010_user_id\"\366\001\n\032CompleteUse" +
+      "mpB\016\n\014_description\"\231\001\n\rUserTaskField\022\014\n\004" +
+      "name\030\001 \001(\t\022(\n\004type\030\002 \001(\0162\032.littlehorse.P" +
+      "rimitiveType\022\030\n\013description\030\003 \001(\tH\000\210\001\001\022\024" +
+      "\n\014display_name\030\004 \001(\t\022\020\n\010required\030\005 \001(\010B\016" +
+      "\n\014_description\"\243\004\n\013UserTaskRun\022&\n\002id\030\001 \001" +
+      "(\0132\032.littlehorse.UserTaskRunId\0224\n\020user_t" +
+      "ask_def_id\030\002 \001(\0132\032.littlehorse.UserTaskD" +
+      "efId\022\027\n\nuser_group\030\003 \001(\tH\000\210\001\001\022\024\n\007user_id" +
+      "\030\004 \001(\tH\001\210\001\001\0226\n\007results\030\006 \003(\0132%.littlehor" +
+      "se.UserTaskRun.ResultsEntry\022.\n\006status\030\007 " +
+      "\001(\0162\036.littlehorse.UserTaskRunStatus\022*\n\006e" +
+      "vents\030\010 \003(\0132\032.littlehorse.UserTaskEvent\022" +
+      "\022\n\005notes\030\t \001(\tH\002\210\001\001\0222\n\016scheduled_time\030\n " +
+      "\001(\0132\032.google.protobuf.Timestamp\022+\n\013node_" +
+      "run_id\030\013 \001(\0132\026.littlehorse.NodeRunId\022\r\n\005" +
+      "epoch\030\014 \001(\005\032J\n\014ResultsEntry\022\013\n\003key\030\001 \001(\t" +
+      "\022)\n\005value\030\002 \001(\0132\032.littlehorse.VariableVa" +
+      "lue:\0028\001B\r\n\013_user_groupB\n\n\010_user_idB\010\n\006_n" +
+      "otes\"\262\001\n\030AssignUserTaskRunRequest\0224\n\020use" +
+      "r_task_run_id\030\001 \001(\0132\032.littlehorse.UserTa" +
+      "skRunId\022\026\n\016override_claim\030\002 \001(\010\022\027\n\nuser_" +
+      "group\030\003 \001(\tH\000\210\001\001\022\024\n\007user_id\030\004 \001(\tH\001\210\001\001B\r" +
+      "\n\013_user_groupB\n\n\010_user_id\"\366\001\n\032CompleteUs" +
+      "erTaskRunRequest\0224\n\020user_task_run_id\030\001 \001" +
+      "(\0132\032.littlehorse.UserTaskRunId\022E\n\007result" +
+      "s\030\002 \003(\01324.littlehorse.CompleteUserTaskRu" +
+      "nRequest.ResultsEntry\022\017\n\007user_id\030\003 \001(\t\032J" +
+      "\n\014ResultsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001" +
+      "(\0132\032.littlehorse.VariableValue:\0028\001\"\256\003\n\036S" +
+      "aveUserTaskRunProgressRequest\0224\n\020user_ta" +
+      "sk_run_id\030\001 \001(\0132\032.littlehorse.UserTaskRu" +
+      "nId\022I\n\007results\030\002 \003(\01328.littlehorse.SaveU" +
+      "serTaskRunProgressRequest.ResultsEntry\022\017" +
+      "\n\007user_id\030\003 \001(\t\022[\n\006policy\030\004 \001(\0162K.little" +
+      "horse.SaveUserTaskRunProgressRequest.Sav" +
+      "eUserTaskRunAssignmentPolicy\032J\n\014ResultsE" +
+      "ntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.littl" +
+      "ehorse.VariableValue:\0028\001\"Q\n\037SaveUserTask" +
+      "RunAssignmentPolicy\022\034\n\030FAIL_IF_CLAIMED_B" +
+      "Y_OTHER\020\000\022\020\n\014IGNORE_CLAIM\020\001\"P\n\030CancelUse" +
       "rTaskRunRequest\0224\n\020user_task_run_id\030\001 \001(" +
-      "\0132\032.littlehorse.UserTaskRunId\022E\n\007results" +
-      "\030\002 \003(\01324.littlehorse.CompleteUserTaskRun" +
-      "Request.ResultsEntry\022\017\n\007user_id\030\003 \001(\t\032J\n" +
-      "\014ResultsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(" +
-      "\0132\032.littlehorse.VariableValue:\0028\001\"\256\003\n\036Sa" +
-      "veUserTaskRunProgressRequest\0224\n\020user_tas" +
-      "k_run_id\030\001 \001(\0132\032.littlehorse.UserTaskRun" +
-      "Id\022I\n\007results\030\002 \003(\01328.littlehorse.SaveUs" +
-      "erTaskRunProgressRequest.ResultsEntry\022\017\n" +
-      "\007user_id\030\003 \001(\t\022[\n\006policy\030\004 \001(\0162K.littleh" +
-      "orse.SaveUserTaskRunProgressRequest.Save" +
-      "UserTaskRunAssignmentPolicy\032J\n\014ResultsEn" +
-      "try\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.little" +
-      "horse.VariableValue:\0028\001\"Q\n\037SaveUserTaskR" +
-      "unAssignmentPolicy\022\034\n\030FAIL_IF_CLAIMED_BY" +
-      "_OTHER\020\000\022\020\n\014IGNORE_CLAIM\020\001\"P\n\030CancelUser" +
-      "TaskRunRequest\0224\n\020user_task_run_id\030\001 \001(\013" +
-      "2\032.littlehorse.UserTaskRunId\"\261\001\n\030UserTas" +
-      "kTriggerReference\022+\n\013node_run_id\030\001 \001(\0132\026" +
-      ".littlehorse.NodeRunId\022\036\n\026user_task_even" +
-      "t_number\030\002 \001(\005\022\024\n\007user_id\030\003 \001(\tH\000\210\001\001\022\027\n\n" +
-      "user_group\030\004 \001(\tH\001\210\001\001B\n\n\010_user_idB\r\n\013_us" +
-      "er_group\"\206\006\n\rUserTaskEvent\022(\n\004time\030\001 \001(\013" +
-      "2\032.google.protobuf.Timestamp\022C\n\rtask_exe" +
-      "cuted\030\002 \001(\0132*.littlehorse.UserTaskEvent." +
-      "UTETaskExecutedH\000\022:\n\010assigned\030\003 \001(\0132&.li" +
-      "ttlehorse.UserTaskEvent.UTEAssignedH\000\022<\n" +
-      "\tcancelled\030\004 \001(\0132\'.littlehorse.UserTaskE" +
-      "vent.UTECancelledH\000\0224\n\005saved\030\005 \001(\0132#.lit" +
-      "tlehorse.UserTaskEvent.UTESavedH\000\032\037\n\014UTE" +
-      "Cancelled\022\017\n\007message\030\001 \001(\t\032;\n\017UTETaskExe" +
-      "cuted\022(\n\010task_run\030\001 \001(\0132\026.littlehorse.Ta" +
-      "skRunId\032\252\001\n\010UTESaved\022\017\n\007user_id\030\001 \001(\t\022A\n" +
-      "\007results\030\002 \003(\01320.littlehorse.UserTaskEve" +
-      "nt.UTESaved.ResultsEntry\032J\n\014ResultsEntry" +
-      "\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.littlehor" +
-      "se.VariableValue:\0028\001\032\301\001\n\013UTEAssigned\022\030\n\013" +
-      "old_user_id\030\001 \001(\tH\000\210\001\001\022\033\n\016old_user_group" +
-      "\030\002 \001(\tH\001\210\001\001\022\030\n\013new_user_id\030\003 \001(\tH\002\210\001\001\022\033\n" +
-      "\016new_user_group\030\004 \001(\tH\003\210\001\001B\016\n\014_old_user_" +
-      "idB\021\n\017_old_user_groupB\016\n\014_new_user_idB\021\n" +
-      "\017_new_user_groupB\007\n\005event*J\n\021UserTaskRun" +
-      "Status\022\016\n\nUNASSIGNED\020\000\022\014\n\010ASSIGNED\020\001\022\010\n\004" +
-      "DONE\020\003\022\r\n\tCANCELLED\020\004BI\n\037io.littlehorse." +
-      "sdk.common.protoP\001Z\t.;lhproto\252\002\030LittleHo" +
-      "rse.Common.Protob\006proto3"
+      "\0132\032.littlehorse.UserTaskRunId\"\261\001\n\030UserTa" +
+      "skTriggerReference\022+\n\013node_run_id\030\001 \001(\0132" +
+      "\026.littlehorse.NodeRunId\022\036\n\026user_task_eve" +
+      "nt_number\030\002 \001(\005\022\024\n\007user_id\030\003 \001(\tH\000\210\001\001\022\027\n" +
+      "\nuser_group\030\004 \001(\tH\001\210\001\001B\n\n\010_user_idB\r\n\013_u" +
+      "ser_group\"\206\006\n\rUserTaskEvent\022(\n\004time\030\001 \001(" +
+      "\0132\032.google.protobuf.Timestamp\022C\n\rtask_ex" +
+      "ecuted\030\002 \001(\0132*.littlehorse.UserTaskEvent" +
+      ".UTETaskExecutedH\000\022:\n\010assigned\030\003 \001(\0132&.l" +
+      "ittlehorse.UserTaskEvent.UTEAssignedH\000\022<" +
+      "\n\tcancelled\030\004 \001(\0132\'.littlehorse.UserTask" +
+      "Event.UTECancelledH\000\0224\n\005saved\030\005 \001(\0132#.li" +
+      "ttlehorse.UserTaskEvent.UTESavedH\000\032\037\n\014UT" +
+      "ECancelled\022\017\n\007message\030\001 \001(\t\032;\n\017UTETaskEx" +
+      "ecuted\022(\n\010task_run\030\001 \001(\0132\026.littlehorse.T" +
+      "askRunId\032\252\001\n\010UTESaved\022\017\n\007user_id\030\001 \001(\t\022A" +
+      "\n\007results\030\002 \003(\01320.littlehorse.UserTaskEv" +
+      "ent.UTESaved.ResultsEntry\032J\n\014ResultsEntr" +
+      "y\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.littleho" +
+      "rse.VariableValue:\0028\001\032\301\001\n\013UTEAssigned\022\030\n" +
+      "\013old_user_id\030\001 \001(\tH\000\210\001\001\022\033\n\016old_user_grou" +
+      "p\030\002 \001(\tH\001\210\001\001\022\030\n\013new_user_id\030\003 \001(\tH\002\210\001\001\022\033" +
+      "\n\016new_user_group\030\004 \001(\tH\003\210\001\001B\016\n\014_old_user" +
+      "_idB\021\n\017_old_user_groupB\016\n\014_new_user_idB\021" +
+      "\n\017_new_user_groupB\007\n\005event*J\n\021UserTaskRu" +
+      "nStatus\022\016\n\nUNASSIGNED\020\000\022\014\n\010ASSIGNED\020\001\022\010\n" +
+      "\004DONE\020\003\022\r\n\tCANCELLED\020\004BI\n\037io.littlehorse" +
+      ".sdk.common.protoP\001Z\t.;lhproto\252\002\030LittleH" +
+      "orse.Common.Protob\006proto3"
     };
     descriptor = com.google.protobuf.Descriptors.FileDescriptor
       .internalBuildGeneratedFileFrom(descriptorData,
diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableDef.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableDef.java
index 9ec75d248..f989d7c09 100644
--- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableDef.java
+++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableDef.java
@@ -20,7 +20,6 @@ private VariableDef(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
   private VariableDef() {
-    type_ = 0;
     name_ = "";
   }
 
@@ -45,30 +44,132 @@ protected java.lang.Object newInstance(
   }
 
   private int bitField0_;
-  public static final int TYPE_FIELD_NUMBER = 1;
-  private int type_ = 0;
+  private int typeCase_ = 0;
+  @SuppressWarnings("serial")
+  private java.lang.Object type_;
+  public enum TypeCase
+      implements com.google.protobuf.Internal.EnumLite,
+          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+    PRIMITIVE(1),
+    SCHEMA(5),
+    TYPE_NOT_SET(0);
+    private final int value;
+    private TypeCase(int value) {
+      this.value = value;
+    }
+    /**
+     * @param value The number of the enum to look for.
+     * @return The enum associated with the given number.
+     * @deprecated Use {@link #forNumber(int)} instead.
+     */
+    @java.lang.Deprecated
+    public static TypeCase valueOf(int value) {
+      return forNumber(value);
+    }
+
+    public static TypeCase forNumber(int value) {
+      switch (value) {
+        case 1: return PRIMITIVE;
+        case 5: return SCHEMA;
+        case 0: return TYPE_NOT_SET;
+        default: return null;
+      }
+    }
+    public int getNumber() {
+      return this.value;
+    }
+  };
+
+  public TypeCase
+  getTypeCase() {
+    return TypeCase.forNumber(
+        typeCase_);
+  }
+
+  public static final int PRIMITIVE_FIELD_NUMBER = 1;
   /**
    * 
-   * The Type of the variable.
+   * The primitive type of the variable.
    * 
* - * .littlehorse.VariableType type = 1; - * @return The enum numeric value on the wire for type. + * .littlehorse.PrimitiveType primitive = 1; + * @return Whether the primitive field is set. */ - @java.lang.Override public int getTypeValue() { - return type_; + public boolean hasPrimitive() { + return typeCase_ == 1; } /** *
-   * The Type of the variable.
+   * The primitive type of the variable.
    * 
* - * .littlehorse.VariableType type = 1; - * @return The type. + * .littlehorse.PrimitiveType primitive = 1; + * @return The enum numeric value on the wire for primitive. */ - @java.lang.Override public io.littlehorse.sdk.common.proto.VariableType getType() { - io.littlehorse.sdk.common.proto.VariableType result = io.littlehorse.sdk.common.proto.VariableType.forNumber(type_); - return result == null ? io.littlehorse.sdk.common.proto.VariableType.UNRECOGNIZED : result; + public int getPrimitiveValue() { + if (typeCase_ == 1) { + return (java.lang.Integer) type_; + } + return 0; + } + /** + *
+   * The primitive type of the variable.
+   * 
+ * + * .littlehorse.PrimitiveType primitive = 1; + * @return The primitive. + */ + public io.littlehorse.sdk.common.proto.PrimitiveType getPrimitive() { + if (typeCase_ == 1) { + io.littlehorse.sdk.common.proto.PrimitiveType result = io.littlehorse.sdk.common.proto.PrimitiveType.forNumber( + (java.lang.Integer) type_); + return result == null ? io.littlehorse.sdk.common.proto.PrimitiveType.UNRECOGNIZED : result; + } + return io.littlehorse.sdk.common.proto.PrimitiveType.JSON_OBJ; + } + + public static final int SCHEMA_FIELD_NUMBER = 5; + /** + *
+   * The ID of the schema that the variable belongs to.
+   * 
+ * + * .littlehorse.SchemaId schema = 5; + * @return Whether the schema field is set. + */ + @java.lang.Override + public boolean hasSchema() { + return typeCase_ == 5; + } + /** + *
+   * The ID of the schema that the variable belongs to.
+   * 
+ * + * .littlehorse.SchemaId schema = 5; + * @return The schema. + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaId getSchema() { + if (typeCase_ == 5) { + return (io.littlehorse.sdk.common.proto.SchemaId) type_; + } + return io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance(); + } + /** + *
+   * The ID of the schema that the variable belongs to.
+   * 
+ * + * .littlehorse.SchemaId schema = 5; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaIdOrBuilder getSchemaOrBuilder() { + if (typeCase_ == 5) { + return (io.littlehorse.sdk.common.proto.SchemaId) type_; + } + return io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance(); } public static final int NAME_FIELD_NUMBER = 2; @@ -162,19 +263,19 @@ public io.littlehorse.sdk.common.proto.VariableValueOrBuilder getDefaultValueOrB return defaultValue_ == null ? io.littlehorse.sdk.common.proto.VariableValue.getDefaultInstance() : defaultValue_; } - public static final int MASKED_VALUE_FIELD_NUMBER = 4; - private boolean maskedValue_ = false; + public static final int IS_MASKED_FIELD_NUMBER = 4; + private boolean isMasked_ = false; /** *
    * If true, the variable value will show as a masked string.
    * 
* - * bool masked_value = 4; - * @return The maskedValue. + * bool is_masked = 4; + * @return The isMasked. */ @java.lang.Override - public boolean getMaskedValue() { - return maskedValue_; + public boolean getIsMasked() { + return isMasked_; } private byte memoizedIsInitialized = -1; @@ -191,8 +292,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ != io.littlehorse.sdk.common.proto.VariableType.JSON_OBJ.getNumber()) { - output.writeEnum(1, type_); + if (typeCase_ == 1) { + output.writeEnum(1, ((java.lang.Integer) type_)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); @@ -200,8 +301,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getDefaultValue()); } - if (maskedValue_ != false) { - output.writeBool(4, maskedValue_); + if (isMasked_ != false) { + output.writeBool(4, isMasked_); + } + if (typeCase_ == 5) { + output.writeMessage(5, (io.littlehorse.sdk.common.proto.SchemaId) type_); } getUnknownFields().writeTo(output); } @@ -212,9 +316,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != io.littlehorse.sdk.common.proto.VariableType.JSON_OBJ.getNumber()) { + if (typeCase_ == 1) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + .computeEnumSize(1, ((java.lang.Integer) type_)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); @@ -223,9 +327,13 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDefaultValue()); } - if (maskedValue_ != false) { + if (isMasked_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, isMasked_); + } + if (typeCase_ == 5) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, maskedValue_); + .computeMessageSize(5, (io.littlehorse.sdk.common.proto.SchemaId) type_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -242,7 +350,6 @@ public boolean equals(final java.lang.Object obj) { } io.littlehorse.sdk.common.proto.VariableDef other = (io.littlehorse.sdk.common.proto.VariableDef) obj; - if (type_ != other.type_) return false; if (!getName() .equals(other.getName())) return false; if (hasDefaultValue() != other.hasDefaultValue()) return false; @@ -250,8 +357,21 @@ public boolean equals(final java.lang.Object obj) { if (!getDefaultValue() .equals(other.getDefaultValue())) return false; } - if (getMaskedValue() - != other.getMaskedValue()) return false; + if (getIsMasked() + != other.getIsMasked()) return false; + if (!getTypeCase().equals(other.getTypeCase())) return false; + switch (typeCase_) { + case 1: + if (getPrimitiveValue() + != other.getPrimitiveValue()) return false; + break; + case 5: + if (!getSchema() + .equals(other.getSchema())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,17 +383,27 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasDefaultValue()) { hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDefaultValue().hashCode(); } - hash = (37 * hash) + MASKED_VALUE_FIELD_NUMBER; + hash = (37 * hash) + IS_MASKED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getMaskedValue()); + getIsMasked()); + switch (typeCase_) { + case 1: + hash = (37 * hash) + PRIMITIVE_FIELD_NUMBER; + hash = (53 * hash) + getPrimitiveValue(); + break; + case 5: + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -415,14 +545,18 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; - type_ = 0; + if (schemaBuilder_ != null) { + schemaBuilder_.clear(); + } name_ = ""; defaultValue_ = null; if (defaultValueBuilder_ != null) { defaultValueBuilder_.dispose(); defaultValueBuilder_ = null; } - maskedValue_ = false; + isMasked_ = false; + typeCase_ = 0; + type_ = null; return this; } @@ -450,31 +584,38 @@ public io.littlehorse.sdk.common.proto.VariableDef build() { public io.littlehorse.sdk.common.proto.VariableDef buildPartial() { io.littlehorse.sdk.common.proto.VariableDef result = new io.littlehorse.sdk.common.proto.VariableDef(this); if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(io.littlehorse.sdk.common.proto.VariableDef result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.type_ = type_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.defaultValue_ = defaultValueBuilder_ == null ? defaultValue_ : defaultValueBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.maskedValue_ = maskedValue_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.isMasked_ = isMasked_; } result.bitField0_ |= to_bitField0_; } + private void buildPartialOneofs(io.littlehorse.sdk.common.proto.VariableDef result) { + result.typeCase_ = typeCase_; + result.type_ = this.type_; + if (typeCase_ == 5 && + schemaBuilder_ != null) { + result.type_ = schemaBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -519,19 +660,29 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(io.littlehorse.sdk.common.proto.VariableDef other) { if (other == io.littlehorse.sdk.common.proto.VariableDef.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasDefaultValue()) { mergeDefaultValue(other.getDefaultValue()); } - if (other.getMaskedValue() != false) { - setMaskedValue(other.getMaskedValue()); + if (other.getIsMasked() != false) { + setIsMasked(other.getIsMasked()); + } + switch (other.getTypeCase()) { + case PRIMITIVE: { + setPrimitiveValue(other.getPrimitiveValue()); + break; + } + case SCHEMA: { + mergeSchema(other.getSchema()); + break; + } + case TYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -560,27 +711,35 @@ public Builder mergeFrom( done = true; break; case 8: { - type_ = input.readEnum(); - bitField0_ |= 0x00000001; + int rawValue = input.readEnum(); + typeCase_ = 1; + type_ = rawValue; break; } // case 8 case 18: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 case 26: { input.readMessage( getDefaultValueFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 32: { - maskedValue_ = input.readBool(); - bitField0_ |= 0x00000008; + isMasked_ = input.readBool(); + bitField0_ |= 0x00000010; break; } // case 32 + case 42: { + input.readMessage( + getSchemaFieldBuilder().getBuilder(), + extensionRegistry); + typeCase_ = 5; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -596,81 +755,295 @@ public Builder mergeFrom( } // finally return this; } + private int typeCase_ = 0; + private java.lang.Object type_; + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + private int bitField0_; - private int type_ = 0; /** *
-     * The Type of the variable.
+     * The primitive type of the variable.
      * 
* - * .littlehorse.VariableType type = 1; - * @return The enum numeric value on the wire for type. + * .littlehorse.PrimitiveType primitive = 1; + * @return Whether the primitive field is set. */ - @java.lang.Override public int getTypeValue() { - return type_; + @java.lang.Override + public boolean hasPrimitive() { + return typeCase_ == 1; } /** *
-     * The Type of the variable.
+     * The primitive type of the variable.
      * 
* - * .littlehorse.VariableType type = 1; - * @param value The enum numeric value on the wire for type to set. + * .littlehorse.PrimitiveType primitive = 1; + * @return The enum numeric value on the wire for primitive. + */ + @java.lang.Override + public int getPrimitiveValue() { + if (typeCase_ == 1) { + return ((java.lang.Integer) type_).intValue(); + } + return 0; + } + /** + *
+     * The primitive type of the variable.
+     * 
+ * + * .littlehorse.PrimitiveType primitive = 1; + * @param value The enum numeric value on the wire for primitive to set. * @return This builder for chaining. */ - public Builder setTypeValue(int value) { + public Builder setPrimitiveValue(int value) { + typeCase_ = 1; type_ = value; - bitField0_ |= 0x00000001; onChanged(); return this; } /** *
-     * The Type of the variable.
+     * The primitive type of the variable.
      * 
* - * .littlehorse.VariableType type = 1; - * @return The type. + * .littlehorse.PrimitiveType primitive = 1; + * @return The primitive. */ @java.lang.Override - public io.littlehorse.sdk.common.proto.VariableType getType() { - io.littlehorse.sdk.common.proto.VariableType result = io.littlehorse.sdk.common.proto.VariableType.forNumber(type_); - return result == null ? io.littlehorse.sdk.common.proto.VariableType.UNRECOGNIZED : result; + public io.littlehorse.sdk.common.proto.PrimitiveType getPrimitive() { + if (typeCase_ == 1) { + io.littlehorse.sdk.common.proto.PrimitiveType result = io.littlehorse.sdk.common.proto.PrimitiveType.forNumber( + (java.lang.Integer) type_); + return result == null ? io.littlehorse.sdk.common.proto.PrimitiveType.UNRECOGNIZED : result; + } + return io.littlehorse.sdk.common.proto.PrimitiveType.JSON_OBJ; } /** *
-     * The Type of the variable.
+     * The primitive type of the variable.
      * 
* - * .littlehorse.VariableType type = 1; - * @param value The type to set. + * .littlehorse.PrimitiveType primitive = 1; + * @param value The primitive to set. * @return This builder for chaining. */ - public Builder setType(io.littlehorse.sdk.common.proto.VariableType value) { + public Builder setPrimitive(io.littlehorse.sdk.common.proto.PrimitiveType value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000001; + typeCase_ = 1; type_ = value.getNumber(); onChanged(); return this; } /** *
-     * The Type of the variable.
+     * The primitive type of the variable.
      * 
* - * .littlehorse.VariableType type = 1; + * .littlehorse.PrimitiveType primitive = 1; * @return This builder for chaining. */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = 0; - onChanged(); + public Builder clearPrimitive() { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + onChanged(); + } return this; } + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.SchemaId, io.littlehorse.sdk.common.proto.SchemaId.Builder, io.littlehorse.sdk.common.proto.SchemaIdOrBuilder> schemaBuilder_; + /** + *
+     * The ID of the schema that the variable belongs to.
+     * 
+ * + * .littlehorse.SchemaId schema = 5; + * @return Whether the schema field is set. + */ + @java.lang.Override + public boolean hasSchema() { + return typeCase_ == 5; + } + /** + *
+     * The ID of the schema that the variable belongs to.
+     * 
+ * + * .littlehorse.SchemaId schema = 5; + * @return The schema. + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaId getSchema() { + if (schemaBuilder_ == null) { + if (typeCase_ == 5) { + return (io.littlehorse.sdk.common.proto.SchemaId) type_; + } + return io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance(); + } else { + if (typeCase_ == 5) { + return schemaBuilder_.getMessage(); + } + return io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance(); + } + } + /** + *
+     * The ID of the schema that the variable belongs to.
+     * 
+ * + * .littlehorse.SchemaId schema = 5; + */ + public Builder setSchema(io.littlehorse.sdk.common.proto.SchemaId value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + schemaBuilder_.setMessage(value); + } + typeCase_ = 5; + return this; + } + /** + *
+     * The ID of the schema that the variable belongs to.
+     * 
+ * + * .littlehorse.SchemaId schema = 5; + */ + public Builder setSchema( + io.littlehorse.sdk.common.proto.SchemaId.Builder builderForValue) { + if (schemaBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 5; + return this; + } + /** + *
+     * The ID of the schema that the variable belongs to.
+     * 
+ * + * .littlehorse.SchemaId schema = 5; + */ + public Builder mergeSchema(io.littlehorse.sdk.common.proto.SchemaId value) { + if (schemaBuilder_ == null) { + if (typeCase_ == 5 && + type_ != io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance()) { + type_ = io.littlehorse.sdk.common.proto.SchemaId.newBuilder((io.littlehorse.sdk.common.proto.SchemaId) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 5) { + schemaBuilder_.mergeFrom(value); + } else { + schemaBuilder_.setMessage(value); + } + } + typeCase_ = 5; + return this; + } + /** + *
+     * The ID of the schema that the variable belongs to.
+     * 
+ * + * .littlehorse.SchemaId schema = 5; + */ + public Builder clearSchema() { + if (schemaBuilder_ == null) { + if (typeCase_ == 5) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 5) { + typeCase_ = 0; + type_ = null; + } + schemaBuilder_.clear(); + } + return this; + } + /** + *
+     * The ID of the schema that the variable belongs to.
+     * 
+ * + * .littlehorse.SchemaId schema = 5; + */ + public io.littlehorse.sdk.common.proto.SchemaId.Builder getSchemaBuilder() { + return getSchemaFieldBuilder().getBuilder(); + } + /** + *
+     * The ID of the schema that the variable belongs to.
+     * 
+ * + * .littlehorse.SchemaId schema = 5; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.SchemaIdOrBuilder getSchemaOrBuilder() { + if ((typeCase_ == 5) && (schemaBuilder_ != null)) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 5) { + return (io.littlehorse.sdk.common.proto.SchemaId) type_; + } + return io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance(); + } + } + /** + *
+     * The ID of the schema that the variable belongs to.
+     * 
+ * + * .littlehorse.SchemaId schema = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.SchemaId, io.littlehorse.sdk.common.proto.SchemaId.Builder, io.littlehorse.sdk.common.proto.SchemaIdOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + if (!(typeCase_ == 5)) { + type_ = io.littlehorse.sdk.common.proto.SchemaId.getDefaultInstance(); + } + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.SchemaId, io.littlehorse.sdk.common.proto.SchemaId.Builder, io.littlehorse.sdk.common.proto.SchemaIdOrBuilder>( + (io.littlehorse.sdk.common.proto.SchemaId) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 5; + onChanged(); + return schemaBuilder_; + } + private java.lang.Object name_ = ""; /** *
@@ -726,7 +1099,7 @@ public Builder setName(
         java.lang.String value) {
       if (value == null) { throw new NullPointerException(); }
       name_ = value;
-      bitField0_ |= 0x00000002;
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
@@ -740,7 +1113,7 @@ public Builder setName(
      */
     public Builder clearName() {
       name_ = getDefaultInstance().getName();
-      bitField0_ = (bitField0_ & ~0x00000002);
+      bitField0_ = (bitField0_ & ~0x00000004);
       onChanged();
       return this;
     }
@@ -758,7 +1131,7 @@ public Builder setNameBytes(
       if (value == null) { throw new NullPointerException(); }
       checkByteStringIsUtf8(value);
       name_ = value;
-      bitField0_ |= 0x00000002;
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
@@ -777,7 +1150,7 @@ public Builder setNameBytes(
      * @return Whether the defaultValue field is set.
      */
     public boolean hasDefaultValue() {
-      return ((bitField0_ & 0x00000004) != 0);
+      return ((bitField0_ & 0x00000008) != 0);
     }
     /**
      * 
@@ -814,7 +1187,7 @@ public Builder setDefaultValue(io.littlehorse.sdk.common.proto.VariableValue val
       } else {
         defaultValueBuilder_.setMessage(value);
       }
-      bitField0_ |= 0x00000004;
+      bitField0_ |= 0x00000008;
       onChanged();
       return this;
     }
@@ -834,7 +1207,7 @@ public Builder setDefaultValue(
       } else {
         defaultValueBuilder_.setMessage(builderForValue.build());
       }
-      bitField0_ |= 0x00000004;
+      bitField0_ |= 0x00000008;
       onChanged();
       return this;
     }
@@ -849,7 +1222,7 @@ public Builder setDefaultValue(
      */
     public Builder mergeDefaultValue(io.littlehorse.sdk.common.proto.VariableValue value) {
       if (defaultValueBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
+        if (((bitField0_ & 0x00000008) != 0) &&
           defaultValue_ != null &&
           defaultValue_ != io.littlehorse.sdk.common.proto.VariableValue.getDefaultInstance()) {
           getDefaultValueBuilder().mergeFrom(value);
@@ -859,7 +1232,7 @@ public Builder mergeDefaultValue(io.littlehorse.sdk.common.proto.VariableValue v
       } else {
         defaultValueBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000004;
+      bitField0_ |= 0x00000008;
       onChanged();
       return this;
     }
@@ -873,7 +1246,7 @@ public Builder mergeDefaultValue(io.littlehorse.sdk.common.proto.VariableValue v
      * optional .littlehorse.VariableValue default_value = 3;
      */
     public Builder clearDefaultValue() {
-      bitField0_ = (bitField0_ & ~0x00000004);
+      bitField0_ = (bitField0_ & ~0x00000008);
       defaultValue_ = null;
       if (defaultValueBuilder_ != null) {
         defaultValueBuilder_.dispose();
@@ -892,7 +1265,7 @@ public Builder clearDefaultValue() {
      * optional .littlehorse.VariableValue default_value = 3;
      */
     public io.littlehorse.sdk.common.proto.VariableValue.Builder getDefaultValueBuilder() {
-      bitField0_ |= 0x00000004;
+      bitField0_ |= 0x00000008;
       onChanged();
       return getDefaultValueFieldBuilder().getBuilder();
     }
@@ -936,32 +1309,32 @@ public io.littlehorse.sdk.common.proto.VariableValueOrBuilder getDefaultValueOrB
       return defaultValueBuilder_;
     }
 
-    private boolean maskedValue_ ;
+    private boolean isMasked_ ;
     /**
      * 
      * If true, the variable value will show as a masked string.
      * 
* - * bool masked_value = 4; - * @return The maskedValue. + * bool is_masked = 4; + * @return The isMasked. */ @java.lang.Override - public boolean getMaskedValue() { - return maskedValue_; + public boolean getIsMasked() { + return isMasked_; } /** *
      * If true, the variable value will show as a masked string.
      * 
* - * bool masked_value = 4; - * @param value The maskedValue to set. + * bool is_masked = 4; + * @param value The isMasked to set. * @return This builder for chaining. */ - public Builder setMaskedValue(boolean value) { + public Builder setIsMasked(boolean value) { - maskedValue_ = value; - bitField0_ |= 0x00000008; + isMasked_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -970,12 +1343,12 @@ public Builder setMaskedValue(boolean value) { * If true, the variable value will show as a masked string. *
* - * bool masked_value = 4; + * bool is_masked = 4; * @return This builder for chaining. */ - public Builder clearMaskedValue() { - bitField0_ = (bitField0_ & ~0x00000008); - maskedValue_ = false; + public Builder clearIsMasked() { + bitField0_ = (bitField0_ & ~0x00000010); + isMasked_ = false; onChanged(); return this; } diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableDefOrBuilder.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableDefOrBuilder.java index 8c6de8339..075cd9498 100644 --- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableDefOrBuilder.java +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableDefOrBuilder.java @@ -9,22 +9,58 @@ public interface VariableDefOrBuilder extends /** *
-   * The Type of the variable.
+   * The primitive type of the variable.
    * 
* - * .littlehorse.VariableType type = 1; - * @return The enum numeric value on the wire for type. + * .littlehorse.PrimitiveType primitive = 1; + * @return Whether the primitive field is set. */ - int getTypeValue(); + boolean hasPrimitive(); /** *
-   * The Type of the variable.
+   * The primitive type of the variable.
    * 
* - * .littlehorse.VariableType type = 1; - * @return The type. + * .littlehorse.PrimitiveType primitive = 1; + * @return The enum numeric value on the wire for primitive. */ - io.littlehorse.sdk.common.proto.VariableType getType(); + int getPrimitiveValue(); + /** + *
+   * The primitive type of the variable.
+   * 
+ * + * .littlehorse.PrimitiveType primitive = 1; + * @return The primitive. + */ + io.littlehorse.sdk.common.proto.PrimitiveType getPrimitive(); + + /** + *
+   * The ID of the schema that the variable belongs to.
+   * 
+ * + * .littlehorse.SchemaId schema = 5; + * @return Whether the schema field is set. + */ + boolean hasSchema(); + /** + *
+   * The ID of the schema that the variable belongs to.
+   * 
+ * + * .littlehorse.SchemaId schema = 5; + * @return The schema. + */ + io.littlehorse.sdk.common.proto.SchemaId getSchema(); + /** + *
+   * The ID of the schema that the variable belongs to.
+   * 
+ * + * .littlehorse.SchemaId schema = 5; + */ + io.littlehorse.sdk.common.proto.SchemaIdOrBuilder getSchemaOrBuilder(); /** *
@@ -84,8 +120,10 @@ public interface VariableDefOrBuilder extends
    * If true, the variable value will show as a masked string.
    * 
* - * bool masked_value = 4; - * @return The maskedValue. + * bool is_masked = 4; + * @return The isMasked. */ - boolean getMaskedValue(); + boolean getIsMasked(); + + io.littlehorse.sdk.common.proto.VariableDef.TypeCase getTypeCase(); } diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableOuterClass.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableOuterClass.java index 27b2f6ccd..9571568ce 100644 --- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableOuterClass.java +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableOuterClass.java @@ -24,6 +24,41 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_littlehorse_Variable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_littlehorse_Struct_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_littlehorse_Struct_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_littlehorse_InlineStruct_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_littlehorse_InlineStruct_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_littlehorse_StructField_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_littlehorse_StructField_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_littlehorse_StructField_FieldList_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_littlehorse_StructField_FieldList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_littlehorse_SchemaField_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_littlehorse_SchemaField_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_littlehorse_Schema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_littlehorse_Schema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_littlehorse_InlineSchema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_littlehorse_InlineSchema_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -34,39 +69,104 @@ public static void registerAllExtensions( static { java.lang.String[] descriptorData = { "\n\016variable.proto\022\013littlehorse\032\037google/pr" + - "otobuf/timestamp.proto\032\017object_id.proto\"" + - "\227\001\n\rVariableValue\022\022\n\010json_obj\030\002 \001(\tH\000\022\022\n" + - "\010json_arr\030\003 \001(\tH\000\022\020\n\006double\030\004 \001(\001H\000\022\016\n\004b" + - "ool\030\005 \001(\010H\000\022\r\n\003str\030\006 \001(\tH\000\022\r\n\003int\030\007 \001(\003H" + - "\000\022\017\n\005bytes\030\010 \001(\014H\000B\007\n\005valueJ\004\010\001\020\002\"\305\001\n\010Va" + - "riable\022#\n\002id\030\001 \001(\0132\027.littlehorse.Variabl" + - "eId\022)\n\005value\030\002 \001(\0132\032.littlehorse.Variabl" + - "eValue\022.\n\ncreated_at\030\003 \001(\0132\032.google.prot" + - "obuf.Timestamp\022)\n\nwf_spec_id\030\004 \001(\0132\025.lit" + - "tlehorse.WfSpecId\022\016\n\006masked\030\005 \001(\010BI\n\037io." + - "littlehorse.sdk.common.protoP\001Z\t.;lhprot" + - "o\252\002\030LittleHorse.Common.Protob\006proto3" + "otobuf/timestamp.proto\032\017object_id.proto\032" + + "\022common_enums.proto\"\276\001\n\rVariableValue\022\022\n" + + "\010json_obj\030\002 \001(\tH\000\022\022\n\010json_arr\030\003 \001(\tH\000\022\020\n" + + "\006double\030\004 \001(\001H\000\022\016\n\004bool\030\005 \001(\010H\000\022\r\n\003str\030\006" + + " \001(\tH\000\022\r\n\003int\030\007 \001(\003H\000\022\017\n\005bytes\030\010 \001(\014H\000\022%" + + "\n\006struct\030\t \001(\0132\023.littlehorse.StructH\000B\007\n" + + "\005valueJ\004\010\001\020\002\"\305\001\n\010Variable\022#\n\002id\030\001 \001(\0132\027." + + "littlehorse.VariableId\022)\n\005value\030\002 \001(\0132\032." + + "littlehorse.VariableValue\022.\n\ncreated_at\030" + + "\003 \001(\0132\032.google.protobuf.Timestamp\022)\n\nwf_" + + "spec_id\030\004 \001(\0132\025.littlehorse.WfSpecId\022\016\n\006" + + "masked\030\005 \001(\010\"]\n\006Struct\022(\n\tschema_id\030\001 \001(" + + "\0132\025.littlehorse.SchemaId\022)\n\006struct\030\002 \001(\013" + + "2\031.littlehorse.InlineStruct\"8\n\014InlineStr" + + "uct\022(\n\006fields\030\001 \003(\0132\030.littlehorse.Struct" + + "Field\"\346\001\n\013StructField\022/\n\tprimitive\030\001 \001(\013" + + "2\032.littlehorse.VariableValueH\000\022+\n\006struct" + + "\030\002 \001(\0132\031.littlehorse.InlineStructH\000\0222\n\004l" + + "ist\030\003 \001(\0132\".littlehorse.StructField.Fiel" + + "dListH\000\0325\n\tFieldList\022(\n\006fields\030\001 \003(\0132\030.l" + + "ittlehorse.StructFieldB\016\n\014struct_value\"\314" + + "\001\n\013SchemaField\022\014\n\004name\030\001 \001(\t\022\020\n\010optional" + + "\030\002 \001(\010\022/\n\tprimitive\030\003 \001(\0162\032.littlehorse." + + "PrimitiveTypeH\000\022*\n\tschema_id\030\004 \001(\0132\025.lit" + + "tlehorse.SchemaIdH\000\0222\n\rinline_schema\030\005 \001" + + "(\0132\031.littlehorse.InlineSchemaH\000B\014\n\nfield" + + "_type\"\200\001\n\006Schema\022!\n\002id\030\001 \001(\0132\025.littlehor" + + "se.SchemaId\022\030\n\013description\030\002 \001(\tH\000\210\001\001\022)\n" + + "\006schema\030\003 \001(\0132\031.littlehorse.InlineSchema" + + "B\016\n\014_description\"8\n\014InlineSchema\022(\n\006fiel" + + "ds\030\001 \003(\0132\030.littlehorse.SchemaFieldBI\n\037io" + + ".littlehorse.sdk.common.protoP\001Z\t.;lhpro" + + "to\252\002\030LittleHorse.Common.Protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), io.littlehorse.sdk.common.proto.ObjectId.getDescriptor(), + io.littlehorse.sdk.common.proto.CommonEnums.getDescriptor(), }); internal_static_littlehorse_VariableValue_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_littlehorse_VariableValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_littlehorse_VariableValue_descriptor, - new java.lang.String[] { "JsonObj", "JsonArr", "Double", "Bool", "Str", "Int", "Bytes", "Value", }); + new java.lang.String[] { "JsonObj", "JsonArr", "Double", "Bool", "Str", "Int", "Bytes", "Struct", "Value", }); internal_static_littlehorse_Variable_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_littlehorse_Variable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_littlehorse_Variable_descriptor, new java.lang.String[] { "Id", "Value", "CreatedAt", "WfSpecId", "Masked", }); + internal_static_littlehorse_Struct_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_littlehorse_Struct_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_littlehorse_Struct_descriptor, + new java.lang.String[] { "SchemaId", "Struct", }); + internal_static_littlehorse_InlineStruct_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_littlehorse_InlineStruct_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_littlehorse_InlineStruct_descriptor, + new java.lang.String[] { "Fields", }); + internal_static_littlehorse_StructField_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_littlehorse_StructField_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_littlehorse_StructField_descriptor, + new java.lang.String[] { "Primitive", "Struct", "List", "StructValue", }); + internal_static_littlehorse_StructField_FieldList_descriptor = + internal_static_littlehorse_StructField_descriptor.getNestedTypes().get(0); + internal_static_littlehorse_StructField_FieldList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_littlehorse_StructField_FieldList_descriptor, + new java.lang.String[] { "Fields", }); + internal_static_littlehorse_SchemaField_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_littlehorse_SchemaField_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_littlehorse_SchemaField_descriptor, + new java.lang.String[] { "Name", "Optional", "Primitive", "SchemaId", "InlineSchema", "FieldType", }); + internal_static_littlehorse_Schema_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_littlehorse_Schema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_littlehorse_Schema_descriptor, + new java.lang.String[] { "Id", "Description", "Schema", "Description", }); + internal_static_littlehorse_InlineSchema_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_littlehorse_InlineSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_littlehorse_InlineSchema_descriptor, + new java.lang.String[] { "Fields", }); com.google.protobuf.TimestampProto.getDescriptor(); io.littlehorse.sdk.common.proto.ObjectId.getDescriptor(); + io.littlehorse.sdk.common.proto.CommonEnums.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableValue.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableValue.java index b61f941fa..0b9fd94b7 100644 --- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableValue.java +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableValue.java @@ -57,6 +57,7 @@ public enum ValueCase STR(6), INT(7), BYTES(8), + STRUCT(9), VALUE_NOT_SET(0); private final int value; private ValueCase(int value) { @@ -81,6 +82,7 @@ public static ValueCase forNumber(int value) { case 6: return STR; case 7: return INT; case 8: return BYTES; + case 9: return STRUCT; case 0: return VALUE_NOT_SET; default: return null; } @@ -406,6 +408,49 @@ public com.google.protobuf.ByteString getBytes() { return com.google.protobuf.ByteString.EMPTY; } + public static final int STRUCT_FIELD_NUMBER = 9; + /** + *
+   * A strongly-typed struct
+   * 
+ * + * .littlehorse.Struct struct = 9; + * @return Whether the struct field is set. + */ + @java.lang.Override + public boolean hasStruct() { + return valueCase_ == 9; + } + /** + *
+   * A strongly-typed struct
+   * 
+ * + * .littlehorse.Struct struct = 9; + * @return The struct. + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.Struct getStruct() { + if (valueCase_ == 9) { + return (io.littlehorse.sdk.common.proto.Struct) value_; + } + return io.littlehorse.sdk.common.proto.Struct.getDefaultInstance(); + } + /** + *
+   * A strongly-typed struct
+   * 
+ * + * .littlehorse.Struct struct = 9; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.StructOrBuilder getStructOrBuilder() { + if (valueCase_ == 9) { + return (io.littlehorse.sdk.common.proto.Struct) value_; + } + return io.littlehorse.sdk.common.proto.Struct.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -445,6 +490,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeBytes( 8, (com.google.protobuf.ByteString) value_); } + if (valueCase_ == 9) { + output.writeMessage(9, (io.littlehorse.sdk.common.proto.Struct) value_); + } getUnknownFields().writeTo(output); } @@ -483,6 +531,10 @@ public int getSerializedSize() { .computeBytesSize( 8, (com.google.protobuf.ByteString) value_); } + if (valueCase_ == 9) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (io.littlehorse.sdk.common.proto.Struct) value_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -529,6 +581,10 @@ public boolean equals(final java.lang.Object obj) { if (!getBytes() .equals(other.getBytes())) return false; break; + case 9: + if (!getStruct() + .equals(other.getStruct())) return false; + break; case 0: default: } @@ -575,6 +631,10 @@ public int hashCode() { hash = (37 * hash) + BYTES_FIELD_NUMBER; hash = (53 * hash) + getBytes().hashCode(); break; + case 9: + hash = (37 * hash) + STRUCT_FIELD_NUMBER; + hash = (53 * hash) + getStruct().hashCode(); + break; case 0: default: } @@ -715,6 +775,9 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; + if (structBuilder_ != null) { + structBuilder_.clear(); + } valueCase_ = 0; value_ = null; return this; @@ -756,6 +819,10 @@ private void buildPartial0(io.littlehorse.sdk.common.proto.VariableValue result) private void buildPartialOneofs(io.littlehorse.sdk.common.proto.VariableValue result) { result.valueCase_ = valueCase_; result.value_ = this.value_; + if (valueCase_ == 9 && + structBuilder_ != null) { + result.value_ = structBuilder_.build(); + } } @java.lang.Override @@ -837,6 +904,10 @@ public Builder mergeFrom(io.littlehorse.sdk.common.proto.VariableValue other) { setBytes(other.getBytes()); break; } + case STRUCT: { + mergeStruct(other.getStruct()); + break; + } case VALUE_NOT_SET: { break; } @@ -905,6 +976,13 @@ public Builder mergeFrom( valueCase_ = 8; break; } // case 66 + case 74: { + input.readMessage( + getStructFieldBuilder().getBuilder(), + extensionRegistry); + valueCase_ = 9; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -1523,6 +1601,184 @@ public Builder clearBytes() { } return this; } + + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.Struct, io.littlehorse.sdk.common.proto.Struct.Builder, io.littlehorse.sdk.common.proto.StructOrBuilder> structBuilder_; + /** + *
+     * A strongly-typed struct
+     * 
+ * + * .littlehorse.Struct struct = 9; + * @return Whether the struct field is set. + */ + @java.lang.Override + public boolean hasStruct() { + return valueCase_ == 9; + } + /** + *
+     * A strongly-typed struct
+     * 
+ * + * .littlehorse.Struct struct = 9; + * @return The struct. + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.Struct getStruct() { + if (structBuilder_ == null) { + if (valueCase_ == 9) { + return (io.littlehorse.sdk.common.proto.Struct) value_; + } + return io.littlehorse.sdk.common.proto.Struct.getDefaultInstance(); + } else { + if (valueCase_ == 9) { + return structBuilder_.getMessage(); + } + return io.littlehorse.sdk.common.proto.Struct.getDefaultInstance(); + } + } + /** + *
+     * A strongly-typed struct
+     * 
+ * + * .littlehorse.Struct struct = 9; + */ + public Builder setStruct(io.littlehorse.sdk.common.proto.Struct value) { + if (structBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + structBuilder_.setMessage(value); + } + valueCase_ = 9; + return this; + } + /** + *
+     * A strongly-typed struct
+     * 
+ * + * .littlehorse.Struct struct = 9; + */ + public Builder setStruct( + io.littlehorse.sdk.common.proto.Struct.Builder builderForValue) { + if (structBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + structBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 9; + return this; + } + /** + *
+     * A strongly-typed struct
+     * 
+ * + * .littlehorse.Struct struct = 9; + */ + public Builder mergeStruct(io.littlehorse.sdk.common.proto.Struct value) { + if (structBuilder_ == null) { + if (valueCase_ == 9 && + value_ != io.littlehorse.sdk.common.proto.Struct.getDefaultInstance()) { + value_ = io.littlehorse.sdk.common.proto.Struct.newBuilder((io.littlehorse.sdk.common.proto.Struct) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 9) { + structBuilder_.mergeFrom(value); + } else { + structBuilder_.setMessage(value); + } + } + valueCase_ = 9; + return this; + } + /** + *
+     * A strongly-typed struct
+     * 
+ * + * .littlehorse.Struct struct = 9; + */ + public Builder clearStruct() { + if (structBuilder_ == null) { + if (valueCase_ == 9) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 9) { + valueCase_ = 0; + value_ = null; + } + structBuilder_.clear(); + } + return this; + } + /** + *
+     * A strongly-typed struct
+     * 
+ * + * .littlehorse.Struct struct = 9; + */ + public io.littlehorse.sdk.common.proto.Struct.Builder getStructBuilder() { + return getStructFieldBuilder().getBuilder(); + } + /** + *
+     * A strongly-typed struct
+     * 
+ * + * .littlehorse.Struct struct = 9; + */ + @java.lang.Override + public io.littlehorse.sdk.common.proto.StructOrBuilder getStructOrBuilder() { + if ((valueCase_ == 9) && (structBuilder_ != null)) { + return structBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 9) { + return (io.littlehorse.sdk.common.proto.Struct) value_; + } + return io.littlehorse.sdk.common.proto.Struct.getDefaultInstance(); + } + } + /** + *
+     * A strongly-typed struct
+     * 
+ * + * .littlehorse.Struct struct = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.Struct, io.littlehorse.sdk.common.proto.Struct.Builder, io.littlehorse.sdk.common.proto.StructOrBuilder> + getStructFieldBuilder() { + if (structBuilder_ == null) { + if (!(valueCase_ == 9)) { + value_ = io.littlehorse.sdk.common.proto.Struct.getDefaultInstance(); + } + structBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.littlehorse.sdk.common.proto.Struct, io.littlehorse.sdk.common.proto.Struct.Builder, io.littlehorse.sdk.common.proto.StructOrBuilder>( + (io.littlehorse.sdk.common.proto.Struct) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 9; + onChanged(); + return structBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableValueOrBuilder.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableValueOrBuilder.java index 245aaac99..0dcfafeeb 100644 --- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableValueOrBuilder.java +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/VariableValueOrBuilder.java @@ -172,5 +172,32 @@ public interface VariableValueOrBuilder extends */ com.google.protobuf.ByteString getBytes(); + /** + *
+   * A strongly-typed struct
+   * 
+ * + * .littlehorse.Struct struct = 9; + * @return Whether the struct field is set. + */ + boolean hasStruct(); + /** + *
+   * A strongly-typed struct
+   * 
+ * + * .littlehorse.Struct struct = 9; + * @return The struct. + */ + io.littlehorse.sdk.common.proto.Struct getStruct(); + /** + *
+   * A strongly-typed struct
+   * 
+ * + * .littlehorse.Struct struct = 9; + */ + io.littlehorse.sdk.common.proto.StructOrBuilder getStructOrBuilder(); + io.littlehorse.sdk.common.proto.VariableValue.ValueCase getValueCase(); } diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/WfSpecOuterClass.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/WfSpecOuterClass.java index a618b8bf2..5ee227e2f 100644 --- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/WfSpecOuterClass.java +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/WfSpecOuterClass.java @@ -215,125 +215,125 @@ public static void registerAllExtensions( "B\023\n\021_retention_policyB\014\n\n_migrationB\021\n\017_" + "parent_wf_spec\"Q\n\027WorkflowRetentionPolic" + "y\022&\n\034seconds_after_wf_termination\030\001 \001(\003H" + - "\000B\016\n\014wf_gc_policy\"N\n\tJsonIndex\022\022\n\nfield_" + - "path\030\001 \001(\t\022-\n\nfield_type\030\002 \001(\0162\031.littleh" + - "orse.VariableType\"\312\001\n\014ThreadVarDef\022)\n\007va" + - "r_def\030\001 \001(\0132\030.littlehorse.VariableDef\022\020\n" + - "\010required\030\002 \001(\010\022\022\n\nsearchable\030\003 \001(\010\022,\n\014j" + - "son_indexes\030\004 \003(\0132\026.littlehorse.JsonInde" + - "x\022;\n\014access_level\030\005 \001(\0162%.littlehorse.Wf" + - "RunVariableAccessLevel\"\275\002\n\nThreadSpec\0221\n" + - "\005nodes\030\001 \003(\0132\".littlehorse.ThreadSpec.No" + - "desEntry\0220\n\rvariable_defs\030\002 \003(\0132\031.little" + - "horse.ThreadVarDef\0221\n\016interrupt_defs\030\003 \003" + - "(\0132\031.littlehorse.InterruptDef\022A\n\020retenti" + - "on_policy\030\004 \001(\0132\".littlehorse.ThreadRete" + - "ntionPolicyH\000\210\001\001\032?\n\nNodesEntry\022\013\n\003key\030\001 " + - "\001(\t\022 \n\005value\030\002 \001(\0132\021.littlehorse.Node:\0028" + - "\001B\023\n\021_retention_policy\"W\n\025ThreadRetentio" + - "nPolicy\022*\n seconds_after_thread_terminat" + - "ion\030\001 \001(\003H\000B\022\n\020thread_gc_policy\"i\n\014Inter" + - "ruptDef\022>\n\025external_event_def_id\030\001 \001(\0132\037" + - ".littlehorse.ExternalEventDefId\022\031\n\021handl" + - "er_spec_name\030\002 \001(\t\"\276\001\n\017StartThreadNode\022\030" + - "\n\020thread_spec_name\030\001 \001(\t\022>\n\tvariables\030\002 " + - "\003(\0132+.littlehorse.StartThreadNode.Variab" + - "lesEntry\032Q\n\016VariablesEntry\022\013\n\003key\030\001 \001(\t\022" + - ".\n\005value\030\002 \001(\0132\037.littlehorse.VariableAss" + - "ignment:\0028\001\"\203\002\n\030StartMultipleThreadsNode" + - "\022\030\n\020thread_spec_name\030\001 \001(\t\022G\n\tvariables\030" + - "\002 \003(\01324.littlehorse.StartMultipleThreads" + - "Node.VariablesEntry\0221\n\010iterable\030\003 \001(\0132\037." + - "littlehorse.VariableAssignment\032Q\n\016Variab" + - "lesEntry\022\013\n\003key\030\001 \001(\t\022.\n\005value\030\002 \001(\0132\037.l" + - "ittlehorse.VariableAssignment:\0028\001\"\360\001\n\021Fa" + - "ilureHandlerDef\022\031\n\021handler_spec_name\030\002 \001" + - "(\t\022\032\n\020specific_failure\030\001 \001(\tH\000\022K\n\023any_fa" + - "ilure_of_type\030\003 \001(\0162,.littlehorse.Failur" + - "eHandlerDef.LHFailureTypeH\000\"C\n\rLHFailure" + - "Type\022\026\n\022FAILURE_TYPE_ERROR\020\000\022\032\n\026FAILURE_" + - "TYPE_EXCEPTION\020\001B\022\n\020failure_to_catch\"\222\003\n" + - "\022WaitForThreadsNode\022C\n\007threads\030\001 \001(\01320.l" + - "ittlehorse.WaitForThreadsNode.ThreadsToW" + - "aitForH\000\0226\n\013thread_list\030\002 \001(\0132\037.littleho" + - "rse.VariableAssignmentH\000\022C\n\033per_thread_f" + - "ailure_handlers\030\003 \003(\0132\036.littlehorse.Fail" + - "ureHandlerDef\032M\n\017ThreadToWaitFor\022:\n\021thre" + - "ad_run_number\030\001 \001(\0132\037.littlehorse.Variab" + - "leAssignment\032T\n\020ThreadsToWaitFor\022@\n\007thre" + - "ads\030\001 \003(\0132/.littlehorse.WaitForThreadsNo" + - "de.ThreadToWaitForB\025\n\023threads_to_wait_fo" + - "r\"\215\001\n\021ExternalEventNode\022>\n\025external_even" + - "t_def_id\030\001 \001(\0132\037.littlehorse.ExternalEve" + - "ntDefId\0228\n\017timeout_seconds\030\002 \001(\0132\037.littl" + - "ehorse.VariableAssignment\"\020\n\016EntrypointN" + - "ode\"M\n\010ExitNode\0221\n\013failure_def\030\001 \001(\0132\027.l" + - "ittlehorse.FailureDefH\000\210\001\001B\016\n\014_failure_d" + - "ef\"v\n\nFailureDef\022\024\n\014failure_name\030\001 \001(\t\022\017" + - "\n\007message\030\002 \001(\t\0225\n\007content\030\003 \001(\0132\037.littl" + - "ehorse.VariableAssignmentH\000\210\001\001B\n\n\010_conte" + - "nt\"\234\005\n\004Node\022)\n\016outgoing_edges\030\001 \003(\0132\021.li" + - "ttlehorse.Edge\0228\n\020failure_handlers\030\004 \003(\013" + - "2\036.littlehorse.FailureHandlerDef\0221\n\nentr" + - "ypoint\030\005 \001(\0132\033.littlehorse.EntrypointNod" + - "eH\000\022%\n\004exit\030\006 \001(\0132\025.littlehorse.ExitNode" + - "H\000\022%\n\004task\030\007 \001(\0132\025.littlehorse.TaskNodeH" + - "\000\0228\n\016external_event\030\010 \001(\0132\036.littlehorse." + - "ExternalEventNodeH\000\0224\n\014start_thread\030\t \001(" + - "\0132\034.littlehorse.StartThreadNodeH\000\022;\n\020wai" + - "t_for_threads\030\n \001(\0132\037.littlehorse.WaitFo" + - "rThreadsNodeH\000\022#\n\003nop\030\013 \001(\0132\024.littlehors" + - "e.NopNodeH\000\022\'\n\005sleep\030\014 \001(\0132\026.littlehorse" + - ".SleepNodeH\000\022.\n\tuser_task\030\r \001(\0132\031.little" + - "horse.UserTaskNodeH\000\022G\n\026start_multiple_t" + - "hreads\030\017 \001(\0132%.littlehorse.StartMultiple" + - "ThreadsNodeH\000\0222\n\013throw_event\030\020 \001(\0132\033.lit" + - "tlehorse.ThrowEventNodeH\000B\006\n\004node\"y\n\016Thr" + - "owEventNode\0225\n\014event_def_id\030\001 \001(\0132\037.litt" + - "lehorse.WorkflowEventDefId\0220\n\007content\030\002 " + - "\001(\0132\037.littlehorse.VariableAssignment\"\323\003\n" + - "\014UserTaskNode\022\032\n\022user_task_def_name\030\001 \001(" + - "\t\0228\n\nuser_group\030\002 \001(\0132\037.littlehorse.Vari" + - "ableAssignmentH\000\210\001\001\0225\n\007user_id\030\003 \001(\0132\037.l" + - "ittlehorse.VariableAssignmentH\001\210\001\001\022-\n\007ac" + - "tions\030\004 \003(\0132\034.littlehorse.UTActionTrigge" + - "r\022\"\n\025user_task_def_version\030\005 \001(\005H\002\210\001\001\0223\n" + - "\005notes\030\006 \001(\0132\037.littlehorse.VariableAssig" + - "nmentH\003\210\001\001\022L\n\036on_cancellation_exception_" + - "name\030\007 \001(\0132\037.littlehorse.VariableAssignm" + - "entH\004\210\001\001B\r\n\013_user_groupB\n\n\010_user_idB\030\n\026_" + - "user_task_def_versionB\010\n\006_notesB!\n\037_on_c" + - "ancellation_exception_name\"\233\001\n\rEdgeCondi" + - "tion\022+\n\ncomparator\030\001 \001(\0162\027.littlehorse.C" + - "omparator\022-\n\004left\030\002 \001(\0132\037.littlehorse.Va" + - "riableAssignment\022.\n\005right\030\003 \001(\0132\037.little" + - "horse.VariableAssignment\"\233\001\n\004Edge\022\026\n\016sin" + - "k_node_name\030\001 \001(\t\0222\n\tcondition\030\002 \001(\0132\032.l" + - "ittlehorse.EdgeConditionH\000\210\001\001\0229\n\022variabl" + - "e_mutations\030\003 \003(\0132\035.littlehorse.Variable" + - "MutationB\014\n\n_condition\"\t\n\007NopNode\"\276\001\n\tSl" + - "eepNode\0226\n\013raw_seconds\030\001 \001(\0132\037.littlehor" + - "se.VariableAssignmentH\000\0224\n\ttimestamp\030\002 \001" + - "(\0132\037.littlehorse.VariableAssignmentH\000\0223\n" + - "\010iso_date\030\003 \001(\0132\037.littlehorse.VariableAs" + - "signmentH\000B\016\n\014sleep_length\"\207\002\n\026WfSpecVer" + - "sionMigration\022\031\n\021new_major_version\030\001 \001(\005" + - "\022\024\n\014new_revision\030\002 \001(\005\022]\n\026thread_spec_mi" + - "grations\030\003 \003(\0132=.littlehorse.WfSpecVersi" + - "onMigration.ThreadSpecMigrationsEntry\032]\n" + - "\031ThreadSpecMigrationsEntry\022\013\n\003key\030\001 \001(\t\022" + - "/\n\005value\030\002 \001(\0132 .littlehorse.ThreadSpecM" + - "igration:\0028\001\"\325\001\n\023ThreadSpecMigration\022\034\n\024" + - "new_thread_spec_name\030\001 \001(\t\022M\n\017node_migra" + - "tions\030\002 \003(\01324.littlehorse.ThreadSpecMigr" + - "ation.NodeMigrationsEntry\032Q\n\023NodeMigrati" + - "onsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.l" + - "ittlehorse.NodeMigration:\0028\001\"&\n\rNodeMigr" + - "ation\022\025\n\rnew_node_name\030\001 \001(\t*N\n\030WfRunVar" + - "iableAccessLevel\022\016\n\nPUBLIC_VAR\020\000\022\017\n\013PRIV" + - "ATE_VAR\020\001\022\021\n\rINHERITED_VAR\020\002BI\n\037io.littl" + - "ehorse.sdk.common.protoP\001Z\t.;lhproto\252\002\030L" + - "ittleHorse.Common.Protob\006proto3" + "\000B\016\n\014wf_gc_policy\"O\n\tJsonIndex\022\022\n\nfield_" + + "path\030\001 \001(\t\022.\n\nfield_type\030\002 \001(\0162\032.littleh" + + "orse.PrimitiveType\"\312\001\n\014ThreadVarDef\022)\n\007v" + + "ar_def\030\001 \001(\0132\030.littlehorse.VariableDef\022\020" + + "\n\010required\030\002 \001(\010\022\022\n\nsearchable\030\003 \001(\010\022,\n\014" + + "json_indexes\030\004 \003(\0132\026.littlehorse.JsonInd" + + "ex\022;\n\014access_level\030\005 \001(\0162%.littlehorse.W" + + "fRunVariableAccessLevel\"\275\002\n\nThreadSpec\0221" + + "\n\005nodes\030\001 \003(\0132\".littlehorse.ThreadSpec.N" + + "odesEntry\0220\n\rvariable_defs\030\002 \003(\0132\031.littl" + + "ehorse.ThreadVarDef\0221\n\016interrupt_defs\030\003 " + + "\003(\0132\031.littlehorse.InterruptDef\022A\n\020retent" + + "ion_policy\030\004 \001(\0132\".littlehorse.ThreadRet" + + "entionPolicyH\000\210\001\001\032?\n\nNodesEntry\022\013\n\003key\030\001" + + " \001(\t\022 \n\005value\030\002 \001(\0132\021.littlehorse.Node:\002" + + "8\001B\023\n\021_retention_policy\"W\n\025ThreadRetenti" + + "onPolicy\022*\n seconds_after_thread_termina" + + "tion\030\001 \001(\003H\000B\022\n\020thread_gc_policy\"i\n\014Inte" + + "rruptDef\022>\n\025external_event_def_id\030\001 \001(\0132" + + "\037.littlehorse.ExternalEventDefId\022\031\n\021hand" + + "ler_spec_name\030\002 \001(\t\"\276\001\n\017StartThreadNode\022" + + "\030\n\020thread_spec_name\030\001 \001(\t\022>\n\tvariables\030\002" + + " \003(\0132+.littlehorse.StartThreadNode.Varia" + + "blesEntry\032Q\n\016VariablesEntry\022\013\n\003key\030\001 \001(\t" + + "\022.\n\005value\030\002 \001(\0132\037.littlehorse.VariableAs" + + "signment:\0028\001\"\203\002\n\030StartMultipleThreadsNod" + + "e\022\030\n\020thread_spec_name\030\001 \001(\t\022G\n\tvariables" + + "\030\002 \003(\01324.littlehorse.StartMultipleThread" + + "sNode.VariablesEntry\0221\n\010iterable\030\003 \001(\0132\037" + + ".littlehorse.VariableAssignment\032Q\n\016Varia" + + "blesEntry\022\013\n\003key\030\001 \001(\t\022.\n\005value\030\002 \001(\0132\037." + + "littlehorse.VariableAssignment:\0028\001\"\360\001\n\021F" + + "ailureHandlerDef\022\031\n\021handler_spec_name\030\002 " + + "\001(\t\022\032\n\020specific_failure\030\001 \001(\tH\000\022K\n\023any_f" + + "ailure_of_type\030\003 \001(\0162,.littlehorse.Failu" + + "reHandlerDef.LHFailureTypeH\000\"C\n\rLHFailur" + + "eType\022\026\n\022FAILURE_TYPE_ERROR\020\000\022\032\n\026FAILURE" + + "_TYPE_EXCEPTION\020\001B\022\n\020failure_to_catch\"\222\003" + + "\n\022WaitForThreadsNode\022C\n\007threads\030\001 \001(\01320." + + "littlehorse.WaitForThreadsNode.ThreadsTo" + + "WaitForH\000\0226\n\013thread_list\030\002 \001(\0132\037.littleh" + + "orse.VariableAssignmentH\000\022C\n\033per_thread_" + + "failure_handlers\030\003 \003(\0132\036.littlehorse.Fai" + + "lureHandlerDef\032M\n\017ThreadToWaitFor\022:\n\021thr" + + "ead_run_number\030\001 \001(\0132\037.littlehorse.Varia" + + "bleAssignment\032T\n\020ThreadsToWaitFor\022@\n\007thr" + + "eads\030\001 \003(\0132/.littlehorse.WaitForThreadsN" + + "ode.ThreadToWaitForB\025\n\023threads_to_wait_f" + + "or\"\215\001\n\021ExternalEventNode\022>\n\025external_eve" + + "nt_def_id\030\001 \001(\0132\037.littlehorse.ExternalEv" + + "entDefId\0228\n\017timeout_seconds\030\002 \001(\0132\037.litt" + + "lehorse.VariableAssignment\"\020\n\016Entrypoint" + + "Node\"M\n\010ExitNode\0221\n\013failure_def\030\001 \001(\0132\027." + + "littlehorse.FailureDefH\000\210\001\001B\016\n\014_failure_" + + "def\"v\n\nFailureDef\022\024\n\014failure_name\030\001 \001(\t\022" + + "\017\n\007message\030\002 \001(\t\0225\n\007content\030\003 \001(\0132\037.litt" + + "lehorse.VariableAssignmentH\000\210\001\001B\n\n\010_cont" + + "ent\"\234\005\n\004Node\022)\n\016outgoing_edges\030\001 \003(\0132\021.l" + + "ittlehorse.Edge\0228\n\020failure_handlers\030\004 \003(" + + "\0132\036.littlehorse.FailureHandlerDef\0221\n\nent" + + "rypoint\030\005 \001(\0132\033.littlehorse.EntrypointNo" + + "deH\000\022%\n\004exit\030\006 \001(\0132\025.littlehorse.ExitNod" + + "eH\000\022%\n\004task\030\007 \001(\0132\025.littlehorse.TaskNode" + + "H\000\0228\n\016external_event\030\010 \001(\0132\036.littlehorse" + + ".ExternalEventNodeH\000\0224\n\014start_thread\030\t \001" + + "(\0132\034.littlehorse.StartThreadNodeH\000\022;\n\020wa" + + "it_for_threads\030\n \001(\0132\037.littlehorse.WaitF" + + "orThreadsNodeH\000\022#\n\003nop\030\013 \001(\0132\024.littlehor" + + "se.NopNodeH\000\022\'\n\005sleep\030\014 \001(\0132\026.littlehors" + + "e.SleepNodeH\000\022.\n\tuser_task\030\r \001(\0132\031.littl" + + "ehorse.UserTaskNodeH\000\022G\n\026start_multiple_" + + "threads\030\017 \001(\0132%.littlehorse.StartMultipl" + + "eThreadsNodeH\000\0222\n\013throw_event\030\020 \001(\0132\033.li" + + "ttlehorse.ThrowEventNodeH\000B\006\n\004node\"y\n\016Th" + + "rowEventNode\0225\n\014event_def_id\030\001 \001(\0132\037.lit" + + "tlehorse.WorkflowEventDefId\0220\n\007content\030\002" + + " \001(\0132\037.littlehorse.VariableAssignment\"\323\003" + + "\n\014UserTaskNode\022\032\n\022user_task_def_name\030\001 \001" + + "(\t\0228\n\nuser_group\030\002 \001(\0132\037.littlehorse.Var" + + "iableAssignmentH\000\210\001\001\0225\n\007user_id\030\003 \001(\0132\037." + + "littlehorse.VariableAssignmentH\001\210\001\001\022-\n\007a" + + "ctions\030\004 \003(\0132\034.littlehorse.UTActionTrigg" + + "er\022\"\n\025user_task_def_version\030\005 \001(\005H\002\210\001\001\0223" + + "\n\005notes\030\006 \001(\0132\037.littlehorse.VariableAssi" + + "gnmentH\003\210\001\001\022L\n\036on_cancellation_exception" + + "_name\030\007 \001(\0132\037.littlehorse.VariableAssign" + + "mentH\004\210\001\001B\r\n\013_user_groupB\n\n\010_user_idB\030\n\026" + + "_user_task_def_versionB\010\n\006_notesB!\n\037_on_" + + "cancellation_exception_name\"\233\001\n\rEdgeCond" + + "ition\022+\n\ncomparator\030\001 \001(\0162\027.littlehorse." + + "Comparator\022-\n\004left\030\002 \001(\0132\037.littlehorse.V" + + "ariableAssignment\022.\n\005right\030\003 \001(\0132\037.littl" + + "ehorse.VariableAssignment\"\233\001\n\004Edge\022\026\n\016si" + + "nk_node_name\030\001 \001(\t\0222\n\tcondition\030\002 \001(\0132\032." + + "littlehorse.EdgeConditionH\000\210\001\001\0229\n\022variab" + + "le_mutations\030\003 \003(\0132\035.littlehorse.Variabl" + + "eMutationB\014\n\n_condition\"\t\n\007NopNode\"\276\001\n\tS" + + "leepNode\0226\n\013raw_seconds\030\001 \001(\0132\037.littleho" + + "rse.VariableAssignmentH\000\0224\n\ttimestamp\030\002 " + + "\001(\0132\037.littlehorse.VariableAssignmentH\000\0223" + + "\n\010iso_date\030\003 \001(\0132\037.littlehorse.VariableA" + + "ssignmentH\000B\016\n\014sleep_length\"\207\002\n\026WfSpecVe" + + "rsionMigration\022\031\n\021new_major_version\030\001 \001(" + + "\005\022\024\n\014new_revision\030\002 \001(\005\022]\n\026thread_spec_m" + + "igrations\030\003 \003(\0132=.littlehorse.WfSpecVers" + + "ionMigration.ThreadSpecMigrationsEntry\032]" + + "\n\031ThreadSpecMigrationsEntry\022\013\n\003key\030\001 \001(\t" + + "\022/\n\005value\030\002 \001(\0132 .littlehorse.ThreadSpec" + + "Migration:\0028\001\"\325\001\n\023ThreadSpecMigration\022\034\n" + + "\024new_thread_spec_name\030\001 \001(\t\022M\n\017node_migr" + + "ations\030\002 \003(\01324.littlehorse.ThreadSpecMig" + + "ration.NodeMigrationsEntry\032Q\n\023NodeMigrat" + + "ionsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032." + + "littlehorse.NodeMigration:\0028\001\"&\n\rNodeMig" + + "ration\022\025\n\rnew_node_name\030\001 \001(\t*N\n\030WfRunVa" + + "riableAccessLevel\022\016\n\nPUBLIC_VAR\020\000\022\017\n\013PRI" + + "VATE_VAR\020\001\022\021\n\rINHERITED_VAR\020\002BI\n\037io.litt" + + "lehorse.sdk.common.protoP\001Z\t.;lhproto\252\002\030" + + "LittleHorse.Common.Protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/WorkflowEventDef.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/WorkflowEventDef.java index bbaea6d0c..7d886e052 100644 --- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/WorkflowEventDef.java +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/WorkflowEventDef.java @@ -4,6 +4,10 @@ package io.littlehorse.sdk.common.proto; /** + *
+ * A `WorkflowEventDef` defines the blueprint for a `WorkflowEvent`.
+ * 
+ * * Protobuf type {@code littlehorse.WorkflowEventDef} */ public final class WorkflowEventDef extends @@ -42,6 +46,10 @@ protected java.lang.Object newInstance( public static final int ID_FIELD_NUMBER = 1; private io.littlehorse.sdk.common.proto.WorkflowEventDefId id_; /** + *
+   * The `id` of the `WorkflowEventDef`.
+   * 
+ * * .littlehorse.WorkflowEventDefId id = 1; * @return Whether the id field is set. */ @@ -50,6 +58,10 @@ public boolean hasId() { return id_ != null; } /** + *
+   * The `id` of the `WorkflowEventDef`.
+   * 
+ * * .littlehorse.WorkflowEventDefId id = 1; * @return The id. */ @@ -58,6 +70,10 @@ public io.littlehorse.sdk.common.proto.WorkflowEventDefId getId() { return id_ == null ? io.littlehorse.sdk.common.proto.WorkflowEventDefId.getDefaultInstance() : id_; } /** + *
+   * The `id` of the `WorkflowEventDef`.
+   * 
+ * * .littlehorse.WorkflowEventDefId id = 1; */ @java.lang.Override @@ -68,6 +84,10 @@ public io.littlehorse.sdk.common.proto.WorkflowEventDefIdOrBuilder getIdOrBuilde public static final int CREATED_AT_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createdAt_; /** + *
+   * The timestamp at which the `WorkflowEventDef` was created.
+   * 
+ * * .google.protobuf.Timestamp created_at = 2; * @return Whether the createdAt field is set. */ @@ -76,6 +96,10 @@ public boolean hasCreatedAt() { return createdAt_ != null; } /** + *
+   * The timestamp at which the `WorkflowEventDef` was created.
+   * 
+ * * .google.protobuf.Timestamp created_at = 2; * @return The createdAt. */ @@ -84,6 +108,10 @@ public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** + *
+   * The timestamp at which the `WorkflowEventDef` was created.
+   * 
+ * * .google.protobuf.Timestamp created_at = 2; */ @java.lang.Override @@ -94,19 +122,31 @@ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { public static final int TYPE_FIELD_NUMBER = 3; private int type_ = 0; /** - * .littlehorse.VariableType type = 3; + *
+   * The type of the content of the `WorkflowEvent`.
+   *
+   * TODO: Support schemas
+   * 
+ * + * .littlehorse.PrimitiveType type = 3; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** - * .littlehorse.VariableType type = 3; + *
+   * The type of the content of the `WorkflowEvent`.
+   *
+   * TODO: Support schemas
+   * 
+ * + * .littlehorse.PrimitiveType type = 3; * @return The type. */ - @java.lang.Override public io.littlehorse.sdk.common.proto.VariableType getType() { - io.littlehorse.sdk.common.proto.VariableType result = io.littlehorse.sdk.common.proto.VariableType.forNumber(type_); - return result == null ? io.littlehorse.sdk.common.proto.VariableType.UNRECOGNIZED : result; + @java.lang.Override public io.littlehorse.sdk.common.proto.PrimitiveType getType() { + io.littlehorse.sdk.common.proto.PrimitiveType result = io.littlehorse.sdk.common.proto.PrimitiveType.forNumber(type_); + return result == null ? io.littlehorse.sdk.common.proto.PrimitiveType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -129,7 +169,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (createdAt_ != null) { output.writeMessage(2, getCreatedAt()); } - if (type_ != io.littlehorse.sdk.common.proto.VariableType.JSON_OBJ.getNumber()) { + if (type_ != io.littlehorse.sdk.common.proto.PrimitiveType.JSON_OBJ.getNumber()) { output.writeEnum(3, type_); } getUnknownFields().writeTo(output); @@ -149,7 +189,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCreatedAt()); } - if (type_ != io.littlehorse.sdk.common.proto.VariableType.JSON_OBJ.getNumber()) { + if (type_ != io.littlehorse.sdk.common.proto.PrimitiveType.JSON_OBJ.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_); } @@ -298,6 +338,10 @@ protected Builder newBuilderForType( return builder; } /** + *
+   * A `WorkflowEventDef` defines the blueprint for a `WorkflowEvent`.
+   * 
+ * * Protobuf type {@code littlehorse.WorkflowEventDef} */ public static final class Builder extends @@ -509,6 +553,10 @@ public Builder mergeFrom( private com.google.protobuf.SingleFieldBuilderV3< io.littlehorse.sdk.common.proto.WorkflowEventDefId, io.littlehorse.sdk.common.proto.WorkflowEventDefId.Builder, io.littlehorse.sdk.common.proto.WorkflowEventDefIdOrBuilder> idBuilder_; /** + *
+     * The `id` of the `WorkflowEventDef`.
+     * 
+ * * .littlehorse.WorkflowEventDefId id = 1; * @return Whether the id field is set. */ @@ -516,6 +564,10 @@ public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** + *
+     * The `id` of the `WorkflowEventDef`.
+     * 
+ * * .littlehorse.WorkflowEventDefId id = 1; * @return The id. */ @@ -527,6 +579,10 @@ public io.littlehorse.sdk.common.proto.WorkflowEventDefId getId() { } } /** + *
+     * The `id` of the `WorkflowEventDef`.
+     * 
+ * * .littlehorse.WorkflowEventDefId id = 1; */ public Builder setId(io.littlehorse.sdk.common.proto.WorkflowEventDefId value) { @@ -543,6 +599,10 @@ public Builder setId(io.littlehorse.sdk.common.proto.WorkflowEventDefId value) { return this; } /** + *
+     * The `id` of the `WorkflowEventDef`.
+     * 
+ * * .littlehorse.WorkflowEventDefId id = 1; */ public Builder setId( @@ -557,6 +617,10 @@ public Builder setId( return this; } /** + *
+     * The `id` of the `WorkflowEventDef`.
+     * 
+ * * .littlehorse.WorkflowEventDefId id = 1; */ public Builder mergeId(io.littlehorse.sdk.common.proto.WorkflowEventDefId value) { @@ -576,6 +640,10 @@ public Builder mergeId(io.littlehorse.sdk.common.proto.WorkflowEventDefId value) return this; } /** + *
+     * The `id` of the `WorkflowEventDef`.
+     * 
+ * * .littlehorse.WorkflowEventDefId id = 1; */ public Builder clearId() { @@ -589,6 +657,10 @@ public Builder clearId() { return this; } /** + *
+     * The `id` of the `WorkflowEventDef`.
+     * 
+ * * .littlehorse.WorkflowEventDefId id = 1; */ public io.littlehorse.sdk.common.proto.WorkflowEventDefId.Builder getIdBuilder() { @@ -597,6 +669,10 @@ public io.littlehorse.sdk.common.proto.WorkflowEventDefId.Builder getIdBuilder() return getIdFieldBuilder().getBuilder(); } /** + *
+     * The `id` of the `WorkflowEventDef`.
+     * 
+ * * .littlehorse.WorkflowEventDefId id = 1; */ public io.littlehorse.sdk.common.proto.WorkflowEventDefIdOrBuilder getIdOrBuilder() { @@ -608,6 +684,10 @@ public io.littlehorse.sdk.common.proto.WorkflowEventDefIdOrBuilder getIdOrBuilde } } /** + *
+     * The `id` of the `WorkflowEventDef`.
+     * 
+ * * .littlehorse.WorkflowEventDefId id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< @@ -628,6 +708,10 @@ public io.littlehorse.sdk.common.proto.WorkflowEventDefIdOrBuilder getIdOrBuilde private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** + *
+     * The timestamp at which the `WorkflowEventDef` was created.
+     * 
+ * * .google.protobuf.Timestamp created_at = 2; * @return Whether the createdAt field is set. */ @@ -635,6 +719,10 @@ public boolean hasCreatedAt() { return ((bitField0_ & 0x00000002) != 0); } /** + *
+     * The timestamp at which the `WorkflowEventDef` was created.
+     * 
+ * * .google.protobuf.Timestamp created_at = 2; * @return The createdAt. */ @@ -646,6 +734,10 @@ public com.google.protobuf.Timestamp getCreatedAt() { } } /** + *
+     * The timestamp at which the `WorkflowEventDef` was created.
+     * 
+ * * .google.protobuf.Timestamp created_at = 2; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { @@ -662,6 +754,10 @@ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { return this; } /** + *
+     * The timestamp at which the `WorkflowEventDef` was created.
+     * 
+ * * .google.protobuf.Timestamp created_at = 2; */ public Builder setCreatedAt( @@ -676,6 +772,10 @@ public Builder setCreatedAt( return this; } /** + *
+     * The timestamp at which the `WorkflowEventDef` was created.
+     * 
+ * * .google.protobuf.Timestamp created_at = 2; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { @@ -695,6 +795,10 @@ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { return this; } /** + *
+     * The timestamp at which the `WorkflowEventDef` was created.
+     * 
+ * * .google.protobuf.Timestamp created_at = 2; */ public Builder clearCreatedAt() { @@ -708,6 +812,10 @@ public Builder clearCreatedAt() { return this; } /** + *
+     * The timestamp at which the `WorkflowEventDef` was created.
+     * 
+ * * .google.protobuf.Timestamp created_at = 2; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { @@ -716,6 +824,10 @@ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { return getCreatedAtFieldBuilder().getBuilder(); } /** + *
+     * The timestamp at which the `WorkflowEventDef` was created.
+     * 
+ * * .google.protobuf.Timestamp created_at = 2; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { @@ -727,6 +839,10 @@ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { } } /** + *
+     * The timestamp at which the `WorkflowEventDef` was created.
+     * 
+ * * .google.protobuf.Timestamp created_at = 2; */ private com.google.protobuf.SingleFieldBuilderV3< @@ -745,14 +861,26 @@ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { private int type_ = 0; /** - * .littlehorse.VariableType type = 3; + *
+     * The type of the content of the `WorkflowEvent`.
+     *
+     * TODO: Support schemas
+     * 
+ * + * .littlehorse.PrimitiveType type = 3; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** - * .littlehorse.VariableType type = 3; + *
+     * The type of the content of the `WorkflowEvent`.
+     *
+     * TODO: Support schemas
+     * 
+ * + * .littlehorse.PrimitiveType type = 3; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -763,20 +891,32 @@ public Builder setTypeValue(int value) { return this; } /** - * .littlehorse.VariableType type = 3; + *
+     * The type of the content of the `WorkflowEvent`.
+     *
+     * TODO: Support schemas
+     * 
+ * + * .littlehorse.PrimitiveType type = 3; * @return The type. */ @java.lang.Override - public io.littlehorse.sdk.common.proto.VariableType getType() { - io.littlehorse.sdk.common.proto.VariableType result = io.littlehorse.sdk.common.proto.VariableType.forNumber(type_); - return result == null ? io.littlehorse.sdk.common.proto.VariableType.UNRECOGNIZED : result; + public io.littlehorse.sdk.common.proto.PrimitiveType getType() { + io.littlehorse.sdk.common.proto.PrimitiveType result = io.littlehorse.sdk.common.proto.PrimitiveType.forNumber(type_); + return result == null ? io.littlehorse.sdk.common.proto.PrimitiveType.UNRECOGNIZED : result; } /** - * .littlehorse.VariableType type = 3; + *
+     * The type of the content of the `WorkflowEvent`.
+     *
+     * TODO: Support schemas
+     * 
+ * + * .littlehorse.PrimitiveType type = 3; * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(io.littlehorse.sdk.common.proto.VariableType value) { + public Builder setType(io.littlehorse.sdk.common.proto.PrimitiveType value) { if (value == null) { throw new NullPointerException(); } @@ -786,7 +926,13 @@ public Builder setType(io.littlehorse.sdk.common.proto.VariableType value) { return this; } /** - * .littlehorse.VariableType type = 3; + *
+     * The type of the content of the `WorkflowEvent`.
+     *
+     * TODO: Support schemas
+     * 
+ * + * .littlehorse.PrimitiveType type = 3; * @return This builder for chaining. */ public Builder clearType() { diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/WorkflowEventDefOrBuilder.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/WorkflowEventDefOrBuilder.java index da3b10e4e..a250f5e2d 100644 --- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/WorkflowEventDefOrBuilder.java +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/WorkflowEventDefOrBuilder.java @@ -8,43 +8,79 @@ public interface WorkflowEventDefOrBuilder extends com.google.protobuf.MessageOrBuilder { /** + *
+   * The `id` of the `WorkflowEventDef`.
+   * 
+ * * .littlehorse.WorkflowEventDefId id = 1; * @return Whether the id field is set. */ boolean hasId(); /** + *
+   * The `id` of the `WorkflowEventDef`.
+   * 
+ * * .littlehorse.WorkflowEventDefId id = 1; * @return The id. */ io.littlehorse.sdk.common.proto.WorkflowEventDefId getId(); /** + *
+   * The `id` of the `WorkflowEventDef`.
+   * 
+ * * .littlehorse.WorkflowEventDefId id = 1; */ io.littlehorse.sdk.common.proto.WorkflowEventDefIdOrBuilder getIdOrBuilder(); /** + *
+   * The timestamp at which the `WorkflowEventDef` was created.
+   * 
+ * * .google.protobuf.Timestamp created_at = 2; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** + *
+   * The timestamp at which the `WorkflowEventDef` was created.
+   * 
+ * * .google.protobuf.Timestamp created_at = 2; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** + *
+   * The timestamp at which the `WorkflowEventDef` was created.
+   * 
+ * * .google.protobuf.Timestamp created_at = 2; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** - * .littlehorse.VariableType type = 3; + *
+   * The type of the content of the `WorkflowEvent`.
+   *
+   * TODO: Support schemas
+   * 
+ * + * .littlehorse.PrimitiveType type = 3; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * .littlehorse.VariableType type = 3; + *
+   * The type of the content of the `WorkflowEvent`.
+   *
+   * TODO: Support schemas
+   * 
+ * + * .littlehorse.PrimitiveType type = 3; * @return The type. */ - io.littlehorse.sdk.common.proto.VariableType getType(); + io.littlehorse.sdk.common.proto.PrimitiveType getType(); } diff --git a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/WorkflowEventOuterClass.java b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/WorkflowEventOuterClass.java index 57534f0ad..5f498a586 100644 --- a/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/WorkflowEventOuterClass.java +++ b/sdk-java/src/main/java/io/littlehorse/sdk/common/proto/WorkflowEventOuterClass.java @@ -39,13 +39,13 @@ public static void registerAllExtensions( "o\"\226\001\n\rWorkflowEvent\022(\n\002id\030\001 \001(\0132\034.little" + "horse.WorkflowEventId\022+\n\007content\030\002 \001(\0132\032" + ".littlehorse.VariableValue\022.\n\ncreated_at" + - "\030\003 \001(\0132\032.google.protobuf.Timestamp\"\230\001\n\020W" + + "\030\003 \001(\0132\032.google.protobuf.Timestamp\"\231\001\n\020W" + "orkflowEventDef\022+\n\002id\030\001 \001(\0132\037.littlehors" + "e.WorkflowEventDefId\022.\n\ncreated_at\030\002 \001(\013" + - "2\032.google.protobuf.Timestamp\022\'\n\004type\030\003 \001" + - "(\0162\031.littlehorse.VariableTypeBI\n\037io.litt" + - "lehorse.sdk.common.protoP\001Z\t.;lhproto\252\002\030" + - "LittleHorse.Common.Protob\006proto3" + "2\032.google.protobuf.Timestamp\022(\n\004type\030\003 \001" + + "(\0162\032.littlehorse.PrimitiveTypeBI\n\037io.lit" + + "tlehorse.sdk.common.protoP\001Z\t.;lhproto\252\002" + + "\030LittleHorse.Common.Protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/sdk-js/src/proto/common_enums.ts b/sdk-js/src/proto/common_enums.ts index 9f1b14755..ea1e1afbc 100644 --- a/sdk-js/src/proto/common_enums.ts +++ b/sdk-js/src/proto/common_enums.ts @@ -268,7 +268,7 @@ export function metricsWindowLengthToNumber(object: MetricsWindowLength): number * Type of a Varaible in LittleHorse. Corresponds to the possible value type's of a * VariableValue. */ -export enum VariableType { +export enum PrimitiveType { /** * JSON_OBJ - An object represented as a json string.
* @@ -306,53 +306,53 @@ export enum VariableType { UNRECOGNIZED = "UNRECOGNIZED", } -export function variableTypeFromJSON(object: any): VariableType { +export function primitiveTypeFromJSON(object: any): PrimitiveType { switch (object) { case 0: case "JSON_OBJ": - return VariableType.JSON_OBJ; + return PrimitiveType.JSON_OBJ; case 1: case "JSON_ARR": - return VariableType.JSON_ARR; + return PrimitiveType.JSON_ARR; case 2: case "DOUBLE": - return VariableType.DOUBLE; + return PrimitiveType.DOUBLE; case 3: case "BOOL": - return VariableType.BOOL; + return PrimitiveType.BOOL; case 4: case "STR": - return VariableType.STR; + return PrimitiveType.STR; case 5: case "INT": - return VariableType.INT; + return PrimitiveType.INT; case 6: case "BYTES": - return VariableType.BYTES; + return PrimitiveType.BYTES; case -1: case "UNRECOGNIZED": default: - return VariableType.UNRECOGNIZED; + return PrimitiveType.UNRECOGNIZED; } } -export function variableTypeToNumber(object: VariableType): number { +export function primitiveTypeToNumber(object: PrimitiveType): number { switch (object) { - case VariableType.JSON_OBJ: + case PrimitiveType.JSON_OBJ: return 0; - case VariableType.JSON_ARR: + case PrimitiveType.JSON_ARR: return 1; - case VariableType.DOUBLE: + case PrimitiveType.DOUBLE: return 2; - case VariableType.BOOL: + case PrimitiveType.BOOL: return 3; - case VariableType.STR: + case PrimitiveType.STR: return 4; - case VariableType.INT: + case PrimitiveType.INT: return 5; - case VariableType.BYTES: + case PrimitiveType.BYTES: return 6; - case VariableType.UNRECOGNIZED: + case PrimitiveType.UNRECOGNIZED: default: return -1; } diff --git a/sdk-js/src/proto/common_wfspec.ts b/sdk-js/src/proto/common_wfspec.ts index fdd6016ad..0b66d1bc0 100644 --- a/sdk-js/src/proto/common_wfspec.ts +++ b/sdk-js/src/proto/common_wfspec.ts @@ -7,8 +7,8 @@ /* eslint-disable */ import Long from "long"; import _m0 from "protobufjs/minimal"; -import { VariableType, variableTypeFromJSON, variableTypeToNumber } from "./common_enums"; -import { TaskDefId } from "./object_id"; +import { PrimitiveType, primitiveTypeFromJSON, primitiveTypeToNumber } from "./common_enums"; +import { SchemaId, TaskDefId } from "./object_id"; import { VariableValue } from "./variable"; /** Enumerates the available operations to mutate a variable in a WfRun. */ @@ -272,8 +272,14 @@ export interface VariableMutation_NodeOutputSource { /** Declares a Variable. */ export interface VariableDef { - /** The Type of the variable. */ - type: VariableType; + /** The primitive type of the variable. */ + primitive?: + | PrimitiveType + | undefined; + /** The ID of the schema that the variable belongs to. */ + schema?: + | SchemaId + | undefined; /** The name of the variable. */ name: string; /** @@ -285,7 +291,7 @@ export interface VariableDef { | VariableValue | undefined; /** If true, the variable value will show as a masked string. */ - maskedValue: boolean; + isMasked: boolean; } /** @@ -750,13 +756,16 @@ export const VariableMutation_NodeOutputSource = { }; function createBaseVariableDef(): VariableDef { - return { type: VariableType.JSON_OBJ, name: "", defaultValue: undefined, maskedValue: false }; + return { primitive: undefined, schema: undefined, name: "", defaultValue: undefined, isMasked: false }; } export const VariableDef = { encode(message: VariableDef, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.type !== VariableType.JSON_OBJ) { - writer.uint32(8).int32(variableTypeToNumber(message.type)); + if (message.primitive !== undefined) { + writer.uint32(8).int32(primitiveTypeToNumber(message.primitive)); + } + if (message.schema !== undefined) { + SchemaId.encode(message.schema, writer.uint32(42).fork()).ldelim(); } if (message.name !== "") { writer.uint32(18).string(message.name); @@ -764,8 +773,8 @@ export const VariableDef = { if (message.defaultValue !== undefined) { VariableValue.encode(message.defaultValue, writer.uint32(26).fork()).ldelim(); } - if (message.maskedValue !== false) { - writer.uint32(32).bool(message.maskedValue); + if (message.isMasked !== false) { + writer.uint32(32).bool(message.isMasked); } return writer; }, @@ -782,7 +791,14 @@ export const VariableDef = { break; } - message.type = variableTypeFromJSON(reader.int32()); + message.primitive = primitiveTypeFromJSON(reader.int32()); + continue; + case 5: + if (tag !== 42) { + break; + } + + message.schema = SchemaId.decode(reader, reader.uint32()); continue; case 2: if (tag !== 18) { @@ -803,7 +819,7 @@ export const VariableDef = { break; } - message.maskedValue = reader.bool(); + message.isMasked = reader.bool(); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -819,12 +835,15 @@ export const VariableDef = { }, fromPartial(object: DeepPartial): VariableDef { const message = createBaseVariableDef(); - message.type = object.type ?? VariableType.JSON_OBJ; + message.primitive = object.primitive ?? undefined; + message.schema = (object.schema !== undefined && object.schema !== null) + ? SchemaId.fromPartial(object.schema) + : undefined; message.name = object.name ?? ""; message.defaultValue = (object.defaultValue !== undefined && object.defaultValue !== null) ? VariableValue.fromPartial(object.defaultValue) : undefined; - message.maskedValue = object.maskedValue ?? false; + message.isMasked = object.isMasked ?? false; return message; }, }; diff --git a/sdk-js/src/proto/object_id.ts b/sdk-js/src/proto/object_id.ts index 8bab8fed4..be9c59678 100644 --- a/sdk-js/src/proto/object_id.ts +++ b/sdk-js/src/proto/object_id.ts @@ -63,6 +63,14 @@ export interface WorkflowEventDefId { name: string; } +/** ID for a Schema */ +export interface SchemaId { + /** The name of the `Schema`. */ + name: string; + /** The version of the `Schema`. */ + version: number; +} + /** ID for a TaskWorkerGroup. */ export interface TaskWorkerGroupId { /** TaskWorkerGroups are uniquely identified by their TaskDefId. */ @@ -476,6 +484,62 @@ export const WorkflowEventDefId = { }, }; +function createBaseSchemaId(): SchemaId { + return { name: "", version: 0 }; +} + +export const SchemaId = { + encode(message: SchemaId, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.version !== 0) { + writer.uint32(16).int32(message.version); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): SchemaId { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSchemaId(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.name = reader.string(); + continue; + case 2: + if (tag !== 16) { + break; + } + + message.version = reader.int32(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + create(base?: DeepPartial): SchemaId { + return SchemaId.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): SchemaId { + const message = createBaseSchemaId(); + message.name = object.name ?? ""; + message.version = object.version ?? 0; + return message; + }, +}; + function createBaseTaskWorkerGroupId(): TaskWorkerGroupId { return { taskDefId: undefined }; } diff --git a/sdk-js/src/proto/service.ts b/sdk-js/src/proto/service.ts index b01eb6be3..06c974150 100644 --- a/sdk-js/src/proto/service.ts +++ b/sdk-js/src/proto/service.ts @@ -16,12 +16,12 @@ import { MetricsWindowLength, metricsWindowLengthFromJSON, metricsWindowLengthToNumber, + PrimitiveType, + primitiveTypeFromJSON, + primitiveTypeToNumber, TaskStatus, taskStatusFromJSON, taskStatusToNumber, - VariableType, - variableTypeFromJSON, - variableTypeToNumber, } from "./common_enums"; import { VariableDef } from "./common_wfspec"; import { ExternalEvent, ExternalEventDef, ExternalEventRetentionPolicy } from "./external_event"; @@ -34,6 +34,7 @@ import { NodeRunId, PrincipalId, ScheduledWfRunId, + SchemaId, TaskDefId, TaskRunId, TaskWorkerGroupId, @@ -184,7 +185,8 @@ export interface PutTaskDefRequest { /** EXPERIMENTAL: Creates a WorkflowEventDef */ export interface PutWorkflowEventDefRequest { name: string; - type: VariableType; + primitiveType?: PrimitiveType | undefined; + schema?: SchemaId | undefined; } /** Creates a UserTaskDef. */ @@ -1730,7 +1732,7 @@ export const PutTaskDefRequest = { }; function createBasePutWorkflowEventDefRequest(): PutWorkflowEventDefRequest { - return { name: "", type: VariableType.JSON_OBJ }; + return { name: "", primitiveType: undefined, schema: undefined }; } export const PutWorkflowEventDefRequest = { @@ -1738,8 +1740,11 @@ export const PutWorkflowEventDefRequest = { if (message.name !== "") { writer.uint32(10).string(message.name); } - if (message.type !== VariableType.JSON_OBJ) { - writer.uint32(16).int32(variableTypeToNumber(message.type)); + if (message.primitiveType !== undefined) { + writer.uint32(16).int32(primitiveTypeToNumber(message.primitiveType)); + } + if (message.schema !== undefined) { + SchemaId.encode(message.schema, writer.uint32(26).fork()).ldelim(); } return writer; }, @@ -1763,7 +1768,14 @@ export const PutWorkflowEventDefRequest = { break; } - message.type = variableTypeFromJSON(reader.int32()); + message.primitiveType = primitiveTypeFromJSON(reader.int32()); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.schema = SchemaId.decode(reader, reader.uint32()); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -1780,7 +1792,10 @@ export const PutWorkflowEventDefRequest = { fromPartial(object: DeepPartial): PutWorkflowEventDefRequest { const message = createBasePutWorkflowEventDefRequest(); message.name = object.name ?? ""; - message.type = object.type ?? VariableType.JSON_OBJ; + message.primitiveType = object.primitiveType ?? undefined; + message.schema = (object.schema !== undefined && object.schema !== null) + ? SchemaId.fromPartial(object.schema) + : undefined; return message; }, }; diff --git a/sdk-js/src/proto/user_tasks.ts b/sdk-js/src/proto/user_tasks.ts index 74dc7bd9a..dd77768c2 100644 --- a/sdk-js/src/proto/user_tasks.ts +++ b/sdk-js/src/proto/user_tasks.ts @@ -6,7 +6,7 @@ /* eslint-disable */ import _m0 from "protobufjs/minimal"; -import { VariableType, variableTypeFromJSON, variableTypeToNumber } from "./common_enums"; +import { PrimitiveType, primitiveTypeFromJSON, primitiveTypeToNumber } from "./common_enums"; import { Timestamp } from "./google/protobuf/timestamp"; import { NodeRunId, TaskRunId, UserTaskDefId, UserTaskRunId } from "./object_id"; import { VariableValue } from "./variable"; @@ -93,7 +93,7 @@ export interface UserTaskField { */ name: string; /** The type of the output. Must be a primitive type (STR, BOOL, INT, DOUBLE). */ - type: VariableType; + type: PrimitiveType; /** * Optional description which can be displayed by the User Task UI application. * Does not affect WfRun execution. @@ -510,7 +510,7 @@ export const UserTaskDef = { }; function createBaseUserTaskField(): UserTaskField { - return { name: "", type: VariableType.JSON_OBJ, description: undefined, displayName: "", required: false }; + return { name: "", type: PrimitiveType.JSON_OBJ, description: undefined, displayName: "", required: false }; } export const UserTaskField = { @@ -518,8 +518,8 @@ export const UserTaskField = { if (message.name !== "") { writer.uint32(10).string(message.name); } - if (message.type !== VariableType.JSON_OBJ) { - writer.uint32(16).int32(variableTypeToNumber(message.type)); + if (message.type !== PrimitiveType.JSON_OBJ) { + writer.uint32(16).int32(primitiveTypeToNumber(message.type)); } if (message.description !== undefined) { writer.uint32(26).string(message.description); @@ -552,7 +552,7 @@ export const UserTaskField = { break; } - message.type = variableTypeFromJSON(reader.int32()); + message.type = primitiveTypeFromJSON(reader.int32()); continue; case 3: if (tag !== 26) { @@ -590,7 +590,7 @@ export const UserTaskField = { fromPartial(object: DeepPartial): UserTaskField { const message = createBaseUserTaskField(); message.name = object.name ?? ""; - message.type = object.type ?? VariableType.JSON_OBJ; + message.type = object.type ?? PrimitiveType.JSON_OBJ; message.description = object.description ?? undefined; message.displayName = object.displayName ?? ""; message.required = object.required ?? false; diff --git a/sdk-js/src/proto/variable.ts b/sdk-js/src/proto/variable.ts index cab041ab6..3ddb256f7 100644 --- a/sdk-js/src/proto/variable.ts +++ b/sdk-js/src/proto/variable.ts @@ -7,8 +7,9 @@ /* eslint-disable */ import Long from "long"; import _m0 from "protobufjs/minimal"; +import { PrimitiveType, primitiveTypeFromJSON, primitiveTypeToNumber } from "./common_enums"; import { Timestamp } from "./google/protobuf/timestamp"; -import { VariableId, WfSpecId } from "./object_id"; +import { SchemaId, VariableId, WfSpecId } from "./object_id"; /** * VariableValue is a structure containing a value in LittleHorse. It can be @@ -44,7 +45,11 @@ export interface VariableValue { | number | undefined; /** An arbitrary String of bytes. */ - bytes?: Buffer | undefined; + bytes?: + | Buffer + | undefined; + /** A strongly-typed struct */ + struct?: Struct | undefined; } /** A Variable is an instance of a variable assigned to a WfRun. */ @@ -72,6 +77,85 @@ export interface Variable { masked: boolean; } +/** + * A Struct is a strongly-typed structure containing fields. The Struct is defined + * according to the `Schema` object. + */ +export interface Struct { + /** The id of the schema. */ + schemaId: + | SchemaId + | undefined; + /** The content of the Struct */ + struct: InlineStruct | undefined; +} + +/** An `InlineStruct` is a pre-validated set of fields that are part of a `Struct`. */ +export interface InlineStruct { + /** The fields in the inline struct. */ + fields: StructField[]; +} + +/** A StructField represents the value for a single field in a struct. */ +export interface StructField { + /** The `value` of the field is an untyped primitive `VariableValue`. */ + primitive?: + | VariableValue + | undefined; + /** The `value` of the field is a complex `Struct`. */ + struct?: + | InlineStruct + | undefined; + /** The `value` of the field is a list of fields. */ + list?: StructField_FieldList | undefined; +} + +/** A FieldList is a sub-structure of a `Struct` */ +export interface StructField_FieldList { + fields: StructField[]; +} + +/** A `SchemaField` defines a field inside a `Schema`. */ +export interface SchemaField { + /** The name of the field. */ + name: string; + /** Whether the field is optional. */ + optional: boolean; + /** Specifies that the field is a primitive `VariableValue` of the specified type. */ + primitive?: + | PrimitiveType + | undefined; + /** Specifies that the field is of a specific `Schema`. */ + schemaId?: + | SchemaId + | undefined; + /** Specifies that field must be a `Struct` conforming to the accompanying schema. */ + inlineSchema?: InlineSchema | undefined; +} + +/** + * A `Schema` is a versioned metadata object (tenant-scoped) inside LittleHorse + * that defines the structure and content of a variable value. It allows strong typing. + */ +export interface Schema { + /** The id of the `Schema`. This includes the version. */ + id: + | SchemaId + | undefined; + /** Optionally description of the schema. */ + description?: + | string + | undefined; + /** The `InlineSchema` defines the actual structure of any `Struct` using this `Schema`. */ + schema: InlineSchema | undefined; +} + +/** An `InlineSchema` is the actual representation of the Schema. */ +export interface InlineSchema { + /** The fields in this schema. */ + fields: SchemaField[]; +} + function createBaseVariableValue(): VariableValue { return { jsonObj: undefined, @@ -81,6 +165,7 @@ function createBaseVariableValue(): VariableValue { str: undefined, int: undefined, bytes: undefined, + struct: undefined, }; } @@ -107,6 +192,9 @@ export const VariableValue = { if (message.bytes !== undefined) { writer.uint32(66).bytes(message.bytes); } + if (message.struct !== undefined) { + Struct.encode(message.struct, writer.uint32(74).fork()).ldelim(); + } return writer; }, @@ -166,6 +254,13 @@ export const VariableValue = { message.bytes = reader.bytes() as Buffer; continue; + case 9: + if (tag !== 74) { + break; + } + + message.struct = Struct.decode(reader, reader.uint32()); + continue; } if ((tag & 7) === 4 || tag === 0) { break; @@ -187,6 +282,9 @@ export const VariableValue = { message.str = object.str ?? undefined; message.int = object.int ?? undefined; message.bytes = object.bytes ?? undefined; + message.struct = (object.struct !== undefined && object.struct !== null) + ? Struct.fromPartial(object.struct) + : undefined; return message; }, }; @@ -284,6 +382,436 @@ export const Variable = { }, }; +function createBaseStruct(): Struct { + return { schemaId: undefined, struct: undefined }; +} + +export const Struct = { + encode(message: Struct, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.schemaId !== undefined) { + SchemaId.encode(message.schemaId, writer.uint32(10).fork()).ldelim(); + } + if (message.struct !== undefined) { + InlineStruct.encode(message.struct, writer.uint32(18).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): Struct { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseStruct(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.schemaId = SchemaId.decode(reader, reader.uint32()); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.struct = InlineStruct.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + create(base?: DeepPartial): Struct { + return Struct.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Struct { + const message = createBaseStruct(); + message.schemaId = (object.schemaId !== undefined && object.schemaId !== null) + ? SchemaId.fromPartial(object.schemaId) + : undefined; + message.struct = (object.struct !== undefined && object.struct !== null) + ? InlineStruct.fromPartial(object.struct) + : undefined; + return message; + }, +}; + +function createBaseInlineStruct(): InlineStruct { + return { fields: [] }; +} + +export const InlineStruct = { + encode(message: InlineStruct, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + for (const v of message.fields) { + StructField.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): InlineStruct { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInlineStruct(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.fields.push(StructField.decode(reader, reader.uint32())); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + create(base?: DeepPartial): InlineStruct { + return InlineStruct.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): InlineStruct { + const message = createBaseInlineStruct(); + message.fields = object.fields?.map((e) => StructField.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseStructField(): StructField { + return { primitive: undefined, struct: undefined, list: undefined }; +} + +export const StructField = { + encode(message: StructField, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.primitive !== undefined) { + VariableValue.encode(message.primitive, writer.uint32(10).fork()).ldelim(); + } + if (message.struct !== undefined) { + InlineStruct.encode(message.struct, writer.uint32(18).fork()).ldelim(); + } + if (message.list !== undefined) { + StructField_FieldList.encode(message.list, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): StructField { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseStructField(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.primitive = VariableValue.decode(reader, reader.uint32()); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.struct = InlineStruct.decode(reader, reader.uint32()); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.list = StructField_FieldList.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + create(base?: DeepPartial): StructField { + return StructField.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): StructField { + const message = createBaseStructField(); + message.primitive = (object.primitive !== undefined && object.primitive !== null) + ? VariableValue.fromPartial(object.primitive) + : undefined; + message.struct = (object.struct !== undefined && object.struct !== null) + ? InlineStruct.fromPartial(object.struct) + : undefined; + message.list = (object.list !== undefined && object.list !== null) + ? StructField_FieldList.fromPartial(object.list) + : undefined; + return message; + }, +}; + +function createBaseStructField_FieldList(): StructField_FieldList { + return { fields: [] }; +} + +export const StructField_FieldList = { + encode(message: StructField_FieldList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + for (const v of message.fields) { + StructField.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): StructField_FieldList { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseStructField_FieldList(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.fields.push(StructField.decode(reader, reader.uint32())); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + create(base?: DeepPartial): StructField_FieldList { + return StructField_FieldList.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): StructField_FieldList { + const message = createBaseStructField_FieldList(); + message.fields = object.fields?.map((e) => StructField.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseSchemaField(): SchemaField { + return { name: "", optional: false, primitive: undefined, schemaId: undefined, inlineSchema: undefined }; +} + +export const SchemaField = { + encode(message: SchemaField, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.name !== "") { + writer.uint32(10).string(message.name); + } + if (message.optional !== false) { + writer.uint32(16).bool(message.optional); + } + if (message.primitive !== undefined) { + writer.uint32(24).int32(primitiveTypeToNumber(message.primitive)); + } + if (message.schemaId !== undefined) { + SchemaId.encode(message.schemaId, writer.uint32(34).fork()).ldelim(); + } + if (message.inlineSchema !== undefined) { + InlineSchema.encode(message.inlineSchema, writer.uint32(42).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): SchemaField { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSchemaField(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.name = reader.string(); + continue; + case 2: + if (tag !== 16) { + break; + } + + message.optional = reader.bool(); + continue; + case 3: + if (tag !== 24) { + break; + } + + message.primitive = primitiveTypeFromJSON(reader.int32()); + continue; + case 4: + if (tag !== 34) { + break; + } + + message.schemaId = SchemaId.decode(reader, reader.uint32()); + continue; + case 5: + if (tag !== 42) { + break; + } + + message.inlineSchema = InlineSchema.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + create(base?: DeepPartial): SchemaField { + return SchemaField.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): SchemaField { + const message = createBaseSchemaField(); + message.name = object.name ?? ""; + message.optional = object.optional ?? false; + message.primitive = object.primitive ?? undefined; + message.schemaId = (object.schemaId !== undefined && object.schemaId !== null) + ? SchemaId.fromPartial(object.schemaId) + : undefined; + message.inlineSchema = (object.inlineSchema !== undefined && object.inlineSchema !== null) + ? InlineSchema.fromPartial(object.inlineSchema) + : undefined; + return message; + }, +}; + +function createBaseSchema(): Schema { + return { id: undefined, description: undefined, schema: undefined }; +} + +export const Schema = { + encode(message: Schema, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.id !== undefined) { + SchemaId.encode(message.id, writer.uint32(10).fork()).ldelim(); + } + if (message.description !== undefined) { + writer.uint32(18).string(message.description); + } + if (message.schema !== undefined) { + InlineSchema.encode(message.schema, writer.uint32(26).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): Schema { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSchema(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.id = SchemaId.decode(reader, reader.uint32()); + continue; + case 2: + if (tag !== 18) { + break; + } + + message.description = reader.string(); + continue; + case 3: + if (tag !== 26) { + break; + } + + message.schema = InlineSchema.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + create(base?: DeepPartial): Schema { + return Schema.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Schema { + const message = createBaseSchema(); + message.id = (object.id !== undefined && object.id !== null) ? SchemaId.fromPartial(object.id) : undefined; + message.description = object.description ?? undefined; + message.schema = (object.schema !== undefined && object.schema !== null) + ? InlineSchema.fromPartial(object.schema) + : undefined; + return message; + }, +}; + +function createBaseInlineSchema(): InlineSchema { + return { fields: [] }; +} + +export const InlineSchema = { + encode(message: InlineSchema, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + for (const v of message.fields) { + SchemaField.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): InlineSchema { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInlineSchema(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.fields.push(SchemaField.decode(reader, reader.uint32())); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + create(base?: DeepPartial): InlineSchema { + return InlineSchema.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): InlineSchema { + const message = createBaseInlineSchema(); + message.fields = object.fields?.map((e) => SchemaField.fromPartial(e)) || []; + return message; + }, +}; + type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; type DeepPartial = T extends Builtin ? T diff --git a/sdk-js/src/proto/wf_spec.ts b/sdk-js/src/proto/wf_spec.ts index 86784dbc8..72961287c 100644 --- a/sdk-js/src/proto/wf_spec.ts +++ b/sdk-js/src/proto/wf_spec.ts @@ -11,9 +11,9 @@ import { MetadataStatus, metadataStatusFromJSON, metadataStatusToNumber, - VariableType, - variableTypeFromJSON, - variableTypeToNumber, + PrimitiveType, + primitiveTypeFromJSON, + primitiveTypeToNumber, } from "./common_enums"; import { Comparator, @@ -180,7 +180,7 @@ export interface JsonIndex { */ fieldPath: string; /** Is the type of the field we are indexing. */ - fieldType: VariableType; + fieldType: PrimitiveType; } /** Denotes a variable declaration at the ThreadSpec level. */ @@ -990,7 +990,7 @@ export const WorkflowRetentionPolicy = { }; function createBaseJsonIndex(): JsonIndex { - return { fieldPath: "", fieldType: VariableType.JSON_OBJ }; + return { fieldPath: "", fieldType: PrimitiveType.JSON_OBJ }; } export const JsonIndex = { @@ -998,8 +998,8 @@ export const JsonIndex = { if (message.fieldPath !== "") { writer.uint32(10).string(message.fieldPath); } - if (message.fieldType !== VariableType.JSON_OBJ) { - writer.uint32(16).int32(variableTypeToNumber(message.fieldType)); + if (message.fieldType !== PrimitiveType.JSON_OBJ) { + writer.uint32(16).int32(primitiveTypeToNumber(message.fieldType)); } return writer; }, @@ -1023,7 +1023,7 @@ export const JsonIndex = { break; } - message.fieldType = variableTypeFromJSON(reader.int32()); + message.fieldType = primitiveTypeFromJSON(reader.int32()); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -1040,7 +1040,7 @@ export const JsonIndex = { fromPartial(object: DeepPartial): JsonIndex { const message = createBaseJsonIndex(); message.fieldPath = object.fieldPath ?? ""; - message.fieldType = object.fieldType ?? VariableType.JSON_OBJ; + message.fieldType = object.fieldType ?? PrimitiveType.JSON_OBJ; return message; }, }; diff --git a/sdk-js/src/proto/workflow_event.ts b/sdk-js/src/proto/workflow_event.ts index 3ac1197e6..d9abbad9f 100644 --- a/sdk-js/src/proto/workflow_event.ts +++ b/sdk-js/src/proto/workflow_event.ts @@ -6,7 +6,7 @@ /* eslint-disable */ import _m0 from "protobufjs/minimal"; -import { VariableType, variableTypeFromJSON, variableTypeToNumber } from "./common_enums"; +import { PrimitiveType, primitiveTypeFromJSON, primitiveTypeToNumber } from "./common_enums"; import { Timestamp } from "./google/protobuf/timestamp"; import { WorkflowEventDefId, WorkflowEventId } from "./object_id"; import { VariableValue } from "./variable"; @@ -32,10 +32,22 @@ export interface WorkflowEvent { createdAt: string | undefined; } +/** A `WorkflowEventDef` defines the blueprint for a `WorkflowEvent`. */ export interface WorkflowEventDef { - id: WorkflowEventDefId | undefined; - createdAt: string | undefined; - type: VariableType; + /** The `id` of the `WorkflowEventDef`. */ + id: + | WorkflowEventDefId + | undefined; + /** The timestamp at which the `WorkflowEventDef` was created. */ + createdAt: + | string + | undefined; + /** + * The type of the content of the `WorkflowEvent`. + * + * TODO: Support schemas + */ + type: PrimitiveType; } function createBaseWorkflowEvent(): WorkflowEvent { @@ -108,7 +120,7 @@ export const WorkflowEvent = { }; function createBaseWorkflowEventDef(): WorkflowEventDef { - return { id: undefined, createdAt: undefined, type: VariableType.JSON_OBJ }; + return { id: undefined, createdAt: undefined, type: PrimitiveType.JSON_OBJ }; } export const WorkflowEventDef = { @@ -119,8 +131,8 @@ export const WorkflowEventDef = { if (message.createdAt !== undefined) { Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(18).fork()).ldelim(); } - if (message.type !== VariableType.JSON_OBJ) { - writer.uint32(24).int32(variableTypeToNumber(message.type)); + if (message.type !== PrimitiveType.JSON_OBJ) { + writer.uint32(24).int32(primitiveTypeToNumber(message.type)); } return writer; }, @@ -151,7 +163,7 @@ export const WorkflowEventDef = { break; } - message.type = variableTypeFromJSON(reader.int32()); + message.type = primitiveTypeFromJSON(reader.int32()); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -171,7 +183,7 @@ export const WorkflowEventDef = { ? WorkflowEventDefId.fromPartial(object.id) : undefined; message.createdAt = object.createdAt ?? undefined; - message.type = object.type ?? VariableType.JSON_OBJ; + message.type = object.type ?? PrimitiveType.JSON_OBJ; return message; }, }; diff --git a/sdk-python/littlehorse/model/common_enums_pb2.py b/sdk-python/littlehorse/model/common_enums_pb2.py index 65e3b2660..d35c8b107 100644 --- a/sdk-python/littlehorse/model/common_enums_pb2.py +++ b/sdk-python/littlehorse/model/common_enums_pb2.py @@ -13,7 +13,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12\x63ommon_enums.proto\x12\x0blittlehorse*g\n\x08LHStatus\x12\x0c\n\x08STARTING\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tCOMPLETED\x10\x02\x12\x0b\n\x07HALTING\x10\x03\x12\n\n\x06HALTED\x10\x04\x12\t\n\x05\x45RROR\x10\x05\x12\r\n\tEXCEPTION\x10\x06*;\n\x0eMetadataStatus\x12\n\n\x06\x41\x43TIVE\x10\x00\x12\x0c\n\x08\x41RCHIVED\x10\x01\x12\x0f\n\x0bTERMINATING\x10\x02*\xce\x01\n\nTaskStatus\x12\x12\n\x0eTASK_SCHEDULED\x10\x00\x12\x10\n\x0cTASK_RUNNING\x10\x01\x12\x10\n\x0cTASK_SUCCESS\x10\x02\x12\x0f\n\x0bTASK_FAILED\x10\x03\x12\x10\n\x0cTASK_TIMEOUT\x10\x04\x12!\n\x1dTASK_OUTPUT_SERIALIZING_ERROR\x10\x05\x12\x1c\n\x18TASK_INPUT_VAR_SUB_ERROR\x10\x06\x12\x12\n\x0eTASK_EXCEPTION\x10\x08\x12\x10\n\x0cTASK_PENDING\x10\t*=\n\x13MetricsWindowLength\x12\r\n\tMINUTES_5\x10\x00\x12\x0b\n\x07HOURS_2\x10\x01\x12\n\n\x06\x44\x41YS_1\x10\x02*]\n\x0cVariableType\x12\x0c\n\x08JSON_OBJ\x10\x00\x12\x0c\n\x08JSON_ARR\x10\x01\x12\n\n\x06\x44OUBLE\x10\x02\x12\x08\n\x04\x42OOL\x10\x03\x12\x07\n\x03STR\x10\x04\x12\x07\n\x03INT\x10\x05\x12\t\n\x05\x42YTES\x10\x06*\xb6\x01\n\x0bLHErrorType\x12\x11\n\rCHILD_FAILURE\x10\x00\x12\x11\n\rVAR_SUB_ERROR\x10\x01\x12\x16\n\x12VAR_MUTATION_ERROR\x10\x02\x12\x17\n\x13USER_TASK_CANCELLED\x10\x03\x12\x0b\n\x07TIMEOUT\x10\x04\x12\x10\n\x0cTASK_FAILURE\x10\x05\x12\r\n\tVAR_ERROR\x10\x06\x12\x0e\n\nTASK_ERROR\x10\x07\x12\x12\n\x0eINTERNAL_ERROR\x10\x08\x42I\n\x1fio.littlehorse.sdk.common.protoP\x01Z\t.;lhproto\xaa\x02\x18LittleHorse.Common.Protob\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12\x63ommon_enums.proto\x12\x0blittlehorse*g\n\x08LHStatus\x12\x0c\n\x08STARTING\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tCOMPLETED\x10\x02\x12\x0b\n\x07HALTING\x10\x03\x12\n\n\x06HALTED\x10\x04\x12\t\n\x05\x45RROR\x10\x05\x12\r\n\tEXCEPTION\x10\x06*;\n\x0eMetadataStatus\x12\n\n\x06\x41\x43TIVE\x10\x00\x12\x0c\n\x08\x41RCHIVED\x10\x01\x12\x0f\n\x0bTERMINATING\x10\x02*\xce\x01\n\nTaskStatus\x12\x12\n\x0eTASK_SCHEDULED\x10\x00\x12\x10\n\x0cTASK_RUNNING\x10\x01\x12\x10\n\x0cTASK_SUCCESS\x10\x02\x12\x0f\n\x0bTASK_FAILED\x10\x03\x12\x10\n\x0cTASK_TIMEOUT\x10\x04\x12!\n\x1dTASK_OUTPUT_SERIALIZING_ERROR\x10\x05\x12\x1c\n\x18TASK_INPUT_VAR_SUB_ERROR\x10\x06\x12\x12\n\x0eTASK_EXCEPTION\x10\x08\x12\x10\n\x0cTASK_PENDING\x10\t*=\n\x13MetricsWindowLength\x12\r\n\tMINUTES_5\x10\x00\x12\x0b\n\x07HOURS_2\x10\x01\x12\n\n\x06\x44\x41YS_1\x10\x02*^\n\rPrimitiveType\x12\x0c\n\x08JSON_OBJ\x10\x00\x12\x0c\n\x08JSON_ARR\x10\x01\x12\n\n\x06\x44OUBLE\x10\x02\x12\x08\n\x04\x42OOL\x10\x03\x12\x07\n\x03STR\x10\x04\x12\x07\n\x03INT\x10\x05\x12\t\n\x05\x42YTES\x10\x06*\xb6\x01\n\x0bLHErrorType\x12\x11\n\rCHILD_FAILURE\x10\x00\x12\x11\n\rVAR_SUB_ERROR\x10\x01\x12\x16\n\x12VAR_MUTATION_ERROR\x10\x02\x12\x17\n\x13USER_TASK_CANCELLED\x10\x03\x12\x0b\n\x07TIMEOUT\x10\x04\x12\x10\n\x0cTASK_FAILURE\x10\x05\x12\r\n\tVAR_ERROR\x10\x06\x12\x0e\n\nTASK_ERROR\x10\x07\x12\x12\n\x0eINTERNAL_ERROR\x10\x08\x42I\n\x1fio.littlehorse.sdk.common.protoP\x01Z\t.;lhproto\xaa\x02\x18LittleHorse.Common.Protob\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -30,8 +30,8 @@ _globals['_TASKSTATUS']._serialized_end=408 _globals['_METRICSWINDOWLENGTH']._serialized_start=410 _globals['_METRICSWINDOWLENGTH']._serialized_end=471 - _globals['_VARIABLETYPE']._serialized_start=473 - _globals['_VARIABLETYPE']._serialized_end=566 - _globals['_LHERRORTYPE']._serialized_start=569 - _globals['_LHERRORTYPE']._serialized_end=751 + _globals['_PRIMITIVETYPE']._serialized_start=473 + _globals['_PRIMITIVETYPE']._serialized_end=567 + _globals['_LHERRORTYPE']._serialized_start=570 + _globals['_LHERRORTYPE']._serialized_end=752 # @@protoc_insertion_point(module_scope) diff --git a/sdk-python/littlehorse/model/common_enums_pb2.pyi b/sdk-python/littlehorse/model/common_enums_pb2.pyi index 2cefcf387..65f07ce95 100644 --- a/sdk-python/littlehorse/model/common_enums_pb2.pyi +++ b/sdk-python/littlehorse/model/common_enums_pb2.pyi @@ -38,15 +38,15 @@ class MetricsWindowLength(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): HOURS_2: _ClassVar[MetricsWindowLength] DAYS_1: _ClassVar[MetricsWindowLength] -class VariableType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): +class PrimitiveType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): __slots__ = [] - JSON_OBJ: _ClassVar[VariableType] - JSON_ARR: _ClassVar[VariableType] - DOUBLE: _ClassVar[VariableType] - BOOL: _ClassVar[VariableType] - STR: _ClassVar[VariableType] - INT: _ClassVar[VariableType] - BYTES: _ClassVar[VariableType] + JSON_OBJ: _ClassVar[PrimitiveType] + JSON_ARR: _ClassVar[PrimitiveType] + DOUBLE: _ClassVar[PrimitiveType] + BOOL: _ClassVar[PrimitiveType] + STR: _ClassVar[PrimitiveType] + INT: _ClassVar[PrimitiveType] + BYTES: _ClassVar[PrimitiveType] class LHErrorType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): __slots__ = [] @@ -81,13 +81,13 @@ TASK_PENDING: TaskStatus MINUTES_5: MetricsWindowLength HOURS_2: MetricsWindowLength DAYS_1: MetricsWindowLength -JSON_OBJ: VariableType -JSON_ARR: VariableType -DOUBLE: VariableType -BOOL: VariableType -STR: VariableType -INT: VariableType -BYTES: VariableType +JSON_OBJ: PrimitiveType +JSON_ARR: PrimitiveType +DOUBLE: PrimitiveType +BOOL: PrimitiveType +STR: PrimitiveType +INT: PrimitiveType +BYTES: PrimitiveType CHILD_FAILURE: LHErrorType VAR_SUB_ERROR: LHErrorType VAR_MUTATION_ERROR: LHErrorType diff --git a/sdk-python/littlehorse/model/common_wfspec_pb2.py b/sdk-python/littlehorse/model/common_wfspec_pb2.py index 093352628..8971e2e21 100644 --- a/sdk-python/littlehorse/model/common_wfspec_pb2.py +++ b/sdk-python/littlehorse/model/common_wfspec_pb2.py @@ -16,7 +16,7 @@ import littlehorse.model.object_id_pb2 as object__id__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13\x63ommon_wfspec.proto\x12\x0blittlehorse\x1a\x12\x63ommon_enums.proto\x1a\x0evariable.proto\x1a\x0fobject_id.proto\"\xc9\x02\n\x12VariableAssignment\x12\x16\n\tjson_path\x18\x01 \x01(\tH\x01\x88\x01\x01\x12\x17\n\rvariable_name\x18\x02 \x01(\tH\x00\x12\x33\n\rliteral_value\x18\x03 \x01(\x0b\x32\x1a.littlehorse.VariableValueH\x00\x12\x45\n\rformat_string\x18\x04 \x01(\x0b\x32,.littlehorse.VariableAssignment.FormatStringH\x00\x1an\n\x0c\x46ormatString\x12/\n\x06\x66ormat\x18\x01 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment\x12-\n\x04\x61rgs\x18\x02 \x03(\x0b\x32\x1f.littlehorse.VariableAssignmentB\x08\n\x06sourceB\x0c\n\n_json_path\"\x85\x03\n\x10VariableMutation\x12\x10\n\x08lhs_name\x18\x01 \x01(\t\x12\x1a\n\rlhs_json_path\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x34\n\toperation\x18\x03 \x01(\x0e\x32!.littlehorse.VariableMutationType\x12:\n\x0fsource_variable\x18\x04 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x00\x12\x33\n\rliteral_value\x18\x05 \x01(\x0b\x32\x1a.littlehorse.VariableValueH\x00\x12\x45\n\x0bnode_output\x18\x06 \x01(\x0b\x32..littlehorse.VariableMutation.NodeOutputSourceH\x00\x1a\x36\n\x10NodeOutputSource\x12\x15\n\x08jsonpath\x18\n \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_jsonpathB\x0b\n\trhs_valueB\x10\n\x0e_lhs_json_path\"\xa4\x01\n\x0bVariableDef\x12\'\n\x04type\x18\x01 \x01(\x0e\x32\x19.littlehorse.VariableType\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x36\n\rdefault_value\x18\x03 \x01(\x0b\x32\x1a.littlehorse.VariableValueH\x00\x88\x01\x01\x12\x14\n\x0cmasked_value\x18\x04 \x01(\x08\x42\x10\n\x0e_default_value\"\xef\x04\n\x0fUTActionTrigger\x12\x34\n\x04task\x18\x01 \x01(\x0b\x32$.littlehorse.UTActionTrigger.UTATaskH\x00\x12\x38\n\x06\x63\x61ncel\x18\x02 \x01(\x0b\x32&.littlehorse.UTActionTrigger.UTACancelH\x00\x12<\n\x08reassign\x18\x03 \x01(\x0b\x32(.littlehorse.UTActionTrigger.UTAReassignH\x00\x12\x36\n\rdelay_seconds\x18\x05 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment\x12\x31\n\x04hook\x18\x06 \x01(\x0e\x32#.littlehorse.UTActionTrigger.UTHook\x1a\x0b\n\tUTACancel\x1a`\n\x07UTATask\x12#\n\x04task\x18\x01 \x01(\x0b\x32\x15.littlehorse.TaskNode\x12\x30\n\tmutations\x18\x02 \x03(\x0b\x32\x1d.littlehorse.VariableMutation\x1a\x99\x01\n\x0bUTAReassign\x12\x35\n\x07user_id\x18\x01 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x00\x88\x01\x01\x12\x38\n\nuser_group\x18\x02 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x01\x88\x01\x01\x42\n\n\x08_user_idB\r\n\x0b_user_group\".\n\x06UTHook\x12\x0e\n\nON_ARRIVAL\x10\x00\x12\x14\n\x10ON_TASK_ASSIGNED\x10\x01\x42\x08\n\x06\x61\x63tion\"c\n\x1d\x45xponentialBackoffRetryPolicy\x12\x18\n\x10\x62\x61se_interval_ms\x18\x01 \x01(\x05\x12\x14\n\x0cmax_delay_ms\x18\x02 \x01(\x03\x12\x12\n\nmultiplier\x18\x03 \x01(\x02\"\xc9\x02\n\x08TaskNode\x12-\n\x0btask_def_id\x18\x01 \x01(\x0b\x32\x16.littlehorse.TaskDefIdH\x00\x12\x37\n\x0c\x64ynamic_task\x18\x06 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x00\x12\x17\n\x0ftimeout_seconds\x18\x02 \x01(\x05\x12\x0f\n\x07retries\x18\x03 \x01(\x05\x12L\n\x13\x65xponential_backoff\x18\x05 \x01(\x0b\x32*.littlehorse.ExponentialBackoffRetryPolicyH\x01\x88\x01\x01\x12\x32\n\tvariables\x18\x04 \x03(\x0b\x32\x1f.littlehorse.VariableAssignmentB\x11\n\x0ftask_to_executeB\x16\n\x14_exponential_backoff*\x98\x01\n\x14VariableMutationType\x12\n\n\x06\x41SSIGN\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06\x45XTEND\x10\x02\x12\x0c\n\x08SUBTRACT\x10\x03\x12\x0c\n\x08MULTIPLY\x10\x04\x12\n\n\x06\x44IVIDE\x10\x05\x12\x15\n\x11REMOVE_IF_PRESENT\x10\x06\x12\x10\n\x0cREMOVE_INDEX\x10\x07\x12\x0e\n\nREMOVE_KEY\x10\x08*\x84\x01\n\nComparator\x12\r\n\tLESS_THAN\x10\x00\x12\x10\n\x0cGREATER_THAN\x10\x01\x12\x10\n\x0cLESS_THAN_EQ\x10\x02\x12\x13\n\x0fGREATER_THAN_EQ\x10\x03\x12\n\n\x06\x45QUALS\x10\x04\x12\x0e\n\nNOT_EQUALS\x10\x05\x12\x06\n\x02IN\x10\x06\x12\n\n\x06NOT_IN\x10\x07\x42I\n\x1fio.littlehorse.sdk.common.protoP\x01Z\t.;lhproto\xaa\x02\x18LittleHorse.Common.Protob\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13\x63ommon_wfspec.proto\x12\x0blittlehorse\x1a\x12\x63ommon_enums.proto\x1a\x0evariable.proto\x1a\x0fobject_id.proto\"\xc9\x02\n\x12VariableAssignment\x12\x16\n\tjson_path\x18\x01 \x01(\tH\x01\x88\x01\x01\x12\x17\n\rvariable_name\x18\x02 \x01(\tH\x00\x12\x33\n\rliteral_value\x18\x03 \x01(\x0b\x32\x1a.littlehorse.VariableValueH\x00\x12\x45\n\rformat_string\x18\x04 \x01(\x0b\x32,.littlehorse.VariableAssignment.FormatStringH\x00\x1an\n\x0c\x46ormatString\x12/\n\x06\x66ormat\x18\x01 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment\x12-\n\x04\x61rgs\x18\x02 \x03(\x0b\x32\x1f.littlehorse.VariableAssignmentB\x08\n\x06sourceB\x0c\n\n_json_path\"\x85\x03\n\x10VariableMutation\x12\x10\n\x08lhs_name\x18\x01 \x01(\t\x12\x1a\n\rlhs_json_path\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x34\n\toperation\x18\x03 \x01(\x0e\x32!.littlehorse.VariableMutationType\x12:\n\x0fsource_variable\x18\x04 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x00\x12\x33\n\rliteral_value\x18\x05 \x01(\x0b\x32\x1a.littlehorse.VariableValueH\x00\x12\x45\n\x0bnode_output\x18\x06 \x01(\x0b\x32..littlehorse.VariableMutation.NodeOutputSourceH\x00\x1a\x36\n\x10NodeOutputSource\x12\x15\n\x08jsonpath\x18\n \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_jsonpathB\x0b\n\trhs_valueB\x10\n\x0e_lhs_json_path\"\xda\x01\n\x0bVariableDef\x12/\n\tprimitive\x18\x01 \x01(\x0e\x32\x1a.littlehorse.PrimitiveTypeH\x00\x12\'\n\x06schema\x18\x05 \x01(\x0b\x32\x15.littlehorse.SchemaIdH\x00\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x36\n\rdefault_value\x18\x03 \x01(\x0b\x32\x1a.littlehorse.VariableValueH\x01\x88\x01\x01\x12\x11\n\tis_masked\x18\x04 \x01(\x08\x42\x06\n\x04typeB\x10\n\x0e_default_value\"\xef\x04\n\x0fUTActionTrigger\x12\x34\n\x04task\x18\x01 \x01(\x0b\x32$.littlehorse.UTActionTrigger.UTATaskH\x00\x12\x38\n\x06\x63\x61ncel\x18\x02 \x01(\x0b\x32&.littlehorse.UTActionTrigger.UTACancelH\x00\x12<\n\x08reassign\x18\x03 \x01(\x0b\x32(.littlehorse.UTActionTrigger.UTAReassignH\x00\x12\x36\n\rdelay_seconds\x18\x05 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment\x12\x31\n\x04hook\x18\x06 \x01(\x0e\x32#.littlehorse.UTActionTrigger.UTHook\x1a\x0b\n\tUTACancel\x1a`\n\x07UTATask\x12#\n\x04task\x18\x01 \x01(\x0b\x32\x15.littlehorse.TaskNode\x12\x30\n\tmutations\x18\x02 \x03(\x0b\x32\x1d.littlehorse.VariableMutation\x1a\x99\x01\n\x0bUTAReassign\x12\x35\n\x07user_id\x18\x01 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x00\x88\x01\x01\x12\x38\n\nuser_group\x18\x02 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x01\x88\x01\x01\x42\n\n\x08_user_idB\r\n\x0b_user_group\".\n\x06UTHook\x12\x0e\n\nON_ARRIVAL\x10\x00\x12\x14\n\x10ON_TASK_ASSIGNED\x10\x01\x42\x08\n\x06\x61\x63tion\"c\n\x1d\x45xponentialBackoffRetryPolicy\x12\x18\n\x10\x62\x61se_interval_ms\x18\x01 \x01(\x05\x12\x14\n\x0cmax_delay_ms\x18\x02 \x01(\x03\x12\x12\n\nmultiplier\x18\x03 \x01(\x02\"\xc9\x02\n\x08TaskNode\x12-\n\x0btask_def_id\x18\x01 \x01(\x0b\x32\x16.littlehorse.TaskDefIdH\x00\x12\x37\n\x0c\x64ynamic_task\x18\x06 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x00\x12\x17\n\x0ftimeout_seconds\x18\x02 \x01(\x05\x12\x0f\n\x07retries\x18\x03 \x01(\x05\x12L\n\x13\x65xponential_backoff\x18\x05 \x01(\x0b\x32*.littlehorse.ExponentialBackoffRetryPolicyH\x01\x88\x01\x01\x12\x32\n\tvariables\x18\x04 \x03(\x0b\x32\x1f.littlehorse.VariableAssignmentB\x11\n\x0ftask_to_executeB\x16\n\x14_exponential_backoff*\x98\x01\n\x14VariableMutationType\x12\n\n\x06\x41SSIGN\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x01\x12\n\n\x06\x45XTEND\x10\x02\x12\x0c\n\x08SUBTRACT\x10\x03\x12\x0c\n\x08MULTIPLY\x10\x04\x12\n\n\x06\x44IVIDE\x10\x05\x12\x15\n\x11REMOVE_IF_PRESENT\x10\x06\x12\x10\n\x0cREMOVE_INDEX\x10\x07\x12\x0e\n\nREMOVE_KEY\x10\x08*\x84\x01\n\nComparator\x12\r\n\tLESS_THAN\x10\x00\x12\x10\n\x0cGREATER_THAN\x10\x01\x12\x10\n\x0cLESS_THAN_EQ\x10\x02\x12\x13\n\x0fGREATER_THAN_EQ\x10\x03\x12\n\n\x06\x45QUALS\x10\x04\x12\x0e\n\nNOT_EQUALS\x10\x05\x12\x06\n\x02IN\x10\x06\x12\n\n\x06NOT_IN\x10\x07\x42I\n\x1fio.littlehorse.sdk.common.protoP\x01Z\t.;lhproto\xaa\x02\x18LittleHorse.Common.Protob\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -25,10 +25,10 @@ DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n\037io.littlehorse.sdk.common.protoP\001Z\t.;lhproto\252\002\030LittleHorse.Common.Proto' - _globals['_VARIABLEMUTATIONTYPE']._serialized_start=2040 - _globals['_VARIABLEMUTATIONTYPE']._serialized_end=2192 - _globals['_COMPARATOR']._serialized_start=2195 - _globals['_COMPARATOR']._serialized_end=2327 + _globals['_VARIABLEMUTATIONTYPE']._serialized_start=2094 + _globals['_VARIABLEMUTATIONTYPE']._serialized_end=2246 + _globals['_COMPARATOR']._serialized_start=2249 + _globals['_COMPARATOR']._serialized_end=2381 _globals['_VARIABLEASSIGNMENT']._serialized_start=90 _globals['_VARIABLEASSIGNMENT']._serialized_end=419 _globals['_VARIABLEASSIGNMENT_FORMATSTRING']._serialized_start=285 @@ -38,19 +38,19 @@ _globals['_VARIABLEMUTATION_NODEOUTPUTSOURCE']._serialized_start=726 _globals['_VARIABLEMUTATION_NODEOUTPUTSOURCE']._serialized_end=780 _globals['_VARIABLEDEF']._serialized_start=814 - _globals['_VARIABLEDEF']._serialized_end=978 - _globals['_UTACTIONTRIGGER']._serialized_start=981 - _globals['_UTACTIONTRIGGER']._serialized_end=1604 - _globals['_UTACTIONTRIGGER_UTACANCEL']._serialized_start=1281 - _globals['_UTACTIONTRIGGER_UTACANCEL']._serialized_end=1292 - _globals['_UTACTIONTRIGGER_UTATASK']._serialized_start=1294 - _globals['_UTACTIONTRIGGER_UTATASK']._serialized_end=1390 - _globals['_UTACTIONTRIGGER_UTAREASSIGN']._serialized_start=1393 - _globals['_UTACTIONTRIGGER_UTAREASSIGN']._serialized_end=1546 - _globals['_UTACTIONTRIGGER_UTHOOK']._serialized_start=1548 - _globals['_UTACTIONTRIGGER_UTHOOK']._serialized_end=1594 - _globals['_EXPONENTIALBACKOFFRETRYPOLICY']._serialized_start=1606 - _globals['_EXPONENTIALBACKOFFRETRYPOLICY']._serialized_end=1705 - _globals['_TASKNODE']._serialized_start=1708 - _globals['_TASKNODE']._serialized_end=2037 + _globals['_VARIABLEDEF']._serialized_end=1032 + _globals['_UTACTIONTRIGGER']._serialized_start=1035 + _globals['_UTACTIONTRIGGER']._serialized_end=1658 + _globals['_UTACTIONTRIGGER_UTACANCEL']._serialized_start=1335 + _globals['_UTACTIONTRIGGER_UTACANCEL']._serialized_end=1346 + _globals['_UTACTIONTRIGGER_UTATASK']._serialized_start=1348 + _globals['_UTACTIONTRIGGER_UTATASK']._serialized_end=1444 + _globals['_UTACTIONTRIGGER_UTAREASSIGN']._serialized_start=1447 + _globals['_UTACTIONTRIGGER_UTAREASSIGN']._serialized_end=1600 + _globals['_UTACTIONTRIGGER_UTHOOK']._serialized_start=1602 + _globals['_UTACTIONTRIGGER_UTHOOK']._serialized_end=1648 + _globals['_EXPONENTIALBACKOFFRETRYPOLICY']._serialized_start=1660 + _globals['_EXPONENTIALBACKOFFRETRYPOLICY']._serialized_end=1759 + _globals['_TASKNODE']._serialized_start=1762 + _globals['_TASKNODE']._serialized_end=2091 # @@protoc_insertion_point(module_scope) diff --git a/sdk-python/littlehorse/model/common_wfspec_pb2.pyi b/sdk-python/littlehorse/model/common_wfspec_pb2.pyi index a1ce7d74f..80d6b3e0f 100644 --- a/sdk-python/littlehorse/model/common_wfspec_pb2.pyi +++ b/sdk-python/littlehorse/model/common_wfspec_pb2.pyi @@ -90,16 +90,18 @@ class VariableMutation(_message.Message): def __init__(self, lhs_name: _Optional[str] = ..., lhs_json_path: _Optional[str] = ..., operation: _Optional[_Union[VariableMutationType, str]] = ..., source_variable: _Optional[_Union[VariableAssignment, _Mapping]] = ..., literal_value: _Optional[_Union[_variable_pb2.VariableValue, _Mapping]] = ..., node_output: _Optional[_Union[VariableMutation.NodeOutputSource, _Mapping]] = ...) -> None: ... class VariableDef(_message.Message): - __slots__ = ["type", "name", "default_value", "masked_value"] - TYPE_FIELD_NUMBER: _ClassVar[int] + __slots__ = ["primitive", "schema", "name", "default_value", "is_masked"] + PRIMITIVE_FIELD_NUMBER: _ClassVar[int] + SCHEMA_FIELD_NUMBER: _ClassVar[int] NAME_FIELD_NUMBER: _ClassVar[int] DEFAULT_VALUE_FIELD_NUMBER: _ClassVar[int] - MASKED_VALUE_FIELD_NUMBER: _ClassVar[int] - type: _common_enums_pb2.VariableType + IS_MASKED_FIELD_NUMBER: _ClassVar[int] + primitive: _common_enums_pb2.PrimitiveType + schema: _object_id_pb2.SchemaId name: str default_value: _variable_pb2.VariableValue - masked_value: bool - def __init__(self, type: _Optional[_Union[_common_enums_pb2.VariableType, str]] = ..., name: _Optional[str] = ..., default_value: _Optional[_Union[_variable_pb2.VariableValue, _Mapping]] = ..., masked_value: bool = ...) -> None: ... + is_masked: bool + def __init__(self, primitive: _Optional[_Union[_common_enums_pb2.PrimitiveType, str]] = ..., schema: _Optional[_Union[_object_id_pb2.SchemaId, _Mapping]] = ..., name: _Optional[str] = ..., default_value: _Optional[_Union[_variable_pb2.VariableValue, _Mapping]] = ..., is_masked: bool = ...) -> None: ... class UTActionTrigger(_message.Message): __slots__ = ["task", "cancel", "reassign", "delay_seconds", "hook"] diff --git a/sdk-python/littlehorse/model/object_id_pb2.py b/sdk-python/littlehorse/model/object_id_pb2.py index 1b8a89dc2..1652c9159 100644 --- a/sdk-python/littlehorse/model/object_id_pb2.py +++ b/sdk-python/littlehorse/model/object_id_pb2.py @@ -15,7 +15,7 @@ import littlehorse.model.common_enums_pb2 as common__enums__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0fobject_id.proto\x12\x0blittlehorse\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x12\x63ommon_enums.proto\"A\n\x08WfSpecId\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x15\n\rmajor_version\x18\x02 \x01(\x05\x12\x10\n\x08revision\x18\x03 \x01(\x05\"\x19\n\tTaskDefId\x12\x0c\n\x04name\x18\x01 \x01(\t\"\"\n\x12\x45xternalEventDefId\x12\x0c\n\x04name\x18\x01 \x01(\t\".\n\rUserTaskDefId\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\"\"\n\x12WorkflowEventDefId\x12\x0c\n\x04name\x18\x01 \x01(\t\"@\n\x11TaskWorkerGroupId\x12+\n\x0btask_def_id\x18\x01 \x01(\x0b\x32\x16.littlehorse.TaskDefId\"^\n\nVariableId\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12\x19\n\x11thread_run_number\x18\x02 \x01(\x05\x12\x0c\n\x04name\x18\x03 \x01(\t\"\x88\x01\n\x0f\x45xternalEventId\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12>\n\x15\x65xternal_event_def_id\x18\x02 \x01(\x0b\x32\x1f.littlehorse.ExternalEventDefId\x12\x0c\n\x04guid\x18\x03 \x01(\t\"_\n\x07WfRunId\x12\n\n\x02id\x18\x01 \x01(\t\x12\x33\n\x10parent_wf_run_id\x18\x02 \x01(\x0b\x32\x14.littlehorse.WfRunIdH\x00\x88\x01\x01\x42\x13\n\x11_parent_wf_run_id\"a\n\tNodeRunId\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12\x19\n\x11thread_run_number\x18\x02 \x01(\x05\x12\x10\n\x08position\x18\x03 \x01(\x05\"\x8a\x01\n\x0fWorkflowEventId\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12>\n\x15workflow_event_def_id\x18\x02 \x01(\x0b\x32\x1f.littlehorse.WorkflowEventDefId\x12\x0e\n\x06number\x18\x03 \x01(\x05\"G\n\tTaskRunId\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12\x11\n\ttask_guid\x18\x02 \x01(\t\"P\n\rUserTaskRunId\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12\x16\n\x0euser_task_guid\x18\x02 \x01(\t\"\xa8\x01\n\x10TaskDefMetricsId\x12\x30\n\x0cwindow_start\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x0bwindow_type\x18\x02 \x01(\x0e\x32 .littlehorse.MetricsWindowLength\x12+\n\x0btask_def_id\x18\x03 \x01(\x0b\x32\x16.littlehorse.TaskDefId\"\xa5\x01\n\x0fWfSpecMetricsId\x12\x30\n\x0cwindow_start\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x0bwindow_type\x18\x02 \x01(\x0e\x32 .littlehorse.MetricsWindowLength\x12)\n\nwf_spec_id\x18\x03 \x01(\x0b\x32\x15.littlehorse.WfSpecId\"\x19\n\x0bPrincipalId\x12\n\n\x02id\x18\x01 \x01(\t\"\x16\n\x08TenantId\x12\n\n\x02id\x18\x01 \x01(\t\"\x1e\n\x10ScheduledWfRunId\x12\n\n\x02id\x18\x01 \x01(\tBI\n\x1fio.littlehorse.sdk.common.protoP\x01Z\t.;lhproto\xaa\x02\x18LittleHorse.Common.Protob\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0fobject_id.proto\x12\x0blittlehorse\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x12\x63ommon_enums.proto\"A\n\x08WfSpecId\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x15\n\rmajor_version\x18\x02 \x01(\x05\x12\x10\n\x08revision\x18\x03 \x01(\x05\"\x19\n\tTaskDefId\x12\x0c\n\x04name\x18\x01 \x01(\t\"\"\n\x12\x45xternalEventDefId\x12\x0c\n\x04name\x18\x01 \x01(\t\".\n\rUserTaskDefId\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\"\"\n\x12WorkflowEventDefId\x12\x0c\n\x04name\x18\x01 \x01(\t\")\n\x08SchemaId\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\"@\n\x11TaskWorkerGroupId\x12+\n\x0btask_def_id\x18\x01 \x01(\x0b\x32\x16.littlehorse.TaskDefId\"^\n\nVariableId\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12\x19\n\x11thread_run_number\x18\x02 \x01(\x05\x12\x0c\n\x04name\x18\x03 \x01(\t\"\x88\x01\n\x0f\x45xternalEventId\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12>\n\x15\x65xternal_event_def_id\x18\x02 \x01(\x0b\x32\x1f.littlehorse.ExternalEventDefId\x12\x0c\n\x04guid\x18\x03 \x01(\t\"_\n\x07WfRunId\x12\n\n\x02id\x18\x01 \x01(\t\x12\x33\n\x10parent_wf_run_id\x18\x02 \x01(\x0b\x32\x14.littlehorse.WfRunIdH\x00\x88\x01\x01\x42\x13\n\x11_parent_wf_run_id\"a\n\tNodeRunId\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12\x19\n\x11thread_run_number\x18\x02 \x01(\x05\x12\x10\n\x08position\x18\x03 \x01(\x05\"\x8a\x01\n\x0fWorkflowEventId\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12>\n\x15workflow_event_def_id\x18\x02 \x01(\x0b\x32\x1f.littlehorse.WorkflowEventDefId\x12\x0e\n\x06number\x18\x03 \x01(\x05\"G\n\tTaskRunId\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12\x11\n\ttask_guid\x18\x02 \x01(\t\"P\n\rUserTaskRunId\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12\x16\n\x0euser_task_guid\x18\x02 \x01(\t\"\xa8\x01\n\x10TaskDefMetricsId\x12\x30\n\x0cwindow_start\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x0bwindow_type\x18\x02 \x01(\x0e\x32 .littlehorse.MetricsWindowLength\x12+\n\x0btask_def_id\x18\x03 \x01(\x0b\x32\x16.littlehorse.TaskDefId\"\xa5\x01\n\x0fWfSpecMetricsId\x12\x30\n\x0cwindow_start\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x0bwindow_type\x18\x02 \x01(\x0e\x32 .littlehorse.MetricsWindowLength\x12)\n\nwf_spec_id\x18\x03 \x01(\x0b\x32\x15.littlehorse.WfSpecId\"\x19\n\x0bPrincipalId\x12\n\n\x02id\x18\x01 \x01(\t\"\x16\n\x08TenantId\x12\n\n\x02id\x18\x01 \x01(\t\"\x1e\n\x10ScheduledWfRunId\x12\n\n\x02id\x18\x01 \x01(\tBI\n\x1fio.littlehorse.sdk.common.protoP\x01Z\t.;lhproto\xaa\x02\x18LittleHorse.Common.Protob\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -34,30 +34,32 @@ _globals['_USERTASKDEFID']._serialized_end=261 _globals['_WORKFLOWEVENTDEFID']._serialized_start=263 _globals['_WORKFLOWEVENTDEFID']._serialized_end=297 - _globals['_TASKWORKERGROUPID']._serialized_start=299 - _globals['_TASKWORKERGROUPID']._serialized_end=363 - _globals['_VARIABLEID']._serialized_start=365 - _globals['_VARIABLEID']._serialized_end=459 - _globals['_EXTERNALEVENTID']._serialized_start=462 - _globals['_EXTERNALEVENTID']._serialized_end=598 - _globals['_WFRUNID']._serialized_start=600 - _globals['_WFRUNID']._serialized_end=695 - _globals['_NODERUNID']._serialized_start=697 - _globals['_NODERUNID']._serialized_end=794 - _globals['_WORKFLOWEVENTID']._serialized_start=797 - _globals['_WORKFLOWEVENTID']._serialized_end=935 - _globals['_TASKRUNID']._serialized_start=937 - _globals['_TASKRUNID']._serialized_end=1008 - _globals['_USERTASKRUNID']._serialized_start=1010 - _globals['_USERTASKRUNID']._serialized_end=1090 - _globals['_TASKDEFMETRICSID']._serialized_start=1093 - _globals['_TASKDEFMETRICSID']._serialized_end=1261 - _globals['_WFSPECMETRICSID']._serialized_start=1264 - _globals['_WFSPECMETRICSID']._serialized_end=1429 - _globals['_PRINCIPALID']._serialized_start=1431 - _globals['_PRINCIPALID']._serialized_end=1456 - _globals['_TENANTID']._serialized_start=1458 - _globals['_TENANTID']._serialized_end=1480 - _globals['_SCHEDULEDWFRUNID']._serialized_start=1482 - _globals['_SCHEDULEDWFRUNID']._serialized_end=1512 + _globals['_SCHEMAID']._serialized_start=299 + _globals['_SCHEMAID']._serialized_end=340 + _globals['_TASKWORKERGROUPID']._serialized_start=342 + _globals['_TASKWORKERGROUPID']._serialized_end=406 + _globals['_VARIABLEID']._serialized_start=408 + _globals['_VARIABLEID']._serialized_end=502 + _globals['_EXTERNALEVENTID']._serialized_start=505 + _globals['_EXTERNALEVENTID']._serialized_end=641 + _globals['_WFRUNID']._serialized_start=643 + _globals['_WFRUNID']._serialized_end=738 + _globals['_NODERUNID']._serialized_start=740 + _globals['_NODERUNID']._serialized_end=837 + _globals['_WORKFLOWEVENTID']._serialized_start=840 + _globals['_WORKFLOWEVENTID']._serialized_end=978 + _globals['_TASKRUNID']._serialized_start=980 + _globals['_TASKRUNID']._serialized_end=1051 + _globals['_USERTASKRUNID']._serialized_start=1053 + _globals['_USERTASKRUNID']._serialized_end=1133 + _globals['_TASKDEFMETRICSID']._serialized_start=1136 + _globals['_TASKDEFMETRICSID']._serialized_end=1304 + _globals['_WFSPECMETRICSID']._serialized_start=1307 + _globals['_WFSPECMETRICSID']._serialized_end=1472 + _globals['_PRINCIPALID']._serialized_start=1474 + _globals['_PRINCIPALID']._serialized_end=1499 + _globals['_TENANTID']._serialized_start=1501 + _globals['_TENANTID']._serialized_end=1523 + _globals['_SCHEDULEDWFRUNID']._serialized_start=1525 + _globals['_SCHEDULEDWFRUNID']._serialized_end=1555 # @@protoc_insertion_point(module_scope) diff --git a/sdk-python/littlehorse/model/object_id_pb2.pyi b/sdk-python/littlehorse/model/object_id_pb2.pyi index 24b4f3775..1c32ffa4a 100644 --- a/sdk-python/littlehorse/model/object_id_pb2.pyi +++ b/sdk-python/littlehorse/model/object_id_pb2.pyi @@ -42,6 +42,14 @@ class WorkflowEventDefId(_message.Message): name: str def __init__(self, name: _Optional[str] = ...) -> None: ... +class SchemaId(_message.Message): + __slots__ = ["name", "version"] + NAME_FIELD_NUMBER: _ClassVar[int] + VERSION_FIELD_NUMBER: _ClassVar[int] + name: str + version: int + def __init__(self, name: _Optional[str] = ..., version: _Optional[int] = ...) -> None: ... + class TaskWorkerGroupId(_message.Message): __slots__ = ["task_def_id"] TASK_DEF_ID_FIELD_NUMBER: _ClassVar[int] diff --git a/sdk-python/littlehorse/model/service_pb2.py b/sdk-python/littlehorse/model/service_pb2.py index 6008a76a2..14921e795 100644 --- a/sdk-python/littlehorse/model/service_pb2.py +++ b/sdk-python/littlehorse/model/service_pb2.py @@ -29,7 +29,7 @@ import littlehorse.model.scheduled_wf_run_pb2 as scheduled__wf__run__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rservice.proto\x12\x0blittlehorse\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x13\x63ommon_wfspec.proto\x1a\x12\x63ommon_enums.proto\x1a\x0fobject_id.proto\x1a\x0evariable.proto\x1a\x14\x65xternal_event.proto\x1a\x0cwf_run.proto\x1a\x0enode_run.proto\x1a\x0etask_run.proto\x1a\x10user_tasks.proto\x1a\rwf_spec.proto\x1a\x0etask_def.proto\x1a\nacls.proto\x1a\x14workflow_event.proto\x1a\x16scheduled_wf_run.proto\"+\n\x1bGetLatestUserTaskDefRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xd3\x03\n\x10PutWfSpecRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x44\n\x0cthread_specs\x18\x05 \x03(\x0b\x32..littlehorse.PutWfSpecRequest.ThreadSpecsEntry\x12\x1e\n\x16\x65ntrypoint_thread_name\x18\x06 \x01(\t\x12\x43\n\x10retention_policy\x18\x08 \x01(\x0b\x32$.littlehorse.WorkflowRetentionPolicyH\x00\x88\x01\x01\x12\x46\n\x0eparent_wf_spec\x18\t \x01(\x0b\x32).littlehorse.WfSpec.ParentWfSpecReferenceH\x01\x88\x01\x01\x12\x37\n\x0f\x61llowed_updates\x18\n \x01(\x0e\x32\x1e.littlehorse.AllowedUpdateType\x1aK\n\x10ThreadSpecsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.littlehorse.ThreadSpec:\x02\x38\x01\x42\x13\n\x11_retention_policyB\x11\n\x0f_parent_wf_specJ\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05\"\x9f\x01\n\x11PutTaskDefRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12,\n\ninput_vars\x18\x02 \x03(\x0b\x32\x18.littlehorse.VariableDef\x12<\n\routput_schema\x18\x03 \x01(\x0b\x32 .littlehorse.TaskDefOutputSchemaH\x00\x88\x01\x01\x42\x10\n\x0e_output_schema\"S\n\x1aPutWorkflowEventDefRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\'\n\x04type\x18\x02 \x01(\x0e\x32\x19.littlehorse.VariableType\"{\n\x15PutUserTaskDefRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12*\n\x06\x66ields\x18\x02 \x03(\x0b\x32\x1a.littlehorse.UserTaskField\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_description\"o\n\x1aPutExternalEventDefRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x43\n\x10retention_policy\x18\x02 \x01(\x0b\x32).littlehorse.ExternalEventRetentionPolicy\"\xc3\x02\n\x17PutExternalEventRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12>\n\x15\x65xternal_event_def_id\x18\x02 \x01(\x0b\x32\x1f.littlehorse.ExternalEventDefId\x12\x11\n\x04guid\x18\x03 \x01(\tH\x00\x88\x01\x01\x12+\n\x07\x63ontent\x18\x05 \x01(\x0b\x32\x1a.littlehorse.VariableValue\x12\x1e\n\x11thread_run_number\x18\x06 \x01(\x05H\x01\x88\x01\x01\x12\x1e\n\x11node_run_position\x18\x07 \x01(\x05H\x02\x88\x01\x01\x42\x07\n\x05_guidB\x14\n\x12_thread_run_numberB\x14\n\x12_node_run_positionJ\x04\x08\x04\x10\x05J\x04\x08\x08\x10\t\"F\n\x1a\x44\x65leteExternalEventRequest\x12(\n\x02id\x18\x01 \x01(\x0b\x32\x1c.littlehorse.ExternalEventId\"H\n\x1b\x44\x65leteScheduledWfRunRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x1d.littlehorse.ScheduledWfRunId\"6\n\x12\x44\x65leteWfRunRequest\x12 \n\x02id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\":\n\x14\x44\x65leteTaskDefRequest\x12\"\n\x02id\x18\x01 \x01(\x0b\x32\x16.littlehorse.TaskDefId\"B\n\x18\x44\x65leteUserTaskDefRequest\x12&\n\x02id\x18\x01 \x01(\x0b\x32\x1a.littlehorse.UserTaskDefId\"8\n\x13\x44\x65leteWfSpecRequest\x12!\n\x02id\x18\x01 \x01(\x0b\x32\x15.littlehorse.WfSpecId\"L\n\x1d\x44\x65leteExternalEventDefRequest\x12+\n\x02id\x18\x01 \x01(\x0b\x32\x1f.littlehorse.ExternalEventDefId\"\xe3\x02\n\x0cRunWfRequest\x12\x14\n\x0cwf_spec_name\x18\x01 \x01(\t\x12\x1a\n\rmajor_version\x18\x02 \x01(\x05H\x00\x88\x01\x01\x12\x15\n\x08revision\x18\x03 \x01(\x05H\x01\x88\x01\x01\x12;\n\tvariables\x18\x04 \x03(\x0b\x32(.littlehorse.RunWfRequest.VariablesEntry\x12\x0f\n\x02id\x18\x05 \x01(\tH\x02\x88\x01\x01\x12\x33\n\x10parent_wf_run_id\x18\x06 \x01(\x0b\x32\x14.littlehorse.WfRunIdH\x03\x88\x01\x01\x1aL\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.littlehorse.VariableValue:\x02\x38\x01\x42\x10\n\x0e_major_versionB\x0b\n\t_revisionB\x05\n\x03_idB\x13\n\x11_parent_wf_run_id\"\x86\x03\n\x11ScheduleWfRequest\x12\x0f\n\x02id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x0cwf_spec_name\x18\x02 \x01(\t\x12\x1a\n\rmajor_version\x18\x03 \x01(\x05H\x01\x88\x01\x01\x12\x15\n\x08revision\x18\x04 \x01(\x05H\x02\x88\x01\x01\x12@\n\tvariables\x18\x05 \x03(\x0b\x32-.littlehorse.ScheduleWfRequest.VariablesEntry\x12\x33\n\x10parent_wf_run_id\x18\x06 \x01(\x0b\x32\x14.littlehorse.WfRunIdH\x03\x88\x01\x01\x12\x17\n\x0f\x63ron_expression\x18\x07 \x01(\t\x1aL\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.littlehorse.VariableValue:\x02\x38\x01\x42\x05\n\x03_idB\x10\n\x0e_major_versionB\x0b\n\t_revisionB\x13\n\x11_parent_wf_run_id\"L\n\rVariableMatch\x12\x10\n\x08var_name\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.littlehorse.VariableValue\"\xbd\x01\n\x19\x41waitWorkflowEventRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12\x36\n\revent_def_ids\x18\x02 \x03(\x0b\x32\x1f.littlehorse.WorkflowEventDefId\x12?\n\x19workflow_events_to_ignore\x18\x03 \x03(\x0b\x32\x1c.littlehorse.WorkflowEventId\"\xdf\x03\n\x12SearchWfRunRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x14\n\x0cwf_spec_name\x18\x03 \x01(\t\x12\"\n\x15wf_spec_major_version\x18\x04 \x01(\x05H\x02\x88\x01\x01\x12\x1d\n\x10wf_spec_revision\x18\x05 \x01(\x05H\x03\x88\x01\x01\x12*\n\x06status\x18\x06 \x01(\x0e\x32\x15.littlehorse.LHStatusH\x04\x88\x01\x01\x12\x37\n\x0e\x65\x61rliest_start\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x05\x88\x01\x01\x12\x35\n\x0clatest_start\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x06\x88\x01\x01\x12\x34\n\x10variable_filters\x18\t \x03(\x0b\x32\x1a.littlehorse.VariableMatchB\x0b\n\t_bookmarkB\x08\n\x06_limitB\x18\n\x16_wf_spec_major_versionB\x13\n\x11_wf_spec_revisionB\t\n\x07_statusB\x11\n\x0f_earliest_startB\x0f\n\r_latest_start\"X\n\x0bWfRunIdList\x12%\n\x07results\x18\x01 \x03(\x0b\x32\x14.littlehorse.WfRunId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\xbc\x02\n\x14SearchTaskRunRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x15\n\rtask_def_name\x18\x03 \x01(\t\x12,\n\x06status\x18\x04 \x01(\x0e\x32\x17.littlehorse.TaskStatusH\x02\x88\x01\x01\x12\x37\n\x0e\x65\x61rliest_start\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x03\x88\x01\x01\x12\x35\n\x0clatest_start\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x04\x88\x01\x01\x42\x0b\n\t_bookmarkB\x08\n\x06_limitB\t\n\x07_statusB\x11\n\x0f_earliest_startB\x0f\n\r_latest_start\"\\\n\rTaskRunIdList\x12\'\n\x07results\x18\x01 \x03(\x0b\x32\x16.littlehorse.TaskRunId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\xf1\x03\n\x14SearchNodeRunRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x37\n\x0e\x65\x61rliest_start\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x02\x88\x01\x01\x12\x35\n\x0clatest_start\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x03\x88\x01\x01\x12=\n\tnode_type\x18\x05 \x01(\x0e\x32*.littlehorse.SearchNodeRunRequest.NodeType\x12%\n\x06status\x18\x06 \x01(\x0e\x32\x15.littlehorse.LHStatus\"\x9c\x01\n\x08NodeType\x12\x08\n\x04TASK\x10\x00\x12\x12\n\x0e\x45XTERNAL_EVENT\x10\x01\x12\x0e\n\nENTRYPOINT\x10\x02\x12\x08\n\x04\x45XIT\x10\x03\x12\x10\n\x0cSTART_THREAD\x10\x04\x12\x10\n\x0cWAIT_THREADS\x10\x05\x12\t\n\x05SLEEP\x10\x06\x12\r\n\tUSER_TASK\x10\x07\x12\x1a\n\x16START_MULTIPLE_THREADS\x10\x08\x42\x0b\n\t_bookmarkB\x08\n\x06_limitB\x11\n\x0f_earliest_startB\x0f\n\r_latest_start\"\\\n\rNodeRunIdList\x12\'\n\x07results\x18\x01 \x03(\x0b\x32\x16.littlehorse.NodeRunId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\xb2\x03\n\x18SearchUserTaskRunRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x33\n\x06status\x18\x03 \x01(\x0e\x32\x1e.littlehorse.UserTaskRunStatusH\x02\x88\x01\x01\x12\x1f\n\x12user_task_def_name\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x07user_id\x18\x05 \x01(\tH\x04\x88\x01\x01\x12\x17\n\nuser_group\x18\x06 \x01(\tH\x05\x88\x01\x01\x12\x37\n\x0e\x65\x61rliest_start\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x06\x88\x01\x01\x12\x35\n\x0clatest_start\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x07\x88\x01\x01\x42\x0b\n\t_bookmarkB\x08\n\x06_limitB\t\n\x07_statusB\x15\n\x13_user_task_def_nameB\n\n\x08_user_idB\r\n\x0b_user_groupB\x11\n\x0f_earliest_startB\x0f\n\r_latest_start\"d\n\x11UserTaskRunIdList\x12+\n\x07results\x18\x01 \x03(\x0b\x32\x1a.littlehorse.UserTaskRunId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\x9e\x02\n\x15SearchVariableRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12)\n\x05value\x18\x03 \x01(\x0b\x32\x1a.littlehorse.VariableValue\x12\"\n\x15wf_spec_major_version\x18\x04 \x01(\x05H\x02\x88\x01\x01\x12\x1d\n\x10wf_spec_revision\x18\x05 \x01(\x05H\x03\x88\x01\x01\x12\x10\n\x08var_name\x18\x06 \x01(\t\x12\x14\n\x0cwf_spec_name\x18\x07 \x01(\tB\x0b\n\t_bookmarkB\x08\n\x06_limitB\x18\n\x16_wf_spec_major_versionB\x13\n\x11_wf_spec_revision\"^\n\x0eVariableIdList\x12(\n\x07results\x18\x01 \x03(\x0b\x32\x17.littlehorse.VariableId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"x\n\x14SearchTaskDefRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x13\n\x06prefix\x18\x03 \x01(\tH\x02\x88\x01\x01\x42\x0b\n\t_bookmarkB\x08\n\x06_limitB\t\n\x07_prefix\"\\\n\rTaskDefIdList\x12\'\n\x07results\x18\x01 \x03(\x0b\x32\x16.littlehorse.TaskDefId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\x98\x01\n\x18SearchUserTaskDefRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x02\x88\x01\x01\x12\x10\n\x06prefix\x18\x03 \x01(\tH\x00\x12\x0e\n\x04name\x18\x04 \x01(\tH\x00\x42\x18\n\x16user_task_def_criteriaB\x0b\n\t_bookmarkB\x08\n\x06_limit\"d\n\x11UserTaskDefIdList\x12+\n\x07results\x18\x01 \x03(\x0b\x32\x1a.littlehorse.UserTaskDefId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\xa6\x01\n\x13SearchWfSpecRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x02\x88\x01\x01\x12\x0e\n\x04name\x18\x03 \x01(\tH\x00\x12\x10\n\x06prefix\x18\x04 \x01(\tH\x00\x12\x17\n\rtask_def_name\x18\x05 \x01(\tH\x00\x42\x12\n\x10wf_spec_criteriaB\x0b\n\t_bookmarkB\x08\n\x06_limit\"Z\n\x0cWfSpecIdList\x12&\n\x07results\x18\x01 \x03(\x0b\x32\x15.littlehorse.WfSpecId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\x81\x01\n\x1dSearchExternalEventDefRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x13\n\x06prefix\x18\x03 \x01(\tH\x02\x88\x01\x01\x42\x0b\n\t_bookmarkB\x08\n\x06_limitB\t\n\x07_prefix\"n\n\x16\x45xternalEventDefIdList\x12\x30\n\x07results\x18\x01 \x03(\x0b\x32\x1f.littlehorse.ExternalEventDefId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"W\n\x13SearchTenantRequest\x12\x12\n\x05limit\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x42\x08\n\x06_limitB\x0b\n\t_bookmark\"Z\n\x0cTenantIdList\x12&\n\x07results\x18\x01 \x03(\x0b\x32\x15.littlehorse.TenantId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\xab\x02\n\x16SearchPrincipalRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x02\x88\x01\x01\x12\x37\n\x0e\x65\x61rliest_start\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x03\x88\x01\x01\x12\x35\n\x0clatest_start\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x04\x88\x01\x01\x12\x11\n\x07isAdmin\x18\x05 \x01(\x08H\x00\x12\x12\n\x08tenantId\x18\x06 \x01(\tH\x00\x42\x14\n\x12principal_criteriaB\x0b\n\t_bookmarkB\x08\n\x06_limitB\x11\n\x0f_earliest_startB\x0f\n\r_latest_start\"`\n\x0fPrincipalIdList\x12)\n\x07results\x18\x01 \x03(\x0b\x32\x18.littlehorse.PrincipalId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\xda\x02\n\x1aSearchExternalEventRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x37\n\x0e\x65\x61rliest_start\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x02\x88\x01\x01\x12\x35\n\x0clatest_start\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x03\x88\x01\x01\x12>\n\x15\x65xternal_event_def_id\x18\x05 \x01(\x0b\x32\x1f.littlehorse.ExternalEventDefId\x12\x17\n\nis_claimed\x18\x06 \x01(\x08H\x04\x88\x01\x01\x42\x0b\n\t_bookmarkB\x08\n\x06_limitB\x11\n\x0f_earliest_startB\x0f\n\r_latest_startB\r\n\x0b_is_claimed\"h\n\x13\x45xternalEventIdList\x12-\n\x07results\x18\x01 \x03(\x0b\x32\x1c.littlehorse.ExternalEventId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\xb6\x01\n\x13ListNodeRunsRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12\x1e\n\x11thread_run_number\x18\x02 \x01(\x05H\x00\x88\x01\x01\x12\x15\n\x08\x62ookmark\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\x05limit\x18\x04 \x01(\x05H\x02\x88\x01\x01\x42\x14\n\x12_thread_run_numberB\x0b\n\t_bookmarkB\x08\n\x06_limit\"X\n\x0bNodeRunList\x12%\n\x07results\x18\x01 \x03(\x0b\x32\x14.littlehorse.NodeRun\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"?\n\x14ListVariablesRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\"6\n\x0cVariableList\x12&\n\x07results\x18\x01 \x03(\x0b\x32\x15.littlehorse.Variable\"D\n\x19ListExternalEventsRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\"@\n\x11\x45xternalEventList\x12+\n\x07results\x18\x01 \x03(\x0b\x32\x1a.littlehorse.ExternalEvent\"`\n\x19RegisterTaskWorkerRequest\x12\x16\n\x0etask_worker_id\x18\x01 \x01(\t\x12+\n\x0btask_def_id\x18\x02 \x01(\x0b\x32\x16.littlehorse.TaskDefId\"s\n\x1aTaskWorkerHeartBeatRequest\x12\x11\n\tclient_id\x18\x01 \x01(\t\x12+\n\x0btask_def_id\x18\x02 \x01(\x0b\x32\x16.littlehorse.TaskDefId\x12\x15\n\rlistener_name\x18\x03 \x01(\t\"\x81\x01\n\x1aRegisterTaskWorkerResponse\x12+\n\nyour_hosts\x18\x01 \x03(\x0b\x32\x17.littlehorse.LHHostInfo\x12\x1f\n\x12is_cluster_healthy\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x15\n\x13_is_cluster_healthy\"(\n\nLHHostInfo\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\x05\"\x8b\x01\n\x0fPollTaskRequest\x12+\n\x0btask_def_id\x18\x01 \x01(\x0b\x32\x16.littlehorse.TaskDefId\x12\x11\n\tclient_id\x18\x02 \x01(\t\x12 \n\x13task_worker_version\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x16\n\x14_task_worker_version\"\x8c\x02\n\rScheduledTask\x12+\n\x0btask_run_id\x18\x01 \x01(\x0b\x32\x16.littlehorse.TaskRunId\x12+\n\x0btask_def_id\x18\x02 \x01(\x0b\x32\x16.littlehorse.TaskDefId\x12\x16\n\x0e\x61ttempt_number\x18\x03 \x01(\x05\x12-\n\tvariables\x18\x04 \x03(\x0b\x32\x1a.littlehorse.VarNameAndVal\x12.\n\ncreated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12*\n\x06source\x18\x06 \x01(\x0b\x32\x1a.littlehorse.TaskRunSource\"N\n\x10PollTaskResponse\x12/\n\x06result\x18\x01 \x01(\x0b\x32\x1a.littlehorse.ScheduledTaskH\x00\x88\x01\x01\x42\t\n\x07_result\"\x81\x03\n\rReportTaskRun\x12+\n\x0btask_run_id\x18\x01 \x01(\x0b\x32\x16.littlehorse.TaskRunId\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x06status\x18\x03 \x01(\x0e\x32\x17.littlehorse.TaskStatus\x12\x33\n\nlog_output\x18\x05 \x01(\x0b\x32\x1a.littlehorse.VariableValueH\x01\x88\x01\x01\x12\x16\n\x0e\x61ttempt_number\x18\x06 \x01(\x05\x12,\n\x06output\x18\x04 \x01(\x0b\x32\x1a.littlehorse.VariableValueH\x00\x12)\n\x05\x65rror\x18\x07 \x01(\x0b\x32\x18.littlehorse.LHTaskErrorH\x00\x12\x31\n\texception\x18\x08 \x01(\x0b\x32\x1c.littlehorse.LHTaskExceptionH\x00\x42\x08\n\x06resultB\r\n\x0b_log_output\"V\n\x10StopWfRunRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12\x19\n\x11thread_run_number\x18\x02 \x01(\x05\"X\n\x12ResumeWfRunRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12\x19\n\x11thread_run_number\x18\x02 \x01(\x05\"w\n\x16RescueThreadRunRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12\x19\n\x11thread_run_number\x18\x02 \x01(\x05\x12\x19\n\x11skip_current_node\x18\x03 \x01(\x08\"\xb3\x01\n\x1aTaskDefMetricsQueryRequest\x12\x30\n\x0cwindow_start\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x0bwindow_type\x18\x02 \x01(\x0e\x32 .littlehorse.MetricsWindowLength\x12\x1a\n\rtask_def_name\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x10\n\x0e_task_def_name\"\xca\x01\n\x16ListTaskMetricsRequest\x12+\n\x0btask_def_id\x18\x01 \x01(\x0b\x32\x16.littlehorse.TaskDefId\x12\x35\n\x11last_window_start\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\rwindow_length\x18\x03 \x01(\x0e\x32 .littlehorse.MetricsWindowLength\x12\x13\n\x0bnum_windows\x18\x04 \x01(\x05\"G\n\x17ListTaskMetricsResponse\x12,\n\x07results\x18\x01 \x03(\x0b\x32\x1b.littlehorse.TaskDefMetrics\"\xb1\x01\n\x19WfSpecMetricsQueryRequest\x12)\n\nwf_spec_id\x18\x01 \x01(\x0b\x32\x15.littlehorse.WfSpecId\x12\x30\n\x0cwindow_start\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\rwindow_length\x18\x03 \x01(\x0e\x32 .littlehorse.MetricsWindowLength\"\xc6\x01\n\x14ListWfMetricsRequest\x12)\n\nwf_spec_id\x18\x01 \x01(\x0b\x32\x15.littlehorse.WfSpecId\x12\x35\n\x11last_window_start\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\rwindow_length\x18\x03 \x01(\x0e\x32 .littlehorse.MetricsWindowLength\x12\x13\n\x0bnum_windows\x18\x04 \x01(\x05\"D\n\x15ListWfMetricsResponse\x12+\n\x07results\x18\x01 \x03(\x0b\x32\x1a.littlehorse.WfSpecMetrics\"\xfb\x02\n\x0eTaskDefMetrics\x12+\n\x0btask_def_id\x18\x01 \x01(\x0b\x32\x16.littlehorse.TaskDefId\x12\x30\n\x0cwindow_start\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\x04type\x18\x03 \x01(\x0e\x32 .littlehorse.MetricsWindowLength\x12\x1d\n\x15schedule_to_start_max\x18\x04 \x01(\x03\x12\x1d\n\x15schedule_to_start_avg\x18\x05 \x01(\x03\x12\x1d\n\x15start_to_complete_max\x18\x06 \x01(\x03\x12\x1d\n\x15start_to_complete_avg\x18\x07 \x01(\x03\x12\x17\n\x0ftotal_completed\x18\x08 \x01(\x03\x12\x15\n\rtotal_errored\x18\t \x01(\x03\x12\x15\n\rtotal_started\x18\n \x01(\x03\x12\x17\n\x0ftotal_scheduled\x18\x0b \x01(\x03\"\xa1\x02\n\rWfSpecMetrics\x12)\n\nwf_spec_id\x18\x01 \x01(\x0b\x32\x15.littlehorse.WfSpecId\x12\x30\n\x0cwindow_start\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\x04type\x18\x03 \x01(\x0e\x32 .littlehorse.MetricsWindowLength\x12\x15\n\rtotal_started\x18\x04 \x01(\x03\x12\x17\n\x0ftotal_completed\x18\x05 \x01(\x03\x12\x15\n\rtotal_errored\x18\x06 \x01(\x03\x12\x1d\n\x15start_to_complete_max\x18\x07 \x01(\x03\x12\x1d\n\x15start_to_complete_avg\x18\x08 \x01(\x03\"A\n\x16ListUserTaskRunRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\"<\n\x0fUserTaskRunList\x12)\n\x07results\x18\x01 \x03(\x0b\x32\x18.littlehorse.UserTaskRun\"F\n\x14ScheduledWfRunIdList\x12.\n\x07results\x18\x01 \x03(\x0b\x32\x1d.littlehorse.ScheduledWfRunId\"\x85\x01\n\x1bSearchScheduledWfRunRequest\x12\x14\n\x0cwf_spec_name\x18\x01 \x01(\t\x12\x1a\n\rmajor_version\x18\x02 \x01(\x05H\x00\x88\x01\x01\x12\x15\n\x08revision\x18\x03 \x01(\x05H\x01\x88\x01\x01\x42\x10\n\x0e_major_versionB\x0b\n\t_revision\"\x8a\x01\n\x12TaskWorkerMetadata\x12\x16\n\x0etask_worker_id\x18\x01 \x01(\t\x12\x34\n\x10latest_heartbeat\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x05hosts\x18\x03 \x03(\x0b\x32\x17.littlehorse.LHHostInfo\"\x87\x02\n\x0fTaskWorkerGroup\x12*\n\x02id\x18\x01 \x01(\x0b\x32\x1e.littlehorse.TaskWorkerGroupId\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x0ctask_workers\x18\x03 \x03(\x0b\x32-.littlehorse.TaskWorkerGroup.TaskWorkersEntry\x1aS\n\x10TaskWorkersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.littlehorse.TaskWorkerMetadata:\x02\x38\x01\">\n\x13ListTaskRunsRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\"4\n\x0bTaskRunList\x12%\n\x07results\x18\x01 \x03(\x0b\x32\x14.littlehorse.TaskRun\"z\n\x14MigrateWfSpecRequest\x12*\n\x0bold_wf_spec\x18\x01 \x01(\x0b\x32\x15.littlehorse.WfSpecId\x12\x36\n\tmigration\x18\x02 \x01(\x0b\x32#.littlehorse.WfSpecVersionMigration\"T\n\x16GetLatestWfSpecRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1a\n\rmajor_version\x18\x02 \x01(\x05H\x00\x88\x01\x01\x42\x10\n\x0e_major_version\"\x9c\x01\n\x15ServerVersionResponse\x12\x15\n\rmajor_version\x18\x01 \x01(\x05\x12\x15\n\rminor_version\x18\x02 \x01(\x05\x12\x15\n\rpatch_version\x18\x03 \x01(\x05\x12#\n\x16pre_release_identifier\x18\x04 \x01(\tH\x00\x88\x01\x01\x42\x19\n\x17_pre_release_identifier*P\n\x11\x41llowedUpdateType\x12\x0f\n\x0b\x41LL_UPDATES\x10\x00\x12\x1a\n\x16MINOR_REVISION_UPDATES\x10\x01\x12\x0e\n\nNO_UPDATES\x10\x02\x32\xb8+\n\x0bLittleHorse\x12\x44\n\nPutTaskDef\x12\x1e.littlehorse.PutTaskDefRequest\x1a\x14.littlehorse.TaskDef\"\x00\x12<\n\nGetTaskDef\x12\x16.littlehorse.TaskDefId\x1a\x14.littlehorse.TaskDef\"\x00\x12L\n\x12GetTaskWorkerGroup\x12\x16.littlehorse.TaskDefId\x1a\x1c.littlehorse.TaskWorkerGroup\"\x00\x12_\n\x13PutExternalEventDef\x12\'.littlehorse.PutExternalEventDefRequest\x1a\x1d.littlehorse.ExternalEventDef\"\x00\x12W\n\x13GetExternalEventDef\x12\x1f.littlehorse.ExternalEventDefId\x1a\x1d.littlehorse.ExternalEventDef\"\x00\x12_\n\x13PutWorkflowEventDef\x12\'.littlehorse.PutWorkflowEventDefRequest\x1a\x1d.littlehorse.WorkflowEventDef\"\x00\x12\x41\n\tPutWfSpec\x12\x1d.littlehorse.PutWfSpecRequest\x1a\x13.littlehorse.WfSpec\"\x00\x12\x39\n\tGetWfSpec\x12\x15.littlehorse.WfSpecId\x1a\x13.littlehorse.WfSpec\"\x00\x12M\n\x0fGetLatestWfSpec\x12#.littlehorse.GetLatestWfSpecRequest\x1a\x13.littlehorse.WfSpec\"\x00\x12I\n\rMigrateWfSpec\x12!.littlehorse.MigrateWfSpecRequest\x1a\x13.littlehorse.WfSpec\"\x00\x12P\n\x0ePutUserTaskDef\x12\".littlehorse.PutUserTaskDefRequest\x1a\x18.littlehorse.UserTaskDef\"\x00\x12H\n\x0eGetUserTaskDef\x12\x1a.littlehorse.UserTaskDefId\x1a\x18.littlehorse.UserTaskDef\"\x00\x12\\\n\x14GetLatestUserTaskDef\x12(.littlehorse.GetLatestUserTaskDefRequest\x1a\x18.littlehorse.UserTaskDef\"\x00\x12\x38\n\x05RunWf\x12\x19.littlehorse.RunWfRequest\x1a\x12.littlehorse.WfRun\"\x00\x12K\n\nScheduleWf\x12\x1e.littlehorse.ScheduleWfRequest\x1a\x1b.littlehorse.ScheduledWfRun\"\x00\x12\x65\n\x14SearchScheduledWfRun\x12(.littlehorse.SearchScheduledWfRunRequest\x1a!.littlehorse.ScheduledWfRunIdList\"\x00\x12Q\n\x11GetScheduledWfRun\x12\x1d.littlehorse.ScheduledWfRunId\x1a\x1b.littlehorse.ScheduledWfRun\"\x00\x12\x36\n\x08GetWfRun\x12\x14.littlehorse.WfRunId\x1a\x12.littlehorse.WfRun\"\x00\x12H\n\x0eGetUserTaskRun\x12\x1a.littlehorse.UserTaskRunId\x1a\x18.littlehorse.UserTaskRun\"\x00\x12T\n\x11\x41ssignUserTaskRun\x12%.littlehorse.AssignUserTaskRunRequest\x1a\x16.google.protobuf.Empty\"\x00\x12X\n\x13\x43ompleteUserTaskRun\x12\'.littlehorse.CompleteUserTaskRunRequest\x1a\x16.google.protobuf.Empty\"\x00\x12T\n\x11\x43\x61ncelUserTaskRun\x12%.littlehorse.CancelUserTaskRunRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x62\n\x17SaveUserTaskRunProgress\x12+.littlehorse.SaveUserTaskRunProgressRequest\x1a\x18.littlehorse.UserTaskRun\"\x00\x12W\n\x10ListUserTaskRuns\x12#.littlehorse.ListUserTaskRunRequest\x1a\x1c.littlehorse.UserTaskRunList\"\x00\x12<\n\nGetNodeRun\x12\x16.littlehorse.NodeRunId\x1a\x14.littlehorse.NodeRun\"\x00\x12L\n\x0cListNodeRuns\x12 .littlehorse.ListNodeRunsRequest\x1a\x18.littlehorse.NodeRunList\"\x00\x12<\n\nGetTaskRun\x12\x16.littlehorse.TaskRunId\x1a\x14.littlehorse.TaskRun\"\x00\x12L\n\x0cListTaskRuns\x12 .littlehorse.ListTaskRunsRequest\x1a\x18.littlehorse.TaskRunList\"\x00\x12?\n\x0bGetVariable\x12\x17.littlehorse.VariableId\x1a\x15.littlehorse.Variable\"\x00\x12O\n\rListVariables\x12!.littlehorse.ListVariablesRequest\x1a\x19.littlehorse.VariableList\"\x00\x12V\n\x10PutExternalEvent\x12$.littlehorse.PutExternalEventRequest\x1a\x1a.littlehorse.ExternalEvent\"\x00\x12N\n\x10GetExternalEvent\x12\x1c.littlehorse.ExternalEventId\x1a\x1a.littlehorse.ExternalEvent\"\x00\x12Z\n\x12\x41waitWorkflowEvent\x12&.littlehorse.AwaitWorkflowEventRequest\x1a\x1a.littlehorse.WorkflowEvent\"\x00\x12^\n\x12ListExternalEvents\x12&.littlehorse.ListExternalEventsRequest\x1a\x1e.littlehorse.ExternalEventList\"\x00\x12J\n\x0bSearchWfRun\x12\x1f.littlehorse.SearchWfRunRequest\x1a\x18.littlehorse.WfRunIdList\"\x00\x12P\n\rSearchNodeRun\x12!.littlehorse.SearchNodeRunRequest\x1a\x1a.littlehorse.NodeRunIdList\"\x00\x12P\n\rSearchTaskRun\x12!.littlehorse.SearchTaskRunRequest\x1a\x1a.littlehorse.TaskRunIdList\"\x00\x12\\\n\x11SearchUserTaskRun\x12%.littlehorse.SearchUserTaskRunRequest\x1a\x1e.littlehorse.UserTaskRunIdList\"\x00\x12S\n\x0eSearchVariable\x12\".littlehorse.SearchVariableRequest\x1a\x1b.littlehorse.VariableIdList\"\x00\x12\x62\n\x13SearchExternalEvent\x12\'.littlehorse.SearchExternalEventRequest\x1a .littlehorse.ExternalEventIdList\"\x00\x12P\n\rSearchTaskDef\x12!.littlehorse.SearchTaskDefRequest\x1a\x1a.littlehorse.TaskDefIdList\"\x00\x12\\\n\x11SearchUserTaskDef\x12%.littlehorse.SearchUserTaskDefRequest\x1a\x1e.littlehorse.UserTaskDefIdList\"\x00\x12M\n\x0cSearchWfSpec\x12 .littlehorse.SearchWfSpecRequest\x1a\x19.littlehorse.WfSpecIdList\"\x00\x12k\n\x16SearchExternalEventDef\x12*.littlehorse.SearchExternalEventDefRequest\x1a#.littlehorse.ExternalEventDefIdList\"\x00\x12M\n\x0cSearchTenant\x12 .littlehorse.SearchTenantRequest\x1a\x19.littlehorse.TenantIdList\"\x00\x12V\n\x0fSearchPrincipal\x12#.littlehorse.SearchPrincipalRequest\x1a\x1c.littlehorse.PrincipalIdList\"\x00\x12g\n\x12RegisterTaskWorker\x12&.littlehorse.RegisterTaskWorkerRequest\x1a\'.littlehorse.RegisterTaskWorkerResponse\"\x00\x12M\n\x08PollTask\x12\x1c.littlehorse.PollTaskRequest\x1a\x1d.littlehorse.PollTaskResponse\"\x00(\x01\x30\x01\x12\x42\n\nReportTask\x12\x1a.littlehorse.ReportTaskRun\x1a\x16.google.protobuf.Empty\"\x00\x12\x44\n\tStopWfRun\x12\x1d.littlehorse.StopWfRunRequest\x1a\x16.google.protobuf.Empty\"\x00\x12H\n\x0bResumeWfRun\x12\x1f.littlehorse.ResumeWfRunRequest\x1a\x16.google.protobuf.Empty\"\x00\x12L\n\x0fRescueThreadRun\x12#.littlehorse.RescueThreadRunRequest\x1a\x12.littlehorse.WfRun\"\x00\x12H\n\x0b\x44\x65leteWfRun\x12\x1f.littlehorse.DeleteWfRunRequest\x1a\x16.google.protobuf.Empty\"\x00\x12L\n\rDeleteTaskDef\x12!.littlehorse.DeleteTaskDefRequest\x1a\x16.google.protobuf.Empty\"\x00\x12J\n\x0c\x44\x65leteWfSpec\x12 .littlehorse.DeleteWfSpecRequest\x1a\x16.google.protobuf.Empty\"\x00\x12T\n\x11\x44\x65leteUserTaskDef\x12%.littlehorse.DeleteUserTaskDefRequest\x1a\x16.google.protobuf.Empty\"\x00\x12^\n\x16\x44\x65leteExternalEventDef\x12*.littlehorse.DeleteExternalEventDefRequest\x1a\x16.google.protobuf.Empty\"\x00\x12P\n\x0f\x44\x65letePrincipal\x12#.littlehorse.DeletePrincipalRequest\x1a\x16.google.protobuf.Empty\"\x00\x12Z\n\x14\x44\x65leteScheduledWfRun\x12(.littlehorse.DeleteScheduledWfRunRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x61\n\x17GetTaskDefMetricsWindow\x12\'.littlehorse.TaskDefMetricsQueryRequest\x1a\x1b.littlehorse.TaskDefMetrics\"\x00\x12^\n\x16GetWfSpecMetricsWindow\x12&.littlehorse.WfSpecMetricsQueryRequest\x1a\x1a.littlehorse.WfSpecMetrics\"\x00\x12\x61\n\x12ListTaskDefMetrics\x12#.littlehorse.ListTaskMetricsRequest\x1a$.littlehorse.ListTaskMetricsResponse\"\x00\x12\\\n\x11ListWfSpecMetrics\x12!.littlehorse.ListWfMetricsRequest\x1a\".littlehorse.ListWfMetricsResponse\"\x00\x12\x41\n\tPutTenant\x12\x1d.littlehorse.PutTenantRequest\x1a\x13.littlehorse.Tenant\"\x00\x12\x39\n\tGetTenant\x12\x15.littlehorse.TenantId\x1a\x13.littlehorse.Tenant\"\x00\x12J\n\x0cPutPrincipal\x12 .littlehorse.PutPrincipalRequest\x1a\x16.littlehorse.Principal\"\x00\x12:\n\x06Whoami\x12\x16.google.protobuf.Empty\x1a\x16.littlehorse.Principal\"\x00\x12P\n\x10GetServerVersion\x12\x16.google.protobuf.Empty\x1a\".littlehorse.ServerVersionResponse\"\x00\x42I\n\x1fio.littlehorse.sdk.common.protoP\x01Z\t.;lhproto\xaa\x02\x18LittleHorse.Common.Protob\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rservice.proto\x12\x0blittlehorse\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x13\x63ommon_wfspec.proto\x1a\x12\x63ommon_enums.proto\x1a\x0fobject_id.proto\x1a\x0evariable.proto\x1a\x14\x65xternal_event.proto\x1a\x0cwf_run.proto\x1a\x0enode_run.proto\x1a\x0etask_run.proto\x1a\x10user_tasks.proto\x1a\rwf_spec.proto\x1a\x0etask_def.proto\x1a\nacls.proto\x1a\x14workflow_event.proto\x1a\x16scheduled_wf_run.proto\"+\n\x1bGetLatestUserTaskDefRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xd3\x03\n\x10PutWfSpecRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x44\n\x0cthread_specs\x18\x05 \x03(\x0b\x32..littlehorse.PutWfSpecRequest.ThreadSpecsEntry\x12\x1e\n\x16\x65ntrypoint_thread_name\x18\x06 \x01(\t\x12\x43\n\x10retention_policy\x18\x08 \x01(\x0b\x32$.littlehorse.WorkflowRetentionPolicyH\x00\x88\x01\x01\x12\x46\n\x0eparent_wf_spec\x18\t \x01(\x0b\x32).littlehorse.WfSpec.ParentWfSpecReferenceH\x01\x88\x01\x01\x12\x37\n\x0f\x61llowed_updates\x18\n \x01(\x0e\x32\x1e.littlehorse.AllowedUpdateType\x1aK\n\x10ThreadSpecsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.littlehorse.ThreadSpec:\x02\x38\x01\x42\x13\n\x11_retention_policyB\x11\n\x0f_parent_wf_specJ\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05\"\x9f\x01\n\x11PutTaskDefRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12,\n\ninput_vars\x18\x02 \x03(\x0b\x32\x18.littlehorse.VariableDef\x12<\n\routput_schema\x18\x03 \x01(\x0b\x32 .littlehorse.TaskDefOutputSchemaH\x00\x88\x01\x01\x42\x10\n\x0e_output_schema\"\x91\x01\n\x1aPutWorkflowEventDefRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0eprimitive_type\x18\x02 \x01(\x0e\x32\x1a.littlehorse.PrimitiveTypeH\x00\x12\'\n\x06schema\x18\x03 \x01(\x0b\x32\x15.littlehorse.SchemaIdH\x00\x42\x06\n\x04type\"{\n\x15PutUserTaskDefRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12*\n\x06\x66ields\x18\x02 \x03(\x0b\x32\x1a.littlehorse.UserTaskField\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_description\"o\n\x1aPutExternalEventDefRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x43\n\x10retention_policy\x18\x02 \x01(\x0b\x32).littlehorse.ExternalEventRetentionPolicy\"\xc3\x02\n\x17PutExternalEventRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12>\n\x15\x65xternal_event_def_id\x18\x02 \x01(\x0b\x32\x1f.littlehorse.ExternalEventDefId\x12\x11\n\x04guid\x18\x03 \x01(\tH\x00\x88\x01\x01\x12+\n\x07\x63ontent\x18\x05 \x01(\x0b\x32\x1a.littlehorse.VariableValue\x12\x1e\n\x11thread_run_number\x18\x06 \x01(\x05H\x01\x88\x01\x01\x12\x1e\n\x11node_run_position\x18\x07 \x01(\x05H\x02\x88\x01\x01\x42\x07\n\x05_guidB\x14\n\x12_thread_run_numberB\x14\n\x12_node_run_positionJ\x04\x08\x04\x10\x05J\x04\x08\x08\x10\t\"F\n\x1a\x44\x65leteExternalEventRequest\x12(\n\x02id\x18\x01 \x01(\x0b\x32\x1c.littlehorse.ExternalEventId\"H\n\x1b\x44\x65leteScheduledWfRunRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x1d.littlehorse.ScheduledWfRunId\"6\n\x12\x44\x65leteWfRunRequest\x12 \n\x02id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\":\n\x14\x44\x65leteTaskDefRequest\x12\"\n\x02id\x18\x01 \x01(\x0b\x32\x16.littlehorse.TaskDefId\"B\n\x18\x44\x65leteUserTaskDefRequest\x12&\n\x02id\x18\x01 \x01(\x0b\x32\x1a.littlehorse.UserTaskDefId\"8\n\x13\x44\x65leteWfSpecRequest\x12!\n\x02id\x18\x01 \x01(\x0b\x32\x15.littlehorse.WfSpecId\"L\n\x1d\x44\x65leteExternalEventDefRequest\x12+\n\x02id\x18\x01 \x01(\x0b\x32\x1f.littlehorse.ExternalEventDefId\"\xe3\x02\n\x0cRunWfRequest\x12\x14\n\x0cwf_spec_name\x18\x01 \x01(\t\x12\x1a\n\rmajor_version\x18\x02 \x01(\x05H\x00\x88\x01\x01\x12\x15\n\x08revision\x18\x03 \x01(\x05H\x01\x88\x01\x01\x12;\n\tvariables\x18\x04 \x03(\x0b\x32(.littlehorse.RunWfRequest.VariablesEntry\x12\x0f\n\x02id\x18\x05 \x01(\tH\x02\x88\x01\x01\x12\x33\n\x10parent_wf_run_id\x18\x06 \x01(\x0b\x32\x14.littlehorse.WfRunIdH\x03\x88\x01\x01\x1aL\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.littlehorse.VariableValue:\x02\x38\x01\x42\x10\n\x0e_major_versionB\x0b\n\t_revisionB\x05\n\x03_idB\x13\n\x11_parent_wf_run_id\"\x86\x03\n\x11ScheduleWfRequest\x12\x0f\n\x02id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x0cwf_spec_name\x18\x02 \x01(\t\x12\x1a\n\rmajor_version\x18\x03 \x01(\x05H\x01\x88\x01\x01\x12\x15\n\x08revision\x18\x04 \x01(\x05H\x02\x88\x01\x01\x12@\n\tvariables\x18\x05 \x03(\x0b\x32-.littlehorse.ScheduleWfRequest.VariablesEntry\x12\x33\n\x10parent_wf_run_id\x18\x06 \x01(\x0b\x32\x14.littlehorse.WfRunIdH\x03\x88\x01\x01\x12\x17\n\x0f\x63ron_expression\x18\x07 \x01(\t\x1aL\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.littlehorse.VariableValue:\x02\x38\x01\x42\x05\n\x03_idB\x10\n\x0e_major_versionB\x0b\n\t_revisionB\x13\n\x11_parent_wf_run_id\"L\n\rVariableMatch\x12\x10\n\x08var_name\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.littlehorse.VariableValue\"\xbd\x01\n\x19\x41waitWorkflowEventRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12\x36\n\revent_def_ids\x18\x02 \x03(\x0b\x32\x1f.littlehorse.WorkflowEventDefId\x12?\n\x19workflow_events_to_ignore\x18\x03 \x03(\x0b\x32\x1c.littlehorse.WorkflowEventId\"\xdf\x03\n\x12SearchWfRunRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x14\n\x0cwf_spec_name\x18\x03 \x01(\t\x12\"\n\x15wf_spec_major_version\x18\x04 \x01(\x05H\x02\x88\x01\x01\x12\x1d\n\x10wf_spec_revision\x18\x05 \x01(\x05H\x03\x88\x01\x01\x12*\n\x06status\x18\x06 \x01(\x0e\x32\x15.littlehorse.LHStatusH\x04\x88\x01\x01\x12\x37\n\x0e\x65\x61rliest_start\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x05\x88\x01\x01\x12\x35\n\x0clatest_start\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x06\x88\x01\x01\x12\x34\n\x10variable_filters\x18\t \x03(\x0b\x32\x1a.littlehorse.VariableMatchB\x0b\n\t_bookmarkB\x08\n\x06_limitB\x18\n\x16_wf_spec_major_versionB\x13\n\x11_wf_spec_revisionB\t\n\x07_statusB\x11\n\x0f_earliest_startB\x0f\n\r_latest_start\"X\n\x0bWfRunIdList\x12%\n\x07results\x18\x01 \x03(\x0b\x32\x14.littlehorse.WfRunId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\xbc\x02\n\x14SearchTaskRunRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x15\n\rtask_def_name\x18\x03 \x01(\t\x12,\n\x06status\x18\x04 \x01(\x0e\x32\x17.littlehorse.TaskStatusH\x02\x88\x01\x01\x12\x37\n\x0e\x65\x61rliest_start\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x03\x88\x01\x01\x12\x35\n\x0clatest_start\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x04\x88\x01\x01\x42\x0b\n\t_bookmarkB\x08\n\x06_limitB\t\n\x07_statusB\x11\n\x0f_earliest_startB\x0f\n\r_latest_start\"\\\n\rTaskRunIdList\x12\'\n\x07results\x18\x01 \x03(\x0b\x32\x16.littlehorse.TaskRunId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\xf1\x03\n\x14SearchNodeRunRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x37\n\x0e\x65\x61rliest_start\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x02\x88\x01\x01\x12\x35\n\x0clatest_start\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x03\x88\x01\x01\x12=\n\tnode_type\x18\x05 \x01(\x0e\x32*.littlehorse.SearchNodeRunRequest.NodeType\x12%\n\x06status\x18\x06 \x01(\x0e\x32\x15.littlehorse.LHStatus\"\x9c\x01\n\x08NodeType\x12\x08\n\x04TASK\x10\x00\x12\x12\n\x0e\x45XTERNAL_EVENT\x10\x01\x12\x0e\n\nENTRYPOINT\x10\x02\x12\x08\n\x04\x45XIT\x10\x03\x12\x10\n\x0cSTART_THREAD\x10\x04\x12\x10\n\x0cWAIT_THREADS\x10\x05\x12\t\n\x05SLEEP\x10\x06\x12\r\n\tUSER_TASK\x10\x07\x12\x1a\n\x16START_MULTIPLE_THREADS\x10\x08\x42\x0b\n\t_bookmarkB\x08\n\x06_limitB\x11\n\x0f_earliest_startB\x0f\n\r_latest_start\"\\\n\rNodeRunIdList\x12\'\n\x07results\x18\x01 \x03(\x0b\x32\x16.littlehorse.NodeRunId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\xb2\x03\n\x18SearchUserTaskRunRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x33\n\x06status\x18\x03 \x01(\x0e\x32\x1e.littlehorse.UserTaskRunStatusH\x02\x88\x01\x01\x12\x1f\n\x12user_task_def_name\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x14\n\x07user_id\x18\x05 \x01(\tH\x04\x88\x01\x01\x12\x17\n\nuser_group\x18\x06 \x01(\tH\x05\x88\x01\x01\x12\x37\n\x0e\x65\x61rliest_start\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x06\x88\x01\x01\x12\x35\n\x0clatest_start\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x07\x88\x01\x01\x42\x0b\n\t_bookmarkB\x08\n\x06_limitB\t\n\x07_statusB\x15\n\x13_user_task_def_nameB\n\n\x08_user_idB\r\n\x0b_user_groupB\x11\n\x0f_earliest_startB\x0f\n\r_latest_start\"d\n\x11UserTaskRunIdList\x12+\n\x07results\x18\x01 \x03(\x0b\x32\x1a.littlehorse.UserTaskRunId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\x9e\x02\n\x15SearchVariableRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12)\n\x05value\x18\x03 \x01(\x0b\x32\x1a.littlehorse.VariableValue\x12\"\n\x15wf_spec_major_version\x18\x04 \x01(\x05H\x02\x88\x01\x01\x12\x1d\n\x10wf_spec_revision\x18\x05 \x01(\x05H\x03\x88\x01\x01\x12\x10\n\x08var_name\x18\x06 \x01(\t\x12\x14\n\x0cwf_spec_name\x18\x07 \x01(\tB\x0b\n\t_bookmarkB\x08\n\x06_limitB\x18\n\x16_wf_spec_major_versionB\x13\n\x11_wf_spec_revision\"^\n\x0eVariableIdList\x12(\n\x07results\x18\x01 \x03(\x0b\x32\x17.littlehorse.VariableId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"x\n\x14SearchTaskDefRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x13\n\x06prefix\x18\x03 \x01(\tH\x02\x88\x01\x01\x42\x0b\n\t_bookmarkB\x08\n\x06_limitB\t\n\x07_prefix\"\\\n\rTaskDefIdList\x12\'\n\x07results\x18\x01 \x03(\x0b\x32\x16.littlehorse.TaskDefId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\x98\x01\n\x18SearchUserTaskDefRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x02\x88\x01\x01\x12\x10\n\x06prefix\x18\x03 \x01(\tH\x00\x12\x0e\n\x04name\x18\x04 \x01(\tH\x00\x42\x18\n\x16user_task_def_criteriaB\x0b\n\t_bookmarkB\x08\n\x06_limit\"d\n\x11UserTaskDefIdList\x12+\n\x07results\x18\x01 \x03(\x0b\x32\x1a.littlehorse.UserTaskDefId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\xa6\x01\n\x13SearchWfSpecRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x02\x88\x01\x01\x12\x0e\n\x04name\x18\x03 \x01(\tH\x00\x12\x10\n\x06prefix\x18\x04 \x01(\tH\x00\x12\x17\n\rtask_def_name\x18\x05 \x01(\tH\x00\x42\x12\n\x10wf_spec_criteriaB\x0b\n\t_bookmarkB\x08\n\x06_limit\"Z\n\x0cWfSpecIdList\x12&\n\x07results\x18\x01 \x03(\x0b\x32\x15.littlehorse.WfSpecId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\x81\x01\n\x1dSearchExternalEventDefRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x13\n\x06prefix\x18\x03 \x01(\tH\x02\x88\x01\x01\x42\x0b\n\t_bookmarkB\x08\n\x06_limitB\t\n\x07_prefix\"n\n\x16\x45xternalEventDefIdList\x12\x30\n\x07results\x18\x01 \x03(\x0b\x32\x1f.littlehorse.ExternalEventDefId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"W\n\x13SearchTenantRequest\x12\x12\n\x05limit\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x42\x08\n\x06_limitB\x0b\n\t_bookmark\"Z\n\x0cTenantIdList\x12&\n\x07results\x18\x01 \x03(\x0b\x32\x15.littlehorse.TenantId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\xab\x02\n\x16SearchPrincipalRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x02\x88\x01\x01\x12\x37\n\x0e\x65\x61rliest_start\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x03\x88\x01\x01\x12\x35\n\x0clatest_start\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x04\x88\x01\x01\x12\x11\n\x07isAdmin\x18\x05 \x01(\x08H\x00\x12\x12\n\x08tenantId\x18\x06 \x01(\tH\x00\x42\x14\n\x12principal_criteriaB\x0b\n\t_bookmarkB\x08\n\x06_limitB\x11\n\x0f_earliest_startB\x0f\n\r_latest_start\"`\n\x0fPrincipalIdList\x12)\n\x07results\x18\x01 \x03(\x0b\x32\x18.littlehorse.PrincipalId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\xda\x02\n\x1aSearchExternalEventRequest\x12\x15\n\x08\x62ookmark\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x37\n\x0e\x65\x61rliest_start\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x02\x88\x01\x01\x12\x35\n\x0clatest_start\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x03\x88\x01\x01\x12>\n\x15\x65xternal_event_def_id\x18\x05 \x01(\x0b\x32\x1f.littlehorse.ExternalEventDefId\x12\x17\n\nis_claimed\x18\x06 \x01(\x08H\x04\x88\x01\x01\x42\x0b\n\t_bookmarkB\x08\n\x06_limitB\x11\n\x0f_earliest_startB\x0f\n\r_latest_startB\r\n\x0b_is_claimed\"h\n\x13\x45xternalEventIdList\x12-\n\x07results\x18\x01 \x03(\x0b\x32\x1c.littlehorse.ExternalEventId\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"\xb6\x01\n\x13ListNodeRunsRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12\x1e\n\x11thread_run_number\x18\x02 \x01(\x05H\x00\x88\x01\x01\x12\x15\n\x08\x62ookmark\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x12\x12\n\x05limit\x18\x04 \x01(\x05H\x02\x88\x01\x01\x42\x14\n\x12_thread_run_numberB\x0b\n\t_bookmarkB\x08\n\x06_limit\"X\n\x0bNodeRunList\x12%\n\x07results\x18\x01 \x03(\x0b\x32\x14.littlehorse.NodeRun\x12\x15\n\x08\x62ookmark\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_bookmark\"?\n\x14ListVariablesRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\"6\n\x0cVariableList\x12&\n\x07results\x18\x01 \x03(\x0b\x32\x15.littlehorse.Variable\"D\n\x19ListExternalEventsRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\"@\n\x11\x45xternalEventList\x12+\n\x07results\x18\x01 \x03(\x0b\x32\x1a.littlehorse.ExternalEvent\"`\n\x19RegisterTaskWorkerRequest\x12\x16\n\x0etask_worker_id\x18\x01 \x01(\t\x12+\n\x0btask_def_id\x18\x02 \x01(\x0b\x32\x16.littlehorse.TaskDefId\"s\n\x1aTaskWorkerHeartBeatRequest\x12\x11\n\tclient_id\x18\x01 \x01(\t\x12+\n\x0btask_def_id\x18\x02 \x01(\x0b\x32\x16.littlehorse.TaskDefId\x12\x15\n\rlistener_name\x18\x03 \x01(\t\"\x81\x01\n\x1aRegisterTaskWorkerResponse\x12+\n\nyour_hosts\x18\x01 \x03(\x0b\x32\x17.littlehorse.LHHostInfo\x12\x1f\n\x12is_cluster_healthy\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x15\n\x13_is_cluster_healthy\"(\n\nLHHostInfo\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\x05\"\x8b\x01\n\x0fPollTaskRequest\x12+\n\x0btask_def_id\x18\x01 \x01(\x0b\x32\x16.littlehorse.TaskDefId\x12\x11\n\tclient_id\x18\x02 \x01(\t\x12 \n\x13task_worker_version\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x16\n\x14_task_worker_version\"\x8c\x02\n\rScheduledTask\x12+\n\x0btask_run_id\x18\x01 \x01(\x0b\x32\x16.littlehorse.TaskRunId\x12+\n\x0btask_def_id\x18\x02 \x01(\x0b\x32\x16.littlehorse.TaskDefId\x12\x16\n\x0e\x61ttempt_number\x18\x03 \x01(\x05\x12-\n\tvariables\x18\x04 \x03(\x0b\x32\x1a.littlehorse.VarNameAndVal\x12.\n\ncreated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12*\n\x06source\x18\x06 \x01(\x0b\x32\x1a.littlehorse.TaskRunSource\"N\n\x10PollTaskResponse\x12/\n\x06result\x18\x01 \x01(\x0b\x32\x1a.littlehorse.ScheduledTaskH\x00\x88\x01\x01\x42\t\n\x07_result\"\x81\x03\n\rReportTaskRun\x12+\n\x0btask_run_id\x18\x01 \x01(\x0b\x32\x16.littlehorse.TaskRunId\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x06status\x18\x03 \x01(\x0e\x32\x17.littlehorse.TaskStatus\x12\x33\n\nlog_output\x18\x05 \x01(\x0b\x32\x1a.littlehorse.VariableValueH\x01\x88\x01\x01\x12\x16\n\x0e\x61ttempt_number\x18\x06 \x01(\x05\x12,\n\x06output\x18\x04 \x01(\x0b\x32\x1a.littlehorse.VariableValueH\x00\x12)\n\x05\x65rror\x18\x07 \x01(\x0b\x32\x18.littlehorse.LHTaskErrorH\x00\x12\x31\n\texception\x18\x08 \x01(\x0b\x32\x1c.littlehorse.LHTaskExceptionH\x00\x42\x08\n\x06resultB\r\n\x0b_log_output\"V\n\x10StopWfRunRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12\x19\n\x11thread_run_number\x18\x02 \x01(\x05\"X\n\x12ResumeWfRunRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12\x19\n\x11thread_run_number\x18\x02 \x01(\x05\"w\n\x16RescueThreadRunRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\x12\x19\n\x11thread_run_number\x18\x02 \x01(\x05\x12\x19\n\x11skip_current_node\x18\x03 \x01(\x08\"\xb3\x01\n\x1aTaskDefMetricsQueryRequest\x12\x30\n\x0cwindow_start\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x0bwindow_type\x18\x02 \x01(\x0e\x32 .littlehorse.MetricsWindowLength\x12\x1a\n\rtask_def_name\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x10\n\x0e_task_def_name\"\xca\x01\n\x16ListTaskMetricsRequest\x12+\n\x0btask_def_id\x18\x01 \x01(\x0b\x32\x16.littlehorse.TaskDefId\x12\x35\n\x11last_window_start\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\rwindow_length\x18\x03 \x01(\x0e\x32 .littlehorse.MetricsWindowLength\x12\x13\n\x0bnum_windows\x18\x04 \x01(\x05\"G\n\x17ListTaskMetricsResponse\x12,\n\x07results\x18\x01 \x03(\x0b\x32\x1b.littlehorse.TaskDefMetrics\"\xb1\x01\n\x19WfSpecMetricsQueryRequest\x12)\n\nwf_spec_id\x18\x01 \x01(\x0b\x32\x15.littlehorse.WfSpecId\x12\x30\n\x0cwindow_start\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\rwindow_length\x18\x03 \x01(\x0e\x32 .littlehorse.MetricsWindowLength\"\xc6\x01\n\x14ListWfMetricsRequest\x12)\n\nwf_spec_id\x18\x01 \x01(\x0b\x32\x15.littlehorse.WfSpecId\x12\x35\n\x11last_window_start\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\rwindow_length\x18\x03 \x01(\x0e\x32 .littlehorse.MetricsWindowLength\x12\x13\n\x0bnum_windows\x18\x04 \x01(\x05\"D\n\x15ListWfMetricsResponse\x12+\n\x07results\x18\x01 \x03(\x0b\x32\x1a.littlehorse.WfSpecMetrics\"\xfb\x02\n\x0eTaskDefMetrics\x12+\n\x0btask_def_id\x18\x01 \x01(\x0b\x32\x16.littlehorse.TaskDefId\x12\x30\n\x0cwindow_start\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\x04type\x18\x03 \x01(\x0e\x32 .littlehorse.MetricsWindowLength\x12\x1d\n\x15schedule_to_start_max\x18\x04 \x01(\x03\x12\x1d\n\x15schedule_to_start_avg\x18\x05 \x01(\x03\x12\x1d\n\x15start_to_complete_max\x18\x06 \x01(\x03\x12\x1d\n\x15start_to_complete_avg\x18\x07 \x01(\x03\x12\x17\n\x0ftotal_completed\x18\x08 \x01(\x03\x12\x15\n\rtotal_errored\x18\t \x01(\x03\x12\x15\n\rtotal_started\x18\n \x01(\x03\x12\x17\n\x0ftotal_scheduled\x18\x0b \x01(\x03\"\xa1\x02\n\rWfSpecMetrics\x12)\n\nwf_spec_id\x18\x01 \x01(\x0b\x32\x15.littlehorse.WfSpecId\x12\x30\n\x0cwindow_start\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\x04type\x18\x03 \x01(\x0e\x32 .littlehorse.MetricsWindowLength\x12\x15\n\rtotal_started\x18\x04 \x01(\x03\x12\x17\n\x0ftotal_completed\x18\x05 \x01(\x03\x12\x15\n\rtotal_errored\x18\x06 \x01(\x03\x12\x1d\n\x15start_to_complete_max\x18\x07 \x01(\x03\x12\x1d\n\x15start_to_complete_avg\x18\x08 \x01(\x03\"A\n\x16ListUserTaskRunRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\"<\n\x0fUserTaskRunList\x12)\n\x07results\x18\x01 \x03(\x0b\x32\x18.littlehorse.UserTaskRun\"F\n\x14ScheduledWfRunIdList\x12.\n\x07results\x18\x01 \x03(\x0b\x32\x1d.littlehorse.ScheduledWfRunId\"\x85\x01\n\x1bSearchScheduledWfRunRequest\x12\x14\n\x0cwf_spec_name\x18\x01 \x01(\t\x12\x1a\n\rmajor_version\x18\x02 \x01(\x05H\x00\x88\x01\x01\x12\x15\n\x08revision\x18\x03 \x01(\x05H\x01\x88\x01\x01\x42\x10\n\x0e_major_versionB\x0b\n\t_revision\"\x8a\x01\n\x12TaskWorkerMetadata\x12\x16\n\x0etask_worker_id\x18\x01 \x01(\t\x12\x34\n\x10latest_heartbeat\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x05hosts\x18\x03 \x03(\x0b\x32\x17.littlehorse.LHHostInfo\"\x87\x02\n\x0fTaskWorkerGroup\x12*\n\x02id\x18\x01 \x01(\x0b\x32\x1e.littlehorse.TaskWorkerGroupId\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x0ctask_workers\x18\x03 \x03(\x0b\x32-.littlehorse.TaskWorkerGroup.TaskWorkersEntry\x1aS\n\x10TaskWorkersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.littlehorse.TaskWorkerMetadata:\x02\x38\x01\">\n\x13ListTaskRunsRequest\x12\'\n\twf_run_id\x18\x01 \x01(\x0b\x32\x14.littlehorse.WfRunId\"4\n\x0bTaskRunList\x12%\n\x07results\x18\x01 \x03(\x0b\x32\x14.littlehorse.TaskRun\"z\n\x14MigrateWfSpecRequest\x12*\n\x0bold_wf_spec\x18\x01 \x01(\x0b\x32\x15.littlehorse.WfSpecId\x12\x36\n\tmigration\x18\x02 \x01(\x0b\x32#.littlehorse.WfSpecVersionMigration\"T\n\x16GetLatestWfSpecRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1a\n\rmajor_version\x18\x02 \x01(\x05H\x00\x88\x01\x01\x42\x10\n\x0e_major_version\"\x9c\x01\n\x15ServerVersionResponse\x12\x15\n\rmajor_version\x18\x01 \x01(\x05\x12\x15\n\rminor_version\x18\x02 \x01(\x05\x12\x15\n\rpatch_version\x18\x03 \x01(\x05\x12#\n\x16pre_release_identifier\x18\x04 \x01(\tH\x00\x88\x01\x01\x42\x19\n\x17_pre_release_identifier*P\n\x11\x41llowedUpdateType\x12\x0f\n\x0b\x41LL_UPDATES\x10\x00\x12\x1a\n\x16MINOR_REVISION_UPDATES\x10\x01\x12\x0e\n\nNO_UPDATES\x10\x02\x32\xb8+\n\x0bLittleHorse\x12\x44\n\nPutTaskDef\x12\x1e.littlehorse.PutTaskDefRequest\x1a\x14.littlehorse.TaskDef\"\x00\x12<\n\nGetTaskDef\x12\x16.littlehorse.TaskDefId\x1a\x14.littlehorse.TaskDef\"\x00\x12L\n\x12GetTaskWorkerGroup\x12\x16.littlehorse.TaskDefId\x1a\x1c.littlehorse.TaskWorkerGroup\"\x00\x12_\n\x13PutExternalEventDef\x12\'.littlehorse.PutExternalEventDefRequest\x1a\x1d.littlehorse.ExternalEventDef\"\x00\x12W\n\x13GetExternalEventDef\x12\x1f.littlehorse.ExternalEventDefId\x1a\x1d.littlehorse.ExternalEventDef\"\x00\x12_\n\x13PutWorkflowEventDef\x12\'.littlehorse.PutWorkflowEventDefRequest\x1a\x1d.littlehorse.WorkflowEventDef\"\x00\x12\x41\n\tPutWfSpec\x12\x1d.littlehorse.PutWfSpecRequest\x1a\x13.littlehorse.WfSpec\"\x00\x12\x39\n\tGetWfSpec\x12\x15.littlehorse.WfSpecId\x1a\x13.littlehorse.WfSpec\"\x00\x12M\n\x0fGetLatestWfSpec\x12#.littlehorse.GetLatestWfSpecRequest\x1a\x13.littlehorse.WfSpec\"\x00\x12I\n\rMigrateWfSpec\x12!.littlehorse.MigrateWfSpecRequest\x1a\x13.littlehorse.WfSpec\"\x00\x12P\n\x0ePutUserTaskDef\x12\".littlehorse.PutUserTaskDefRequest\x1a\x18.littlehorse.UserTaskDef\"\x00\x12H\n\x0eGetUserTaskDef\x12\x1a.littlehorse.UserTaskDefId\x1a\x18.littlehorse.UserTaskDef\"\x00\x12\\\n\x14GetLatestUserTaskDef\x12(.littlehorse.GetLatestUserTaskDefRequest\x1a\x18.littlehorse.UserTaskDef\"\x00\x12\x38\n\x05RunWf\x12\x19.littlehorse.RunWfRequest\x1a\x12.littlehorse.WfRun\"\x00\x12K\n\nScheduleWf\x12\x1e.littlehorse.ScheduleWfRequest\x1a\x1b.littlehorse.ScheduledWfRun\"\x00\x12\x65\n\x14SearchScheduledWfRun\x12(.littlehorse.SearchScheduledWfRunRequest\x1a!.littlehorse.ScheduledWfRunIdList\"\x00\x12Q\n\x11GetScheduledWfRun\x12\x1d.littlehorse.ScheduledWfRunId\x1a\x1b.littlehorse.ScheduledWfRun\"\x00\x12\x36\n\x08GetWfRun\x12\x14.littlehorse.WfRunId\x1a\x12.littlehorse.WfRun\"\x00\x12H\n\x0eGetUserTaskRun\x12\x1a.littlehorse.UserTaskRunId\x1a\x18.littlehorse.UserTaskRun\"\x00\x12T\n\x11\x41ssignUserTaskRun\x12%.littlehorse.AssignUserTaskRunRequest\x1a\x16.google.protobuf.Empty\"\x00\x12X\n\x13\x43ompleteUserTaskRun\x12\'.littlehorse.CompleteUserTaskRunRequest\x1a\x16.google.protobuf.Empty\"\x00\x12T\n\x11\x43\x61ncelUserTaskRun\x12%.littlehorse.CancelUserTaskRunRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x62\n\x17SaveUserTaskRunProgress\x12+.littlehorse.SaveUserTaskRunProgressRequest\x1a\x18.littlehorse.UserTaskRun\"\x00\x12W\n\x10ListUserTaskRuns\x12#.littlehorse.ListUserTaskRunRequest\x1a\x1c.littlehorse.UserTaskRunList\"\x00\x12<\n\nGetNodeRun\x12\x16.littlehorse.NodeRunId\x1a\x14.littlehorse.NodeRun\"\x00\x12L\n\x0cListNodeRuns\x12 .littlehorse.ListNodeRunsRequest\x1a\x18.littlehorse.NodeRunList\"\x00\x12<\n\nGetTaskRun\x12\x16.littlehorse.TaskRunId\x1a\x14.littlehorse.TaskRun\"\x00\x12L\n\x0cListTaskRuns\x12 .littlehorse.ListTaskRunsRequest\x1a\x18.littlehorse.TaskRunList\"\x00\x12?\n\x0bGetVariable\x12\x17.littlehorse.VariableId\x1a\x15.littlehorse.Variable\"\x00\x12O\n\rListVariables\x12!.littlehorse.ListVariablesRequest\x1a\x19.littlehorse.VariableList\"\x00\x12V\n\x10PutExternalEvent\x12$.littlehorse.PutExternalEventRequest\x1a\x1a.littlehorse.ExternalEvent\"\x00\x12N\n\x10GetExternalEvent\x12\x1c.littlehorse.ExternalEventId\x1a\x1a.littlehorse.ExternalEvent\"\x00\x12Z\n\x12\x41waitWorkflowEvent\x12&.littlehorse.AwaitWorkflowEventRequest\x1a\x1a.littlehorse.WorkflowEvent\"\x00\x12^\n\x12ListExternalEvents\x12&.littlehorse.ListExternalEventsRequest\x1a\x1e.littlehorse.ExternalEventList\"\x00\x12J\n\x0bSearchWfRun\x12\x1f.littlehorse.SearchWfRunRequest\x1a\x18.littlehorse.WfRunIdList\"\x00\x12P\n\rSearchNodeRun\x12!.littlehorse.SearchNodeRunRequest\x1a\x1a.littlehorse.NodeRunIdList\"\x00\x12P\n\rSearchTaskRun\x12!.littlehorse.SearchTaskRunRequest\x1a\x1a.littlehorse.TaskRunIdList\"\x00\x12\\\n\x11SearchUserTaskRun\x12%.littlehorse.SearchUserTaskRunRequest\x1a\x1e.littlehorse.UserTaskRunIdList\"\x00\x12S\n\x0eSearchVariable\x12\".littlehorse.SearchVariableRequest\x1a\x1b.littlehorse.VariableIdList\"\x00\x12\x62\n\x13SearchExternalEvent\x12\'.littlehorse.SearchExternalEventRequest\x1a .littlehorse.ExternalEventIdList\"\x00\x12P\n\rSearchTaskDef\x12!.littlehorse.SearchTaskDefRequest\x1a\x1a.littlehorse.TaskDefIdList\"\x00\x12\\\n\x11SearchUserTaskDef\x12%.littlehorse.SearchUserTaskDefRequest\x1a\x1e.littlehorse.UserTaskDefIdList\"\x00\x12M\n\x0cSearchWfSpec\x12 .littlehorse.SearchWfSpecRequest\x1a\x19.littlehorse.WfSpecIdList\"\x00\x12k\n\x16SearchExternalEventDef\x12*.littlehorse.SearchExternalEventDefRequest\x1a#.littlehorse.ExternalEventDefIdList\"\x00\x12M\n\x0cSearchTenant\x12 .littlehorse.SearchTenantRequest\x1a\x19.littlehorse.TenantIdList\"\x00\x12V\n\x0fSearchPrincipal\x12#.littlehorse.SearchPrincipalRequest\x1a\x1c.littlehorse.PrincipalIdList\"\x00\x12g\n\x12RegisterTaskWorker\x12&.littlehorse.RegisterTaskWorkerRequest\x1a\'.littlehorse.RegisterTaskWorkerResponse\"\x00\x12M\n\x08PollTask\x12\x1c.littlehorse.PollTaskRequest\x1a\x1d.littlehorse.PollTaskResponse\"\x00(\x01\x30\x01\x12\x42\n\nReportTask\x12\x1a.littlehorse.ReportTaskRun\x1a\x16.google.protobuf.Empty\"\x00\x12\x44\n\tStopWfRun\x12\x1d.littlehorse.StopWfRunRequest\x1a\x16.google.protobuf.Empty\"\x00\x12H\n\x0bResumeWfRun\x12\x1f.littlehorse.ResumeWfRunRequest\x1a\x16.google.protobuf.Empty\"\x00\x12L\n\x0fRescueThreadRun\x12#.littlehorse.RescueThreadRunRequest\x1a\x12.littlehorse.WfRun\"\x00\x12H\n\x0b\x44\x65leteWfRun\x12\x1f.littlehorse.DeleteWfRunRequest\x1a\x16.google.protobuf.Empty\"\x00\x12L\n\rDeleteTaskDef\x12!.littlehorse.DeleteTaskDefRequest\x1a\x16.google.protobuf.Empty\"\x00\x12J\n\x0c\x44\x65leteWfSpec\x12 .littlehorse.DeleteWfSpecRequest\x1a\x16.google.protobuf.Empty\"\x00\x12T\n\x11\x44\x65leteUserTaskDef\x12%.littlehorse.DeleteUserTaskDefRequest\x1a\x16.google.protobuf.Empty\"\x00\x12^\n\x16\x44\x65leteExternalEventDef\x12*.littlehorse.DeleteExternalEventDefRequest\x1a\x16.google.protobuf.Empty\"\x00\x12P\n\x0f\x44\x65letePrincipal\x12#.littlehorse.DeletePrincipalRequest\x1a\x16.google.protobuf.Empty\"\x00\x12Z\n\x14\x44\x65leteScheduledWfRun\x12(.littlehorse.DeleteScheduledWfRunRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x61\n\x17GetTaskDefMetricsWindow\x12\'.littlehorse.TaskDefMetricsQueryRequest\x1a\x1b.littlehorse.TaskDefMetrics\"\x00\x12^\n\x16GetWfSpecMetricsWindow\x12&.littlehorse.WfSpecMetricsQueryRequest\x1a\x1a.littlehorse.WfSpecMetrics\"\x00\x12\x61\n\x12ListTaskDefMetrics\x12#.littlehorse.ListTaskMetricsRequest\x1a$.littlehorse.ListTaskMetricsResponse\"\x00\x12\\\n\x11ListWfSpecMetrics\x12!.littlehorse.ListWfMetricsRequest\x1a\".littlehorse.ListWfMetricsResponse\"\x00\x12\x41\n\tPutTenant\x12\x1d.littlehorse.PutTenantRequest\x1a\x13.littlehorse.Tenant\"\x00\x12\x39\n\tGetTenant\x12\x15.littlehorse.TenantId\x1a\x13.littlehorse.Tenant\"\x00\x12J\n\x0cPutPrincipal\x12 .littlehorse.PutPrincipalRequest\x1a\x16.littlehorse.Principal\"\x00\x12:\n\x06Whoami\x12\x16.google.protobuf.Empty\x1a\x16.littlehorse.Principal\"\x00\x12P\n\x10GetServerVersion\x12\x16.google.protobuf.Empty\x1a\".littlehorse.ServerVersionResponse\"\x00\x42I\n\x1fio.littlehorse.sdk.common.protoP\x01Z\t.;lhproto\xaa\x02\x18LittleHorse.Common.Protob\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -46,8 +46,8 @@ _SCHEDULEWFREQUEST_VARIABLESENTRY._serialized_options = b'8\001' _TASKWORKERGROUP_TASKWORKERSENTRY._options = None _TASKWORKERGROUP_TASKWORKERSENTRY._serialized_options = b'8\001' - _globals['_ALLOWEDUPDATETYPE']._serialized_start=12588 - _globals['_ALLOWEDUPDATETYPE']._serialized_end=12668 + _globals['_ALLOWEDUPDATETYPE']._serialized_start=12651 + _globals['_ALLOWEDUPDATETYPE']._serialized_end=12731 _globals['_GETLATESTUSERTASKDEFREQUEST']._serialized_start=341 _globals['_GETLATESTUSERTASKDEFREQUEST']._serialized_end=384 _globals['_PUTWFSPECREQUEST']._serialized_start=387 @@ -56,164 +56,164 @@ _globals['_PUTWFSPECREQUEST_THREADSPECSENTRY']._serialized_end=796 _globals['_PUTTASKDEFREQUEST']._serialized_start=857 _globals['_PUTTASKDEFREQUEST']._serialized_end=1016 - _globals['_PUTWORKFLOWEVENTDEFREQUEST']._serialized_start=1018 - _globals['_PUTWORKFLOWEVENTDEFREQUEST']._serialized_end=1101 - _globals['_PUTUSERTASKDEFREQUEST']._serialized_start=1103 - _globals['_PUTUSERTASKDEFREQUEST']._serialized_end=1226 - _globals['_PUTEXTERNALEVENTDEFREQUEST']._serialized_start=1228 - _globals['_PUTEXTERNALEVENTDEFREQUEST']._serialized_end=1339 - _globals['_PUTEXTERNALEVENTREQUEST']._serialized_start=1342 - _globals['_PUTEXTERNALEVENTREQUEST']._serialized_end=1665 - _globals['_DELETEEXTERNALEVENTREQUEST']._serialized_start=1667 - _globals['_DELETEEXTERNALEVENTREQUEST']._serialized_end=1737 - _globals['_DELETESCHEDULEDWFRUNREQUEST']._serialized_start=1739 - _globals['_DELETESCHEDULEDWFRUNREQUEST']._serialized_end=1811 - _globals['_DELETEWFRUNREQUEST']._serialized_start=1813 - _globals['_DELETEWFRUNREQUEST']._serialized_end=1867 - _globals['_DELETETASKDEFREQUEST']._serialized_start=1869 - _globals['_DELETETASKDEFREQUEST']._serialized_end=1927 - _globals['_DELETEUSERTASKDEFREQUEST']._serialized_start=1929 - _globals['_DELETEUSERTASKDEFREQUEST']._serialized_end=1995 - _globals['_DELETEWFSPECREQUEST']._serialized_start=1997 - _globals['_DELETEWFSPECREQUEST']._serialized_end=2053 - _globals['_DELETEEXTERNALEVENTDEFREQUEST']._serialized_start=2055 - _globals['_DELETEEXTERNALEVENTDEFREQUEST']._serialized_end=2131 - _globals['_RUNWFREQUEST']._serialized_start=2134 - _globals['_RUNWFREQUEST']._serialized_end=2489 - _globals['_RUNWFREQUEST_VARIABLESENTRY']._serialized_start=2354 - _globals['_RUNWFREQUEST_VARIABLESENTRY']._serialized_end=2430 - _globals['_SCHEDULEWFREQUEST']._serialized_start=2492 - _globals['_SCHEDULEWFREQUEST']._serialized_end=2882 - _globals['_SCHEDULEWFREQUEST_VARIABLESENTRY']._serialized_start=2354 - _globals['_SCHEDULEWFREQUEST_VARIABLESENTRY']._serialized_end=2430 - _globals['_VARIABLEMATCH']._serialized_start=2884 - _globals['_VARIABLEMATCH']._serialized_end=2960 - _globals['_AWAITWORKFLOWEVENTREQUEST']._serialized_start=2963 - _globals['_AWAITWORKFLOWEVENTREQUEST']._serialized_end=3152 - _globals['_SEARCHWFRUNREQUEST']._serialized_start=3155 - _globals['_SEARCHWFRUNREQUEST']._serialized_end=3634 - _globals['_WFRUNIDLIST']._serialized_start=3636 - _globals['_WFRUNIDLIST']._serialized_end=3724 - _globals['_SEARCHTASKRUNREQUEST']._serialized_start=3727 - _globals['_SEARCHTASKRUNREQUEST']._serialized_end=4043 - _globals['_TASKRUNIDLIST']._serialized_start=4045 - _globals['_TASKRUNIDLIST']._serialized_end=4137 - _globals['_SEARCHNODERUNREQUEST']._serialized_start=4140 - _globals['_SEARCHNODERUNREQUEST']._serialized_end=4637 - _globals['_SEARCHNODERUNREQUEST_NODETYPE']._serialized_start=4422 - _globals['_SEARCHNODERUNREQUEST_NODETYPE']._serialized_end=4578 - _globals['_NODERUNIDLIST']._serialized_start=4639 - _globals['_NODERUNIDLIST']._serialized_end=4731 - _globals['_SEARCHUSERTASKRUNREQUEST']._serialized_start=4734 - _globals['_SEARCHUSERTASKRUNREQUEST']._serialized_end=5168 - _globals['_USERTASKRUNIDLIST']._serialized_start=5170 - _globals['_USERTASKRUNIDLIST']._serialized_end=5270 - _globals['_SEARCHVARIABLEREQUEST']._serialized_start=5273 - _globals['_SEARCHVARIABLEREQUEST']._serialized_end=5559 - _globals['_VARIABLEIDLIST']._serialized_start=5561 - _globals['_VARIABLEIDLIST']._serialized_end=5655 - _globals['_SEARCHTASKDEFREQUEST']._serialized_start=5657 - _globals['_SEARCHTASKDEFREQUEST']._serialized_end=5777 - _globals['_TASKDEFIDLIST']._serialized_start=5779 - _globals['_TASKDEFIDLIST']._serialized_end=5871 - _globals['_SEARCHUSERTASKDEFREQUEST']._serialized_start=5874 - _globals['_SEARCHUSERTASKDEFREQUEST']._serialized_end=6026 - _globals['_USERTASKDEFIDLIST']._serialized_start=6028 - _globals['_USERTASKDEFIDLIST']._serialized_end=6128 - _globals['_SEARCHWFSPECREQUEST']._serialized_start=6131 - _globals['_SEARCHWFSPECREQUEST']._serialized_end=6297 - _globals['_WFSPECIDLIST']._serialized_start=6299 - _globals['_WFSPECIDLIST']._serialized_end=6389 - _globals['_SEARCHEXTERNALEVENTDEFREQUEST']._serialized_start=6392 - _globals['_SEARCHEXTERNALEVENTDEFREQUEST']._serialized_end=6521 - _globals['_EXTERNALEVENTDEFIDLIST']._serialized_start=6523 - _globals['_EXTERNALEVENTDEFIDLIST']._serialized_end=6633 - _globals['_SEARCHTENANTREQUEST']._serialized_start=6635 - _globals['_SEARCHTENANTREQUEST']._serialized_end=6722 - _globals['_TENANTIDLIST']._serialized_start=6724 - _globals['_TENANTIDLIST']._serialized_end=6814 - _globals['_SEARCHPRINCIPALREQUEST']._serialized_start=6817 - _globals['_SEARCHPRINCIPALREQUEST']._serialized_end=7116 - _globals['_PRINCIPALIDLIST']._serialized_start=7118 - _globals['_PRINCIPALIDLIST']._serialized_end=7214 - _globals['_SEARCHEXTERNALEVENTREQUEST']._serialized_start=7217 - _globals['_SEARCHEXTERNALEVENTREQUEST']._serialized_end=7563 - _globals['_EXTERNALEVENTIDLIST']._serialized_start=7565 - _globals['_EXTERNALEVENTIDLIST']._serialized_end=7669 - _globals['_LISTNODERUNSREQUEST']._serialized_start=7672 - _globals['_LISTNODERUNSREQUEST']._serialized_end=7854 - _globals['_NODERUNLIST']._serialized_start=7856 - _globals['_NODERUNLIST']._serialized_end=7944 - _globals['_LISTVARIABLESREQUEST']._serialized_start=7946 - _globals['_LISTVARIABLESREQUEST']._serialized_end=8009 - _globals['_VARIABLELIST']._serialized_start=8011 - _globals['_VARIABLELIST']._serialized_end=8065 - _globals['_LISTEXTERNALEVENTSREQUEST']._serialized_start=8067 - _globals['_LISTEXTERNALEVENTSREQUEST']._serialized_end=8135 - _globals['_EXTERNALEVENTLIST']._serialized_start=8137 - _globals['_EXTERNALEVENTLIST']._serialized_end=8201 - _globals['_REGISTERTASKWORKERREQUEST']._serialized_start=8203 - _globals['_REGISTERTASKWORKERREQUEST']._serialized_end=8299 - _globals['_TASKWORKERHEARTBEATREQUEST']._serialized_start=8301 - _globals['_TASKWORKERHEARTBEATREQUEST']._serialized_end=8416 - _globals['_REGISTERTASKWORKERRESPONSE']._serialized_start=8419 - _globals['_REGISTERTASKWORKERRESPONSE']._serialized_end=8548 - _globals['_LHHOSTINFO']._serialized_start=8550 - _globals['_LHHOSTINFO']._serialized_end=8590 - _globals['_POLLTASKREQUEST']._serialized_start=8593 - _globals['_POLLTASKREQUEST']._serialized_end=8732 - _globals['_SCHEDULEDTASK']._serialized_start=8735 - _globals['_SCHEDULEDTASK']._serialized_end=9003 - _globals['_POLLTASKRESPONSE']._serialized_start=9005 - _globals['_POLLTASKRESPONSE']._serialized_end=9083 - _globals['_REPORTTASKRUN']._serialized_start=9086 - _globals['_REPORTTASKRUN']._serialized_end=9471 - _globals['_STOPWFRUNREQUEST']._serialized_start=9473 - _globals['_STOPWFRUNREQUEST']._serialized_end=9559 - _globals['_RESUMEWFRUNREQUEST']._serialized_start=9561 - _globals['_RESUMEWFRUNREQUEST']._serialized_end=9649 - _globals['_RESCUETHREADRUNREQUEST']._serialized_start=9651 - _globals['_RESCUETHREADRUNREQUEST']._serialized_end=9770 - _globals['_TASKDEFMETRICSQUERYREQUEST']._serialized_start=9773 - _globals['_TASKDEFMETRICSQUERYREQUEST']._serialized_end=9952 - _globals['_LISTTASKMETRICSREQUEST']._serialized_start=9955 - _globals['_LISTTASKMETRICSREQUEST']._serialized_end=10157 - _globals['_LISTTASKMETRICSRESPONSE']._serialized_start=10159 - _globals['_LISTTASKMETRICSRESPONSE']._serialized_end=10230 - _globals['_WFSPECMETRICSQUERYREQUEST']._serialized_start=10233 - _globals['_WFSPECMETRICSQUERYREQUEST']._serialized_end=10410 - _globals['_LISTWFMETRICSREQUEST']._serialized_start=10413 - _globals['_LISTWFMETRICSREQUEST']._serialized_end=10611 - _globals['_LISTWFMETRICSRESPONSE']._serialized_start=10613 - _globals['_LISTWFMETRICSRESPONSE']._serialized_end=10681 - _globals['_TASKDEFMETRICS']._serialized_start=10684 - _globals['_TASKDEFMETRICS']._serialized_end=11063 - _globals['_WFSPECMETRICS']._serialized_start=11066 - _globals['_WFSPECMETRICS']._serialized_end=11355 - _globals['_LISTUSERTASKRUNREQUEST']._serialized_start=11357 - _globals['_LISTUSERTASKRUNREQUEST']._serialized_end=11422 - _globals['_USERTASKRUNLIST']._serialized_start=11424 - _globals['_USERTASKRUNLIST']._serialized_end=11484 - _globals['_SCHEDULEDWFRUNIDLIST']._serialized_start=11486 - _globals['_SCHEDULEDWFRUNIDLIST']._serialized_end=11556 - _globals['_SEARCHSCHEDULEDWFRUNREQUEST']._serialized_start=11559 - _globals['_SEARCHSCHEDULEDWFRUNREQUEST']._serialized_end=11692 - _globals['_TASKWORKERMETADATA']._serialized_start=11695 - _globals['_TASKWORKERMETADATA']._serialized_end=11833 - _globals['_TASKWORKERGROUP']._serialized_start=11836 - _globals['_TASKWORKERGROUP']._serialized_end=12099 - _globals['_TASKWORKERGROUP_TASKWORKERSENTRY']._serialized_start=12016 - _globals['_TASKWORKERGROUP_TASKWORKERSENTRY']._serialized_end=12099 - _globals['_LISTTASKRUNSREQUEST']._serialized_start=12101 - _globals['_LISTTASKRUNSREQUEST']._serialized_end=12163 - _globals['_TASKRUNLIST']._serialized_start=12165 - _globals['_TASKRUNLIST']._serialized_end=12217 - _globals['_MIGRATEWFSPECREQUEST']._serialized_start=12219 - _globals['_MIGRATEWFSPECREQUEST']._serialized_end=12341 - _globals['_GETLATESTWFSPECREQUEST']._serialized_start=12343 - _globals['_GETLATESTWFSPECREQUEST']._serialized_end=12427 - _globals['_SERVERVERSIONRESPONSE']._serialized_start=12430 - _globals['_SERVERVERSIONRESPONSE']._serialized_end=12586 - _globals['_LITTLEHORSE']._serialized_start=12671 - _globals['_LITTLEHORSE']._serialized_end=18231 + _globals['_PUTWORKFLOWEVENTDEFREQUEST']._serialized_start=1019 + _globals['_PUTWORKFLOWEVENTDEFREQUEST']._serialized_end=1164 + _globals['_PUTUSERTASKDEFREQUEST']._serialized_start=1166 + _globals['_PUTUSERTASKDEFREQUEST']._serialized_end=1289 + _globals['_PUTEXTERNALEVENTDEFREQUEST']._serialized_start=1291 + _globals['_PUTEXTERNALEVENTDEFREQUEST']._serialized_end=1402 + _globals['_PUTEXTERNALEVENTREQUEST']._serialized_start=1405 + _globals['_PUTEXTERNALEVENTREQUEST']._serialized_end=1728 + _globals['_DELETEEXTERNALEVENTREQUEST']._serialized_start=1730 + _globals['_DELETEEXTERNALEVENTREQUEST']._serialized_end=1800 + _globals['_DELETESCHEDULEDWFRUNREQUEST']._serialized_start=1802 + _globals['_DELETESCHEDULEDWFRUNREQUEST']._serialized_end=1874 + _globals['_DELETEWFRUNREQUEST']._serialized_start=1876 + _globals['_DELETEWFRUNREQUEST']._serialized_end=1930 + _globals['_DELETETASKDEFREQUEST']._serialized_start=1932 + _globals['_DELETETASKDEFREQUEST']._serialized_end=1990 + _globals['_DELETEUSERTASKDEFREQUEST']._serialized_start=1992 + _globals['_DELETEUSERTASKDEFREQUEST']._serialized_end=2058 + _globals['_DELETEWFSPECREQUEST']._serialized_start=2060 + _globals['_DELETEWFSPECREQUEST']._serialized_end=2116 + _globals['_DELETEEXTERNALEVENTDEFREQUEST']._serialized_start=2118 + _globals['_DELETEEXTERNALEVENTDEFREQUEST']._serialized_end=2194 + _globals['_RUNWFREQUEST']._serialized_start=2197 + _globals['_RUNWFREQUEST']._serialized_end=2552 + _globals['_RUNWFREQUEST_VARIABLESENTRY']._serialized_start=2417 + _globals['_RUNWFREQUEST_VARIABLESENTRY']._serialized_end=2493 + _globals['_SCHEDULEWFREQUEST']._serialized_start=2555 + _globals['_SCHEDULEWFREQUEST']._serialized_end=2945 + _globals['_SCHEDULEWFREQUEST_VARIABLESENTRY']._serialized_start=2417 + _globals['_SCHEDULEWFREQUEST_VARIABLESENTRY']._serialized_end=2493 + _globals['_VARIABLEMATCH']._serialized_start=2947 + _globals['_VARIABLEMATCH']._serialized_end=3023 + _globals['_AWAITWORKFLOWEVENTREQUEST']._serialized_start=3026 + _globals['_AWAITWORKFLOWEVENTREQUEST']._serialized_end=3215 + _globals['_SEARCHWFRUNREQUEST']._serialized_start=3218 + _globals['_SEARCHWFRUNREQUEST']._serialized_end=3697 + _globals['_WFRUNIDLIST']._serialized_start=3699 + _globals['_WFRUNIDLIST']._serialized_end=3787 + _globals['_SEARCHTASKRUNREQUEST']._serialized_start=3790 + _globals['_SEARCHTASKRUNREQUEST']._serialized_end=4106 + _globals['_TASKRUNIDLIST']._serialized_start=4108 + _globals['_TASKRUNIDLIST']._serialized_end=4200 + _globals['_SEARCHNODERUNREQUEST']._serialized_start=4203 + _globals['_SEARCHNODERUNREQUEST']._serialized_end=4700 + _globals['_SEARCHNODERUNREQUEST_NODETYPE']._serialized_start=4485 + _globals['_SEARCHNODERUNREQUEST_NODETYPE']._serialized_end=4641 + _globals['_NODERUNIDLIST']._serialized_start=4702 + _globals['_NODERUNIDLIST']._serialized_end=4794 + _globals['_SEARCHUSERTASKRUNREQUEST']._serialized_start=4797 + _globals['_SEARCHUSERTASKRUNREQUEST']._serialized_end=5231 + _globals['_USERTASKRUNIDLIST']._serialized_start=5233 + _globals['_USERTASKRUNIDLIST']._serialized_end=5333 + _globals['_SEARCHVARIABLEREQUEST']._serialized_start=5336 + _globals['_SEARCHVARIABLEREQUEST']._serialized_end=5622 + _globals['_VARIABLEIDLIST']._serialized_start=5624 + _globals['_VARIABLEIDLIST']._serialized_end=5718 + _globals['_SEARCHTASKDEFREQUEST']._serialized_start=5720 + _globals['_SEARCHTASKDEFREQUEST']._serialized_end=5840 + _globals['_TASKDEFIDLIST']._serialized_start=5842 + _globals['_TASKDEFIDLIST']._serialized_end=5934 + _globals['_SEARCHUSERTASKDEFREQUEST']._serialized_start=5937 + _globals['_SEARCHUSERTASKDEFREQUEST']._serialized_end=6089 + _globals['_USERTASKDEFIDLIST']._serialized_start=6091 + _globals['_USERTASKDEFIDLIST']._serialized_end=6191 + _globals['_SEARCHWFSPECREQUEST']._serialized_start=6194 + _globals['_SEARCHWFSPECREQUEST']._serialized_end=6360 + _globals['_WFSPECIDLIST']._serialized_start=6362 + _globals['_WFSPECIDLIST']._serialized_end=6452 + _globals['_SEARCHEXTERNALEVENTDEFREQUEST']._serialized_start=6455 + _globals['_SEARCHEXTERNALEVENTDEFREQUEST']._serialized_end=6584 + _globals['_EXTERNALEVENTDEFIDLIST']._serialized_start=6586 + _globals['_EXTERNALEVENTDEFIDLIST']._serialized_end=6696 + _globals['_SEARCHTENANTREQUEST']._serialized_start=6698 + _globals['_SEARCHTENANTREQUEST']._serialized_end=6785 + _globals['_TENANTIDLIST']._serialized_start=6787 + _globals['_TENANTIDLIST']._serialized_end=6877 + _globals['_SEARCHPRINCIPALREQUEST']._serialized_start=6880 + _globals['_SEARCHPRINCIPALREQUEST']._serialized_end=7179 + _globals['_PRINCIPALIDLIST']._serialized_start=7181 + _globals['_PRINCIPALIDLIST']._serialized_end=7277 + _globals['_SEARCHEXTERNALEVENTREQUEST']._serialized_start=7280 + _globals['_SEARCHEXTERNALEVENTREQUEST']._serialized_end=7626 + _globals['_EXTERNALEVENTIDLIST']._serialized_start=7628 + _globals['_EXTERNALEVENTIDLIST']._serialized_end=7732 + _globals['_LISTNODERUNSREQUEST']._serialized_start=7735 + _globals['_LISTNODERUNSREQUEST']._serialized_end=7917 + _globals['_NODERUNLIST']._serialized_start=7919 + _globals['_NODERUNLIST']._serialized_end=8007 + _globals['_LISTVARIABLESREQUEST']._serialized_start=8009 + _globals['_LISTVARIABLESREQUEST']._serialized_end=8072 + _globals['_VARIABLELIST']._serialized_start=8074 + _globals['_VARIABLELIST']._serialized_end=8128 + _globals['_LISTEXTERNALEVENTSREQUEST']._serialized_start=8130 + _globals['_LISTEXTERNALEVENTSREQUEST']._serialized_end=8198 + _globals['_EXTERNALEVENTLIST']._serialized_start=8200 + _globals['_EXTERNALEVENTLIST']._serialized_end=8264 + _globals['_REGISTERTASKWORKERREQUEST']._serialized_start=8266 + _globals['_REGISTERTASKWORKERREQUEST']._serialized_end=8362 + _globals['_TASKWORKERHEARTBEATREQUEST']._serialized_start=8364 + _globals['_TASKWORKERHEARTBEATREQUEST']._serialized_end=8479 + _globals['_REGISTERTASKWORKERRESPONSE']._serialized_start=8482 + _globals['_REGISTERTASKWORKERRESPONSE']._serialized_end=8611 + _globals['_LHHOSTINFO']._serialized_start=8613 + _globals['_LHHOSTINFO']._serialized_end=8653 + _globals['_POLLTASKREQUEST']._serialized_start=8656 + _globals['_POLLTASKREQUEST']._serialized_end=8795 + _globals['_SCHEDULEDTASK']._serialized_start=8798 + _globals['_SCHEDULEDTASK']._serialized_end=9066 + _globals['_POLLTASKRESPONSE']._serialized_start=9068 + _globals['_POLLTASKRESPONSE']._serialized_end=9146 + _globals['_REPORTTASKRUN']._serialized_start=9149 + _globals['_REPORTTASKRUN']._serialized_end=9534 + _globals['_STOPWFRUNREQUEST']._serialized_start=9536 + _globals['_STOPWFRUNREQUEST']._serialized_end=9622 + _globals['_RESUMEWFRUNREQUEST']._serialized_start=9624 + _globals['_RESUMEWFRUNREQUEST']._serialized_end=9712 + _globals['_RESCUETHREADRUNREQUEST']._serialized_start=9714 + _globals['_RESCUETHREADRUNREQUEST']._serialized_end=9833 + _globals['_TASKDEFMETRICSQUERYREQUEST']._serialized_start=9836 + _globals['_TASKDEFMETRICSQUERYREQUEST']._serialized_end=10015 + _globals['_LISTTASKMETRICSREQUEST']._serialized_start=10018 + _globals['_LISTTASKMETRICSREQUEST']._serialized_end=10220 + _globals['_LISTTASKMETRICSRESPONSE']._serialized_start=10222 + _globals['_LISTTASKMETRICSRESPONSE']._serialized_end=10293 + _globals['_WFSPECMETRICSQUERYREQUEST']._serialized_start=10296 + _globals['_WFSPECMETRICSQUERYREQUEST']._serialized_end=10473 + _globals['_LISTWFMETRICSREQUEST']._serialized_start=10476 + _globals['_LISTWFMETRICSREQUEST']._serialized_end=10674 + _globals['_LISTWFMETRICSRESPONSE']._serialized_start=10676 + _globals['_LISTWFMETRICSRESPONSE']._serialized_end=10744 + _globals['_TASKDEFMETRICS']._serialized_start=10747 + _globals['_TASKDEFMETRICS']._serialized_end=11126 + _globals['_WFSPECMETRICS']._serialized_start=11129 + _globals['_WFSPECMETRICS']._serialized_end=11418 + _globals['_LISTUSERTASKRUNREQUEST']._serialized_start=11420 + _globals['_LISTUSERTASKRUNREQUEST']._serialized_end=11485 + _globals['_USERTASKRUNLIST']._serialized_start=11487 + _globals['_USERTASKRUNLIST']._serialized_end=11547 + _globals['_SCHEDULEDWFRUNIDLIST']._serialized_start=11549 + _globals['_SCHEDULEDWFRUNIDLIST']._serialized_end=11619 + _globals['_SEARCHSCHEDULEDWFRUNREQUEST']._serialized_start=11622 + _globals['_SEARCHSCHEDULEDWFRUNREQUEST']._serialized_end=11755 + _globals['_TASKWORKERMETADATA']._serialized_start=11758 + _globals['_TASKWORKERMETADATA']._serialized_end=11896 + _globals['_TASKWORKERGROUP']._serialized_start=11899 + _globals['_TASKWORKERGROUP']._serialized_end=12162 + _globals['_TASKWORKERGROUP_TASKWORKERSENTRY']._serialized_start=12079 + _globals['_TASKWORKERGROUP_TASKWORKERSENTRY']._serialized_end=12162 + _globals['_LISTTASKRUNSREQUEST']._serialized_start=12164 + _globals['_LISTTASKRUNSREQUEST']._serialized_end=12226 + _globals['_TASKRUNLIST']._serialized_start=12228 + _globals['_TASKRUNLIST']._serialized_end=12280 + _globals['_MIGRATEWFSPECREQUEST']._serialized_start=12282 + _globals['_MIGRATEWFSPECREQUEST']._serialized_end=12404 + _globals['_GETLATESTWFSPECREQUEST']._serialized_start=12406 + _globals['_GETLATESTWFSPECREQUEST']._serialized_end=12490 + _globals['_SERVERVERSIONRESPONSE']._serialized_start=12493 + _globals['_SERVERVERSIONRESPONSE']._serialized_end=12649 + _globals['_LITTLEHORSE']._serialized_start=12734 + _globals['_LITTLEHORSE']._serialized_end=18294 # @@protoc_insertion_point(module_scope) diff --git a/sdk-python/littlehorse/model/service_pb2.pyi b/sdk-python/littlehorse/model/service_pb2.pyi index bf70cbea3..c4a9aaa1a 100644 --- a/sdk-python/littlehorse/model/service_pb2.pyi +++ b/sdk-python/littlehorse/model/service_pb2.pyi @@ -71,12 +71,14 @@ class PutTaskDefRequest(_message.Message): def __init__(self, name: _Optional[str] = ..., input_vars: _Optional[_Iterable[_Union[_common_wfspec_pb2.VariableDef, _Mapping]]] = ..., output_schema: _Optional[_Union[_task_def_pb2.TaskDefOutputSchema, _Mapping]] = ...) -> None: ... class PutWorkflowEventDefRequest(_message.Message): - __slots__ = ["name", "type"] + __slots__ = ["name", "primitive_type", "schema"] NAME_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] + PRIMITIVE_TYPE_FIELD_NUMBER: _ClassVar[int] + SCHEMA_FIELD_NUMBER: _ClassVar[int] name: str - type: _common_enums_pb2.VariableType - def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[_common_enums_pb2.VariableType, str]] = ...) -> None: ... + primitive_type: _common_enums_pb2.PrimitiveType + schema: _object_id_pb2.SchemaId + def __init__(self, name: _Optional[str] = ..., primitive_type: _Optional[_Union[_common_enums_pb2.PrimitiveType, str]] = ..., schema: _Optional[_Union[_object_id_pb2.SchemaId, _Mapping]] = ...) -> None: ... class PutUserTaskDefRequest(_message.Message): __slots__ = ["name", "fields", "description"] diff --git a/sdk-python/littlehorse/model/user_tasks_pb2.py b/sdk-python/littlehorse/model/user_tasks_pb2.py index f09238c8b..a9d7f0b5b 100644 --- a/sdk-python/littlehorse/model/user_tasks_pb2.py +++ b/sdk-python/littlehorse/model/user_tasks_pb2.py @@ -17,7 +17,7 @@ import littlehorse.model.variable_pb2 as variable__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10user_tasks.proto\x12\x0blittlehorse\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x12\x63ommon_enums.proto\x1a\x0fobject_id.proto\x1a\x0evariable.proto\"\xb2\x01\n\x0bUserTaskDef\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x00\x88\x01\x01\x12*\n\x06\x66ields\x18\x04 \x03(\x0b\x32\x1a.littlehorse.UserTaskField\x12.\n\ncreated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0e\n\x0c_description\"\x98\x01\n\rUserTaskField\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\'\n\x04type\x18\x02 \x01(\x0e\x32\x19.littlehorse.VariableType\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x0c\x64isplay_name\x18\x04 \x01(\t\x12\x10\n\x08required\x18\x05 \x01(\x08\x42\x0e\n\x0c_description\"\xa3\x04\n\x0bUserTaskRun\x12&\n\x02id\x18\x01 \x01(\x0b\x32\x1a.littlehorse.UserTaskRunId\x12\x34\n\x10user_task_def_id\x18\x02 \x01(\x0b\x32\x1a.littlehorse.UserTaskDefId\x12\x17\n\nuser_group\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07user_id\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x36\n\x07results\x18\x06 \x03(\x0b\x32%.littlehorse.UserTaskRun.ResultsEntry\x12.\n\x06status\x18\x07 \x01(\x0e\x32\x1e.littlehorse.UserTaskRunStatus\x12*\n\x06\x65vents\x18\x08 \x03(\x0b\x32\x1a.littlehorse.UserTaskEvent\x12\x12\n\x05notes\x18\t \x01(\tH\x02\x88\x01\x01\x12\x32\n\x0escheduled_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x0bnode_run_id\x18\x0b \x01(\x0b\x32\x16.littlehorse.NodeRunId\x12\r\n\x05\x65poch\x18\x0c \x01(\x05\x1aJ\n\x0cResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.littlehorse.VariableValue:\x02\x38\x01\x42\r\n\x0b_user_groupB\n\n\x08_user_idB\x08\n\x06_notes\"\xb2\x01\n\x18\x41ssignUserTaskRunRequest\x12\x34\n\x10user_task_run_id\x18\x01 \x01(\x0b\x32\x1a.littlehorse.UserTaskRunId\x12\x16\n\x0eoverride_claim\x18\x02 \x01(\x08\x12\x17\n\nuser_group\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07user_id\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\r\n\x0b_user_groupB\n\n\x08_user_id\"\xf6\x01\n\x1a\x43ompleteUserTaskRunRequest\x12\x34\n\x10user_task_run_id\x18\x01 \x01(\x0b\x32\x1a.littlehorse.UserTaskRunId\x12\x45\n\x07results\x18\x02 \x03(\x0b\x32\x34.littlehorse.CompleteUserTaskRunRequest.ResultsEntry\x12\x0f\n\x07user_id\x18\x03 \x01(\t\x1aJ\n\x0cResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.littlehorse.VariableValue:\x02\x38\x01\"\xae\x03\n\x1eSaveUserTaskRunProgressRequest\x12\x34\n\x10user_task_run_id\x18\x01 \x01(\x0b\x32\x1a.littlehorse.UserTaskRunId\x12I\n\x07results\x18\x02 \x03(\x0b\x32\x38.littlehorse.SaveUserTaskRunProgressRequest.ResultsEntry\x12\x0f\n\x07user_id\x18\x03 \x01(\t\x12[\n\x06policy\x18\x04 \x01(\x0e\x32K.littlehorse.SaveUserTaskRunProgressRequest.SaveUserTaskRunAssignmentPolicy\x1aJ\n\x0cResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.littlehorse.VariableValue:\x02\x38\x01\"Q\n\x1fSaveUserTaskRunAssignmentPolicy\x12\x1c\n\x18\x46\x41IL_IF_CLAIMED_BY_OTHER\x10\x00\x12\x10\n\x0cIGNORE_CLAIM\x10\x01\"P\n\x18\x43\x61ncelUserTaskRunRequest\x12\x34\n\x10user_task_run_id\x18\x01 \x01(\x0b\x32\x1a.littlehorse.UserTaskRunId\"\xb1\x01\n\x18UserTaskTriggerReference\x12+\n\x0bnode_run_id\x18\x01 \x01(\x0b\x32\x16.littlehorse.NodeRunId\x12\x1e\n\x16user_task_event_number\x18\x02 \x01(\x05\x12\x14\n\x07user_id\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nuser_group\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\n\n\x08_user_idB\r\n\x0b_user_group\"\x86\x06\n\rUserTaskEvent\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\rtask_executed\x18\x02 \x01(\x0b\x32*.littlehorse.UserTaskEvent.UTETaskExecutedH\x00\x12:\n\x08\x61ssigned\x18\x03 \x01(\x0b\x32&.littlehorse.UserTaskEvent.UTEAssignedH\x00\x12<\n\tcancelled\x18\x04 \x01(\x0b\x32\'.littlehorse.UserTaskEvent.UTECancelledH\x00\x12\x34\n\x05saved\x18\x05 \x01(\x0b\x32#.littlehorse.UserTaskEvent.UTESavedH\x00\x1a\x1f\n\x0cUTECancelled\x12\x0f\n\x07message\x18\x01 \x01(\t\x1a;\n\x0fUTETaskExecuted\x12(\n\x08task_run\x18\x01 \x01(\x0b\x32\x16.littlehorse.TaskRunId\x1a\xaa\x01\n\x08UTESaved\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12\x41\n\x07results\x18\x02 \x03(\x0b\x32\x30.littlehorse.UserTaskEvent.UTESaved.ResultsEntry\x1aJ\n\x0cResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.littlehorse.VariableValue:\x02\x38\x01\x1a\xc1\x01\n\x0bUTEAssigned\x12\x18\n\x0bold_user_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1b\n\x0eold_user_group\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0bnew_user_id\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x1b\n\x0enew_user_group\x18\x04 \x01(\tH\x03\x88\x01\x01\x42\x0e\n\x0c_old_user_idB\x11\n\x0f_old_user_groupB\x0e\n\x0c_new_user_idB\x11\n\x0f_new_user_groupB\x07\n\x05\x65vent*J\n\x11UserTaskRunStatus\x12\x0e\n\nUNASSIGNED\x10\x00\x12\x0c\n\x08\x41SSIGNED\x10\x01\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04\x42I\n\x1fio.littlehorse.sdk.common.protoP\x01Z\t.;lhproto\xaa\x02\x18LittleHorse.Common.Protob\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10user_tasks.proto\x12\x0blittlehorse\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x12\x63ommon_enums.proto\x1a\x0fobject_id.proto\x1a\x0evariable.proto\"\xb2\x01\n\x0bUserTaskDef\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x00\x88\x01\x01\x12*\n\x06\x66ields\x18\x04 \x03(\x0b\x32\x1a.littlehorse.UserTaskField\x12.\n\ncreated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0e\n\x0c_description\"\x99\x01\n\rUserTaskField\x12\x0c\n\x04name\x18\x01 \x01(\t\x12(\n\x04type\x18\x02 \x01(\x0e\x32\x1a.littlehorse.PrimitiveType\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x0c\x64isplay_name\x18\x04 \x01(\t\x12\x10\n\x08required\x18\x05 \x01(\x08\x42\x0e\n\x0c_description\"\xa3\x04\n\x0bUserTaskRun\x12&\n\x02id\x18\x01 \x01(\x0b\x32\x1a.littlehorse.UserTaskRunId\x12\x34\n\x10user_task_def_id\x18\x02 \x01(\x0b\x32\x1a.littlehorse.UserTaskDefId\x12\x17\n\nuser_group\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07user_id\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x36\n\x07results\x18\x06 \x03(\x0b\x32%.littlehorse.UserTaskRun.ResultsEntry\x12.\n\x06status\x18\x07 \x01(\x0e\x32\x1e.littlehorse.UserTaskRunStatus\x12*\n\x06\x65vents\x18\x08 \x03(\x0b\x32\x1a.littlehorse.UserTaskEvent\x12\x12\n\x05notes\x18\t \x01(\tH\x02\x88\x01\x01\x12\x32\n\x0escheduled_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x0bnode_run_id\x18\x0b \x01(\x0b\x32\x16.littlehorse.NodeRunId\x12\r\n\x05\x65poch\x18\x0c \x01(\x05\x1aJ\n\x0cResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.littlehorse.VariableValue:\x02\x38\x01\x42\r\n\x0b_user_groupB\n\n\x08_user_idB\x08\n\x06_notes\"\xb2\x01\n\x18\x41ssignUserTaskRunRequest\x12\x34\n\x10user_task_run_id\x18\x01 \x01(\x0b\x32\x1a.littlehorse.UserTaskRunId\x12\x16\n\x0eoverride_claim\x18\x02 \x01(\x08\x12\x17\n\nuser_group\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07user_id\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\r\n\x0b_user_groupB\n\n\x08_user_id\"\xf6\x01\n\x1a\x43ompleteUserTaskRunRequest\x12\x34\n\x10user_task_run_id\x18\x01 \x01(\x0b\x32\x1a.littlehorse.UserTaskRunId\x12\x45\n\x07results\x18\x02 \x03(\x0b\x32\x34.littlehorse.CompleteUserTaskRunRequest.ResultsEntry\x12\x0f\n\x07user_id\x18\x03 \x01(\t\x1aJ\n\x0cResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.littlehorse.VariableValue:\x02\x38\x01\"\xae\x03\n\x1eSaveUserTaskRunProgressRequest\x12\x34\n\x10user_task_run_id\x18\x01 \x01(\x0b\x32\x1a.littlehorse.UserTaskRunId\x12I\n\x07results\x18\x02 \x03(\x0b\x32\x38.littlehorse.SaveUserTaskRunProgressRequest.ResultsEntry\x12\x0f\n\x07user_id\x18\x03 \x01(\t\x12[\n\x06policy\x18\x04 \x01(\x0e\x32K.littlehorse.SaveUserTaskRunProgressRequest.SaveUserTaskRunAssignmentPolicy\x1aJ\n\x0cResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.littlehorse.VariableValue:\x02\x38\x01\"Q\n\x1fSaveUserTaskRunAssignmentPolicy\x12\x1c\n\x18\x46\x41IL_IF_CLAIMED_BY_OTHER\x10\x00\x12\x10\n\x0cIGNORE_CLAIM\x10\x01\"P\n\x18\x43\x61ncelUserTaskRunRequest\x12\x34\n\x10user_task_run_id\x18\x01 \x01(\x0b\x32\x1a.littlehorse.UserTaskRunId\"\xb1\x01\n\x18UserTaskTriggerReference\x12+\n\x0bnode_run_id\x18\x01 \x01(\x0b\x32\x16.littlehorse.NodeRunId\x12\x1e\n\x16user_task_event_number\x18\x02 \x01(\x05\x12\x14\n\x07user_id\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nuser_group\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\n\n\x08_user_idB\r\n\x0b_user_group\"\x86\x06\n\rUserTaskEvent\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\rtask_executed\x18\x02 \x01(\x0b\x32*.littlehorse.UserTaskEvent.UTETaskExecutedH\x00\x12:\n\x08\x61ssigned\x18\x03 \x01(\x0b\x32&.littlehorse.UserTaskEvent.UTEAssignedH\x00\x12<\n\tcancelled\x18\x04 \x01(\x0b\x32\'.littlehorse.UserTaskEvent.UTECancelledH\x00\x12\x34\n\x05saved\x18\x05 \x01(\x0b\x32#.littlehorse.UserTaskEvent.UTESavedH\x00\x1a\x1f\n\x0cUTECancelled\x12\x0f\n\x07message\x18\x01 \x01(\t\x1a;\n\x0fUTETaskExecuted\x12(\n\x08task_run\x18\x01 \x01(\x0b\x32\x16.littlehorse.TaskRunId\x1a\xaa\x01\n\x08UTESaved\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12\x41\n\x07results\x18\x02 \x03(\x0b\x32\x30.littlehorse.UserTaskEvent.UTESaved.ResultsEntry\x1aJ\n\x0cResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.littlehorse.VariableValue:\x02\x38\x01\x1a\xc1\x01\n\x0bUTEAssigned\x12\x18\n\x0bold_user_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1b\n\x0eold_user_group\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0bnew_user_id\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x1b\n\x0enew_user_group\x18\x04 \x01(\tH\x03\x88\x01\x01\x42\x0e\n\x0c_old_user_idB\x11\n\x0f_old_user_groupB\x0e\n\x0c_new_user_idB\x11\n\x0f_new_user_groupB\x07\n\x05\x65vent*J\n\x11UserTaskRunStatus\x12\x0e\n\nUNASSIGNED\x10\x00\x12\x0c\n\x08\x41SSIGNED\x10\x01\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04\x42I\n\x1fio.littlehorse.sdk.common.protoP\x01Z\t.;lhproto\xaa\x02\x18LittleHorse.Common.Protob\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -34,42 +34,42 @@ _SAVEUSERTASKRUNPROGRESSREQUEST_RESULTSENTRY._serialized_options = b'8\001' _USERTASKEVENT_UTESAVED_RESULTSENTRY._options = None _USERTASKEVENT_UTESAVED_RESULTSENTRY._serialized_options = b'8\001' - _globals['_USERTASKRUNSTATUS']._serialized_start=2907 - _globals['_USERTASKRUNSTATUS']._serialized_end=2981 + _globals['_USERTASKRUNSTATUS']._serialized_start=2908 + _globals['_USERTASKRUNSTATUS']._serialized_end=2982 _globals['_USERTASKDEF']._serialized_start=120 _globals['_USERTASKDEF']._serialized_end=298 _globals['_USERTASKFIELD']._serialized_start=301 - _globals['_USERTASKFIELD']._serialized_end=453 - _globals['_USERTASKRUN']._serialized_start=456 - _globals['_USERTASKRUN']._serialized_end=1003 - _globals['_USERTASKRUN_RESULTSENTRY']._serialized_start=892 - _globals['_USERTASKRUN_RESULTSENTRY']._serialized_end=966 - _globals['_ASSIGNUSERTASKRUNREQUEST']._serialized_start=1006 - _globals['_ASSIGNUSERTASKRUNREQUEST']._serialized_end=1184 - _globals['_COMPLETEUSERTASKRUNREQUEST']._serialized_start=1187 - _globals['_COMPLETEUSERTASKRUNREQUEST']._serialized_end=1433 - _globals['_COMPLETEUSERTASKRUNREQUEST_RESULTSENTRY']._serialized_start=892 - _globals['_COMPLETEUSERTASKRUNREQUEST_RESULTSENTRY']._serialized_end=966 - _globals['_SAVEUSERTASKRUNPROGRESSREQUEST']._serialized_start=1436 - _globals['_SAVEUSERTASKRUNPROGRESSREQUEST']._serialized_end=1866 - _globals['_SAVEUSERTASKRUNPROGRESSREQUEST_RESULTSENTRY']._serialized_start=892 - _globals['_SAVEUSERTASKRUNPROGRESSREQUEST_RESULTSENTRY']._serialized_end=966 - _globals['_SAVEUSERTASKRUNPROGRESSREQUEST_SAVEUSERTASKRUNASSIGNMENTPOLICY']._serialized_start=1785 - _globals['_SAVEUSERTASKRUNPROGRESSREQUEST_SAVEUSERTASKRUNASSIGNMENTPOLICY']._serialized_end=1866 - _globals['_CANCELUSERTASKRUNREQUEST']._serialized_start=1868 - _globals['_CANCELUSERTASKRUNREQUEST']._serialized_end=1948 - _globals['_USERTASKTRIGGERREFERENCE']._serialized_start=1951 - _globals['_USERTASKTRIGGERREFERENCE']._serialized_end=2128 - _globals['_USERTASKEVENT']._serialized_start=2131 - _globals['_USERTASKEVENT']._serialized_end=2905 - _globals['_USERTASKEVENT_UTECANCELLED']._serialized_start=2435 - _globals['_USERTASKEVENT_UTECANCELLED']._serialized_end=2466 - _globals['_USERTASKEVENT_UTETASKEXECUTED']._serialized_start=2468 - _globals['_USERTASKEVENT_UTETASKEXECUTED']._serialized_end=2527 - _globals['_USERTASKEVENT_UTESAVED']._serialized_start=2530 - _globals['_USERTASKEVENT_UTESAVED']._serialized_end=2700 - _globals['_USERTASKEVENT_UTESAVED_RESULTSENTRY']._serialized_start=892 - _globals['_USERTASKEVENT_UTESAVED_RESULTSENTRY']._serialized_end=966 - _globals['_USERTASKEVENT_UTEASSIGNED']._serialized_start=2703 - _globals['_USERTASKEVENT_UTEASSIGNED']._serialized_end=2896 + _globals['_USERTASKFIELD']._serialized_end=454 + _globals['_USERTASKRUN']._serialized_start=457 + _globals['_USERTASKRUN']._serialized_end=1004 + _globals['_USERTASKRUN_RESULTSENTRY']._serialized_start=893 + _globals['_USERTASKRUN_RESULTSENTRY']._serialized_end=967 + _globals['_ASSIGNUSERTASKRUNREQUEST']._serialized_start=1007 + _globals['_ASSIGNUSERTASKRUNREQUEST']._serialized_end=1185 + _globals['_COMPLETEUSERTASKRUNREQUEST']._serialized_start=1188 + _globals['_COMPLETEUSERTASKRUNREQUEST']._serialized_end=1434 + _globals['_COMPLETEUSERTASKRUNREQUEST_RESULTSENTRY']._serialized_start=893 + _globals['_COMPLETEUSERTASKRUNREQUEST_RESULTSENTRY']._serialized_end=967 + _globals['_SAVEUSERTASKRUNPROGRESSREQUEST']._serialized_start=1437 + _globals['_SAVEUSERTASKRUNPROGRESSREQUEST']._serialized_end=1867 + _globals['_SAVEUSERTASKRUNPROGRESSREQUEST_RESULTSENTRY']._serialized_start=893 + _globals['_SAVEUSERTASKRUNPROGRESSREQUEST_RESULTSENTRY']._serialized_end=967 + _globals['_SAVEUSERTASKRUNPROGRESSREQUEST_SAVEUSERTASKRUNASSIGNMENTPOLICY']._serialized_start=1786 + _globals['_SAVEUSERTASKRUNPROGRESSREQUEST_SAVEUSERTASKRUNASSIGNMENTPOLICY']._serialized_end=1867 + _globals['_CANCELUSERTASKRUNREQUEST']._serialized_start=1869 + _globals['_CANCELUSERTASKRUNREQUEST']._serialized_end=1949 + _globals['_USERTASKTRIGGERREFERENCE']._serialized_start=1952 + _globals['_USERTASKTRIGGERREFERENCE']._serialized_end=2129 + _globals['_USERTASKEVENT']._serialized_start=2132 + _globals['_USERTASKEVENT']._serialized_end=2906 + _globals['_USERTASKEVENT_UTECANCELLED']._serialized_start=2436 + _globals['_USERTASKEVENT_UTECANCELLED']._serialized_end=2467 + _globals['_USERTASKEVENT_UTETASKEXECUTED']._serialized_start=2469 + _globals['_USERTASKEVENT_UTETASKEXECUTED']._serialized_end=2528 + _globals['_USERTASKEVENT_UTESAVED']._serialized_start=2531 + _globals['_USERTASKEVENT_UTESAVED']._serialized_end=2701 + _globals['_USERTASKEVENT_UTESAVED_RESULTSENTRY']._serialized_start=893 + _globals['_USERTASKEVENT_UTESAVED_RESULTSENTRY']._serialized_end=967 + _globals['_USERTASKEVENT_UTEASSIGNED']._serialized_start=2704 + _globals['_USERTASKEVENT_UTEASSIGNED']._serialized_end=2897 # @@protoc_insertion_point(module_scope) diff --git a/sdk-python/littlehorse/model/user_tasks_pb2.pyi b/sdk-python/littlehorse/model/user_tasks_pb2.pyi index 7d9cff440..89c3decef 100644 --- a/sdk-python/littlehorse/model/user_tasks_pb2.pyi +++ b/sdk-python/littlehorse/model/user_tasks_pb2.pyi @@ -43,11 +43,11 @@ class UserTaskField(_message.Message): DISPLAY_NAME_FIELD_NUMBER: _ClassVar[int] REQUIRED_FIELD_NUMBER: _ClassVar[int] name: str - type: _common_enums_pb2.VariableType + type: _common_enums_pb2.PrimitiveType description: str display_name: str required: bool - def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[_common_enums_pb2.VariableType, str]] = ..., description: _Optional[str] = ..., display_name: _Optional[str] = ..., required: bool = ...) -> None: ... + def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[_common_enums_pb2.PrimitiveType, str]] = ..., description: _Optional[str] = ..., display_name: _Optional[str] = ..., required: bool = ...) -> None: ... class UserTaskRun(_message.Message): __slots__ = ["id", "user_task_def_id", "user_group", "user_id", "results", "status", "events", "notes", "scheduled_time", "node_run_id", "epoch"] diff --git a/sdk-python/littlehorse/model/variable_pb2.py b/sdk-python/littlehorse/model/variable_pb2.py index 136ba8cd5..9aa6c118c 100644 --- a/sdk-python/littlehorse/model/variable_pb2.py +++ b/sdk-python/littlehorse/model/variable_pb2.py @@ -13,9 +13,10 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 import littlehorse.model.object_id_pb2 as object__id__pb2 +import littlehorse.model.common_enums_pb2 as common__enums__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0evariable.proto\x12\x0blittlehorse\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x0fobject_id.proto\"\x97\x01\n\rVariableValue\x12\x12\n\x08json_obj\x18\x02 \x01(\tH\x00\x12\x12\n\x08json_arr\x18\x03 \x01(\tH\x00\x12\x10\n\x06\x64ouble\x18\x04 \x01(\x01H\x00\x12\x0e\n\x04\x62ool\x18\x05 \x01(\x08H\x00\x12\r\n\x03str\x18\x06 \x01(\tH\x00\x12\r\n\x03int\x18\x07 \x01(\x03H\x00\x12\x0f\n\x05\x62ytes\x18\x08 \x01(\x0cH\x00\x42\x07\n\x05valueJ\x04\x08\x01\x10\x02\"\xc5\x01\n\x08Variable\x12#\n\x02id\x18\x01 \x01(\x0b\x32\x17.littlehorse.VariableId\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.littlehorse.VariableValue\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12)\n\nwf_spec_id\x18\x04 \x01(\x0b\x32\x15.littlehorse.WfSpecId\x12\x0e\n\x06masked\x18\x05 \x01(\x08\x42I\n\x1fio.littlehorse.sdk.common.protoP\x01Z\t.;lhproto\xaa\x02\x18LittleHorse.Common.Protob\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0evariable.proto\x12\x0blittlehorse\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x0fobject_id.proto\x1a\x12\x63ommon_enums.proto\"\xbe\x01\n\rVariableValue\x12\x12\n\x08json_obj\x18\x02 \x01(\tH\x00\x12\x12\n\x08json_arr\x18\x03 \x01(\tH\x00\x12\x10\n\x06\x64ouble\x18\x04 \x01(\x01H\x00\x12\x0e\n\x04\x62ool\x18\x05 \x01(\x08H\x00\x12\r\n\x03str\x18\x06 \x01(\tH\x00\x12\r\n\x03int\x18\x07 \x01(\x03H\x00\x12\x0f\n\x05\x62ytes\x18\x08 \x01(\x0cH\x00\x12%\n\x06struct\x18\t \x01(\x0b\x32\x13.littlehorse.StructH\x00\x42\x07\n\x05valueJ\x04\x08\x01\x10\x02\"\xc5\x01\n\x08Variable\x12#\n\x02id\x18\x01 \x01(\x0b\x32\x17.littlehorse.VariableId\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.littlehorse.VariableValue\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12)\n\nwf_spec_id\x18\x04 \x01(\x0b\x32\x15.littlehorse.WfSpecId\x12\x0e\n\x06masked\x18\x05 \x01(\x08\"]\n\x06Struct\x12(\n\tschema_id\x18\x01 \x01(\x0b\x32\x15.littlehorse.SchemaId\x12)\n\x06struct\x18\x02 \x01(\x0b\x32\x19.littlehorse.InlineStruct\"8\n\x0cInlineStruct\x12(\n\x06\x66ields\x18\x01 \x03(\x0b\x32\x18.littlehorse.StructField\"\xe6\x01\n\x0bStructField\x12/\n\tprimitive\x18\x01 \x01(\x0b\x32\x1a.littlehorse.VariableValueH\x00\x12+\n\x06struct\x18\x02 \x01(\x0b\x32\x19.littlehorse.InlineStructH\x00\x12\x32\n\x04list\x18\x03 \x01(\x0b\x32\".littlehorse.StructField.FieldListH\x00\x1a\x35\n\tFieldList\x12(\n\x06\x66ields\x18\x01 \x03(\x0b\x32\x18.littlehorse.StructFieldB\x0e\n\x0cstruct_value\"\xcc\x01\n\x0bSchemaField\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08optional\x18\x02 \x01(\x08\x12/\n\tprimitive\x18\x03 \x01(\x0e\x32\x1a.littlehorse.PrimitiveTypeH\x00\x12*\n\tschema_id\x18\x04 \x01(\x0b\x32\x15.littlehorse.SchemaIdH\x00\x12\x32\n\rinline_schema\x18\x05 \x01(\x0b\x32\x19.littlehorse.InlineSchemaH\x00\x42\x0c\n\nfield_type\"\x80\x01\n\x06Schema\x12!\n\x02id\x18\x01 \x01(\x0b\x32\x15.littlehorse.SchemaId\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x12)\n\x06schema\x18\x03 \x01(\x0b\x32\x19.littlehorse.InlineSchemaB\x0e\n\x0c_description\"8\n\x0cInlineSchema\x12(\n\x06\x66ields\x18\x01 \x03(\x0b\x32\x18.littlehorse.SchemaFieldBI\n\x1fio.littlehorse.sdk.common.protoP\x01Z\t.;lhproto\xaa\x02\x18LittleHorse.Common.Protob\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -24,8 +25,22 @@ DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n\037io.littlehorse.sdk.common.protoP\001Z\t.;lhproto\252\002\030LittleHorse.Common.Proto' - _globals['_VARIABLEVALUE']._serialized_start=82 - _globals['_VARIABLEVALUE']._serialized_end=233 - _globals['_VARIABLE']._serialized_start=236 - _globals['_VARIABLE']._serialized_end=433 + _globals['_VARIABLEVALUE']._serialized_start=102 + _globals['_VARIABLEVALUE']._serialized_end=292 + _globals['_VARIABLE']._serialized_start=295 + _globals['_VARIABLE']._serialized_end=492 + _globals['_STRUCT']._serialized_start=494 + _globals['_STRUCT']._serialized_end=587 + _globals['_INLINESTRUCT']._serialized_start=589 + _globals['_INLINESTRUCT']._serialized_end=645 + _globals['_STRUCTFIELD']._serialized_start=648 + _globals['_STRUCTFIELD']._serialized_end=878 + _globals['_STRUCTFIELD_FIELDLIST']._serialized_start=809 + _globals['_STRUCTFIELD_FIELDLIST']._serialized_end=862 + _globals['_SCHEMAFIELD']._serialized_start=881 + _globals['_SCHEMAFIELD']._serialized_end=1085 + _globals['_SCHEMA']._serialized_start=1088 + _globals['_SCHEMA']._serialized_end=1216 + _globals['_INLINESCHEMA']._serialized_start=1218 + _globals['_INLINESCHEMA']._serialized_end=1274 # @@protoc_insertion_point(module_scope) diff --git a/sdk-python/littlehorse/model/variable_pb2.pyi b/sdk-python/littlehorse/model/variable_pb2.pyi index 06e4587cf..c7ab3f48b 100644 --- a/sdk-python/littlehorse/model/variable_pb2.pyi +++ b/sdk-python/littlehorse/model/variable_pb2.pyi @@ -1,13 +1,15 @@ from google.protobuf import timestamp_pb2 as _timestamp_pb2 import littlehorse.model.object_id_pb2 as _object_id_pb2 +import littlehorse.model.common_enums_pb2 as _common_enums_pb2 +from google.protobuf.internal import containers as _containers from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor class VariableValue(_message.Message): - __slots__ = ["json_obj", "json_arr", "double", "bool", "str", "int", "bytes"] + __slots__ = ["json_obj", "json_arr", "double", "bool", "str", "int", "bytes", "struct"] JSON_OBJ_FIELD_NUMBER: _ClassVar[int] JSON_ARR_FIELD_NUMBER: _ClassVar[int] DOUBLE_FIELD_NUMBER: _ClassVar[int] @@ -15,6 +17,7 @@ class VariableValue(_message.Message): STR_FIELD_NUMBER: _ClassVar[int] INT_FIELD_NUMBER: _ClassVar[int] BYTES_FIELD_NUMBER: _ClassVar[int] + STRUCT_FIELD_NUMBER: _ClassVar[int] json_obj: str json_arr: str double: float @@ -22,7 +25,8 @@ class VariableValue(_message.Message): str: str int: int bytes: bytes - def __init__(self, json_obj: _Optional[str] = ..., json_arr: _Optional[str] = ..., double: _Optional[float] = ..., bool: bool = ..., str: _Optional[str] = ..., int: _Optional[int] = ..., bytes: _Optional[bytes] = ...) -> None: ... + struct: Struct + def __init__(self, json_obj: _Optional[str] = ..., json_arr: _Optional[str] = ..., double: _Optional[float] = ..., bool: bool = ..., str: _Optional[str] = ..., int: _Optional[int] = ..., bytes: _Optional[bytes] = ..., struct: _Optional[_Union[Struct, _Mapping]] = ...) -> None: ... class Variable(_message.Message): __slots__ = ["id", "value", "created_at", "wf_spec_id", "masked"] @@ -37,3 +41,62 @@ class Variable(_message.Message): wf_spec_id: _object_id_pb2.WfSpecId masked: bool def __init__(self, id: _Optional[_Union[_object_id_pb2.VariableId, _Mapping]] = ..., value: _Optional[_Union[VariableValue, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., wf_spec_id: _Optional[_Union[_object_id_pb2.WfSpecId, _Mapping]] = ..., masked: bool = ...) -> None: ... + +class Struct(_message.Message): + __slots__ = ["schema_id", "struct"] + SCHEMA_ID_FIELD_NUMBER: _ClassVar[int] + STRUCT_FIELD_NUMBER: _ClassVar[int] + schema_id: _object_id_pb2.SchemaId + struct: InlineStruct + def __init__(self, schema_id: _Optional[_Union[_object_id_pb2.SchemaId, _Mapping]] = ..., struct: _Optional[_Union[InlineStruct, _Mapping]] = ...) -> None: ... + +class InlineStruct(_message.Message): + __slots__ = ["fields"] + FIELDS_FIELD_NUMBER: _ClassVar[int] + fields: _containers.RepeatedCompositeFieldContainer[StructField] + def __init__(self, fields: _Optional[_Iterable[_Union[StructField, _Mapping]]] = ...) -> None: ... + +class StructField(_message.Message): + __slots__ = ["primitive", "struct", "list"] + class FieldList(_message.Message): + __slots__ = ["fields"] + FIELDS_FIELD_NUMBER: _ClassVar[int] + fields: _containers.RepeatedCompositeFieldContainer[StructField] + def __init__(self, fields: _Optional[_Iterable[_Union[StructField, _Mapping]]] = ...) -> None: ... + PRIMITIVE_FIELD_NUMBER: _ClassVar[int] + STRUCT_FIELD_NUMBER: _ClassVar[int] + LIST_FIELD_NUMBER: _ClassVar[int] + primitive: VariableValue + struct: InlineStruct + list: StructField.FieldList + def __init__(self, primitive: _Optional[_Union[VariableValue, _Mapping]] = ..., struct: _Optional[_Union[InlineStruct, _Mapping]] = ..., list: _Optional[_Union[StructField.FieldList, _Mapping]] = ...) -> None: ... + +class SchemaField(_message.Message): + __slots__ = ["name", "optional", "primitive", "schema_id", "inline_schema"] + NAME_FIELD_NUMBER: _ClassVar[int] + OPTIONAL_FIELD_NUMBER: _ClassVar[int] + PRIMITIVE_FIELD_NUMBER: _ClassVar[int] + SCHEMA_ID_FIELD_NUMBER: _ClassVar[int] + INLINE_SCHEMA_FIELD_NUMBER: _ClassVar[int] + name: str + optional: bool + primitive: _common_enums_pb2.PrimitiveType + schema_id: _object_id_pb2.SchemaId + inline_schema: InlineSchema + def __init__(self, name: _Optional[str] = ..., optional: bool = ..., primitive: _Optional[_Union[_common_enums_pb2.PrimitiveType, str]] = ..., schema_id: _Optional[_Union[_object_id_pb2.SchemaId, _Mapping]] = ..., inline_schema: _Optional[_Union[InlineSchema, _Mapping]] = ...) -> None: ... + +class Schema(_message.Message): + __slots__ = ["id", "description", "schema"] + ID_FIELD_NUMBER: _ClassVar[int] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + SCHEMA_FIELD_NUMBER: _ClassVar[int] + id: _object_id_pb2.SchemaId + description: str + schema: InlineSchema + def __init__(self, id: _Optional[_Union[_object_id_pb2.SchemaId, _Mapping]] = ..., description: _Optional[str] = ..., schema: _Optional[_Union[InlineSchema, _Mapping]] = ...) -> None: ... + +class InlineSchema(_message.Message): + __slots__ = ["fields"] + FIELDS_FIELD_NUMBER: _ClassVar[int] + fields: _containers.RepeatedCompositeFieldContainer[SchemaField] + def __init__(self, fields: _Optional[_Iterable[_Union[SchemaField, _Mapping]]] = ...) -> None: ... diff --git a/sdk-python/littlehorse/model/wf_spec_pb2.py b/sdk-python/littlehorse/model/wf_spec_pb2.py index 8a64d0d55..d826b875e 100644 --- a/sdk-python/littlehorse/model/wf_spec_pb2.py +++ b/sdk-python/littlehorse/model/wf_spec_pb2.py @@ -17,7 +17,7 @@ import littlehorse.model.object_id_pb2 as object__id__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rwf_spec.proto\x12\x0blittlehorse\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x12\x63ommon_enums.proto\x1a\x13\x63ommon_wfspec.proto\x1a\x0fobject_id.proto\"\xb4\x05\n\x06WfSpec\x12!\n\x02id\x18\x01 \x01(\x0b\x32\x15.littlehorse.WfSpecId\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x10\x66rozen_variables\x18\x03 \x03(\x0b\x32\x19.littlehorse.ThreadVarDef\x12+\n\x06status\x18\x04 \x01(\x0e\x32\x1b.littlehorse.MetadataStatus\x12:\n\x0cthread_specs\x18\x05 \x03(\x0b\x32$.littlehorse.WfSpec.ThreadSpecsEntry\x12\x1e\n\x16\x65ntrypoint_thread_name\x18\x06 \x01(\t\x12\x43\n\x10retention_policy\x18\x07 \x01(\x0b\x32$.littlehorse.WorkflowRetentionPolicyH\x00\x88\x01\x01\x12;\n\tmigration\x18\x08 \x01(\x0b\x32#.littlehorse.WfSpecVersionMigrationH\x01\x88\x01\x01\x12\x46\n\x0eparent_wf_spec\x18\t \x01(\x0b\x32).littlehorse.WfSpec.ParentWfSpecReferenceH\x02\x88\x01\x01\x1aK\n\x10ThreadSpecsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.littlehorse.ThreadSpec:\x02\x38\x01\x1aL\n\x15ParentWfSpecReference\x12\x14\n\x0cwf_spec_name\x18\x01 \x01(\t\x12\x1d\n\x15wf_spec_major_version\x18\x02 \x01(\x05\x42\x13\n\x11_retention_policyB\x0c\n\n_migrationB\x11\n\x0f_parent_wf_spec\"Q\n\x17WorkflowRetentionPolicy\x12&\n\x1cseconds_after_wf_termination\x18\x01 \x01(\x03H\x00\x42\x0e\n\x0cwf_gc_policy\"N\n\tJsonIndex\x12\x12\n\nfield_path\x18\x01 \x01(\t\x12-\n\nfield_type\x18\x02 \x01(\x0e\x32\x19.littlehorse.VariableType\"\xca\x01\n\x0cThreadVarDef\x12)\n\x07var_def\x18\x01 \x01(\x0b\x32\x18.littlehorse.VariableDef\x12\x10\n\x08required\x18\x02 \x01(\x08\x12\x12\n\nsearchable\x18\x03 \x01(\x08\x12,\n\x0cjson_indexes\x18\x04 \x03(\x0b\x32\x16.littlehorse.JsonIndex\x12;\n\x0c\x61\x63\x63\x65ss_level\x18\x05 \x01(\x0e\x32%.littlehorse.WfRunVariableAccessLevel\"\xbd\x02\n\nThreadSpec\x12\x31\n\x05nodes\x18\x01 \x03(\x0b\x32\".littlehorse.ThreadSpec.NodesEntry\x12\x30\n\rvariable_defs\x18\x02 \x03(\x0b\x32\x19.littlehorse.ThreadVarDef\x12\x31\n\x0einterrupt_defs\x18\x03 \x03(\x0b\x32\x19.littlehorse.InterruptDef\x12\x41\n\x10retention_policy\x18\x04 \x01(\x0b\x32\".littlehorse.ThreadRetentionPolicyH\x00\x88\x01\x01\x1a?\n\nNodesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12 \n\x05value\x18\x02 \x01(\x0b\x32\x11.littlehorse.Node:\x02\x38\x01\x42\x13\n\x11_retention_policy\"W\n\x15ThreadRetentionPolicy\x12*\n seconds_after_thread_termination\x18\x01 \x01(\x03H\x00\x42\x12\n\x10thread_gc_policy\"i\n\x0cInterruptDef\x12>\n\x15\x65xternal_event_def_id\x18\x01 \x01(\x0b\x32\x1f.littlehorse.ExternalEventDefId\x12\x19\n\x11handler_spec_name\x18\x02 \x01(\t\"\xbe\x01\n\x0fStartThreadNode\x12\x18\n\x10thread_spec_name\x18\x01 \x01(\t\x12>\n\tvariables\x18\x02 \x03(\x0b\x32+.littlehorse.StartThreadNode.VariablesEntry\x1aQ\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment:\x02\x38\x01\"\x83\x02\n\x18StartMultipleThreadsNode\x12\x18\n\x10thread_spec_name\x18\x01 \x01(\t\x12G\n\tvariables\x18\x02 \x03(\x0b\x32\x34.littlehorse.StartMultipleThreadsNode.VariablesEntry\x12\x31\n\x08iterable\x18\x03 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment\x1aQ\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment:\x02\x38\x01\"\xf0\x01\n\x11\x46\x61ilureHandlerDef\x12\x19\n\x11handler_spec_name\x18\x02 \x01(\t\x12\x1a\n\x10specific_failure\x18\x01 \x01(\tH\x00\x12K\n\x13\x61ny_failure_of_type\x18\x03 \x01(\x0e\x32,.littlehorse.FailureHandlerDef.LHFailureTypeH\x00\"C\n\rLHFailureType\x12\x16\n\x12\x46\x41ILURE_TYPE_ERROR\x10\x00\x12\x1a\n\x16\x46\x41ILURE_TYPE_EXCEPTION\x10\x01\x42\x12\n\x10\x66\x61ilure_to_catch\"\x92\x03\n\x12WaitForThreadsNode\x12\x43\n\x07threads\x18\x01 \x01(\x0b\x32\x30.littlehorse.WaitForThreadsNode.ThreadsToWaitForH\x00\x12\x36\n\x0bthread_list\x18\x02 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x00\x12\x43\n\x1bper_thread_failure_handlers\x18\x03 \x03(\x0b\x32\x1e.littlehorse.FailureHandlerDef\x1aM\n\x0fThreadToWaitFor\x12:\n\x11thread_run_number\x18\x01 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment\x1aT\n\x10ThreadsToWaitFor\x12@\n\x07threads\x18\x01 \x03(\x0b\x32/.littlehorse.WaitForThreadsNode.ThreadToWaitForB\x15\n\x13threads_to_wait_for\"\x8d\x01\n\x11\x45xternalEventNode\x12>\n\x15\x65xternal_event_def_id\x18\x01 \x01(\x0b\x32\x1f.littlehorse.ExternalEventDefId\x12\x38\n\x0ftimeout_seconds\x18\x02 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment\"\x10\n\x0e\x45ntrypointNode\"M\n\x08\x45xitNode\x12\x31\n\x0b\x66\x61ilure_def\x18\x01 \x01(\x0b\x32\x17.littlehorse.FailureDefH\x00\x88\x01\x01\x42\x0e\n\x0c_failure_def\"v\n\nFailureDef\x12\x14\n\x0c\x66\x61ilure_name\x18\x01 \x01(\t\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x35\n\x07\x63ontent\x18\x03 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x00\x88\x01\x01\x42\n\n\x08_content\"\x9c\x05\n\x04Node\x12)\n\x0eoutgoing_edges\x18\x01 \x03(\x0b\x32\x11.littlehorse.Edge\x12\x38\n\x10\x66\x61ilure_handlers\x18\x04 \x03(\x0b\x32\x1e.littlehorse.FailureHandlerDef\x12\x31\n\nentrypoint\x18\x05 \x01(\x0b\x32\x1b.littlehorse.EntrypointNodeH\x00\x12%\n\x04\x65xit\x18\x06 \x01(\x0b\x32\x15.littlehorse.ExitNodeH\x00\x12%\n\x04task\x18\x07 \x01(\x0b\x32\x15.littlehorse.TaskNodeH\x00\x12\x38\n\x0e\x65xternal_event\x18\x08 \x01(\x0b\x32\x1e.littlehorse.ExternalEventNodeH\x00\x12\x34\n\x0cstart_thread\x18\t \x01(\x0b\x32\x1c.littlehorse.StartThreadNodeH\x00\x12;\n\x10wait_for_threads\x18\n \x01(\x0b\x32\x1f.littlehorse.WaitForThreadsNodeH\x00\x12#\n\x03nop\x18\x0b \x01(\x0b\x32\x14.littlehorse.NopNodeH\x00\x12\'\n\x05sleep\x18\x0c \x01(\x0b\x32\x16.littlehorse.SleepNodeH\x00\x12.\n\tuser_task\x18\r \x01(\x0b\x32\x19.littlehorse.UserTaskNodeH\x00\x12G\n\x16start_multiple_threads\x18\x0f \x01(\x0b\x32%.littlehorse.StartMultipleThreadsNodeH\x00\x12\x32\n\x0bthrow_event\x18\x10 \x01(\x0b\x32\x1b.littlehorse.ThrowEventNodeH\x00\x42\x06\n\x04node\"y\n\x0eThrowEventNode\x12\x35\n\x0c\x65vent_def_id\x18\x01 \x01(\x0b\x32\x1f.littlehorse.WorkflowEventDefId\x12\x30\n\x07\x63ontent\x18\x02 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment\"\xd3\x03\n\x0cUserTaskNode\x12\x1a\n\x12user_task_def_name\x18\x01 \x01(\t\x12\x38\n\nuser_group\x18\x02 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x00\x88\x01\x01\x12\x35\n\x07user_id\x18\x03 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x01\x88\x01\x01\x12-\n\x07\x61\x63tions\x18\x04 \x03(\x0b\x32\x1c.littlehorse.UTActionTrigger\x12\"\n\x15user_task_def_version\x18\x05 \x01(\x05H\x02\x88\x01\x01\x12\x33\n\x05notes\x18\x06 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x03\x88\x01\x01\x12L\n\x1eon_cancellation_exception_name\x18\x07 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x04\x88\x01\x01\x42\r\n\x0b_user_groupB\n\n\x08_user_idB\x18\n\x16_user_task_def_versionB\x08\n\x06_notesB!\n\x1f_on_cancellation_exception_name\"\x9b\x01\n\rEdgeCondition\x12+\n\ncomparator\x18\x01 \x01(\x0e\x32\x17.littlehorse.Comparator\x12-\n\x04left\x18\x02 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment\x12.\n\x05right\x18\x03 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment\"\x9b\x01\n\x04\x45\x64ge\x12\x16\n\x0esink_node_name\x18\x01 \x01(\t\x12\x32\n\tcondition\x18\x02 \x01(\x0b\x32\x1a.littlehorse.EdgeConditionH\x00\x88\x01\x01\x12\x39\n\x12variable_mutations\x18\x03 \x03(\x0b\x32\x1d.littlehorse.VariableMutationB\x0c\n\n_condition\"\t\n\x07NopNode\"\xbe\x01\n\tSleepNode\x12\x36\n\x0braw_seconds\x18\x01 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x00\x12\x34\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x00\x12\x33\n\x08iso_date\x18\x03 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x00\x42\x0e\n\x0csleep_length\"\x87\x02\n\x16WfSpecVersionMigration\x12\x19\n\x11new_major_version\x18\x01 \x01(\x05\x12\x14\n\x0cnew_revision\x18\x02 \x01(\x05\x12]\n\x16thread_spec_migrations\x18\x03 \x03(\x0b\x32=.littlehorse.WfSpecVersionMigration.ThreadSpecMigrationsEntry\x1a]\n\x19ThreadSpecMigrationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .littlehorse.ThreadSpecMigration:\x02\x38\x01\"\xd5\x01\n\x13ThreadSpecMigration\x12\x1c\n\x14new_thread_spec_name\x18\x01 \x01(\t\x12M\n\x0fnode_migrations\x18\x02 \x03(\x0b\x32\x34.littlehorse.ThreadSpecMigration.NodeMigrationsEntry\x1aQ\n\x13NodeMigrationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.littlehorse.NodeMigration:\x02\x38\x01\"&\n\rNodeMigration\x12\x15\n\rnew_node_name\x18\x01 \x01(\t*N\n\x18WfRunVariableAccessLevel\x12\x0e\n\nPUBLIC_VAR\x10\x00\x12\x0f\n\x0bPRIVATE_VAR\x10\x01\x12\x11\n\rINHERITED_VAR\x10\x02\x42I\n\x1fio.littlehorse.sdk.common.protoP\x01Z\t.;lhproto\xaa\x02\x18LittleHorse.Common.Protob\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rwf_spec.proto\x12\x0blittlehorse\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x12\x63ommon_enums.proto\x1a\x13\x63ommon_wfspec.proto\x1a\x0fobject_id.proto\"\xb4\x05\n\x06WfSpec\x12!\n\x02id\x18\x01 \x01(\x0b\x32\x15.littlehorse.WfSpecId\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x10\x66rozen_variables\x18\x03 \x03(\x0b\x32\x19.littlehorse.ThreadVarDef\x12+\n\x06status\x18\x04 \x01(\x0e\x32\x1b.littlehorse.MetadataStatus\x12:\n\x0cthread_specs\x18\x05 \x03(\x0b\x32$.littlehorse.WfSpec.ThreadSpecsEntry\x12\x1e\n\x16\x65ntrypoint_thread_name\x18\x06 \x01(\t\x12\x43\n\x10retention_policy\x18\x07 \x01(\x0b\x32$.littlehorse.WorkflowRetentionPolicyH\x00\x88\x01\x01\x12;\n\tmigration\x18\x08 \x01(\x0b\x32#.littlehorse.WfSpecVersionMigrationH\x01\x88\x01\x01\x12\x46\n\x0eparent_wf_spec\x18\t \x01(\x0b\x32).littlehorse.WfSpec.ParentWfSpecReferenceH\x02\x88\x01\x01\x1aK\n\x10ThreadSpecsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.littlehorse.ThreadSpec:\x02\x38\x01\x1aL\n\x15ParentWfSpecReference\x12\x14\n\x0cwf_spec_name\x18\x01 \x01(\t\x12\x1d\n\x15wf_spec_major_version\x18\x02 \x01(\x05\x42\x13\n\x11_retention_policyB\x0c\n\n_migrationB\x11\n\x0f_parent_wf_spec\"Q\n\x17WorkflowRetentionPolicy\x12&\n\x1cseconds_after_wf_termination\x18\x01 \x01(\x03H\x00\x42\x0e\n\x0cwf_gc_policy\"O\n\tJsonIndex\x12\x12\n\nfield_path\x18\x01 \x01(\t\x12.\n\nfield_type\x18\x02 \x01(\x0e\x32\x1a.littlehorse.PrimitiveType\"\xca\x01\n\x0cThreadVarDef\x12)\n\x07var_def\x18\x01 \x01(\x0b\x32\x18.littlehorse.VariableDef\x12\x10\n\x08required\x18\x02 \x01(\x08\x12\x12\n\nsearchable\x18\x03 \x01(\x08\x12,\n\x0cjson_indexes\x18\x04 \x03(\x0b\x32\x16.littlehorse.JsonIndex\x12;\n\x0c\x61\x63\x63\x65ss_level\x18\x05 \x01(\x0e\x32%.littlehorse.WfRunVariableAccessLevel\"\xbd\x02\n\nThreadSpec\x12\x31\n\x05nodes\x18\x01 \x03(\x0b\x32\".littlehorse.ThreadSpec.NodesEntry\x12\x30\n\rvariable_defs\x18\x02 \x03(\x0b\x32\x19.littlehorse.ThreadVarDef\x12\x31\n\x0einterrupt_defs\x18\x03 \x03(\x0b\x32\x19.littlehorse.InterruptDef\x12\x41\n\x10retention_policy\x18\x04 \x01(\x0b\x32\".littlehorse.ThreadRetentionPolicyH\x00\x88\x01\x01\x1a?\n\nNodesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12 \n\x05value\x18\x02 \x01(\x0b\x32\x11.littlehorse.Node:\x02\x38\x01\x42\x13\n\x11_retention_policy\"W\n\x15ThreadRetentionPolicy\x12*\n seconds_after_thread_termination\x18\x01 \x01(\x03H\x00\x42\x12\n\x10thread_gc_policy\"i\n\x0cInterruptDef\x12>\n\x15\x65xternal_event_def_id\x18\x01 \x01(\x0b\x32\x1f.littlehorse.ExternalEventDefId\x12\x19\n\x11handler_spec_name\x18\x02 \x01(\t\"\xbe\x01\n\x0fStartThreadNode\x12\x18\n\x10thread_spec_name\x18\x01 \x01(\t\x12>\n\tvariables\x18\x02 \x03(\x0b\x32+.littlehorse.StartThreadNode.VariablesEntry\x1aQ\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment:\x02\x38\x01\"\x83\x02\n\x18StartMultipleThreadsNode\x12\x18\n\x10thread_spec_name\x18\x01 \x01(\t\x12G\n\tvariables\x18\x02 \x03(\x0b\x32\x34.littlehorse.StartMultipleThreadsNode.VariablesEntry\x12\x31\n\x08iterable\x18\x03 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment\x1aQ\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment:\x02\x38\x01\"\xf0\x01\n\x11\x46\x61ilureHandlerDef\x12\x19\n\x11handler_spec_name\x18\x02 \x01(\t\x12\x1a\n\x10specific_failure\x18\x01 \x01(\tH\x00\x12K\n\x13\x61ny_failure_of_type\x18\x03 \x01(\x0e\x32,.littlehorse.FailureHandlerDef.LHFailureTypeH\x00\"C\n\rLHFailureType\x12\x16\n\x12\x46\x41ILURE_TYPE_ERROR\x10\x00\x12\x1a\n\x16\x46\x41ILURE_TYPE_EXCEPTION\x10\x01\x42\x12\n\x10\x66\x61ilure_to_catch\"\x92\x03\n\x12WaitForThreadsNode\x12\x43\n\x07threads\x18\x01 \x01(\x0b\x32\x30.littlehorse.WaitForThreadsNode.ThreadsToWaitForH\x00\x12\x36\n\x0bthread_list\x18\x02 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x00\x12\x43\n\x1bper_thread_failure_handlers\x18\x03 \x03(\x0b\x32\x1e.littlehorse.FailureHandlerDef\x1aM\n\x0fThreadToWaitFor\x12:\n\x11thread_run_number\x18\x01 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment\x1aT\n\x10ThreadsToWaitFor\x12@\n\x07threads\x18\x01 \x03(\x0b\x32/.littlehorse.WaitForThreadsNode.ThreadToWaitForB\x15\n\x13threads_to_wait_for\"\x8d\x01\n\x11\x45xternalEventNode\x12>\n\x15\x65xternal_event_def_id\x18\x01 \x01(\x0b\x32\x1f.littlehorse.ExternalEventDefId\x12\x38\n\x0ftimeout_seconds\x18\x02 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment\"\x10\n\x0e\x45ntrypointNode\"M\n\x08\x45xitNode\x12\x31\n\x0b\x66\x61ilure_def\x18\x01 \x01(\x0b\x32\x17.littlehorse.FailureDefH\x00\x88\x01\x01\x42\x0e\n\x0c_failure_def\"v\n\nFailureDef\x12\x14\n\x0c\x66\x61ilure_name\x18\x01 \x01(\t\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x35\n\x07\x63ontent\x18\x03 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x00\x88\x01\x01\x42\n\n\x08_content\"\x9c\x05\n\x04Node\x12)\n\x0eoutgoing_edges\x18\x01 \x03(\x0b\x32\x11.littlehorse.Edge\x12\x38\n\x10\x66\x61ilure_handlers\x18\x04 \x03(\x0b\x32\x1e.littlehorse.FailureHandlerDef\x12\x31\n\nentrypoint\x18\x05 \x01(\x0b\x32\x1b.littlehorse.EntrypointNodeH\x00\x12%\n\x04\x65xit\x18\x06 \x01(\x0b\x32\x15.littlehorse.ExitNodeH\x00\x12%\n\x04task\x18\x07 \x01(\x0b\x32\x15.littlehorse.TaskNodeH\x00\x12\x38\n\x0e\x65xternal_event\x18\x08 \x01(\x0b\x32\x1e.littlehorse.ExternalEventNodeH\x00\x12\x34\n\x0cstart_thread\x18\t \x01(\x0b\x32\x1c.littlehorse.StartThreadNodeH\x00\x12;\n\x10wait_for_threads\x18\n \x01(\x0b\x32\x1f.littlehorse.WaitForThreadsNodeH\x00\x12#\n\x03nop\x18\x0b \x01(\x0b\x32\x14.littlehorse.NopNodeH\x00\x12\'\n\x05sleep\x18\x0c \x01(\x0b\x32\x16.littlehorse.SleepNodeH\x00\x12.\n\tuser_task\x18\r \x01(\x0b\x32\x19.littlehorse.UserTaskNodeH\x00\x12G\n\x16start_multiple_threads\x18\x0f \x01(\x0b\x32%.littlehorse.StartMultipleThreadsNodeH\x00\x12\x32\n\x0bthrow_event\x18\x10 \x01(\x0b\x32\x1b.littlehorse.ThrowEventNodeH\x00\x42\x06\n\x04node\"y\n\x0eThrowEventNode\x12\x35\n\x0c\x65vent_def_id\x18\x01 \x01(\x0b\x32\x1f.littlehorse.WorkflowEventDefId\x12\x30\n\x07\x63ontent\x18\x02 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment\"\xd3\x03\n\x0cUserTaskNode\x12\x1a\n\x12user_task_def_name\x18\x01 \x01(\t\x12\x38\n\nuser_group\x18\x02 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x00\x88\x01\x01\x12\x35\n\x07user_id\x18\x03 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x01\x88\x01\x01\x12-\n\x07\x61\x63tions\x18\x04 \x03(\x0b\x32\x1c.littlehorse.UTActionTrigger\x12\"\n\x15user_task_def_version\x18\x05 \x01(\x05H\x02\x88\x01\x01\x12\x33\n\x05notes\x18\x06 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x03\x88\x01\x01\x12L\n\x1eon_cancellation_exception_name\x18\x07 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x04\x88\x01\x01\x42\r\n\x0b_user_groupB\n\n\x08_user_idB\x18\n\x16_user_task_def_versionB\x08\n\x06_notesB!\n\x1f_on_cancellation_exception_name\"\x9b\x01\n\rEdgeCondition\x12+\n\ncomparator\x18\x01 \x01(\x0e\x32\x17.littlehorse.Comparator\x12-\n\x04left\x18\x02 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment\x12.\n\x05right\x18\x03 \x01(\x0b\x32\x1f.littlehorse.VariableAssignment\"\x9b\x01\n\x04\x45\x64ge\x12\x16\n\x0esink_node_name\x18\x01 \x01(\t\x12\x32\n\tcondition\x18\x02 \x01(\x0b\x32\x1a.littlehorse.EdgeConditionH\x00\x88\x01\x01\x12\x39\n\x12variable_mutations\x18\x03 \x03(\x0b\x32\x1d.littlehorse.VariableMutationB\x0c\n\n_condition\"\t\n\x07NopNode\"\xbe\x01\n\tSleepNode\x12\x36\n\x0braw_seconds\x18\x01 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x00\x12\x34\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x00\x12\x33\n\x08iso_date\x18\x03 \x01(\x0b\x32\x1f.littlehorse.VariableAssignmentH\x00\x42\x0e\n\x0csleep_length\"\x87\x02\n\x16WfSpecVersionMigration\x12\x19\n\x11new_major_version\x18\x01 \x01(\x05\x12\x14\n\x0cnew_revision\x18\x02 \x01(\x05\x12]\n\x16thread_spec_migrations\x18\x03 \x03(\x0b\x32=.littlehorse.WfSpecVersionMigration.ThreadSpecMigrationsEntry\x1a]\n\x19ThreadSpecMigrationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .littlehorse.ThreadSpecMigration:\x02\x38\x01\"\xd5\x01\n\x13ThreadSpecMigration\x12\x1c\n\x14new_thread_spec_name\x18\x01 \x01(\t\x12M\n\x0fnode_migrations\x18\x02 \x03(\x0b\x32\x34.littlehorse.ThreadSpecMigration.NodeMigrationsEntry\x1aQ\n\x13NodeMigrationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.littlehorse.NodeMigration:\x02\x38\x01\"&\n\rNodeMigration\x12\x15\n\rnew_node_name\x18\x01 \x01(\t*N\n\x18WfRunVariableAccessLevel\x12\x0e\n\nPUBLIC_VAR\x10\x00\x12\x0f\n\x0bPRIVATE_VAR\x10\x01\x12\x11\n\rINHERITED_VAR\x10\x02\x42I\n\x1fio.littlehorse.sdk.common.protoP\x01Z\t.;lhproto\xaa\x02\x18LittleHorse.Common.Protob\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -38,8 +38,8 @@ _WFSPECVERSIONMIGRATION_THREADSPECMIGRATIONSENTRY._serialized_options = b'8\001' _THREADSPECMIGRATION_NODEMIGRATIONSENTRY._options = None _THREADSPECMIGRATION_NODEMIGRATIONSENTRY._serialized_options = b'8\001' - _globals['_WFRUNVARIABLEACCESSLEVEL']._serialized_start=5470 - _globals['_WFRUNVARIABLEACCESSLEVEL']._serialized_end=5548 + _globals['_WFRUNVARIABLEACCESSLEVEL']._serialized_start=5471 + _globals['_WFRUNVARIABLEACCESSLEVEL']._serialized_end=5549 _globals['_WFSPEC']._serialized_start=122 _globals['_WFSPEC']._serialized_end=814 _globals['_WFSPEC_THREADSPECSENTRY']._serialized_start=607 @@ -49,65 +49,65 @@ _globals['_WORKFLOWRETENTIONPOLICY']._serialized_start=816 _globals['_WORKFLOWRETENTIONPOLICY']._serialized_end=897 _globals['_JSONINDEX']._serialized_start=899 - _globals['_JSONINDEX']._serialized_end=977 - _globals['_THREADVARDEF']._serialized_start=980 - _globals['_THREADVARDEF']._serialized_end=1182 - _globals['_THREADSPEC']._serialized_start=1185 - _globals['_THREADSPEC']._serialized_end=1502 - _globals['_THREADSPEC_NODESENTRY']._serialized_start=1418 - _globals['_THREADSPEC_NODESENTRY']._serialized_end=1481 - _globals['_THREADRETENTIONPOLICY']._serialized_start=1504 - _globals['_THREADRETENTIONPOLICY']._serialized_end=1591 - _globals['_INTERRUPTDEF']._serialized_start=1593 - _globals['_INTERRUPTDEF']._serialized_end=1698 - _globals['_STARTTHREADNODE']._serialized_start=1701 - _globals['_STARTTHREADNODE']._serialized_end=1891 - _globals['_STARTTHREADNODE_VARIABLESENTRY']._serialized_start=1810 - _globals['_STARTTHREADNODE_VARIABLESENTRY']._serialized_end=1891 - _globals['_STARTMULTIPLETHREADSNODE']._serialized_start=1894 - _globals['_STARTMULTIPLETHREADSNODE']._serialized_end=2153 - _globals['_STARTMULTIPLETHREADSNODE_VARIABLESENTRY']._serialized_start=1810 - _globals['_STARTMULTIPLETHREADSNODE_VARIABLESENTRY']._serialized_end=1891 - _globals['_FAILUREHANDLERDEF']._serialized_start=2156 - _globals['_FAILUREHANDLERDEF']._serialized_end=2396 - _globals['_FAILUREHANDLERDEF_LHFAILURETYPE']._serialized_start=2309 - _globals['_FAILUREHANDLERDEF_LHFAILURETYPE']._serialized_end=2376 - _globals['_WAITFORTHREADSNODE']._serialized_start=2399 - _globals['_WAITFORTHREADSNODE']._serialized_end=2801 - _globals['_WAITFORTHREADSNODE_THREADTOWAITFOR']._serialized_start=2615 - _globals['_WAITFORTHREADSNODE_THREADTOWAITFOR']._serialized_end=2692 - _globals['_WAITFORTHREADSNODE_THREADSTOWAITFOR']._serialized_start=2694 - _globals['_WAITFORTHREADSNODE_THREADSTOWAITFOR']._serialized_end=2778 - _globals['_EXTERNALEVENTNODE']._serialized_start=2804 - _globals['_EXTERNALEVENTNODE']._serialized_end=2945 - _globals['_ENTRYPOINTNODE']._serialized_start=2947 - _globals['_ENTRYPOINTNODE']._serialized_end=2963 - _globals['_EXITNODE']._serialized_start=2965 - _globals['_EXITNODE']._serialized_end=3042 - _globals['_FAILUREDEF']._serialized_start=3044 - _globals['_FAILUREDEF']._serialized_end=3162 - _globals['_NODE']._serialized_start=3165 - _globals['_NODE']._serialized_end=3833 - _globals['_THROWEVENTNODE']._serialized_start=3835 - _globals['_THROWEVENTNODE']._serialized_end=3956 - _globals['_USERTASKNODE']._serialized_start=3959 - _globals['_USERTASKNODE']._serialized_end=4426 - _globals['_EDGECONDITION']._serialized_start=4429 - _globals['_EDGECONDITION']._serialized_end=4584 - _globals['_EDGE']._serialized_start=4587 - _globals['_EDGE']._serialized_end=4742 - _globals['_NOPNODE']._serialized_start=4744 - _globals['_NOPNODE']._serialized_end=4753 - _globals['_SLEEPNODE']._serialized_start=4756 - _globals['_SLEEPNODE']._serialized_end=4946 - _globals['_WFSPECVERSIONMIGRATION']._serialized_start=4949 - _globals['_WFSPECVERSIONMIGRATION']._serialized_end=5212 - _globals['_WFSPECVERSIONMIGRATION_THREADSPECMIGRATIONSENTRY']._serialized_start=5119 - _globals['_WFSPECVERSIONMIGRATION_THREADSPECMIGRATIONSENTRY']._serialized_end=5212 - _globals['_THREADSPECMIGRATION']._serialized_start=5215 - _globals['_THREADSPECMIGRATION']._serialized_end=5428 - _globals['_THREADSPECMIGRATION_NODEMIGRATIONSENTRY']._serialized_start=5347 - _globals['_THREADSPECMIGRATION_NODEMIGRATIONSENTRY']._serialized_end=5428 - _globals['_NODEMIGRATION']._serialized_start=5430 - _globals['_NODEMIGRATION']._serialized_end=5468 + _globals['_JSONINDEX']._serialized_end=978 + _globals['_THREADVARDEF']._serialized_start=981 + _globals['_THREADVARDEF']._serialized_end=1183 + _globals['_THREADSPEC']._serialized_start=1186 + _globals['_THREADSPEC']._serialized_end=1503 + _globals['_THREADSPEC_NODESENTRY']._serialized_start=1419 + _globals['_THREADSPEC_NODESENTRY']._serialized_end=1482 + _globals['_THREADRETENTIONPOLICY']._serialized_start=1505 + _globals['_THREADRETENTIONPOLICY']._serialized_end=1592 + _globals['_INTERRUPTDEF']._serialized_start=1594 + _globals['_INTERRUPTDEF']._serialized_end=1699 + _globals['_STARTTHREADNODE']._serialized_start=1702 + _globals['_STARTTHREADNODE']._serialized_end=1892 + _globals['_STARTTHREADNODE_VARIABLESENTRY']._serialized_start=1811 + _globals['_STARTTHREADNODE_VARIABLESENTRY']._serialized_end=1892 + _globals['_STARTMULTIPLETHREADSNODE']._serialized_start=1895 + _globals['_STARTMULTIPLETHREADSNODE']._serialized_end=2154 + _globals['_STARTMULTIPLETHREADSNODE_VARIABLESENTRY']._serialized_start=1811 + _globals['_STARTMULTIPLETHREADSNODE_VARIABLESENTRY']._serialized_end=1892 + _globals['_FAILUREHANDLERDEF']._serialized_start=2157 + _globals['_FAILUREHANDLERDEF']._serialized_end=2397 + _globals['_FAILUREHANDLERDEF_LHFAILURETYPE']._serialized_start=2310 + _globals['_FAILUREHANDLERDEF_LHFAILURETYPE']._serialized_end=2377 + _globals['_WAITFORTHREADSNODE']._serialized_start=2400 + _globals['_WAITFORTHREADSNODE']._serialized_end=2802 + _globals['_WAITFORTHREADSNODE_THREADTOWAITFOR']._serialized_start=2616 + _globals['_WAITFORTHREADSNODE_THREADTOWAITFOR']._serialized_end=2693 + _globals['_WAITFORTHREADSNODE_THREADSTOWAITFOR']._serialized_start=2695 + _globals['_WAITFORTHREADSNODE_THREADSTOWAITFOR']._serialized_end=2779 + _globals['_EXTERNALEVENTNODE']._serialized_start=2805 + _globals['_EXTERNALEVENTNODE']._serialized_end=2946 + _globals['_ENTRYPOINTNODE']._serialized_start=2948 + _globals['_ENTRYPOINTNODE']._serialized_end=2964 + _globals['_EXITNODE']._serialized_start=2966 + _globals['_EXITNODE']._serialized_end=3043 + _globals['_FAILUREDEF']._serialized_start=3045 + _globals['_FAILUREDEF']._serialized_end=3163 + _globals['_NODE']._serialized_start=3166 + _globals['_NODE']._serialized_end=3834 + _globals['_THROWEVENTNODE']._serialized_start=3836 + _globals['_THROWEVENTNODE']._serialized_end=3957 + _globals['_USERTASKNODE']._serialized_start=3960 + _globals['_USERTASKNODE']._serialized_end=4427 + _globals['_EDGECONDITION']._serialized_start=4430 + _globals['_EDGECONDITION']._serialized_end=4585 + _globals['_EDGE']._serialized_start=4588 + _globals['_EDGE']._serialized_end=4743 + _globals['_NOPNODE']._serialized_start=4745 + _globals['_NOPNODE']._serialized_end=4754 + _globals['_SLEEPNODE']._serialized_start=4757 + _globals['_SLEEPNODE']._serialized_end=4947 + _globals['_WFSPECVERSIONMIGRATION']._serialized_start=4950 + _globals['_WFSPECVERSIONMIGRATION']._serialized_end=5213 + _globals['_WFSPECVERSIONMIGRATION_THREADSPECMIGRATIONSENTRY']._serialized_start=5120 + _globals['_WFSPECVERSIONMIGRATION_THREADSPECMIGRATIONSENTRY']._serialized_end=5213 + _globals['_THREADSPECMIGRATION']._serialized_start=5216 + _globals['_THREADSPECMIGRATION']._serialized_end=5429 + _globals['_THREADSPECMIGRATION_NODEMIGRATIONSENTRY']._serialized_start=5348 + _globals['_THREADSPECMIGRATION_NODEMIGRATIONSENTRY']._serialized_end=5429 + _globals['_NODEMIGRATION']._serialized_start=5431 + _globals['_NODEMIGRATION']._serialized_end=5469 # @@protoc_insertion_point(module_scope) diff --git a/sdk-python/littlehorse/model/wf_spec_pb2.pyi b/sdk-python/littlehorse/model/wf_spec_pb2.pyi index e80574114..5611c3dc5 100644 --- a/sdk-python/littlehorse/model/wf_spec_pb2.pyi +++ b/sdk-python/littlehorse/model/wf_spec_pb2.pyi @@ -66,8 +66,8 @@ class JsonIndex(_message.Message): FIELD_PATH_FIELD_NUMBER: _ClassVar[int] FIELD_TYPE_FIELD_NUMBER: _ClassVar[int] field_path: str - field_type: _common_enums_pb2.VariableType - def __init__(self, field_path: _Optional[str] = ..., field_type: _Optional[_Union[_common_enums_pb2.VariableType, str]] = ...) -> None: ... + field_type: _common_enums_pb2.PrimitiveType + def __init__(self, field_path: _Optional[str] = ..., field_type: _Optional[_Union[_common_enums_pb2.PrimitiveType, str]] = ...) -> None: ... class ThreadVarDef(_message.Message): __slots__ = ["var_def", "required", "searchable", "json_indexes", "access_level"] diff --git a/sdk-python/littlehorse/model/workflow_event_pb2.py b/sdk-python/littlehorse/model/workflow_event_pb2.py index 19ff1829d..729f1625c 100644 --- a/sdk-python/littlehorse/model/workflow_event_pb2.py +++ b/sdk-python/littlehorse/model/workflow_event_pb2.py @@ -17,7 +17,7 @@ import littlehorse.model.common_enums_pb2 as common__enums__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14workflow_event.proto\x12\x0blittlehorse\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x0evariable.proto\x1a\x0fobject_id.proto\x1a\x12\x63ommon_enums.proto\"\x96\x01\n\rWorkflowEvent\x12(\n\x02id\x18\x01 \x01(\x0b\x32\x1c.littlehorse.WorkflowEventId\x12+\n\x07\x63ontent\x18\x02 \x01(\x0b\x32\x1a.littlehorse.VariableValue\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x98\x01\n\x10WorkflowEventDef\x12+\n\x02id\x18\x01 \x01(\x0b\x32\x1f.littlehorse.WorkflowEventDefId\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x04type\x18\x03 \x01(\x0e\x32\x19.littlehorse.VariableTypeBI\n\x1fio.littlehorse.sdk.common.protoP\x01Z\t.;lhproto\xaa\x02\x18LittleHorse.Common.Protob\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14workflow_event.proto\x12\x0blittlehorse\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x0evariable.proto\x1a\x0fobject_id.proto\x1a\x12\x63ommon_enums.proto\"\x96\x01\n\rWorkflowEvent\x12(\n\x02id\x18\x01 \x01(\x0b\x32\x1c.littlehorse.WorkflowEventId\x12+\n\x07\x63ontent\x18\x02 \x01(\x0b\x32\x1a.littlehorse.VariableValue\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x99\x01\n\x10WorkflowEventDef\x12+\n\x02id\x18\x01 \x01(\x0b\x32\x1f.littlehorse.WorkflowEventDefId\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12(\n\x04type\x18\x03 \x01(\x0e\x32\x1a.littlehorse.PrimitiveTypeBI\n\x1fio.littlehorse.sdk.common.protoP\x01Z\t.;lhproto\xaa\x02\x18LittleHorse.Common.Protob\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -29,5 +29,5 @@ _globals['_WORKFLOWEVENT']._serialized_start=124 _globals['_WORKFLOWEVENT']._serialized_end=274 _globals['_WORKFLOWEVENTDEF']._serialized_start=277 - _globals['_WORKFLOWEVENTDEF']._serialized_end=429 + _globals['_WORKFLOWEVENTDEF']._serialized_end=430 # @@protoc_insertion_point(module_scope) diff --git a/sdk-python/littlehorse/model/workflow_event_pb2.pyi b/sdk-python/littlehorse/model/workflow_event_pb2.pyi index b255e0790..aaa70f65b 100644 --- a/sdk-python/littlehorse/model/workflow_event_pb2.pyi +++ b/sdk-python/littlehorse/model/workflow_event_pb2.pyi @@ -25,5 +25,5 @@ class WorkflowEventDef(_message.Message): TYPE_FIELD_NUMBER: _ClassVar[int] id: _object_id_pb2.WorkflowEventDefId created_at: _timestamp_pb2.Timestamp - type: _common_enums_pb2.VariableType - def __init__(self, id: _Optional[_Union[_object_id_pb2.WorkflowEventDefId, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., type: _Optional[_Union[_common_enums_pb2.VariableType, str]] = ...) -> None: ... + type: _common_enums_pb2.PrimitiveType + def __init__(self, id: _Optional[_Union[_object_id_pb2.WorkflowEventDefId, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., type: _Optional[_Union[_common_enums_pb2.PrimitiveType, str]] = ...) -> None: ...