Class SearchExampleComparisonsResponse.Builder (0.167.0)

public static final class SearchExampleComparisonsResponse.Builder extends GeneratedMessageV3.Builder<SearchExampleComparisonsResponse.Builder> implements SearchExampleComparisonsResponseOrBuilder

Results of searching example comparisons.

Protobuf type google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse

Static Methods

getDescriptor()

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

Methods

addAllExampleComparisons(Iterable<? extends SearchExampleComparisonsResponse.ExampleComparison> values)

public SearchExampleComparisonsResponse.Builder addAllExampleComparisons(Iterable<? extends SearchExampleComparisonsResponse.ExampleComparison> values)

A list of example comparisons matching the search criteria.

repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison>
Returns
Type Description
SearchExampleComparisonsResponse.Builder

addExampleComparisons(SearchExampleComparisonsResponse.ExampleComparison value)

public SearchExampleComparisonsResponse.Builder addExampleComparisons(SearchExampleComparisonsResponse.ExampleComparison value)

A list of example comparisons matching the search criteria.

repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1;

Parameter
Name Description
value SearchExampleComparisonsResponse.ExampleComparison
Returns
Type Description
SearchExampleComparisonsResponse.Builder

addExampleComparisons(SearchExampleComparisonsResponse.ExampleComparison.Builder builderForValue)

public SearchExampleComparisonsResponse.Builder addExampleComparisons(SearchExampleComparisonsResponse.ExampleComparison.Builder builderForValue)

A list of example comparisons matching the search criteria.

repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1;

Parameter
Name Description
builderForValue SearchExampleComparisonsResponse.ExampleComparison.Builder
Returns
Type Description
SearchExampleComparisonsResponse.Builder

addExampleComparisons(int index, SearchExampleComparisonsResponse.ExampleComparison value)

public SearchExampleComparisonsResponse.Builder addExampleComparisons(int index, SearchExampleComparisonsResponse.ExampleComparison value)

A list of example comparisons matching the search criteria.

repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1;

Parameters
Name Description
index int
value SearchExampleComparisonsResponse.ExampleComparison
Returns
Type Description
SearchExampleComparisonsResponse.Builder

addExampleComparisons(int index, SearchExampleComparisonsResponse.ExampleComparison.Builder builderForValue)

public SearchExampleComparisonsResponse.Builder addExampleComparisons(int index, SearchExampleComparisonsResponse.ExampleComparison.Builder builderForValue)

A list of example comparisons matching the search criteria.

repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1;

Parameters
Name Description
index int
builderForValue SearchExampleComparisonsResponse.ExampleComparison.Builder
Returns
Type Description
SearchExampleComparisonsResponse.Builder

addExampleComparisonsBuilder()

public SearchExampleComparisonsResponse.ExampleComparison.Builder addExampleComparisonsBuilder()

A list of example comparisons matching the search criteria.

repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1;

Returns
Type Description
SearchExampleComparisonsResponse.ExampleComparison.Builder

addExampleComparisonsBuilder(int index)

public SearchExampleComparisonsResponse.ExampleComparison.Builder addExampleComparisonsBuilder(int index)

A list of example comparisons matching the search criteria.

repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchExampleComparisonsResponse.ExampleComparison.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SearchExampleComparisonsResponse build()
Returns
Type Description
SearchExampleComparisonsResponse

buildPartial()

public SearchExampleComparisonsResponse buildPartial()
Returns
Type Description
SearchExampleComparisonsResponse

clear()

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

clearExampleComparisons()

public SearchExampleComparisonsResponse.Builder clearExampleComparisons()

A list of example comparisons matching the search criteria.

repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1;

Returns
Type Description
SearchExampleComparisonsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public SearchExampleComparisonsResponse.Builder clearNextPageToken()

A token to retrieve next page of results.

string next_page_token = 2;

Returns
Type Description
SearchExampleComparisonsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public SearchExampleComparisonsResponse getDefaultInstanceForType()
Returns
Type Description
SearchExampleComparisonsResponse

getDescriptorForType()

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

getExampleComparisons(int index)

public SearchExampleComparisonsResponse.ExampleComparison getExampleComparisons(int index)

A list of example comparisons matching the search criteria.

repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchExampleComparisonsResponse.ExampleComparison

getExampleComparisonsBuilder(int index)

public SearchExampleComparisonsResponse.ExampleComparison.Builder getExampleComparisonsBuilder(int index)

A list of example comparisons matching the search criteria.

repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchExampleComparisonsResponse.ExampleComparison.Builder

getExampleComparisonsBuilderList()

public List<SearchExampleComparisonsResponse.ExampleComparison.Builder> getExampleComparisonsBuilderList()

A list of example comparisons matching the search criteria.

repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1;

Returns
Type Description
List<Builder>

getExampleComparisonsCount()

public int getExampleComparisonsCount()

A list of example comparisons matching the search criteria.

repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1;

Returns
Type Description
int

getExampleComparisonsList()

public List<SearchExampleComparisonsResponse.ExampleComparison> getExampleComparisonsList()

A list of example comparisons matching the search criteria.

repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1;

Returns
Type Description
List<ExampleComparison>

getExampleComparisonsOrBuilder(int index)

public SearchExampleComparisonsResponse.ExampleComparisonOrBuilder getExampleComparisonsOrBuilder(int index)

A list of example comparisons matching the search criteria.

repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchExampleComparisonsResponse.ExampleComparisonOrBuilder

getExampleComparisonsOrBuilderList()

public List<? extends SearchExampleComparisonsResponse.ExampleComparisonOrBuilder> getExampleComparisonsOrBuilderList()

A list of example comparisons matching the search criteria.

repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1;

Returns
Type Description
List<? extends com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparisonOrBuilder>

getNextPageToken()

public String getNextPageToken()

A token to retrieve next page of results.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to retrieve next page of results.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchExampleComparisonsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeExampleComparisons(int index)

public SearchExampleComparisonsResponse.Builder removeExampleComparisons(int index)

A list of example comparisons matching the search criteria.

repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchExampleComparisonsResponse.Builder

setExampleComparisons(int index, SearchExampleComparisonsResponse.ExampleComparison value)

public SearchExampleComparisonsResponse.Builder setExampleComparisons(int index, SearchExampleComparisonsResponse.ExampleComparison value)

A list of example comparisons matching the search criteria.

repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1;

Parameters
Name Description
index int
value SearchExampleComparisonsResponse.ExampleComparison
Returns
Type Description
SearchExampleComparisonsResponse.Builder

setExampleComparisons(int index, SearchExampleComparisonsResponse.ExampleComparison.Builder builderForValue)

public SearchExampleComparisonsResponse.Builder setExampleComparisons(int index, SearchExampleComparisonsResponse.ExampleComparison.Builder builderForValue)

A list of example comparisons matching the search criteria.

repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1;

Parameters
Name Description
index int
builderForValue SearchExampleComparisonsResponse.ExampleComparison.Builder
Returns
Type Description
SearchExampleComparisonsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public SearchExampleComparisonsResponse.Builder setNextPageToken(String value)

A token to retrieve next page of results.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
SearchExampleComparisonsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public SearchExampleComparisonsResponse.Builder setNextPageTokenBytes(ByteString value)

A token to retrieve next page of results.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
SearchExampleComparisonsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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