Class SearchResponse.Builder (0.28.0)

public static final class SearchResponse.Builder extends GeneratedMessageV3.Builder<SearchResponse.Builder> implements SearchResponseOrBuilder

Response message for the ReportService.Search method.

Protobuf type google.shopping.merchant.reports.v1beta.SearchResponse

Static Methods

getDescriptor()

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

Methods

addAllResults(Iterable<? extends ReportRow> values)

public SearchResponse.Builder addAllResults(Iterable<? extends ReportRow> values)

Rows that matched the search query.

repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.reports.v1beta.ReportRow>
Returns
Type Description
SearchResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResults(ReportRow value)

public SearchResponse.Builder addResults(ReportRow value)

Rows that matched the search query.

repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;

Parameter
Name Description
value ReportRow
Returns
Type Description
SearchResponse.Builder

addResults(ReportRow.Builder builderForValue)

public SearchResponse.Builder addResults(ReportRow.Builder builderForValue)

Rows that matched the search query.

repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;

Parameter
Name Description
builderForValue ReportRow.Builder
Returns
Type Description
SearchResponse.Builder

addResults(int index, ReportRow value)

public SearchResponse.Builder addResults(int index, ReportRow value)

Rows that matched the search query.

repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;

Parameters
Name Description
index int
value ReportRow
Returns
Type Description
SearchResponse.Builder

addResults(int index, ReportRow.Builder builderForValue)

public SearchResponse.Builder addResults(int index, ReportRow.Builder builderForValue)

Rows that matched the search query.

repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;

Parameters
Name Description
index int
builderForValue ReportRow.Builder
Returns
Type Description
SearchResponse.Builder

addResultsBuilder()

public ReportRow.Builder addResultsBuilder()

Rows that matched the search query.

repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;

Returns
Type Description
ReportRow.Builder

addResultsBuilder(int index)

public ReportRow.Builder addResultsBuilder(int index)

Rows that matched the search query.

repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;

Parameter
Name Description
index int
Returns
Type Description
ReportRow.Builder

build()

public SearchResponse build()
Returns
Type Description
SearchResponse

buildPartial()

public SearchResponse buildPartial()
Returns
Type Description
SearchResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public SearchResponse.Builder clearNextPageToken()

Token which can be sent as page_token to retrieve the next page. If omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
SearchResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResults()

public SearchResponse.Builder clearResults()

Rows that matched the search query.

repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;

Returns
Type Description
SearchResponse.Builder

clone()

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

getDefaultInstanceForType()

public SearchResponse getDefaultInstanceForType()
Returns
Type Description
SearchResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Token which can be sent as page_token to retrieve the next page. If omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token which can be sent as page_token to retrieve the next page. If omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getResults(int index)

public ReportRow getResults(int index)

Rows that matched the search query.

repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;

Parameter
Name Description
index int
Returns
Type Description
ReportRow

getResultsBuilder(int index)

public ReportRow.Builder getResultsBuilder(int index)

Rows that matched the search query.

repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;

Parameter
Name Description
index int
Returns
Type Description
ReportRow.Builder

getResultsBuilderList()

public List<ReportRow.Builder> getResultsBuilderList()

Rows that matched the search query.

repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;

Returns
Type Description
List<Builder>

getResultsCount()

public int getResultsCount()

Rows that matched the search query.

repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;

Returns
Type Description
int

getResultsList()

public List<ReportRow> getResultsList()

Rows that matched the search query.

repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;

Returns
Type Description
List<ReportRow>

getResultsOrBuilder(int index)

public ReportRowOrBuilder getResultsOrBuilder(int index)

Rows that matched the search query.

repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;

Parameter
Name Description
index int
Returns
Type Description
ReportRowOrBuilder

getResultsOrBuilderList()

public List<? extends ReportRowOrBuilder> getResultsOrBuilderList()

Rows that matched the search query.

repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;

Returns
Type Description
List<? extends com.google.shopping.merchant.reports.v1beta.ReportRowOrBuilder>

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 SearchResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(SearchResponse other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeResults(int index)

public SearchResponse.Builder removeResults(int index)

Rows that matched the search query.

repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public SearchResponse.Builder setNextPageToken(String value)

Token which can be sent as page_token to retrieve the next page. If omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
SearchResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public SearchResponse.Builder setNextPageTokenBytes(ByteString value)

Token which can be sent as page_token to retrieve the next page. If 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
SearchResponse.Builder

This builder for chaining.

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

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

setResults(int index, ReportRow value)

public SearchResponse.Builder setResults(int index, ReportRow value)

Rows that matched the search query.

repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;

Parameters
Name Description
index int
value ReportRow
Returns
Type Description
SearchResponse.Builder

setResults(int index, ReportRow.Builder builderForValue)

public SearchResponse.Builder setResults(int index, ReportRow.Builder builderForValue)

Rows that matched the search query.

repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;

Parameters
Name Description
index int
builderForValue ReportRow.Builder
Returns
Type Description
SearchResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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