1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/cloud/dataproc/v1/operations.proto
3
4package dataproc
5
6import (
7	fmt "fmt"
8	math "math"
9
10	proto "github.com/golang/protobuf/proto"
11	timestamp "github.com/golang/protobuf/ptypes/timestamp"
12	_ "google.golang.org/genproto/googleapis/api/annotations"
13)
14
15// Reference imports to suppress errors if they are not otherwise used.
16var _ = proto.Marshal
17var _ = fmt.Errorf
18var _ = math.Inf
19
20// This is a compile-time assertion to ensure that this generated file
21// is compatible with the proto package it is being compiled against.
22// A compilation error at this line likely means your copy of the
23// proto package needs to be updated.
24const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
25
26// The operation state.
27type ClusterOperationStatus_State int32
28
29const (
30	// Unused.
31	ClusterOperationStatus_UNKNOWN ClusterOperationStatus_State = 0
32	// The operation has been created.
33	ClusterOperationStatus_PENDING ClusterOperationStatus_State = 1
34	// The operation is running.
35	ClusterOperationStatus_RUNNING ClusterOperationStatus_State = 2
36	// The operation is done; either cancelled or completed.
37	ClusterOperationStatus_DONE ClusterOperationStatus_State = 3
38)
39
40var ClusterOperationStatus_State_name = map[int32]string{
41	0: "UNKNOWN",
42	1: "PENDING",
43	2: "RUNNING",
44	3: "DONE",
45}
46
47var ClusterOperationStatus_State_value = map[string]int32{
48	"UNKNOWN": 0,
49	"PENDING": 1,
50	"RUNNING": 2,
51	"DONE":    3,
52}
53
54func (x ClusterOperationStatus_State) String() string {
55	return proto.EnumName(ClusterOperationStatus_State_name, int32(x))
56}
57
58func (ClusterOperationStatus_State) EnumDescriptor() ([]byte, []int) {
59	return fileDescriptor_78b4f56947714756, []int{0, 0}
60}
61
62// The status of the operation.
63type ClusterOperationStatus struct {
64	// Output only. A message containing the operation state.
65	State ClusterOperationStatus_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.dataproc.v1.ClusterOperationStatus_State" json:"state,omitempty"`
66	// Output only. A message containing the detailed operation state.
67	InnerState string `protobuf:"bytes,2,opt,name=inner_state,json=innerState,proto3" json:"inner_state,omitempty"`
68	// Output only. A message containing any operation metadata details.
69	Details string `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"`
70	// Output only. The time this state was entered.
71	StateStartTime       *timestamp.Timestamp `protobuf:"bytes,4,opt,name=state_start_time,json=stateStartTime,proto3" json:"state_start_time,omitempty"`
72	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
73	XXX_unrecognized     []byte               `json:"-"`
74	XXX_sizecache        int32                `json:"-"`
75}
76
77func (m *ClusterOperationStatus) Reset()         { *m = ClusterOperationStatus{} }
78func (m *ClusterOperationStatus) String() string { return proto.CompactTextString(m) }
79func (*ClusterOperationStatus) ProtoMessage()    {}
80func (*ClusterOperationStatus) Descriptor() ([]byte, []int) {
81	return fileDescriptor_78b4f56947714756, []int{0}
82}
83
84func (m *ClusterOperationStatus) XXX_Unmarshal(b []byte) error {
85	return xxx_messageInfo_ClusterOperationStatus.Unmarshal(m, b)
86}
87func (m *ClusterOperationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
88	return xxx_messageInfo_ClusterOperationStatus.Marshal(b, m, deterministic)
89}
90func (m *ClusterOperationStatus) XXX_Merge(src proto.Message) {
91	xxx_messageInfo_ClusterOperationStatus.Merge(m, src)
92}
93func (m *ClusterOperationStatus) XXX_Size() int {
94	return xxx_messageInfo_ClusterOperationStatus.Size(m)
95}
96func (m *ClusterOperationStatus) XXX_DiscardUnknown() {
97	xxx_messageInfo_ClusterOperationStatus.DiscardUnknown(m)
98}
99
100var xxx_messageInfo_ClusterOperationStatus proto.InternalMessageInfo
101
102func (m *ClusterOperationStatus) GetState() ClusterOperationStatus_State {
103	if m != nil {
104		return m.State
105	}
106	return ClusterOperationStatus_UNKNOWN
107}
108
109func (m *ClusterOperationStatus) GetInnerState() string {
110	if m != nil {
111		return m.InnerState
112	}
113	return ""
114}
115
116func (m *ClusterOperationStatus) GetDetails() string {
117	if m != nil {
118		return m.Details
119	}
120	return ""
121}
122
123func (m *ClusterOperationStatus) GetStateStartTime() *timestamp.Timestamp {
124	if m != nil {
125		return m.StateStartTime
126	}
127	return nil
128}
129
130// Metadata describing the operation.
131type ClusterOperationMetadata struct {
132	// Output only. Name of the cluster for the operation.
133	ClusterName string `protobuf:"bytes,7,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"`
134	// Output only. Cluster UUID for the operation.
135	ClusterUuid string `protobuf:"bytes,8,opt,name=cluster_uuid,json=clusterUuid,proto3" json:"cluster_uuid,omitempty"`
136	// Output only. Current operation status.
137	Status *ClusterOperationStatus `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"`
138	// Output only. The previous operation status.
139	StatusHistory []*ClusterOperationStatus `protobuf:"bytes,10,rep,name=status_history,json=statusHistory,proto3" json:"status_history,omitempty"`
140	// Output only. The operation type.
141	OperationType string `protobuf:"bytes,11,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"`
142	// Output only. Short description of operation.
143	Description string `protobuf:"bytes,12,opt,name=description,proto3" json:"description,omitempty"`
144	// Output only. Labels associated with the operation
145	Labels map[string]string `protobuf:"bytes,13,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
146	// Output only. Errors encountered during operation execution.
147	Warnings             []string `protobuf:"bytes,14,rep,name=warnings,proto3" json:"warnings,omitempty"`
148	XXX_NoUnkeyedLiteral struct{} `json:"-"`
149	XXX_unrecognized     []byte   `json:"-"`
150	XXX_sizecache        int32    `json:"-"`
151}
152
153func (m *ClusterOperationMetadata) Reset()         { *m = ClusterOperationMetadata{} }
154func (m *ClusterOperationMetadata) String() string { return proto.CompactTextString(m) }
155func (*ClusterOperationMetadata) ProtoMessage()    {}
156func (*ClusterOperationMetadata) Descriptor() ([]byte, []int) {
157	return fileDescriptor_78b4f56947714756, []int{1}
158}
159
160func (m *ClusterOperationMetadata) XXX_Unmarshal(b []byte) error {
161	return xxx_messageInfo_ClusterOperationMetadata.Unmarshal(m, b)
162}
163func (m *ClusterOperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
164	return xxx_messageInfo_ClusterOperationMetadata.Marshal(b, m, deterministic)
165}
166func (m *ClusterOperationMetadata) XXX_Merge(src proto.Message) {
167	xxx_messageInfo_ClusterOperationMetadata.Merge(m, src)
168}
169func (m *ClusterOperationMetadata) XXX_Size() int {
170	return xxx_messageInfo_ClusterOperationMetadata.Size(m)
171}
172func (m *ClusterOperationMetadata) XXX_DiscardUnknown() {
173	xxx_messageInfo_ClusterOperationMetadata.DiscardUnknown(m)
174}
175
176var xxx_messageInfo_ClusterOperationMetadata proto.InternalMessageInfo
177
178func (m *ClusterOperationMetadata) GetClusterName() string {
179	if m != nil {
180		return m.ClusterName
181	}
182	return ""
183}
184
185func (m *ClusterOperationMetadata) GetClusterUuid() string {
186	if m != nil {
187		return m.ClusterUuid
188	}
189	return ""
190}
191
192func (m *ClusterOperationMetadata) GetStatus() *ClusterOperationStatus {
193	if m != nil {
194		return m.Status
195	}
196	return nil
197}
198
199func (m *ClusterOperationMetadata) GetStatusHistory() []*ClusterOperationStatus {
200	if m != nil {
201		return m.StatusHistory
202	}
203	return nil
204}
205
206func (m *ClusterOperationMetadata) GetOperationType() string {
207	if m != nil {
208		return m.OperationType
209	}
210	return ""
211}
212
213func (m *ClusterOperationMetadata) GetDescription() string {
214	if m != nil {
215		return m.Description
216	}
217	return ""
218}
219
220func (m *ClusterOperationMetadata) GetLabels() map[string]string {
221	if m != nil {
222		return m.Labels
223	}
224	return nil
225}
226
227func (m *ClusterOperationMetadata) GetWarnings() []string {
228	if m != nil {
229		return m.Warnings
230	}
231	return nil
232}
233
234func init() {
235	proto.RegisterEnum("google.cloud.dataproc.v1.ClusterOperationStatus_State", ClusterOperationStatus_State_name, ClusterOperationStatus_State_value)
236	proto.RegisterType((*ClusterOperationStatus)(nil), "google.cloud.dataproc.v1.ClusterOperationStatus")
237	proto.RegisterType((*ClusterOperationMetadata)(nil), "google.cloud.dataproc.v1.ClusterOperationMetadata")
238	proto.RegisterMapType((map[string]string)(nil), "google.cloud.dataproc.v1.ClusterOperationMetadata.LabelsEntry")
239}
240
241func init() {
242	proto.RegisterFile("google/cloud/dataproc/v1/operations.proto", fileDescriptor_78b4f56947714756)
243}
244
245var fileDescriptor_78b4f56947714756 = []byte{
246	// 531 bytes of a gzipped FileDescriptorProto
247	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0x5d, 0x8b, 0xd3, 0x40,
248	0x14, 0x35, 0xcd, 0xee, 0xb6, 0xbd, 0xd9, 0xd6, 0x32, 0x88, 0x0c, 0x65, 0x61, 0x63, 0x41, 0xa8,
249	0x2f, 0x89, 0xbb, 0x82, 0xac, 0x0a, 0x22, 0x6b, 0x8b, 0x2b, 0xae, 0x69, 0xc9, 0x6e, 0x5d, 0xf0,
250	0xa5, 0x4c, 0x9b, 0x31, 0x06, 0xd3, 0x99, 0x30, 0x33, 0xa9, 0xf4, 0xe7, 0xf8, 0x3b, 0x7d, 0x91,
251	0x99, 0x49, 0x4a, 0xfd, 0x58, 0x50, 0x9f, 0x3a, 0xf7, 0xde, 0x73, 0x4e, 0xce, 0xb9, 0xdc, 0xc2,
252	0xa3, 0x94, 0xf3, 0x34, 0xa7, 0xe1, 0x32, 0xe7, 0x65, 0x12, 0x26, 0x44, 0x91, 0x42, 0xf0, 0x65,
253	0xb8, 0x3e, 0x09, 0x79, 0x41, 0x05, 0x51, 0x19, 0x67, 0x32, 0x28, 0x04, 0x57, 0x1c, 0x61, 0x0b,
254	0x0d, 0x0c, 0x34, 0xa8, 0xa1, 0xc1, 0xfa, 0xa4, 0x7f, 0x54, 0x89, 0x90, 0x22, 0x0b, 0x09, 0x63,
255	0x5c, 0xed, 0xf2, 0xfa, 0xc7, 0xd5, 0xd4, 0x54, 0x8b, 0xf2, 0x53, 0xa8, 0xb2, 0x15, 0x95, 0x8a,
256	0xac, 0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 0x48, 0x91, 0xc9, 0xdf, 0xff, 0xf7, 0x2f, 0xea,
279	0xf7, 0xe2, 0xc0, 0x80, 0x9f, 0xfc, 0x08, 0x00, 0x00, 0xff, 0xff, 0xad, 0xc8, 0x5f, 0xe0, 0x23,
280	0x04, 0x00, 0x00,
281}
282