Class SearchExampleComparisonsResponse.ExampleComparison.Builder (0.138.0)

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

Example comparisons comparing ground truth output and predictions for a specific input.

Protobuf type google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SearchExampleComparisonsResponse.ExampleComparison.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllModelCreatedExamples(Iterable<? extends Example> values)

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

Predictions by the model for the input.

repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.datalabeling.v1beta1.Example>
Returns
TypeDescription
SearchExampleComparisonsResponse.ExampleComparison.Builder

addModelCreatedExamples(Example value)

public SearchExampleComparisonsResponse.ExampleComparison.Builder addModelCreatedExamples(Example value)

Predictions by the model for the input.

repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2;

Parameter
NameDescription
valueExample
Returns
TypeDescription
SearchExampleComparisonsResponse.ExampleComparison.Builder

addModelCreatedExamples(Example.Builder builderForValue)

public SearchExampleComparisonsResponse.ExampleComparison.Builder addModelCreatedExamples(Example.Builder builderForValue)

Predictions by the model for the input.

repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2;

Parameter
NameDescription
builderForValueExample.Builder
Returns
TypeDescription
SearchExampleComparisonsResponse.ExampleComparison.Builder

addModelCreatedExamples(int index, Example value)

public SearchExampleComparisonsResponse.ExampleComparison.Builder addModelCreatedExamples(int index, Example value)

Predictions by the model for the input.

repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2;

Parameters
NameDescription
indexint
valueExample
Returns
TypeDescription
SearchExampleComparisonsResponse.ExampleComparison.Builder

addModelCreatedExamples(int index, Example.Builder builderForValue)

public SearchExampleComparisonsResponse.ExampleComparison.Builder addModelCreatedExamples(int index, Example.Builder builderForValue)

Predictions by the model for the input.

repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2;

Parameters
NameDescription
indexint
builderForValueExample.Builder
Returns
TypeDescription
SearchExampleComparisonsResponse.ExampleComparison.Builder

addModelCreatedExamplesBuilder()

public Example.Builder addModelCreatedExamplesBuilder()

Predictions by the model for the input.

repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2;

Returns
TypeDescription
Example.Builder

addModelCreatedExamplesBuilder(int index)

public Example.Builder addModelCreatedExamplesBuilder(int index)

Predictions by the model for the input.

repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Example.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SearchExampleComparisonsResponse.ExampleComparison build()
Returns
TypeDescription
SearchExampleComparisonsResponse.ExampleComparison

buildPartial()

public SearchExampleComparisonsResponse.ExampleComparison buildPartial()
Returns
TypeDescription
SearchExampleComparisonsResponse.ExampleComparison

clear()

public SearchExampleComparisonsResponse.ExampleComparison.Builder clear()
Returns
TypeDescription
SearchExampleComparisonsResponse.ExampleComparison.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearGroundTruthExample()

public SearchExampleComparisonsResponse.ExampleComparison.Builder clearGroundTruthExample()

The ground truth output for the input.

.google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1;

Returns
TypeDescription
SearchExampleComparisonsResponse.ExampleComparison.Builder

clearModelCreatedExamples()

public SearchExampleComparisonsResponse.ExampleComparison.Builder clearModelCreatedExamples()

Predictions by the model for the input.

repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2;

Returns
TypeDescription
SearchExampleComparisonsResponse.ExampleComparison.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public SearchExampleComparisonsResponse.ExampleComparison getDefaultInstanceForType()
Returns
TypeDescription
SearchExampleComparisonsResponse.ExampleComparison

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGroundTruthExample()

public Example getGroundTruthExample()

The ground truth output for the input.

.google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1;

Returns
TypeDescription
Example

The groundTruthExample.

getGroundTruthExampleBuilder()

public Example.Builder getGroundTruthExampleBuilder()

The ground truth output for the input.

.google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1;

Returns
TypeDescription
Example.Builder

getGroundTruthExampleOrBuilder()

public ExampleOrBuilder getGroundTruthExampleOrBuilder()

The ground truth output for the input.

.google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1;

Returns
TypeDescription
ExampleOrBuilder

getModelCreatedExamples(int index)

public Example getModelCreatedExamples(int index)

Predictions by the model for the input.

repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Example

getModelCreatedExamplesBuilder(int index)

public Example.Builder getModelCreatedExamplesBuilder(int index)

Predictions by the model for the input.

repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Example.Builder

getModelCreatedExamplesBuilderList()

public List<Example.Builder> getModelCreatedExamplesBuilderList()

Predictions by the model for the input.

repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2;

Returns
TypeDescription
List<Builder>

getModelCreatedExamplesCount()

public int getModelCreatedExamplesCount()

Predictions by the model for the input.

repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2;

Returns
TypeDescription
int

getModelCreatedExamplesList()

public List<Example> getModelCreatedExamplesList()

Predictions by the model for the input.

repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2;

Returns
TypeDescription
List<Example>

getModelCreatedExamplesOrBuilder(int index)

public ExampleOrBuilder getModelCreatedExamplesOrBuilder(int index)

Predictions by the model for the input.

repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
ExampleOrBuilder

getModelCreatedExamplesOrBuilderList()

public List<? extends ExampleOrBuilder> getModelCreatedExamplesOrBuilderList()

Predictions by the model for the input.

repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2;

Returns
TypeDescription
List<? extends com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder>

hasGroundTruthExample()

public boolean hasGroundTruthExample()

The ground truth output for the input.

.google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1;

Returns
TypeDescription
boolean

Whether the groundTruthExample field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchExampleComparisonsResponse.ExampleComparison other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGroundTruthExample(Example value)

public SearchExampleComparisonsResponse.ExampleComparison.Builder mergeGroundTruthExample(Example value)

The ground truth output for the input.

.google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1;

Parameter
NameDescription
valueExample
Returns
TypeDescription
SearchExampleComparisonsResponse.ExampleComparison.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeModelCreatedExamples(int index)

public SearchExampleComparisonsResponse.ExampleComparison.Builder removeModelCreatedExamples(int index)

Predictions by the model for the input.

repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
SearchExampleComparisonsResponse.ExampleComparison.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGroundTruthExample(Example value)

public SearchExampleComparisonsResponse.ExampleComparison.Builder setGroundTruthExample(Example value)

The ground truth output for the input.

.google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1;

Parameter
NameDescription
valueExample
Returns
TypeDescription
SearchExampleComparisonsResponse.ExampleComparison.Builder

setGroundTruthExample(Example.Builder builderForValue)

public SearchExampleComparisonsResponse.ExampleComparison.Builder setGroundTruthExample(Example.Builder builderForValue)

The ground truth output for the input.

.google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1;

Parameter
NameDescription
builderForValueExample.Builder
Returns
TypeDescription
SearchExampleComparisonsResponse.ExampleComparison.Builder

setModelCreatedExamples(int index, Example value)

public SearchExampleComparisonsResponse.ExampleComparison.Builder setModelCreatedExamples(int index, Example value)

Predictions by the model for the input.

repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2;

Parameters
NameDescription
indexint
valueExample
Returns
TypeDescription
SearchExampleComparisonsResponse.ExampleComparison.Builder

setModelCreatedExamples(int index, Example.Builder builderForValue)

public SearchExampleComparisonsResponse.ExampleComparison.Builder setModelCreatedExamples(int index, Example.Builder builderForValue)

Predictions by the model for the input.

repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2;

Parameters
NameDescription
indexint
builderForValueExample.Builder
Returns
TypeDescription
SearchExampleComparisonsResponse.ExampleComparison.Builder

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

public SearchExampleComparisonsResponse.ExampleComparison.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SearchExampleComparisonsResponse.ExampleComparison.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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