Class ListExamplesResponse.Builder (0.152.0)

public static final class ListExamplesResponse.Builder extends GeneratedMessageV3.Builder<ListExamplesResponse.Builder> implements ListExamplesResponseOrBuilder

Results of listing Examples in and annotated dataset.

Protobuf type google.cloud.datalabeling.v1beta1.ListExamplesResponse

Static Methods

getDescriptor()

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

Methods

addAllExamples(Iterable<? extends Example> values)

public ListExamplesResponse.Builder addAllExamples(Iterable<? extends Example> values)

The list of examples to return.

repeated .google.cloud.datalabeling.v1beta1.Example examples = 1;

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

addExamples(Example value)

public ListExamplesResponse.Builder addExamples(Example value)

The list of examples to return.

repeated .google.cloud.datalabeling.v1beta1.Example examples = 1;

Parameter
NameDescription
valueExample
Returns
TypeDescription
ListExamplesResponse.Builder

addExamples(Example.Builder builderForValue)

public ListExamplesResponse.Builder addExamples(Example.Builder builderForValue)

The list of examples to return.

repeated .google.cloud.datalabeling.v1beta1.Example examples = 1;

Parameter
NameDescription
builderForValueExample.Builder
Returns
TypeDescription
ListExamplesResponse.Builder

addExamples(int index, Example value)

public ListExamplesResponse.Builder addExamples(int index, Example value)

The list of examples to return.

repeated .google.cloud.datalabeling.v1beta1.Example examples = 1;

Parameters
NameDescription
indexint
valueExample
Returns
TypeDescription
ListExamplesResponse.Builder

addExamples(int index, Example.Builder builderForValue)

public ListExamplesResponse.Builder addExamples(int index, Example.Builder builderForValue)

The list of examples to return.

repeated .google.cloud.datalabeling.v1beta1.Example examples = 1;

Parameters
NameDescription
indexint
builderForValueExample.Builder
Returns
TypeDescription
ListExamplesResponse.Builder

addExamplesBuilder()

public Example.Builder addExamplesBuilder()

The list of examples to return.

repeated .google.cloud.datalabeling.v1beta1.Example examples = 1;

Returns
TypeDescription
Example.Builder

addExamplesBuilder(int index)

public Example.Builder addExamplesBuilder(int index)

The list of examples to return.

repeated .google.cloud.datalabeling.v1beta1.Example examples = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Example.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListExamplesResponse build()
Returns
TypeDescription
ListExamplesResponse

buildPartial()

public ListExamplesResponse buildPartial()
Returns
TypeDescription
ListExamplesResponse

clear()

public ListExamplesResponse.Builder clear()
Returns
TypeDescription
ListExamplesResponse.Builder
Overrides

clearExamples()

public ListExamplesResponse.Builder clearExamples()

The list of examples to return.

repeated .google.cloud.datalabeling.v1beta1.Example examples = 1;

Returns
TypeDescription
ListExamplesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListExamplesResponse.Builder clearNextPageToken()

A token to retrieve next page of results.

string next_page_token = 2;

Returns
TypeDescription
ListExamplesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListExamplesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListExamplesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExamples(int index)

public Example getExamples(int index)

The list of examples to return.

repeated .google.cloud.datalabeling.v1beta1.Example examples = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Example

getExamplesBuilder(int index)

public Example.Builder getExamplesBuilder(int index)

The list of examples to return.

repeated .google.cloud.datalabeling.v1beta1.Example examples = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Example.Builder

getExamplesBuilderList()

public List<Example.Builder> getExamplesBuilderList()

The list of examples to return.

repeated .google.cloud.datalabeling.v1beta1.Example examples = 1;

Returns
TypeDescription
List<Builder>

getExamplesCount()

public int getExamplesCount()

The list of examples to return.

repeated .google.cloud.datalabeling.v1beta1.Example examples = 1;

Returns
TypeDescription
int

getExamplesList()

public List<Example> getExamplesList()

The list of examples to return.

repeated .google.cloud.datalabeling.v1beta1.Example examples = 1;

Returns
TypeDescription
List<Example>

getExamplesOrBuilder(int index)

public ExampleOrBuilder getExamplesOrBuilder(int index)

The list of examples to return.

repeated .google.cloud.datalabeling.v1beta1.Example examples = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ExampleOrBuilder

getExamplesOrBuilderList()

public List<? extends ExampleOrBuilder> getExamplesOrBuilderList()

The list of examples to return.

repeated .google.cloud.datalabeling.v1beta1.Example examples = 1;

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

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(ListExamplesResponse other)

public ListExamplesResponse.Builder mergeFrom(ListExamplesResponse other)
Parameter
NameDescription
otherListExamplesResponse
Returns
TypeDescription
ListExamplesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeExamples(int index)

public ListExamplesResponse.Builder removeExamples(int index)

The list of examples to return.

repeated .google.cloud.datalabeling.v1beta1.Example examples = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListExamplesResponse.Builder

setExamples(int index, Example value)

public ListExamplesResponse.Builder setExamples(int index, Example value)

The list of examples to return.

repeated .google.cloud.datalabeling.v1beta1.Example examples = 1;

Parameters
NameDescription
indexint
valueExample
Returns
TypeDescription
ListExamplesResponse.Builder

setExamples(int index, Example.Builder builderForValue)

public ListExamplesResponse.Builder setExamples(int index, Example.Builder builderForValue)

The list of examples to return.

repeated .google.cloud.datalabeling.v1beta1.Example examples = 1;

Parameters
NameDescription
indexint
builderForValueExample.Builder
Returns
TypeDescription
ListExamplesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListExamplesResponse.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
ListExamplesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListExamplesResponse.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
ListExamplesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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