public final class UpdateTransferConfigRequest extends GeneratedMessageV3 implements UpdateTransferConfigRequestOrBuilder
A request to update a transfer configuration. To update the user id of the transfer configuration, an authorization code 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.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
AUTHORIZATION_CODE_FIELD_NUMBER |
static int |
TRANSFER_CONFIG_FIELD_NUMBER |
static int |
UPDATE_MASK_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int TRANSFER_CONFIG_FIELD_NUMBER
public static final int AUTHORIZATION_CODE_FIELD_NUMBER
public static final int UPDATE_MASK_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public boolean hasTransferConfig()
Data transfer configuration to create.
.google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1;
hasTransferConfig
in interface UpdateTransferConfigRequestOrBuilder
public TransferConfig getTransferConfig()
Data transfer configuration to create.
.google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1;
getTransferConfig
in interface UpdateTransferConfigRequestOrBuilder
public TransferConfigOrBuilder getTransferConfigOrBuilder()
Data transfer configuration to create.
.google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1;
getTransferConfigOrBuilder
in interface UpdateTransferConfigRequestOrBuilder
public java.lang.String getAuthorizationCode()
Optional OAuth2 authorization code to use with this transfer configuration. If it is provided, the transfer configuration will be associated with the authorizing user. 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.
string authorization_code = 3;
getAuthorizationCode
in interface UpdateTransferConfigRequestOrBuilder
public ByteString getAuthorizationCodeBytes()
Optional OAuth2 authorization code to use with this transfer configuration. If it is provided, the transfer configuration will be associated with the authorizing user. 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.
string authorization_code = 3;
getAuthorizationCodeBytes
in interface UpdateTransferConfigRequestOrBuilder
public boolean hasUpdateMask()
Required list of fields to be updated in this request.
.google.protobuf.FieldMask update_mask = 4;
hasUpdateMask
in interface UpdateTransferConfigRequestOrBuilder
public FieldMask getUpdateMask()
Required list of fields to be updated in this request.
.google.protobuf.FieldMask update_mask = 4;
getUpdateMask
in interface UpdateTransferConfigRequestOrBuilder
public FieldMaskOrBuilder getUpdateMaskOrBuilder()
Required list of fields to be updated in this request.
.google.protobuf.FieldMask update_mask = 4;
getUpdateMaskOrBuilder
in interface UpdateTransferConfigRequestOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static UpdateTransferConfigRequest parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static UpdateTransferConfigRequest parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static UpdateTransferConfigRequest parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static UpdateTransferConfigRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static UpdateTransferConfigRequest parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static UpdateTransferConfigRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static UpdateTransferConfigRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static UpdateTransferConfigRequest parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static UpdateTransferConfigRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static UpdateTransferConfigRequest parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static UpdateTransferConfigRequest parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static UpdateTransferConfigRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public UpdateTransferConfigRequest.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static UpdateTransferConfigRequest.Builder newBuilder()
public static UpdateTransferConfigRequest.Builder newBuilder(UpdateTransferConfigRequest prototype)
public UpdateTransferConfigRequest.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected UpdateTransferConfigRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static UpdateTransferConfigRequest getDefaultInstance()
public static Parser<UpdateTransferConfigRequest> parser()
public Parser<UpdateTransferConfigRequest> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public UpdateTransferConfigRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder