Package p4.v1
Class P4RuntimeOuterClass.StreamError.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.StreamError.Builder>
com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.StreamError.Builder>
p4.v1.P4RuntimeOuterClass.StreamError.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,P4RuntimeOuterClass.StreamErrorOrBuilder
- Enclosing class:
P4RuntimeOuterClass.StreamError
public static final class P4RuntimeOuterClass.StreamError.Builder
extends com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.StreamError.Builder>
implements P4RuntimeOuterClass.StreamErrorOrBuilder
Used by the server to asynchronously report errors which occur when processing StreamMessageRequest messages.Protobuf type
p4.v1.StreamError-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()gRPC canonical error code (see https://developers.google.com/maps-booking/reference/grpc-api/status_codes)Optional..p4.v1.DigestListAckError digest_list_ack = 6;Optional..p4.v1.StreamOtherError other = 7;.p4.v1.PacketOutError packet_out = 5;Optional.intgRPC canonical error code (see https://developers.google.com/maps-booking/reference/grpc-api/status_codes)intgetCode()Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptor.p4.v1.DigestListAckError digest_list_ack = 6;.p4.v1.DigestListAckError digest_list_ack = 6;.p4.v1.DigestListAckError digest_list_ack = 6;Optional.com.google.protobuf.ByteStringOptional.getOther().p4.v1.StreamOtherError other = 7;.p4.v1.StreamOtherError other = 7;.p4.v1.StreamOtherError other = 7;.p4.v1.PacketOutError packet_out = 5;.p4.v1.PacketOutError packet_out = 5;.p4.v1.PacketOutError packet_out = 5;getSpace()Optional.com.google.protobuf.ByteStringOptional.boolean.p4.v1.DigestListAckError digest_list_ack = 6;booleanhasOther().p4.v1.StreamOtherError other = 7;boolean.p4.v1.PacketOutError packet_out = 5;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal boolean.p4.v1.DigestListAckError digest_list_ack = 6;mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) .p4.v1.StreamOtherError other = 7;.p4.v1.PacketOutError packet_out = 5;setCanonicalCode(int value) gRPC canonical error code (see https://developers.google.com/maps-booking/reference/grpc-api/status_codes)setCode(int value) Optional..p4.v1.DigestListAckError digest_list_ack = 6;setDigestListAck(P4RuntimeOuterClass.DigestListAckError.Builder builderForValue) .p4.v1.DigestListAckError digest_list_ack = 6;setMessage(String value) Optional.setMessageBytes(com.google.protobuf.ByteString value) Optional..p4.v1.StreamOtherError other = 7;setOther(P4RuntimeOuterClass.StreamOtherError.Builder builderForValue) .p4.v1.StreamOtherError other = 7;.p4.v1.PacketOutError packet_out = 5;setPacketOut(P4RuntimeOuterClass.PacketOutError.Builder builderForValue) .p4.v1.PacketOutError packet_out = 5;Optional.setSpaceBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.StreamError.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.StreamError.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.StreamError.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.StreamError.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.StreamError.Builder>
-
mergeFrom
public P4RuntimeOuterClass.StreamError.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.StreamError.Builder>- Throws:
IOException
-
getDetailsCase
- Specified by:
getDetailsCasein interfaceP4RuntimeOuterClass.StreamErrorOrBuilder
-
clearDetails
-
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.StreamErrorOrBuilder- Returns:
- The canonicalCode.
-
setCanonicalCode
gRPC canonical error code (see https://developers.google.com/maps-booking/reference/grpc-api/status_codes)
int32 canonical_code = 1;- Parameters:
value- The canonicalCode to set.- Returns:
- This builder for chaining.
-
clearCanonicalCode
gRPC canonical error code (see https://developers.google.com/maps-booking/reference/grpc-api/status_codes)
int32 canonical_code = 1;- Returns:
- This builder for chaining.
-
getMessage
Optional. An explanation of the error.
string message = 2;- Specified by:
getMessagein interfaceP4RuntimeOuterClass.StreamErrorOrBuilder- Returns:
- The message.
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()Optional. An explanation of the error.
string message = 2;- Specified by:
getMessageBytesin interfaceP4RuntimeOuterClass.StreamErrorOrBuilder- Returns:
- The bytes for message.
-
setMessage
Optional. An explanation of the error.
string message = 2;- Parameters:
value- The message to set.- Returns:
- This builder for chaining.
-
clearMessage
Optional. An explanation of the error.
string message = 2;- Returns:
- This builder for chaining.
-
setMessageBytes
public P4RuntimeOuterClass.StreamError.Builder setMessageBytes(com.google.protobuf.ByteString value) Optional. An explanation of the error.
string message = 2;- Parameters:
value- The bytes for message to set.- Returns:
- This builder for chaining.
-
getSpace
Optional. 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.StreamErrorOrBuilder- Returns:
- The space.
-
getSpaceBytes
public com.google.protobuf.ByteString getSpaceBytes()Optional. 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.StreamErrorOrBuilder- Returns:
- The bytes for space.
-
setSpace
Optional. 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;- Parameters:
value- The space to set.- Returns:
- This builder for chaining.
-
clearSpace
Optional. 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;- Returns:
- This builder for chaining.
-
setSpaceBytes
Optional. 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;- Parameters:
value- The bytes for space to set.- Returns:
- This builder for chaining.
-
getCode
public int getCode()Optional. Numeric code drawn from target-specific error space above.
int32 code = 4;- Specified by:
getCodein interfaceP4RuntimeOuterClass.StreamErrorOrBuilder- Returns:
- The code.
-
setCode
Optional. Numeric code drawn from target-specific error space above.
int32 code = 4;- Parameters:
value- The code to set.- Returns:
- This builder for chaining.
-
clearCode
Optional. Numeric code drawn from target-specific error space above.
int32 code = 4;- Returns:
- This builder for chaining.
-
hasPacketOut
public boolean hasPacketOut().p4.v1.PacketOutError packet_out = 5;- Specified by:
hasPacketOutin interfaceP4RuntimeOuterClass.StreamErrorOrBuilder- Returns:
- Whether the packetOut field is set.
-
getPacketOut
.p4.v1.PacketOutError packet_out = 5;- Specified by:
getPacketOutin interfaceP4RuntimeOuterClass.StreamErrorOrBuilder- Returns:
- The packetOut.
-
setPacketOut
public P4RuntimeOuterClass.StreamError.Builder setPacketOut(P4RuntimeOuterClass.PacketOutError value) .p4.v1.PacketOutError packet_out = 5; -
setPacketOut
public P4RuntimeOuterClass.StreamError.Builder setPacketOut(P4RuntimeOuterClass.PacketOutError.Builder builderForValue) .p4.v1.PacketOutError packet_out = 5; -
mergePacketOut
public P4RuntimeOuterClass.StreamError.Builder mergePacketOut(P4RuntimeOuterClass.PacketOutError value) .p4.v1.PacketOutError packet_out = 5; -
clearPacketOut
.p4.v1.PacketOutError packet_out = 5; -
getPacketOutBuilder
.p4.v1.PacketOutError packet_out = 5; -
getPacketOutOrBuilder
.p4.v1.PacketOutError packet_out = 5;- Specified by:
getPacketOutOrBuilderin interfaceP4RuntimeOuterClass.StreamErrorOrBuilder
-
hasDigestListAck
public boolean hasDigestListAck().p4.v1.DigestListAckError digest_list_ack = 6;- Specified by:
hasDigestListAckin interfaceP4RuntimeOuterClass.StreamErrorOrBuilder- Returns:
- Whether the digestListAck field is set.
-
getDigestListAck
.p4.v1.DigestListAckError digest_list_ack = 6;- Specified by:
getDigestListAckin interfaceP4RuntimeOuterClass.StreamErrorOrBuilder- Returns:
- The digestListAck.
-
setDigestListAck
public P4RuntimeOuterClass.StreamError.Builder setDigestListAck(P4RuntimeOuterClass.DigestListAckError value) .p4.v1.DigestListAckError digest_list_ack = 6; -
setDigestListAck
public P4RuntimeOuterClass.StreamError.Builder setDigestListAck(P4RuntimeOuterClass.DigestListAckError.Builder builderForValue) .p4.v1.DigestListAckError digest_list_ack = 6; -
mergeDigestListAck
public P4RuntimeOuterClass.StreamError.Builder mergeDigestListAck(P4RuntimeOuterClass.DigestListAckError value) .p4.v1.DigestListAckError digest_list_ack = 6; -
clearDigestListAck
.p4.v1.DigestListAckError digest_list_ack = 6; -
getDigestListAckBuilder
.p4.v1.DigestListAckError digest_list_ack = 6; -
getDigestListAckOrBuilder
.p4.v1.DigestListAckError digest_list_ack = 6;- Specified by:
getDigestListAckOrBuilderin interfaceP4RuntimeOuterClass.StreamErrorOrBuilder
-
hasOther
public boolean hasOther().p4.v1.StreamOtherError other = 7;- Specified by:
hasOtherin interfaceP4RuntimeOuterClass.StreamErrorOrBuilder- Returns:
- Whether the other field is set.
-
getOther
.p4.v1.StreamOtherError other = 7;- Specified by:
getOtherin interfaceP4RuntimeOuterClass.StreamErrorOrBuilder- Returns:
- The other.
-
setOther
.p4.v1.StreamOtherError other = 7; -
setOther
public P4RuntimeOuterClass.StreamError.Builder setOther(P4RuntimeOuterClass.StreamOtherError.Builder builderForValue) .p4.v1.StreamOtherError other = 7; -
mergeOther
public P4RuntimeOuterClass.StreamError.Builder mergeOther(P4RuntimeOuterClass.StreamOtherError value) .p4.v1.StreamOtherError other = 7; -
clearOther
.p4.v1.StreamOtherError other = 7; -
getOtherBuilder
.p4.v1.StreamOtherError other = 7; -
getOtherOrBuilder
.p4.v1.StreamOtherError other = 7;- Specified by:
getOtherOrBuilderin interfaceP4RuntimeOuterClass.StreamErrorOrBuilder
-