Class SearchExampleComparisonsResponse.Builder (0.139.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison>
Returns
TypeDescription
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
NameDescription
valueSearchExampleComparisonsResponse.ExampleComparison
Returns
TypeDescription
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
NameDescription
builderForValueSearchExampleComparisonsResponse.ExampleComparison.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSearchExampleComparisonsResponse.ExampleComparison
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSearchExampleComparisonsResponse.ExampleComparison.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SearchExampleComparisonsResponse.ExampleComparison.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchExampleComparisonsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SearchExampleComparisonsResponse.Builder
Overrides

build()

public SearchExampleComparisonsResponse build()
Returns
TypeDescription
SearchExampleComparisonsResponse

buildPartial()

public SearchExampleComparisonsResponse buildPartial()
Returns
TypeDescription
SearchExampleComparisonsResponse

clear()

public SearchExampleComparisonsResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
SearchExampleComparisonsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public SearchExampleComparisonsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SearchExampleComparisonsResponse.Builder
Overrides

clearNextPageToken()

public SearchExampleComparisonsResponse.Builder clearNextPageToken()

A token to retrieve next page of results.

string next_page_token = 2;

Returns
TypeDescription
SearchExampleComparisonsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchExampleComparisonsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SearchExampleComparisonsResponse.Builder
Overrides

clone()

public SearchExampleComparisonsResponse.Builder clone()
Returns
TypeDescription
SearchExampleComparisonsResponse.Builder
Overrides

getDefaultInstanceForType()

public SearchExampleComparisonsResponse getDefaultInstanceForType()
Returns
TypeDescription
SearchExampleComparisonsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to retrieve next page of results.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchExampleComparisonsResponse other)

public SearchExampleComparisonsResponse.Builder mergeFrom(SearchExampleComparisonsResponse other)
Parameter
NameDescription
otherSearchExampleComparisonsResponse
Returns
TypeDescription
SearchExampleComparisonsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchExampleComparisonsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchExampleComparisonsResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SearchExampleComparisonsResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SearchExampleComparisonsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchExampleComparisonsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueSearchExampleComparisonsResponse.ExampleComparison
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSearchExampleComparisonsResponse.ExampleComparison.Builder
Returns
TypeDescription
SearchExampleComparisonsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchExampleComparisonsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SearchExampleComparisonsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchExampleComparisonsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchExampleComparisonsResponse.Builder
Overrides