Class NodeInfo.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, NodeInfoOrBuilder
    Enclosing class:
    NodeInfo

    public static final class NodeInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<NodeInfo.Builder>
    implements NodeInfoOrBuilder
    Protobuf type NodeInfo
    • 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<NodeInfo.Builder>
      • clear

        public NodeInfo.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<NodeInfo.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<NodeInfo.Builder>
      • getDefaultInstanceForType

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

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

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

        public NodeInfo.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<NodeInfo.Builder>
      • setField

        public NodeInfo.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<NodeInfo.Builder>
      • clearField

        public NodeInfo.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<NodeInfo.Builder>
      • clearOneof

        public NodeInfo.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<NodeInfo.Builder>
      • setRepeatedField

        public NodeInfo.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<NodeInfo.Builder>
      • addRepeatedField

        public NodeInfo.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<NodeInfo.Builder>
      • mergeFrom

        public NodeInfo.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<NodeInfo.Builder>
      • isInitialized

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

        public NodeInfo.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<NodeInfo.Builder>
        Throws:
        IOException
      • clearForeignSource

        public NodeInfo.Builder clearForeignSource()
        string foreign_source = 1;
      • setForeignSourceBytes

        public NodeInfo.Builder setForeignSourceBytes​(com.google.protobuf.ByteString value)
        string foreign_source = 1;
      • clearForeginId

        public NodeInfo.Builder clearForeginId()
        string foregin_id = 2;
      • setForeginIdBytes

        public NodeInfo.Builder setForeginIdBytes​(com.google.protobuf.ByteString value)
        string foregin_id = 2;
      • setNodeId

        public NodeInfo.Builder setNodeId​(int value)
        uint32 node_id = 3;
      • getCategoriesList

        public com.google.protobuf.ProtocolStringList getCategoriesList()
        repeated string categories = 4;
        Specified by:
        getCategoriesList in interface NodeInfoOrBuilder
      • getCategoriesBytes

        public com.google.protobuf.ByteString getCategoriesBytes​(int index)
        repeated string categories = 4;
        Specified by:
        getCategoriesBytes in interface NodeInfoOrBuilder
      • setCategories

        public NodeInfo.Builder setCategories​(int index,
                                              String value)
        repeated string categories = 4;
      • clearCategories

        public NodeInfo.Builder clearCategories()
        repeated string categories = 4;
      • addCategoriesBytes

        public NodeInfo.Builder addCategoriesBytes​(com.google.protobuf.ByteString value)
        repeated string categories = 4;
      • setUnknownFields

        public final NodeInfo.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<NodeInfo.Builder>
      • mergeUnknownFields

        public final NodeInfo.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<NodeInfo.Builder>