Package io.grpc.observabilitylog.v1
Interface PayloadOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Payload,Payload.Builder
public interface PayloadOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsMetadata(java.lang.String key)A list of metadata pairscom.google.protobuf.ByteStringgetMessage()Used by message eventintgetMessageLength()Size of the message or metadata, depending on the event type, regardless of whether the full message or metadata is being logged (i.e.java.util.Map<java.lang.String,java.lang.String>getMetadata()Deprecated.intgetMetadataCount()A list of metadata pairsjava.util.Map<java.lang.String,java.lang.String>getMetadataMap()A list of metadata pairsjava.lang.StringgetMetadataOrDefault(java.lang.String key, java.lang.String defaultValue)A list of metadata pairsjava.lang.StringgetMetadataOrThrow(java.lang.String key)A list of metadata pairscom.google.rpc.CodegetStatusCode()The gRPC status codeintgetStatusCodeValue()The gRPC status codecom.google.protobuf.ByteStringgetStatusDetails()The value of the grpc-status-details-bin metadata key, if any.java.lang.StringgetStatusMessage()The gRPC status messagecom.google.protobuf.ByteStringgetStatusMessageBytes()The gRPC status messagecom.google.protobuf.DurationgetTimeout()the RPC timeout valuecom.google.protobuf.DurationOrBuildergetTimeoutOrBuilder()the RPC timeout valuebooleanhasTimeout()the RPC timeout value-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getMetadataCount
int getMetadataCount()
A list of metadata pairs
map<string, string> metadata = 1;
-
containsMetadata
boolean containsMetadata(java.lang.String key)
A list of metadata pairs
map<string, string> metadata = 1;
-
getMetadata
@Deprecated java.util.Map<java.lang.String,java.lang.String> getMetadata()
Deprecated.UsegetMetadataMap()instead.
-
getMetadataMap
java.util.Map<java.lang.String,java.lang.String> getMetadataMap()
A list of metadata pairs
map<string, string> metadata = 1;
-
getMetadataOrDefault
java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue)A list of metadata pairs
map<string, string> metadata = 1;
-
getMetadataOrThrow
java.lang.String getMetadataOrThrow(java.lang.String key)
A list of metadata pairs
map<string, string> metadata = 1;
-
hasTimeout
boolean hasTimeout()
the RPC timeout value
.google.protobuf.Duration timeout = 2;- Returns:
- Whether the timeout field is set.
-
getTimeout
com.google.protobuf.Duration getTimeout()
the RPC timeout value
.google.protobuf.Duration timeout = 2;- Returns:
- The timeout.
-
getTimeoutOrBuilder
com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
the RPC timeout value
.google.protobuf.Duration timeout = 2;
-
getStatusCodeValue
int getStatusCodeValue()
The gRPC status code
.google.rpc.Code status_code = 3;- Returns:
- The enum numeric value on the wire for statusCode.
-
getStatusCode
com.google.rpc.Code getStatusCode()
The gRPC status code
.google.rpc.Code status_code = 3;- Returns:
- The statusCode.
-
getStatusMessage
java.lang.String getStatusMessage()
The gRPC status message
string status_message = 4;- Returns:
- The statusMessage.
-
getStatusMessageBytes
com.google.protobuf.ByteString getStatusMessageBytes()
The gRPC status message
string status_message = 4;- Returns:
- The bytes for statusMessage.
-
getStatusDetails
com.google.protobuf.ByteString getStatusDetails()
The value of the grpc-status-details-bin metadata key, if any. This is always an encoded google.rpc.Status message
bytes status_details = 5;- Returns:
- The statusDetails.
-
getMessageLength
int getMessageLength()
Size of the message or metadata, depending on the event type, regardless of whether the full message or metadata is being logged (i.e. could be truncated or omitted).
uint32 message_length = 6;- Returns:
- The messageLength.
-
getMessage
com.google.protobuf.ByteString getMessage()
Used by message event
bytes message = 7;- Returns:
- The message.
-
-