Class ServerMetadata.Builder (0.2.0)

public static final class ServerMetadata.Builder extends GeneratedMessageV3.Builder<ServerMetadata.Builder> implements ServerMetadataOrBuilder

The message that represents server metadata.

Protobuf type google.cloud.visionai.v1.ServerMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ServerMetadata build()
Returns
Type Description
ServerMetadata

buildPartial()

public ServerMetadata buildPartial()
Returns
Type Description
ServerMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIngestTime()

public ServerMetadata.Builder clearIngestTime()

The timestamp at which the stream server receives this packet. This is based on the local clock of on the server side. It is guaranteed to be monotonically increasing for the packets within each session; however this timestamp is not comparable across packets sent to the same stream different sessions. Session here refers to one individual gRPC streaming request to the stream server.

.google.protobuf.Timestamp ingest_time = 2;

Returns
Type Description
ServerMetadata.Builder

clearOffset()

public ServerMetadata.Builder clearOffset()

The offset position for the packet in its stream.

int64 offset = 1;

Returns
Type Description
ServerMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ServerMetadata getDefaultInstanceForType()
Returns
Type Description
ServerMetadata

getDescriptorForType()

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

getIngestTime()

public Timestamp getIngestTime()

The timestamp at which the stream server receives this packet. This is based on the local clock of on the server side. It is guaranteed to be monotonically increasing for the packets within each session; however this timestamp is not comparable across packets sent to the same stream different sessions. Session here refers to one individual gRPC streaming request to the stream server.

.google.protobuf.Timestamp ingest_time = 2;

Returns
Type Description
Timestamp

The ingestTime.

getIngestTimeBuilder()

public Timestamp.Builder getIngestTimeBuilder()

The timestamp at which the stream server receives this packet. This is based on the local clock of on the server side. It is guaranteed to be monotonically increasing for the packets within each session; however this timestamp is not comparable across packets sent to the same stream different sessions. Session here refers to one individual gRPC streaming request to the stream server.

.google.protobuf.Timestamp ingest_time = 2;

Returns
Type Description
Builder

getIngestTimeOrBuilder()

public TimestampOrBuilder getIngestTimeOrBuilder()

The timestamp at which the stream server receives this packet. This is based on the local clock of on the server side. It is guaranteed to be monotonically increasing for the packets within each session; however this timestamp is not comparable across packets sent to the same stream different sessions. Session here refers to one individual gRPC streaming request to the stream server.

.google.protobuf.Timestamp ingest_time = 2;

Returns
Type Description
TimestampOrBuilder

getOffset()

public long getOffset()

The offset position for the packet in its stream.

int64 offset = 1;

Returns
Type Description
long

The offset.

hasIngestTime()

public boolean hasIngestTime()

The timestamp at which the stream server receives this packet. This is based on the local clock of on the server side. It is guaranteed to be monotonically increasing for the packets within each session; however this timestamp is not comparable across packets sent to the same stream different sessions. Session here refers to one individual gRPC streaming request to the stream server.

.google.protobuf.Timestamp ingest_time = 2;

Returns
Type Description
boolean

Whether the ingestTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServerMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeIngestTime(Timestamp value)

public ServerMetadata.Builder mergeIngestTime(Timestamp value)

The timestamp at which the stream server receives this packet. This is based on the local clock of on the server side. It is guaranteed to be monotonically increasing for the packets within each session; however this timestamp is not comparable across packets sent to the same stream different sessions. Session here refers to one individual gRPC streaming request to the stream server.

.google.protobuf.Timestamp ingest_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
ServerMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIngestTime(Timestamp value)

public ServerMetadata.Builder setIngestTime(Timestamp value)

The timestamp at which the stream server receives this packet. This is based on the local clock of on the server side. It is guaranteed to be monotonically increasing for the packets within each session; however this timestamp is not comparable across packets sent to the same stream different sessions. Session here refers to one individual gRPC streaming request to the stream server.

.google.protobuf.Timestamp ingest_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
ServerMetadata.Builder

setIngestTime(Timestamp.Builder builderForValue)

public ServerMetadata.Builder setIngestTime(Timestamp.Builder builderForValue)

The timestamp at which the stream server receives this packet. This is based on the local clock of on the server side. It is guaranteed to be monotonically increasing for the packets within each session; however this timestamp is not comparable across packets sent to the same stream different sessions. Session here refers to one individual gRPC streaming request to the stream server.

.google.protobuf.Timestamp ingest_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ServerMetadata.Builder

setOffset(long value)

public ServerMetadata.Builder setOffset(long value)

The offset position for the packet in its stream.

int64 offset = 1;

Parameter
Name Description
value long

The offset to set.

Returns
Type Description
ServerMetadata.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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