Class PacketType.TypeDescriptor (0.9.0)

public static final class PacketType.TypeDescriptor extends GeneratedMessageV3 implements PacketType.TypeDescriptorOrBuilder

The message that fully specifies the type of the packet.

Protobuf type google.cloud.visionai.v1.PacketType.TypeDescriptor

Static Fields

GSTREAMER_BUFFER_DESCRIPTOR_FIELD_NUMBER

public static final int GSTREAMER_BUFFER_DESCRIPTOR_FIELD_NUMBER
Field Value
Type Description
int

RAW_IMAGE_DESCRIPTOR_FIELD_NUMBER

public static final int RAW_IMAGE_DESCRIPTOR_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PacketType.TypeDescriptor getDefaultInstance()
Returns
Type Description
PacketType.TypeDescriptor

getDescriptor()

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

newBuilder()

public static PacketType.TypeDescriptor.Builder newBuilder()
Returns
Type Description
PacketType.TypeDescriptor.Builder

newBuilder(PacketType.TypeDescriptor prototype)

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

parseDelimitedFrom(InputStream input)

public static PacketType.TypeDescriptor parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PacketType.TypeDescriptor
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static PacketType.TypeDescriptor parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PacketType.TypeDescriptor
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static PacketType.TypeDescriptor parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PacketType.TypeDescriptor
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static PacketType.TypeDescriptor parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PacketType.TypeDescriptor
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static PacketType.TypeDescriptor parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PacketType.TypeDescriptor
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<PacketType.TypeDescriptor> parser()
Returns
Type Description
Parser<TypeDescriptor>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public PacketType.TypeDescriptor getDefaultInstanceForType()
Returns
Type Description
PacketType.TypeDescriptor

getGstreamerBufferDescriptor()

public GstreamerBufferDescriptor getGstreamerBufferDescriptor()

GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.

.google.cloud.visionai.v1.GstreamerBufferDescriptor gstreamer_buffer_descriptor = 2;

Returns
Type Description
GstreamerBufferDescriptor

The gstreamerBufferDescriptor.

getGstreamerBufferDescriptorOrBuilder()

public GstreamerBufferDescriptorOrBuilder getGstreamerBufferDescriptorOrBuilder()

GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.

.google.cloud.visionai.v1.GstreamerBufferDescriptor gstreamer_buffer_descriptor = 2;

Returns
Type Description
GstreamerBufferDescriptorOrBuilder

getParserForType()

public Parser<PacketType.TypeDescriptor> getParserForType()
Returns
Type Description
Parser<TypeDescriptor>
Overrides

getRawImageDescriptor()

public RawImageDescriptor getRawImageDescriptor()

RawImageDescriptor is the descriptor for the raw image type.

.google.cloud.visionai.v1.RawImageDescriptor raw_image_descriptor = 3;

Returns
Type Description
RawImageDescriptor

The rawImageDescriptor.

getRawImageDescriptorOrBuilder()

public RawImageDescriptorOrBuilder getRawImageDescriptorOrBuilder()

RawImageDescriptor is the descriptor for the raw image type.

.google.cloud.visionai.v1.RawImageDescriptor raw_image_descriptor = 3;

Returns
Type Description
RawImageDescriptorOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getType()

public String getType()

The type of the packet. Its possible values is codec dependent.

The fully qualified type name is always the concatenation of the value in type_class together with the value in type, separated by a '/'.

Note that specific codecs can define their own type hierarchy, and so the type string here can in fact be separated by multiple '/'s of its own.

Please see the open source SDK for specific codec documentation.

string type = 1;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The type of the packet. Its possible values is codec dependent.

The fully qualified type name is always the concatenation of the value in type_class together with the value in type, separated by a '/'.

Note that specific codecs can define their own type hierarchy, and so the type string here can in fact be separated by multiple '/'s of its own.

Please see the open source SDK for specific codec documentation.

string type = 1;

Returns
Type Description
ByteString

The bytes for type.

getTypeDetailsCase()

public PacketType.TypeDescriptor.TypeDetailsCase getTypeDetailsCase()
Returns
Type Description
PacketType.TypeDescriptor.TypeDetailsCase

hasGstreamerBufferDescriptor()

public boolean hasGstreamerBufferDescriptor()

GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.

.google.cloud.visionai.v1.GstreamerBufferDescriptor gstreamer_buffer_descriptor = 2;

Returns
Type Description
boolean

Whether the gstreamerBufferDescriptor field is set.

hasRawImageDescriptor()

public boolean hasRawImageDescriptor()

RawImageDescriptor is the descriptor for the raw image type.

.google.cloud.visionai.v1.RawImageDescriptor raw_image_descriptor = 3;

Returns
Type Description
boolean

Whether the rawImageDescriptor 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 PacketType.TypeDescriptor.Builder newBuilderForType()
Returns
Type Description
PacketType.TypeDescriptor.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public PacketType.TypeDescriptor.Builder toBuilder()
Returns
Type Description
PacketType.TypeDescriptor.Builder

writeTo(CodedOutputStream output)

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