forked from googleapis/google-api-go-client
/
clouddebugger-gen.go
2811 lines (2530 loc) · 104 KB
/
clouddebugger-gen.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
// Package clouddebugger provides access to the Stackdriver Debugger API.
//
// See https://cloud.google.com/debugger
//
// Usage example:
//
// import "google.golang.org/api/clouddebugger/v2"
// ...
// clouddebuggerService, err := clouddebugger.New(oauthHttpClient)
package clouddebugger // import "google.golang.org/api/clouddebugger/v2"
import (
"bytes"
"encoding/json"
"errors"
"fmt"
context "golang.org/x/net/context"
ctxhttp "golang.org/x/net/context/ctxhttp"
gensupport "google.golang.org/api/gensupport"
googleapi "google.golang.org/api/googleapi"
"io"
"net/http"
"net/url"
"strconv"
"strings"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
var _ = ctxhttp.Do
const apiId = "clouddebugger:v2"
const apiName = "clouddebugger"
const apiVersion = "v2"
const basePath = "https://clouddebugger.googleapis.com/"
// OAuth2 scopes used by this API.
const (
// View and manage your data across Google Cloud Platform services
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
// Use Stackdriver Debugger
CloudDebuggerScope = "https://www.googleapis.com/auth/cloud_debugger"
)
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.Controller = NewControllerService(s)
s.Debugger = NewDebuggerService(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Controller *ControllerService
Debugger *DebuggerService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewControllerService(s *Service) *ControllerService {
rs := &ControllerService{s: s}
rs.Debuggees = NewControllerDebuggeesService(s)
return rs
}
type ControllerService struct {
s *Service
Debuggees *ControllerDebuggeesService
}
func NewControllerDebuggeesService(s *Service) *ControllerDebuggeesService {
rs := &ControllerDebuggeesService{s: s}
rs.Breakpoints = NewControllerDebuggeesBreakpointsService(s)
return rs
}
type ControllerDebuggeesService struct {
s *Service
Breakpoints *ControllerDebuggeesBreakpointsService
}
func NewControllerDebuggeesBreakpointsService(s *Service) *ControllerDebuggeesBreakpointsService {
rs := &ControllerDebuggeesBreakpointsService{s: s}
return rs
}
type ControllerDebuggeesBreakpointsService struct {
s *Service
}
func NewDebuggerService(s *Service) *DebuggerService {
rs := &DebuggerService{s: s}
rs.Debuggees = NewDebuggerDebuggeesService(s)
return rs
}
type DebuggerService struct {
s *Service
Debuggees *DebuggerDebuggeesService
}
func NewDebuggerDebuggeesService(s *Service) *DebuggerDebuggeesService {
rs := &DebuggerDebuggeesService{s: s}
rs.Breakpoints = NewDebuggerDebuggeesBreakpointsService(s)
return rs
}
type DebuggerDebuggeesService struct {
s *Service
Breakpoints *DebuggerDebuggeesBreakpointsService
}
func NewDebuggerDebuggeesBreakpointsService(s *Service) *DebuggerDebuggeesBreakpointsService {
rs := &DebuggerDebuggeesBreakpointsService{s: s}
return rs
}
type DebuggerDebuggeesBreakpointsService struct {
s *Service
}
// AliasContext: An alias to a repo revision.
type AliasContext struct {
// Kind: The alias kind.
//
// Possible values:
// "ANY" - Do not use.
// "FIXED" - Git tag
// "MOVABLE" - Git branch
// "OTHER" - OTHER is used to specify non-standard aliases, those not
// of the kinds
// above. For example, if a Git repo has a ref named "refs/foo/bar",
// it
// is considered to be of kind OTHER.
Kind string `json:"kind,omitempty"`
// Name: The alias name.
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AliasContext) MarshalJSON() ([]byte, error) {
type NoMethod AliasContext
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Breakpoint: Represents the breakpoint specification, status and
// results.
type Breakpoint struct {
// Action: Action that the agent should perform when the code at
// the
// breakpoint location is hit.
//
// Possible values:
// "CAPTURE" - Capture stack frame and variables and update the
// breakpoint.
// The data is only captured once. After that the breakpoint is set
// in a final state.
// "LOG" - Log each breakpoint hit. The breakpoint remains active
// until
// deleted or expired.
Action string `json:"action,omitempty"`
// Condition: Condition that triggers the breakpoint.
// The condition is a compound boolean expression composed using
// expressions
// in a programming language at the source location.
Condition string `json:"condition,omitempty"`
// CreateTime: Time this breakpoint was created by the server in seconds
// resolution.
CreateTime string `json:"createTime,omitempty"`
// EvaluatedExpressions: Values of evaluated expressions at breakpoint
// time.
// The evaluated expressions appear in exactly the same order they
// are listed in the `expressions` field.
// The `name` field holds the original expression text, the `value`
// or
// `members` field holds the result of the evaluated expression.
// If the expression cannot be evaluated, the `status` inside the
// `Variable`
// will indicate an error and contain the error text.
EvaluatedExpressions []*Variable `json:"evaluatedExpressions,omitempty"`
// Expressions: List of read-only expressions to evaluate at the
// breakpoint location.
// The expressions are composed using expressions in the programming
// language
// at the source location. If the breakpoint action is `LOG`, the
// evaluated
// expressions are included in log statements.
Expressions []string `json:"expressions,omitempty"`
// FinalTime: Time this breakpoint was finalized as seen by the server
// in seconds
// resolution.
FinalTime string `json:"finalTime,omitempty"`
// Id: Breakpoint identifier, unique in the scope of the debuggee.
Id string `json:"id,omitempty"`
// IsFinalState: When true, indicates that this is a final result and
// the
// breakpoint state will not change from here on.
IsFinalState bool `json:"isFinalState,omitempty"`
// Labels: A set of custom breakpoint properties, populated by the
// agent, to be
// displayed to the user.
Labels map[string]string `json:"labels,omitempty"`
// Location: Breakpoint source location.
Location *SourceLocation `json:"location,omitempty"`
// LogLevel: Indicates the severity of the log. Only relevant when
// action is `LOG`.
//
// Possible values:
// "INFO" - Information log message.
// "WARNING" - Warning log message.
// "ERROR" - Error log message.
LogLevel string `json:"logLevel,omitempty"`
// LogMessageFormat: Only relevant when action is `LOG`. Defines the
// message to log when
// the breakpoint hits. The message may include parameter placeholders
// `$0`,
// `$1`, etc. These placeholders are replaced with the evaluated
// value
// of the appropriate expression. Expressions not referenced
// in
// `log_message_format` are not logged.
//
// Example: `Message received, id = $0, count = $1` with
// `expressions` = `[ message.id, message.count ]`.
LogMessageFormat string `json:"logMessageFormat,omitempty"`
// StackFrames: The stack at breakpoint time, where stack_frames[0]
// represents the most
// recently entered function.
StackFrames []*StackFrame `json:"stackFrames,omitempty"`
// Status: Breakpoint status.
//
// The status includes an error flag and a human readable message.
// This field is usually unset. The message can be either
// informational or an error message. Regardless, clients should
// always
// display the text message back to the user.
//
// Error status indicates complete failure of the breakpoint.
//
// Example (non-final state): `Still loading symbols...`
//
// Examples (final state):
//
// * `Invalid line number` referring to location
// * `Field f not found in class C` referring to condition
Status *StatusMessage `json:"status,omitempty"`
// UserEmail: E-mail address of the user that created this breakpoint
UserEmail string `json:"userEmail,omitempty"`
// VariableTable: The `variable_table` exists to aid with computation,
// memory and network
// traffic optimization. It enables storing a variable once and
// reference
// it from multiple variables, including variables stored in
// the
// `variable_table` itself.
// For example, the same `this` object, which may appear at many levels
// of
// the stack, can have all of its data stored once in this table.
// The
// stack frame variables then would hold only a reference to it.
//
// The variable `var_table_index` field is an index into this repeated
// field.
// The stored objects are nameless and get their name from the
// referencing
// variable. The effective variable is a merge of the referencing
// variable
// and the referenced variable.
VariableTable []*Variable `json:"variableTable,omitempty"`
// ForceSendFields is a list of field names (e.g. "Action") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Action") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Breakpoint) MarshalJSON() ([]byte, error) {
type NoMethod Breakpoint
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CloudRepoSourceContext: A CloudRepoSourceContext denotes a particular
// revision in a cloud
// repo (a repo hosted by the Google Cloud Platform).
type CloudRepoSourceContext struct {
// AliasContext: An alias, which may be a branch or tag.
AliasContext *AliasContext `json:"aliasContext,omitempty"`
// AliasName: The name of an alias (branch, tag, etc.).
AliasName string `json:"aliasName,omitempty"`
// RepoId: The ID of the repo.
RepoId *RepoId `json:"repoId,omitempty"`
// RevisionId: A revision ID.
RevisionId string `json:"revisionId,omitempty"`
// ForceSendFields is a list of field names (e.g. "AliasContext") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AliasContext") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CloudRepoSourceContext) MarshalJSON() ([]byte, error) {
type NoMethod CloudRepoSourceContext
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CloudWorkspaceId: A CloudWorkspaceId is a unique identifier for a
// cloud workspace.
// A cloud workspace is a place associated with a repo where modified
// files
// can be stored before they are committed.
type CloudWorkspaceId struct {
// Name: The unique name of the workspace within the repo. This is the
// name
// chosen by the client in the Source API's CreateWorkspace method.
Name string `json:"name,omitempty"`
// RepoId: The ID of the repo containing the workspace.
RepoId *RepoId `json:"repoId,omitempty"`
// ForceSendFields is a list of field names (e.g. "Name") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Name") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CloudWorkspaceId) MarshalJSON() ([]byte, error) {
type NoMethod CloudWorkspaceId
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CloudWorkspaceSourceContext: A CloudWorkspaceSourceContext denotes a
// workspace at a particular snapshot.
type CloudWorkspaceSourceContext struct {
// SnapshotId: The ID of the snapshot.
// An empty snapshot_id refers to the most recent snapshot.
SnapshotId string `json:"snapshotId,omitempty"`
// WorkspaceId: The ID of the workspace.
WorkspaceId *CloudWorkspaceId `json:"workspaceId,omitempty"`
// ForceSendFields is a list of field names (e.g. "SnapshotId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SnapshotId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CloudWorkspaceSourceContext) MarshalJSON() ([]byte, error) {
type NoMethod CloudWorkspaceSourceContext
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Debuggee: Represents the debugged application. The application may
// include one or more
// replicated processes executing the same code. Each of these processes
// is
// attached with a debugger agent, carrying out the debugging
// commands.
// Agents attached to the same debuggee identify themselves as such by
// using
// exactly the same Debuggee message value when registering.
type Debuggee struct {
// AgentVersion: Version ID of the agent.
// Schema: `domain/language-platform/vmajor.minor` (for
// example
// `google.com/java-gcp/v1.1`).
AgentVersion string `json:"agentVersion,omitempty"`
// Description: Human readable description of the debuggee.
// Including a human-readable project name, environment name and
// version
// information is recommended.
Description string `json:"description,omitempty"`
// ExtSourceContexts: References to the locations and revisions of the
// source code used in the
// deployed application.
ExtSourceContexts []*ExtendedSourceContext `json:"extSourceContexts,omitempty"`
// Id: Unique identifier for the debuggee generated by the controller
// service.
Id string `json:"id,omitempty"`
// IsDisabled: If set to `true`, indicates that the agent should disable
// itself and
// detach from the debuggee.
IsDisabled bool `json:"isDisabled,omitempty"`
// IsInactive: If set to `true`, indicates that Controller service does
// not detect any
// activity from the debuggee agents and the application is possibly
// stopped.
IsInactive bool `json:"isInactive,omitempty"`
// Labels: A set of custom debuggee properties, populated by the agent,
// to be
// displayed to the user.
Labels map[string]string `json:"labels,omitempty"`
// Project: Project the debuggee is associated with.
// Use project number or id when registering a Google Cloud Platform
// project.
Project string `json:"project,omitempty"`
// SourceContexts: References to the locations and revisions of the
// source code used in the
// deployed application.
SourceContexts []*SourceContext `json:"sourceContexts,omitempty"`
// Status: Human readable message to be displayed to the user about this
// debuggee.
// Absence of this field indicates no status. The message can be
// either
// informational or an error status.
Status *StatusMessage `json:"status,omitempty"`
// Uniquifier: Uniquifier to further distiguish the application.
// It is possible that different applications might have identical
// values in
// the debuggee message, thus, incorrectly identified as a single
// application
// by the Controller service. This field adds salt to further distiguish
// the
// application. Agents should consider seeding this field with value
// that
// identifies the code, binary, configuration and environment.
Uniquifier string `json:"uniquifier,omitempty"`
// ForceSendFields is a list of field names (e.g. "AgentVersion") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AgentVersion") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Debuggee) MarshalJSON() ([]byte, error) {
type NoMethod Debuggee
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Empty: A generic empty message that you can re-use to avoid defining
// duplicated
// empty messages in your APIs. A typical example is to use it as the
// request
// or the response type of an API method. For instance:
//
// service Foo {
// rpc Bar(google.protobuf.Empty) returns
// (google.protobuf.Empty);
// }
//
// The JSON representation for `Empty` is empty JSON object `{}`.
type Empty struct {
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
}
// ExtendedSourceContext: An ExtendedSourceContext is a SourceContext
// combined with additional
// details describing the context.
type ExtendedSourceContext struct {
// Context: Any source context.
Context *SourceContext `json:"context,omitempty"`
// Labels: Labels with user defined metadata.
Labels map[string]string `json:"labels,omitempty"`
// ForceSendFields is a list of field names (e.g. "Context") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Context") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ExtendedSourceContext) MarshalJSON() ([]byte, error) {
type NoMethod ExtendedSourceContext
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// FormatMessage: Represents a message with parameters.
type FormatMessage struct {
// Format: Format template for the message. The `format` uses
// placeholders `$0`,
// `$1`, etc. to reference parameters. `$$` can be used to denote the
// `$`
// character.
//
// Examples:
//
// * `Failed to load '$0' which helps debug $1 the first time it
// is loaded. Again, $0 is very important.`
// * `Please pay $$10 to use $0 instead of $1.`
Format string `json:"format,omitempty"`
// Parameters: Optional parameters to be embedded into the message.
Parameters []string `json:"parameters,omitempty"`
// ForceSendFields is a list of field names (e.g. "Format") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Format") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *FormatMessage) MarshalJSON() ([]byte, error) {
type NoMethod FormatMessage
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GerritSourceContext: A SourceContext referring to a Gerrit project.
type GerritSourceContext struct {
// AliasContext: An alias, which may be a branch or tag.
AliasContext *AliasContext `json:"aliasContext,omitempty"`
// AliasName: The name of an alias (branch, tag, etc.).
AliasName string `json:"aliasName,omitempty"`
// GerritProject: The full project name within the host. Projects may be
// nested, so
// "project/subproject" is a valid project name.
// The "repo name" is hostURI/project.
GerritProject string `json:"gerritProject,omitempty"`
// HostUri: The URI of a running Gerrit instance.
HostUri string `json:"hostUri,omitempty"`
// RevisionId: A revision (commit) ID.
RevisionId string `json:"revisionId,omitempty"`
// ForceSendFields is a list of field names (e.g. "AliasContext") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AliasContext") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GerritSourceContext) MarshalJSON() ([]byte, error) {
type NoMethod GerritSourceContext
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GetBreakpointResponse: Response for getting breakpoint information.
type GetBreakpointResponse struct {
// Breakpoint: Complete breakpoint state.
// The fields `id` and `location` are guaranteed to be set.
Breakpoint *Breakpoint `json:"breakpoint,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Breakpoint") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Breakpoint") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GetBreakpointResponse) MarshalJSON() ([]byte, error) {
type NoMethod GetBreakpointResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GitSourceContext: A GitSourceContext denotes a particular revision in
// a third party Git
// repository (e.g. GitHub).
type GitSourceContext struct {
// RevisionId: Git commit hash.
// required.
RevisionId string `json:"revisionId,omitempty"`
// Url: Git repository URL.
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "RevisionId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "RevisionId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GitSourceContext) MarshalJSON() ([]byte, error) {
type NoMethod GitSourceContext
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListActiveBreakpointsResponse: Response for listing active
// breakpoints.
type ListActiveBreakpointsResponse struct {
// Breakpoints: List of all active breakpoints.
// The fields `id` and `location` are guaranteed to be set on each
// breakpoint.
Breakpoints []*Breakpoint `json:"breakpoints,omitempty"`
// NextWaitToken: A token that can be used in the next method call to
// block until
// the list of breakpoints changes.
NextWaitToken string `json:"nextWaitToken,omitempty"`
// WaitExpired: If set to `true`, indicates that there is no change to
// the
// list of active breakpoints and the server-selected timeout has
// expired.
// The `breakpoints` field would be empty and should be ignored.
WaitExpired bool `json:"waitExpired,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Breakpoints") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Breakpoints") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListActiveBreakpointsResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListActiveBreakpointsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListBreakpointsResponse: Response for listing breakpoints.
type ListBreakpointsResponse struct {
// Breakpoints: List of breakpoints matching the request.
// The fields `id` and `location` are guaranteed to be set on each
// breakpoint.
// The fields: `stack_frames`, `evaluated_expressions` and
// `variable_table`
// are cleared on each breakpoint regardless of its status.
Breakpoints []*Breakpoint `json:"breakpoints,omitempty"`
// NextWaitToken: A wait token that can be used in the next call to
// `list` (REST) or
// `ListBreakpoints` (RPC) to block until the list of breakpoints has
// changes.
NextWaitToken string `json:"nextWaitToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Breakpoints") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Breakpoints") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListBreakpointsResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListBreakpointsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListDebuggeesResponse: Response for listing debuggees.
type ListDebuggeesResponse struct {
// Debuggees: List of debuggees accessible to the calling user.
// The fields `debuggee.id` and `description` are guaranteed to be
// set.
// The `description` field is a human readable field provided by agents
// and
// can be displayed to users.
Debuggees []*Debuggee `json:"debuggees,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Debuggees") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Debuggees") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListDebuggeesResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListDebuggeesResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ProjectRepoId: Selects a repo using a Google Cloud Platform project
// ID
// (e.g. winged-cargo-31) and a repo name within that project.
type ProjectRepoId struct {
// ProjectId: The ID of the project.
ProjectId string `json:"projectId,omitempty"`
// RepoName: The name of the repo. Leave empty for the default repo.
RepoName string `json:"repoName,omitempty"`
// ForceSendFields is a list of field names (e.g. "ProjectId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ProjectId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ProjectRepoId) MarshalJSON() ([]byte, error) {
type NoMethod ProjectRepoId
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// RegisterDebuggeeRequest: Request to register a debuggee.
type RegisterDebuggeeRequest struct {
// Debuggee: Debuggee information to register.
// The fields `project`, `uniquifier`, `description` and
// `agent_version`
// of the debuggee must be set.
Debuggee *Debuggee `json:"debuggee,omitempty"`
// ForceSendFields is a list of field names (e.g. "Debuggee") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Debuggee") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *RegisterDebuggeeRequest) MarshalJSON() ([]byte, error) {
type NoMethod RegisterDebuggeeRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// RegisterDebuggeeResponse: Response for registering a debuggee.
type RegisterDebuggeeResponse struct {
// Debuggee: Debuggee resource.
// The field `id` is guranteed to be set (in addition to the echoed
// fields).
// If the field `is_disabled` is set to `true`, the agent should
// disable
// itself by removing all breakpoints and detaching from the
// application.
// It should however continue to poll `RegisterDebuggee` until
// reenabled.
Debuggee *Debuggee `json:"debuggee,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Debuggee") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Debuggee") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *RegisterDebuggeeResponse) MarshalJSON() ([]byte, error) {
type NoMethod RegisterDebuggeeResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// RepoId: A unique identifier for a cloud repo.
type RepoId struct {
// ProjectRepoId: A combination of a project ID and a repo name.
ProjectRepoId *ProjectRepoId `json:"projectRepoId,omitempty"`
// Uid: A server-assigned, globally unique identifier.