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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Packet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
Returns |
Type |
Description |
Packet |
|
buildPartial()
public Packet buildPartial()
Returns |
Type |
Description |
Packet |
|
clear()
public Packet.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Packet.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public Packet.Builder clearHeader()
The packet header.
.google.cloud.visionai.v1.PacketHeader header = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public Packet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPayload()
public Packet.Builder clearPayload()
The payload of the packet.
bytes payload = 2;
clone()
public Packet.Builder clone()
Overrides
getDefaultInstanceForType()
public Packet getDefaultInstanceForType()
Returns |
Type |
Description |
Packet |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public PacketHeader getHeader()
The packet header.
.google.cloud.visionai.v1.PacketHeader header = 1;
public PacketHeader.Builder getHeaderBuilder()
The packet header.
.google.cloud.visionai.v1.PacketHeader header = 1;
public PacketHeaderOrBuilder getHeaderOrBuilder()
The packet header.
.google.cloud.visionai.v1.PacketHeader header = 1;
getPayload()
public ByteString getPayload()
The payload of the packet.
bytes payload = 2;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Packet other)
public Packet.Builder mergeFrom(Packet other)
Parameter |
Name |
Description |
other |
Packet
|
public Packet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Packet.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public Packet.Builder mergeHeader(PacketHeader value)
The packet header.
.google.cloud.visionai.v1.PacketHeader header = 1;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Packet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Packet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Packet.Builder setHeader(PacketHeader value)
The packet header.
.google.cloud.visionai.v1.PacketHeader header = 1;
public Packet.Builder setHeader(PacketHeader.Builder builderForValue)
The packet header.
.google.cloud.visionai.v1.PacketHeader header = 1;
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Packet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Packet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides