1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/cloud/talent/v4beta1/batch.proto
3
4package talent
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	status "google.golang.org/genproto/googleapis/rpc/status"
14)
15
16// Reference imports to suppress errors if they are not otherwise used.
17var _ = proto.Marshal
18var _ = fmt.Errorf
19var _ = math.Inf
20
21// This is a compile-time assertion to ensure that this generated file
22// is compatible with the proto package it is being compiled against.
23// A compilation error at this line likely means your copy of the
24// proto package needs to be updated.
25const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
26
27type BatchOperationMetadata_State int32
28
29const (
30	// Default value.
31	BatchOperationMetadata_STATE_UNSPECIFIED BatchOperationMetadata_State = 0
32	// The batch operation is being prepared for processing.
33	BatchOperationMetadata_INITIALIZING BatchOperationMetadata_State = 1
34	// The batch operation is actively being processed.
35	BatchOperationMetadata_PROCESSING BatchOperationMetadata_State = 2
36	// The batch operation is processed, and at least one item has been
37	// successfully processed.
38	BatchOperationMetadata_SUCCEEDED BatchOperationMetadata_State = 3
39	// The batch operation is done and no item has been successfully processed.
40	BatchOperationMetadata_FAILED BatchOperationMetadata_State = 4
41	// The batch operation is in the process of cancelling after
42	// [google.longrunning.Operations.CancelOperation][google.longrunning.Operations.CancelOperation]
43	// is called.
44	BatchOperationMetadata_CANCELLING BatchOperationMetadata_State = 5
45	// The batch operation is done after
46	// [google.longrunning.Operations.CancelOperation][google.longrunning.Operations.CancelOperation]
47	// is called. Any items processed before cancelling are returned in the
48	// response.
49	BatchOperationMetadata_CANCELLED BatchOperationMetadata_State = 6
50)
51
52var BatchOperationMetadata_State_name = map[int32]string{
53	0: "STATE_UNSPECIFIED",
54	1: "INITIALIZING",
55	2: "PROCESSING",
56	3: "SUCCEEDED",
57	4: "FAILED",
58	5: "CANCELLING",
59	6: "CANCELLED",
60}
61
62var BatchOperationMetadata_State_value = map[string]int32{
63	"STATE_UNSPECIFIED": 0,
64	"INITIALIZING":      1,
65	"PROCESSING":        2,
66	"SUCCEEDED":         3,
67	"FAILED":            4,
68	"CANCELLING":        5,
69	"CANCELLED":         6,
70}
71
72func (x BatchOperationMetadata_State) String() string {
73	return proto.EnumName(BatchOperationMetadata_State_name, int32(x))
74}
75
76func (BatchOperationMetadata_State) EnumDescriptor() ([]byte, []int) {
77	return fileDescriptor_b52f05e5c2b02efe, []int{0, 0}
78}
79
80// Output only.
81//
82// Metadata used for long running operations returned by CTS batch APIs.
83// It's used to replace
84// [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata].
85type BatchOperationMetadata struct {
86	// The state of a long running operation.
87	State BatchOperationMetadata_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.talent.v4beta1.BatchOperationMetadata_State" json:"state,omitempty"`
88	// More detailed information about operation state.
89	StateDescription string `protobuf:"bytes,2,opt,name=state_description,json=stateDescription,proto3" json:"state_description,omitempty"`
90	// Count of successful item(s) inside an operation.
91	SuccessCount int32 `protobuf:"varint,3,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"`
92	// Count of failed item(s) inside an operation.
93	FailureCount int32 `protobuf:"varint,4,opt,name=failure_count,json=failureCount,proto3" json:"failure_count,omitempty"`
94	// Count of total item(s) inside an operation.
95	TotalCount int32 `protobuf:"varint,5,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
96	// The time when the batch operation is created.
97	CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
98	// The time when the batch operation status is updated. The metadata and the
99	// [update_time][google.cloud.talent.v4beta1.BatchOperationMetadata.update_time]
100	// is refreshed every minute otherwise cached data is returned.
101	UpdateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
102	// The time when the batch operation is finished and
103	// [google.longrunning.Operation.done][google.longrunning.Operation.done] is
104	// set to `true`.
105	EndTime              *timestamp.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
106	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
107	XXX_unrecognized     []byte               `json:"-"`
108	XXX_sizecache        int32                `json:"-"`
109}
110
111func (m *BatchOperationMetadata) Reset()         { *m = BatchOperationMetadata{} }
112func (m *BatchOperationMetadata) String() string { return proto.CompactTextString(m) }
113func (*BatchOperationMetadata) ProtoMessage()    {}
114func (*BatchOperationMetadata) Descriptor() ([]byte, []int) {
115	return fileDescriptor_b52f05e5c2b02efe, []int{0}
116}
117
118func (m *BatchOperationMetadata) XXX_Unmarshal(b []byte) error {
119	return xxx_messageInfo_BatchOperationMetadata.Unmarshal(m, b)
120}
121func (m *BatchOperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
122	return xxx_messageInfo_BatchOperationMetadata.Marshal(b, m, deterministic)
123}
124func (m *BatchOperationMetadata) XXX_Merge(src proto.Message) {
125	xxx_messageInfo_BatchOperationMetadata.Merge(m, src)
126}
127func (m *BatchOperationMetadata) XXX_Size() int {
128	return xxx_messageInfo_BatchOperationMetadata.Size(m)
129}
130func (m *BatchOperationMetadata) XXX_DiscardUnknown() {
131	xxx_messageInfo_BatchOperationMetadata.DiscardUnknown(m)
132}
133
134var xxx_messageInfo_BatchOperationMetadata proto.InternalMessageInfo
135
136func (m *BatchOperationMetadata) GetState() BatchOperationMetadata_State {
137	if m != nil {
138		return m.State
139	}
140	return BatchOperationMetadata_STATE_UNSPECIFIED
141}
142
143func (m *BatchOperationMetadata) GetStateDescription() string {
144	if m != nil {
145		return m.StateDescription
146	}
147	return ""
148}
149
150func (m *BatchOperationMetadata) GetSuccessCount() int32 {
151	if m != nil {
152		return m.SuccessCount
153	}
154	return 0
155}
156
157func (m *BatchOperationMetadata) GetFailureCount() int32 {
158	if m != nil {
159		return m.FailureCount
160	}
161	return 0
162}
163
164func (m *BatchOperationMetadata) GetTotalCount() int32 {
165	if m != nil {
166		return m.TotalCount
167	}
168	return 0
169}
170
171func (m *BatchOperationMetadata) GetCreateTime() *timestamp.Timestamp {
172	if m != nil {
173		return m.CreateTime
174	}
175	return nil
176}
177
178func (m *BatchOperationMetadata) GetUpdateTime() *timestamp.Timestamp {
179	if m != nil {
180		return m.UpdateTime
181	}
182	return nil
183}
184
185func (m *BatchOperationMetadata) GetEndTime() *timestamp.Timestamp {
186	if m != nil {
187		return m.EndTime
188	}
189	return nil
190}
191
192// Output only.
193//
194// The result of
195// [JobService.BatchCreateJobs][google.cloud.talent.v4beta1.JobService.BatchCreateJobs]
196// or
197// [JobService.BatchUpdateJobs][google.cloud.talent.v4beta1.JobService.BatchUpdateJobs]
198// APIs. It's used to replace
199// [google.longrunning.Operation.response][google.longrunning.Operation.response]
200// in case of success.
201type JobOperationResult struct {
202	// List of job mutation results from a batch mutate operation. It can change
203	// until operation status is FINISHED, FAILED or CANCELLED.
204	JobResults           []*JobOperationResult_JobResult `protobuf:"bytes,1,rep,name=job_results,json=jobResults,proto3" json:"job_results,omitempty"`
205	XXX_NoUnkeyedLiteral struct{}                        `json:"-"`
206	XXX_unrecognized     []byte                          `json:"-"`
207	XXX_sizecache        int32                           `json:"-"`
208}
209
210func (m *JobOperationResult) Reset()         { *m = JobOperationResult{} }
211func (m *JobOperationResult) String() string { return proto.CompactTextString(m) }
212func (*JobOperationResult) ProtoMessage()    {}
213func (*JobOperationResult) Descriptor() ([]byte, []int) {
214	return fileDescriptor_b52f05e5c2b02efe, []int{1}
215}
216
217func (m *JobOperationResult) XXX_Unmarshal(b []byte) error {
218	return xxx_messageInfo_JobOperationResult.Unmarshal(m, b)
219}
220func (m *JobOperationResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
221	return xxx_messageInfo_JobOperationResult.Marshal(b, m, deterministic)
222}
223func (m *JobOperationResult) XXX_Merge(src proto.Message) {
224	xxx_messageInfo_JobOperationResult.Merge(m, src)
225}
226func (m *JobOperationResult) XXX_Size() int {
227	return xxx_messageInfo_JobOperationResult.Size(m)
228}
229func (m *JobOperationResult) XXX_DiscardUnknown() {
230	xxx_messageInfo_JobOperationResult.DiscardUnknown(m)
231}
232
233var xxx_messageInfo_JobOperationResult proto.InternalMessageInfo
234
235func (m *JobOperationResult) GetJobResults() []*JobOperationResult_JobResult {
236	if m != nil {
237		return m.JobResults
238	}
239	return nil
240}
241
242// Mutation result of a job.
243type JobOperationResult_JobResult struct {
244	// Here [Job][google.cloud.talent.v4beta1.Job] only contains basic
245	// information including [name][google.cloud.talent.v4beta1.Job.name],
246	// [company][google.cloud.talent.v4beta1.Job.company],
247	// [language_code][google.cloud.talent.v4beta1.Job.language_code] and
248	// [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], use
249	// getJob method to retrieve detailed information of the created/updated
250	// job.
251	Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"`
252	// The status of the job processed. This field is populated if the
253	// processing of the
254	// [job][google.cloud.talent.v4beta1.JobOperationResult.JobResult.job]
255	// fails.
256	Status               *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
257	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
258	XXX_unrecognized     []byte         `json:"-"`
259	XXX_sizecache        int32          `json:"-"`
260}
261
262func (m *JobOperationResult_JobResult) Reset()         { *m = JobOperationResult_JobResult{} }
263func (m *JobOperationResult_JobResult) String() string { return proto.CompactTextString(m) }
264func (*JobOperationResult_JobResult) ProtoMessage()    {}
265func (*JobOperationResult_JobResult) Descriptor() ([]byte, []int) {
266	return fileDescriptor_b52f05e5c2b02efe, []int{1, 0}
267}
268
269func (m *JobOperationResult_JobResult) XXX_Unmarshal(b []byte) error {
270	return xxx_messageInfo_JobOperationResult_JobResult.Unmarshal(m, b)
271}
272func (m *JobOperationResult_JobResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
273	return xxx_messageInfo_JobOperationResult_JobResult.Marshal(b, m, deterministic)
274}
275func (m *JobOperationResult_JobResult) XXX_Merge(src proto.Message) {
276	xxx_messageInfo_JobOperationResult_JobResult.Merge(m, src)
277}
278func (m *JobOperationResult_JobResult) XXX_Size() int {
279	return xxx_messageInfo_JobOperationResult_JobResult.Size(m)
280}
281func (m *JobOperationResult_JobResult) XXX_DiscardUnknown() {
282	xxx_messageInfo_JobOperationResult_JobResult.DiscardUnknown(m)
283}
284
285var xxx_messageInfo_JobOperationResult_JobResult proto.InternalMessageInfo
286
287func (m *JobOperationResult_JobResult) GetJob() *Job {
288	if m != nil {
289		return m.Job
290	}
291	return nil
292}
293
294func (m *JobOperationResult_JobResult) GetStatus() *status.Status {
295	if m != nil {
296		return m.Status
297	}
298	return nil
299}
300
301func init() {
302	proto.RegisterEnum("google.cloud.talent.v4beta1.BatchOperationMetadata_State", BatchOperationMetadata_State_name, BatchOperationMetadata_State_value)
303	proto.RegisterType((*BatchOperationMetadata)(nil), "google.cloud.talent.v4beta1.BatchOperationMetadata")
304	proto.RegisterType((*JobOperationResult)(nil), "google.cloud.talent.v4beta1.JobOperationResult")
305	proto.RegisterType((*JobOperationResult_JobResult)(nil), "google.cloud.talent.v4beta1.JobOperationResult.JobResult")
306}
307
308func init() {
309	proto.RegisterFile("google/cloud/talent/v4beta1/batch.proto", fileDescriptor_b52f05e5c2b02efe)
310}
311
312var fileDescriptor_b52f05e5c2b02efe = []byte{
313	// 565 bytes of a gzipped FileDescriptorProto
314	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xcf, 0x6e, 0xd3, 0x40,
315	0x10, 0xc6, 0x71, 0xd3, 0xa4, 0xed, 0xb8, 0xad, 0xdc, 0x95, 0x80, 0x28, 0x20, 0xd5, 0x2a, 0x42,
316	0x44, 0x20, 0xd9, 0x22, 0xc0, 0x01, 0xf5, 0x94, 0xda, 0x2e, 0x32, 0x0a, 0x69, 0x64, 0xa7, 0x97,
317	0x5e, 0xa2, 0xb5, 0xbd, 0x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c, 0x7f, 0x3a, 0x7a, 0x01, 0x27, 0xac, 0x4d,
329	0x53, 0xc2, 0xd8, 0x22, 0xa5, 0x6d, 0xc5, 0xfb, 0x1d, 0xdb, 0x18, 0x76, 0xa3, 0x63, 0x2d, 0x7a,
330	0x42, 0x13, 0xd0, 0x3d, 0x2e, 0xca, 0xb6, 0x21, 0x1a, 0xda, 0x57, 0x90, 0x16, 0x15, 0x74, 0x0e,
331	0x26, 0xa7, 0x1c, 0x97, 0x1a, 0xe9, 0x4a, 0x04, 0xa4, 0xa4, 0x80, 0x4b, 0x30, 0xd3, 0x86, 0x88,
332	0x0f, 0x13, 0x6d, 0xeb, 0xf7, 0x6c, 0x63, 0x68, 0x8e, 0x06, 0xeb, 0xe7, 0xae, 0x7b, 0xea, 0xcc,
333	0xd7, 0x3d, 0x8d, 0x40, 0xe1, 0x42, 0x10, 0xe6, 0xb6, 0xce, 0x36, 0xe6, 0x83, 0xdd, 0x66, 0x85,
334	0x4b, 0xf3, 0x07, 0x38, 0x24, 0x55, 0xa6, 0x9c, 0x87, 0x3b, 0x9d, 0x07, 0xa4, 0xca, 0x44, 0x74,
335	0xf1, 0x13, 0xba, 0xb2, 0xb1, 0xe8, 0x31, 0x9c, 0xc5, 0xf3, 0xf1, 0x3c, 0x58, 0xdc, 0x4e, 0xe3,
336	0x59, 0xe0, 0x85, 0xd7, 0x61, 0xe0, 0x5b, 0x8f, 0x90, 0x05, 0xc7, 0xe1, 0x34, 0x9c, 0x87, 0xe3,
337	0x49, 0x78, 0x17, 0x4e, 0x3f, 0x59, 0x06, 0x3a, 0x05, 0x98, 0x45, 0x37, 0x5e, 0x10, 0xc7, 0x22,
338	0xde, 0x43, 0x27, 0x70, 0x14, 0xdf, 0x7a, 0x5e, 0x10, 0xf8, 0x81, 0x6f, 0x75, 0x10, 0x40, 0xef,
339	0x7a, 0x1c, 0x4e, 0x02, 0xdf, 0xda, 0x17, 0xa8, 0x37, 0x9e, 0x7a, 0xc1, 0x64, 0x22, 0xd0, 0xae,
340	0x40, 0x75, 0x1c, 0xf8, 0x56, 0xef, 0xe2, 0x8f, 0x01, 0xe8, 0x33, 0x4d, 0x36, 0xa3, 0x8e, 0x08,
341	0x6b, 0x4b, 0x8e, 0xee, 0xc0, 0x5c, 0xd2, 0x64, 0xd1, 0xc8, 0x88, 0xf5, 0x0d, 0xbb, 0x33, 0x34,
342	0x77, 0xac, 0xcc, 0xff, 0x59, 0x84, 0xa4, 0x4e, 0x11, 0x2c, 0xd7, 0x47, 0x36, 0xf8, 0x06, 0x47,
343	0x9b, 0x0b, 0x34, 0x82, 0xce, 0x92, 0x26, 0x72, 0x27, 0xcd, 0x91, 0xbd, 0xab, 0x40, 0x24, 0x60,
344	0xf4, 0x1a, 0x7a, 0x6a, 0xe9, 0xe5, 0xb6, 0x99, 0x23, 0xb4, 0xb6, 0x35, 0x75, 0x2a, 0x57, 0xb4,
345	0x65, 0x91, 0x26, 0xae, 0x7e, 0xc0, 0x79, 0x4a, 0x57, 0xdb, 0xf2, 0x5e, 0x81, 0x5c, 0xf6, 0x99,
346	0x18, 0xd0, 0xcc, 0xb8, 0x1b, 0x6b, 0x34, 0xa7, 0x25, 0xae, 0x72, 0x87, 0x36, 0xb9, 0x9b, 0x93,
347	0x4a, 0x8e, 0xcf, 0x55, 0x57, 0xb8, 0x2e, 0xd8, 0x83, 0x7f, 0xf0, 0xa5, 0x0a, 0x7f, 0xed, 0x75,
348	0xbc, 0x79, 0x9c, 0xf4, 0xa4, 0xe7, 0xdd, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf9, 0x95, 0x8d,
349	0xe8, 0x58, 0x04, 0x00, 0x00,
350}
351