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, 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 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public 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 TransferConfigOrBuilder
public 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 TransferConfigOrBuilder
public java.lang.String getDestinationDatasetId()
The BigQuery target dataset id.
string destination_dataset_id = 2;
getDestinationDatasetId
in interface TransferConfigOrBuilder
public ByteString getDestinationDatasetIdBytes()
The BigQuery target dataset id.
string destination_dataset_id = 2;
getDestinationDatasetIdBytes
in interface TransferConfigOrBuilder
public java.lang.String getDisplayName()
User specified display name for the data transfer.
string display_name = 3;
getDisplayName
in interface TransferConfigOrBuilder
public ByteString getDisplayNameBytes()
User specified display name for the data transfer.
string display_name = 3;
getDisplayNameBytes
in interface TransferConfigOrBuilder
public java.lang.String getDataSourceId()
Data source id. Cannot be changed once data transfer is created.
string data_source_id = 5;
getDataSourceId
in interface TransferConfigOrBuilder
public ByteString getDataSourceIdBytes()
Data source id. Cannot be changed once data transfer is created.
string data_source_id = 5;
getDataSourceIdBytes
in interface TransferConfigOrBuilder
public boolean hasParams()
Data transfer specific parameters.
.google.protobuf.Struct params = 9;
hasParams
in interface TransferConfigOrBuilder
public Struct getParams()
Data transfer specific parameters.
.google.protobuf.Struct params = 9;
getParams
in interface TransferConfigOrBuilder
public StructOrBuilder getParamsOrBuilder()
Data transfer specific parameters.
.google.protobuf.Struct params = 9;
getParamsOrBuilder
in interface TransferConfigOrBuilder
public 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 TransferConfigOrBuilder
public 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 TransferConfigOrBuilder
public 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 TransferConfigOrBuilder
public boolean getDisabled()
Is this config disabled. When set to true, no runs are scheduled for a given transfer.
bool disabled = 13;
getDisabled
in interface TransferConfigOrBuilder
public boolean hasUpdateTime()
Output only. Data transfer modification time. Ignored by server on input.
.google.protobuf.Timestamp update_time = 4;
hasUpdateTime
in interface TransferConfigOrBuilder
public Timestamp getUpdateTime()
Output only. Data transfer modification time. Ignored by server on input.
.google.protobuf.Timestamp update_time = 4;
getUpdateTime
in interface TransferConfigOrBuilder
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Data transfer modification time. Ignored by server on input.
.google.protobuf.Timestamp update_time = 4;
getUpdateTimeOrBuilder
in interface TransferConfigOrBuilder
public boolean hasNextRunTime()
Output only. Next time when data transfer will run.
.google.protobuf.Timestamp next_run_time = 8;
hasNextRunTime
in interface TransferConfigOrBuilder
public Timestamp getNextRunTime()
Output only. Next time when data transfer will run.
.google.protobuf.Timestamp next_run_time = 8;
getNextRunTime
in interface TransferConfigOrBuilder
public TimestampOrBuilder getNextRunTimeOrBuilder()
Output only. Next time when data transfer will run.
.google.protobuf.Timestamp next_run_time = 8;
getNextRunTimeOrBuilder
in interface TransferConfigOrBuilder
public int getStateValue()
Output only. State of the most recently updated transfer run.
.google.cloud.bigquery.datatransfer.v1.TransferState state = 10;
getStateValue
in interface TransferConfigOrBuilder
public TransferState getState()
Output only. State of the most recently updated transfer run.
.google.cloud.bigquery.datatransfer.v1.TransferState state = 10;
getState
in interface TransferConfigOrBuilder
public 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 TransferConfigOrBuilder
public java.lang.String getDatasetRegion()
Output only. Region in which BigQuery dataset is located.
string dataset_region = 14;
getDatasetRegion
in interface TransferConfigOrBuilder
public ByteString getDatasetRegionBytes()
Output only. Region in which BigQuery dataset is located.
string dataset_region = 14;
getDatasetRegionBytes
in interface TransferConfigOrBuilder
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 TransferConfig parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static TransferConfig parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static TransferConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static TransferConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static TransferConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static TransferConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static TransferConfig parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static TransferConfig parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static TransferConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static TransferConfig parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static TransferConfig parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static TransferConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public TransferConfig.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static TransferConfig.Builder newBuilder()
public static TransferConfig.Builder newBuilder(TransferConfig prototype)
public TransferConfig.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected TransferConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static TransferConfig getDefaultInstance()
public static Parser<TransferConfig> parser()
public Parser<TransferConfig> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public TransferConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder