This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
/
spark.pb.go
236 lines (206 loc) · 9.43 KB
/
spark.pb.go
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: flyteidl/plugins/spark.proto
package plugins
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_struct "github.com/golang/protobuf/ptypes/struct"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type SparkApplication_Type int32
const (
SparkApplication_PYTHON SparkApplication_Type = 0
SparkApplication_JAVA SparkApplication_Type = 1
SparkApplication_SCALA SparkApplication_Type = 2
SparkApplication_R SparkApplication_Type = 3
)
var SparkApplication_Type_name = map[int32]string{
0: "PYTHON",
1: "JAVA",
2: "SCALA",
3: "R",
}
var SparkApplication_Type_value = map[string]int32{
"PYTHON": 0,
"JAVA": 1,
"SCALA": 2,
"R": 3,
}
func (x SparkApplication_Type) String() string {
return proto.EnumName(SparkApplication_Type_name, int32(x))
}
func (SparkApplication_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_ca8a069b9820144a, []int{0, 0}
}
type SparkApplication struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SparkApplication) Reset() { *m = SparkApplication{} }
func (m *SparkApplication) String() string { return proto.CompactTextString(m) }
func (*SparkApplication) ProtoMessage() {}
func (*SparkApplication) Descriptor() ([]byte, []int) {
return fileDescriptor_ca8a069b9820144a, []int{0}
}
func (m *SparkApplication) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SparkApplication.Unmarshal(m, b)
}
func (m *SparkApplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SparkApplication.Marshal(b, m, deterministic)
}
func (m *SparkApplication) XXX_Merge(src proto.Message) {
xxx_messageInfo_SparkApplication.Merge(m, src)
}
func (m *SparkApplication) XXX_Size() int {
return xxx_messageInfo_SparkApplication.Size(m)
}
func (m *SparkApplication) XXX_DiscardUnknown() {
xxx_messageInfo_SparkApplication.DiscardUnknown(m)
}
var xxx_messageInfo_SparkApplication proto.InternalMessageInfo
// Custom Proto for Spark Plugin.
type SparkJob struct {
ApplicationType SparkApplication_Type `protobuf:"varint,1,opt,name=applicationType,proto3,enum=flyteidl.plugins.SparkApplication_Type" json:"applicationType,omitempty"`
MainApplicationFile string `protobuf:"bytes,2,opt,name=mainApplicationFile,proto3" json:"mainApplicationFile,omitempty"`
MainClass string `protobuf:"bytes,3,opt,name=mainClass,proto3" json:"mainClass,omitempty"`
SparkConf map[string]string `protobuf:"bytes,4,rep,name=sparkConf,proto3" json:"sparkConf,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
HadoopConf map[string]string `protobuf:"bytes,5,rep,name=hadoopConf,proto3" json:"hadoopConf,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
ExecutorPath string `protobuf:"bytes,6,opt,name=executorPath,proto3" json:"executorPath,omitempty"`
// Databricks job configuration.
// Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
DatabricksConf *_struct.Struct `protobuf:"bytes,7,opt,name=databricksConf,proto3" json:"databricksConf,omitempty"`
// Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html
// This token can be set in either flytepropeller or flytekit.
DatabricksToken string `protobuf:"bytes,8,opt,name=databricksToken,proto3" json:"databricksToken,omitempty"`
// Domain name of your deployment. Use the form <account>.cloud.databricks.com.
// This instance name can be set in either flytepropeller or flytekit.
DatabricksInstance string `protobuf:"bytes,9,opt,name=databricksInstance,proto3" json:"databricksInstance,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SparkJob) Reset() { *m = SparkJob{} }
func (m *SparkJob) String() string { return proto.CompactTextString(m) }
func (*SparkJob) ProtoMessage() {}
func (*SparkJob) Descriptor() ([]byte, []int) {
return fileDescriptor_ca8a069b9820144a, []int{1}
}
func (m *SparkJob) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SparkJob.Unmarshal(m, b)
}
func (m *SparkJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SparkJob.Marshal(b, m, deterministic)
}
func (m *SparkJob) XXX_Merge(src proto.Message) {
xxx_messageInfo_SparkJob.Merge(m, src)
}
func (m *SparkJob) XXX_Size() int {
return xxx_messageInfo_SparkJob.Size(m)
}
func (m *SparkJob) XXX_DiscardUnknown() {
xxx_messageInfo_SparkJob.DiscardUnknown(m)
}
var xxx_messageInfo_SparkJob proto.InternalMessageInfo
func (m *SparkJob) GetApplicationType() SparkApplication_Type {
if m != nil {
return m.ApplicationType
}
return SparkApplication_PYTHON
}
func (m *SparkJob) GetMainApplicationFile() string {
if m != nil {
return m.MainApplicationFile
}
return ""
}
func (m *SparkJob) GetMainClass() string {
if m != nil {
return m.MainClass
}
return ""
}
func (m *SparkJob) GetSparkConf() map[string]string {
if m != nil {
return m.SparkConf
}
return nil
}
func (m *SparkJob) GetHadoopConf() map[string]string {
if m != nil {
return m.HadoopConf
}
return nil
}
func (m *SparkJob) GetExecutorPath() string {
if m != nil {
return m.ExecutorPath
}
return ""
}
func (m *SparkJob) GetDatabricksConf() *_struct.Struct {
if m != nil {
return m.DatabricksConf
}
return nil
}
func (m *SparkJob) GetDatabricksToken() string {
if m != nil {
return m.DatabricksToken
}
return ""
}
func (m *SparkJob) GetDatabricksInstance() string {
if m != nil {
return m.DatabricksInstance
}
return ""
}
func init() {
proto.RegisterEnum("flyteidl.plugins.SparkApplication_Type", SparkApplication_Type_name, SparkApplication_Type_value)
proto.RegisterType((*SparkApplication)(nil), "flyteidl.plugins.SparkApplication")
proto.RegisterType((*SparkJob)(nil), "flyteidl.plugins.SparkJob")
proto.RegisterMapType((map[string]string)(nil), "flyteidl.plugins.SparkJob.HadoopConfEntry")
proto.RegisterMapType((map[string]string)(nil), "flyteidl.plugins.SparkJob.SparkConfEntry")
}
func init() { proto.RegisterFile("flyteidl/plugins/spark.proto", fileDescriptor_ca8a069b9820144a) }
var fileDescriptor_ca8a069b9820144a = []byte{
// 442 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x5d, 0x8b, 0xd3, 0x40,
0x14, 0x35, 0xfd, 0xb2, 0xb9, 0x2b, 0x6d, 0xb8, 0x0a, 0x86, 0xd2, 0x87, 0xd2, 0x17, 0xa3, 0xe0,
0x44, 0xea, 0x83, 0x1f, 0x28, 0x92, 0x2d, 0xea, 0x5a, 0x44, 0xd7, 0xb4, 0x08, 0xfa,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