Class ListDataSourcesResponse.Builder (0.3.0)

public static final class ListDataSourcesResponse.Builder extends GeneratedMessageV3.Builder<ListDataSourcesResponse.Builder> implements ListDataSourcesResponseOrBuilder

Response message for the ListDataSources method.

Protobuf type google.shopping.merchant.datasources.v1beta.ListDataSourcesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDataSources(Iterable<? extends DataSource> values)

public ListDataSourcesResponse.Builder addAllDataSources(Iterable<? extends DataSource> values)

The data sources from the specified account.

repeated .google.shopping.merchant.datasources.v1beta.DataSource data_sources = 1;

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.datasources.v1beta.DataSource>
Returns
Type Description
ListDataSourcesResponse.Builder

addDataSources(DataSource value)

public ListDataSourcesResponse.Builder addDataSources(DataSource value)

The data sources from the specified account.

repeated .google.shopping.merchant.datasources.v1beta.DataSource data_sources = 1;

Parameter
Name Description
value DataSource
Returns
Type Description
ListDataSourcesResponse.Builder

addDataSources(DataSource.Builder builderForValue)

public ListDataSourcesResponse.Builder addDataSources(DataSource.Builder builderForValue)

The data sources from the specified account.

repeated .google.shopping.merchant.datasources.v1beta.DataSource data_sources = 1;

Parameter
Name Description
builderForValue DataSource.Builder
Returns
Type Description
ListDataSourcesResponse.Builder

addDataSources(int index, DataSource value)

public ListDataSourcesResponse.Builder addDataSources(int index, DataSource value)

The data sources from the specified account.

repeated .google.shopping.merchant.datasources.v1beta.DataSource data_sources = 1;

Parameters
Name Description
index int
value DataSource
Returns
Type Description
ListDataSourcesResponse.Builder

addDataSources(int index, DataSource.Builder builderForValue)

public ListDataSourcesResponse.Builder addDataSources(int index, DataSource.Builder builderForValue)

The data sources from the specified account.

repeated .google.shopping.merchant.datasources.v1beta.DataSource data_sources = 1;

Parameters
Name Description
index int
builderForValue DataSource.Builder
Returns
Type Description
ListDataSourcesResponse.Builder

addDataSourcesBuilder()

public DataSource.Builder addDataSourcesBuilder()

The data sources from the specified account.

repeated .google.shopping.merchant.datasources.v1beta.DataSource data_sources = 1;

Returns
Type Description
DataSource.Builder

addDataSourcesBuilder(int index)

public DataSource.Builder addDataSourcesBuilder(int index)

The data sources from the specified account.

repeated .google.shopping.merchant.datasources.v1beta.DataSource data_sources = 1;

Parameter
Name Description
index int
Returns
Type Description
DataSource.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListDataSourcesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides

build()

public ListDataSourcesResponse build()
Returns
Type Description
ListDataSourcesResponse

buildPartial()

public ListDataSourcesResponse buildPartial()
Returns
Type Description
ListDataSourcesResponse

clear()

public ListDataSourcesResponse.Builder clear()
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides

clearDataSources()

public ListDataSourcesResponse.Builder clearDataSources()

The data sources from the specified account.

repeated .google.shopping.merchant.datasources.v1beta.DataSource data_sources = 1;

Returns
Type Description
ListDataSourcesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListDataSourcesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides

clearNextPageToken()

public ListDataSourcesResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListDataSourcesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListDataSourcesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides

clone()

public ListDataSourcesResponse.Builder clone()
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides

getDataSources(int index)

public DataSource getDataSources(int index)

The data sources from the specified account.

repeated .google.shopping.merchant.datasources.v1beta.DataSource data_sources = 1;

Parameter
Name Description
index int
Returns
Type Description
DataSource

getDataSourcesBuilder(int index)

public DataSource.Builder getDataSourcesBuilder(int index)

The data sources from the specified account.

repeated .google.shopping.merchant.datasources.v1beta.DataSource data_sources = 1;

Parameter
Name Description
index int
Returns
Type Description
DataSource.Builder

getDataSourcesBuilderList()

public List<DataSource.Builder> getDataSourcesBuilderList()

The data sources from the specified account.

repeated .google.shopping.merchant.datasources.v1beta.DataSource data_sources = 1;

Returns
Type Description
List<Builder>

getDataSourcesCount()

public int getDataSourcesCount()

The data sources from the specified account.

repeated .google.shopping.merchant.datasources.v1beta.DataSource data_sources = 1;

Returns
Type Description
int

getDataSourcesList()

public List<DataSource> getDataSourcesList()

The data sources from the specified account.

repeated .google.shopping.merchant.datasources.v1beta.DataSource data_sources = 1;

Returns
Type Description
List<DataSource>

getDataSourcesOrBuilder(int index)

public DataSourceOrBuilder getDataSourcesOrBuilder(int index)

The data sources from the specified account.

repeated .google.shopping.merchant.datasources.v1beta.DataSource data_sources = 1;

Parameter
Name Description
index int
Returns
Type Description
DataSourceOrBuilder

getDataSourcesOrBuilderList()

public List<? extends DataSourceOrBuilder> getDataSourcesOrBuilderList()

The data sources from the specified account.

repeated .google.shopping.merchant.datasources.v1beta.DataSource data_sources = 1;

Returns
Type Description
List<? extends com.google.shopping.merchant.datasources.v1beta.DataSourceOrBuilder>

getDefaultInstanceForType()

public ListDataSourcesResponse getDefaultInstanceForType()
Returns
Type Description
ListDataSourcesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListDataSourcesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListDataSourcesResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides

mergeFrom(ListDataSourcesResponse other)

public ListDataSourcesResponse.Builder mergeFrom(ListDataSourcesResponse other)
Parameter
Name Description
other ListDataSourcesResponse
Returns
Type Description
ListDataSourcesResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListDataSourcesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides

removeDataSources(int index)

public ListDataSourcesResponse.Builder removeDataSources(int index)

The data sources from the specified account.

repeated .google.shopping.merchant.datasources.v1beta.DataSource data_sources = 1;

Parameter
Name Description
index int
Returns
Type Description
ListDataSourcesResponse.Builder

setDataSources(int index, DataSource value)

public ListDataSourcesResponse.Builder setDataSources(int index, DataSource value)

The data sources from the specified account.

repeated .google.shopping.merchant.datasources.v1beta.DataSource data_sources = 1;

Parameters
Name Description
index int
value DataSource
Returns
Type Description
ListDataSourcesResponse.Builder

setDataSources(int index, DataSource.Builder builderForValue)

public ListDataSourcesResponse.Builder setDataSources(int index, DataSource.Builder builderForValue)

The data sources from the specified account.

repeated .google.shopping.merchant.datasources.v1beta.DataSource data_sources = 1;

Parameters
Name Description
index int
builderForValue DataSource.Builder
Returns
Type Description
ListDataSourcesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListDataSourcesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides

setNextPageToken(String value)

public ListDataSourcesResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListDataSourcesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListDataSourcesResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListDataSourcesResponse.Builder

This builder for chaining.

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

public ListDataSourcesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListDataSourcesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListDataSourcesResponse.Builder
Overrides