public final class TransferConfig extends GeneratedMessageV3 implements TransferConfigOrBuilder
Represents a data transfer configuration. A transfer configuration contains all metadata needed to perform a data transfer. For example, `destination_dataset_id` specifies where data should be stored. When a new transfer configuration is created, the specified `destination_dataset_id` is created when needed and shared with the appropriate data source service account.Protobuf type
google.cloud.bigquery.datatransfer.v1.TransferConfig| Modifier and Type | Class and Description |
|---|---|
static class |
TransferConfig.Builder
Represents a data 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 |
DATA_REFRESH_WINDOW_DAYS_FIELD_NUMBER |
static int |
DATA_SOURCE_ID_FIELD_NUMBER |
static int |
DATASET_REGION_FIELD_NUMBER |
static int |
DESTINATION_DATASET_ID_FIELD_NUMBER |
static int |
DISABLED_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
NEXT_RUN_TIME_FIELD_NUMBER |
static int |
PARAMS_FIELD_NUMBER |
static int |
SCHEDULE_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
static int |
UPDATE_TIME_FIELD_NUMBER |
static int |
USER_ID_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int NAME_FIELD_NUMBER
public static final int DESTINATION_DATASET_ID_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int DATA_SOURCE_ID_FIELD_NUMBER
public static final int PARAMS_FIELD_NUMBER
public static final int SCHEDULE_FIELD_NUMBER
public static final int DATA_REFRESH_WINDOW_DAYS_FIELD_NUMBER
public static final int DISABLED_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
public static final int NEXT_RUN_TIME_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int USER_ID_FIELD_NUMBER
public static final int DATASET_REGION_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public java.lang.String getName()
The resource name of the transfer config.
Transfer config names have the form
`projects/{project_id}/transferConfigs/{config_id}`.
Where `config_id` is usually a uuid, even though it is not
guaranteed or required. The name is ignored when creating a transfer
config.
string name = 1;getName in interface TransferConfigOrBuilderpublic ByteString getNameBytes()
The resource name of the transfer config.
Transfer config names have the form
`projects/{project_id}/transferConfigs/{config_id}`.
Where `config_id` is usually a uuid, even though it is not
guaranteed or required. The name is ignored when creating a transfer
config.
string name = 1;getNameBytes in interface TransferConfigOrBuilderpublic java.lang.String getDestinationDatasetId()
The BigQuery target dataset id.
string destination_dataset_id = 2;getDestinationDatasetId in interface TransferConfigOrBuilderpublic ByteString getDestinationDatasetIdBytes()
The BigQuery target dataset id.
string destination_dataset_id = 2;getDestinationDatasetIdBytes in interface TransferConfigOrBuilderpublic java.lang.String getDisplayName()
User specified display name for the data transfer.
string display_name = 3;getDisplayName in interface TransferConfigOrBuilderpublic ByteString getDisplayNameBytes()
User specified display name for the data transfer.
string display_name = 3;getDisplayNameBytes in interface TransferConfigOrBuilderpublic java.lang.String getDataSourceId()
Data source id. Cannot be changed once data transfer is created.
string data_source_id = 5;getDataSourceId in interface TransferConfigOrBuilderpublic ByteString getDataSourceIdBytes()
Data source id. Cannot be changed once data transfer is created.
string data_source_id = 5;getDataSourceIdBytes in interface TransferConfigOrBuilderpublic boolean hasParams()
Data transfer specific parameters.
.google.protobuf.Struct params = 9;hasParams in interface TransferConfigOrBuilderpublic Struct getParams()
Data transfer specific parameters.
.google.protobuf.Struct params = 9;getParams in interface TransferConfigOrBuilderpublic StructOrBuilder getParamsOrBuilder()
Data transfer specific parameters.
.google.protobuf.Struct params = 9;getParamsOrBuilder in interface TransferConfigOrBuilderpublic java.lang.String getSchedule()
Data transfer schedule. If the data source does not support a custom schedule, this should be empty. If it is empty, the default value for the data source will be used. The specified times are in UTC. Examples of valid format: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of quarter 00:00`. See more explanation about the format here: https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format NOTE: the granularity should be at least 8 hours, or less frequent.
string schedule = 7;getSchedule in interface TransferConfigOrBuilderpublic ByteString getScheduleBytes()
Data transfer schedule. If the data source does not support a custom schedule, this should be empty. If it is empty, the default value for the data source will be used. The specified times are in UTC. Examples of valid format: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of quarter 00:00`. See more explanation about the format here: https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format NOTE: the granularity should be at least 8 hours, or less frequent.
string schedule = 7;getScheduleBytes in interface TransferConfigOrBuilderpublic int getDataRefreshWindowDays()
The number of days to look back to automatically refresh the data. For example, if `data_refresh_window_days = 10`, then every day BigQuery reingests data for [today-10, today-1], rather than ingesting data for just [today-1]. Only valid if the data source supports the feature. Set the value to 0 to use the default value.
int32 data_refresh_window_days = 12;getDataRefreshWindowDays in interface TransferConfigOrBuilderpublic boolean getDisabled()
Is this config disabled. When set to true, no runs are scheduled for a given transfer.
bool disabled = 13;getDisabled in interface TransferConfigOrBuilderpublic boolean hasUpdateTime()
Output only. Data transfer modification time. Ignored by server on input.
.google.protobuf.Timestamp update_time = 4;hasUpdateTime in interface TransferConfigOrBuilderpublic Timestamp getUpdateTime()
Output only. Data transfer modification time. Ignored by server on input.
.google.protobuf.Timestamp update_time = 4;getUpdateTime in interface TransferConfigOrBuilderpublic TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Data transfer modification time. Ignored by server on input.
.google.protobuf.Timestamp update_time = 4;getUpdateTimeOrBuilder in interface TransferConfigOrBuilderpublic boolean hasNextRunTime()
Output only. Next time when data transfer will run.
.google.protobuf.Timestamp next_run_time = 8;hasNextRunTime in interface TransferConfigOrBuilderpublic Timestamp getNextRunTime()
Output only. Next time when data transfer will run.
.google.protobuf.Timestamp next_run_time = 8;getNextRunTime in interface TransferConfigOrBuilderpublic TimestampOrBuilder getNextRunTimeOrBuilder()
Output only. Next time when data transfer will run.
.google.protobuf.Timestamp next_run_time = 8;getNextRunTimeOrBuilder in interface TransferConfigOrBuilderpublic int getStateValue()
Output only. State of the most recently updated transfer run.
.google.cloud.bigquery.datatransfer.v1.TransferState state = 10;getStateValue in interface TransferConfigOrBuilderpublic TransferState getState()
Output only. State of the most recently updated transfer run.
.google.cloud.bigquery.datatransfer.v1.TransferState state = 10;getState in interface TransferConfigOrBuilderpublic long getUserId()
Output only. Unique ID of the user on whose behalf transfer is done. Applicable only to data sources that do not support service accounts. When set to 0, the data source service account credentials are used. May be negative. Note, that this identifier is not stable. It may change over time even for the same user.
int64 user_id = 11;getUserId in interface TransferConfigOrBuilderpublic java.lang.String getDatasetRegion()
Output only. Region in which BigQuery dataset is located.
string dataset_region = 14;getDatasetRegion in interface TransferConfigOrBuilderpublic ByteString getDatasetRegionBytes()
Output only. Region in which BigQuery dataset is located.
string dataset_region = 14;getDatasetRegionBytes in interface TransferConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static TransferConfig parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static TransferConfig parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static TransferConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static TransferConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static TransferConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static TransferConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static TransferConfig parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static TransferConfig parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static TransferConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static TransferConfig parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static TransferConfig parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static TransferConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic TransferConfig.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static TransferConfig.Builder newBuilder()
public static TransferConfig.Builder newBuilder(TransferConfig prototype)
public TransferConfig.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected TransferConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static TransferConfig getDefaultInstance()
public static Parser<TransferConfig> parser()
public Parser<TransferConfig> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public TransferConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder