Class NodeInfo.Builder

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

    public static final class NodeInfo.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<NodeInfo.Builder>
    implements NodeInfoOrBuilder
     Message containing connection information for an AxonServer Node 
     
    Protobuf type io.axoniq.axonserver.grpc.control.NodeInfo
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      NodeInfo build()  
      NodeInfo buildPartial()  
      NodeInfo.Builder clear()  
      NodeInfo.Builder clearGrpcPort()
      The port number for gRPC connections
      NodeInfo.Builder clearHostName()
      The host name to use when connecting to this node
      NodeInfo.Builder clearHttpPort()
      The port number for HTTP connections
      NodeInfo.Builder clearNodeName()
      The unique name of the node to connect with, for purpose of debugging
      NodeInfo.Builder clearVersion()
      The version identifier of the API
      NodeInfo getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      int getGrpcPort()
      The port number for gRPC connections
      String getHostName()
      The host name to use when connecting to this node
      com.google.protobuf.ByteString getHostNameBytes()
      The host name to use when connecting to this node
      int getHttpPort()
      The port number for HTTP connections
      String getNodeName()
      The unique name of the node to connect with, for purpose of debugging
      com.google.protobuf.ByteString getNodeNameBytes()
      The unique name of the node to connect with, for purpose of debugging
      int getVersion()
      The version identifier of the API
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      NodeInfo.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      NodeInfo.Builder mergeFrom​(com.google.protobuf.Message other)  
      NodeInfo.Builder mergeFrom​(NodeInfo other)  
      NodeInfo.Builder setGrpcPort​(int value)
      The port number for gRPC connections
      NodeInfo.Builder setHostName​(String value)
      The host name to use when connecting to this node
      NodeInfo.Builder setHostNameBytes​(com.google.protobuf.ByteString value)
      The host name to use when connecting to this node
      NodeInfo.Builder setHttpPort​(int value)
      The port number for HTTP connections
      NodeInfo.Builder setNodeName​(String value)
      The unique name of the node to connect with, for purpose of debugging
      NodeInfo.Builder setNodeNameBytes​(com.google.protobuf.ByteString value)
      The unique name of the node to connect with, for purpose of debugging
      NodeInfo.Builder setVersion​(int value)
      The version identifier of the API
      • 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, setUnknownFieldsProto3
      • Methods inherited from class com.google.protobuf.AbstractMessage.Builder

        findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

        addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
      • Methods inherited from interface com.google.protobuf.Message.Builder

        mergeDelimitedFrom, mergeDelimitedFrom
      • Methods inherited from interface com.google.protobuf.MessageLite.Builder

        mergeFrom
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
      • 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.GeneratedMessage.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
      • getHostName

        public String getHostName()
         The host name to use when connecting to this node 
         
        string host_name = 1;
        Specified by:
        getHostName in interface NodeInfoOrBuilder
        Returns:
        The hostName.
      • getHostNameBytes

        public com.google.protobuf.ByteString getHostNameBytes()
         The host name to use when connecting to this node 
         
        string host_name = 1;
        Specified by:
        getHostNameBytes in interface NodeInfoOrBuilder
        Returns:
        The bytes for hostName.
      • setHostName

        public NodeInfo.Builder setHostName​(String value)
         The host name to use when connecting to this node 
         
        string host_name = 1;
        Parameters:
        value - The hostName to set.
        Returns:
        This builder for chaining.
      • clearHostName

        public NodeInfo.Builder clearHostName()
         The host name to use when connecting to this node 
         
        string host_name = 1;
        Returns:
        This builder for chaining.
      • setHostNameBytes

        public NodeInfo.Builder setHostNameBytes​(com.google.protobuf.ByteString value)
         The host name to use when connecting to this node 
         
        string host_name = 1;
        Parameters:
        value - The bytes for hostName to set.
        Returns:
        This builder for chaining.
      • getGrpcPort

        public int getGrpcPort()
         The port number for gRPC connections 
         
        int32 grpc_port = 2;
        Specified by:
        getGrpcPort in interface NodeInfoOrBuilder
        Returns:
        The grpcPort.
      • setGrpcPort

        public NodeInfo.Builder setGrpcPort​(int value)
         The port number for gRPC connections 
         
        int32 grpc_port = 2;
        Parameters:
        value - The grpcPort to set.
        Returns:
        This builder for chaining.
      • clearGrpcPort

        public NodeInfo.Builder clearGrpcPort()
         The port number for gRPC connections 
         
        int32 grpc_port = 2;
        Returns:
        This builder for chaining.
      • getHttpPort

        public int getHttpPort()
         The port number for HTTP connections 
         
        int32 http_port = 3;
        Specified by:
        getHttpPort in interface NodeInfoOrBuilder
        Returns:
        The httpPort.
      • setHttpPort

        public NodeInfo.Builder setHttpPort​(int value)
         The port number for HTTP connections 
         
        int32 http_port = 3;
        Parameters:
        value - The httpPort to set.
        Returns:
        This builder for chaining.
      • clearHttpPort

        public NodeInfo.Builder clearHttpPort()
         The port number for HTTP connections 
         
        int32 http_port = 3;
        Returns:
        This builder for chaining.
      • getVersion

        public int getVersion()
         The version identifier of the API 
         
        int32 version = 4;
        Specified by:
        getVersion in interface NodeInfoOrBuilder
        Returns:
        The version.
      • setVersion

        public NodeInfo.Builder setVersion​(int value)
         The version identifier of the API 
         
        int32 version = 4;
        Parameters:
        value - The version to set.
        Returns:
        This builder for chaining.
      • clearVersion

        public NodeInfo.Builder clearVersion()
         The version identifier of the API 
         
        int32 version = 4;
        Returns:
        This builder for chaining.
      • getNodeName

        public String getNodeName()
         The unique name of the node to connect with, for purpose of debugging 
         
        string node_name = 5;
        Specified by:
        getNodeName in interface NodeInfoOrBuilder
        Returns:
        The nodeName.
      • getNodeNameBytes

        public com.google.protobuf.ByteString getNodeNameBytes()
         The unique name of the node to connect with, for purpose of debugging 
         
        string node_name = 5;
        Specified by:
        getNodeNameBytes in interface NodeInfoOrBuilder
        Returns:
        The bytes for nodeName.
      • setNodeName

        public NodeInfo.Builder setNodeName​(String value)
         The unique name of the node to connect with, for purpose of debugging 
         
        string node_name = 5;
        Parameters:
        value - The nodeName to set.
        Returns:
        This builder for chaining.
      • clearNodeName

        public NodeInfo.Builder clearNodeName()
         The unique name of the node to connect with, for purpose of debugging 
         
        string node_name = 5;
        Returns:
        This builder for chaining.
      • setNodeNameBytes

        public NodeInfo.Builder setNodeNameBytes​(com.google.protobuf.ByteString value)
         The unique name of the node to connect with, for purpose of debugging 
         
        string node_name = 5;
        Parameters:
        value - The bytes for nodeName to set.
        Returns:
        This builder for chaining.