Class ListOccurrencesResponse.Builder (2.49.0)

public static final class ListOccurrencesResponse.Builder extends GeneratedMessageV3.Builder<ListOccurrencesResponse.Builder> implements ListOccurrencesResponseOrBuilder

Response for listing occurrences.

Protobuf type grafeas.v1.ListOccurrencesResponse

Static Methods

getDescriptor()

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

Methods

addAllOccurrences(Iterable<? extends Occurrence> values)

public ListOccurrencesResponse.Builder addAllOccurrences(Iterable<? extends Occurrence> values)

The occurrences requested.

repeated .grafeas.v1.Occurrence occurrences = 1;

Parameter
Name Description
values Iterable<? extends io.grafeas.v1.Occurrence>
Returns
Type Description
ListOccurrencesResponse.Builder

addOccurrences(int index, Occurrence value)

public ListOccurrencesResponse.Builder addOccurrences(int index, Occurrence value)

The occurrences requested.

repeated .grafeas.v1.Occurrence occurrences = 1;

Parameters
Name Description
index int
value Occurrence
Returns
Type Description
ListOccurrencesResponse.Builder

addOccurrences(int index, Occurrence.Builder builderForValue)

public ListOccurrencesResponse.Builder addOccurrences(int index, Occurrence.Builder builderForValue)

The occurrences requested.

repeated .grafeas.v1.Occurrence occurrences = 1;

Parameters
Name Description
index int
builderForValue Occurrence.Builder
Returns
Type Description
ListOccurrencesResponse.Builder

addOccurrences(Occurrence value)

public ListOccurrencesResponse.Builder addOccurrences(Occurrence value)

The occurrences requested.

repeated .grafeas.v1.Occurrence occurrences = 1;

Parameter
Name Description
value Occurrence
Returns
Type Description
ListOccurrencesResponse.Builder

addOccurrences(Occurrence.Builder builderForValue)

public ListOccurrencesResponse.Builder addOccurrences(Occurrence.Builder builderForValue)

The occurrences requested.

repeated .grafeas.v1.Occurrence occurrences = 1;

Parameter
Name Description
builderForValue Occurrence.Builder
Returns
Type Description
ListOccurrencesResponse.Builder

addOccurrencesBuilder()

public Occurrence.Builder addOccurrencesBuilder()

The occurrences requested.

repeated .grafeas.v1.Occurrence occurrences = 1;

Returns
Type Description
Occurrence.Builder

addOccurrencesBuilder(int index)

public Occurrence.Builder addOccurrencesBuilder(int index)

The occurrences requested.

repeated .grafeas.v1.Occurrence occurrences = 1;

Parameter
Name Description
index int
Returns
Type Description
Occurrence.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListOccurrencesResponse build()
Returns
Type Description
ListOccurrencesResponse

buildPartial()

public ListOccurrencesResponse buildPartial()
Returns
Type Description
ListOccurrencesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListOccurrencesResponse.Builder clearNextPageToken()

The next pagination token in the list response. It should be used as page_token for the following request. An empty value means no more results.

string next_page_token = 2;

Returns
Type Description
ListOccurrencesResponse.Builder

This builder for chaining.

clearOccurrences()

public ListOccurrencesResponse.Builder clearOccurrences()

The occurrences requested.

repeated .grafeas.v1.Occurrence occurrences = 1;

Returns
Type Description
ListOccurrencesResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListOccurrencesResponse getDefaultInstanceForType()
Returns
Type Description
ListOccurrencesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

The next pagination token in the list response. It should be used as page_token for the following request. An empty value means no more results.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The next pagination token in the list response. It should be used as page_token for the following request. An empty value means no more results.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getOccurrences(int index)

public Occurrence getOccurrences(int index)

The occurrences requested.

repeated .grafeas.v1.Occurrence occurrences = 1;

Parameter
Name Description
index int
Returns
Type Description
Occurrence

getOccurrencesBuilder(int index)

public Occurrence.Builder getOccurrencesBuilder(int index)

The occurrences requested.

repeated .grafeas.v1.Occurrence occurrences = 1;

Parameter
Name Description
index int
Returns
Type Description
Occurrence.Builder

getOccurrencesBuilderList()

public List<Occurrence.Builder> getOccurrencesBuilderList()

The occurrences requested.

repeated .grafeas.v1.Occurrence occurrences = 1;

Returns
Type Description
List<Builder>

getOccurrencesCount()

public int getOccurrencesCount()

The occurrences requested.

repeated .grafeas.v1.Occurrence occurrences = 1;

Returns
Type Description
int

getOccurrencesList()

public List<Occurrence> getOccurrencesList()

The occurrences requested.

repeated .grafeas.v1.Occurrence occurrences = 1;

Returns
Type Description
List<Occurrence>

getOccurrencesOrBuilder(int index)

public OccurrenceOrBuilder getOccurrencesOrBuilder(int index)

The occurrences requested.

repeated .grafeas.v1.Occurrence occurrences = 1;

Parameter
Name Description
index int
Returns
Type Description
OccurrenceOrBuilder

getOccurrencesOrBuilderList()

public List<? extends OccurrenceOrBuilder> getOccurrencesOrBuilderList()

The occurrences requested.

repeated .grafeas.v1.Occurrence occurrences = 1;

Returns
Type Description
List<? extends io.grafeas.v1.OccurrenceOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ListOccurrencesResponse other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeOccurrences(int index)

public ListOccurrencesResponse.Builder removeOccurrences(int index)

The occurrences requested.

repeated .grafeas.v1.Occurrence occurrences = 1;

Parameter
Name Description
index int
Returns
Type Description
ListOccurrencesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListOccurrencesResponse.Builder setNextPageToken(String value)

The next pagination token in the list response. It should be used as page_token for the following request. An empty value means no more results.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListOccurrencesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListOccurrencesResponse.Builder setNextPageTokenBytes(ByteString value)

The next pagination token in the list response. It should be used as page_token for the following request. An empty value means no more results.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListOccurrencesResponse.Builder

This builder for chaining.

setOccurrences(int index, Occurrence value)

public ListOccurrencesResponse.Builder setOccurrences(int index, Occurrence value)

The occurrences requested.

repeated .grafeas.v1.Occurrence occurrences = 1;

Parameters
Name Description
index int
value Occurrence
Returns
Type Description
ListOccurrencesResponse.Builder

setOccurrences(int index, Occurrence.Builder builderForValue)

public ListOccurrencesResponse.Builder setOccurrences(int index, Occurrence.Builder builderForValue)

The occurrences requested.

repeated .grafeas.v1.Occurrence occurrences = 1;

Parameters
Name Description
index int
builderForValue Occurrence.Builder
Returns
Type Description
ListOccurrencesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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