Class Gnmi.UpdateResult.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.UpdateResult.Builder>
-
- org.opennms.features.openconfig.proto.gnmi.Gnmi.UpdateResult.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,Gnmi.UpdateResultOrBuilder
- Enclosing class:
- Gnmi.UpdateResult
public static final class Gnmi.UpdateResult.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.UpdateResult.Builder> implements Gnmi.UpdateResultOrBuilder
UpdateResult is used within the SetResponse message to communicate the result of an operation specified within a SetRequest message. Reference: gNMI Specification Section 3.4.2
Protobuf typegnmi.UpdateResult
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Gnmi.UpdateResult.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Gnmi.UpdateResult
build()
Gnmi.UpdateResult
buildPartial()
Gnmi.UpdateResult.Builder
clear()
Gnmi.UpdateResult.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Gnmi.UpdateResult.Builder
clearMessage()
Deprecated.Gnmi.UpdateResult.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Gnmi.UpdateResult.Builder
clearOp()
Update operation type.Gnmi.UpdateResult.Builder
clearPath()
Path associated with the update.Gnmi.UpdateResult.Builder
clearTimestamp()
Deprecated.Gnmi.UpdateResult.Builder
clone()
Gnmi.UpdateResult
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Gnmi.Error
getMessage()
Deprecated.Gnmi.Error.Builder
getMessageBuilder()
Deprecated.Gnmi.ErrorOrBuilder
getMessageOrBuilder()
Deprecated.Gnmi.UpdateResult.Operation
getOp()
Update operation type.int
getOpValue()
Update operation type.Gnmi.Path
getPath()
Path associated with the update.Gnmi.Path.Builder
getPathBuilder()
Path associated with the update.Gnmi.PathOrBuilder
getPathOrBuilder()
Path associated with the update.long
getTimestamp()
Deprecated.boolean
hasMessage()
Deprecated.boolean
hasPath()
Path associated with the update.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Gnmi.UpdateResult.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Gnmi.UpdateResult.Builder
mergeFrom(com.google.protobuf.Message other)
Gnmi.UpdateResult.Builder
mergeFrom(Gnmi.UpdateResult other)
Gnmi.UpdateResult.Builder
mergeMessage(Gnmi.Error value)
Deprecated.Gnmi.UpdateResult.Builder
mergePath(Gnmi.Path value)
Path associated with the update.Gnmi.UpdateResult.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Gnmi.UpdateResult.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Gnmi.UpdateResult.Builder
setMessage(Gnmi.Error value)
Deprecated.Gnmi.UpdateResult.Builder
setMessage(Gnmi.Error.Builder builderForValue)
Deprecated.Gnmi.UpdateResult.Builder
setOp(Gnmi.UpdateResult.Operation value)
Update operation type.Gnmi.UpdateResult.Builder
setOpValue(int value)
Update operation type.Gnmi.UpdateResult.Builder
setPath(Gnmi.Path value)
Path associated with the update.Gnmi.UpdateResult.Builder
setPath(Gnmi.Path.Builder builderForValue)
Path associated with the update.Gnmi.UpdateResult.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Gnmi.UpdateResult.Builder
setTimestamp(long value)
Deprecated.Gnmi.UpdateResult.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.UpdateResult.Builder>
-
clear
public Gnmi.UpdateResult.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.UpdateResult.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.UpdateResult.Builder>
-
getDefaultInstanceForType
public Gnmi.UpdateResult getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Gnmi.UpdateResult build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Gnmi.UpdateResult buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Gnmi.UpdateResult.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.UpdateResult.Builder>
-
setField
public Gnmi.UpdateResult.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.UpdateResult.Builder>
-
clearField
public Gnmi.UpdateResult.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.UpdateResult.Builder>
-
clearOneof
public Gnmi.UpdateResult.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.UpdateResult.Builder>
-
setRepeatedField
public Gnmi.UpdateResult.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.UpdateResult.Builder>
-
addRepeatedField
public Gnmi.UpdateResult.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.UpdateResult.Builder>
-
mergeFrom
public Gnmi.UpdateResult.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.UpdateResult.Builder>
-
mergeFrom
public Gnmi.UpdateResult.Builder mergeFrom(Gnmi.UpdateResult other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.UpdateResult.Builder>
-
mergeFrom
public Gnmi.UpdateResult.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.UpdateResult.Builder>
- Throws:
IOException
-
getTimestamp
@Deprecated public long getTimestamp()
Deprecated.Deprecated timestamp for the UpdateResult, this field has been replaced by the timestamp within the SetResponse message, since all mutations effected by a set should be applied as a single transaction.
int64 timestamp = 1 [deprecated = true];
- Specified by:
getTimestamp
in interfaceGnmi.UpdateResultOrBuilder
-
setTimestamp
@Deprecated public Gnmi.UpdateResult.Builder setTimestamp(long value)
Deprecated.Deprecated timestamp for the UpdateResult, this field has been replaced by the timestamp within the SetResponse message, since all mutations effected by a set should be applied as a single transaction.
int64 timestamp = 1 [deprecated = true];
-
clearTimestamp
@Deprecated public Gnmi.UpdateResult.Builder clearTimestamp()
Deprecated.Deprecated timestamp for the UpdateResult, this field has been replaced by the timestamp within the SetResponse message, since all mutations effected by a set should be applied as a single transaction.
int64 timestamp = 1 [deprecated = true];
-
hasPath
public boolean hasPath()
Path associated with the update.
.gnmi.Path path = 2;
- Specified by:
hasPath
in interfaceGnmi.UpdateResultOrBuilder
-
getPath
public Gnmi.Path getPath()
Path associated with the update.
.gnmi.Path path = 2;
- Specified by:
getPath
in interfaceGnmi.UpdateResultOrBuilder
-
setPath
public Gnmi.UpdateResult.Builder setPath(Gnmi.Path value)
Path associated with the update.
.gnmi.Path path = 2;
-
setPath
public Gnmi.UpdateResult.Builder setPath(Gnmi.Path.Builder builderForValue)
Path associated with the update.
.gnmi.Path path = 2;
-
mergePath
public Gnmi.UpdateResult.Builder mergePath(Gnmi.Path value)
Path associated with the update.
.gnmi.Path path = 2;
-
clearPath
public Gnmi.UpdateResult.Builder clearPath()
Path associated with the update.
.gnmi.Path path = 2;
-
getPathBuilder
public Gnmi.Path.Builder getPathBuilder()
Path associated with the update.
.gnmi.Path path = 2;
-
getPathOrBuilder
public Gnmi.PathOrBuilder getPathOrBuilder()
Path associated with the update.
.gnmi.Path path = 2;
- Specified by:
getPathOrBuilder
in interfaceGnmi.UpdateResultOrBuilder
-
hasMessage
@Deprecated public boolean hasMessage()
Deprecated.Status of the update operation.
.gnmi.Error message = 3 [deprecated = true];
- Specified by:
hasMessage
in interfaceGnmi.UpdateResultOrBuilder
-
getMessage
@Deprecated public Gnmi.Error getMessage()
Deprecated.Status of the update operation.
.gnmi.Error message = 3 [deprecated = true];
- Specified by:
getMessage
in interfaceGnmi.UpdateResultOrBuilder
-
setMessage
@Deprecated public Gnmi.UpdateResult.Builder setMessage(Gnmi.Error value)
Deprecated.Status of the update operation.
.gnmi.Error message = 3 [deprecated = true];
-
setMessage
@Deprecated public Gnmi.UpdateResult.Builder setMessage(Gnmi.Error.Builder builderForValue)
Deprecated.Status of the update operation.
.gnmi.Error message = 3 [deprecated = true];
-
mergeMessage
@Deprecated public Gnmi.UpdateResult.Builder mergeMessage(Gnmi.Error value)
Deprecated.Status of the update operation.
.gnmi.Error message = 3 [deprecated = true];
-
clearMessage
@Deprecated public Gnmi.UpdateResult.Builder clearMessage()
Deprecated.Status of the update operation.
.gnmi.Error message = 3 [deprecated = true];
-
getMessageBuilder
@Deprecated public Gnmi.Error.Builder getMessageBuilder()
Deprecated.Status of the update operation.
.gnmi.Error message = 3 [deprecated = true];
-
getMessageOrBuilder
@Deprecated public Gnmi.ErrorOrBuilder getMessageOrBuilder()
Deprecated.Status of the update operation.
.gnmi.Error message = 3 [deprecated = true];
- Specified by:
getMessageOrBuilder
in interfaceGnmi.UpdateResultOrBuilder
-
getOpValue
public int getOpValue()
Update operation type.
.gnmi.UpdateResult.Operation op = 4;
- Specified by:
getOpValue
in interfaceGnmi.UpdateResultOrBuilder
-
setOpValue
public Gnmi.UpdateResult.Builder setOpValue(int value)
Update operation type.
.gnmi.UpdateResult.Operation op = 4;
-
getOp
public Gnmi.UpdateResult.Operation getOp()
Update operation type.
.gnmi.UpdateResult.Operation op = 4;
- Specified by:
getOp
in interfaceGnmi.UpdateResultOrBuilder
-
setOp
public Gnmi.UpdateResult.Builder setOp(Gnmi.UpdateResult.Operation value)
Update operation type.
.gnmi.UpdateResult.Operation op = 4;
-
clearOp
public Gnmi.UpdateResult.Builder clearOp()
Update operation type.
.gnmi.UpdateResult.Operation op = 4;
-
setUnknownFields
public final Gnmi.UpdateResult.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.UpdateResult.Builder>
-
mergeUnknownFields
public final Gnmi.UpdateResult.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.UpdateResult.Builder>
-
-