Class ReceivePacketsResponse (0.4.0)

public final class ReceivePacketsResponse extends GeneratedMessageV3 implements ReceivePacketsResponseOrBuilder

Response message from ReceivePackets.

Protobuf type google.cloud.visionai.v1.ReceivePacketsResponse

Static Fields

CONTROL_FIELD_NUMBER

public static final int CONTROL_FIELD_NUMBER
Field Value
Type Description
int

PACKET_FIELD_NUMBER

public static final int PACKET_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ReceivePacketsResponse getDefaultInstance()
Returns
Type Description
ReceivePacketsResponse

getDescriptor()

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

newBuilder()

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

newBuilder(ReceivePacketsResponse prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getControl()

public ReceivePacketsControlResponse getControl()

A control message from the server.

.google.cloud.visionai.v1.ReceivePacketsControlResponse control = 3;

Returns
Type Description
ReceivePacketsControlResponse

The control.

getControlOrBuilder()

public ReceivePacketsControlResponseOrBuilder getControlOrBuilder()

A control message from the server.

.google.cloud.visionai.v1.ReceivePacketsControlResponse control = 3;

Returns
Type Description
ReceivePacketsControlResponseOrBuilder

getDefaultInstanceForType()

public ReceivePacketsResponse getDefaultInstanceForType()
Returns
Type Description
ReceivePacketsResponse

getPacket()

public Packet getPacket()

A genuine data payload originating from the sender.

.google.cloud.visionai.v1.Packet packet = 1;

Returns
Type Description
Packet

The packet.

getPacketOrBuilder()

public PacketOrBuilder getPacketOrBuilder()

A genuine data payload originating from the sender.

.google.cloud.visionai.v1.Packet packet = 1;

Returns
Type Description
PacketOrBuilder

getParserForType()

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

getResponseCase()

public ReceivePacketsResponse.ResponseCase getResponseCase()
Returns
Type Description
ReceivePacketsResponse.ResponseCase

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasControl()

public boolean hasControl()

A control message from the server.

.google.cloud.visionai.v1.ReceivePacketsControlResponse control = 3;

Returns
Type Description
boolean

Whether the control field is set.

hasPacket()

public boolean hasPacket()

A genuine data payload originating from the sender.

.google.cloud.visionai.v1.Packet packet = 1;

Returns
Type Description
boolean

Whether the packet field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ReceivePacketsResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ReceivePacketsResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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