public final class CreateTransferConfigRequest extends com.google.protobuf.GeneratedMessageV3 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.CreateTransferConfigRequest| Modifier and Type | Class and Description |
|---|---|
static class |
CreateTransferConfigRequest.Builder
A request to create a data transfer configuration.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AUTHORIZATION_CODE_FIELD_NUMBER |
static int |
PARENT_FIELD_NUMBER |
static int |
SERVICE_ACCOUNT_NAME_FIELD_NUMBER |
static int |
TRANSFER_CONFIG_FIELD_NUMBER |
static int |
VERSION_INFO_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAuthorizationCode()
Optional OAuth2 authorization code to use with this transfer configuration.
|
com.google.protobuf.ByteString |
getAuthorizationCodeBytes()
Optional OAuth2 authorization code to use with this transfer configuration.
|
static CreateTransferConfigRequest |
getDefaultInstance() |
CreateTransferConfigRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getParent()
Required.
|
com.google.protobuf.ByteString |
getParentBytes()
Required.
|
com.google.protobuf.Parser<CreateTransferConfigRequest> |
getParserForType() |
int |
getSerializedSize() |
String |
getServiceAccountName()
Optional service account email.
|
com.google.protobuf.ByteString |
getServiceAccountNameBytes()
Optional service account email.
|
TransferConfig |
getTransferConfig()
Required.
|
TransferConfigOrBuilder |
getTransferConfigOrBuilder()
Required.
|
String |
getVersionInfo()
Optional version info.
|
com.google.protobuf.ByteString |
getVersionInfoBytes()
Optional version info.
|
int |
hashCode() |
boolean |
hasTransferConfig()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static CreateTransferConfigRequest.Builder |
newBuilder() |
static CreateTransferConfigRequest.Builder |
newBuilder(CreateTransferConfigRequest prototype) |
CreateTransferConfigRequest.Builder |
newBuilderForType() |
protected CreateTransferConfigRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CreateTransferConfigRequest |
parseDelimitedFrom(InputStream input) |
static CreateTransferConfigRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CreateTransferConfigRequest |
parseFrom(byte[] data) |
static CreateTransferConfigRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CreateTransferConfigRequest |
parseFrom(ByteBuffer data) |
static CreateTransferConfigRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CreateTransferConfigRequest |
parseFrom(com.google.protobuf.ByteString data) |
static CreateTransferConfigRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CreateTransferConfigRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CreateTransferConfigRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CreateTransferConfigRequest |
parseFrom(InputStream input) |
static CreateTransferConfigRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CreateTransferConfigRequest> |
parser() |
CreateTransferConfigRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PARENT_FIELD_NUMBER
public static final int TRANSFER_CONFIG_FIELD_NUMBER
public static final int AUTHORIZATION_CODE_FIELD_NUMBER
public static final int VERSION_INFO_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_NAME_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static CreateTransferConfigRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CreateTransferConfigRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CreateTransferConfigRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CreateTransferConfigRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CreateTransferConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CreateTransferConfigRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CreateTransferConfigRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static CreateTransferConfigRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CreateTransferConfigRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static CreateTransferConfigRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CreateTransferConfigRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static CreateTransferConfigRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic CreateTransferConfigRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static CreateTransferConfigRequest.Builder newBuilder()
public static CreateTransferConfigRequest.Builder newBuilder(CreateTransferConfigRequest prototype)
public CreateTransferConfigRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CreateTransferConfigRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static CreateTransferConfigRequest getDefaultInstance()
public static com.google.protobuf.Parser<CreateTransferConfigRequest> parser()
public com.google.protobuf.Parser<CreateTransferConfigRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public CreateTransferConfigRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.