-
Notifications
You must be signed in to change notification settings - Fork 4
/
master.pb.go
4796 lines (4606 loc) · 115 KB
/
master.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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: master.proto
package tensorflow
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
io "io"
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.GoGoProtoPackageIsVersion2 // please upgrade the proto package
type CreateSessionRequest struct {
// The initial graph definition.
GraphDef *GraphDef `protobuf:"bytes,1,opt,name=graph_def,json=graphDef,proto3" json:"graph_def,omitempty"`
// Configuration options.
Config *ConfigProto `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
// The target string used from the client's perspective.
Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
}
func (m *CreateSessionRequest) Reset() { *m = CreateSessionRequest{} }
func (m *CreateSessionRequest) String() string { return proto.CompactTextString(m) }
func (*CreateSessionRequest) ProtoMessage() {}
func (*CreateSessionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f9c348dec43a6705, []int{0}
}
func (m *CreateSessionRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CreateSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CreateSessionRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *CreateSessionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateSessionRequest.Merge(m, src)
}
func (m *CreateSessionRequest) XXX_Size() int {
return m.Size()
}
func (m *CreateSessionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateSessionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateSessionRequest proto.InternalMessageInfo
func (m *CreateSessionRequest) GetGraphDef() *GraphDef {
if m != nil {
return m.GraphDef
}
return nil
}
func (m *CreateSessionRequest) GetConfig() *ConfigProto {
if m != nil {
return m.Config
}
return nil
}
func (m *CreateSessionRequest) GetTarget() string {
if m != nil {
return m.Target
}
return ""
}
type CreateSessionResponse struct {
// The session handle to be used in subsequent calls for the created session.
//
// The client must arrange to call CloseSession with this returned
// session handle to close the session.
SessionHandle string `protobuf:"bytes,1,opt,name=session_handle,json=sessionHandle,proto3" json:"session_handle,omitempty"`
// The initial version number for the graph, to be used in the next call
// to ExtendSession.
GraphVersion int64 `protobuf:"varint,2,opt,name=graph_version,json=graphVersion,proto3" json:"graph_version,omitempty"`
}
func (m *CreateSessionResponse) Reset() { *m = CreateSessionResponse{} }
func (m *CreateSessionResponse) String() string { return proto.CompactTextString(m) }
func (*CreateSessionResponse) ProtoMessage() {}
func (*CreateSessionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_f9c348dec43a6705, []int{1}
}
func (m *CreateSessionResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CreateSessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CreateSessionResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *CreateSessionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateSessionResponse.Merge(m, src)
}
func (m *CreateSessionResponse) XXX_Size() int {
return m.Size()
}
func (m *CreateSessionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CreateSessionResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CreateSessionResponse proto.InternalMessageInfo
func (m *CreateSessionResponse) GetSessionHandle() string {
if m != nil {
return m.SessionHandle
}
return ""
}
func (m *CreateSessionResponse) GetGraphVersion() int64 {
if m != nil {
return m.GraphVersion
}
return 0
}
type ExtendSessionRequest struct {
// REQUIRED: session_handle must be returned by a CreateSession call
// to the same master service.
SessionHandle string `protobuf:"bytes,1,opt,name=session_handle,json=sessionHandle,proto3" json:"session_handle,omitempty"`
// REQUIRED: The nodes to be added to the session's graph. If any node has
// the same name as an existing node, the operation will fail with
// ILLEGAL_ARGUMENT.
GraphDef *GraphDef `protobuf:"bytes,2,opt,name=graph_def,json=graphDef,proto3" json:"graph_def,omitempty"`
// REQUIRED: The version number of the graph to be extended. This will be
// tested against the current server-side version number, and the operation
// will fail with FAILED_PRECONDITION if they do not match.
CurrentGraphVersion int64 `protobuf:"varint,3,opt,name=current_graph_version,json=currentGraphVersion,proto3" json:"current_graph_version,omitempty"`
}
func (m *ExtendSessionRequest) Reset() { *m = ExtendSessionRequest{} }
func (m *ExtendSessionRequest) String() string { return proto.CompactTextString(m) }
func (*ExtendSessionRequest) ProtoMessage() {}
func (*ExtendSessionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f9c348dec43a6705, []int{2}
}
func (m *ExtendSessionRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ExtendSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ExtendSessionRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ExtendSessionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExtendSessionRequest.Merge(m, src)
}
func (m *ExtendSessionRequest) XXX_Size() int {
return m.Size()
}
func (m *ExtendSessionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ExtendSessionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ExtendSessionRequest proto.InternalMessageInfo
func (m *ExtendSessionRequest) GetSessionHandle() string {
if m != nil {
return m.SessionHandle
}
return ""
}
func (m *ExtendSessionRequest) GetGraphDef() *GraphDef {
if m != nil {
return m.GraphDef
}
return nil
}
func (m *ExtendSessionRequest) GetCurrentGraphVersion() int64 {
if m != nil {
return m.CurrentGraphVersion
}
return 0
}
type ExtendSessionResponse struct {
// The new version number for the extended graph, to be used in the next call
// to ExtendSession.
NewGraphVersion int64 `protobuf:"varint,4,opt,name=new_graph_version,json=newGraphVersion,proto3" json:"new_graph_version,omitempty"`
}
func (m *ExtendSessionResponse) Reset() { *m = ExtendSessionResponse{} }
func (m *ExtendSessionResponse) String() string { return proto.CompactTextString(m) }
func (*ExtendSessionResponse) ProtoMessage() {}
func (*ExtendSessionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_f9c348dec43a6705, []int{3}
}
func (m *ExtendSessionResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ExtendSessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ExtendSessionResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ExtendSessionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExtendSessionResponse.Merge(m, src)
}
func (m *ExtendSessionResponse) XXX_Size() int {
return m.Size()
}
func (m *ExtendSessionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ExtendSessionResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ExtendSessionResponse proto.InternalMessageInfo
func (m *ExtendSessionResponse) GetNewGraphVersion() int64 {
if m != nil {
return m.NewGraphVersion
}
return 0
}
type RunStepRequest struct {
// REQUIRED: session_handle must be returned by a CreateSession call
// to the same master service.
SessionHandle string `protobuf:"bytes,1,opt,name=session_handle,json=sessionHandle,proto3" json:"session_handle,omitempty"`
// Tensors to be fed in the step. Each feed is a named tensor.
Feed []*NamedTensorProto `protobuf:"bytes,2,rep,name=feed,proto3" json:"feed,omitempty"`
// Fetches. A list of tensor names. The caller expects a tensor to
// be returned for each fetch[i] (see RunStepResponse.tensor). The
// order of specified fetches does not change the execution order.
Fetch []string `protobuf:"bytes,3,rep,name=fetch,proto3" json:"fetch,omitempty"`
// Target Nodes. A list of node names. The named nodes will be run
// to but their outputs will not be fetched.
Target []string `protobuf:"bytes,4,rep,name=target,proto3" json:"target,omitempty"`
// Options for the run call.
Options *RunOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"`
// Partial run handle (optional). If specified, this will be a partial run
// execution, run up to the specified fetches.
PartialRunHandle string `protobuf:"bytes,6,opt,name=partial_run_handle,json=partialRunHandle,proto3" json:"partial_run_handle,omitempty"`
// If true then some errors, e.g., execution errors that have long
// error messages, may return an OK RunStepResponse with the actual
// error saved in the status_code/status_error_message fields of the
// response body. This is a workaround since the RPC subsystem may
// truncate long metadata messages.
StoreErrorsInResponseBody bool `protobuf:"varint,7,opt,name=store_errors_in_response_body,json=storeErrorsInResponseBody,proto3" json:"store_errors_in_response_body,omitempty"`
}
func (m *RunStepRequest) Reset() { *m = RunStepRequest{} }
func (m *RunStepRequest) String() string { return proto.CompactTextString(m) }
func (*RunStepRequest) ProtoMessage() {}
func (*RunStepRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f9c348dec43a6705, []int{4}
}
func (m *RunStepRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RunStepRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RunStepRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RunStepRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RunStepRequest.Merge(m, src)
}
func (m *RunStepRequest) XXX_Size() int {
return m.Size()
}
func (m *RunStepRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RunStepRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RunStepRequest proto.InternalMessageInfo
func (m *RunStepRequest) GetSessionHandle() string {
if m != nil {
return m.SessionHandle
}
return ""
}
func (m *RunStepRequest) GetFeed() []*NamedTensorProto {
if m != nil {
return m.Feed
}
return nil
}
func (m *RunStepRequest) GetFetch() []string {
if m != nil {
return m.Fetch
}
return nil
}
func (m *RunStepRequest) GetTarget() []string {
if m != nil {
return m.Target
}
return nil
}
func (m *RunStepRequest) GetOptions() *RunOptions {
if m != nil {
return m.Options
}
return nil
}
func (m *RunStepRequest) GetPartialRunHandle() string {
if m != nil {
return m.PartialRunHandle
}
return ""
}
func (m *RunStepRequest) GetStoreErrorsInResponseBody() bool {
if m != nil {
return m.StoreErrorsInResponseBody
}
return false
}
type RunStepResponse struct {
// NOTE: The order of the returned tensors may or may not match
// the fetch order specified in RunStepRequest.
Tensor []*NamedTensorProto `protobuf:"bytes,1,rep,name=tensor,proto3" json:"tensor,omitempty"`
// Returned metadata if requested in the options.
Metadata *RunMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
// If store_errors_in_response_body is true in the request, then
// optionally the server may return an OK status for the RPC and
// fill the true status into the fields below, to allow for messages
// that are too long to fit in metadata.
StatusCode Code `protobuf:"varint,3,opt,name=status_code,json=statusCode,proto3,enum=tensorflow.error.Code" json:"status_code,omitempty"`
StatusErrorMessage string `protobuf:"bytes,4,opt,name=status_error_message,json=statusErrorMessage,proto3" json:"status_error_message,omitempty"`
}
func (m *RunStepResponse) Reset() { *m = RunStepResponse{} }
func (m *RunStepResponse) String() string { return proto.CompactTextString(m) }
func (*RunStepResponse) ProtoMessage() {}
func (*RunStepResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_f9c348dec43a6705, []int{5}
}
func (m *RunStepResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RunStepResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RunStepResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RunStepResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RunStepResponse.Merge(m, src)
}
func (m *RunStepResponse) XXX_Size() int {
return m.Size()
}
func (m *RunStepResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RunStepResponse.DiscardUnknown(m)
}
var xxx_messageInfo_RunStepResponse proto.InternalMessageInfo
func (m *RunStepResponse) GetTensor() []*NamedTensorProto {
if m != nil {
return m.Tensor
}
return nil
}
func (m *RunStepResponse) GetMetadata() *RunMetadata {
if m != nil {
return m.Metadata
}
return nil
}
func (m *RunStepResponse) GetStatusCode() Code {
if m != nil {
return m.StatusCode
}
return Code_OK
}
func (m *RunStepResponse) GetStatusErrorMessage() string {
if m != nil {
return m.StatusErrorMessage
}
return ""
}
type PartialRunSetupRequest struct {
// REQUIRED: session_handle must be returned by a CreateSession call
// to the same master service.
SessionHandle string `protobuf:"bytes,1,opt,name=session_handle,json=sessionHandle,proto3" json:"session_handle,omitempty"`
// Tensors to be fed in future steps.
Feed []string `protobuf:"bytes,2,rep,name=feed,proto3" json:"feed,omitempty"`
// Fetches. A list of tensor names. The caller expects a tensor to be returned
// for each fetch[i] (see RunStepResponse.tensor), for corresponding partial
// RunStepRequests. The order of specified fetches does not change the
// execution order.
Fetch []string `protobuf:"bytes,3,rep,name=fetch,proto3" json:"fetch,omitempty"`
// Target Nodes. A list of node names. The named nodes will be run in future
// steps, but their outputs will not be fetched.
Target []string `protobuf:"bytes,4,rep,name=target,proto3" json:"target,omitempty"`
}
func (m *PartialRunSetupRequest) Reset() { *m = PartialRunSetupRequest{} }
func (m *PartialRunSetupRequest) String() string { return proto.CompactTextString(m) }
func (*PartialRunSetupRequest) ProtoMessage() {}
func (*PartialRunSetupRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f9c348dec43a6705, []int{6}
}
func (m *PartialRunSetupRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PartialRunSetupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PartialRunSetupRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PartialRunSetupRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PartialRunSetupRequest.Merge(m, src)
}
func (m *PartialRunSetupRequest) XXX_Size() int {
return m.Size()
}
func (m *PartialRunSetupRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PartialRunSetupRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PartialRunSetupRequest proto.InternalMessageInfo
func (m *PartialRunSetupRequest) GetSessionHandle() string {
if m != nil {
return m.SessionHandle
}
return ""
}
func (m *PartialRunSetupRequest) GetFeed() []string {
if m != nil {
return m.Feed
}
return nil
}
func (m *PartialRunSetupRequest) GetFetch() []string {
if m != nil {
return m.Fetch
}
return nil
}
func (m *PartialRunSetupRequest) GetTarget() []string {
if m != nil {
return m.Target
}
return nil
}
type PartialRunSetupResponse struct {
// The unique handle corresponding to the ongoing partial run call setup by
// the invocation to PartialRunSetup. This handle may be passed to
// RunStepRequest to send and receive tensors for this partial run.
PartialRunHandle string `protobuf:"bytes,1,opt,name=partial_run_handle,json=partialRunHandle,proto3" json:"partial_run_handle,omitempty"`
}
func (m *PartialRunSetupResponse) Reset() { *m = PartialRunSetupResponse{} }
func (m *PartialRunSetupResponse) String() string { return proto.CompactTextString(m) }
func (*PartialRunSetupResponse) ProtoMessage() {}
func (*PartialRunSetupResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_f9c348dec43a6705, []int{7}
}
func (m *PartialRunSetupResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PartialRunSetupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PartialRunSetupResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PartialRunSetupResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PartialRunSetupResponse.Merge(m, src)
}
func (m *PartialRunSetupResponse) XXX_Size() int {
return m.Size()
}
func (m *PartialRunSetupResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PartialRunSetupResponse.DiscardUnknown(m)
}
var xxx_messageInfo_PartialRunSetupResponse proto.InternalMessageInfo
func (m *PartialRunSetupResponse) GetPartialRunHandle() string {
if m != nil {
return m.PartialRunHandle
}
return ""
}
type CloseSessionRequest struct {
// REQUIRED: session_handle must be returned by a CreateSession call
// to the same master service.
SessionHandle string `protobuf:"bytes,1,opt,name=session_handle,json=sessionHandle,proto3" json:"session_handle,omitempty"`
}
func (m *CloseSessionRequest) Reset() { *m = CloseSessionRequest{} }
func (m *CloseSessionRequest) String() string { return proto.CompactTextString(m) }
func (*CloseSessionRequest) ProtoMessage() {}
func (*CloseSessionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f9c348dec43a6705, []int{8}
}
func (m *CloseSessionRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CloseSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CloseSessionRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *CloseSessionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CloseSessionRequest.Merge(m, src)
}
func (m *CloseSessionRequest) XXX_Size() int {
return m.Size()
}
func (m *CloseSessionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CloseSessionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CloseSessionRequest proto.InternalMessageInfo
func (m *CloseSessionRequest) GetSessionHandle() string {
if m != nil {
return m.SessionHandle
}
return ""
}
type CloseSessionResponse struct {
}
func (m *CloseSessionResponse) Reset() { *m = CloseSessionResponse{} }
func (m *CloseSessionResponse) String() string { return proto.CompactTextString(m) }
func (*CloseSessionResponse) ProtoMessage() {}
func (*CloseSessionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_f9c348dec43a6705, []int{9}
}
func (m *CloseSessionResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CloseSessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CloseSessionResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *CloseSessionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CloseSessionResponse.Merge(m, src)
}
func (m *CloseSessionResponse) XXX_Size() int {
return m.Size()
}
func (m *CloseSessionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CloseSessionResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CloseSessionResponse proto.InternalMessageInfo
// Reset() allows misbehaving or slow sessions to be aborted and closed, and
// causes their resources eventually to be released. Reset() does not wait
// for the computations in old sessions to cease; it merely starts the
// process of tearing them down. However, if a new session is started after
// a Reset(), the new session is isolated from changes that old sessions
// (started prior to the Reset()) may continue to make to resources, provided
// all those resources are in containers listed in "containers".
//
// Old sessions may continue to have side-effects on resources not in
// containers listed in "containers", and thus may affect future
// sessions' results in ways that are hard to predict. Thus, if well-defined
// behavior is desired, is it recommended that all containers be listed in
// "containers". Similarly, if a device_filter is specified, results may be
// hard to predict.
type ResetRequest struct {
// A list of container names, which may be empty.
//
// If 'container' is not empty, releases resoures in the given
// containers in all devices.
//
// If 'container' is empty, releases resources in the default
// container in all devices.
Container []string `protobuf:"bytes,1,rep,name=container,proto3" json:"container,omitempty"`
// When any filters are present, only devices that match the filters
// will be reset. Each filter can be partially specified,
// e.g. "/job:ps" "/job:worker/replica:3", etc.
DeviceFilters []string `protobuf:"bytes,2,rep,name=device_filters,json=deviceFilters,proto3" json:"device_filters,omitempty"`
}
func (m *ResetRequest) Reset() { *m = ResetRequest{} }
func (m *ResetRequest) String() string { return proto.CompactTextString(m) }
func (*ResetRequest) ProtoMessage() {}
func (*ResetRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f9c348dec43a6705, []int{10}
}
func (m *ResetRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ResetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ResetRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ResetRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResetRequest.Merge(m, src)
}
func (m *ResetRequest) XXX_Size() int {
return m.Size()
}
func (m *ResetRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ResetRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ResetRequest proto.InternalMessageInfo
func (m *ResetRequest) GetContainer() []string {
if m != nil {
return m.Container
}
return nil
}
func (m *ResetRequest) GetDeviceFilters() []string {
if m != nil {
return m.DeviceFilters
}
return nil
}
type ResetResponse struct {
}
func (m *ResetResponse) Reset() { *m = ResetResponse{} }
func (m *ResetResponse) String() string { return proto.CompactTextString(m) }
func (*ResetResponse) ProtoMessage() {}
func (*ResetResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_f9c348dec43a6705, []int{11}
}
func (m *ResetResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ResetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ResetResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ResetResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResetResponse.Merge(m, src)
}
func (m *ResetResponse) XXX_Size() int {
return m.Size()
}
func (m *ResetResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ResetResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ResetResponse proto.InternalMessageInfo
type ListDevicesRequest struct {
// Optional: session_handle must be returned by a CreateSession call to the
// same master service.
//
// When session_handle is empty, the ClusterSpec provided when the master was
// started is used to compute the available devices. If the session_handle is
// provided but not recognized, an error is returned. Finally, if a valid
// session_handle is provided, the cluster configuration for that session is
// used when computing the response.
SessionHandle string `protobuf:"bytes,1,opt,name=session_handle,json=sessionHandle,proto3" json:"session_handle,omitempty"`
}
func (m *ListDevicesRequest) Reset() { *m = ListDevicesRequest{} }
func (m *ListDevicesRequest) String() string { return proto.CompactTextString(m) }
func (*ListDevicesRequest) ProtoMessage() {}
func (*ListDevicesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f9c348dec43a6705, []int{12}
}
func (m *ListDevicesRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ListDevicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ListDevicesRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ListDevicesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListDevicesRequest.Merge(m, src)
}
func (m *ListDevicesRequest) XXX_Size() int {
return m.Size()
}
func (m *ListDevicesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListDevicesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListDevicesRequest proto.InternalMessageInfo
func (m *ListDevicesRequest) GetSessionHandle() string {
if m != nil {
return m.SessionHandle
}
return ""
}
type ListDevicesResponse struct {
LocalDevice []*DeviceAttributes `protobuf:"bytes,1,rep,name=local_device,json=localDevice,proto3" json:"local_device,omitempty"`
RemoteDevice []*DeviceAttributes `protobuf:"bytes,2,rep,name=remote_device,json=remoteDevice,proto3" json:"remote_device,omitempty"`
}
func (m *ListDevicesResponse) Reset() { *m = ListDevicesResponse{} }
func (m *ListDevicesResponse) String() string { return proto.CompactTextString(m) }
func (*ListDevicesResponse) ProtoMessage() {}
func (*ListDevicesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_f9c348dec43a6705, []int{13}
}
func (m *ListDevicesResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ListDevicesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ListDevicesResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ListDevicesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListDevicesResponse.Merge(m, src)
}
func (m *ListDevicesResponse) XXX_Size() int {
return m.Size()
}
func (m *ListDevicesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListDevicesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListDevicesResponse proto.InternalMessageInfo
func (m *ListDevicesResponse) GetLocalDevice() []*DeviceAttributes {
if m != nil {
return m.LocalDevice
}
return nil
}
func (m *ListDevicesResponse) GetRemoteDevice() []*DeviceAttributes {
if m != nil {
return m.RemoteDevice
}
return nil
}
type MakeCallableRequest struct {
// REQUIRED: session_handle must be returned by a CreateSession call
// to the same master service.
SessionHandle string `protobuf:"bytes,1,opt,name=session_handle,json=sessionHandle,proto3" json:"session_handle,omitempty"`
// Options that define the behavior of the created callable.
Options *CallableOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
}
func (m *MakeCallableRequest) Reset() { *m = MakeCallableRequest{} }
func (m *MakeCallableRequest) String() string { return proto.CompactTextString(m) }
func (*MakeCallableRequest) ProtoMessage() {}
func (*MakeCallableRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f9c348dec43a6705, []int{14}
}
func (m *MakeCallableRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MakeCallableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MakeCallableRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MakeCallableRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_MakeCallableRequest.Merge(m, src)
}
func (m *MakeCallableRequest) XXX_Size() int {
return m.Size()
}
func (m *MakeCallableRequest) XXX_DiscardUnknown() {
xxx_messageInfo_MakeCallableRequest.DiscardUnknown(m)
}
var xxx_messageInfo_MakeCallableRequest proto.InternalMessageInfo
func (m *MakeCallableRequest) GetSessionHandle() string {
if m != nil {
return m.SessionHandle
}
return ""
}
func (m *MakeCallableRequest) GetOptions() *CallableOptions {
if m != nil {
return m.Options
}
return nil
}
type MakeCallableResponse struct {
// A handle to the created callable.
Handle int64 `protobuf:"varint,1,opt,name=handle,proto3" json:"handle,omitempty"`
}
func (m *MakeCallableResponse) Reset() { *m = MakeCallableResponse{} }
func (m *MakeCallableResponse) String() string { return proto.CompactTextString(m) }
func (*MakeCallableResponse) ProtoMessage() {}
func (*MakeCallableResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_f9c348dec43a6705, []int{15}
}
func (m *MakeCallableResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MakeCallableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MakeCallableResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MakeCallableResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MakeCallableResponse.Merge(m, src)
}
func (m *MakeCallableResponse) XXX_Size() int {
return m.Size()
}
func (m *MakeCallableResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MakeCallableResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MakeCallableResponse proto.InternalMessageInfo
func (m *MakeCallableResponse) GetHandle() int64 {
if m != nil {
return m.Handle
}
return 0
}
type RunCallableRequest struct {
// REQUIRED: session_handle must be returned by a CreateSession call
// to the same master service.
SessionHandle string `protobuf:"bytes,1,opt,name=session_handle,json=sessionHandle,proto3" json:"session_handle,omitempty"`
// REQUIRED: handle must be returned by a MakeCallable call to the same
// master service.
Handle int64 `protobuf:"varint,2,opt,name=handle,proto3" json:"handle,omitempty"`
// Values of the tensors passed as arguments to the callable, in the order
// defined in the CallableOptions.feed field passed to MakeCallable.
Feed []*TensorProto `protobuf:"bytes,3,rep,name=feed,proto3" json:"feed,omitempty"`
}
func (m *RunCallableRequest) Reset() { *m = RunCallableRequest{} }
func (m *RunCallableRequest) String() string { return proto.CompactTextString(m) }
func (*RunCallableRequest) ProtoMessage() {}
func (*RunCallableRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f9c348dec43a6705, []int{16}
}
func (m *RunCallableRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RunCallableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RunCallableRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RunCallableRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RunCallableRequest.Merge(m, src)
}
func (m *RunCallableRequest) XXX_Size() int {