Class ListOccurrencesResponse.Builder (2.28.0)

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

Response for listing occurrences.

Protobuf type grafeas.v1beta1.ListOccurrencesResponse

Static Methods

getDescriptor()

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

Methods

addAllOccurrences(Iterable<? extends Occurrence> values)

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

The occurrences requested.

repeated .grafeas.v1beta1.Occurrence occurrences = 1;

Parameter
NameDescription
valuesIterable<? extends io.grafeas.v1beta1.Occurrence>
Returns
TypeDescription
ListOccurrencesResponse.Builder

addOccurrences(int index, Occurrence value)

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

The occurrences requested.

repeated .grafeas.v1beta1.Occurrence occurrences = 1;

Parameters
NameDescription
indexint
valueOccurrence
Returns
TypeDescription
ListOccurrencesResponse.Builder

addOccurrences(int index, Occurrence.Builder builderForValue)

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

The occurrences requested.

repeated .grafeas.v1beta1.Occurrence occurrences = 1;

Parameters
NameDescription
indexint
builderForValueOccurrence.Builder
Returns
TypeDescription
ListOccurrencesResponse.Builder

addOccurrences(Occurrence value)

public ListOccurrencesResponse.Builder addOccurrences(Occurrence value)

The occurrences requested.

repeated .grafeas.v1beta1.Occurrence occurrences = 1;

Parameter
NameDescription
valueOccurrence
Returns
TypeDescription
ListOccurrencesResponse.Builder

addOccurrences(Occurrence.Builder builderForValue)

public ListOccurrencesResponse.Builder addOccurrences(Occurrence.Builder builderForValue)

The occurrences requested.

repeated .grafeas.v1beta1.Occurrence occurrences = 1;

Parameter
NameDescription
builderForValueOccurrence.Builder
Returns
TypeDescription
ListOccurrencesResponse.Builder

addOccurrencesBuilder()

public Occurrence.Builder addOccurrencesBuilder()

The occurrences requested.

repeated .grafeas.v1beta1.Occurrence occurrences = 1;

Returns
TypeDescription
Occurrence.Builder

addOccurrencesBuilder(int index)

public Occurrence.Builder addOccurrencesBuilder(int index)

The occurrences requested.

repeated .grafeas.v1beta1.Occurrence occurrences = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Occurrence.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListOccurrencesResponse build()
Returns
TypeDescription
ListOccurrencesResponse

buildPartial()

public ListOccurrencesResponse buildPartial()
Returns
TypeDescription
ListOccurrencesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListOccurrencesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListOccurrencesResponse.Builder

This builder for chaining.

clearOccurrences()

public ListOccurrencesResponse.Builder clearOccurrences()

The occurrences requested.

repeated .grafeas.v1beta1.Occurrence occurrences = 1;

Returns
TypeDescription
ListOccurrencesResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListOccurrencesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListOccurrencesResponse

getDescriptorForType()

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

The bytes for nextPageToken.

getOccurrences(int index)

public Occurrence getOccurrences(int index)

The occurrences requested.

repeated .grafeas.v1beta1.Occurrence occurrences = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Occurrence

getOccurrencesBuilder(int index)

public Occurrence.Builder getOccurrencesBuilder(int index)

The occurrences requested.

repeated .grafeas.v1beta1.Occurrence occurrences = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Occurrence.Builder

getOccurrencesBuilderList()

public List<Occurrence.Builder> getOccurrencesBuilderList()

The occurrences requested.

repeated .grafeas.v1beta1.Occurrence occurrences = 1;

Returns
TypeDescription
List<Builder>

getOccurrencesCount()

public int getOccurrencesCount()

The occurrences requested.

repeated .grafeas.v1beta1.Occurrence occurrences = 1;

Returns
TypeDescription
int

getOccurrencesList()

public List<Occurrence> getOccurrencesList()

The occurrences requested.

repeated .grafeas.v1beta1.Occurrence occurrences = 1;

Returns
TypeDescription
List<Occurrence>

getOccurrencesOrBuilder(int index)

public OccurrenceOrBuilder getOccurrencesOrBuilder(int index)

The occurrences requested.

repeated .grafeas.v1beta1.Occurrence occurrences = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
OccurrenceOrBuilder

getOccurrencesOrBuilderList()

public List<? extends OccurrenceOrBuilder> getOccurrencesOrBuilderList()

The occurrences requested.

repeated .grafeas.v1beta1.Occurrence occurrences = 1;

Returns
TypeDescription
List<? extends io.grafeas.v1beta1.OccurrenceOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ListOccurrencesResponse other)

public ListOccurrencesResponse.Builder mergeFrom(ListOccurrencesResponse other)
Parameter
NameDescription
otherListOccurrencesResponse
Returns
TypeDescription
ListOccurrencesResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeOccurrences(int index)

public ListOccurrencesResponse.Builder removeOccurrences(int index)

The occurrences requested.

repeated .grafeas.v1beta1.Occurrence occurrences = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListOccurrencesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
ListOccurrencesResponse.Builder

This builder for chaining.

setOccurrences(int index, Occurrence value)

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

The occurrences requested.

repeated .grafeas.v1beta1.Occurrence occurrences = 1;

Parameters
NameDescription
indexint
valueOccurrence
Returns
TypeDescription
ListOccurrencesResponse.Builder

setOccurrences(int index, Occurrence.Builder builderForValue)

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

The occurrences requested.

repeated .grafeas.v1beta1.Occurrence occurrences = 1;

Parameters
NameDescription
indexint
builderForValueOccurrence.Builder
Returns
TypeDescription
ListOccurrencesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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