Class ListOccurrencesResponse (2.84.0)

public final class ListOccurrencesResponse extends GeneratedMessage implements ListOccurrencesResponseOrBuilder

Response for listing occurrences.

Protobuf type grafeas.v1.ListOccurrencesResponse

Static Fields

NEXT_PAGE_TOKEN_FIELD_NUMBER

public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER
Field Value
Type Description
int

OCCURRENCES_FIELD_NUMBER

public static final int OCCURRENCES_FIELD_NUMBER
Field Value
Type Description
int

UNREACHABLE_FIELD_NUMBER

public static final int UNREACHABLE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ListOccurrencesResponse getDefaultInstance()
Returns
Type Description
ListOccurrencesResponse

getDescriptor()

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

newBuilder()

public static ListOccurrencesResponse.Builder newBuilder()
Returns
Type Description
ListOccurrencesResponse.Builder

newBuilder(ListOccurrencesResponse prototype)

public static ListOccurrencesResponse.Builder newBuilder(ListOccurrencesResponse prototype)
Parameter
Name Description
prototype ListOccurrencesResponse
Returns
Type Description
ListOccurrencesResponse.Builder

parseDelimitedFrom(InputStream input)

public static ListOccurrencesResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ListOccurrencesResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListOccurrencesResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListOccurrencesResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ListOccurrencesResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ListOccurrencesResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ListOccurrencesResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListOccurrencesResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ListOccurrencesResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ListOccurrencesResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ListOccurrencesResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListOccurrencesResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ListOccurrencesResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ListOccurrencesResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ListOccurrencesResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListOccurrencesResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ListOccurrencesResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ListOccurrencesResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListOccurrencesResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListOccurrencesResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ListOccurrencesResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ListOccurrencesResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ListOccurrencesResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListOccurrencesResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ListOccurrencesResponse> parser()
Returns
Type Description
Parser<ListOccurrencesResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ListOccurrencesResponse getDefaultInstanceForType()
Returns
Type Description
ListOccurrencesResponse

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

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>

getParserForType()

public Parser<ListOccurrencesResponse> getParserForType()
Returns
Type Description
Parser<ListOccurrencesResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUnreachable(int index)

public String getUnreachable(int index)

Unreachable regions. Populated for requests from the global region when return_partial_success is set.

Format: projects/[PROJECT_ID]/locations/[LOCATION]

repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Unreachable regions. Populated for requests from the global region when return_partial_success is set.

Format: projects/[PROJECT_ID]/locations/[LOCATION]

repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Unreachable regions. Populated for requests from the global region when return_partial_success is set.

Format: projects/[PROJECT_ID]/locations/[LOCATION]

repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Unreachable regions. Populated for requests from the global region when return_partial_success is set.

Format: projects/[PROJECT_ID]/locations/[LOCATION]

repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ListOccurrencesResponse.Builder newBuilderForType()
Returns
Type Description
ListOccurrencesResponse.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ListOccurrencesResponse.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ListOccurrencesResponse.Builder
Overrides

toBuilder()

public ListOccurrencesResponse.Builder toBuilder()
Returns
Type Description
ListOccurrencesResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException