-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrecurring_exchange.proto
82 lines (68 loc) · 2.73 KB
/
recurring_exchange.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// Copyright 2021 The Cross-Media Measurement Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package wfa.measurement.api.v2alpha;
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/type/date.proto";
import "wfa/measurement/api/v2alpha/exchange_workflow.proto";
option java_package = "org.wfanet.measurement.api.v2alpha";
option java_multiple_files = true;
option java_outer_classname = "RecurringExchangeProto";
// A Panel Matching exchange that happens between a DataProvider and a
// ModelProvider on some schedule. This is instantiated once per date in the
// schedule via Exchange resources.
message RecurringExchange {
option (google.api.resource) = {
type: "halo.wfanet.org/RecurringExchange"
pattern: "recurringExchanges/{recurring_exchange}"
pattern: "dataProviders/{data_provider}/recurringExchanges/{recurring_exchange}"
pattern: "modelProviders/{model_provider}/recurringExchanges/{recurring_exchange}"
singular: "recurringExchange"
plural: "recurringExchanges"
};
// Resource name.
string name = 1;
// Serialized `ExchangeWorkflow` for this `RecurringExchange`.
bytes exchange_workflow = 2 [
(google.api.field_behavior) = REQUIRED,
(google.api.field_behavior) = IMMUTABLE
];
// The DataProvider party.
string event_data_provider = 3 [
(google.api.resource_reference).type = "halo.wfanet.org/DataProvider",
(google.api.field_behavior) = REQUIRED,
(google.api.field_behavior) = IMMUTABLE
];
// The ModelProvider party.
string model_provider = 4 [
(google.api.resource_reference).type = "halo.wfanet.org/ModelProvider",
(google.api.field_behavior) = REQUIRED,
(google.api.field_behavior) = IMMUTABLE
];
// State of this `RecurringExchange`.
State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
// The date of the next Exchange.
google.type.Date next_exchange_date = 6
[(google.api.field_behavior) = REQUIRED];
// State of a `RecurringExchange`.
enum State {
// Default value used if the state is omitted.
STATE_UNSPECIFIED = 0;
// New Exchanges should be started according to the schedule.
ACTIVE = 1;
// New Exchanges will not be created.
RETIRED = 2;
}
}