Class ListSampleQueriesResponse.Builder (0.49.0)

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

Static Methods

getDescriptor()

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

Methods

addAllSampleQueries(Iterable<? extends SampleQuery> values)

public ListSampleQueriesResponse.Builder addAllSampleQueries(Iterable<? extends SampleQuery> values)

The SampleQuerys.

repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1beta.SampleQuery>
Returns
Type Description
ListSampleQueriesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSampleQueries(SampleQuery value)

public ListSampleQueriesResponse.Builder addSampleQueries(SampleQuery value)

The SampleQuerys.

repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;

Parameter
Name Description
value SampleQuery
Returns
Type Description
ListSampleQueriesResponse.Builder

addSampleQueries(SampleQuery.Builder builderForValue)

public ListSampleQueriesResponse.Builder addSampleQueries(SampleQuery.Builder builderForValue)

The SampleQuerys.

repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;

Parameter
Name Description
builderForValue SampleQuery.Builder
Returns
Type Description
ListSampleQueriesResponse.Builder

addSampleQueries(int index, SampleQuery value)

public ListSampleQueriesResponse.Builder addSampleQueries(int index, SampleQuery value)

The SampleQuerys.

repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;

Parameters
Name Description
index int
value SampleQuery
Returns
Type Description
ListSampleQueriesResponse.Builder

addSampleQueries(int index, SampleQuery.Builder builderForValue)

public ListSampleQueriesResponse.Builder addSampleQueries(int index, SampleQuery.Builder builderForValue)

The SampleQuerys.

repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;

Parameters
Name Description
index int
builderForValue SampleQuery.Builder
Returns
Type Description
ListSampleQueriesResponse.Builder

addSampleQueriesBuilder()

public SampleQuery.Builder addSampleQueriesBuilder()

The SampleQuerys.

repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;

Returns
Type Description
SampleQuery.Builder

addSampleQueriesBuilder(int index)

public SampleQuery.Builder addSampleQueriesBuilder(int index)

The SampleQuerys.

repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;

Parameter
Name Description
index int
Returns
Type Description
SampleQuery.Builder

build()

public ListSampleQueriesResponse build()
Returns
Type Description
ListSampleQueriesResponse

buildPartial()

public ListSampleQueriesResponse buildPartial()
Returns
Type Description
ListSampleQueriesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListSampleQueriesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListSampleQueriesResponse.Builder
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;

Returns
Type Description
ListSampleQueriesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSampleQueries()

public ListSampleQueriesResponse.Builder clearSampleQueries()

The SampleQuerys.

repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;

Returns
Type Description
ListSampleQueriesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListSampleQueriesResponse getDefaultInstanceForType()
Returns
Type Description
ListSampleQueriesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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 SampleQuerys.

repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;

Parameter
Name Description
index int
Returns
Type Description
SampleQuery

getSampleQueriesBuilder(int index)

public SampleQuery.Builder getSampleQueriesBuilder(int index)

The SampleQuerys.

repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;

Parameter
Name Description
index int
Returns
Type Description
SampleQuery.Builder

getSampleQueriesBuilderList()

public List<SampleQuery.Builder> getSampleQueriesBuilderList()

The SampleQuerys.

repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;

Returns
Type Description
List<Builder>

getSampleQueriesCount()

public int getSampleQueriesCount()

The SampleQuerys.

repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;

Returns
Type Description
int

getSampleQueriesList()

public List<SampleQuery> getSampleQueriesList()

The SampleQuerys.

repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;

Returns
Type Description
List<SampleQuery>

getSampleQueriesOrBuilder(int index)

public SampleQueryOrBuilder getSampleQueriesOrBuilder(int index)

The SampleQuerys.

repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;

Parameter
Name Description
index int
Returns
Type Description
SampleQueryOrBuilder

getSampleQueriesOrBuilderList()

public List<? extends SampleQueryOrBuilder> getSampleQueriesOrBuilderList()

The SampleQuerys.

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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListSampleQueriesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSampleQueries(int index)

public ListSampleQueriesResponse.Builder removeSampleQueries(int index)

The SampleQuerys.

repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;

Parameter
Name Description
index int
Returns
Type Description
ListSampleQueriesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListSampleQueriesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListSampleQueriesResponse.Builder
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.

Returns
Type Description
ListSampleQueriesResponse.Builder

This builder for chaining.

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.

Returns
Type Description
ListSampleQueriesResponse.Builder

This builder for chaining.

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

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

setSampleQueries(int index, SampleQuery value)

public ListSampleQueriesResponse.Builder setSampleQueries(int index, SampleQuery value)

The SampleQuerys.

repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;

Parameters
Name Description
index int
value SampleQuery
Returns
Type Description
ListSampleQueriesResponse.Builder

setSampleQueries(int index, SampleQuery.Builder builderForValue)

public ListSampleQueriesResponse.Builder setSampleQueries(int index, SampleQuery.Builder builderForValue)

The SampleQuerys.

repeated .google.cloud.discoveryengine.v1beta.SampleQuery sample_queries = 1;

Parameters
Name Description
index int
builderForValue SampleQuery.Builder
Returns
Type Description
ListSampleQueriesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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