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
Methods
addAllOccurrences(Iterable<? extends Occurrence> values)
public ListOccurrencesResponse.Builder addAllOccurrences(Iterable<? extends Occurrence> values)
The occurrences requested.
repeated .grafeas.v1beta1.Occurrence occurrences = 1;
Parameter
Name | Description |
values | Iterable<? extends io.grafeas.v1beta1.Occurrence>
|
Returns
addOccurrences(int index, Occurrence value)
public ListOccurrencesResponse.Builder addOccurrences(int index, Occurrence value)
The occurrences requested.
repeated .grafeas.v1beta1.Occurrence occurrences = 1;
Parameters
Returns
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
Returns
addOccurrences(Occurrence value)
public ListOccurrencesResponse.Builder addOccurrences(Occurrence value)
The occurrences requested.
repeated .grafeas.v1beta1.Occurrence occurrences = 1;
Parameter
Returns
addOccurrences(Occurrence.Builder builderForValue)
public ListOccurrencesResponse.Builder addOccurrences(Occurrence.Builder builderForValue)
The occurrences requested.
repeated .grafeas.v1beta1.Occurrence occurrences = 1;
Parameter
Returns
addOccurrencesBuilder()
public Occurrence.Builder addOccurrencesBuilder()
The occurrences requested.
repeated .grafeas.v1beta1.Occurrence occurrences = 1;
Returns
addOccurrencesBuilder(int index)
public Occurrence.Builder addOccurrencesBuilder(int index)
The occurrences requested.
repeated .grafeas.v1beta1.Occurrence occurrences = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListOccurrencesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ListOccurrencesResponse build()
Returns
buildPartial()
public ListOccurrencesResponse buildPartial()
Returns
clear()
public ListOccurrencesResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListOccurrencesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOccurrences()
public ListOccurrencesResponse.Builder clearOccurrences()
The occurrences requested.
repeated .grafeas.v1beta1.Occurrence occurrences = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ListOccurrencesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ListOccurrencesResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListOccurrencesResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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.v1beta1.Occurrence occurrences = 1;
Parameter
Returns
getOccurrencesBuilder(int index)
public Occurrence.Builder getOccurrencesBuilder(int index)
The occurrences requested.
repeated .grafeas.v1beta1.Occurrence occurrences = 1;
Parameter
Returns
getOccurrencesBuilderList()
public List<Occurrence.Builder> getOccurrencesBuilderList()
The occurrences requested.
repeated .grafeas.v1beta1.Occurrence occurrences = 1;
Returns
getOccurrencesCount()
public int getOccurrencesCount()
The occurrences requested.
repeated .grafeas.v1beta1.Occurrence occurrences = 1;
Returns
getOccurrencesList()
public List<Occurrence> getOccurrencesList()
The occurrences requested.
repeated .grafeas.v1beta1.Occurrence occurrences = 1;
Returns
getOccurrencesOrBuilder(int index)
public OccurrenceOrBuilder getOccurrencesOrBuilder(int index)
The occurrences requested.
repeated .grafeas.v1beta1.Occurrence occurrences = 1;
Parameter
Returns
getOccurrencesOrBuilderList()
public List<? extends OccurrenceOrBuilder> getOccurrencesOrBuilderList()
The occurrences requested.
repeated .grafeas.v1beta1.Occurrence occurrences = 1;
Returns
Type | Description |
List<? extends io.grafeas.v1beta1.OccurrenceOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public ListOccurrencesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListOccurrencesResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(ListOccurrencesResponse other)
public ListOccurrencesResponse.Builder mergeFrom(ListOccurrencesResponse other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListOccurrencesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeOccurrences(int index)
public ListOccurrencesResponse.Builder removeOccurrences(int index)
The occurrences requested.
repeated .grafeas.v1beta1.Occurrence occurrences = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListOccurrencesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setOccurrences(int index, Occurrence value)
public ListOccurrencesResponse.Builder setOccurrences(int index, Occurrence value)
The occurrences requested.
repeated .grafeas.v1beta1.Occurrence occurrences = 1;
Parameters
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListOccurrencesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListOccurrencesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides