public static final class TransferConfig.Builder extends GeneratedMessageV3.Builder<TransferConfig.Builder> 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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<TransferConfig.Builder>
public TransferConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<TransferConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<TransferConfig.Builder>
public TransferConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public TransferConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public TransferConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public TransferConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<TransferConfig.Builder>
public TransferConfig.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<TransferConfig.Builder>
public TransferConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<TransferConfig.Builder>
public TransferConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<TransferConfig.Builder>
public TransferConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<TransferConfig.Builder>
public TransferConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<TransferConfig.Builder>
public TransferConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<TransferConfig.Builder>
public TransferConfig.Builder mergeFrom(TransferConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<TransferConfig.Builder>
public TransferConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<TransferConfig.Builder>
java.io.IOException
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 TransferConfig.Builder setName(java.lang.String value)
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;
public TransferConfig.Builder clearName()
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;
public TransferConfig.Builder setNameBytes(ByteString value)
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;
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 TransferConfig.Builder setDestinationDatasetId(java.lang.String value)
The BigQuery target dataset id.
string destination_dataset_id = 2;
public TransferConfig.Builder clearDestinationDatasetId()
The BigQuery target dataset id.
string destination_dataset_id = 2;
public TransferConfig.Builder setDestinationDatasetIdBytes(ByteString value)
The BigQuery target dataset id.
string destination_dataset_id = 2;
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 TransferConfig.Builder setDisplayName(java.lang.String value)
User specified display name for the data transfer.
string display_name = 3;
public TransferConfig.Builder clearDisplayName()
User specified display name for the data transfer.
string display_name = 3;
public TransferConfig.Builder setDisplayNameBytes(ByteString value)
User specified display name for the data transfer.
string display_name = 3;
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 TransferConfig.Builder setDataSourceId(java.lang.String value)
Data source id. Cannot be changed once data transfer is created.
string data_source_id = 5;
public TransferConfig.Builder clearDataSourceId()
Data source id. Cannot be changed once data transfer is created.
string data_source_id = 5;
public TransferConfig.Builder setDataSourceIdBytes(ByteString value)
Data source id. Cannot be changed once data transfer is created.
string data_source_id = 5;
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 TransferConfig.Builder setParams(Struct value)
Data transfer specific parameters.
.google.protobuf.Struct params = 9;
public TransferConfig.Builder setParams(Struct.Builder builderForValue)
Data transfer specific parameters.
.google.protobuf.Struct params = 9;
public TransferConfig.Builder mergeParams(Struct value)
Data transfer specific parameters.
.google.protobuf.Struct params = 9;
public TransferConfig.Builder clearParams()
Data transfer specific parameters.
.google.protobuf.Struct params = 9;
public Struct.Builder getParamsBuilder()
Data transfer specific parameters.
.google.protobuf.Struct params = 9;
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 TransferConfig.Builder setSchedule(java.lang.String value)
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;
public TransferConfig.Builder clearSchedule()
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;
public TransferConfig.Builder setScheduleBytes(ByteString value)
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;
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 TransferConfig.Builder setDataRefreshWindowDays(int value)
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;
public TransferConfig.Builder clearDataRefreshWindowDays()
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;
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 TransferConfig.Builder setDisabled(boolean value)
Is this config disabled. When set to true, no runs are scheduled for a given transfer.
bool disabled = 13;
public TransferConfig.Builder clearDisabled()
Is this config disabled. When set to true, no runs are scheduled for a given transfer.
bool disabled = 13;
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 TransferConfig.Builder setUpdateTime(Timestamp value)
Output only. Data transfer modification time. Ignored by server on input.
.google.protobuf.Timestamp update_time = 4;
public TransferConfig.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. Data transfer modification time. Ignored by server on input.
.google.protobuf.Timestamp update_time = 4;
public TransferConfig.Builder mergeUpdateTime(Timestamp value)
Output only. Data transfer modification time. Ignored by server on input.
.google.protobuf.Timestamp update_time = 4;
public TransferConfig.Builder clearUpdateTime()
Output only. Data transfer modification time. Ignored by server on input.
.google.protobuf.Timestamp update_time = 4;
public Timestamp.Builder getUpdateTimeBuilder()
Output only. Data transfer modification time. Ignored by server on input.
.google.protobuf.Timestamp update_time = 4;
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 TransferConfig.Builder setNextRunTime(Timestamp value)
Output only. Next time when data transfer will run.
.google.protobuf.Timestamp next_run_time = 8;
public TransferConfig.Builder setNextRunTime(Timestamp.Builder builderForValue)
Output only. Next time when data transfer will run.
.google.protobuf.Timestamp next_run_time = 8;
public TransferConfig.Builder mergeNextRunTime(Timestamp value)
Output only. Next time when data transfer will run.
.google.protobuf.Timestamp next_run_time = 8;
public TransferConfig.Builder clearNextRunTime()
Output only. Next time when data transfer will run.
.google.protobuf.Timestamp next_run_time = 8;
public Timestamp.Builder getNextRunTimeBuilder()
Output only. Next time when data transfer will run.
.google.protobuf.Timestamp next_run_time = 8;
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 TransferConfig.Builder setStateValue(int value)
Output only. State of the most recently updated transfer run.
.google.cloud.bigquery.datatransfer.v1.TransferState state = 10;
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 TransferConfig.Builder setState(TransferState value)
Output only. State of the most recently updated transfer run.
.google.cloud.bigquery.datatransfer.v1.TransferState state = 10;
public TransferConfig.Builder clearState()
Output only. State of the most recently updated transfer run.
.google.cloud.bigquery.datatransfer.v1.TransferState state = 10;
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 TransferConfig.Builder setUserId(long value)
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;
public TransferConfig.Builder clearUserId()
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;
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 TransferConfig.Builder setDatasetRegion(java.lang.String value)
Output only. Region in which BigQuery dataset is located.
string dataset_region = 14;
public TransferConfig.Builder clearDatasetRegion()
Output only. Region in which BigQuery dataset is located.
string dataset_region = 14;
public TransferConfig.Builder setDatasetRegionBytes(ByteString value)
Output only. Region in which BigQuery dataset is located.
string dataset_region = 14;
public final TransferConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<TransferConfig.Builder>
public final TransferConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<TransferConfig.Builder>