-
Notifications
You must be signed in to change notification settings - Fork 460
Expand file tree
/
Copy pathListing.php
More file actions
883 lines (798 loc) · 32.4 KB
/
Listing.php
File metadata and controls
883 lines (798 loc) · 32.4 KB
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
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/bigquery/analyticshub/v1/analyticshub.proto
namespace Google\Cloud\BigQuery\AnalyticsHub\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;
/**
* A listing is what gets published into a data exchange that a subscriber can
* subscribe to. It contains a reference to the data source along with
* descriptive information that will help subscribers find and subscribe the
* data.
*
* Generated from protobuf message <code>google.cloud.bigquery.analyticshub.v1.Listing</code>
*/
class Listing extends \Google\Protobuf\Internal\Message
{
/**
* Output only. The resource name of the listing.
* e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`
*
* Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*/
protected $name = '';
/**
* Required. Human-readable display name of the listing. The display name must
* contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
* spaces ( ), ampersands (&) and can't start or end with spaces. Default
* value is an empty string. Max length: 63 bytes.
*
* Generated from protobuf field <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*/
protected $display_name = '';
/**
* Optional. Short description of the listing. The description must not
* contain Unicode non-characters and C0 and C1 control codes except tabs
* (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default
* value is an empty string. Max length: 2000 bytes.
*
* Generated from protobuf field <code>string description = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected $description = '';
/**
* Optional. Email or URL of the primary point of contact of the listing.
* Max Length: 1000 bytes.
*
* Generated from protobuf field <code>string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected $primary_contact = '';
/**
* Optional. Documentation describing the listing.
*
* Generated from protobuf field <code>string documentation = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected $documentation = '';
/**
* Output only. Current state of the listing.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*/
protected $state = 0;
/**
* Optional. Base64 encoded image representing the listing. Max Size: 3.0MiB
* Expected image dimensions are 512x512 pixels, however the API only
* performs validation on size of the encoded data.
* Note: For byte fields, the contents of the field are base64-encoded (which
* increases the size of the data by 33-36%) when using JSON on the wire.
*
* Generated from protobuf field <code>bytes icon = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected $icon = '';
/**
* Optional. Details of the data provider who owns the source data.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected $data_provider = null;
/**
* Optional. Categories of the listing. Up to five categories are allowed.
*
* Generated from protobuf field <code>repeated .google.cloud.bigquery.analyticshub.v1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
private $categories;
/**
* Optional. Details of the publisher who owns the listing and who can share
* the source data.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected $publisher = null;
/**
* Optional. Email or URL of the request access of the listing.
* Subscribers can use this reference to request access.
* Max Length: 1000 bytes.
*
* Generated from protobuf field <code>string request_access = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected $request_access = '';
/**
* Optional. If set, restricted export configuration will be propagated and
* enforced on the linked dataset.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.Listing.RestrictedExportConfig restricted_export_config = 13 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected $restricted_export_config = null;
/**
* Optional. If set, stored procedure configuration will be propagated and
* enforced on the linked dataset.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig stored_procedure_config = 20 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected $stored_procedure_config = null;
/**
* Optional. Type of discovery of the listing on the discovery page.
*
* Generated from protobuf field <code>optional .google.cloud.bigquery.analyticshub.v1.DiscoveryType discovery_type = 14 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected $discovery_type = null;
/**
* Output only. Listing shared asset type.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*/
protected $resource_type = 0;
/**
* Output only. Commercial info contains the information about the commercial
* data products associated with the listing.
*
* Generated from protobuf field <code>optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercial_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*/
protected $commercial_info = null;
/**
* Optional. By default, false.
* If true, the Listing has an email sharing mandate enabled.
*
* Generated from protobuf field <code>optional bool log_linked_dataset_query_user_email = 18 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected $log_linked_dataset_query_user_email = null;
/**
* Optional. If true, the listing is only available to get the resource
* metadata. Listing is non subscribable.
*
* Generated from protobuf field <code>optional bool allow_only_metadata_sharing = 19 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected $allow_only_metadata_sharing = null;
protected $source;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\BigQueryDatasetSource $bigquery_dataset
* Shared dataset i.e. BigQuery dataset source.
* @type \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\PubSubTopicSource $pubsub_topic
* Pub/Sub topic source.
* @type string $name
* Output only. The resource name of the listing.
* e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`
* @type string $display_name
* Required. Human-readable display name of the listing. The display name must
* contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
* spaces ( ), ampersands (&) and can't start or end with spaces. Default
* value is an empty string. Max length: 63 bytes.
* @type string $description
* Optional. Short description of the listing. The description must not
* contain Unicode non-characters and C0 and C1 control codes except tabs
* (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default
* value is an empty string. Max length: 2000 bytes.
* @type string $primary_contact
* Optional. Email or URL of the primary point of contact of the listing.
* Max Length: 1000 bytes.
* @type string $documentation
* Optional. Documentation describing the listing.
* @type int $state
* Output only. Current state of the listing.
* @type string $icon
* Optional. Base64 encoded image representing the listing. Max Size: 3.0MiB
* Expected image dimensions are 512x512 pixels, however the API only
* performs validation on size of the encoded data.
* Note: For byte fields, the contents of the field are base64-encoded (which
* increases the size of the data by 33-36%) when using JSON on the wire.
* @type \Google\Cloud\BigQuery\AnalyticsHub\V1\DataProvider $data_provider
* Optional. Details of the data provider who owns the source data.
* @type int[] $categories
* Optional. Categories of the listing. Up to five categories are allowed.
* @type \Google\Cloud\BigQuery\AnalyticsHub\V1\Publisher $publisher
* Optional. Details of the publisher who owns the listing and who can share
* the source data.
* @type string $request_access
* Optional. Email or URL of the request access of the listing.
* Subscribers can use this reference to request access.
* Max Length: 1000 bytes.
* @type \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\RestrictedExportConfig $restricted_export_config
* Optional. If set, restricted export configuration will be propagated and
* enforced on the linked dataset.
* @type \Google\Cloud\BigQuery\AnalyticsHub\V1\StoredProcedureConfig $stored_procedure_config
* Optional. If set, stored procedure configuration will be propagated and
* enforced on the linked dataset.
* @type int $discovery_type
* Optional. Type of discovery of the listing on the discovery page.
* @type int $resource_type
* Output only. Listing shared asset type.
* @type \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\CommercialInfo $commercial_info
* Output only. Commercial info contains the information about the commercial
* data products associated with the listing.
* @type bool $log_linked_dataset_query_user_email
* Optional. By default, false.
* If true, the Listing has an email sharing mandate enabled.
* @type bool $allow_only_metadata_sharing
* Optional. If true, the listing is only available to get the resource
* metadata. Listing is non subscribable.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Bigquery\Analyticshub\V1\Analyticshub::initOnce();
parent::__construct($data);
}
/**
* Shared dataset i.e. BigQuery dataset source.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource bigquery_dataset = 6;</code>
* @return \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\BigQueryDatasetSource|null
*/
public function getBigqueryDataset()
{
return $this->readOneof(6);
}
public function hasBigqueryDataset()
{
return $this->hasOneof(6);
}
/**
* Shared dataset i.e. BigQuery dataset source.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource bigquery_dataset = 6;</code>
* @param \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\BigQueryDatasetSource $var
* @return $this
*/
public function setBigqueryDataset($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\BigQueryDatasetSource::class);
$this->writeOneof(6, $var);
return $this;
}
/**
* Pub/Sub topic source.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.Listing.PubSubTopicSource pubsub_topic = 16;</code>
* @return \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\PubSubTopicSource|null
*/
public function getPubsubTopic()
{
return $this->readOneof(16);
}
public function hasPubsubTopic()
{
return $this->hasOneof(16);
}
/**
* Pub/Sub topic source.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.Listing.PubSubTopicSource pubsub_topic = 16;</code>
* @param \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\PubSubTopicSource $var
* @return $this
*/
public function setPubsubTopic($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\PubSubTopicSource::class);
$this->writeOneof(16, $var);
return $this;
}
/**
* Output only. The resource name of the listing.
* e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`
*
* Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The resource name of the listing.
* e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`
*
* Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Required. Human-readable display name of the listing. The display name must
* contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
* spaces ( ), ampersands (&) and can't start or end with spaces. Default
* value is an empty string. Max length: 63 bytes.
*
* Generated from protobuf field <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
* @return string
*/
public function getDisplayName()
{
return $this->display_name;
}
/**
* Required. Human-readable display name of the listing. The display name must
* contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
* spaces ( ), ampersands (&) and can't start or end with spaces. Default
* value is an empty string. Max length: 63 bytes.
*
* Generated from protobuf field <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
* @param string $var
* @return $this
*/
public function setDisplayName($var)
{
GPBUtil::checkString($var, True);
$this->display_name = $var;
return $this;
}
/**
* Optional. Short description of the listing. The description must not
* contain Unicode non-characters and C0 and C1 control codes except tabs
* (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default
* value is an empty string. Max length: 2000 bytes.
*
* Generated from protobuf field <code>string description = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. Short description of the listing. The description must not
* contain Unicode non-characters and C0 and C1 control codes except tabs
* (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default
* value is an empty string. Max length: 2000 bytes.
*
* Generated from protobuf field <code>string description = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param string $var
* @return $this
*/
public function setDescription($var)
{
GPBUtil::checkString($var, True);
$this->description = $var;
return $this;
}
/**
* Optional. Email or URL of the primary point of contact of the listing.
* Max Length: 1000 bytes.
*
* Generated from protobuf field <code>string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return string
*/
public function getPrimaryContact()
{
return $this->primary_contact;
}
/**
* Optional. Email or URL of the primary point of contact of the listing.
* Max Length: 1000 bytes.
*
* Generated from protobuf field <code>string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param string $var
* @return $this
*/
public function setPrimaryContact($var)
{
GPBUtil::checkString($var, True);
$this->primary_contact = $var;
return $this;
}
/**
* Optional. Documentation describing the listing.
*
* Generated from protobuf field <code>string documentation = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return string
*/
public function getDocumentation()
{
return $this->documentation;
}
/**
* Optional. Documentation describing the listing.
*
* Generated from protobuf field <code>string documentation = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param string $var
* @return $this
*/
public function setDocumentation($var)
{
GPBUtil::checkString($var, True);
$this->documentation = $var;
return $this;
}
/**
* Output only. Current state of the listing.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* @return int
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Current state of the listing.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* @param int $var
* @return $this
*/
public function setState($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\State::class);
$this->state = $var;
return $this;
}
/**
* Optional. Base64 encoded image representing the listing. Max Size: 3.0MiB
* Expected image dimensions are 512x512 pixels, however the API only
* performs validation on size of the encoded data.
* Note: For byte fields, the contents of the field are base64-encoded (which
* increases the size of the data by 33-36%) when using JSON on the wire.
*
* Generated from protobuf field <code>bytes icon = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return string
*/
public function getIcon()
{
return $this->icon;
}
/**
* Optional. Base64 encoded image representing the listing. Max Size: 3.0MiB
* Expected image dimensions are 512x512 pixels, however the API only
* performs validation on size of the encoded data.
* Note: For byte fields, the contents of the field are base64-encoded (which
* increases the size of the data by 33-36%) when using JSON on the wire.
*
* Generated from protobuf field <code>bytes icon = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param string $var
* @return $this
*/
public function setIcon($var)
{
GPBUtil::checkString($var, False);
$this->icon = $var;
return $this;
}
/**
* Optional. Details of the data provider who owns the source data.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return \Google\Cloud\BigQuery\AnalyticsHub\V1\DataProvider|null
*/
public function getDataProvider()
{
return $this->data_provider;
}
public function hasDataProvider()
{
return isset($this->data_provider);
}
public function clearDataProvider()
{
unset($this->data_provider);
}
/**
* Optional. Details of the data provider who owns the source data.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param \Google\Cloud\BigQuery\AnalyticsHub\V1\DataProvider $var
* @return $this
*/
public function setDataProvider($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\AnalyticsHub\V1\DataProvider::class);
$this->data_provider = $var;
return $this;
}
/**
* Optional. Categories of the listing. Up to five categories are allowed.
*
* Generated from protobuf field <code>repeated .google.cloud.bigquery.analyticshub.v1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return RepeatedField<int>
*/
public function getCategories()
{
return $this->categories;
}
/**
* Optional. Categories of the listing. Up to five categories are allowed.
*
* Generated from protobuf field <code>repeated .google.cloud.bigquery.analyticshub.v1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param int[] $var
* @return $this
*/
public function setCategories($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\Category::class);
$this->categories = $arr;
return $this;
}
/**
* Optional. Details of the publisher who owns the listing and who can share
* the source data.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return \Google\Cloud\BigQuery\AnalyticsHub\V1\Publisher|null
*/
public function getPublisher()
{
return $this->publisher;
}
public function hasPublisher()
{
return isset($this->publisher);
}
public function clearPublisher()
{
unset($this->publisher);
}
/**
* Optional. Details of the publisher who owns the listing and who can share
* the source data.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param \Google\Cloud\BigQuery\AnalyticsHub\V1\Publisher $var
* @return $this
*/
public function setPublisher($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\AnalyticsHub\V1\Publisher::class);
$this->publisher = $var;
return $this;
}
/**
* Optional. Email or URL of the request access of the listing.
* Subscribers can use this reference to request access.
* Max Length: 1000 bytes.
*
* Generated from protobuf field <code>string request_access = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return string
*/
public function getRequestAccess()
{
return $this->request_access;
}
/**
* Optional. Email or URL of the request access of the listing.
* Subscribers can use this reference to request access.
* Max Length: 1000 bytes.
*
* Generated from protobuf field <code>string request_access = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param string $var
* @return $this
*/
public function setRequestAccess($var)
{
GPBUtil::checkString($var, True);
$this->request_access = $var;
return $this;
}
/**
* Optional. If set, restricted export configuration will be propagated and
* enforced on the linked dataset.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.Listing.RestrictedExportConfig restricted_export_config = 13 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\RestrictedExportConfig|null
*/
public function getRestrictedExportConfig()
{
return $this->restricted_export_config;
}
public function hasRestrictedExportConfig()
{
return isset($this->restricted_export_config);
}
public function clearRestrictedExportConfig()
{
unset($this->restricted_export_config);
}
/**
* Optional. If set, restricted export configuration will be propagated and
* enforced on the linked dataset.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.Listing.RestrictedExportConfig restricted_export_config = 13 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\RestrictedExportConfig $var
* @return $this
*/
public function setRestrictedExportConfig($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\RestrictedExportConfig::class);
$this->restricted_export_config = $var;
return $this;
}
/**
* Optional. If set, stored procedure configuration will be propagated and
* enforced on the linked dataset.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig stored_procedure_config = 20 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return \Google\Cloud\BigQuery\AnalyticsHub\V1\StoredProcedureConfig|null
*/
public function getStoredProcedureConfig()
{
return $this->stored_procedure_config;
}
public function hasStoredProcedureConfig()
{
return isset($this->stored_procedure_config);
}
public function clearStoredProcedureConfig()
{
unset($this->stored_procedure_config);
}
/**
* Optional. If set, stored procedure configuration will be propagated and
* enforced on the linked dataset.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.StoredProcedureConfig stored_procedure_config = 20 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param \Google\Cloud\BigQuery\AnalyticsHub\V1\StoredProcedureConfig $var
* @return $this
*/
public function setStoredProcedureConfig($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\AnalyticsHub\V1\StoredProcedureConfig::class);
$this->stored_procedure_config = $var;
return $this;
}
/**
* Optional. Type of discovery of the listing on the discovery page.
*
* Generated from protobuf field <code>optional .google.cloud.bigquery.analyticshub.v1.DiscoveryType discovery_type = 14 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return int
*/
public function getDiscoveryType()
{
return isset($this->discovery_type) ? $this->discovery_type : 0;
}
public function hasDiscoveryType()
{
return isset($this->discovery_type);
}
public function clearDiscoveryType()
{
unset($this->discovery_type);
}
/**
* Optional. Type of discovery of the listing on the discovery page.
*
* Generated from protobuf field <code>optional .google.cloud.bigquery.analyticshub.v1.DiscoveryType discovery_type = 14 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param int $var
* @return $this
*/
public function setDiscoveryType($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\AnalyticsHub\V1\DiscoveryType::class);
$this->discovery_type = $var;
return $this;
}
/**
* Output only. Listing shared asset type.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* @return int
*/
public function getResourceType()
{
return $this->resource_type;
}
/**
* Output only. Listing shared asset type.
*
* Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* @param int $var
* @return $this
*/
public function setResourceType($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\AnalyticsHub\V1\SharedResourceType::class);
$this->resource_type = $var;
return $this;
}
/**
* Output only. Commercial info contains the information about the commercial
* data products associated with the listing.
*
* Generated from protobuf field <code>optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercial_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* @return \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\CommercialInfo|null
*/
public function getCommercialInfo()
{
return $this->commercial_info;
}
public function hasCommercialInfo()
{
return isset($this->commercial_info);
}
public function clearCommercialInfo()
{
unset($this->commercial_info);
}
/**
* Output only. Commercial info contains the information about the commercial
* data products associated with the listing.
*
* Generated from protobuf field <code>optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercial_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* @param \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\CommercialInfo $var
* @return $this
*/
public function setCommercialInfo($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\AnalyticsHub\V1\Listing\CommercialInfo::class);
$this->commercial_info = $var;
return $this;
}
/**
* Optional. By default, false.
* If true, the Listing has an email sharing mandate enabled.
*
* Generated from protobuf field <code>optional bool log_linked_dataset_query_user_email = 18 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return bool
*/
public function getLogLinkedDatasetQueryUserEmail()
{
return isset($this->log_linked_dataset_query_user_email) ? $this->log_linked_dataset_query_user_email : false;
}
public function hasLogLinkedDatasetQueryUserEmail()
{
return isset($this->log_linked_dataset_query_user_email);
}
public function clearLogLinkedDatasetQueryUserEmail()
{
unset($this->log_linked_dataset_query_user_email);
}
/**
* Optional. By default, false.
* If true, the Listing has an email sharing mandate enabled.
*
* Generated from protobuf field <code>optional bool log_linked_dataset_query_user_email = 18 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param bool $var
* @return $this
*/
public function setLogLinkedDatasetQueryUserEmail($var)
{
GPBUtil::checkBool($var);
$this->log_linked_dataset_query_user_email = $var;
return $this;
}
/**
* Optional. If true, the listing is only available to get the resource
* metadata. Listing is non subscribable.
*
* Generated from protobuf field <code>optional bool allow_only_metadata_sharing = 19 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return bool
*/
public function getAllowOnlyMetadataSharing()
{
return isset($this->allow_only_metadata_sharing) ? $this->allow_only_metadata_sharing : false;
}
public function hasAllowOnlyMetadataSharing()
{
return isset($this->allow_only_metadata_sharing);
}
public function clearAllowOnlyMetadataSharing()
{
unset($this->allow_only_metadata_sharing);
}
/**
* Optional. If true, the listing is only available to get the resource
* metadata. Listing is non subscribable.
*
* Generated from protobuf field <code>optional bool allow_only_metadata_sharing = 19 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param bool $var
* @return $this
*/
public function setAllowOnlyMetadataSharing($var)
{
GPBUtil::checkBool($var);
$this->allow_only_metadata_sharing = $var;
return $this;
}
/**
* @return string
*/
public function getSource()
{
return $this->whichOneof("source");
}
}