Class Gnmi.Error.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Error.Builder>
-
- org.opennms.features.openconfig.proto.gnmi.Gnmi.Error.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,Gnmi.ErrorOrBuilder
- Enclosing class:
- Gnmi.Error
public static final class Gnmi.Error.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Error.Builder> implements Gnmi.ErrorOrBuilder
Error message previously utilised to return errors to the client. Deprecated in favour of using the google.golang.org/genproto/googleapis/rpc/status message in the RPC response. Reference: gNMI Specification Section 2.5
Protobuf typegnmi.Error
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Gnmi.Error.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Gnmi.Error
build()
Gnmi.Error
buildPartial()
Gnmi.Error.Builder
clear()
Gnmi.Error.Builder
clearCode()
Canonical gRPC error code.Gnmi.Error.Builder
clearData()
Optional additional information.Gnmi.Error.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Gnmi.Error.Builder
clearMessage()
Human readable error.Gnmi.Error.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Gnmi.Error.Builder
clone()
int
getCode()
Canonical gRPC error code.com.google.protobuf.Any
getData()
Optional additional information.com.google.protobuf.Any.Builder
getDataBuilder()
Optional additional information.com.google.protobuf.AnyOrBuilder
getDataOrBuilder()
Optional additional information.Gnmi.Error
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getMessage()
Human readable error.com.google.protobuf.ByteString
getMessageBytes()
Human readable error.boolean
hasData()
Optional additional information.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Gnmi.Error.Builder
mergeData(com.google.protobuf.Any value)
Optional additional information.Gnmi.Error.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Gnmi.Error.Builder
mergeFrom(com.google.protobuf.Message other)
Gnmi.Error.Builder
mergeFrom(Gnmi.Error other)
Gnmi.Error.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Gnmi.Error.Builder
setCode(int value)
Canonical gRPC error code.Gnmi.Error.Builder
setData(com.google.protobuf.Any value)
Optional additional information.Gnmi.Error.Builder
setData(com.google.protobuf.Any.Builder builderForValue)
Optional additional information.Gnmi.Error.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Gnmi.Error.Builder
setMessage(String value)
Human readable error.Gnmi.Error.Builder
setMessageBytes(com.google.protobuf.ByteString value)
Human readable error.Gnmi.Error.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Gnmi.Error.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Error.Builder>
-
clear
public Gnmi.Error.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Error.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Error.Builder>
-
getDefaultInstanceForType
public Gnmi.Error getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Gnmi.Error build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Gnmi.Error buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Gnmi.Error.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Error.Builder>
-
setField
public Gnmi.Error.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Error.Builder>
-
clearField
public Gnmi.Error.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Error.Builder>
-
clearOneof
public Gnmi.Error.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Error.Builder>
-
setRepeatedField
public Gnmi.Error.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Error.Builder>
-
addRepeatedField
public Gnmi.Error.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Error.Builder>
-
mergeFrom
public Gnmi.Error.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Gnmi.Error.Builder>
-
mergeFrom
public Gnmi.Error.Builder mergeFrom(Gnmi.Error other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Error.Builder>
-
mergeFrom
public Gnmi.Error.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Gnmi.Error.Builder>
- Throws:
IOException
-
getCode
public int getCode()
Canonical gRPC error code.
uint32 code = 1;
- Specified by:
getCode
in interfaceGnmi.ErrorOrBuilder
-
setCode
public Gnmi.Error.Builder setCode(int value)
Canonical gRPC error code.
uint32 code = 1;
-
clearCode
public Gnmi.Error.Builder clearCode()
Canonical gRPC error code.
uint32 code = 1;
-
getMessage
public String getMessage()
Human readable error.
string message = 2;
- Specified by:
getMessage
in interfaceGnmi.ErrorOrBuilder
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()
Human readable error.
string message = 2;
- Specified by:
getMessageBytes
in interfaceGnmi.ErrorOrBuilder
-
setMessage
public Gnmi.Error.Builder setMessage(String value)
Human readable error.
string message = 2;
-
clearMessage
public Gnmi.Error.Builder clearMessage()
Human readable error.
string message = 2;
-
setMessageBytes
public Gnmi.Error.Builder setMessageBytes(com.google.protobuf.ByteString value)
Human readable error.
string message = 2;
-
hasData
public boolean hasData()
Optional additional information.
.google.protobuf.Any data = 3;
- Specified by:
hasData
in interfaceGnmi.ErrorOrBuilder
-
getData
public com.google.protobuf.Any getData()
Optional additional information.
.google.protobuf.Any data = 3;
- Specified by:
getData
in interfaceGnmi.ErrorOrBuilder
-
setData
public Gnmi.Error.Builder setData(com.google.protobuf.Any value)
Optional additional information.
.google.protobuf.Any data = 3;
-
setData
public Gnmi.Error.Builder setData(com.google.protobuf.Any.Builder builderForValue)
Optional additional information.
.google.protobuf.Any data = 3;
-
mergeData
public Gnmi.Error.Builder mergeData(com.google.protobuf.Any value)
Optional additional information.
.google.protobuf.Any data = 3;
-
clearData
public Gnmi.Error.Builder clearData()
Optional additional information.
.google.protobuf.Any data = 3;
-
getDataBuilder
public com.google.protobuf.Any.Builder getDataBuilder()
Optional additional information.
.google.protobuf.Any data = 3;
-
getDataOrBuilder
public com.google.protobuf.AnyOrBuilder getDataOrBuilder()
Optional additional information.
.google.protobuf.Any data = 3;
- Specified by:
getDataOrBuilder
in interfaceGnmi.ErrorOrBuilder
-
setUnknownFields
public final Gnmi.Error.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Error.Builder>
-
mergeUnknownFields
public final Gnmi.Error.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Error.Builder>
-
-