public final class Payload extends com.google.protobuf.GeneratedMessageV3 implements PayloadOrBuilder
grpc.observabilitylog.v1.Payload| Modifier and Type | Class and Description |
|---|---|
static class |
Payload.Builder
Protobuf type
grpc.observabilitylog.v1.Payload |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
MESSAGE_FIELD_NUMBER |
static int |
MESSAGE_LENGTH_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
STATUS_CODE_FIELD_NUMBER |
static int |
STATUS_DETAILS_FIELD_NUMBER |
static int |
STATUS_MESSAGE_FIELD_NUMBER |
static int |
TIMEOUT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsMetadata(String key)
A list of metadata pairs
|
boolean |
equals(Object obj) |
static Payload |
getDefaultInstance() |
Payload |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
Map<String,String> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
A list of metadata pairs
|
Map<String,String> |
getMetadataMap()
A list of metadata pairs
|
String |
getMetadataOrDefault(String key,
String defaultValue)
A list of metadata pairs
|
String |
getMetadataOrThrow(String key)
A list of metadata pairs
|
com.google.protobuf.Parser<Payload> |
getParserForType() |
int |
getSerializedSize() |
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.
|
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
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasTimeout()
the RPC timeout value
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Payload.Builder |
newBuilder() |
static Payload.Builder |
newBuilder(Payload prototype) |
Payload.Builder |
newBuilderForType() |
protected Payload.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Payload |
parseDelimitedFrom(InputStream input) |
static Payload |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Payload |
parseFrom(byte[] data) |
static Payload |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Payload |
parseFrom(ByteBuffer data) |
static Payload |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Payload |
parseFrom(com.google.protobuf.ByteString data) |
static Payload |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Payload |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Payload |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Payload |
parseFrom(InputStream input) |
static Payload |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Payload> |
parser() |
Payload.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int METADATA_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER
public static final int STATUS_CODE_FIELD_NUMBER
public static final int STATUS_MESSAGE_FIELD_NUMBER
public static final int STATUS_DETAILS_FIELD_NUMBER
public static final int MESSAGE_LENGTH_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getMetadataCount()
PayloadOrBuilderA list of metadata pairs
map<string, string> metadata = 1;getMetadataCount in interface PayloadOrBuilderpublic boolean containsMetadata(String key)
A list of metadata pairs
map<string, string> metadata = 1;containsMetadata in interface PayloadOrBuilder@Deprecated public Map<String,String> getMetadata()
getMetadataMap() instead.getMetadata in interface PayloadOrBuilderpublic Map<String,String> getMetadataMap()
A list of metadata pairs
map<string, string> metadata = 1;getMetadataMap in interface PayloadOrBuilderpublic String getMetadataOrDefault(String key, String defaultValue)
A list of metadata pairs
map<string, string> metadata = 1;getMetadataOrDefault in interface PayloadOrBuilderpublic String getMetadataOrThrow(String key)
A list of metadata pairs
map<string, string> metadata = 1;getMetadataOrThrow in interface PayloadOrBuilderpublic boolean hasTimeout()
the RPC timeout value
.google.protobuf.Duration timeout = 2;hasTimeout in interface PayloadOrBuilderpublic com.google.protobuf.Duration getTimeout()
the RPC timeout value
.google.protobuf.Duration timeout = 2;getTimeout in interface PayloadOrBuilderpublic com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
the RPC timeout value
.google.protobuf.Duration timeout = 2;getTimeoutOrBuilder in interface PayloadOrBuilderpublic int getStatusCodeValue()
The gRPC status code
.google.rpc.Code status_code = 3;getStatusCodeValue in interface PayloadOrBuilderpublic com.google.rpc.Code getStatusCode()
The gRPC status code
.google.rpc.Code status_code = 3;getStatusCode in interface PayloadOrBuilderpublic String getStatusMessage()
The gRPC status message
string status_message = 4;getStatusMessage in interface PayloadOrBuilderpublic com.google.protobuf.ByteString getStatusMessageBytes()
The gRPC status message
string status_message = 4;getStatusMessageBytes in interface PayloadOrBuilderpublic 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;getStatusDetails in interface PayloadOrBuilderpublic 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;getMessageLength in interface PayloadOrBuilderpublic com.google.protobuf.ByteString getMessage()
Used by message event
bytes message = 7;getMessage in interface PayloadOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Payload parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Payload parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Payload parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Payload parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Payload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Payload parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Payload parseFrom(InputStream input) throws IOException
IOExceptionpublic static Payload parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Payload parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Payload parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Payload parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Payload parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Payload.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Payload.Builder newBuilder()
public static Payload.Builder newBuilder(Payload prototype)
public Payload.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Payload.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Payload getDefaultInstance()
public static com.google.protobuf.Parser<Payload> parser()
public com.google.protobuf.Parser<Payload> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Payload getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder