Class Gnmi.Notification.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Gnmi.NotificationOrBuilder
    Enclosing class:
    Gnmi.Notification

    public static final class Gnmi.Notification.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Notification.Builder>
    implements Gnmi.NotificationOrBuilder
     Notification is a re-usable message that is used to encode data from the
     target to the client. A Notification carries two types of changes to the data
     tree:
      - Deleted values (delete) - a set of paths that have been removed from the
        data tree.
      - Updated values (update) - a set of path-value pairs indicating the path
        whose value has changed in the data tree.
     Reference: gNMI Specification Section 2.1
     
    Protobuf type gnmi.Notification
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Notification.Builder>
      • clear

        public Gnmi.Notification.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Notification.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Notification.Builder>
      • getDefaultInstanceForType

        public Gnmi.Notification getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Gnmi.Notification build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Gnmi.Notification buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Gnmi.Notification.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Notification.Builder>
      • setField

        public Gnmi.Notification.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Notification.Builder>
      • clearField

        public Gnmi.Notification.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Notification.Builder>
      • clearOneof

        public Gnmi.Notification.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Notification.Builder>
      • setRepeatedField

        public Gnmi.Notification.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Notification.Builder>
      • addRepeatedField

        public Gnmi.Notification.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Notification.Builder>
      • mergeFrom

        public Gnmi.Notification.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Gnmi.Notification.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Notification.Builder>
      • mergeFrom

        public Gnmi.Notification.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Gnmi.Notification.Builder>
        Throws:
        IOException
      • setTimestamp

        public Gnmi.Notification.Builder setTimestamp​(long value)
         Timestamp in nanoseconds since Epoch.
         
        int64 timestamp = 1;
      • clearTimestamp

        public Gnmi.Notification.Builder clearTimestamp()
         Timestamp in nanoseconds since Epoch.
         
        int64 timestamp = 1;
      • getPrefixBuilder

        public Gnmi.Path.Builder getPrefixBuilder()
         Prefix used for paths in the message.
         
        .gnmi.Path prefix = 2;
      • getAlias

        public String getAlias()
         An alias for the path specified in the prefix field.
         Reference: gNMI Specification Section 2.4.2
         
        string alias = 3;
        Specified by:
        getAlias in interface Gnmi.NotificationOrBuilder
      • getAliasBytes

        public com.google.protobuf.ByteString getAliasBytes()
         An alias for the path specified in the prefix field.
         Reference: gNMI Specification Section 2.4.2
         
        string alias = 3;
        Specified by:
        getAliasBytes in interface Gnmi.NotificationOrBuilder
      • setAlias

        public Gnmi.Notification.Builder setAlias​(String value)
         An alias for the path specified in the prefix field.
         Reference: gNMI Specification Section 2.4.2
         
        string alias = 3;
      • clearAlias

        public Gnmi.Notification.Builder clearAlias()
         An alias for the path specified in the prefix field.
         Reference: gNMI Specification Section 2.4.2
         
        string alias = 3;
      • setAliasBytes

        public Gnmi.Notification.Builder setAliasBytes​(com.google.protobuf.ByteString value)
         An alias for the path specified in the prefix field.
         Reference: gNMI Specification Section 2.4.2
         
        string alias = 3;
      • clearUpdate

        public Gnmi.Notification.Builder clearUpdate()
         Data elements that have changed values.
         
        repeated .gnmi.Update update = 4;
      • removeUpdate

        public Gnmi.Notification.Builder removeUpdate​(int index)
         Data elements that have changed values.
         
        repeated .gnmi.Update update = 4;
      • getUpdateBuilder

        public Gnmi.Update.Builder getUpdateBuilder​(int index)
         Data elements that have changed values.
         
        repeated .gnmi.Update update = 4;
      • addUpdateBuilder

        public Gnmi.Update.Builder addUpdateBuilder()
         Data elements that have changed values.
         
        repeated .gnmi.Update update = 4;
      • addUpdateBuilder

        public Gnmi.Update.Builder addUpdateBuilder​(int index)
         Data elements that have changed values.
         
        repeated .gnmi.Update update = 4;
      • getUpdateBuilderList

        public List<Gnmi.Update.Builder> getUpdateBuilderList()
         Data elements that have changed values.
         
        repeated .gnmi.Update update = 4;
      • clearDelete

        public Gnmi.Notification.Builder clearDelete()
         Data elements that have been deleted.
         
        repeated .gnmi.Path delete = 5;
      • removeDelete

        public Gnmi.Notification.Builder removeDelete​(int index)
         Data elements that have been deleted.
         
        repeated .gnmi.Path delete = 5;
      • getDeleteBuilder

        public Gnmi.Path.Builder getDeleteBuilder​(int index)
         Data elements that have been deleted.
         
        repeated .gnmi.Path delete = 5;
      • addDeleteBuilder

        public Gnmi.Path.Builder addDeleteBuilder()
         Data elements that have been deleted.
         
        repeated .gnmi.Path delete = 5;
      • addDeleteBuilder

        public Gnmi.Path.Builder addDeleteBuilder​(int index)
         Data elements that have been deleted.
         
        repeated .gnmi.Path delete = 5;
      • getDeleteBuilderList

        public List<Gnmi.Path.Builder> getDeleteBuilderList()
         Data elements that have been deleted.
         
        repeated .gnmi.Path delete = 5;
      • getAtomic

        public boolean getAtomic()
         This notification contains a set of paths that are always updated together
         referenced by a globally unique prefix.
         
        bool atomic = 6;
        Specified by:
        getAtomic in interface Gnmi.NotificationOrBuilder
      • setAtomic

        public Gnmi.Notification.Builder setAtomic​(boolean value)
         This notification contains a set of paths that are always updated together
         referenced by a globally unique prefix.
         
        bool atomic = 6;
      • clearAtomic

        public Gnmi.Notification.Builder clearAtomic()
         This notification contains a set of paths that are always updated together
         referenced by a globally unique prefix.
         
        bool atomic = 6;
      • setUnknownFields

        public final Gnmi.Notification.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Notification.Builder>
      • mergeUnknownFields

        public final Gnmi.Notification.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Notification.Builder>