Repository navigation
Expand file tree
/
Copy pathImportCompletionDataRequest.php
More file actions
165 lines (148 loc) · 5.87 KB
/
Copy pathImportCompletionDataRequest.php
File metadata and controls
165 lines (148 loc) · 5.87 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
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/retail/v2/import_config.proto
namespace Google\Cloud\Retail\V2;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Request message for ImportCompletionData methods.
*
* Generated from protobuf message <code>google.cloud.retail.v2.ImportCompletionDataRequest</code>
*/
class ImportCompletionDataRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. The catalog which the suggestions dataset belongs to.
* Format: `projects/1234/locations/global/catalogs/default_catalog`.
*
* Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
*/
private $parent = '';
/**
* Required. The desired input location of the data.
*
* Generated from protobuf field <code>.google.cloud.retail.v2.CompletionDataInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*/
private $input_config = null;
/**
* Pub/Sub topic for receiving notification. If this field is set,
* when the import is finished, a notification will be sent to
* specified Pub/Sub topic. The message data will be JSON string of a
* [Operation][google.longrunning.Operation].
* Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.
*
* Generated from protobuf field <code>string notification_pubsub_topic = 3;</code>
*/
private $notification_pubsub_topic = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $parent
* Required. The catalog which the suggestions dataset belongs to.
* Format: `projects/1234/locations/global/catalogs/default_catalog`.
* @type \Google\Cloud\Retail\V2\CompletionDataInputConfig $input_config
* Required. The desired input location of the data.
* @type string $notification_pubsub_topic
* Pub/Sub topic for receiving notification. If this field is set,
* when the import is finished, a notification will be sent to
* specified Pub/Sub topic. The message data will be JSON string of a
* [Operation][google.longrunning.Operation].
* Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Retail\V2\ImportConfig::initOnce();
parent::__construct($data);
}
/**
* Required. The catalog which the suggestions dataset belongs to.
* Format: `projects/1234/locations/global/catalogs/default_catalog`.
*
* Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* Required. The catalog which the suggestions dataset belongs to.
* Format: `projects/1234/locations/global/catalogs/default_catalog`.
*
* Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
* @param string $var
* @return $this
*/
public function setParent($var)
{
GPBUtil::checkString($var, True);
$this->parent = $var;
return $this;
}
/**
* Required. The desired input location of the data.
*
* Generated from protobuf field <code>.google.cloud.retail.v2.CompletionDataInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];</code>
* @return \Google\Cloud\Retail\V2\CompletionDataInputConfig|null
*/
public function getInputConfig()
{
return $this->input_config;
}
public function hasInputConfig()
{
return isset($this->input_config);
}
public function clearInputConfig()
{
unset($this->input_config);
}
/**
* Required. The desired input location of the data.
*
* Generated from protobuf field <code>.google.cloud.retail.v2.CompletionDataInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];</code>
* @param \Google\Cloud\Retail\V2\CompletionDataInputConfig $var
* @return $this
*/
public function setInputConfig($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Retail\V2\CompletionDataInputConfig::class);
$this->input_config = $var;
return $this;
}
/**
* Pub/Sub topic for receiving notification. If this field is set,
* when the import is finished, a notification will be sent to
* specified Pub/Sub topic. The message data will be JSON string of a
* [Operation][google.longrunning.Operation].
* Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.
*
* Generated from protobuf field <code>string notification_pubsub_topic = 3;</code>
* @return string
*/
public function getNotificationPubsubTopic()
{
return $this->notification_pubsub_topic;
}
/**
* Pub/Sub topic for receiving notification. If this field is set,
* when the import is finished, a notification will be sent to
* specified Pub/Sub topic. The message data will be JSON string of a
* [Operation][google.longrunning.Operation].
* Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.
*
* Generated from protobuf field <code>string notification_pubsub_topic = 3;</code>
* @param string $var
* @return $this
*/
public function setNotificationPubsubTopic($var)
{
GPBUtil::checkString($var, True);
$this->notification_pubsub_topic = $var;
return $this;
}
}