Class EnrollDataSourcesRequest.Builder (2.8.0)

publicstaticfinalclass EnrollDataSourcesRequest.BuilderextendsGeneratedMessageV3.Builder<EnrollDataSourcesRequest.Builder>implementsEnrollDataSourcesRequestOrBuilder

A request to enroll a set of data sources so they are visible in the BigQuery UI's Transfer tab.

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

Methods

addAllDataSourceIds(Iterable<String> values)

publicEnrollDataSourcesRequest.BuilderaddAllDataSourceIds(Iterable<String>values)

Data sources that are enrolled. It is required to provide at least one data source id.

repeated string data_source_ids = 2;

Parameter
Name Description
values Iterable<String>

The dataSourceIds to add.

Returns
Type Description
EnrollDataSourcesRequest.Builder

This builder for chaining.

addDataSourceIds(String value)

publicEnrollDataSourcesRequest.BuilderaddDataSourceIds(Stringvalue)

Data sources that are enrolled. It is required to provide at least one data source id.

repeated string data_source_ids = 2;

Parameter
Name Description
value String

The dataSourceIds to add.

Returns
Type Description
EnrollDataSourcesRequest.Builder

This builder for chaining.

addDataSourceIdsBytes(ByteString value)

publicEnrollDataSourcesRequest.BuilderaddDataSourceIdsBytes(ByteStringvalue)

Data sources that are enrolled. It is required to provide at least one data source id.

repeated string data_source_ids = 2;

Parameter
Name Description
value ByteString

The bytes of the dataSourceIds to add.

Returns
Type Description
EnrollDataSourcesRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicEnrollDataSourcesRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

build()

publicEnrollDataSourcesRequestbuild()
Returns
Type Description

buildPartial()

publicEnrollDataSourcesRequestbuildPartial()
Returns
Type Description

clear()

publicEnrollDataSourcesRequest.Builderclear()
Returns
Type Description
Overrides

clearDataSourceIds()

publicEnrollDataSourcesRequest.BuilderclearDataSourceIds()

Data sources that are enrolled. It is required to provide at least one data source id.

repeated string data_source_ids = 2;

Returns
Type Description
EnrollDataSourcesRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicEnrollDataSourcesRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearName()

publicEnrollDataSourcesRequest.BuilderclearName()

The name of the project resource in the form: projects/{project_id}

string name = 1;

Returns
Type Description
EnrollDataSourcesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicEnrollDataSourcesRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clone()

publicEnrollDataSourcesRequest.Builderclone()
Returns
Type Description
Overrides

getDataSourceIds(int index)

publicStringgetDataSourceIds(intindex)

Data sources that are enrolled. It is required to provide at least one data source id.

repeated string data_source_ids = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The dataSourceIds at the given index.

getDataSourceIdsBytes(int index)

publicByteStringgetDataSourceIdsBytes(intindex)

Data sources that are enrolled. It is required to provide at least one data source id.

repeated string data_source_ids = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the dataSourceIds at the given index.

getDataSourceIdsCount()

publicintgetDataSourceIdsCount()

Data sources that are enrolled. It is required to provide at least one data source id.

repeated string data_source_ids = 2;

Returns
Type Description
int

The count of dataSourceIds.

getDataSourceIdsList()

publicProtocolStringListgetDataSourceIdsList()

Data sources that are enrolled. It is required to provide at least one data source id.

repeated string data_source_ids = 2;

Returns
Type Description
ProtocolStringList

A list containing the dataSourceIds.

getDefaultInstanceForType()

publicEnrollDataSourcesRequestgetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

getName()

publicStringgetName()

The name of the project resource in the form: projects/{project_id}

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

The name of the project resource in the form: projects/{project_id}

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeFrom(EnrollDataSourcesRequest other)

publicEnrollDataSourcesRequest.BuildermergeFrom(EnrollDataSourcesRequestother)
Parameter
Name Description
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicEnrollDataSourcesRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicEnrollDataSourcesRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalEnrollDataSourcesRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setDataSourceIds(int index, String value)

publicEnrollDataSourcesRequest.BuildersetDataSourceIds(intindex,Stringvalue)

Data sources that are enrolled. It is required to provide at least one data source id.

repeated string data_source_ids = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The dataSourceIds to set.

Returns
Type Description
EnrollDataSourcesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicEnrollDataSourcesRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

setName(String value)

publicEnrollDataSourcesRequest.BuildersetName(Stringvalue)

The name of the project resource in the form: projects/{project_id}

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
EnrollDataSourcesRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

publicEnrollDataSourcesRequest.BuildersetNameBytes(ByteStringvalue)

The name of the project resource in the form: projects/{project_id}

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
EnrollDataSourcesRequest.Builder

This builder for chaining.

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

publicEnrollDataSourcesRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalEnrollDataSourcesRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.