Class Packet.Builder (0.9.0)

public static final class Packet.Builder extends GeneratedMessageV3.Builder<Packet.Builder> implements PacketOrBuilder

The quanta of datum that the series accepts.

Protobuf type google.cloud.visionai.v1.Packet

Implements

PacketOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Packet build()
Returns
Type Description
Packet

buildPartial()

public Packet buildPartial()
Returns
Type Description
Packet

clear()

public Packet.Builder clear()
Returns
Type Description
Packet.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearHeader()

public Packet.Builder clearHeader()

The packet header.

.google.cloud.visionai.v1.PacketHeader header = 1;

Returns
Type Description
Packet.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPayload()

public Packet.Builder clearPayload()

The payload of the packet.

bytes payload = 2;

Returns
Type Description
Packet.Builder

This builder for chaining.

clone()

public Packet.Builder clone()
Returns
Type Description
Packet.Builder
Overrides

getDefaultInstanceForType()

public Packet getDefaultInstanceForType()
Returns
Type Description
Packet

getDescriptorForType()

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

getHeader()

public PacketHeader getHeader()

The packet header.

.google.cloud.visionai.v1.PacketHeader header = 1;

Returns
Type Description
PacketHeader

The header.

getHeaderBuilder()

public PacketHeader.Builder getHeaderBuilder()

The packet header.

.google.cloud.visionai.v1.PacketHeader header = 1;

Returns
Type Description
PacketHeader.Builder

getHeaderOrBuilder()

public PacketHeaderOrBuilder getHeaderOrBuilder()

The packet header.

.google.cloud.visionai.v1.PacketHeader header = 1;

Returns
Type Description
PacketHeaderOrBuilder

getPayload()

public ByteString getPayload()

The payload of the packet.

bytes payload = 2;

Returns
Type Description
ByteString

The payload.

hasHeader()

public boolean hasHeader()

The packet header.

.google.cloud.visionai.v1.PacketHeader header = 1;

Returns
Type Description
boolean

Whether the header field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Packet other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHeader(PacketHeader value)

public Packet.Builder mergeHeader(PacketHeader value)

The packet header.

.google.cloud.visionai.v1.PacketHeader header = 1;

Parameter
Name Description
value PacketHeader
Returns
Type Description
Packet.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setHeader(PacketHeader value)

public Packet.Builder setHeader(PacketHeader value)

The packet header.

.google.cloud.visionai.v1.PacketHeader header = 1;

Parameter
Name Description
value PacketHeader
Returns
Type Description
Packet.Builder

setHeader(PacketHeader.Builder builderForValue)

public Packet.Builder setHeader(PacketHeader.Builder builderForValue)

The packet header.

.google.cloud.visionai.v1.PacketHeader header = 1;

Parameter
Name Description
builderForValue PacketHeader.Builder
Returns
Type Description
Packet.Builder

setPayload(ByteString value)

public Packet.Builder setPayload(ByteString value)

The payload of the packet.

bytes payload = 2;

Parameter
Name Description
value ByteString

The payload to set.

Returns
Type Description
Packet.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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