[GitHub] [beam] lukecwik commented on a change in pull request #11177: [BEAM-9562] Add Timer to Elements proto representation.

2020-03-19 Thread GitBox
lukecwik commented on a change in pull request #11177: [BEAM-9562] Add Timer to 
Elements proto representation.
URL: https://github.com/apache/beam/pull/11177#discussion_r395426161
 
 

 ##
 File path: model/fn-execution/src/main/proto/beam_fn_api.proto
 ##
 @@ -533,8 +538,33 @@ message Elements {
 bytes data = 3;
   }
 
+  // Represent the encoded user timer for a given instruction, transform and
+  // timer id.
+  message Timer {
+// (Required) A reference to an active instruction request with the given
+// instruction id.
+string instruction_id = 1;
+// (Required) A definition representing a consumer or producer of this 
data.
+// If received by a harness, this represents the consumer within that
+// harness that should consume these bytes. If sent by a harness, this
+// represents the producer of these bytes.
+string transform_id = 2;
 
 Review comment:
   ```suggestion
   string transform_id = 2;
   
   ```


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [beam] lukecwik commented on a change in pull request #11177: [BEAM-9562] Add Timer to Elements proto representation.

2020-03-19 Thread GitBox
lukecwik commented on a change in pull request #11177: [BEAM-9562] Add Timer to 
Elements proto representation.
URL: https://github.com/apache/beam/pull/11177#discussion_r395426138
 
 

 ##
 File path: model/fn-execution/src/main/proto/beam_fn_api.proto
 ##
 @@ -533,8 +538,33 @@ message Elements {
 bytes data = 3;
   }
 
+  // Represent the encoded user timer for a given instruction, transform and
+  // timer id.
+  message Timer {
+// (Required) A reference to an active instruction request with the given
+// instruction id.
+string instruction_id = 1;
 
 Review comment:
   ```suggestion
   string instruction_id = 1;
   
   ```


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [beam] lukecwik commented on a change in pull request #11177: [BEAM-9562] Add Timer to Elements proto representation.

2020-03-19 Thread GitBox
lukecwik commented on a change in pull request #11177: [BEAM-9562] Add Timer to 
Elements proto representation.
URL: https://github.com/apache/beam/pull/11177#discussion_r395426182
 
 

 ##
 File path: model/fn-execution/src/main/proto/beam_fn_api.proto
 ##
 @@ -533,8 +538,33 @@ message Elements {
 bytes data = 3;
   }
 
+  // Represent the encoded user timer for a given instruction, transform and
+  // timer id.
+  message Timer {
+// (Required) A reference to an active instruction request with the given
+// instruction id.
+string instruction_id = 1;
+// (Required) A definition representing a consumer or producer of this 
data.
+// If received by a harness, this represents the consumer within that
+// harness that should consume these bytes. If sent by a harness, this
+// represents the producer of these bytes.
+string transform_id = 2;
+// (Optional) The local timer name which can be mapped to
+// timer specification.
+string timer_id = 3;
 
 Review comment:
   ```suggestion
   string timer_id = 3;
   
   ```


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [beam] lukecwik commented on a change in pull request #11177: [BEAM-9562] Add Timer to Elements proto representation.

2020-03-19 Thread GitBox
lukecwik commented on a change in pull request #11177: [BEAM-9562] Add Timer to 
Elements proto representation.
URL: https://github.com/apache/beam/pull/11177#discussion_r395426301
 
 

 ##
 File path: model/fn-execution/src/main/proto/beam_fn_api.proto
 ##
 @@ -533,8 +538,33 @@ message Elements {
 bytes data = 3;
   }
 
+  // Represent the encoded user timer for a given instruction, transform and
+  // timer id.
+  message Timer {
+// (Required) A reference to an active instruction request with the given
+// instruction id.
+string instruction_id = 1;
+// (Required) A definition representing a consumer or producer of this 
data.
+// If received by a harness, this represents the consumer within that
+// harness that should consume these bytes. If sent by a harness, this
+// represents the producer of these bytes.
 
 Review comment:
   ```suggestion
   // harness that should consume these timers. If sent by a harness, this
   // represents the producer of these timers.
   ```


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [beam] lukecwik commented on a change in pull request #11177: [BEAM-9562] Add Timer to Elements proto representation.

2020-03-19 Thread GitBox
lukecwik commented on a change in pull request #11177: [BEAM-9562] Add Timer to 
Elements proto representation.
URL: https://github.com/apache/beam/pull/11177#discussion_r395426588
 
 

 ##
 File path: model/fn-execution/src/main/proto/beam_fn_api.proto
 ##
 @@ -533,8 +538,33 @@ message Elements {
 bytes data = 3;
   }
 
+  // Represent the encoded user timer for a given instruction, transform and
+  // timer id.
+  message Timer {
+// (Required) A reference to an active instruction request with the given
+// instruction id.
+string instruction_id = 1;
+// (Required) A definition representing a consumer or producer of this 
data.
+// If received by a harness, this represents the consumer within that
+// harness that should consume these bytes. If sent by a harness, this
+// represents the producer of these bytes.
+string transform_id = 2;
+// (Optional) The local timer name which can be mapped to
+// timer specification.
 
 Review comment:
   ```suggestion
   // (Optional) The local timer name used to identify the associated timer 
specification.
   ```


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [beam] lukecwik commented on a change in pull request #11177: [BEAM-9562] Add Timer to Elements proto representation.

2020-03-19 Thread GitBox
lukecwik commented on a change in pull request #11177: [BEAM-9562] Add Timer to 
Elements proto representation.
URL: https://github.com/apache/beam/pull/11177#discussion_r395426658
 
 

 ##
 File path: model/fn-execution/src/main/proto/beam_fn_api.proto
 ##
 @@ -533,8 +538,33 @@ message Elements {
 bytes data = 3;
   }
 
+  // Represent the encoded user timer for a given instruction, transform and
+  // timer id.
+  message Timer {
+// (Required) A reference to an active instruction request with the given
+// instruction id.
+string instruction_id = 1;
+// (Required) A definition representing a consumer or producer of this 
data.
+// If received by a harness, this represents the consumer within that
+// harness that should consume these bytes. If sent by a harness, this
+// represents the producer of these bytes.
+string transform_id = 2;
+// (Optional) The local timer name which can be mapped to
+// timer specification.
+string timer_id = 3;
+// (Optional) Represents a logical byte stream of a timer. Encoded 
according
+// to the coder in the timer spec.
+// An empty data block represents the end of stream for the given
+// instruction and transform.
+bytes timer = 4;
+  }
+
+
   // (Required) A list containing parts of logical byte streams.
 
 Review comment:
   ```suggestion
 // (Optional) A list containing parts of logical byte streams.
   ```


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [beam] lukecwik commented on a change in pull request #11177: [BEAM-9562] Add Timer to Elements proto representation.

2020-03-19 Thread GitBox
lukecwik commented on a change in pull request #11177: [BEAM-9562] Add Timer to 
Elements proto representation.
URL: https://github.com/apache/beam/pull/11177#discussion_r395426028
 
 

 ##
 File path: model/fn-execution/src/main/proto/beam_fn_api.proto
 ##
 @@ -164,6 +164,11 @@ message ProcessBundleDescriptor {
   // data plane or if any of the transforms rely on user state or side inputs.
   org.apache.beam.model.pipeline.v1.ApiServiceDescriptor
   state_api_service_descriptor = 7;
+
+  // A descriptor describing the end  point to use for Data API to use user
+  // timers.
 
 Review comment:
   ```suggestion
 // A descriptor describing the end point to use for Data API for user 
timers.
 // Required if the ProcessBundleDescriptor contains any transforms that 
have user timers.
   ```


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services