Class PacketType.TypeDescriptor.Builder (0.10.0)

public static final class PacketType.TypeDescriptor.Builder extends GeneratedMessageV3.Builder<PacketType.TypeDescriptor.Builder> implements PacketType.TypeDescriptorOrBuilder

The message that fully specifies the type of the packet.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PacketType.TypeDescriptor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PacketType.TypeDescriptor.Builder
Overrides

build()

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

buildPartial()

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

clear()

public PacketType.TypeDescriptor.Builder clear()
Returns
Type Description
PacketType.TypeDescriptor.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PacketType.TypeDescriptor.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PacketType.TypeDescriptor.Builder
Overrides

clearGstreamerBufferDescriptor()

public PacketType.TypeDescriptor.Builder clearGstreamerBufferDescriptor()

GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.

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

Returns
Type Description
PacketType.TypeDescriptor.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public PacketType.TypeDescriptor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PacketType.TypeDescriptor.Builder
Overrides

clearRawImageDescriptor()

public PacketType.TypeDescriptor.Builder clearRawImageDescriptor()

RawImageDescriptor is the descriptor for the raw image type.

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

Returns
Type Description
PacketType.TypeDescriptor.Builder

clearType()

public PacketType.TypeDescriptor.Builder clearType()

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
PacketType.TypeDescriptor.Builder

This builder for chaining.

clearTypeDetails()

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

clone()

public PacketType.TypeDescriptor.Builder clone()
Returns
Type Description
PacketType.TypeDescriptor.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getGstreamerBufferDescriptorBuilder()

public GstreamerBufferDescriptor.Builder getGstreamerBufferDescriptorBuilder()

GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.

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

Returns
Type Description
GstreamerBufferDescriptor.Builder

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

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.

getRawImageDescriptorBuilder()

public RawImageDescriptor.Builder getRawImageDescriptorBuilder()

RawImageDescriptor is the descriptor for the raw image type.

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

Returns
Type Description
RawImageDescriptor.Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PacketType.TypeDescriptor other)

public PacketType.TypeDescriptor.Builder mergeFrom(PacketType.TypeDescriptor other)
Parameter
Name Description
other PacketType.TypeDescriptor
Returns
Type Description
PacketType.TypeDescriptor.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PacketType.TypeDescriptor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PacketType.TypeDescriptor.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PacketType.TypeDescriptor.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PacketType.TypeDescriptor.Builder
Overrides

mergeGstreamerBufferDescriptor(GstreamerBufferDescriptor value)

public PacketType.TypeDescriptor.Builder mergeGstreamerBufferDescriptor(GstreamerBufferDescriptor value)

GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.

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

Parameter
Name Description
value GstreamerBufferDescriptor
Returns
Type Description
PacketType.TypeDescriptor.Builder

mergeRawImageDescriptor(RawImageDescriptor value)

public PacketType.TypeDescriptor.Builder mergeRawImageDescriptor(RawImageDescriptor value)

RawImageDescriptor is the descriptor for the raw image type.

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

Parameter
Name Description
value RawImageDescriptor
Returns
Type Description
PacketType.TypeDescriptor.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PacketType.TypeDescriptor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PacketType.TypeDescriptor.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PacketType.TypeDescriptor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PacketType.TypeDescriptor.Builder
Overrides

setGstreamerBufferDescriptor(GstreamerBufferDescriptor value)

public PacketType.TypeDescriptor.Builder setGstreamerBufferDescriptor(GstreamerBufferDescriptor value)

GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.

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

Parameter
Name Description
value GstreamerBufferDescriptor
Returns
Type Description
PacketType.TypeDescriptor.Builder

setGstreamerBufferDescriptor(GstreamerBufferDescriptor.Builder builderForValue)

public PacketType.TypeDescriptor.Builder setGstreamerBufferDescriptor(GstreamerBufferDescriptor.Builder builderForValue)

GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.

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

Parameter
Name Description
builderForValue GstreamerBufferDescriptor.Builder
Returns
Type Description
PacketType.TypeDescriptor.Builder

setRawImageDescriptor(RawImageDescriptor value)

public PacketType.TypeDescriptor.Builder setRawImageDescriptor(RawImageDescriptor value)

RawImageDescriptor is the descriptor for the raw image type.

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

Parameter
Name Description
value RawImageDescriptor
Returns
Type Description
PacketType.TypeDescriptor.Builder

setRawImageDescriptor(RawImageDescriptor.Builder builderForValue)

public PacketType.TypeDescriptor.Builder setRawImageDescriptor(RawImageDescriptor.Builder builderForValue)

RawImageDescriptor is the descriptor for the raw image type.

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

Parameter
Name Description
builderForValue RawImageDescriptor.Builder
Returns
Type Description
PacketType.TypeDescriptor.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PacketType.TypeDescriptor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PacketType.TypeDescriptor.Builder
Overrides

setType(String value)

public PacketType.TypeDescriptor.Builder setType(String value)

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;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
PacketType.TypeDescriptor.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public PacketType.TypeDescriptor.Builder setTypeBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
PacketType.TypeDescriptor.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PacketType.TypeDescriptor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PacketType.TypeDescriptor.Builder
Overrides