1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/cloud/dataproc/v1/autoscaling_policies.proto
3
4package dataproc
5
6import (
7	context "context"
8	fmt "fmt"
9	math "math"
10
11	proto "github.com/golang/protobuf/proto"
12	duration "github.com/golang/protobuf/ptypes/duration"
13	empty "github.com/golang/protobuf/ptypes/empty"
14	_ "google.golang.org/genproto/googleapis/api/annotations"
15	grpc "google.golang.org/grpc"
16	codes "google.golang.org/grpc/codes"
17	status "google.golang.org/grpc/status"
18)
19
20// Reference imports to suppress errors if they are not otherwise used.
21var _ = proto.Marshal
22var _ = fmt.Errorf
23var _ = math.Inf
24
25// This is a compile-time assertion to ensure that this generated file
26// is compatible with the proto package it is being compiled against.
27// A compilation error at this line likely means your copy of the
28// proto package needs to be updated.
29const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
30
31// Describes an autoscaling policy for Dataproc cluster autoscaler.
32type AutoscalingPolicy struct {
33	// Required. The policy id.
34	//
35	// The id must contain only letters (a-z, A-Z), numbers (0-9),
36	// underscores (_), and hyphens (-). Cannot begin or end with underscore
37	// or hyphen. Must consist of between 3 and 50 characters.
38	//
39	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
40	// Output only. The "resource name" of the autoscaling policy, as described
41	// in https://cloud.google.com/apis/design/resource_names.
42	//
43	// * For `projects.regions.autoscalingPolicies`, the resource name of the
44	//   policy has the following format:
45	//   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
46	//
47	// * For `projects.locations.autoscalingPolicies`, the resource name of the
48	//   policy has the following format:
49	//   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
50	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
51	// Autoscaling algorithm for policy.
52	//
53	// Types that are valid to be assigned to Algorithm:
54	//	*AutoscalingPolicy_BasicAlgorithm
55	Algorithm isAutoscalingPolicy_Algorithm `protobuf_oneof:"algorithm"`
56	// Required. Describes how the autoscaler will operate for primary workers.
57	WorkerConfig *InstanceGroupAutoscalingPolicyConfig `protobuf:"bytes,4,opt,name=worker_config,json=workerConfig,proto3" json:"worker_config,omitempty"`
58	// Optional. Describes how the autoscaler will operate for secondary workers.
59	SecondaryWorkerConfig *InstanceGroupAutoscalingPolicyConfig `protobuf:"bytes,5,opt,name=secondary_worker_config,json=secondaryWorkerConfig,proto3" json:"secondary_worker_config,omitempty"`
60	XXX_NoUnkeyedLiteral  struct{}                              `json:"-"`
61	XXX_unrecognized      []byte                                `json:"-"`
62	XXX_sizecache         int32                                 `json:"-"`
63}
64
65func (m *AutoscalingPolicy) Reset()         { *m = AutoscalingPolicy{} }
66func (m *AutoscalingPolicy) String() string { return proto.CompactTextString(m) }
67func (*AutoscalingPolicy) ProtoMessage()    {}
68func (*AutoscalingPolicy) Descriptor() ([]byte, []int) {
69	return fileDescriptor_e49a4a9859d08ad9, []int{0}
70}
71
72func (m *AutoscalingPolicy) XXX_Unmarshal(b []byte) error {
73	return xxx_messageInfo_AutoscalingPolicy.Unmarshal(m, b)
74}
75func (m *AutoscalingPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
76	return xxx_messageInfo_AutoscalingPolicy.Marshal(b, m, deterministic)
77}
78func (m *AutoscalingPolicy) XXX_Merge(src proto.Message) {
79	xxx_messageInfo_AutoscalingPolicy.Merge(m, src)
80}
81func (m *AutoscalingPolicy) XXX_Size() int {
82	return xxx_messageInfo_AutoscalingPolicy.Size(m)
83}
84func (m *AutoscalingPolicy) XXX_DiscardUnknown() {
85	xxx_messageInfo_AutoscalingPolicy.DiscardUnknown(m)
86}
87
88var xxx_messageInfo_AutoscalingPolicy proto.InternalMessageInfo
89
90func (m *AutoscalingPolicy) GetId() string {
91	if m != nil {
92		return m.Id
93	}
94	return ""
95}
96
97func (m *AutoscalingPolicy) GetName() string {
98	if m != nil {
99		return m.Name
100	}
101	return ""
102}
103
104type isAutoscalingPolicy_Algorithm interface {
105	isAutoscalingPolicy_Algorithm()
106}
107
108type AutoscalingPolicy_BasicAlgorithm struct {
109	BasicAlgorithm *BasicAutoscalingAlgorithm `protobuf:"bytes,3,opt,name=basic_algorithm,json=basicAlgorithm,proto3,oneof"`
110}
111
112func (*AutoscalingPolicy_BasicAlgorithm) isAutoscalingPolicy_Algorithm() {}
113
114func (m *AutoscalingPolicy) GetAlgorithm() isAutoscalingPolicy_Algorithm {
115	if m != nil {
116		return m.Algorithm
117	}
118	return nil
119}
120
121func (m *AutoscalingPolicy) GetBasicAlgorithm() *BasicAutoscalingAlgorithm {
122	if x, ok := m.GetAlgorithm().(*AutoscalingPolicy_BasicAlgorithm); ok {
123		return x.BasicAlgorithm
124	}
125	return nil
126}
127
128func (m *AutoscalingPolicy) GetWorkerConfig() *InstanceGroupAutoscalingPolicyConfig {
129	if m != nil {
130		return m.WorkerConfig
131	}
132	return nil
133}
134
135func (m *AutoscalingPolicy) GetSecondaryWorkerConfig() *InstanceGroupAutoscalingPolicyConfig {
136	if m != nil {
137		return m.SecondaryWorkerConfig
138	}
139	return nil
140}
141
142// XXX_OneofWrappers is for the internal use of the proto package.
143func (*AutoscalingPolicy) XXX_OneofWrappers() []interface{} {
144	return []interface{}{
145		(*AutoscalingPolicy_BasicAlgorithm)(nil),
146	}
147}
148
149// Basic algorithm for autoscaling.
150type BasicAutoscalingAlgorithm struct {
151	// Required. YARN autoscaling configuration.
152	YarnConfig *BasicYarnAutoscalingConfig `protobuf:"bytes,1,opt,name=yarn_config,json=yarnConfig,proto3" json:"yarn_config,omitempty"`
153	// Optional. Duration between scaling events. A scaling period starts after
154	// the update operation from the previous event has completed.
155	//
156	// Bounds: [2m, 1d]. Default: 2m.
157	CooldownPeriod       *duration.Duration `protobuf:"bytes,2,opt,name=cooldown_period,json=cooldownPeriod,proto3" json:"cooldown_period,omitempty"`
158	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
159	XXX_unrecognized     []byte             `json:"-"`
160	XXX_sizecache        int32              `json:"-"`
161}
162
163func (m *BasicAutoscalingAlgorithm) Reset()         { *m = BasicAutoscalingAlgorithm{} }
164func (m *BasicAutoscalingAlgorithm) String() string { return proto.CompactTextString(m) }
165func (*BasicAutoscalingAlgorithm) ProtoMessage()    {}
166func (*BasicAutoscalingAlgorithm) Descriptor() ([]byte, []int) {
167	return fileDescriptor_e49a4a9859d08ad9, []int{1}
168}
169
170func (m *BasicAutoscalingAlgorithm) XXX_Unmarshal(b []byte) error {
171	return xxx_messageInfo_BasicAutoscalingAlgorithm.Unmarshal(m, b)
172}
173func (m *BasicAutoscalingAlgorithm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
174	return xxx_messageInfo_BasicAutoscalingAlgorithm.Marshal(b, m, deterministic)
175}
176func (m *BasicAutoscalingAlgorithm) XXX_Merge(src proto.Message) {
177	xxx_messageInfo_BasicAutoscalingAlgorithm.Merge(m, src)
178}
179func (m *BasicAutoscalingAlgorithm) XXX_Size() int {
180	return xxx_messageInfo_BasicAutoscalingAlgorithm.Size(m)
181}
182func (m *BasicAutoscalingAlgorithm) XXX_DiscardUnknown() {
183	xxx_messageInfo_BasicAutoscalingAlgorithm.DiscardUnknown(m)
184}
185
186var xxx_messageInfo_BasicAutoscalingAlgorithm proto.InternalMessageInfo
187
188func (m *BasicAutoscalingAlgorithm) GetYarnConfig() *BasicYarnAutoscalingConfig {
189	if m != nil {
190		return m.YarnConfig
191	}
192	return nil
193}
194
195func (m *BasicAutoscalingAlgorithm) GetCooldownPeriod() *duration.Duration {
196	if m != nil {
197		return m.CooldownPeriod
198	}
199	return nil
200}
201
202// Basic autoscaling configurations for YARN.
203type BasicYarnAutoscalingConfig struct {
204	// Required. Timeout for YARN graceful decommissioning of Node Managers.
205	// Specifies the duration to wait for jobs to complete before forcefully
206	// removing workers (and potentially interrupting jobs). Only applicable to
207	// downscaling operations.
208	//
209	// Bounds: [0s, 1d].
210	GracefulDecommissionTimeout *duration.Duration `protobuf:"bytes,5,opt,name=graceful_decommission_timeout,json=gracefulDecommissionTimeout,proto3" json:"graceful_decommission_timeout,omitempty"`
211	// Required. Fraction of average pending memory in the last cooldown period
212	// for which to add workers. A scale-up factor of 1.0 will result in scaling
213	// up so that there is no pending memory remaining after the update (more
214	// aggressive scaling). A scale-up factor closer to 0 will result in a smaller
215	// magnitude of scaling up (less aggressive scaling).
216	//
217	// Bounds: [0.0, 1.0].
218	ScaleUpFactor float64 `protobuf:"fixed64,1,opt,name=scale_up_factor,json=scaleUpFactor,proto3" json:"scale_up_factor,omitempty"`
219	// Required. Fraction of average pending memory in the last cooldown period
220	// for which to remove workers. A scale-down factor of 1 will result in
221	// scaling down so that there is no available memory remaining after the
222	// update (more aggressive scaling). A scale-down factor of 0 disables
223	// removing workers, which can be beneficial for autoscaling a single job.
224	//
225	// Bounds: [0.0, 1.0].
226	ScaleDownFactor float64 `protobuf:"fixed64,2,opt,name=scale_down_factor,json=scaleDownFactor,proto3" json:"scale_down_factor,omitempty"`
227	// Optional. Minimum scale-up threshold as a fraction of total cluster size
228	// before scaling occurs. For example, in a 20-worker cluster, a threshold of
229	// 0.1 means the autoscaler must recommend at least a 2-worker scale-up for
230	// the cluster to scale. A threshold of 0 means the autoscaler will scale up
231	// on any recommended change.
232	//
233	// Bounds: [0.0, 1.0]. Default: 0.0.
234	ScaleUpMinWorkerFraction float64 `protobuf:"fixed64,3,opt,name=scale_up_min_worker_fraction,json=scaleUpMinWorkerFraction,proto3" json:"scale_up_min_worker_fraction,omitempty"`
235	// Optional. Minimum scale-down threshold as a fraction of total cluster size
236	// before scaling occurs. For example, in a 20-worker cluster, a threshold of
237	// 0.1 means the autoscaler must recommend at least a 2 worker scale-down for
238	// the cluster to scale. A threshold of 0 means the autoscaler will scale down
239	// on any recommended change.
240	//
241	// Bounds: [0.0, 1.0]. Default: 0.0.
242	ScaleDownMinWorkerFraction float64  `protobuf:"fixed64,4,opt,name=scale_down_min_worker_fraction,json=scaleDownMinWorkerFraction,proto3" json:"scale_down_min_worker_fraction,omitempty"`
243	XXX_NoUnkeyedLiteral       struct{} `json:"-"`
244	XXX_unrecognized           []byte   `json:"-"`
245	XXX_sizecache              int32    `json:"-"`
246}
247
248func (m *BasicYarnAutoscalingConfig) Reset()         { *m = BasicYarnAutoscalingConfig{} }
249func (m *BasicYarnAutoscalingConfig) String() string { return proto.CompactTextString(m) }
250func (*BasicYarnAutoscalingConfig) ProtoMessage()    {}
251func (*BasicYarnAutoscalingConfig) Descriptor() ([]byte, []int) {
252	return fileDescriptor_e49a4a9859d08ad9, []int{2}
253}
254
255func (m *BasicYarnAutoscalingConfig) XXX_Unmarshal(b []byte) error {
256	return xxx_messageInfo_BasicYarnAutoscalingConfig.Unmarshal(m, b)
257}
258func (m *BasicYarnAutoscalingConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
259	return xxx_messageInfo_BasicYarnAutoscalingConfig.Marshal(b, m, deterministic)
260}
261func (m *BasicYarnAutoscalingConfig) XXX_Merge(src proto.Message) {
262	xxx_messageInfo_BasicYarnAutoscalingConfig.Merge(m, src)
263}
264func (m *BasicYarnAutoscalingConfig) XXX_Size() int {
265	return xxx_messageInfo_BasicYarnAutoscalingConfig.Size(m)
266}
267func (m *BasicYarnAutoscalingConfig) XXX_DiscardUnknown() {
268	xxx_messageInfo_BasicYarnAutoscalingConfig.DiscardUnknown(m)
269}
270
271var xxx_messageInfo_BasicYarnAutoscalingConfig proto.InternalMessageInfo
272
273func (m *BasicYarnAutoscalingConfig) GetGracefulDecommissionTimeout() *duration.Duration {
274	if m != nil {
275		return m.GracefulDecommissionTimeout
276	}
277	return nil
278}
279
280func (m *BasicYarnAutoscalingConfig) GetScaleUpFactor() float64 {
281	if m != nil {
282		return m.ScaleUpFactor
283	}
284	return 0
285}
286
287func (m *BasicYarnAutoscalingConfig) GetScaleDownFactor() float64 {
288	if m != nil {
289		return m.ScaleDownFactor
290	}
291	return 0
292}
293
294func (m *BasicYarnAutoscalingConfig) GetScaleUpMinWorkerFraction() float64 {
295	if m != nil {
296		return m.ScaleUpMinWorkerFraction
297	}
298	return 0
299}
300
301func (m *BasicYarnAutoscalingConfig) GetScaleDownMinWorkerFraction() float64 {
302	if m != nil {
303		return m.ScaleDownMinWorkerFraction
304	}
305	return 0
306}
307
308// Configuration for the size bounds of an instance group, including its
309// proportional size to other groups.
310type InstanceGroupAutoscalingPolicyConfig struct {
311	// Optional. Minimum number of instances for this group.
312	//
313	// Primary workers - Bounds: [2, max_instances]. Default: 2.
314	// Secondary workers - Bounds: [0, max_instances]. Default: 0.
315	MinInstances int32 `protobuf:"varint,1,opt,name=min_instances,json=minInstances,proto3" json:"min_instances,omitempty"`
316	// Required. Maximum number of instances for this group. Required for primary
317	// workers. Note that by default, clusters will not use secondary workers.
318	// Required for secondary workers if the minimum secondary instances is set.
319	//
320	// Primary workers - Bounds: [min_instances, ).
321	// Secondary workers - Bounds: [min_instances, ). Default: 0.
322	MaxInstances int32 `protobuf:"varint,2,opt,name=max_instances,json=maxInstances,proto3" json:"max_instances,omitempty"`
323	// Optional. Weight for the instance group, which is used to determine the
324	// fraction of total workers in the cluster from this instance group.
325	// For example, if primary workers have weight 2, and secondary workers have
326	// weight 1, the cluster will have approximately 2 primary workers for each
327	// secondary worker.
328	//
329	// The cluster may not reach the specified balance if constrained
330	// by min/max bounds or other autoscaling settings. For example, if
331	// `max_instances` for secondary workers is 0, then only primary workers will
332	// be added. The cluster can also be out of balance when created.
333	//
334	// If weight is not set on any instance group, the cluster will default to
335	// equal weight for all groups: the cluster will attempt to maintain an equal
336	// number of workers in each group within the configured size bounds for each
337	// group. If weight is set for one group only, the cluster will default to
338	// zero weight on the unset group. For example if weight is set only on
339	// primary workers, the cluster will use primary workers only and no
340	// secondary workers.
341	Weight               int32    `protobuf:"varint,3,opt,name=weight,proto3" json:"weight,omitempty"`
342	XXX_NoUnkeyedLiteral struct{} `json:"-"`
343	XXX_unrecognized     []byte   `json:"-"`
344	XXX_sizecache        int32    `json:"-"`
345}
346
347func (m *InstanceGroupAutoscalingPolicyConfig) Reset()         { *m = InstanceGroupAutoscalingPolicyConfig{} }
348func (m *InstanceGroupAutoscalingPolicyConfig) String() string { return proto.CompactTextString(m) }
349func (*InstanceGroupAutoscalingPolicyConfig) ProtoMessage()    {}
350func (*InstanceGroupAutoscalingPolicyConfig) Descriptor() ([]byte, []int) {
351	return fileDescriptor_e49a4a9859d08ad9, []int{3}
352}
353
354func (m *InstanceGroupAutoscalingPolicyConfig) XXX_Unmarshal(b []byte) error {
355	return xxx_messageInfo_InstanceGroupAutoscalingPolicyConfig.Unmarshal(m, b)
356}
357func (m *InstanceGroupAutoscalingPolicyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
358	return xxx_messageInfo_InstanceGroupAutoscalingPolicyConfig.Marshal(b, m, deterministic)
359}
360func (m *InstanceGroupAutoscalingPolicyConfig) XXX_Merge(src proto.Message) {
361	xxx_messageInfo_InstanceGroupAutoscalingPolicyConfig.Merge(m, src)
362}
363func (m *InstanceGroupAutoscalingPolicyConfig) XXX_Size() int {
364	return xxx_messageInfo_InstanceGroupAutoscalingPolicyConfig.Size(m)
365}
366func (m *InstanceGroupAutoscalingPolicyConfig) XXX_DiscardUnknown() {
367	xxx_messageInfo_InstanceGroupAutoscalingPolicyConfig.DiscardUnknown(m)
368}
369
370var xxx_messageInfo_InstanceGroupAutoscalingPolicyConfig proto.InternalMessageInfo
371
372func (m *InstanceGroupAutoscalingPolicyConfig) GetMinInstances() int32 {
373	if m != nil {
374		return m.MinInstances
375	}
376	return 0
377}
378
379func (m *InstanceGroupAutoscalingPolicyConfig) GetMaxInstances() int32 {
380	if m != nil {
381		return m.MaxInstances
382	}
383	return 0
384}
385
386func (m *InstanceGroupAutoscalingPolicyConfig) GetWeight() int32 {
387	if m != nil {
388		return m.Weight
389	}
390	return 0
391}
392
393// A request to create an autoscaling policy.
394type CreateAutoscalingPolicyRequest struct {
395	// Required. The "resource name" of the region or location, as described
396	// in https://cloud.google.com/apis/design/resource_names.
397	//
398	// * For `projects.regions.autoscalingPolicies.create`, the resource name
399	//   of the region has the following format:
400	//   `projects/{project_id}/regions/{region}`
401	//
402	// * For `projects.locations.autoscalingPolicies.create`, the resource name
403	//   of the location has the following format:
404	//   `projects/{project_id}/locations/{location}`
405	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
406	// The autoscaling policy to create.
407	Policy               *AutoscalingPolicy `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
408	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
409	XXX_unrecognized     []byte             `json:"-"`
410	XXX_sizecache        int32              `json:"-"`
411}
412
413func (m *CreateAutoscalingPolicyRequest) Reset()         { *m = CreateAutoscalingPolicyRequest{} }
414func (m *CreateAutoscalingPolicyRequest) String() string { return proto.CompactTextString(m) }
415func (*CreateAutoscalingPolicyRequest) ProtoMessage()    {}
416func (*CreateAutoscalingPolicyRequest) Descriptor() ([]byte, []int) {
417	return fileDescriptor_e49a4a9859d08ad9, []int{4}
418}
419
420func (m *CreateAutoscalingPolicyRequest) XXX_Unmarshal(b []byte) error {
421	return xxx_messageInfo_CreateAutoscalingPolicyRequest.Unmarshal(m, b)
422}
423func (m *CreateAutoscalingPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
424	return xxx_messageInfo_CreateAutoscalingPolicyRequest.Marshal(b, m, deterministic)
425}
426func (m *CreateAutoscalingPolicyRequest) XXX_Merge(src proto.Message) {
427	xxx_messageInfo_CreateAutoscalingPolicyRequest.Merge(m, src)
428}
429func (m *CreateAutoscalingPolicyRequest) XXX_Size() int {
430	return xxx_messageInfo_CreateAutoscalingPolicyRequest.Size(m)
431}
432func (m *CreateAutoscalingPolicyRequest) XXX_DiscardUnknown() {
433	xxx_messageInfo_CreateAutoscalingPolicyRequest.DiscardUnknown(m)
434}
435
436var xxx_messageInfo_CreateAutoscalingPolicyRequest proto.InternalMessageInfo
437
438func (m *CreateAutoscalingPolicyRequest) GetParent() string {
439	if m != nil {
440		return m.Parent
441	}
442	return ""
443}
444
445func (m *CreateAutoscalingPolicyRequest) GetPolicy() *AutoscalingPolicy {
446	if m != nil {
447		return m.Policy
448	}
449	return nil
450}
451
452// A request to fetch an autoscaling policy.
453type GetAutoscalingPolicyRequest struct {
454	// Required. The "resource name" of the autoscaling policy, as described
455	// in https://cloud.google.com/apis/design/resource_names.
456	//
457	// * For `projects.regions.autoscalingPolicies.get`, the resource name
458	//   of the policy has the following format:
459	//   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
460	//
461	// * For `projects.locations.autoscalingPolicies.get`, the resource name
462	//   of the policy has the following format:
463	//   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
464	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
465	XXX_NoUnkeyedLiteral struct{} `json:"-"`
466	XXX_unrecognized     []byte   `json:"-"`
467	XXX_sizecache        int32    `json:"-"`
468}
469
470func (m *GetAutoscalingPolicyRequest) Reset()         { *m = GetAutoscalingPolicyRequest{} }
471func (m *GetAutoscalingPolicyRequest) String() string { return proto.CompactTextString(m) }
472func (*GetAutoscalingPolicyRequest) ProtoMessage()    {}
473func (*GetAutoscalingPolicyRequest) Descriptor() ([]byte, []int) {
474	return fileDescriptor_e49a4a9859d08ad9, []int{5}
475}
476
477func (m *GetAutoscalingPolicyRequest) XXX_Unmarshal(b []byte) error {
478	return xxx_messageInfo_GetAutoscalingPolicyRequest.Unmarshal(m, b)
479}
480func (m *GetAutoscalingPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
481	return xxx_messageInfo_GetAutoscalingPolicyRequest.Marshal(b, m, deterministic)
482}
483func (m *GetAutoscalingPolicyRequest) XXX_Merge(src proto.Message) {
484	xxx_messageInfo_GetAutoscalingPolicyRequest.Merge(m, src)
485}
486func (m *GetAutoscalingPolicyRequest) XXX_Size() int {
487	return xxx_messageInfo_GetAutoscalingPolicyRequest.Size(m)
488}
489func (m *GetAutoscalingPolicyRequest) XXX_DiscardUnknown() {
490	xxx_messageInfo_GetAutoscalingPolicyRequest.DiscardUnknown(m)
491}
492
493var xxx_messageInfo_GetAutoscalingPolicyRequest proto.InternalMessageInfo
494
495func (m *GetAutoscalingPolicyRequest) GetName() string {
496	if m != nil {
497		return m.Name
498	}
499	return ""
500}
501
502// A request to update an autoscaling policy.
503type UpdateAutoscalingPolicyRequest struct {
504	// Required. The updated autoscaling policy.
505	Policy               *AutoscalingPolicy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"`
506	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
507	XXX_unrecognized     []byte             `json:"-"`
508	XXX_sizecache        int32              `json:"-"`
509}
510
511func (m *UpdateAutoscalingPolicyRequest) Reset()         { *m = UpdateAutoscalingPolicyRequest{} }
512func (m *UpdateAutoscalingPolicyRequest) String() string { return proto.CompactTextString(m) }
513func (*UpdateAutoscalingPolicyRequest) ProtoMessage()    {}
514func (*UpdateAutoscalingPolicyRequest) Descriptor() ([]byte, []int) {
515	return fileDescriptor_e49a4a9859d08ad9, []int{6}
516}
517
518func (m *UpdateAutoscalingPolicyRequest) XXX_Unmarshal(b []byte) error {
519	return xxx_messageInfo_UpdateAutoscalingPolicyRequest.Unmarshal(m, b)
520}
521func (m *UpdateAutoscalingPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
522	return xxx_messageInfo_UpdateAutoscalingPolicyRequest.Marshal(b, m, deterministic)
523}
524func (m *UpdateAutoscalingPolicyRequest) XXX_Merge(src proto.Message) {
525	xxx_messageInfo_UpdateAutoscalingPolicyRequest.Merge(m, src)
526}
527func (m *UpdateAutoscalingPolicyRequest) XXX_Size() int {
528	return xxx_messageInfo_UpdateAutoscalingPolicyRequest.Size(m)
529}
530func (m *UpdateAutoscalingPolicyRequest) XXX_DiscardUnknown() {
531	xxx_messageInfo_UpdateAutoscalingPolicyRequest.DiscardUnknown(m)
532}
533
534var xxx_messageInfo_UpdateAutoscalingPolicyRequest proto.InternalMessageInfo
535
536func (m *UpdateAutoscalingPolicyRequest) GetPolicy() *AutoscalingPolicy {
537	if m != nil {
538		return m.Policy
539	}
540	return nil
541}
542
543// A request to delete an autoscaling policy.
544//
545// Autoscaling policies in use by one or more clusters will not be deleted.
546type DeleteAutoscalingPolicyRequest struct {
547	// Required. The "resource name" of the autoscaling policy, as described
548	// in https://cloud.google.com/apis/design/resource_names.
549	//
550	// * For `projects.regions.autoscalingPolicies.delete`, the resource name
551	//   of the policy has the following format:
552	//   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
553	//
554	// * For `projects.locations.autoscalingPolicies.delete`, the resource name
555	//   of the policy has the following format:
556	//   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
557	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
558	XXX_NoUnkeyedLiteral struct{} `json:"-"`
559	XXX_unrecognized     []byte   `json:"-"`
560	XXX_sizecache        int32    `json:"-"`
561}
562
563func (m *DeleteAutoscalingPolicyRequest) Reset()         { *m = DeleteAutoscalingPolicyRequest{} }
564func (m *DeleteAutoscalingPolicyRequest) String() string { return proto.CompactTextString(m) }
565func (*DeleteAutoscalingPolicyRequest) ProtoMessage()    {}
566func (*DeleteAutoscalingPolicyRequest) Descriptor() ([]byte, []int) {
567	return fileDescriptor_e49a4a9859d08ad9, []int{7}
568}
569
570func (m *DeleteAutoscalingPolicyRequest) XXX_Unmarshal(b []byte) error {
571	return xxx_messageInfo_DeleteAutoscalingPolicyRequest.Unmarshal(m, b)
572}
573func (m *DeleteAutoscalingPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
574	return xxx_messageInfo_DeleteAutoscalingPolicyRequest.Marshal(b, m, deterministic)
575}
576func (m *DeleteAutoscalingPolicyRequest) XXX_Merge(src proto.Message) {
577	xxx_messageInfo_DeleteAutoscalingPolicyRequest.Merge(m, src)
578}
579func (m *DeleteAutoscalingPolicyRequest) XXX_Size() int {
580	return xxx_messageInfo_DeleteAutoscalingPolicyRequest.Size(m)
581}
582func (m *DeleteAutoscalingPolicyRequest) XXX_DiscardUnknown() {
583	xxx_messageInfo_DeleteAutoscalingPolicyRequest.DiscardUnknown(m)
584}
585
586var xxx_messageInfo_DeleteAutoscalingPolicyRequest proto.InternalMessageInfo
587
588func (m *DeleteAutoscalingPolicyRequest) GetName() string {
589	if m != nil {
590		return m.Name
591	}
592	return ""
593}
594
595// A request to list autoscaling policies in a project.
596type ListAutoscalingPoliciesRequest struct {
597	// Required. The "resource name" of the region or location, as described
598	// in https://cloud.google.com/apis/design/resource_names.
599	//
600	// * For `projects.regions.autoscalingPolicies.list`, the resource name
601	//   of the region has the following format:
602	//   `projects/{project_id}/regions/{region}`
603	//
604	// * For `projects.locations.autoscalingPolicies.list`, the resource name
605	//   of the location has the following format:
606	//   `projects/{project_id}/locations/{location}`
607	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
608	// Optional. The maximum number of results to return in each response.
609	// Must be less than or equal to 1000. Defaults to 100.
610	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
611	// Optional. The page token, returned by a previous call, to request the
612	// next page of results.
613	PageToken            string   `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
614	XXX_NoUnkeyedLiteral struct{} `json:"-"`
615	XXX_unrecognized     []byte   `json:"-"`
616	XXX_sizecache        int32    `json:"-"`
617}
618
619func (m *ListAutoscalingPoliciesRequest) Reset()         { *m = ListAutoscalingPoliciesRequest{} }
620func (m *ListAutoscalingPoliciesRequest) String() string { return proto.CompactTextString(m) }
621func (*ListAutoscalingPoliciesRequest) ProtoMessage()    {}
622func (*ListAutoscalingPoliciesRequest) Descriptor() ([]byte, []int) {
623	return fileDescriptor_e49a4a9859d08ad9, []int{8}
624}
625
626func (m *ListAutoscalingPoliciesRequest) XXX_Unmarshal(b []byte) error {
627	return xxx_messageInfo_ListAutoscalingPoliciesRequest.Unmarshal(m, b)
628}
629func (m *ListAutoscalingPoliciesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
630	return xxx_messageInfo_ListAutoscalingPoliciesRequest.Marshal(b, m, deterministic)
631}
632func (m *ListAutoscalingPoliciesRequest) XXX_Merge(src proto.Message) {
633	xxx_messageInfo_ListAutoscalingPoliciesRequest.Merge(m, src)
634}
635func (m *ListAutoscalingPoliciesRequest) XXX_Size() int {
636	return xxx_messageInfo_ListAutoscalingPoliciesRequest.Size(m)
637}
638func (m *ListAutoscalingPoliciesRequest) XXX_DiscardUnknown() {
639	xxx_messageInfo_ListAutoscalingPoliciesRequest.DiscardUnknown(m)
640}
641
642var xxx_messageInfo_ListAutoscalingPoliciesRequest proto.InternalMessageInfo
643
644func (m *ListAutoscalingPoliciesRequest) GetParent() string {
645	if m != nil {
646		return m.Parent
647	}
648	return ""
649}
650
651func (m *ListAutoscalingPoliciesRequest) GetPageSize() int32 {
652	if m != nil {
653		return m.PageSize
654	}
655	return 0
656}
657
658func (m *ListAutoscalingPoliciesRequest) GetPageToken() string {
659	if m != nil {
660		return m.PageToken
661	}
662	return ""
663}
664
665// A response to a request to list autoscaling policies in a project.
666type ListAutoscalingPoliciesResponse struct {
667	// Output only. Autoscaling policies list.
668	Policies []*AutoscalingPolicy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"`
669	// Output only. This token is included in the response if there are more
670	// results to fetch.
671	NextPageToken        string   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
672	XXX_NoUnkeyedLiteral struct{} `json:"-"`
673	XXX_unrecognized     []byte   `json:"-"`
674	XXX_sizecache        int32    `json:"-"`
675}
676
677func (m *ListAutoscalingPoliciesResponse) Reset()         { *m = ListAutoscalingPoliciesResponse{} }
678func (m *ListAutoscalingPoliciesResponse) String() string { return proto.CompactTextString(m) }
679func (*ListAutoscalingPoliciesResponse) ProtoMessage()    {}
680func (*ListAutoscalingPoliciesResponse) Descriptor() ([]byte, []int) {
681	return fileDescriptor_e49a4a9859d08ad9, []int{9}
682}
683
684func (m *ListAutoscalingPoliciesResponse) XXX_Unmarshal(b []byte) error {
685	return xxx_messageInfo_ListAutoscalingPoliciesResponse.Unmarshal(m, b)
686}
687func (m *ListAutoscalingPoliciesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
688	return xxx_messageInfo_ListAutoscalingPoliciesResponse.Marshal(b, m, deterministic)
689}
690func (m *ListAutoscalingPoliciesResponse) XXX_Merge(src proto.Message) {
691	xxx_messageInfo_ListAutoscalingPoliciesResponse.Merge(m, src)
692}
693func (m *ListAutoscalingPoliciesResponse) XXX_Size() int {
694	return xxx_messageInfo_ListAutoscalingPoliciesResponse.Size(m)
695}
696func (m *ListAutoscalingPoliciesResponse) XXX_DiscardUnknown() {
697	xxx_messageInfo_ListAutoscalingPoliciesResponse.DiscardUnknown(m)
698}
699
700var xxx_messageInfo_ListAutoscalingPoliciesResponse proto.InternalMessageInfo
701
702func (m *ListAutoscalingPoliciesResponse) GetPolicies() []*AutoscalingPolicy {
703	if m != nil {
704		return m.Policies
705	}
706	return nil
707}
708
709func (m *ListAutoscalingPoliciesResponse) GetNextPageToken() string {
710	if m != nil {
711		return m.NextPageToken
712	}
713	return ""
714}
715
716func init() {
717	proto.RegisterType((*AutoscalingPolicy)(nil), "google.cloud.dataproc.v1.AutoscalingPolicy")
718	proto.RegisterType((*BasicAutoscalingAlgorithm)(nil), "google.cloud.dataproc.v1.BasicAutoscalingAlgorithm")
719	proto.RegisterType((*BasicYarnAutoscalingConfig)(nil), "google.cloud.dataproc.v1.BasicYarnAutoscalingConfig")
720	proto.RegisterType((*InstanceGroupAutoscalingPolicyConfig)(nil), "google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig")
721	proto.RegisterType((*CreateAutoscalingPolicyRequest)(nil), "google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest")
722	proto.RegisterType((*GetAutoscalingPolicyRequest)(nil), "google.cloud.dataproc.v1.GetAutoscalingPolicyRequest")
723	proto.RegisterType((*UpdateAutoscalingPolicyRequest)(nil), "google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest")
724	proto.RegisterType((*DeleteAutoscalingPolicyRequest)(nil), "google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest")
725	proto.RegisterType((*ListAutoscalingPoliciesRequest)(nil), "google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest")
726	proto.RegisterType((*ListAutoscalingPoliciesResponse)(nil), "google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse")
727}
728
729func init() {
730	proto.RegisterFile("google/cloud/dataproc/v1/autoscaling_policies.proto", fileDescriptor_e49a4a9859d08ad9)
731}
732
733var fileDescriptor_e49a4a9859d08ad9 = []byte{
734	// 1186 bytes of a gzipped FileDescriptorProto
735	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x41, 0x6f, 0xdc, 0x44,
736	0x14, 0xc6, 0x4e, 0x1a, 0x35, 0x93, 0xa6, 0x51, 0x47, 0xc0, 0x6e, 0x36, 0x61, 0x1b, 0x59, 0x1c,
737	0x42, 0x22, 0xd6, 0x4a, 0x42, 0x54, 0x08, 0x50, 0xd8, 0x4d, 0x9a, 0xb4, 0x22, 0x48, 0xab, 0x6d,
738	0x2b, 0x44, 0x2e, 0xd6, 0xc4, 0x9e, 0xf5, 0x4e, 0x6b, 0x7b, 0xcc, 0x78, 0x36, 0x9b, 0x6d, 0x9a,
739	0x4b, 0x4f, 0x20, 0x71, 0x40, 0xea, 0xa1, 0x12, 0xe2, 0x47, 0xc0, 0x3f, 0xe0, 0xcc, 0x11, 0xfe,
740	0x40, 0x0f, 0x70, 0x41, 0x1c, 0x39, 0x21, 0x21, 0x21, 0xcf, 0x8c, 0xbd, 0x6e, 0x76, 0xed, 0x74,
741	0xa3, 0x72, 0xca, 0x66, 0xde, 0x7b, 0xdf, 0x37, 0xef, 0x7b, 0xef, 0xcd, 0x8c, 0xc1, 0x86, 0x4b,
742	0xa9, 0xeb, 0x61, 0xd3, 0xf6, 0x68, 0xd7, 0x31, 0x1d, 0xc4, 0x51, 0xc8, 0xa8, 0x6d, 0x1e, 0xad,
743	0x99, 0xa8, 0xcb, 0x69, 0x64, 0x23, 0x8f, 0x04, 0xae, 0x15, 0x52, 0x8f, 0xd8, 0x04, 0x47, 0xb5,
744	0x90, 0x51, 0x4e, 0x61, 0x59, 0x06, 0xd5, 0x44, 0x50, 0x2d, 0x09, 0xaa, 0x1d, 0xad, 0x55, 0x16,
745	0x15, 0x1c, 0x0a, 0x89, 0x89, 0x82, 0x80, 0x72, 0xc4, 0x09, 0x0d, 0x54, 0x5c, 0xe5, 0x7a, 0xc6,
746	0xda, 0x26, 0xd8, 0x73, 0xac, 0x43, 0xdc, 0x41, 0x47, 0x84, 0x32, 0xe5, 0x30, 0x9f, 0x71, 0x60,
747	0x38, 0xa2, 0x5d, 0x66, 0x63, 0x65, 0xaa, 0x2a, 0x93, 0xf8, 0xef, 0xb0, 0xdb, 0x36, 0x9d, 0x2e,
748	0x13, 0xe0, 0xca, 0xbe, 0x70, 0xd6, 0x8e, 0xfd, 0x90, 0xf7, 0x95, 0xb1, 0x94, 0xc1, 0xb5, 0x3d,
749	0x82, 0x03, 0x2e, 0x0d, 0xc6, 0xd3, 0x49, 0x70, 0xad, 0x3e, 0x48, 0xb4, 0x19, 0xe7, 0xd9, 0x87,
750	0x57, 0x81, 0x4e, 0x9c, 0xb2, 0xb6, 0xa4, 0x2d, 0x4f, 0xb7, 0x74, 0xe2, 0xc0, 0x12, 0x98, 0x0c,
751	0x90, 0x8f, 0xcb, 0x7a, 0xbc, 0xd2, 0x98, 0x78, 0x5e, 0x9f, 0x68, 0x89, 0x05, 0x68, 0x83, 0xb9,
752	0x43, 0x14, 0x11, 0xdb, 0x42, 0x9e, 0x4b, 0x19, 0xe1, 0x1d, 0xbf, 0x3c, 0xb1, 0xa4, 0x2d, 0xcf,
753	0xac, 0x6f, 0xd4, 0xf2, 0x24, 0xaa, 0x35, 0xe2, 0x80, 0x0c, 0x67, 0x3d, 0x09, 0x8d, 0x81, 0xf5,
754	0xdb, 0xaf, 0xb5, 0xae, 0x0a, 0xc8, 0x74, 0x19, 0x76, 0xc0, 0x6c, 0x8f, 0xb2, 0x87, 0x98, 0x59,
755	0x36, 0x0d, 0xda, 0xc4, 0x2d, 0x4f, 0x0a, 0x8a, 0x9b, 0xf9, 0x14, 0x77, 0x82, 0x88, 0xa3, 0xc0,
756	0xc6, 0x7b, 0x8c, 0x76, 0xc3, 0xa1, 0xf4, 0xb6, 0x05, 0x8a, 0x60, 0x6b, 0x5d, 0x91, 0xc8, 0x72,
757	0x09, 0x9e, 0x80, 0x52, 0x84, 0x6d, 0x1a, 0x38, 0x88, 0xf5, 0xad, 0x17, 0x39, 0x2f, 0xbd, 0x2a,
758	0x4e, 0xad, 0xf5, 0x46, 0xca, 0xf1, 0x45, 0x86, 0x7c, 0xeb, 0xf1, 0x9f, 0xf5, 0x3e, 0x78, 0x27,
759	0x85, 0x94, 0x44, 0x28, 0x24, 0x51, 0xcd, 0xa6, 0xbe, 0x39, 0x5c, 0xa4, 0xfd, 0x90, 0xd1, 0x07,
760	0xd8, 0xe6, 0x91, 0x79, 0xa2, 0x7e, 0x9d, 0x9a, 0x0c, 0xbb, 0x71, 0xbb, 0x99, 0x27, 0xf2, 0xc7,
761	0x69, 0xb6, 0x89, 0x9b, 0xaa, 0x87, 0xcd, 0x93, 0xa1, 0xce, 0xee, 0x9f, 0x36, 0x66, 0xc0, 0x74,
762	0x5a, 0x43, 0xe3, 0x67, 0x0d, 0xcc, 0xe7, 0x96, 0x09, 0x1e, 0x80, 0x99, 0x3e, 0x62, 0x41, 0xa2,
763	0x8c, 0x26, 0x94, 0x79, 0xef, 0x9c, 0x82, 0x7f, 0x89, 0x58, 0x90, 0x41, 0xcb, 0xd6, 0x00, 0xc4,
764	0x68, 0xaa, 0x02, 0x7b, 0x60, 0xce, 0xa6, 0xd4, 0x73, 0x68, 0x2f, 0xb0, 0x42, 0xcc, 0x08, 0x75,
765	0x44, 0xd3, 0xcd, 0xac, 0xcf, 0x27, 0xf8, 0x49, 0x7f, 0xd7, 0x76, 0x54, 0xff, 0x4b, 0x51, 0xaf,
766	0x26, 0x61, 0x4d, 0x11, 0x65, 0xfc, 0xa5, 0x83, 0x4a, 0x3e, 0x31, 0x3c, 0x04, 0x6f, 0xb9, 0x0c,
767	0xd9, 0xb8, 0xdd, 0xf5, 0x2c, 0x07, 0xdb, 0xd4, 0xf7, 0x49, 0x14, 0x11, 0x1a, 0x58, 0x9c, 0xf8,
768	0x98, 0x76, 0xb9, 0xaa, 0x77, 0x31, 0xab, 0xde, 0x5a, 0x48, 0x40, 0x76, 0x32, 0x18, 0xf7, 0x24,
769	0x04, 0x5c, 0x05, 0x73, 0x31, 0x29, 0xb6, 0xba, 0xa1, 0xd5, 0x46, 0x36, 0xa7, 0x4c, 0x68, 0xa5,
770	0xc9, 0xd0, 0x59, 0x61, 0xbb, 0x1f, 0xee, 0x0a, 0x0b, 0x34, 0xc1, 0x35, 0xe9, 0x2c, 0x52, 0x57,
771	0xee, 0xfa, 0xc0, 0x5d, 0x42, 0xed, 0xd0, 0x5e, 0xa0, 0x02, 0xb6, 0xc1, 0x62, 0x8a, 0xee, 0x93,
772	0x20, 0x69, 0xd7, 0x36, 0x43, 0x76, 0xbc, 0x3f, 0x31, 0x87, 0x9a, 0xd4, 0xa6, 0xac, 0xa8, 0x3e,
773	0x27, 0x81, 0xec, 0xb8, 0x5d, 0xe5, 0x04, 0xf7, 0x40, 0x35, 0xc3, 0x3a, 0x0a, 0x66, 0x72, 0x00,
774	0x53, 0x49, 0xb7, 0x30, 0x04, 0x64, 0x3c, 0xd3, 0xc0, 0xdb, 0x2f, 0x33, 0x01, 0x70, 0x19, 0xcc,
775	0xc6, 0x34, 0x44, 0xf9, 0x46, 0x42, 0x92, 0x4b, 0x92, 0xe0, 0x8a, 0x4f, 0x82, 0x04, 0x24, 0x12,
776	0x9e, 0xe8, 0x38, 0xe3, 0xa9, 0x27, 0x9e, 0x7a, 0xeb, 0x8a, 0x8f, 0x8e, 0x07, 0x9e, 0x0b, 0x60,
777	0xaa, 0x87, 0x89, 0xdb, 0xe1, 0x22, 0x69, 0x05, 0xa6, 0x96, 0x8c, 0x1f, 0x35, 0x50, 0xdd, 0x66,
778	0x18, 0x71, 0x3c, 0xb4, 0xa5, 0x16, 0xfe, 0xaa, 0x8b, 0x23, 0x0e, 0xef, 0x80, 0xa9, 0x10, 0x31,
779	0x1c, 0x70, 0x79, 0xe4, 0x35, 0xd6, 0x9e, 0xd7, 0xf5, 0x7f, 0xea, 0xab, 0xf0, 0xe5, 0x87, 0xb1,
780	0xa5, 0x00, 0xe0, 0x36, 0x98, 0x92, 0x13, 0xa5, 0xda, 0x76, 0x35, 0x7f, 0x2c, 0x46, 0x81, 0x88,
781	0xbf, 0x86, 0x03, 0x16, 0xf6, 0x30, 0xcf, 0xdd, 0xee, 0x2d, 0x75, 0x1a, 0xbf, 0xb0, 0xd9, 0x31,
782	0x4e, 0x0e, 0x79, 0x76, 0x1b, 0x0f, 0x40, 0xf5, 0x7e, 0xe8, 0x14, 0xe9, 0x72, 0x3b, 0x4d, 0x46,
783	0x1b, 0x3b, 0x19, 0x59, 0xa7, 0x24, 0x23, 0x17, 0x54, 0x77, 0xb0, 0x87, 0x0b, 0xb8, 0x5e, 0x51,
784	0x52, 0x3f, 0x69, 0xa0, 0xba, 0x4f, 0xa2, 0x21, 0xf1, 0x08, 0x8e, 0xfe, 0x87, 0x6a, 0x2f, 0x81,
785	0xe9, 0x10, 0xb9, 0xd8, 0x8a, 0xc8, 0x23, 0x3c, 0x68, 0x4f, 0xad, 0x75, 0x39, 0x5e, 0xbd, 0x4b,
786	0x1e, 0x61, 0x68, 0x00, 0x20, 0x3c, 0x38, 0x7d, 0x88, 0xe5, 0x4c, 0x4e, 0x4b, 0x17, 0x11, 0x78,
787	0x2f, 0x5e, 0x35, 0x7e, 0xd0, 0xc0, 0xf5, 0xdc, 0x3d, 0x47, 0x21, 0x0d, 0x22, 0x0c, 0xf7, 0xc1,
788	0xe5, 0xe4, 0x0d, 0x52, 0xd6, 0x96, 0x26, 0x2e, 0x50, 0x8c, 0x89, 0x56, 0x8a, 0x10, 0x9f, 0x4c,
789	0x01, 0x3e, 0xe6, 0x56, 0x66, 0x6b, 0x99, 0xab, 0x7d, 0x36, 0xb6, 0x35, 0x93, 0xed, 0xad, 0xff,
790	0x0b, 0x40, 0x79, 0x08, 0xf1, 0x2e, 0x66, 0x47, 0xc4, 0xc6, 0xf0, 0x5b, 0x1d, 0x94, 0x72, 0xa6,
791	0x0b, 0xbe, 0x9f, 0xbf, 0xc3, 0xe2, 0x81, 0xac, 0x8c, 0x93, 0x9b, 0xf1, 0x8d, 0xf6, 0xe4, 0xb7,
792	0xdf, 0x9f, 0xea, 0x4f, 0x34, 0xe3, 0x46, 0xfc, 0x6c, 0x3b, 0x91, 0xb5, 0xf9, 0x38, 0xbd, 0x1d,
793	0x57, 0x4c, 0x8f, 0xda, 0xf2, 0x19, 0x66, 0xae, 0x8c, 0xbc, 0x11, 0xb7, 0x54, 0x9b, 0x1e, 0x7c,
794	0x62, 0x6c, 0xe6, 0x40, 0x24, 0x17, 0x6b, 0x31, 0x00, 0xfc, 0x5e, 0x07, 0xa5, 0x9c, 0xa1, 0x2a,
795	0x92, 0xa3, 0x78, 0x0e, 0xc7, 0x93, 0xe3, 0x99, 0x94, 0xe3, 0x3b, 0xad, 0x72, 0x53, 0xe6, 0x22,
796	0x96, 0x6b, 0xf1, 0x74, 0xe4, 0x68, 0x32, 0xf2, 0x91, 0xb0, 0x72, 0x9a, 0xaa, 0xb2, 0x5b, 0xf9,
797	0xa8, 0x08, 0x29, 0x95, 0xe6, 0x1c, 0x1c, 0xf8, 0xb7, 0x06, 0x5e, 0x1f, 0x75, 0xae, 0xc1, 0xcd,
798	0xfc, 0xfc, 0x0a, 0xce, 0xc1, 0xf1, 0x64, 0x39, 0x16, 0xaa, 0x30, 0x28, 0x7b, 0x64, 0x7c, 0x35,
799	0x0e, 0x6e, 0xc0, 0xcd, 0x91, 0xa1, 0xe7, 0xa5, 0x0f, 0xbf, 0xd6, 0x41, 0x29, 0x67, 0xbc, 0x8b,
800	0x7a, 0xa2, 0xf8, 0x14, 0xab, 0x7c, 0x70, 0x81, 0x48, 0x79, 0x96, 0x9c, 0x91, 0x62, 0xfc, 0x71,
801	0x49, 0xa5, 0x18, 0x77, 0x4c, 0xe0, 0x1f, 0x1a, 0x28, 0xe5, 0xdc, 0x03, 0x45, 0x52, 0x14, 0x5f,
802	0x1d, 0x95, 0x37, 0x87, 0x1e, 0x69, 0xb7, 0xe2, 0x4f, 0x9f, 0x24, 0xcf, 0x95, 0x8b, 0x97, 0x7c,
803	0xe5, 0x62, 0x25, 0xaf, 0x7c, 0xf6, 0x4b, 0xbd, 0x94, 0x73, 0x9b, 0xfc, 0x5a, 0xaf, 0x75, 0x38,
804	0x0f, 0xa3, 0x2d, 0xd3, 0xec, 0xf5, 0x7a, 0x67, 0xaf, 0x1a, 0xd4, 0xe5, 0x1d, 0xf9, 0x29, 0xfa,
805	0x6e, 0xe8, 0x21, 0xde, 0xa6, 0xcc, 0x6f, 0x3c, 0x06, 0x8b, 0x36, 0xf5, 0x73, 0xd5, 0x69, 0x94,
806	0x47, 0xd4, 0xba, 0x19, 0x2b, 0xd1, 0xd4, 0x0e, 0x3e, 0x55, 0x51, 0x2e, 0xf5, 0x50, 0xe0, 0xd6,
807	0x28, 0x73, 0x4d, 0x17, 0x07, 0x42, 0x27, 0x73, 0x40, 0x3d, 0xfc, 0xf1, 0xfb, 0x61, 0xf2, 0xfb,
808	0x70, 0x4a, 0x38, 0x6f, 0xfc, 0x17, 0x00, 0x00, 0xff, 0xff, 0xa1, 0x94, 0xa6, 0xdd, 0x28, 0x0f,
809	0x00, 0x00,
810}
811
812// Reference imports to suppress errors if they are not otherwise used.
813var _ context.Context
814var _ grpc.ClientConn
815
816// This is a compile-time assertion to ensure that this generated file
817// is compatible with the grpc package it is being compiled against.
818const _ = grpc.SupportPackageIsVersion4
819
820// AutoscalingPolicyServiceClient is the client API for AutoscalingPolicyService service.
821//
822// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
823type AutoscalingPolicyServiceClient interface {
824	// Creates new autoscaling policy.
825	CreateAutoscalingPolicy(ctx context.Context, in *CreateAutoscalingPolicyRequest, opts ...grpc.CallOption) (*AutoscalingPolicy, error)
826	// Updates (replaces) autoscaling policy.
827	//
828	// Disabled check for update_mask, because all updates will be full
829	// replacements.
830	UpdateAutoscalingPolicy(ctx context.Context, in *UpdateAutoscalingPolicyRequest, opts ...grpc.CallOption) (*AutoscalingPolicy, error)
831	// Retrieves autoscaling policy.
832	GetAutoscalingPolicy(ctx context.Context, in *GetAutoscalingPolicyRequest, opts ...grpc.CallOption) (*AutoscalingPolicy, error)
833	// Lists autoscaling policies in the project.
834	ListAutoscalingPolicies(ctx context.Context, in *ListAutoscalingPoliciesRequest, opts ...grpc.CallOption) (*ListAutoscalingPoliciesResponse, error)
835	// Deletes an autoscaling policy. It is an error to delete an autoscaling
836	// policy that is in use by one or more clusters.
837	DeleteAutoscalingPolicy(ctx context.Context, in *DeleteAutoscalingPolicyRequest, opts ...grpc.CallOption) (*empty.Empty, error)
838}
839
840type autoscalingPolicyServiceClient struct {
841	cc *grpc.ClientConn
842}
843
844func NewAutoscalingPolicyServiceClient(cc *grpc.ClientConn) AutoscalingPolicyServiceClient {
845	return &autoscalingPolicyServiceClient{cc}
846}
847
848func (c *autoscalingPolicyServiceClient) CreateAutoscalingPolicy(ctx context.Context, in *CreateAutoscalingPolicyRequest, opts ...grpc.CallOption) (*AutoscalingPolicy, error) {
849	out := new(AutoscalingPolicy)
850	err := c.cc.Invoke(ctx, "/google.cloud.dataproc.v1.AutoscalingPolicyService/CreateAutoscalingPolicy", in, out, opts...)
851	if err != nil {
852		return nil, err
853	}
854	return out, nil
855}
856
857func (c *autoscalingPolicyServiceClient) UpdateAutoscalingPolicy(ctx context.Context, in *UpdateAutoscalingPolicyRequest, opts ...grpc.CallOption) (*AutoscalingPolicy, error) {
858	out := new(AutoscalingPolicy)
859	err := c.cc.Invoke(ctx, "/google.cloud.dataproc.v1.AutoscalingPolicyService/UpdateAutoscalingPolicy", in, out, opts...)
860	if err != nil {
861		return nil, err
862	}
863	return out, nil
864}
865
866func (c *autoscalingPolicyServiceClient) GetAutoscalingPolicy(ctx context.Context, in *GetAutoscalingPolicyRequest, opts ...grpc.CallOption) (*AutoscalingPolicy, error) {
867	out := new(AutoscalingPolicy)
868	err := c.cc.Invoke(ctx, "/google.cloud.dataproc.v1.AutoscalingPolicyService/GetAutoscalingPolicy", in, out, opts...)
869	if err != nil {
870		return nil, err
871	}
872	return out, nil
873}
874
875func (c *autoscalingPolicyServiceClient) ListAutoscalingPolicies(ctx context.Context, in *ListAutoscalingPoliciesRequest, opts ...grpc.CallOption) (*ListAutoscalingPoliciesResponse, error) {
876	out := new(ListAutoscalingPoliciesResponse)
877	err := c.cc.Invoke(ctx, "/google.cloud.dataproc.v1.AutoscalingPolicyService/ListAutoscalingPolicies", in, out, opts...)
878	if err != nil {
879		return nil, err
880	}
881	return out, nil
882}
883
884func (c *autoscalingPolicyServiceClient) DeleteAutoscalingPolicy(ctx context.Context, in *DeleteAutoscalingPolicyRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
885	out := new(empty.Empty)
886	err := c.cc.Invoke(ctx, "/google.cloud.dataproc.v1.AutoscalingPolicyService/DeleteAutoscalingPolicy", in, out, opts...)
887	if err != nil {
888		return nil, err
889	}
890	return out, nil
891}
892
893// AutoscalingPolicyServiceServer is the server API for AutoscalingPolicyService service.
894type AutoscalingPolicyServiceServer interface {
895	// Creates new autoscaling policy.
896	CreateAutoscalingPolicy(context.Context, *CreateAutoscalingPolicyRequest) (*AutoscalingPolicy, error)
897	// Updates (replaces) autoscaling policy.
898	//
899	// Disabled check for update_mask, because all updates will be full
900	// replacements.
901	UpdateAutoscalingPolicy(context.Context, *UpdateAutoscalingPolicyRequest) (*AutoscalingPolicy, error)
902	// Retrieves autoscaling policy.
903	GetAutoscalingPolicy(context.Context, *GetAutoscalingPolicyRequest) (*AutoscalingPolicy, error)
904	// Lists autoscaling policies in the project.
905	ListAutoscalingPolicies(context.Context, *ListAutoscalingPoliciesRequest) (*ListAutoscalingPoliciesResponse, error)
906	// Deletes an autoscaling policy. It is an error to delete an autoscaling
907	// policy that is in use by one or more clusters.
908	DeleteAutoscalingPolicy(context.Context, *DeleteAutoscalingPolicyRequest) (*empty.Empty, error)
909}
910
911// UnimplementedAutoscalingPolicyServiceServer can be embedded to have forward compatible implementations.
912type UnimplementedAutoscalingPolicyServiceServer struct {
913}
914
915func (*UnimplementedAutoscalingPolicyServiceServer) CreateAutoscalingPolicy(ctx context.Context, req *CreateAutoscalingPolicyRequest) (*AutoscalingPolicy, error) {
916	return nil, status.Errorf(codes.Unimplemented, "method CreateAutoscalingPolicy not implemented")
917}
918func (*UnimplementedAutoscalingPolicyServiceServer) UpdateAutoscalingPolicy(ctx context.Context, req *UpdateAutoscalingPolicyRequest) (*AutoscalingPolicy, error) {
919	return nil, status.Errorf(codes.Unimplemented, "method UpdateAutoscalingPolicy not implemented")
920}
921func (*UnimplementedAutoscalingPolicyServiceServer) GetAutoscalingPolicy(ctx context.Context, req *GetAutoscalingPolicyRequest) (*AutoscalingPolicy, error) {
922	return nil, status.Errorf(codes.Unimplemented, "method GetAutoscalingPolicy not implemented")
923}
924func (*UnimplementedAutoscalingPolicyServiceServer) ListAutoscalingPolicies(ctx context.Context, req *ListAutoscalingPoliciesRequest) (*ListAutoscalingPoliciesResponse, error) {
925	return nil, status.Errorf(codes.Unimplemented, "method ListAutoscalingPolicies not implemented")
926}
927func (*UnimplementedAutoscalingPolicyServiceServer) DeleteAutoscalingPolicy(ctx context.Context, req *DeleteAutoscalingPolicyRequest) (*empty.Empty, error) {
928	return nil, status.Errorf(codes.Unimplemented, "method DeleteAutoscalingPolicy not implemented")
929}
930
931func RegisterAutoscalingPolicyServiceServer(s *grpc.Server, srv AutoscalingPolicyServiceServer) {
932	s.RegisterService(&_AutoscalingPolicyService_serviceDesc, srv)
933}
934
935func _AutoscalingPolicyService_CreateAutoscalingPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
936	in := new(CreateAutoscalingPolicyRequest)
937	if err := dec(in); err != nil {
938		return nil, err
939	}
940	if interceptor == nil {
941		return srv.(AutoscalingPolicyServiceServer).CreateAutoscalingPolicy(ctx, in)
942	}
943	info := &grpc.UnaryServerInfo{
944		Server:     srv,
945		FullMethod: "/google.cloud.dataproc.v1.AutoscalingPolicyService/CreateAutoscalingPolicy",
946	}
947	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
948		return srv.(AutoscalingPolicyServiceServer).CreateAutoscalingPolicy(ctx, req.(*CreateAutoscalingPolicyRequest))
949	}
950	return interceptor(ctx, in, info, handler)
951}
952
953func _AutoscalingPolicyService_UpdateAutoscalingPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
954	in := new(UpdateAutoscalingPolicyRequest)
955	if err := dec(in); err != nil {
956		return nil, err
957	}
958	if interceptor == nil {
959		return srv.(AutoscalingPolicyServiceServer).UpdateAutoscalingPolicy(ctx, in)
960	}
961	info := &grpc.UnaryServerInfo{
962		Server:     srv,
963		FullMethod: "/google.cloud.dataproc.v1.AutoscalingPolicyService/UpdateAutoscalingPolicy",
964	}
965	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
966		return srv.(AutoscalingPolicyServiceServer).UpdateAutoscalingPolicy(ctx, req.(*UpdateAutoscalingPolicyRequest))
967	}
968	return interceptor(ctx, in, info, handler)
969}
970
971func _AutoscalingPolicyService_GetAutoscalingPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
972	in := new(GetAutoscalingPolicyRequest)
973	if err := dec(in); err != nil {
974		return nil, err
975	}
976	if interceptor == nil {
977		return srv.(AutoscalingPolicyServiceServer).GetAutoscalingPolicy(ctx, in)
978	}
979	info := &grpc.UnaryServerInfo{
980		Server:     srv,
981		FullMethod: "/google.cloud.dataproc.v1.AutoscalingPolicyService/GetAutoscalingPolicy",
982	}
983	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
984		return srv.(AutoscalingPolicyServiceServer).GetAutoscalingPolicy(ctx, req.(*GetAutoscalingPolicyRequest))
985	}
986	return interceptor(ctx, in, info, handler)
987}
988
989func _AutoscalingPolicyService_ListAutoscalingPolicies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
990	in := new(ListAutoscalingPoliciesRequest)
991	if err := dec(in); err != nil {
992		return nil, err
993	}
994	if interceptor == nil {
995		return srv.(AutoscalingPolicyServiceServer).ListAutoscalingPolicies(ctx, in)
996	}
997	info := &grpc.UnaryServerInfo{
998		Server:     srv,
999		FullMethod: "/google.cloud.dataproc.v1.AutoscalingPolicyService/ListAutoscalingPolicies",
1000	}
1001	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1002		return srv.(AutoscalingPolicyServiceServer).ListAutoscalingPolicies(ctx, req.(*ListAutoscalingPoliciesRequest))
1003	}
1004	return interceptor(ctx, in, info, handler)
1005}
1006
1007func _AutoscalingPolicyService_DeleteAutoscalingPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1008	in := new(DeleteAutoscalingPolicyRequest)
1009	if err := dec(in); err != nil {
1010		return nil, err
1011	}
1012	if interceptor == nil {
1013		return srv.(AutoscalingPolicyServiceServer).DeleteAutoscalingPolicy(ctx, in)
1014	}
1015	info := &grpc.UnaryServerInfo{
1016		Server:     srv,
1017		FullMethod: "/google.cloud.dataproc.v1.AutoscalingPolicyService/DeleteAutoscalingPolicy",
1018	}
1019	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1020		return srv.(AutoscalingPolicyServiceServer).DeleteAutoscalingPolicy(ctx, req.(*DeleteAutoscalingPolicyRequest))
1021	}
1022	return interceptor(ctx, in, info, handler)
1023}
1024
1025var _AutoscalingPolicyService_serviceDesc = grpc.ServiceDesc{
1026	ServiceName: "google.cloud.dataproc.v1.AutoscalingPolicyService",
1027	HandlerType: (*AutoscalingPolicyServiceServer)(nil),
1028	Methods: []grpc.MethodDesc{
1029		{
1030			MethodName: "CreateAutoscalingPolicy",
1031			Handler:    _AutoscalingPolicyService_CreateAutoscalingPolicy_Handler,
1032		},
1033		{
1034			MethodName: "UpdateAutoscalingPolicy",
1035			Handler:    _AutoscalingPolicyService_UpdateAutoscalingPolicy_Handler,
1036		},
1037		{
1038			MethodName: "GetAutoscalingPolicy",
1039			Handler:    _AutoscalingPolicyService_GetAutoscalingPolicy_Handler,
1040		},
1041		{
1042			MethodName: "ListAutoscalingPolicies",
1043			Handler:    _AutoscalingPolicyService_ListAutoscalingPolicies_Handler,
1044		},
1045		{
1046			MethodName: "DeleteAutoscalingPolicy",
1047			Handler:    _AutoscalingPolicyService_DeleteAutoscalingPolicy_Handler,
1048		},
1049	},
1050	Streams:  []grpc.StreamDesc{},
1051	Metadata: "google/cloud/dataproc/v1/autoscaling_policies.proto",
1052}
1053