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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
// This file is @generated by prost-build.
/// Structured payload for logs generated from Dataform workflow invocation
/// completions.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct WorkflowInvocationCompletionLogEntry {
/// Required. Identifier of the workflow invocation.
#[prost(string, tag = "1")]
pub workflow_invocation_id: ::prost::alloc::string::String,
/// Optional. Identifier of the workflow config.
#[prost(string, tag = "2")]
pub workflow_config_id: ::prost::alloc::string::String,
/// Optional. Identifier of the release config.
#[prost(string, tag = "3")]
pub release_config_id: ::prost::alloc::string::String,
/// Required. The workflow invocation's final termination state.
#[prost(
enumeration = "workflow_invocation_completion_log_entry::TerminalState",
tag = "4"
)]
pub terminal_state: i32,
}
/// Nested message and enum types in `WorkflowInvocationCompletionLogEntry`.
pub mod workflow_invocation_completion_log_entry {
/// Represents the final termination state of a workflow invocation.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum TerminalState {
/// Default value. This value is unused.
Unspecified = 0,
/// The workflow invocation succeeded.
Succeeded = 1,
/// The workflow invocation was cancelled.
Cancelled = 2,
/// The workflow invocation failed.
Failed = 3,
}
impl TerminalState {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "TERMINAL_STATE_UNSPECIFIED",
Self::Succeeded => "SUCCEEDED",
Self::Cancelled => "CANCELLED",
Self::Failed => "FAILED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TERMINAL_STATE_UNSPECIFIED" => Some(Self::Unspecified),
"SUCCEEDED" => Some(Self::Succeeded),
"CANCELLED" => Some(Self::Cancelled),
"FAILED" => Some(Self::Failed),
_ => None,
}
}
}
}
/// Structured payload for logs generated from Dataform Act-as dry run results.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ActAsDryRunResultLogEntry {
/// Required. The API method name that triggered the dry run check.
#[prost(string, tag = "1")]
pub api_method: ::prost::alloc::string::String,
/// Required. The caller that triggered the dry run check.
#[prost(string, tag = "2")]
pub caller: ::prost::alloc::string::String,
/// Required. The service account used for the dry run check.
#[prost(string, tag = "3")]
pub service_account: ::prost::alloc::string::String,
/// Required. The result of the dry run check. True if check passed, false if
/// check failed.
#[prost(bool, tag = "4")]
pub dry_run_result: bool,
/// Additional context specific to the API method that triggered the dry run.
#[prost(
oneof = "act_as_dry_run_result_log_entry::ApiMethodContext",
tags = "5, 6, 7, 8, 9, 10"
)]
pub api_method_context: ::core::option::Option<
act_as_dry_run_result_log_entry::ApiMethodContext,
>,
}
/// Nested message and enum types in `ActAsDryRunResultLogEntry`.
pub mod act_as_dry_run_result_log_entry {
/// Context specific to `CreateRepository` API calls.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CreateRepositoryContext {
/// Optional. Resource name of the repository.
/// Format: `projects/*/locations/*/repositories/*`.
#[prost(string, tag = "1")]
pub repository: ::prost::alloc::string::String,
}
/// Context specific to `UpdateRepository` API calls.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UpdateRepositoryContext {
/// Optional. Resource name of the repository.
/// Format: `projects/*/locations/*/repositories/*`.
#[prost(string, tag = "1")]
pub repository: ::prost::alloc::string::String,
}
/// Context specific to `UpdateReleaseConfig` API calls.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UpdateReleaseConfigContext {
/// Optional. Resource name of the release config.
/// Format: `projects/*/locations/*/repositories/*/releaseConfigs/*`.
#[prost(string, tag = "1")]
pub release_config: ::prost::alloc::string::String,
}
/// Context specific to `CreateWorkflowConfig` API calls.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CreateWorkflowConfigContext {
/// Optional. Resource name of the workflow config.
/// Format: `projects/*/locations/*/repositories/*/workflowConfigs/*`.
#[prost(string, tag = "1")]
pub workflow_config: ::prost::alloc::string::String,
}
/// Context specific to `UpdateWorkflowConfig` API calls.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UpdateWorkflowConfigContext {
/// Optional. Resource name of the workflow config.
/// Format: `projects/*/locations/*/repositories/*/workflowConfigs/*`.
#[prost(string, tag = "1")]
pub workflow_config: ::prost::alloc::string::String,
}
/// Context specific to `CreateWorkflowInvocation` API calls.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CreateWorkflowInvocationContext {
/// Optional. Resource name of the workflow invocation.
/// Format: `projects/*/locations/*/repositories/*/workflowInvocations/*`.
#[prost(string, tag = "1")]
pub workflow_invocation: ::prost::alloc::string::String,
/// The identifier of the compilation source.
#[prost(
oneof = "create_workflow_invocation_context::CompilationSource",
tags = "2, 3"
)]
pub compilation_source: ::core::option::Option<
create_workflow_invocation_context::CompilationSource,
>,
}
/// Nested message and enum types in `CreateWorkflowInvocationContext`.
pub mod create_workflow_invocation_context {
/// The identifier of the compilation source.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
pub enum CompilationSource {
/// Optional. The name of the compilation result to use for this
/// invocation. Must be in the format
/// `projects/*/locations/*/repositories/*/compilationResults/*`.
#[prost(string, tag = "2")]
CompilationResult(::prost::alloc::string::String),
/// Optional. The name of the workflow config to invoke. Must be in the
/// format `projects/*/locations/*/repositories/*/workflowConfigs/*`.
#[prost(string, tag = "3")]
WorkflowConfig(::prost::alloc::string::String),
}
}
/// Additional context specific to the API method that triggered the dry run.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
pub enum ApiMethodContext {
/// Optional. Context for `CreateWorkflowInvocation` calls.
#[prost(message, tag = "5")]
CreateWorkflowInvocationContext(CreateWorkflowInvocationContext),
/// Optional. Context for `CreateRepository` calls.
#[prost(message, tag = "6")]
CreateRepositoryContext(CreateRepositoryContext),
/// Optional. Context for `UpdateRepository` calls.
#[prost(message, tag = "7")]
UpdateRepositoryContext(UpdateRepositoryContext),
/// Optional. Context for `UpdateReleaseConfig` calls.
#[prost(message, tag = "8")]
UpdateReleaseConfigContext(UpdateReleaseConfigContext),
/// Optional. Context for `UpdateWorkflowConfig` calls.
#[prost(message, tag = "9")]
UpdateWorkflowConfigContext(UpdateWorkflowConfigContext),
/// Optional. Context for `CreateWorkflowConfig` calls.
#[prost(message, tag = "10")]
CreateWorkflowConfigContext(CreateWorkflowConfigContext),
}
}