public interface PacketHeaderOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getCaptureTime()
public abstract Timestamp getCaptureTime()
Input only. The capture time of the packet.
.google.protobuf.Timestamp capture_time = 1 [(.google.api.field_behavior) = INPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The captureTime. |
getCaptureTimeOrBuilder()
public abstract TimestampOrBuilder getCaptureTimeOrBuilder()
Input only. The capture time of the packet.
.google.protobuf.Timestamp capture_time = 1 [(.google.api.field_behavior) = INPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getFlags()
public abstract int getFlags()
Immutable. Packet flag set. SDK will set the flag automatically.
int32 flags = 6 [(.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
int |
The flags. |
getMetadata()
public abstract Struct getMetadata()
Input only. This field is for users to attach user managed metadata.
.google.protobuf.Struct metadata = 3 [(.google.api.field_behavior) = INPUT_ONLY];
Returns | |
---|---|
Type | Description |
Struct |
The metadata. |
getMetadataOrBuilder()
public abstract StructOrBuilder getMetadataOrBuilder()
Input only. This field is for users to attach user managed metadata.
.google.protobuf.Struct metadata = 3 [(.google.api.field_behavior) = INPUT_ONLY];
Returns | |
---|---|
Type | Description |
StructOrBuilder |
getSeriesMetadata()
public abstract SeriesMetadata getSeriesMetadata()
Input only. Immutable. Metadata that the server needs to know where to write the packets to. It's only required for the first packet.
.google.cloud.visionai.v1.SeriesMetadata series_metadata = 5 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
SeriesMetadata |
The seriesMetadata. |
getSeriesMetadataOrBuilder()
public abstract SeriesMetadataOrBuilder getSeriesMetadataOrBuilder()
Input only. Immutable. Metadata that the server needs to know where to write the packets to. It's only required for the first packet.
.google.cloud.visionai.v1.SeriesMetadata series_metadata = 5 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
SeriesMetadataOrBuilder |
getServerMetadata()
public abstract ServerMetadata getServerMetadata()
Output only. Metadata that the server appends to each packet before sending it to receivers. You don't need to set a value for this field when sending packets.
.google.cloud.visionai.v1.ServerMetadata server_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ServerMetadata |
The serverMetadata. |
getServerMetadataOrBuilder()
public abstract ServerMetadataOrBuilder getServerMetadataOrBuilder()
Output only. Metadata that the server appends to each packet before sending it to receivers. You don't need to set a value for this field when sending packets.
.google.cloud.visionai.v1.ServerMetadata server_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ServerMetadataOrBuilder |
getTraceContext()
public abstract String getTraceContext()
Immutable. Header string for tracing across services. It should be set when the packet is first arrived in the stream server.
The input format is a lowercase hex string:
- version_id: 1 byte, currently must be zero - hex encoded (2 characters)
- trace_id: 16 bytes (opaque blob) - hex encoded (32 characters)
- span_id: 8 bytes (opaque blob) - hex encoded (16 characters)
- trace_options: 1 byte (LSB means tracing enabled) - hex encoded (2 characters) Example: "00-404142434445464748494a4b4c4d4e4f-6162636465666768-01" v trace_id span_id options
string trace_context = 7 [(.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
String |
The traceContext. |
getTraceContextBytes()
public abstract ByteString getTraceContextBytes()
Immutable. Header string for tracing across services. It should be set when the packet is first arrived in the stream server.
The input format is a lowercase hex string:
- version_id: 1 byte, currently must be zero - hex encoded (2 characters)
- trace_id: 16 bytes (opaque blob) - hex encoded (32 characters)
- span_id: 8 bytes (opaque blob) - hex encoded (16 characters)
- trace_options: 1 byte (LSB means tracing enabled) - hex encoded (2 characters) Example: "00-404142434445464748494a4b4c4d4e4f-6162636465666768-01" v trace_id span_id options
string trace_context = 7 [(.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for traceContext. |
getType()
public abstract PacketType getType()
Input only. Immutable. The type of the payload.
.google.cloud.visionai.v1.PacketType type = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
PacketType |
The type. |
getTypeOrBuilder()
public abstract PacketTypeOrBuilder getTypeOrBuilder()
Input only. Immutable. The type of the payload.
.google.cloud.visionai.v1.PacketType type = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
PacketTypeOrBuilder |
hasCaptureTime()
public abstract boolean hasCaptureTime()
Input only. The capture time of the packet.
.google.protobuf.Timestamp capture_time = 1 [(.google.api.field_behavior) = INPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the captureTime field is set. |
hasMetadata()
public abstract boolean hasMetadata()
Input only. This field is for users to attach user managed metadata.
.google.protobuf.Struct metadata = 3 [(.google.api.field_behavior) = INPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the metadata field is set. |
hasSeriesMetadata()
public abstract boolean hasSeriesMetadata()
Input only. Immutable. Metadata that the server needs to know where to write the packets to. It's only required for the first packet.
.google.cloud.visionai.v1.SeriesMetadata series_metadata = 5 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
boolean |
Whether the seriesMetadata field is set. |
hasServerMetadata()
public abstract boolean hasServerMetadata()
Output only. Metadata that the server appends to each packet before sending it to receivers. You don't need to set a value for this field when sending packets.
.google.cloud.visionai.v1.ServerMetadata server_metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the serverMetadata field is set. |
hasType()
public abstract boolean hasType()
Input only. Immutable. The type of the payload.
.google.cloud.visionai.v1.PacketType type = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
boolean |
Whether the type field is set. |