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
      boolean containsMetadata​(java.lang.String key)
      A list of metadata pairs
      com.google.protobuf.ByteString getMessage()
      Used by message event
      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.
      java.util.Map<java.lang.String,​java.lang.String> getMetadata()
      Deprecated.
      int getMetadataCount()
      A list of metadata pairs
      java.util.Map<java.lang.String,​java.lang.String> getMetadataMap()
      A list of metadata pairs
      java.lang.String getMetadataOrDefault​(java.lang.String key, java.lang.String defaultValue)
      A list of metadata pairs
      java.lang.String getMetadataOrThrow​(java.lang.String key)
      A list of metadata pairs
      com.google.rpc.Code getStatusCode()
      The gRPC status code
      int getStatusCodeValue()
      The gRPC status code
      com.google.protobuf.ByteString getStatusDetails()
      The value of the grpc-status-details-bin metadata key, if any.
      java.lang.String getStatusMessage()
      The gRPC status message
      com.google.protobuf.ByteString getStatusMessageBytes()
      The gRPC status message
      com.google.protobuf.Duration getTimeout()
      the RPC timeout value
      com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
      the RPC timeout value
      boolean hasTimeout()
      the RPC timeout value
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • 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.
        Use getMetadataMap() 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.