Class SendPacketsRequest (0.10.0)

public final class SendPacketsRequest extends GeneratedMessageV3 implements SendPacketsRequestOrBuilder

Request message for sending packets.

Protobuf type google.cloud.visionai.v1.SendPacketsRequest

Static Fields

METADATA_FIELD_NUMBER

public static final int METADATA_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 SendPacketsRequest getDefaultInstance()
Returns
Type Description
SendPacketsRequest

getDescriptor()

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

newBuilder()

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

newBuilder(SendPacketsRequest prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SendPacketsRequest getDefaultInstanceForType()
Returns
Type Description
SendPacketsRequest

getMetadata()

public RequestMetadata getMetadata()

The first message of the streaming rpc including the request metadata.

.google.cloud.visionai.v1.RequestMetadata metadata = 2;

Returns
Type Description
RequestMetadata

The metadata.

getMetadataOrBuilder()

public RequestMetadataOrBuilder getMetadataOrBuilder()

The first message of the streaming rpc including the request metadata.

.google.cloud.visionai.v1.RequestMetadata metadata = 2;

Returns
Type Description
RequestMetadataOrBuilder

getPacket()

public Packet getPacket()

Packets sent over the streaming rpc.

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

Returns
Type Description
Packet

The packet.

getPacketOrBuilder()

public PacketOrBuilder getPacketOrBuilder()

Packets sent over the streaming rpc.

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

Returns
Type Description
PacketOrBuilder

getParserForType()

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

getRequestCase()

public SendPacketsRequest.RequestCase getRequestCase()
Returns
Type Description
SendPacketsRequest.RequestCase

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasMetadata()

public boolean hasMetadata()

The first message of the streaming rpc including the request metadata.

.google.cloud.visionai.v1.RequestMetadata metadata = 2;

Returns
Type Description
boolean

Whether the metadata field is set.

hasPacket()

public boolean hasPacket()

Packets sent over the streaming rpc.

.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 SendPacketsRequest.Builder newBuilderForType()
Returns
Type Description
SendPacketsRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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