This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
/
CreateTransferConfigRequestOrBuilder.java
220 lines (213 loc) · 7.63 KB
/
CreateTransferConfigRequestOrBuilder.java
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
/*
* Copyright 2020 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
*
* https://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.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto
package com.google.cloud.bigquery.datatransfer.v1;
public interface CreateTransferConfigRequestOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
*
* <pre>
* Required. The BigQuery project id where the transfer configuration should be created.
* Must be in the format projects/{project_id}/locations/{location_id} or
* projects/{project_id}. If specified location and location of the
* destination bigquery dataset do not match - the request will fail.
* </pre>
*
* <code>
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
* </code>
*
* @return The parent.
*/
java.lang.String getParent();
/**
*
*
* <pre>
* Required. The BigQuery project id where the transfer configuration should be created.
* Must be in the format projects/{project_id}/locations/{location_id} or
* projects/{project_id}. If specified location and location of the
* destination bigquery dataset do not match - the request will fail.
* </pre>
*
* <code>
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
* </code>
*
* @return The bytes for parent.
*/
com.google.protobuf.ByteString getParentBytes();
/**
*
*
* <pre>
* Required. Data transfer configuration to create.
* </pre>
*
* <code>
* .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return Whether the transferConfig field is set.
*/
boolean hasTransferConfig();
/**
*
*
* <pre>
* Required. Data transfer configuration to create.
* </pre>
*
* <code>
* .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return The transferConfig.
*/
com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig();
/**
*
*
* <pre>
* Required. Data transfer configuration to create.
* </pre>
*
* <code>
* .google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*/
com.google.cloud.bigquery.datatransfer.v1.TransferConfigOrBuilder getTransferConfigOrBuilder();
/**
*
*
* <pre>
* Optional OAuth2 authorization code to use with this transfer configuration.
* This is required if new credentials are needed, as indicated by
* `CheckValidCreds`.
* In order to obtain authorization_code, please make a
* request to
* https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
* * client_id should be OAuth client_id of BigQuery DTS API for the given
* data source returned by ListDataSources method.
* * data_source_scopes are the scopes returned by ListDataSources method.
* * redirect_uri is an optional parameter. If not specified, then
* authorization code is posted to the opener of authorization flow window.
* Otherwise it will be sent to the redirect uri. A special value of
* urn:ietf:wg:oauth:2.0:oob means that authorization code should be
* returned in the title bar of the browser, with the page text prompting
* the user to copy the code and paste it in the application.
* </pre>
*
* <code>string authorization_code = 3;</code>
*
* @return The authorizationCode.
*/
java.lang.String getAuthorizationCode();
/**
*
*
* <pre>
* Optional OAuth2 authorization code to use with this transfer configuration.
* This is required if new credentials are needed, as indicated by
* `CheckValidCreds`.
* In order to obtain authorization_code, please make a
* request to
* https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
* * client_id should be OAuth client_id of BigQuery DTS API for the given
* data source returned by ListDataSources method.
* * data_source_scopes are the scopes returned by ListDataSources method.
* * redirect_uri is an optional parameter. If not specified, then
* authorization code is posted to the opener of authorization flow window.
* Otherwise it will be sent to the redirect uri. A special value of
* urn:ietf:wg:oauth:2.0:oob means that authorization code should be
* returned in the title bar of the browser, with the page text prompting
* the user to copy the code and paste it in the application.
* </pre>
*
* <code>string authorization_code = 3;</code>
*
* @return The bytes for authorizationCode.
*/
com.google.protobuf.ByteString getAuthorizationCodeBytes();
/**
*
*
* <pre>
* Optional version info. If users want to find a very recent access token,
* that is, immediately after approving access, users have to set the
* version_info claim in the token request. To obtain the version_info, users
* must use the "none+gsession" response type. which be return a
* version_info back in the authorization response which be be put in a JWT
* claim in the token request.
* </pre>
*
* <code>string version_info = 5;</code>
*
* @return The versionInfo.
*/
java.lang.String getVersionInfo();
/**
*
*
* <pre>
* Optional version info. If users want to find a very recent access token,
* that is, immediately after approving access, users have to set the
* version_info claim in the token request. To obtain the version_info, users
* must use the "none+gsession" response type. which be return a
* version_info back in the authorization response which be be put in a JWT
* claim in the token request.
* </pre>
*
* <code>string version_info = 5;</code>
*
* @return The bytes for versionInfo.
*/
com.google.protobuf.ByteString getVersionInfoBytes();
/**
*
*
* <pre>
* Optional service account name. If this field is set, transfer config will
* be created with this service account credentials. It requires that
* requesting user calling this API has permissions to act as this service
* account.
* </pre>
*
* <code>string service_account_name = 6;</code>
*
* @return The serviceAccountName.
*/
java.lang.String getServiceAccountName();
/**
*
*
* <pre>
* Optional service account name. If this field is set, transfer config will
* be created with this service account credentials. It requires that
* requesting user calling this API has permissions to act as this service
* account.
* </pre>
*
* <code>string service_account_name = 6;</code>
*
* @return The bytes for serviceAccountName.
*/
com.google.protobuf.ByteString getServiceAccountNameBytes();
}