Package p4.v1
Class P4RuntimeOuterClass.Error
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
p4.v1.P4RuntimeOuterClass.Error
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,P4RuntimeOuterClass.ErrorOrBuilder
- Enclosing class:
P4RuntimeOuterClass
public static final class P4RuntimeOuterClass.Error
extends com.google.protobuf.GeneratedMessage
implements P4RuntimeOuterClass.ErrorOrBuilder
Error message used to report a single P4-entity error for a Write RPC.Protobuf type
p4.v1.Error- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classError message used to report a single P4-entity error for a Write RPC.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgRPC canonical error code (see https://developers.google.com/maps-booking/reference/grpc-api/status_codes)intgetCode()Numeric code drawn from target-specific error space above.static P4RuntimeOuterClass.Errorstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.AnyOptional: Allows reporting back additional target-specific details on the error.com.google.protobuf.AnyOrBuilderOptional: Allows reporting back additional target-specific details on the error.Detailed error message.com.google.protobuf.ByteStringDetailed error message.com.google.protobuf.Parser<P4RuntimeOuterClass.Error> intgetSpace()Target and architecture specific space to which this error belongs.com.google.protobuf.ByteStringTarget and architecture specific space to which this error belongs.booleanOptional: Allows reporting back additional target-specific details on the error.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(P4RuntimeOuterClass.Error prototype) protected P4RuntimeOuterClass.Error.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static P4RuntimeOuterClass.ErrorparseDelimitedFrom(InputStream input) static P4RuntimeOuterClass.ErrorparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static P4RuntimeOuterClass.ErrorparseFrom(byte[] data) static P4RuntimeOuterClass.ErrorparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static P4RuntimeOuterClass.ErrorparseFrom(com.google.protobuf.ByteString data) static P4RuntimeOuterClass.ErrorparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static P4RuntimeOuterClass.ErrorparseFrom(com.google.protobuf.CodedInputStream input) static P4RuntimeOuterClass.ErrorparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static P4RuntimeOuterClass.ErrorparseFrom(InputStream input) static P4RuntimeOuterClass.ErrorparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static P4RuntimeOuterClass.ErrorparseFrom(ByteBuffer data) static P4RuntimeOuterClass.ErrorparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<P4RuntimeOuterClass.Error> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CANONICAL_CODE_FIELD_NUMBER
public static final int CANONICAL_CODE_FIELD_NUMBER- See Also:
-
MESSAGE_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER- See Also:
-
SPACE_FIELD_NUMBER
public static final int SPACE_FIELD_NUMBER- See Also:
-
CODE_FIELD_NUMBER
public static final int CODE_FIELD_NUMBER- See Also:
-
DETAILS_FIELD_NUMBER
public static final int DETAILS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getCanonicalCode
public int getCanonicalCode()gRPC canonical error code (see https://developers.google.com/maps-booking/reference/grpc-api/status_codes)
int32 canonical_code = 1;- Specified by:
getCanonicalCodein interfaceP4RuntimeOuterClass.ErrorOrBuilder- Returns:
- The canonicalCode.
-
getMessage
Detailed error message.
string message = 2;- Specified by:
getMessagein interfaceP4RuntimeOuterClass.ErrorOrBuilder- Returns:
- The message.
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()Detailed error message.
string message = 2;- Specified by:
getMessageBytesin interfaceP4RuntimeOuterClass.ErrorOrBuilder- Returns:
- The bytes for message.
-
getSpace
Target and architecture specific space to which this error belongs. We encourage using triplet: <target>-<arch>-<vendor>, e.g."targetX-psa-vendor1" or "targetY-psa-vendor2".
string space = 3;- Specified by:
getSpacein interfaceP4RuntimeOuterClass.ErrorOrBuilder- Returns:
- The space.
-
getSpaceBytes
public com.google.protobuf.ByteString getSpaceBytes()Target and architecture specific space to which this error belongs. We encourage using triplet: <target>-<arch>-<vendor>, e.g."targetX-psa-vendor1" or "targetY-psa-vendor2".
string space = 3;- Specified by:
getSpaceBytesin interfaceP4RuntimeOuterClass.ErrorOrBuilder- Returns:
- The bytes for space.
-
getCode
public int getCode()Numeric code drawn from target-specific error space above.
int32 code = 4;- Specified by:
getCodein interfaceP4RuntimeOuterClass.ErrorOrBuilder- Returns:
- The code.
-
hasDetails
public boolean hasDetails()Optional: Allows reporting back additional target-specific details on the error.
.google.protobuf.Any details = 5;- Specified by:
hasDetailsin interfaceP4RuntimeOuterClass.ErrorOrBuilder- Returns:
- Whether the details field is set.
-
getDetails
public com.google.protobuf.Any getDetails()Optional: Allows reporting back additional target-specific details on the error.
.google.protobuf.Any details = 5;- Specified by:
getDetailsin interfaceP4RuntimeOuterClass.ErrorOrBuilder- Returns:
- The details.
-
getDetailsOrBuilder
public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder()Optional: Allows reporting back additional target-specific details on the error.
.google.protobuf.Any details = 5;- Specified by:
getDetailsOrBuilderin interfaceP4RuntimeOuterClass.ErrorOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static P4RuntimeOuterClass.Error parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4RuntimeOuterClass.Error parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4RuntimeOuterClass.Error parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4RuntimeOuterClass.Error parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4RuntimeOuterClass.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4RuntimeOuterClass.Error parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static P4RuntimeOuterClass.Error parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static P4RuntimeOuterClass.Error parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static P4RuntimeOuterClass.Error parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static P4RuntimeOuterClass.Error parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected P4RuntimeOuterClass.Error.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-