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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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
public static final Descriptors.Descriptor getDescriptor()
Methods
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>
|
public SearchResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public SearchResponse.Builder addResults(ReportRow value)
Rows that matched the search query.
repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;
public SearchResponse.Builder addResults(ReportRow.Builder builderForValue)
Rows that matched the search query.
repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;
public SearchResponse.Builder addResults(int index, ReportRow value)
Rows that matched the search query.
repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;
public SearchResponse.Builder addResults(int index, ReportRow.Builder builderForValue)
Rows that matched the search query.
repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;
public ReportRow.Builder addResultsBuilder()
Rows that matched the search query.
repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;
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
|
public SearchResponse build()
public SearchResponse buildPartial()
public SearchResponse.Builder clear()
Overrides
public SearchResponse.Builder clearField(Descriptors.FieldDescriptor field)
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;
public SearchResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public SearchResponse.Builder clearResults()
Rows that matched the search query.
repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;
public SearchResponse.Builder clone()
Overrides
public SearchResponse getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
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.
|
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
|
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
|
public List<ReportRow.Builder> getResultsBuilderList()
Rows that matched the search query.
repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;
public int getResultsCount()
Rows that matched the search query.
repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;
Returns |
Type |
Description |
int |
|
public List<ReportRow> getResultsList()
Rows that matched the search query.
repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;
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
|
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> |
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public SearchResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public SearchResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public SearchResponse.Builder mergeFrom(SearchResponse other)
public final SearchResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
public SearchResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
public SearchResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public SearchResponse.Builder setResults(int index, ReportRow value)
Rows that matched the search query.
repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;
public SearchResponse.Builder setResults(int index, ReportRow.Builder builderForValue)
Rows that matched the search query.
repeated .google.shopping.merchant.reports.v1beta.ReportRow results = 1;
public final SearchResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides