public static final class CreateTransferConfigRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateTransferConfigRequest.Builder> implements CreateTransferConfigRequestOrBuilder
A request to create a data transfer configuration. If new credentials are needed for this transfer configuration, authorization info must be provided. If authorization info is provided, the transfer configuration will be associated with the user id corresponding to the authorization info. Otherwise, the transfer configuration will be associated with the calling user.Protobuf type
google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequestgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTransferConfigRequest.Builder>public CreateTransferConfigRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTransferConfigRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTransferConfigRequest.Builder>public CreateTransferConfigRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CreateTransferConfigRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CreateTransferConfigRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CreateTransferConfigRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTransferConfigRequest.Builder>public CreateTransferConfigRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTransferConfigRequest.Builder>public CreateTransferConfigRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTransferConfigRequest.Builder>public CreateTransferConfigRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTransferConfigRequest.Builder>public CreateTransferConfigRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTransferConfigRequest.Builder>public CreateTransferConfigRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTransferConfigRequest.Builder>public CreateTransferConfigRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateTransferConfigRequest.Builder>public CreateTransferConfigRequest.Builder mergeFrom(CreateTransferConfigRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTransferConfigRequest.Builder>public CreateTransferConfigRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateTransferConfigRequest.Builder>IOExceptionpublic String getParent()
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.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParent in interface CreateTransferConfigRequestOrBuilderpublic com.google.protobuf.ByteString getParentBytes()
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.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParentBytes in interface CreateTransferConfigRequestOrBuilderpublic CreateTransferConfigRequest.Builder setParent(String value)
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.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The parent to set.public CreateTransferConfigRequest.Builder clearParent()
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.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public CreateTransferConfigRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
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.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for parent to set.public boolean hasTransferConfig()
Required. Data transfer configuration to create.
.google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED];
hasTransferConfig in interface CreateTransferConfigRequestOrBuilderpublic TransferConfig getTransferConfig()
Required. Data transfer configuration to create.
.google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED];
getTransferConfig in interface CreateTransferConfigRequestOrBuilderpublic CreateTransferConfigRequest.Builder setTransferConfig(TransferConfig value)
Required. Data transfer configuration to create.
.google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED];
public CreateTransferConfigRequest.Builder setTransferConfig(TransferConfig.Builder builderForValue)
Required. Data transfer configuration to create.
.google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED];
public CreateTransferConfigRequest.Builder mergeTransferConfig(TransferConfig value)
Required. Data transfer configuration to create.
.google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED];
public CreateTransferConfigRequest.Builder clearTransferConfig()
Required. Data transfer configuration to create.
.google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED];
public TransferConfig.Builder getTransferConfigBuilder()
Required. Data transfer configuration to create.
.google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED];
public TransferConfigOrBuilder getTransferConfigOrBuilder()
Required. Data transfer configuration to create.
.google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 2 [(.google.api.field_behavior) = REQUIRED];
getTransferConfigOrBuilder in interface CreateTransferConfigRequestOrBuilderpublic String getAuthorizationCode()
Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, make a request to the following URL: <pre class="prettyprint" suppresswarning="true"> https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var> </pre> * The <var>client_id</var> is the OAuth client_id of the a data source as returned by ListDataSources method. * <var>data_source_scopes</var> are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.
string authorization_code = 3;getAuthorizationCode in interface CreateTransferConfigRequestOrBuilderpublic com.google.protobuf.ByteString getAuthorizationCodeBytes()
Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, make a request to the following URL: <pre class="prettyprint" suppresswarning="true"> https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var> </pre> * The <var>client_id</var> is the OAuth client_id of the a data source as returned by ListDataSources method. * <var>data_source_scopes</var> are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.
string authorization_code = 3;getAuthorizationCodeBytes in interface CreateTransferConfigRequestOrBuilderpublic CreateTransferConfigRequest.Builder setAuthorizationCode(String value)
Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, make a request to the following URL: <pre class="prettyprint" suppresswarning="true"> https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var> </pre> * The <var>client_id</var> is the OAuth client_id of the a data source as returned by ListDataSources method. * <var>data_source_scopes</var> are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.
string authorization_code = 3;value - The authorizationCode to set.public CreateTransferConfigRequest.Builder clearAuthorizationCode()
Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, make a request to the following URL: <pre class="prettyprint" suppresswarning="true"> https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var> </pre> * The <var>client_id</var> is the OAuth client_id of the a data source as returned by ListDataSources method. * <var>data_source_scopes</var> are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.
string authorization_code = 3;public CreateTransferConfigRequest.Builder setAuthorizationCodeBytes(com.google.protobuf.ByteString value)
Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, make a request to the following URL: <pre class="prettyprint" suppresswarning="true"> https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var> </pre> * The <var>client_id</var> is the OAuth client_id of the a data source as returned by ListDataSources method. * <var>data_source_scopes</var> are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.
string authorization_code = 3;value - The bytes for authorizationCode to set.public String getVersionInfo()
Optional version info. This is required only if `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain version info, make a request to the following URL: <pre class="prettyprint" suppresswarning="true"> https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var> </pre> * The <var>client_id</var> is the OAuth client_id of the a data source as returned by ListDataSources method. * <var>data_source_scopes</var> are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.
string version_info = 5;getVersionInfo in interface CreateTransferConfigRequestOrBuilderpublic com.google.protobuf.ByteString getVersionInfoBytes()
Optional version info. This is required only if `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain version info, make a request to the following URL: <pre class="prettyprint" suppresswarning="true"> https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var> </pre> * The <var>client_id</var> is the OAuth client_id of the a data source as returned by ListDataSources method. * <var>data_source_scopes</var> are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.
string version_info = 5;getVersionInfoBytes in interface CreateTransferConfigRequestOrBuilderpublic CreateTransferConfigRequest.Builder setVersionInfo(String value)
Optional version info. This is required only if `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain version info, make a request to the following URL: <pre class="prettyprint" suppresswarning="true"> https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var> </pre> * The <var>client_id</var> is the OAuth client_id of the a data source as returned by ListDataSources method. * <var>data_source_scopes</var> are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.
string version_info = 5;value - The versionInfo to set.public CreateTransferConfigRequest.Builder clearVersionInfo()
Optional version info. This is required only if `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain version info, make a request to the following URL: <pre class="prettyprint" suppresswarning="true"> https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var> </pre> * The <var>client_id</var> is the OAuth client_id of the a data source as returned by ListDataSources method. * <var>data_source_scopes</var> are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.
string version_info = 5;public CreateTransferConfigRequest.Builder setVersionInfoBytes(com.google.protobuf.ByteString value)
Optional version info. This is required only if `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain version info, make a request to the following URL: <pre class="prettyprint" suppresswarning="true"> https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var> </pre> * The <var>client_id</var> is the OAuth client_id of the a data source as returned by ListDataSources method. * <var>data_source_scopes</var> are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.
string version_info = 5;value - The bytes for versionInfo to set.public String getServiceAccountName()
Optional service account email. If this field is set, the transfer config will be created with this service account's credentials. It requires that the requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating a transfer config. For the latest list of data sources, read about [using service accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
string service_account_name = 6;getServiceAccountName in interface CreateTransferConfigRequestOrBuilderpublic com.google.protobuf.ByteString getServiceAccountNameBytes()
Optional service account email. If this field is set, the transfer config will be created with this service account's credentials. It requires that the requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating a transfer config. For the latest list of data sources, read about [using service accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
string service_account_name = 6;getServiceAccountNameBytes in interface CreateTransferConfigRequestOrBuilderpublic CreateTransferConfigRequest.Builder setServiceAccountName(String value)
Optional service account email. If this field is set, the transfer config will be created with this service account's credentials. It requires that the requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating a transfer config. For the latest list of data sources, read about [using service accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
string service_account_name = 6;value - The serviceAccountName to set.public CreateTransferConfigRequest.Builder clearServiceAccountName()
Optional service account email. If this field is set, the transfer config will be created with this service account's credentials. It requires that the requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating a transfer config. For the latest list of data sources, read about [using service accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
string service_account_name = 6;public CreateTransferConfigRequest.Builder setServiceAccountNameBytes(com.google.protobuf.ByteString value)
Optional service account email. If this field is set, the transfer config will be created with this service account's credentials. It requires that the requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating a transfer config. For the latest list of data sources, read about [using service accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
string service_account_name = 6;value - The bytes for serviceAccountName to set.public final CreateTransferConfigRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTransferConfigRequest.Builder>public final CreateTransferConfigRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTransferConfigRequest.Builder>Copyright © 2023 Google LLC. All rights reserved.