Class PubsubClientTelemetry.PublishOperation (1.157.0)

public static final class PubsubClientTelemetry.PublishOperation extends GeneratedMessage implements PubsubClientTelemetry.PublishOperationOrBuilder

Telemetry about a Publish operation which may or may not be common across individual RPCs.

Protobuf type google.pubsub.v1.PubsubClientTelemetry.PublishOperation

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > PubsubClientTelemetry.PublishOperation

Static Fields

HEDGED_ATTEMPT_COUNT_FIELD_NUMBER

public static final int HEDGED_ATTEMPT_COUNT_FIELD_NUMBER
Field Value
Type Description
int

PUBLISH_START_TIME_FIELD_NUMBER

public static final int PUBLISH_START_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PubsubClientTelemetry.PublishOperation getDefaultInstance()
Returns
Type Description
PubsubClientTelemetry.PublishOperation

getDescriptor()

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

newBuilder()

public static PubsubClientTelemetry.PublishOperation.Builder newBuilder()
Returns
Type Description
PubsubClientTelemetry.PublishOperation.Builder

newBuilder(PubsubClientTelemetry.PublishOperation prototype)

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

parseDelimitedFrom(InputStream input)

public static PubsubClientTelemetry.PublishOperation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PubsubClientTelemetry.PublishOperation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static PubsubClientTelemetry.PublishOperation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PubsubClientTelemetry.PublishOperation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static PubsubClientTelemetry.PublishOperation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PubsubClientTelemetry.PublishOperation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static PubsubClientTelemetry.PublishOperation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PubsubClientTelemetry.PublishOperation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static PubsubClientTelemetry.PublishOperation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PubsubClientTelemetry.PublishOperation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<PubsubClientTelemetry.PublishOperation> parser()
Returns
Type Description
Parser<PublishOperation>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public PubsubClientTelemetry.PublishOperation getDefaultInstanceForType()
Returns
Type Description
PubsubClientTelemetry.PublishOperation

getHedgedAttemptCount()

public int getHedgedAttemptCount()

Optional. If the publisher client is using publish hedging, provides the attempt count for the hedge (starting at 1). A value of 0 indicates that the request was not hedged.

int32 hedged_attempt_count = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The hedgedAttemptCount.

getParserForType()

public Parser<PubsubClientTelemetry.PublishOperation> getParserForType()
Returns
Type Description
Parser<PublishOperation>
Overrides

getPublishStartTime()

public Timestamp getPublishStartTime()

Optional. Time at which the publish() call was initiated in the client library, meaning across all RPC retry attempts, see grpc retries. Provides a sense of the end-to-end publish duration from the client perspective, across retries.

.google.protobuf.Timestamp publish_start_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The publishStartTime.

getPublishStartTimeOrBuilder()

public TimestampOrBuilder getPublishStartTimeOrBuilder()

Optional. Time at which the publish() call was initiated in the client library, meaning across all RPC retry attempts, see grpc retries. Provides a sense of the end-to-end publish duration from the client perspective, across retries.

.google.protobuf.Timestamp publish_start_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasPublishStartTime()

public boolean hasPublishStartTime()

Optional. Time at which the publish() call was initiated in the client library, meaning across all RPC retry attempts, see grpc retries. Provides a sense of the end-to-end publish duration from the client perspective, across retries.

.google.protobuf.Timestamp publish_start_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the publishStartTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PubsubClientTelemetry.PublishOperation.Builder newBuilderForType()
Returns
Type Description
PubsubClientTelemetry.PublishOperation.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected PubsubClientTelemetry.PublishOperation.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PubsubClientTelemetry.PublishOperation.Builder
Overrides

toBuilder()

public PubsubClientTelemetry.PublishOperation.Builder toBuilder()
Returns
Type Description
PubsubClientTelemetry.PublishOperation.Builder

writeTo(CodedOutputStream output)

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