public final class UpdateTransferConfigRequest extends com.google.protobuf.GeneratedMessageV3 implements UpdateTransferConfigRequestOrBuilder
A request to update a transfer configuration. To update the user id of the transfer configuration, authorization info needs to be provided.Protobuf type
google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest| Modifier and Type | Class and Description |
|---|---|
static class |
UpdateTransferConfigRequest.Builder
A request to update a 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 |
SERVICE_ACCOUNT_NAME_FIELD_NUMBER |
static int |
TRANSFER_CONFIG_FIELD_NUMBER |
static int |
UPDATE_MASK_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 UpdateTransferConfigRequest |
getDefaultInstance() |
UpdateTransferConfigRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<UpdateTransferConfigRequest> |
getParserForType() |
int |
getSerializedSize() |
String |
getServiceAccountName()
Optional service account email.
|
com.google.protobuf.ByteString |
getServiceAccountNameBytes()
Optional service account email.
|
TransferConfig |
getTransferConfig()
Required.
|
TransferConfigOrBuilder |
getTransferConfigOrBuilder()
Required.
|
com.google.protobuf.FieldMask |
getUpdateMask()
Required.
|
com.google.protobuf.FieldMaskOrBuilder |
getUpdateMaskOrBuilder()
Required.
|
String |
getVersionInfo()
Optional version info.
|
com.google.protobuf.ByteString |
getVersionInfoBytes()
Optional version info.
|
int |
hashCode() |
boolean |
hasTransferConfig()
Required.
|
boolean |
hasUpdateMask()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static UpdateTransferConfigRequest.Builder |
newBuilder() |
static UpdateTransferConfigRequest.Builder |
newBuilder(UpdateTransferConfigRequest prototype) |
UpdateTransferConfigRequest.Builder |
newBuilderForType() |
protected UpdateTransferConfigRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static UpdateTransferConfigRequest |
parseDelimitedFrom(InputStream input) |
static UpdateTransferConfigRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UpdateTransferConfigRequest |
parseFrom(byte[] data) |
static UpdateTransferConfigRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UpdateTransferConfigRequest |
parseFrom(ByteBuffer data) |
static UpdateTransferConfigRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UpdateTransferConfigRequest |
parseFrom(com.google.protobuf.ByteString data) |
static UpdateTransferConfigRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UpdateTransferConfigRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static UpdateTransferConfigRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UpdateTransferConfigRequest |
parseFrom(InputStream input) |
static UpdateTransferConfigRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<UpdateTransferConfigRequest> |
parser() |
UpdateTransferConfigRequest.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 TRANSFER_CONFIG_FIELD_NUMBER
public static final int AUTHORIZATION_CODE_FIELD_NUMBER
public static final int UPDATE_MASK_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 boolean hasTransferConfig()
Required. Data transfer configuration to create.
.google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED];
hasTransferConfig in interface UpdateTransferConfigRequestOrBuilderpublic TransferConfig getTransferConfig()
Required. Data transfer configuration to create.
.google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED];
getTransferConfig in interface UpdateTransferConfigRequestOrBuilderpublic TransferConfigOrBuilder getTransferConfigOrBuilder()
Required. Data transfer configuration to create.
.google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1 [(.google.api.field_behavior) = REQUIRED];
getTransferConfigOrBuilder in interface UpdateTransferConfigRequestOrBuilderpublic 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 update the transfer config.
string authorization_code = 3;getAuthorizationCode in interface UpdateTransferConfigRequestOrBuilderpublic 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 update the transfer config.
string authorization_code = 3;getAuthorizationCodeBytes in interface UpdateTransferConfigRequestOrBuilderpublic boolean hasUpdateMask()
Required. Required list of fields to be updated in this request.
.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];
hasUpdateMask in interface UpdateTransferConfigRequestOrBuilderpublic com.google.protobuf.FieldMask getUpdateMask()
Required. Required list of fields to be updated in this request.
.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];
getUpdateMask in interface UpdateTransferConfigRequestOrBuilderpublic com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
Required. Required list of fields to be updated in this request.
.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];
getUpdateMaskOrBuilder in interface UpdateTransferConfigRequestOrBuilderpublic 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 update the transfer config.
string version_info = 5;getVersionInfo in interface UpdateTransferConfigRequestOrBuilderpublic 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 update the transfer config.
string version_info = 5;getVersionInfoBytes in interface UpdateTransferConfigRequestOrBuilderpublic 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 UpdateTransferConfigRequestOrBuilderpublic 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 UpdateTransferConfigRequestOrBuilderpublic 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 UpdateTransferConfigRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UpdateTransferConfigRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UpdateTransferConfigRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UpdateTransferConfigRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UpdateTransferConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UpdateTransferConfigRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UpdateTransferConfigRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static UpdateTransferConfigRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static UpdateTransferConfigRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static UpdateTransferConfigRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static UpdateTransferConfigRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static UpdateTransferConfigRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic UpdateTransferConfigRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static UpdateTransferConfigRequest.Builder newBuilder()
public static UpdateTransferConfigRequest.Builder newBuilder(UpdateTransferConfigRequest prototype)
public UpdateTransferConfigRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected UpdateTransferConfigRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static UpdateTransferConfigRequest getDefaultInstance()
public static com.google.protobuf.Parser<UpdateTransferConfigRequest> parser()
public com.google.protobuf.Parser<UpdateTransferConfigRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public UpdateTransferConfigRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.