Class ServerMetadata (0.5.0)

public final class ServerMetadata extends GeneratedMessageV3 implements ServerMetadataOrBuilder

The message that represents server metadata.

Protobuf type google.cloud.visionai.v1.ServerMetadata

Static Fields

INGEST_TIME_FIELD_NUMBER

public static final int INGEST_TIME_FIELD_NUMBER
Field Value
Type Description
int

OFFSET_FIELD_NUMBER

public static final int OFFSET_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ServerMetadata getDefaultInstance()
Returns
Type Description
ServerMetadata

getDescriptor()

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

newBuilder()

public static ServerMetadata.Builder newBuilder()
Returns
Type Description
ServerMetadata.Builder

newBuilder(ServerMetadata prototype)

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

parseDelimitedFrom(InputStream input)

public static ServerMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ServerMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ServerMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ServerMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ServerMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ServerMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ServerMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ServerMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ServerMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ServerMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ServerMetadata> parser()
Returns
Type Description
Parser<ServerMetadata>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ServerMetadata getDefaultInstanceForType()
Returns
Type Description
ServerMetadata

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.

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.

getParserForType()

public Parser<ServerMetadata> getParserForType()
Returns
Type Description
Parser<ServerMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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 ServerMetadata.Builder newBuilderForType()
Returns
Type Description
ServerMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public ServerMetadata.Builder toBuilder()
Returns
Type Description
ServerMetadata.Builder

writeTo(CodedOutputStream output)

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