@flyteorg/flyteidl 1.5.14 → 1.5.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2018,6 +2018,9 @@ export namespace flyteidl {
2018
2018
 
2019
2019
  /** Operand var */
2020
2020
  "var"?: (string|null);
2021
+
2022
+ /** Operand scalar */
2023
+ scalar?: (flyteidl.core.IScalar|null);
2021
2024
  }
2022
2025
 
2023
2026
  /** Represents an Operand. */
@@ -2035,8 +2038,11 @@ export namespace flyteidl {
2035
2038
  /** Operand var. */
2036
2039
  public var: string;
2037
2040
 
2041
+ /** Operand scalar. */
2042
+ public scalar?: (flyteidl.core.IScalar|null);
2043
+
2038
2044
  /** Operand val. */
2039
- public val?: ("primitive"|"var");
2045
+ public val?: ("primitive"|"var"|"scalar");
2040
2046
 
2041
2047
  /**
2042
2048
  * Creates a new Operand instance using the specified properties.
@@ -4862,6 +4862,7 @@
4862
4862
  * @interface IOperand
4863
4863
  * @property {flyteidl.core.IPrimitive|null} [primitive] Operand primitive
4864
4864
  * @property {string|null} ["var"] Operand var
4865
+ * @property {flyteidl.core.IScalar|null} [scalar] Operand scalar
4865
4866
  */
4866
4867
 
4867
4868
  /**
@@ -4895,17 +4896,25 @@
4895
4896
  */
4896
4897
  Operand.prototype["var"] = "";
4897
4898
 
4899
+ /**
4900
+ * Operand scalar.
4901
+ * @member {flyteidl.core.IScalar|null|undefined} scalar
4902
+ * @memberof flyteidl.core.Operand
4903
+ * @instance
4904
+ */
4905
+ Operand.prototype.scalar = null;
4906
+
4898
4907
  // OneOf field names bound to virtual getters and setters
4899
4908
  var $oneOfFields;
4900
4909
 
4901
4910
  /**
4902
4911
  * Operand val.
4903
- * @member {"primitive"|"var"|undefined} val
4912
+ * @member {"primitive"|"var"|"scalar"|undefined} val
4904
4913
  * @memberof flyteidl.core.Operand
4905
4914
  * @instance
4906
4915
  */
4907
4916
  Object.defineProperty(Operand.prototype, "val", {
4908
- get: $util.oneOfGetter($oneOfFields = ["primitive", "var"]),
4917
+ get: $util.oneOfGetter($oneOfFields = ["primitive", "var", "scalar"]),
4909
4918
  set: $util.oneOfSetter($oneOfFields)
4910
4919
  });
4911
4920
 
@@ -4937,6 +4946,8 @@
4937
4946
  $root.flyteidl.core.Primitive.encode(message.primitive, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
4938
4947
  if (message["var"] != null && message.hasOwnProperty("var"))
4939
4948
  writer.uint32(/* id 2, wireType 2 =*/18).string(message["var"]);
4949
+ if (message.scalar != null && message.hasOwnProperty("scalar"))
4950
+ $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
4940
4951
  return writer;
4941
4952
  };
4942
4953
 
@@ -4964,6 +4975,9 @@
4964
4975
  case 2:
4965
4976
  message["var"] = reader.string();
4966
4977
  break;
4978
+ case 3:
4979
+ message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32());
4980
+ break;
4967
4981
  default:
4968
4982
  reader.skipType(tag & 7);
4969
4983
  break;
@@ -4999,6 +5013,16 @@
4999
5013
  if (!$util.isString(message["var"]))
5000
5014
  return "var: string expected";
5001
5015
  }
5016
+ if (message.scalar != null && message.hasOwnProperty("scalar")) {
5017
+ if (properties.val === 1)
5018
+ return "val: multiple values";
5019
+ properties.val = 1;
5020
+ {
5021
+ var error = $root.flyteidl.core.Scalar.verify(message.scalar);
5022
+ if (error)
5023
+ return "scalar." + error;
5024
+ }
5025
+ }
5002
5026
  return null;
5003
5027
  };
5004
5028
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "1.5.14",
3
+ "version": "1.5.16",
4
4
  "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,9 +30,11 @@ message ComparisonExpression {
30
30
  message Operand {
31
31
  oneof val {
32
32
  // Can be a constant
33
- core.Primitive primitive = 1;
33
+ core.Primitive primitive = 1 [deprecated = true];
34
34
  // Or one of this node's input variables
35
35
  string var = 2;
36
+ // Replace the primitive field
37
+ core.Scalar scalar = 3;
36
38
  }
37
39
  }
38
40
 
@@ -7,7 +7,7 @@ option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins";
7
7
  // Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component
8
8
  // will be executed concurrently.
9
9
  message ArrayJob {
10
- // Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
10
+ // Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an
11
11
  // optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
12
12
  // running instances might be more. This has to be a positive number if assigned. Default value is size.
13
13
  int64 parallelism = 1;