Class ListSampleQuerySetsResponse.Builder (0.49.0)

public static final class ListSampleQuerySetsResponse.Builder extends GeneratedMessageV3.Builder<ListSampleQuerySetsResponse.Builder> implements ListSampleQuerySetsResponseOrBuilder

Response message for SampleQuerySetService.ListSampleQuerySets method.

Protobuf type google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse

Static Methods

getDescriptor()

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

Methods

addAllSampleQuerySets(Iterable<? extends SampleQuerySet> values)

public ListSampleQuerySetsResponse.Builder addAllSampleQuerySets(Iterable<? extends SampleQuerySet> values)

The SampleQuerySets.

repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSampleQuerySets(SampleQuerySet value)

public ListSampleQuerySetsResponse.Builder addSampleQuerySets(SampleQuerySet value)

The SampleQuerySets.

repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1;

Parameter
Name Description
value SampleQuerySet
Returns
Type Description
ListSampleQuerySetsResponse.Builder

addSampleQuerySets(SampleQuerySet.Builder builderForValue)

public ListSampleQuerySetsResponse.Builder addSampleQuerySets(SampleQuerySet.Builder builderForValue)

The SampleQuerySets.

repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1;

Parameter
Name Description
builderForValue SampleQuerySet.Builder
Returns
Type Description
ListSampleQuerySetsResponse.Builder

addSampleQuerySets(int index, SampleQuerySet value)

public ListSampleQuerySetsResponse.Builder addSampleQuerySets(int index, SampleQuerySet value)

The SampleQuerySets.

repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1;

Parameters
Name Description
index int
value SampleQuerySet
Returns
Type Description
ListSampleQuerySetsResponse.Builder

addSampleQuerySets(int index, SampleQuerySet.Builder builderForValue)

public ListSampleQuerySetsResponse.Builder addSampleQuerySets(int index, SampleQuerySet.Builder builderForValue)

The SampleQuerySets.

repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1;

Parameters
Name Description
index int
builderForValue SampleQuerySet.Builder
Returns
Type Description
ListSampleQuerySetsResponse.Builder

addSampleQuerySetsBuilder()

public SampleQuerySet.Builder addSampleQuerySetsBuilder()

The SampleQuerySets.

repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1;

Returns
Type Description
SampleQuerySet.Builder

addSampleQuerySetsBuilder(int index)

public SampleQuerySet.Builder addSampleQuerySetsBuilder(int index)

The SampleQuerySets.

repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1;

Parameter
Name Description
index int
Returns
Type Description
SampleQuerySet.Builder

build()

public ListSampleQuerySetsResponse build()
Returns
Type Description
ListSampleQuerySetsResponse

buildPartial()

public ListSampleQuerySetsResponse buildPartial()
Returns
Type Description
ListSampleQuerySetsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListSampleQuerySetsResponse.Builder clearNextPageToken()

A token that can be sent as ListSampleQuerySetsRequest.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
ListSampleQuerySetsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSampleQuerySets()

public ListSampleQuerySetsResponse.Builder clearSampleQuerySets()

The SampleQuerySets.

repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1;

Returns
Type Description
ListSampleQuerySetsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListSampleQuerySetsResponse getDefaultInstanceForType()
Returns
Type Description
ListSampleQuerySetsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token that can be sent as ListSampleQuerySetsRequest.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 ListSampleQuerySetsRequest.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.

getSampleQuerySets(int index)

public SampleQuerySet getSampleQuerySets(int index)

The SampleQuerySets.

repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1;

Parameter
Name Description
index int
Returns
Type Description
SampleQuerySet

getSampleQuerySetsBuilder(int index)

public SampleQuerySet.Builder getSampleQuerySetsBuilder(int index)

The SampleQuerySets.

repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1;

Parameter
Name Description
index int
Returns
Type Description
SampleQuerySet.Builder

getSampleQuerySetsBuilderList()

public List<SampleQuerySet.Builder> getSampleQuerySetsBuilderList()

The SampleQuerySets.

repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1;

Returns
Type Description
List<Builder>

getSampleQuerySetsCount()

public int getSampleQuerySetsCount()

The SampleQuerySets.

repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1;

Returns
Type Description
int

getSampleQuerySetsList()

public List<SampleQuerySet> getSampleQuerySetsList()

The SampleQuerySets.

repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1;

Returns
Type Description
List<SampleQuerySet>

getSampleQuerySetsOrBuilder(int index)

public SampleQuerySetOrBuilder getSampleQuerySetsOrBuilder(int index)

The SampleQuerySets.

repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1;

Parameter
Name Description
index int
Returns
Type Description
SampleQuerySetOrBuilder

getSampleQuerySetsOrBuilderList()

public List<? extends SampleQuerySetOrBuilder> getSampleQuerySetsOrBuilderList()

The SampleQuerySets.

repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.SampleQuerySetOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListSampleQuerySetsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSampleQuerySets(int index)

public ListSampleQuerySetsResponse.Builder removeSampleQuerySets(int index)

The SampleQuerySets.

repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1;

Parameter
Name Description
index int
Returns
Type Description
ListSampleQuerySetsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListSampleQuerySetsResponse.Builder setNextPageToken(String value)

A token that can be sent as ListSampleQuerySetsRequest.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
ListSampleQuerySetsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListSampleQuerySetsResponse.Builder setNextPageTokenBytes(ByteString value)

A token that can be sent as ListSampleQuerySetsRequest.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
ListSampleQuerySetsResponse.Builder

This builder for chaining.

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

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

setSampleQuerySets(int index, SampleQuerySet value)

public ListSampleQuerySetsResponse.Builder setSampleQuerySets(int index, SampleQuerySet value)

The SampleQuerySets.

repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1;

Parameters
Name Description
index int
value SampleQuerySet
Returns
Type Description
ListSampleQuerySetsResponse.Builder

setSampleQuerySets(int index, SampleQuerySet.Builder builderForValue)

public ListSampleQuerySetsResponse.Builder setSampleQuerySets(int index, SampleQuerySet.Builder builderForValue)

The SampleQuerySets.

repeated .google.cloud.discoveryengine.v1beta.SampleQuerySet sample_query_sets = 1;

Parameters
Name Description
index int
builderForValue SampleQuerySet.Builder
Returns
Type Description
ListSampleQuerySetsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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