Send feedback
Class ListSampleQueriesResponse.Builder (0.43.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.43.0 keyboard_arrow_down
public static final class ListSampleQueriesResponse . Builder extends GeneratedMessageV3 . Builder<ListSampleQueriesResponse . Builder > implements ListSampleQueriesResponseOrBuilder
Response message for
SampleQueryService.ListSampleQueries
method.
Protobuf type google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse
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
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addAllSampleQueries(Iterable<? extends SampleQuery> values)
public ListSampleQueriesResponse . Builder addAllSampleQueries ( Iterable <? extends SampleQuery > values )
The SampleQuery s.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;
Parameter
Name
Description
values
Iterable <? extends com.google.cloud.discoveryengine.v1beta.SampleQuery >
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListSampleQueriesResponse . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
addSampleQueries(SampleQuery value)
public ListSampleQueriesResponse . Builder addSampleQueries ( SampleQuery value )
The SampleQuery s.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;
addSampleQueries(SampleQuery.Builder builderForValue)
public ListSampleQueriesResponse . Builder addSampleQueries ( SampleQuery . Builder builderForValue )
The SampleQuery s.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;
addSampleQueries(int index, SampleQuery value)
public ListSampleQueriesResponse . Builder addSampleQueries ( int index , SampleQuery value )
The SampleQuery s.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;
addSampleQueries(int index, SampleQuery.Builder builderForValue)
public ListSampleQueriesResponse . Builder addSampleQueries ( int index , SampleQuery . Builder builderForValue )
The SampleQuery s.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;
addSampleQueriesBuilder()
public SampleQuery . Builder addSampleQueriesBuilder ()
The SampleQuery s.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;
addSampleQueriesBuilder(int index)
public SampleQuery . Builder addSampleQueriesBuilder ( int index )
The SampleQuery s.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;
Parameter
Name
Description
index
int
build()
public ListSampleQueriesResponse build ()
buildPartial()
public ListSampleQueriesResponse buildPartial ()
clear()
public ListSampleQueriesResponse . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListSampleQueriesResponse . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearNextPageToken()
public ListSampleQueriesResponse . Builder clearNextPageToken ()
A token that can be sent as
ListSampleQueriesRequest.page_token
to retrieve the next page. If this field is omitted, there are no
subsequent pages.
string next_page_token = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public ListSampleQueriesResponse . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearSampleQueries()
public ListSampleQueriesResponse . Builder clearSampleQueries ()
The SampleQuery s.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;
clone()
public ListSampleQueriesResponse . Builder clone ()
Overrides
getDefaultInstanceForType()
public ListSampleQueriesResponse getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getNextPageToken()
public String getNextPageToken ()
A token that can be sent as
ListSampleQueriesRequest.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 that can be sent as
ListSampleQueriesRequest.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.
getSampleQueries(int index)
public SampleQuery getSampleQueries ( int index )
The SampleQuery s.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;
Parameter
Name
Description
index
int
getSampleQueriesBuilder(int index)
public SampleQuery . Builder getSampleQueriesBuilder ( int index )
The SampleQuery s.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;
Parameter
Name
Description
index
int
getSampleQueriesBuilderList()
public List<SampleQuery . Builder > getSampleQueriesBuilderList ()
The SampleQuery s.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;
getSampleQueriesCount()
public int getSampleQueriesCount ()
The SampleQuery s.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;
Returns
Type
Description
int
getSampleQueriesList()
public List<SampleQuery> getSampleQueriesList ()
The SampleQuery s.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;
getSampleQueriesOrBuilder(int index)
public SampleQueryOrBuilder getSampleQueriesOrBuilder ( int index )
The SampleQuery s.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;
Parameter
Name
Description
index
int
getSampleQueriesOrBuilderList()
public List <? extends SampleQueryOrBuilder > getSampleQueriesOrBuilderList ()
The SampleQuery s.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;
Returns
Type
Description
List <? extends com.google.cloud.discoveryengine.v1beta.SampleQueryOrBuilder >
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(ListSampleQueriesResponse other)
public ListSampleQueriesResponse . Builder mergeFrom ( ListSampleQueriesResponse other )
public ListSampleQueriesResponse . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public ListSampleQueriesResponse . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListSampleQueriesResponse . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
removeSampleQueries(int index)
public ListSampleQueriesResponse . Builder removeSampleQueries ( int index )
The SampleQuery s.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;
Parameter
Name
Description
index
int
setField(Descriptors.FieldDescriptor field, Object value)
public ListSampleQueriesResponse . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setNextPageToken(String value)
public ListSampleQueriesResponse . Builder setNextPageToken ( String value )
A token that can be sent as
ListSampleQueriesRequest.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.
setNextPageTokenBytes(ByteString value)
public ListSampleQueriesResponse . Builder setNextPageTokenBytes ( ByteString value )
A token that can be sent as
ListSampleQueriesRequest.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.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListSampleQueriesResponse . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setSampleQueries(int index, SampleQuery value)
public ListSampleQueriesResponse . Builder setSampleQueries ( int index , SampleQuery value )
The SampleQuery s.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;
setSampleQueries(int index, SampleQuery.Builder builderForValue)
public ListSampleQueriesResponse . Builder setSampleQueries ( int index , SampleQuery . Builder builderForValue )
The SampleQuery s.
repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;
setUnknownFields(UnknownFieldSet unknownFields)
public final ListSampleQueriesResponse . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
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-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]