Class SearchResponse.Builder (0.15.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.shopping.merchant.reports.v1beta.ReportRow>
Returns
TypeDescription
SearchResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueReportRow
Returns
TypeDescription
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
NameDescription
builderForValueReportRow.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueReportRow
Returns
TypeDescription
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
NameDescription
indexint
builderForValueReportRow.Builder
Returns
TypeDescription
SearchResponse.Builder

addResultsBuilder()

public ReportRow.Builder addResultsBuilder()

Rows that matched the search query.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ReportRow.Builder

build()

public SearchResponse build()
Returns
TypeDescription
SearchResponse

buildPartial()

public SearchResponse buildPartial()
Returns
TypeDescription
SearchResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public SearchResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
SearchResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResults()

public SearchResponse.Builder clearResults()

Rows that matched the search query.

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

Returns
TypeDescription
SearchResponse.Builder

clone()

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

getDefaultInstanceForType()

public SearchResponse getDefaultInstanceForType()
Returns
TypeDescription
SearchResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ReportRow.Builder

getResultsBuilderList()

public List<ReportRow.Builder> getResultsBuilderList()

Rows that matched the search query.

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

Returns
TypeDescription
List<Builder>

getResultsCount()

public int getResultsCount()

Rows that matched the search query.

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

Returns
TypeDescription
int

getResultsList()

public List<ReportRow> getResultsList()

Rows that matched the search query.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ReportRowOrBuilder

getResultsOrBuilderList()

public List<? extends ReportRowOrBuilder> getResultsOrBuilderList()

Rows that matched the search query.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(SearchResponse other)

public SearchResponse.Builder mergeFrom(SearchResponse other)
Parameter
NameDescription
otherSearchResponse
Returns
TypeDescription
SearchResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SearchResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueReportRow
Returns
TypeDescription
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
NameDescription
indexint
builderForValueReportRow.Builder
Returns
TypeDescription
SearchResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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