Class DataSource.Builder (2.0.27)

public static final class DataSource.Builder extends GeneratedMessageV3.Builder<DataSource.Builder> implements DataSourceOrBuilder

Represents data source metadata. Metadata is sufficient to render UI and request proper OAuth tokens.

Protobuf type google.cloud.bigquery.datatransfer.v1.DataSource

Implements

DataSourceOrBuilder

Methods

addAllParameters(Iterable<? extends DataSourceParameter> values)

public DataSource.Builder addAllParameters(Iterable<? extends DataSourceParameter> values)

Data source parameters.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter>
Returns
TypeDescription
DataSource.Builder

addAllScopes(Iterable<String> values)

public DataSource.Builder addAllScopes(Iterable<String> values)

Api auth scopes for which refresh token needs to be obtained. These are scopes needed by a data source to prepare data and ingest them into BigQuery, e.g., https://www.googleapis.com/auth/bigquery

repeated string scopes = 6;

Parameter
NameDescription
valuesIterable<String>

The scopes to add.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

addParameters(DataSourceParameter value)

public DataSource.Builder addParameters(DataSourceParameter value)

Data source parameters.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;

Parameter
NameDescription
valueDataSourceParameter
Returns
TypeDescription
DataSource.Builder

addParameters(DataSourceParameter.Builder builderForValue)

public DataSource.Builder addParameters(DataSourceParameter.Builder builderForValue)

Data source parameters.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;

Parameter
NameDescription
builderForValueDataSourceParameter.Builder
Returns
TypeDescription
DataSource.Builder

addParameters(int index, DataSourceParameter value)

public DataSource.Builder addParameters(int index, DataSourceParameter value)

Data source parameters.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;

Parameters
NameDescription
indexint
valueDataSourceParameter
Returns
TypeDescription
DataSource.Builder

addParameters(int index, DataSourceParameter.Builder builderForValue)

public DataSource.Builder addParameters(int index, DataSourceParameter.Builder builderForValue)

Data source parameters.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;

Parameters
NameDescription
indexint
builderForValueDataSourceParameter.Builder
Returns
TypeDescription
DataSource.Builder

addParametersBuilder()

public DataSourceParameter.Builder addParametersBuilder()

Data source parameters.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;

Returns
TypeDescription
DataSourceParameter.Builder

addParametersBuilder(int index)

public DataSourceParameter.Builder addParametersBuilder(int index)

Data source parameters.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;

Parameter
NameDescription
indexint
Returns
TypeDescription
DataSourceParameter.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DataSource.Builder
Overrides

addScopes(String value)

public DataSource.Builder addScopes(String value)

Api auth scopes for which refresh token needs to be obtained. These are scopes needed by a data source to prepare data and ingest them into BigQuery, e.g., https://www.googleapis.com/auth/bigquery

repeated string scopes = 6;

Parameter
NameDescription
valueString

The scopes to add.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

addScopesBytes(ByteString value)

public DataSource.Builder addScopesBytes(ByteString value)

Api auth scopes for which refresh token needs to be obtained. These are scopes needed by a data source to prepare data and ingest them into BigQuery, e.g., https://www.googleapis.com/auth/bigquery

repeated string scopes = 6;

Parameter
NameDescription
valueByteString

The bytes of the scopes to add.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

build()

public DataSource build()
Returns
TypeDescription
DataSource

buildPartial()

public DataSource buildPartial()
Returns
TypeDescription
DataSource

clear()

public DataSource.Builder clear()
Returns
TypeDescription
DataSource.Builder
Overrides

clearAuthorizationType()

public DataSource.Builder clearAuthorizationType()

Indicates the type of authorization.

.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14;

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

clearClientId()

public DataSource.Builder clearClientId()

Data source client id which should be used to receive refresh token.

string client_id = 5;

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

clearDataRefreshType()

public DataSource.Builder clearDataRefreshType()

Specifies whether the data source supports automatic data refresh for the past few days, and how it's supported. For some data sources, data might not be complete until a few days later, so it's useful to refresh data automatically.

.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15;

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

clearDataSourceId()

public DataSource.Builder clearDataSourceId()

Data source id.

string data_source_id = 2;

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

clearDefaultDataRefreshWindowDays()

public DataSource.Builder clearDefaultDataRefreshWindowDays()

Default data refresh window on days. Only meaningful when data_refresh_type = SLIDING_WINDOW.

int32 default_data_refresh_window_days = 16;

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

clearDefaultSchedule()

public DataSource.Builder clearDefaultSchedule()

Default data transfer schedule. Examples of valid schedules include: 1st,3rd monday of month 15:30, every wed,fri of jan,jun 13:15, and first sunday of quarter 00:00.

string default_schedule = 10;

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

clearDescription()

public DataSource.Builder clearDescription()

User friendly data source description string.

string description = 4;

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

clearDisplayName()

public DataSource.Builder clearDisplayName()

User friendly data source name.

string display_name = 3;

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DataSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DataSource.Builder
Overrides

clearHelpUrl()

public DataSource.Builder clearHelpUrl()

Url for the help document for this data source.

string help_url = 13;

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

clearManualRunsDisabled()

public DataSource.Builder clearManualRunsDisabled()

Disables backfilling and manual run scheduling for the data source.

bool manual_runs_disabled = 17;

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

clearMinimumScheduleInterval()

public DataSource.Builder clearMinimumScheduleInterval()

The minimum interval for scheduler to schedule runs.

.google.protobuf.Duration minimum_schedule_interval = 18;

Returns
TypeDescription
DataSource.Builder

clearName()

public DataSource.Builder clearName()

Output only. Data source resource name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DataSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DataSource.Builder
Overrides

clearParameters()

public DataSource.Builder clearParameters()

Data source parameters.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;

Returns
TypeDescription
DataSource.Builder

clearScopes()

public DataSource.Builder clearScopes()

Api auth scopes for which refresh token needs to be obtained. These are scopes needed by a data source to prepare data and ingest them into BigQuery, e.g., https://www.googleapis.com/auth/bigquery

repeated string scopes = 6;

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

clearSupportsCustomSchedule()

public DataSource.Builder clearSupportsCustomSchedule()

Specifies whether the data source supports a user defined schedule, or operates on the default schedule. When set to true, user can override default schedule.

bool supports_custom_schedule = 11;

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

clearSupportsMultipleTransfers()

public DataSource.Builder clearSupportsMultipleTransfers()

Deprecated. This field has no effect.

bool supports_multiple_transfers = 8 [deprecated = true];

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

clearTransferType()

public DataSource.Builder clearTransferType()

Deprecated. This field has no effect.

.google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true];

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

clearUpdateDeadlineSeconds()

public DataSource.Builder clearUpdateDeadlineSeconds()

The number of seconds to wait for an update from the data source before the Data Transfer Service marks the transfer as FAILED.

int32 update_deadline_seconds = 9;

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

clone()

public DataSource.Builder clone()
Returns
TypeDescription
DataSource.Builder
Overrides

getAuthorizationType()

public DataSource.AuthorizationType getAuthorizationType()

Indicates the type of authorization.

.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14;

Returns
TypeDescription
DataSource.AuthorizationType

The authorizationType.

getAuthorizationTypeValue()

public int getAuthorizationTypeValue()

Indicates the type of authorization.

.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14;

Returns
TypeDescription
int

The enum numeric value on the wire for authorizationType.

getClientId()

public String getClientId()

Data source client id which should be used to receive refresh token.

string client_id = 5;

Returns
TypeDescription
String

The clientId.

getClientIdBytes()

public ByteString getClientIdBytes()

Data source client id which should be used to receive refresh token.

string client_id = 5;

Returns
TypeDescription
ByteString

The bytes for clientId.

getDataRefreshType()

public DataSource.DataRefreshType getDataRefreshType()

Specifies whether the data source supports automatic data refresh for the past few days, and how it's supported. For some data sources, data might not be complete until a few days later, so it's useful to refresh data automatically.

.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15;

Returns
TypeDescription
DataSource.DataRefreshType

The dataRefreshType.

getDataRefreshTypeValue()

public int getDataRefreshTypeValue()

Specifies whether the data source supports automatic data refresh for the past few days, and how it's supported. For some data sources, data might not be complete until a few days later, so it's useful to refresh data automatically.

.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15;

Returns
TypeDescription
int

The enum numeric value on the wire for dataRefreshType.

getDataSourceId()

public String getDataSourceId()

Data source id.

string data_source_id = 2;

Returns
TypeDescription
String

The dataSourceId.

getDataSourceIdBytes()

public ByteString getDataSourceIdBytes()

Data source id.

string data_source_id = 2;

Returns
TypeDescription
ByteString

The bytes for dataSourceId.

getDefaultDataRefreshWindowDays()

public int getDefaultDataRefreshWindowDays()

Default data refresh window on days. Only meaningful when data_refresh_type = SLIDING_WINDOW.

int32 default_data_refresh_window_days = 16;

Returns
TypeDescription
int

The defaultDataRefreshWindowDays.

getDefaultInstanceForType()

public DataSource getDefaultInstanceForType()
Returns
TypeDescription
DataSource

getDefaultSchedule()

public String getDefaultSchedule()

Default data transfer schedule. Examples of valid schedules include: 1st,3rd monday of month 15:30, every wed,fri of jan,jun 13:15, and first sunday of quarter 00:00.

string default_schedule = 10;

Returns
TypeDescription
String

The defaultSchedule.

getDefaultScheduleBytes()

public ByteString getDefaultScheduleBytes()

Default data transfer schedule. Examples of valid schedules include: 1st,3rd monday of month 15:30, every wed,fri of jan,jun 13:15, and first sunday of quarter 00:00.

string default_schedule = 10;

Returns
TypeDescription
ByteString

The bytes for defaultSchedule.

getDescription()

public String getDescription()

User friendly data source description string.

string description = 4;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

User friendly data source description string.

string description = 4;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

User friendly data source name.

string display_name = 3;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

User friendly data source name.

string display_name = 3;

Returns
TypeDescription
ByteString

The bytes for displayName.

getHelpUrl()

public String getHelpUrl()

Url for the help document for this data source.

string help_url = 13;

Returns
TypeDescription
String

The helpUrl.

getHelpUrlBytes()

public ByteString getHelpUrlBytes()

Url for the help document for this data source.

string help_url = 13;

Returns
TypeDescription
ByteString

The bytes for helpUrl.

getManualRunsDisabled()

public boolean getManualRunsDisabled()

Disables backfilling and manual run scheduling for the data source.

bool manual_runs_disabled = 17;

Returns
TypeDescription
boolean

The manualRunsDisabled.

getMinimumScheduleInterval()

public Duration getMinimumScheduleInterval()

The minimum interval for scheduler to schedule runs.

.google.protobuf.Duration minimum_schedule_interval = 18;

Returns
TypeDescription
Duration

The minimumScheduleInterval.

getMinimumScheduleIntervalBuilder()

public Duration.Builder getMinimumScheduleIntervalBuilder()

The minimum interval for scheduler to schedule runs.

.google.protobuf.Duration minimum_schedule_interval = 18;

Returns
TypeDescription
Builder

getMinimumScheduleIntervalOrBuilder()

public DurationOrBuilder getMinimumScheduleIntervalOrBuilder()

The minimum interval for scheduler to schedule runs.

.google.protobuf.Duration minimum_schedule_interval = 18;

Returns
TypeDescription
DurationOrBuilder

getName()

public String getName()

Output only. Data source resource name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Data source resource name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getParameters(int index)

public DataSourceParameter getParameters(int index)

Data source parameters.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;

Parameter
NameDescription
indexint
Returns
TypeDescription
DataSourceParameter

getParametersBuilder(int index)

public DataSourceParameter.Builder getParametersBuilder(int index)

Data source parameters.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;

Parameter
NameDescription
indexint
Returns
TypeDescription
DataSourceParameter.Builder

getParametersBuilderList()

public List<DataSourceParameter.Builder> getParametersBuilderList()

Data source parameters.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;

Returns
TypeDescription
List<Builder>

getParametersCount()

public int getParametersCount()

Data source parameters.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;

Returns
TypeDescription
int

getParametersList()

public List<DataSourceParameter> getParametersList()

Data source parameters.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;

Returns
TypeDescription
List<DataSourceParameter>

getParametersOrBuilder(int index)

public DataSourceParameterOrBuilder getParametersOrBuilder(int index)

Data source parameters.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;

Parameter
NameDescription
indexint
Returns
TypeDescription
DataSourceParameterOrBuilder

getParametersOrBuilderList()

public List<? extends DataSourceParameterOrBuilder> getParametersOrBuilderList()

Data source parameters.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;

Returns
TypeDescription
List<? extends com.google.cloud.bigquery.datatransfer.v1.DataSourceParameterOrBuilder>

getScopes(int index)

public String getScopes(int index)

Api auth scopes for which refresh token needs to be obtained. These are scopes needed by a data source to prepare data and ingest them into BigQuery, e.g., https://www.googleapis.com/auth/bigquery

repeated string scopes = 6;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The scopes at the given index.

getScopesBytes(int index)

public ByteString getScopesBytes(int index)

Api auth scopes for which refresh token needs to be obtained. These are scopes needed by a data source to prepare data and ingest them into BigQuery, e.g., https://www.googleapis.com/auth/bigquery

repeated string scopes = 6;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the scopes at the given index.

getScopesCount()

public int getScopesCount()

Api auth scopes for which refresh token needs to be obtained. These are scopes needed by a data source to prepare data and ingest them into BigQuery, e.g., https://www.googleapis.com/auth/bigquery

repeated string scopes = 6;

Returns
TypeDescription
int

The count of scopes.

getScopesList()

public ProtocolStringList getScopesList()

Api auth scopes for which refresh token needs to be obtained. These are scopes needed by a data source to prepare data and ingest them into BigQuery, e.g., https://www.googleapis.com/auth/bigquery

repeated string scopes = 6;

Returns
TypeDescription
ProtocolStringList

A list containing the scopes.

getSupportsCustomSchedule()

public boolean getSupportsCustomSchedule()

Specifies whether the data source supports a user defined schedule, or operates on the default schedule. When set to true, user can override default schedule.

bool supports_custom_schedule = 11;

Returns
TypeDescription
boolean

The supportsCustomSchedule.

getSupportsMultipleTransfers()

public boolean getSupportsMultipleTransfers()

Deprecated. This field has no effect.

bool supports_multiple_transfers = 8 [deprecated = true];

Returns
TypeDescription
boolean

The supportsMultipleTransfers.

getTransferType()

public TransferType getTransferType()

Deprecated. This field has no effect.

.google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true];

Returns
TypeDescription
TransferType

The transferType.

getTransferTypeValue()

public int getTransferTypeValue()

Deprecated. This field has no effect.

.google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true];

Returns
TypeDescription
int

The enum numeric value on the wire for transferType.

getUpdateDeadlineSeconds()

public int getUpdateDeadlineSeconds()

The number of seconds to wait for an update from the data source before the Data Transfer Service marks the transfer as FAILED.

int32 update_deadline_seconds = 9;

Returns
TypeDescription
int

The updateDeadlineSeconds.

hasMinimumScheduleInterval()

public boolean hasMinimumScheduleInterval()

The minimum interval for scheduler to schedule runs.

.google.protobuf.Duration minimum_schedule_interval = 18;

Returns
TypeDescription
boolean

Whether the minimumScheduleInterval field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DataSource other)

public DataSource.Builder mergeFrom(DataSource other)
Parameter
NameDescription
otherDataSource
Returns
TypeDescription
DataSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataSource.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DataSource.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DataSource.Builder
Overrides

mergeMinimumScheduleInterval(Duration value)

public DataSource.Builder mergeMinimumScheduleInterval(Duration value)

The minimum interval for scheduler to schedule runs.

.google.protobuf.Duration minimum_schedule_interval = 18;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
DataSource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DataSource.Builder
Overrides

removeParameters(int index)

public DataSource.Builder removeParameters(int index)

Data source parameters.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;

Parameter
NameDescription
indexint
Returns
TypeDescription
DataSource.Builder

setAuthorizationType(DataSource.AuthorizationType value)

public DataSource.Builder setAuthorizationType(DataSource.AuthorizationType value)

Indicates the type of authorization.

.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14;

Parameter
NameDescription
valueDataSource.AuthorizationType

The authorizationType to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setAuthorizationTypeValue(int value)

public DataSource.Builder setAuthorizationTypeValue(int value)

Indicates the type of authorization.

.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14;

Parameter
NameDescription
valueint

The enum numeric value on the wire for authorizationType to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setClientId(String value)

public DataSource.Builder setClientId(String value)

Data source client id which should be used to receive refresh token.

string client_id = 5;

Parameter
NameDescription
valueString

The clientId to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setClientIdBytes(ByteString value)

public DataSource.Builder setClientIdBytes(ByteString value)

Data source client id which should be used to receive refresh token.

string client_id = 5;

Parameter
NameDescription
valueByteString

The bytes for clientId to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setDataRefreshType(DataSource.DataRefreshType value)

public DataSource.Builder setDataRefreshType(DataSource.DataRefreshType value)

Specifies whether the data source supports automatic data refresh for the past few days, and how it's supported. For some data sources, data might not be complete until a few days later, so it's useful to refresh data automatically.

.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15;

Parameter
NameDescription
valueDataSource.DataRefreshType

The dataRefreshType to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setDataRefreshTypeValue(int value)

public DataSource.Builder setDataRefreshTypeValue(int value)

Specifies whether the data source supports automatic data refresh for the past few days, and how it's supported. For some data sources, data might not be complete until a few days later, so it's useful to refresh data automatically.

.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15;

Parameter
NameDescription
valueint

The enum numeric value on the wire for dataRefreshType to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setDataSourceId(String value)

public DataSource.Builder setDataSourceId(String value)

Data source id.

string data_source_id = 2;

Parameter
NameDescription
valueString

The dataSourceId to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setDataSourceIdBytes(ByteString value)

public DataSource.Builder setDataSourceIdBytes(ByteString value)

Data source id.

string data_source_id = 2;

Parameter
NameDescription
valueByteString

The bytes for dataSourceId to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setDefaultDataRefreshWindowDays(int value)

public DataSource.Builder setDefaultDataRefreshWindowDays(int value)

Default data refresh window on days. Only meaningful when data_refresh_type = SLIDING_WINDOW.

int32 default_data_refresh_window_days = 16;

Parameter
NameDescription
valueint

The defaultDataRefreshWindowDays to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setDefaultSchedule(String value)

public DataSource.Builder setDefaultSchedule(String value)

Default data transfer schedule. Examples of valid schedules include: 1st,3rd monday of month 15:30, every wed,fri of jan,jun 13:15, and first sunday of quarter 00:00.

string default_schedule = 10;

Parameter
NameDescription
valueString

The defaultSchedule to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setDefaultScheduleBytes(ByteString value)

public DataSource.Builder setDefaultScheduleBytes(ByteString value)

Default data transfer schedule. Examples of valid schedules include: 1st,3rd monday of month 15:30, every wed,fri of jan,jun 13:15, and first sunday of quarter 00:00.

string default_schedule = 10;

Parameter
NameDescription
valueByteString

The bytes for defaultSchedule to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setDescription(String value)

public DataSource.Builder setDescription(String value)

User friendly data source description string.

string description = 4;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public DataSource.Builder setDescriptionBytes(ByteString value)

User friendly data source description string.

string description = 4;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setDisplayName(String value)

public DataSource.Builder setDisplayName(String value)

User friendly data source name.

string display_name = 3;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public DataSource.Builder setDisplayNameBytes(ByteString value)

User friendly data source name.

string display_name = 3;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DataSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DataSource.Builder
Overrides

setHelpUrl(String value)

public DataSource.Builder setHelpUrl(String value)

Url for the help document for this data source.

string help_url = 13;

Parameter
NameDescription
valueString

The helpUrl to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setHelpUrlBytes(ByteString value)

public DataSource.Builder setHelpUrlBytes(ByteString value)

Url for the help document for this data source.

string help_url = 13;

Parameter
NameDescription
valueByteString

The bytes for helpUrl to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setManualRunsDisabled(boolean value)

public DataSource.Builder setManualRunsDisabled(boolean value)

Disables backfilling and manual run scheduling for the data source.

bool manual_runs_disabled = 17;

Parameter
NameDescription
valueboolean

The manualRunsDisabled to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setMinimumScheduleInterval(Duration value)

public DataSource.Builder setMinimumScheduleInterval(Duration value)

The minimum interval for scheduler to schedule runs.

.google.protobuf.Duration minimum_schedule_interval = 18;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
DataSource.Builder

setMinimumScheduleInterval(Duration.Builder builderForValue)

public DataSource.Builder setMinimumScheduleInterval(Duration.Builder builderForValue)

The minimum interval for scheduler to schedule runs.

.google.protobuf.Duration minimum_schedule_interval = 18;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DataSource.Builder

setName(String value)

public DataSource.Builder setName(String value)

Output only. Data source resource name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DataSource.Builder setNameBytes(ByteString value)

Output only. Data source resource name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setParameters(int index, DataSourceParameter value)

public DataSource.Builder setParameters(int index, DataSourceParameter value)

Data source parameters.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;

Parameters
NameDescription
indexint
valueDataSourceParameter
Returns
TypeDescription
DataSource.Builder

setParameters(int index, DataSourceParameter.Builder builderForValue)

public DataSource.Builder setParameters(int index, DataSourceParameter.Builder builderForValue)

Data source parameters.

repeated .google.cloud.bigquery.datatransfer.v1.DataSourceParameter parameters = 12;

Parameters
NameDescription
indexint
builderForValueDataSourceParameter.Builder
Returns
TypeDescription
DataSource.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DataSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DataSource.Builder
Overrides

setScopes(int index, String value)

public DataSource.Builder setScopes(int index, String value)

Api auth scopes for which refresh token needs to be obtained. These are scopes needed by a data source to prepare data and ingest them into BigQuery, e.g., https://www.googleapis.com/auth/bigquery

repeated string scopes = 6;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The scopes to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setSupportsCustomSchedule(boolean value)

public DataSource.Builder setSupportsCustomSchedule(boolean value)

Specifies whether the data source supports a user defined schedule, or operates on the default schedule. When set to true, user can override default schedule.

bool supports_custom_schedule = 11;

Parameter
NameDescription
valueboolean

The supportsCustomSchedule to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setSupportsMultipleTransfers(boolean value)

public DataSource.Builder setSupportsMultipleTransfers(boolean value)

Deprecated. This field has no effect.

bool supports_multiple_transfers = 8 [deprecated = true];

Parameter
NameDescription
valueboolean

The supportsMultipleTransfers to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setTransferType(TransferType value)

public DataSource.Builder setTransferType(TransferType value)

Deprecated. This field has no effect.

.google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true];

Parameter
NameDescription
valueTransferType

The transferType to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setTransferTypeValue(int value)

public DataSource.Builder setTransferTypeValue(int value)

Deprecated. This field has no effect.

.google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true];

Parameter
NameDescription
valueint

The enum numeric value on the wire for transferType to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DataSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DataSource.Builder
Overrides

setUpdateDeadlineSeconds(int value)

public DataSource.Builder setUpdateDeadlineSeconds(int value)

The number of seconds to wait for an update from the data source before the Data Transfer Service marks the transfer as FAILED.

int32 update_deadline_seconds = 9;

Parameter
NameDescription
valueint

The updateDeadlineSeconds to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.