-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
resources.pb.go
executable file
·3414 lines (3053 loc) · 139 KB
/
resources.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
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc v4.23.1
// source: google/cloud/video/livestream/v1/resources.proto
package livestreampb
import (
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// The type of the input.
type Input_Type int32
const (
// Input type is not specified.
Input_TYPE_UNSPECIFIED Input_Type = 0
// Input will take an rtmp input stream.
Input_RTMP_PUSH Input_Type = 1
// Input will take an srt (Secure Reliable Transport) input stream.
Input_SRT_PUSH Input_Type = 2
)
// Enum value maps for Input_Type.
var (
Input_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "RTMP_PUSH",
2: "SRT_PUSH",
}
Input_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"RTMP_PUSH": 1,
"SRT_PUSH": 2,
}
)
func (x Input_Type) Enum() *Input_Type {
p := new(Input_Type)
*p = x
return p
}
func (x Input_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Input_Type) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_video_livestream_v1_resources_proto_enumTypes[0].Descriptor()
}
func (Input_Type) Type() protoreflect.EnumType {
return &file_google_cloud_video_livestream_v1_resources_proto_enumTypes[0]
}
func (x Input_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Input_Type.Descriptor instead.
func (Input_Type) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_video_livestream_v1_resources_proto_rawDescGZIP(), []int{0, 0}
}
// Tier of the input specification.
type Input_Tier int32
const (
// Tier is not specified.
Input_TIER_UNSPECIFIED Input_Tier = 0
// Resolution < 1280x720. Bitrate <= 6 Mbps. FPS <= 60.
Input_SD Input_Tier = 1
// Resolution <= 1920x1080. Bitrate <= 25 Mbps. FPS <= 60.
Input_HD Input_Tier = 2
// Resolution <= 4096x2160. Not supported yet.
Input_UHD Input_Tier = 3
)
// Enum value maps for Input_Tier.
var (
Input_Tier_name = map[int32]string{
0: "TIER_UNSPECIFIED",
1: "SD",
2: "HD",
3: "UHD",
}
Input_Tier_value = map[string]int32{
"TIER_UNSPECIFIED": 0,
"SD": 1,
"HD": 2,
"UHD": 3,
}
)
func (x Input_Tier) Enum() *Input_Tier {
p := new(Input_Tier)
*p = x
return p
}
func (x Input_Tier) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Input_Tier) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_video_livestream_v1_resources_proto_enumTypes[1].Descriptor()
}
func (Input_Tier) Type() protoreflect.EnumType {
return &file_google_cloud_video_livestream_v1_resources_proto_enumTypes[1]
}
func (x Input_Tier) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Input_Tier.Descriptor instead.
func (Input_Tier) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_video_livestream_v1_resources_proto_rawDescGZIP(), []int{0, 1}
}
// State of streaming operation that the channel is running.
type Channel_StreamingState int32
const (
// Streaming state is not specified.
Channel_STREAMING_STATE_UNSPECIFIED Channel_StreamingState = 0
// Channel is getting the input stream, generating the live streams to the
// specified output location.
Channel_STREAMING Channel_StreamingState = 1
// Channel is waiting for the input stream through the input.
Channel_AWAITING_INPUT Channel_StreamingState = 2
// Channel is running, but has trouble publishing the live streams onto the
// specified output location (for example, the specified Cloud Storage
// bucket is not writable).
Channel_STREAMING_ERROR Channel_StreamingState = 4
// Channel is generating live streams with no input stream. Live streams are
// filled out with black screen, while input stream is missing.
// Not supported yet.
Channel_STREAMING_NO_INPUT Channel_StreamingState = 5
// Channel is stopped, finishing live streams.
Channel_STOPPED Channel_StreamingState = 6
// Channel is starting.
Channel_STARTING Channel_StreamingState = 7
// Channel is stopping.
Channel_STOPPING Channel_StreamingState = 8
)
// Enum value maps for Channel_StreamingState.
var (
Channel_StreamingState_name = map[int32]string{
0: "STREAMING_STATE_UNSPECIFIED",
1: "STREAMING",
2: "AWAITING_INPUT",
4: "STREAMING_ERROR",
5: "STREAMING_NO_INPUT",
6: "STOPPED",
7: "STARTING",
8: "STOPPING",
}
Channel_StreamingState_value = map[string]int32{
"STREAMING_STATE_UNSPECIFIED": 0,
"STREAMING": 1,
"AWAITING_INPUT": 2,
"STREAMING_ERROR": 4,
"STREAMING_NO_INPUT": 5,
"STOPPED": 6,
"STARTING": 7,
"STOPPING": 8,
}
)
func (x Channel_StreamingState) Enum() *Channel_StreamingState {
p := new(Channel_StreamingState)
*p = x
return p
}
func (x Channel_StreamingState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Channel_StreamingState) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_video_livestream_v1_resources_proto_enumTypes[2].Descriptor()
}
func (Channel_StreamingState) Type() protoreflect.EnumType {
return &file_google_cloud_video_livestream_v1_resources_proto_enumTypes[2]
}
func (x Channel_StreamingState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Channel_StreamingState.Descriptor instead.
func (Channel_StreamingState) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_video_livestream_v1_resources_proto_rawDescGZIP(), []int{1, 0}
}
// Input switch mode.
type InputConfig_InputSwitchMode int32
const (
// The input switch mode is not specified.
InputConfig_INPUT_SWITCH_MODE_UNSPECIFIED InputConfig_InputSwitchMode = 0
// Automatic failover is enabled. The primary input stream is always
// preferred over its backup input streams configured using the
// [AutomaticFailover][google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover]
// field.
InputConfig_FAILOVER_PREFER_PRIMARY InputConfig_InputSwitchMode = 1
// Automatic failover is disabled. You must use the
// [inputSwitch][google.cloud.video.livestream.v1.Event.input_switch] event
// to switch the active input source for the channel to stream from. When
// this mode is chosen, the
// [AutomaticFailover][google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover]
// field is ignored.
InputConfig_MANUAL InputConfig_InputSwitchMode = 3
)
// Enum value maps for InputConfig_InputSwitchMode.
var (
InputConfig_InputSwitchMode_name = map[int32]string{
0: "INPUT_SWITCH_MODE_UNSPECIFIED",
1: "FAILOVER_PREFER_PRIMARY",
3: "MANUAL",
}
InputConfig_InputSwitchMode_value = map[string]int32{
"INPUT_SWITCH_MODE_UNSPECIFIED": 0,
"FAILOVER_PREFER_PRIMARY": 1,
"MANUAL": 3,
}
)
func (x InputConfig_InputSwitchMode) Enum() *InputConfig_InputSwitchMode {
p := new(InputConfig_InputSwitchMode)
*p = x
return p
}
func (x InputConfig_InputSwitchMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (InputConfig_InputSwitchMode) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_video_livestream_v1_resources_proto_enumTypes[3].Descriptor()
}
func (InputConfig_InputSwitchMode) Type() protoreflect.EnumType {
return &file_google_cloud_video_livestream_v1_resources_proto_enumTypes[3]
}
func (x InputConfig_InputSwitchMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use InputConfig_InputSwitchMode.Descriptor instead.
func (InputConfig_InputSwitchMode) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_video_livestream_v1_resources_proto_rawDescGZIP(), []int{2, 0}
}
// The severity level of platform logging for this channel. Logs with a
// severity level higher than or equal to the chosen severity level will be
// logged and can be viewed through Cloud Logging.
// The severity level of a log is ranked as followed from low to high: DEBUG <
// INFO < NOTICE < WARNING < ERROR < CRITICAL < ALERT < EMERGENCY.
// See
// [LogSeverity](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#logseverity)
// for more information.
type LogConfig_LogSeverity int32
const (
// Log severity is not specified. This is the same as log severity is OFF.
LogConfig_LOG_SEVERITY_UNSPECIFIED LogConfig_LogSeverity = 0
// Log is turned off.
LogConfig_OFF LogConfig_LogSeverity = 1
// Log with severity higher than or equal to DEBUG are logged.
LogConfig_DEBUG LogConfig_LogSeverity = 100
// Logs with severity higher than or equal to INFO are logged.
LogConfig_INFO LogConfig_LogSeverity = 200
// Logs with severity higher than or equal to WARNING are logged.
LogConfig_WARNING LogConfig_LogSeverity = 400
// Logs with severity higher than or equal to ERROR are logged.
LogConfig_ERROR LogConfig_LogSeverity = 500
)
// Enum value maps for LogConfig_LogSeverity.
var (
LogConfig_LogSeverity_name = map[int32]string{
0: "LOG_SEVERITY_UNSPECIFIED",
1: "OFF",
100: "DEBUG",
200: "INFO",
400: "WARNING",
500: "ERROR",
}
LogConfig_LogSeverity_value = map[string]int32{
"LOG_SEVERITY_UNSPECIFIED": 0,
"OFF": 1,
"DEBUG": 100,
"INFO": 200,
"WARNING": 400,
"ERROR": 500,
}
)
func (x LogConfig_LogSeverity) Enum() *LogConfig_LogSeverity {
p := new(LogConfig_LogSeverity)
*p = x
return p
}
func (x LogConfig_LogSeverity) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (LogConfig_LogSeverity) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_video_livestream_v1_resources_proto_enumTypes[4].Descriptor()
}
func (LogConfig_LogSeverity) Type() protoreflect.EnumType {
return &file_google_cloud_video_livestream_v1_resources_proto_enumTypes[4]
}
func (x LogConfig_LogSeverity) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use LogConfig_LogSeverity.Descriptor instead.
func (LogConfig_LogSeverity) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_video_livestream_v1_resources_proto_rawDescGZIP(), []int{3, 0}
}
// State of the event
type Event_State int32
const (
// Event state is not specified.
Event_STATE_UNSPECIFIED Event_State = 0
// Event is scheduled but not executed yet.
Event_SCHEDULED Event_State = 1
// Event is being executed.
Event_RUNNING Event_State = 2
// Event has been successfully executed.
Event_SUCCEEDED Event_State = 3
// Event fails to be executed.
Event_FAILED Event_State = 4
// Event has been created but not scheduled yet.
Event_PENDING Event_State = 5
// Event was stopped before running for its full duration.
Event_STOPPED Event_State = 6
)
// Enum value maps for Event_State.
var (
Event_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "SCHEDULED",
2: "RUNNING",
3: "SUCCEEDED",
4: "FAILED",
5: "PENDING",
6: "STOPPED",
}
Event_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"SCHEDULED": 1,
"RUNNING": 2,
"SUCCEEDED": 3,
"FAILED": 4,
"PENDING": 5,
"STOPPED": 6,
}
)
func (x Event_State) Enum() *Event_State {
p := new(Event_State)
*p = x
return p
}
func (x Event_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Event_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_video_livestream_v1_resources_proto_enumTypes[5].Descriptor()
}
func (Event_State) Type() protoreflect.EnumType {
return &file_google_cloud_video_livestream_v1_resources_proto_enumTypes[5]
}
func (x Event_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Event_State.Descriptor instead.
func (Event_State) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_video_livestream_v1_resources_proto_rawDescGZIP(), []int{10, 0}
}
// Input resource represents the endpoint from which the channel ingests
// the input stream.
type Input struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The resource name of the input, in the form of:
// `projects/{project}/locations/{location}/inputs/{inputId}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The creation time.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The update time.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// User-defined key/value metadata.
Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Source type.
Type Input_Type `protobuf:"varint,5,opt,name=type,proto3,enum=google.cloud.video.livestream.v1.Input_Type" json:"type,omitempty"`
// Tier defines the maximum input specification that is accepted by the
// video pipeline. The billing is charged based on the tier specified here.
// See [Pricing](https://cloud.google.com/livestream/pricing) for more detail.
// The default is `HD`.
Tier Input_Tier `protobuf:"varint,14,opt,name=tier,proto3,enum=google.cloud.video.livestream.v1.Input_Tier" json:"tier,omitempty"`
// Output only. URI to push the input stream to.
// Its format depends on the input
// [type][google.cloud.video.livestream.v1.Input.type], for example:
//
// * `RTMP_PUSH`: `rtmp://1.2.3.4/live/{STREAM-ID}`
// * `SRT_PUSH`: `srt://1.2.3.4:4201?streamid={STREAM-ID}`
Uri string `protobuf:"bytes,6,opt,name=uri,proto3" json:"uri,omitempty"`
// Preprocessing configurations.
PreprocessingConfig *PreprocessingConfig `protobuf:"bytes,9,opt,name=preprocessing_config,json=preprocessingConfig,proto3" json:"preprocessing_config,omitempty"`
// Security rule for access control.
SecurityRules *Input_SecurityRule `protobuf:"bytes,12,opt,name=security_rules,json=securityRules,proto3" json:"security_rules,omitempty"`
// Output only. The information for the input stream. This field will be
// present only when this input receives the input stream.
InputStreamProperty *InputStreamProperty `protobuf:"bytes,15,opt,name=input_stream_property,json=inputStreamProperty,proto3" json:"input_stream_property,omitempty"`
}
func (x *Input) Reset() {
*x = Input{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_video_livestream_v1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Input) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Input) ProtoMessage() {}
func (x *Input) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_video_livestream_v1_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Input.ProtoReflect.Descriptor instead.
func (*Input) Descriptor() ([]byte, []int) {
return file_google_cloud_video_livestream_v1_resources_proto_rawDescGZIP(), []int{0}
}
func (x *Input) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Input) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *Input) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *Input) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *Input) GetType() Input_Type {
if x != nil {
return x.Type
}
return Input_TYPE_UNSPECIFIED
}
func (x *Input) GetTier() Input_Tier {
if x != nil {
return x.Tier
}
return Input_TIER_UNSPECIFIED
}
func (x *Input) GetUri() string {
if x != nil {
return x.Uri
}
return ""
}
func (x *Input) GetPreprocessingConfig() *PreprocessingConfig {
if x != nil {
return x.PreprocessingConfig
}
return nil
}
func (x *Input) GetSecurityRules() *Input_SecurityRule {
if x != nil {
return x.SecurityRules
}
return nil
}
func (x *Input) GetInputStreamProperty() *InputStreamProperty {
if x != nil {
return x.InputStreamProperty
}
return nil
}
// Channel resource represents the processor that does a user-defined
// "streaming" operation, which includes getting an input stream through an
// input, transcoding it to multiple renditions, and publishing output live
// streams in certain formats (for example, HLS or DASH) to the specified
// location.
type Channel struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The resource name of the channel, in the form of:
// `projects/{project}/locations/{location}/channels/{channelId}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The creation time.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The update time.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// User-defined key/value metadata.
Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// A list of input attachments that this channel uses.
// One channel can have multiple inputs as the input sources. Only one
// input can be selected as the input source at one time.
InputAttachments []*InputAttachment `protobuf:"bytes,16,rep,name=input_attachments,json=inputAttachments,proto3" json:"input_attachments,omitempty"`
// Output only. The
// [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]
// that serves as the current input source. The first input in the
// [input_attachments][google.cloud.video.livestream.v1.Channel.input_attachments]
// is the initial input source.
ActiveInput string `protobuf:"bytes,6,opt,name=active_input,json=activeInput,proto3" json:"active_input,omitempty"`
// Required. Information about the output (that is, the Cloud Storage bucket
// to store the generated live stream).
Output *Channel_Output `protobuf:"bytes,9,opt,name=output,proto3" json:"output,omitempty"`
// List of elementary streams.
ElementaryStreams []*ElementaryStream `protobuf:"bytes,10,rep,name=elementary_streams,json=elementaryStreams,proto3" json:"elementary_streams,omitempty"`
// List of multiplexing settings for output streams.
MuxStreams []*MuxStream `protobuf:"bytes,11,rep,name=mux_streams,json=muxStreams,proto3" json:"mux_streams,omitempty"`
// List of output manifests.
Manifests []*Manifest `protobuf:"bytes,12,rep,name=manifests,proto3" json:"manifests,omitempty"`
// List of output sprite sheets.
SpriteSheets []*SpriteSheet `protobuf:"bytes,13,rep,name=sprite_sheets,json=spriteSheets,proto3" json:"sprite_sheets,omitempty"`
// Output only. State of the streaming operation.
StreamingState Channel_StreamingState `protobuf:"varint,14,opt,name=streaming_state,json=streamingState,proto3,enum=google.cloud.video.livestream.v1.Channel_StreamingState" json:"streaming_state,omitempty"`
// Output only. A description of the reason for the streaming error. This
// property is always present when
// [streaming_state][google.cloud.video.livestream.v1.Channel.streaming_state]
// is
// [STREAMING_ERROR][google.cloud.video.livestream.v1.Channel.StreamingState.STREAMING_ERROR].
StreamingError *status.Status `protobuf:"bytes,18,opt,name=streaming_error,json=streamingError,proto3" json:"streaming_error,omitempty"`
// Configuration of platform logs for this channel.
LogConfig *LogConfig `protobuf:"bytes,19,opt,name=log_config,json=logConfig,proto3" json:"log_config,omitempty"`
// Configuration of timecode for this channel.
TimecodeConfig *TimecodeConfig `protobuf:"bytes,21,opt,name=timecode_config,json=timecodeConfig,proto3" json:"timecode_config,omitempty"`
// Encryption configurations for this channel. Each configuration has an ID
// which is referred to by each MuxStream to indicate which configuration is
// used for that output.
Encryptions []*Encryption `protobuf:"bytes,24,rep,name=encryptions,proto3" json:"encryptions,omitempty"`
// The configuration for input sources defined in
// [input_attachments][google.cloud.video.livestream.v1.Channel.input_attachments].
InputConfig *InputConfig `protobuf:"bytes,25,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"`
}
func (x *Channel) Reset() {
*x = Channel{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_video_livestream_v1_resources_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Channel) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Channel) ProtoMessage() {}
func (x *Channel) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_video_livestream_v1_resources_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Channel.ProtoReflect.Descriptor instead.
func (*Channel) Descriptor() ([]byte, []int) {
return file_google_cloud_video_livestream_v1_resources_proto_rawDescGZIP(), []int{1}
}
func (x *Channel) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Channel) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *Channel) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *Channel) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *Channel) GetInputAttachments() []*InputAttachment {
if x != nil {
return x.InputAttachments
}
return nil
}
func (x *Channel) GetActiveInput() string {
if x != nil {
return x.ActiveInput
}
return ""
}
func (x *Channel) GetOutput() *Channel_Output {
if x != nil {
return x.Output
}
return nil
}
func (x *Channel) GetElementaryStreams() []*ElementaryStream {
if x != nil {
return x.ElementaryStreams
}
return nil
}
func (x *Channel) GetMuxStreams() []*MuxStream {
if x != nil {
return x.MuxStreams
}
return nil
}
func (x *Channel) GetManifests() []*Manifest {
if x != nil {
return x.Manifests
}
return nil
}
func (x *Channel) GetSpriteSheets() []*SpriteSheet {
if x != nil {
return x.SpriteSheets
}
return nil
}
func (x *Channel) GetStreamingState() Channel_StreamingState {
if x != nil {
return x.StreamingState
}
return Channel_STREAMING_STATE_UNSPECIFIED
}
func (x *Channel) GetStreamingError() *status.Status {
if x != nil {
return x.StreamingError
}
return nil
}
func (x *Channel) GetLogConfig() *LogConfig {
if x != nil {
return x.LogConfig
}
return nil
}
func (x *Channel) GetTimecodeConfig() *TimecodeConfig {
if x != nil {
return x.TimecodeConfig
}
return nil
}
func (x *Channel) GetEncryptions() []*Encryption {
if x != nil {
return x.Encryptions
}
return nil
}
func (x *Channel) GetInputConfig() *InputConfig {
if x != nil {
return x.InputConfig
}
return nil
}
// Configuration for the input sources of a channel.
type InputConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Input switch mode. Default mode is `FAILOVER_PREFER_PRIMARY`.
InputSwitchMode InputConfig_InputSwitchMode `protobuf:"varint,1,opt,name=input_switch_mode,json=inputSwitchMode,proto3,enum=google.cloud.video.livestream.v1.InputConfig_InputSwitchMode" json:"input_switch_mode,omitempty"`
}
func (x *InputConfig) Reset() {
*x = InputConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_video_livestream_v1_resources_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InputConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InputConfig) ProtoMessage() {}
func (x *InputConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_video_livestream_v1_resources_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use InputConfig.ProtoReflect.Descriptor instead.
func (*InputConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_video_livestream_v1_resources_proto_rawDescGZIP(), []int{2}
}
func (x *InputConfig) GetInputSwitchMode() InputConfig_InputSwitchMode {
if x != nil {
return x.InputSwitchMode
}
return InputConfig_INPUT_SWITCH_MODE_UNSPECIFIED
}
// Configuration of platform logs.
// See [Using and managing platform
// logs](https://cloud.google.com/logging/docs/api/platform-logs#managing-logs)
// for more information about how to view platform logs through Cloud Logging.
type LogConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The severity level of platform logging for this resource.
LogSeverity LogConfig_LogSeverity `protobuf:"varint,1,opt,name=log_severity,json=logSeverity,proto3,enum=google.cloud.video.livestream.v1.LogConfig_LogSeverity" json:"log_severity,omitempty"`
}
func (x *LogConfig) Reset() {
*x = LogConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_video_livestream_v1_resources_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LogConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LogConfig) ProtoMessage() {}
func (x *LogConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_video_livestream_v1_resources_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LogConfig.ProtoReflect.Descriptor instead.
func (*LogConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_video_livestream_v1_resources_proto_rawDescGZIP(), []int{3}
}
func (x *LogConfig) GetLogSeverity() LogConfig_LogSeverity {
if x != nil {
return x.LogSeverity
}
return LogConfig_LOG_SEVERITY_UNSPECIFIED
}
// Properties of the input stream.
type InputStreamProperty struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The time that the current input stream is accepted and the connection is
// established.
LastEstablishTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=last_establish_time,json=lastEstablishTime,proto3" json:"last_establish_time,omitempty"`
// Properties of the video streams.
VideoStreams []*VideoStreamProperty `protobuf:"bytes,2,rep,name=video_streams,json=videoStreams,proto3" json:"video_streams,omitempty"`
// Properties of the audio streams.
AudioStreams []*AudioStreamProperty `protobuf:"bytes,3,rep,name=audio_streams,json=audioStreams,proto3" json:"audio_streams,omitempty"`
}
func (x *InputStreamProperty) Reset() {
*x = InputStreamProperty{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_video_livestream_v1_resources_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InputStreamProperty) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InputStreamProperty) ProtoMessage() {}
func (x *InputStreamProperty) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_video_livestream_v1_resources_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use InputStreamProperty.ProtoReflect.Descriptor instead.
func (*InputStreamProperty) Descriptor() ([]byte, []int) {
return file_google_cloud_video_livestream_v1_resources_proto_rawDescGZIP(), []int{4}
}
func (x *InputStreamProperty) GetLastEstablishTime() *timestamppb.Timestamp {
if x != nil {
return x.LastEstablishTime
}
return nil
}
func (x *InputStreamProperty) GetVideoStreams() []*VideoStreamProperty {
if x != nil {
return x.VideoStreams
}
return nil
}
func (x *InputStreamProperty) GetAudioStreams() []*AudioStreamProperty {
if x != nil {
return x.AudioStreams
}
return nil
}
// Properties of the video stream.
type VideoStreamProperty struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Index of this video stream.
Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
// Properties of the video format.
VideoFormat *VideoFormat `protobuf:"bytes,2,opt,name=video_format,json=videoFormat,proto3" json:"video_format,omitempty"`
}
func (x *VideoStreamProperty) Reset() {
*x = VideoStreamProperty{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_video_livestream_v1_resources_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VideoStreamProperty) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VideoStreamProperty) ProtoMessage() {}
func (x *VideoStreamProperty) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_video_livestream_v1_resources_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VideoStreamProperty.ProtoReflect.Descriptor instead.
func (*VideoStreamProperty) Descriptor() ([]byte, []int) {
return file_google_cloud_video_livestream_v1_resources_proto_rawDescGZIP(), []int{5}
}
func (x *VideoStreamProperty) GetIndex() int32 {
if x != nil {
return x.Index