Package io.hstream.internal
Class ServerNode.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ServerNode.Builder>
-
- io.hstream.internal.ServerNode.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ServerNodeOrBuilder
,Cloneable
- Enclosing class:
- ServerNode
public static final class ServerNode.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ServerNode.Builder> implements ServerNodeOrBuilder
Protobuf typehstream.server.ServerNode
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerNode
build()
ServerNode
buildPartial()
ServerNode.Builder
clear()
ServerNode.Builder
clearHost()
string host = 2;
ServerNode.Builder
clearId()
uint32 id = 1;
ServerNode.Builder
clearPort()
uint32 port = 3;
ServerNode.Builder
clearVersion()
.hstream.server.HStreamVersion version = 4;
ServerNode
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getHost()
string host = 2;
com.google.protobuf.ByteString
getHostBytes()
string host = 2;
int
getId()
uint32 id = 1;
int
getPort()
uint32 port = 3;
HStreamVersion
getVersion()
.hstream.server.HStreamVersion version = 4;
HStreamVersion.Builder
getVersionBuilder()
.hstream.server.HStreamVersion version = 4;
HStreamVersionOrBuilder
getVersionOrBuilder()
.hstream.server.HStreamVersion version = 4;
boolean
hasVersion()
.hstream.server.HStreamVersion version = 4;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ServerNode.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ServerNode.Builder
mergeFrom(com.google.protobuf.Message other)
ServerNode.Builder
mergeFrom(ServerNode other)
ServerNode.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ServerNode.Builder
mergeVersion(HStreamVersion value)
.hstream.server.HStreamVersion version = 4;
ServerNode.Builder
setHost(String value)
string host = 2;
ServerNode.Builder
setHostBytes(com.google.protobuf.ByteString value)
string host = 2;
ServerNode.Builder
setId(int value)
uint32 id = 1;
ServerNode.Builder
setPort(int value)
uint32 port = 3;
ServerNode.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ServerNode.Builder
setVersion(HStreamVersion value)
.hstream.server.HStreamVersion version = 4;
ServerNode.Builder
setVersion(HStreamVersion.Builder builderForValue)
.hstream.server.HStreamVersion version = 4;
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, 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 class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
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<ServerNode.Builder>
-
clear
public ServerNode.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<ServerNode.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<ServerNode.Builder>
-
getDefaultInstanceForType
public ServerNode getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ServerNode build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ServerNode buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public ServerNode.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ServerNode.Builder>
-
mergeFrom
public ServerNode.Builder mergeFrom(ServerNode other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerNode.Builder>
-
mergeFrom
public ServerNode.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<ServerNode.Builder>
- Throws:
IOException
-
getId
public int getId()
uint32 id = 1;
- Specified by:
getId
in interfaceServerNodeOrBuilder
- Returns:
- The id.
-
setId
public ServerNode.Builder setId(int value)
uint32 id = 1;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
public ServerNode.Builder clearId()
uint32 id = 1;
- Returns:
- This builder for chaining.
-
getHost
public String getHost()
string host = 2;
- Specified by:
getHost
in interfaceServerNodeOrBuilder
- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()
string host = 2;
- Specified by:
getHostBytes
in interfaceServerNodeOrBuilder
- Returns:
- The bytes for host.
-
setHost
public ServerNode.Builder setHost(String value)
string host = 2;
- Parameters:
value
- The host to set.- Returns:
- This builder for chaining.
-
clearHost
public ServerNode.Builder clearHost()
string host = 2;
- Returns:
- This builder for chaining.
-
setHostBytes
public ServerNode.Builder setHostBytes(com.google.protobuf.ByteString value)
string host = 2;
- Parameters:
value
- The bytes for host to set.- Returns:
- This builder for chaining.
-
getPort
public int getPort()
uint32 port = 3;
- Specified by:
getPort
in interfaceServerNodeOrBuilder
- Returns:
- The port.
-
setPort
public ServerNode.Builder setPort(int value)
uint32 port = 3;
- Parameters:
value
- The port to set.- Returns:
- This builder for chaining.
-
clearPort
public ServerNode.Builder clearPort()
uint32 port = 3;
- Returns:
- This builder for chaining.
-
hasVersion
public boolean hasVersion()
.hstream.server.HStreamVersion version = 4;
- Specified by:
hasVersion
in interfaceServerNodeOrBuilder
- Returns:
- Whether the version field is set.
-
getVersion
public HStreamVersion getVersion()
.hstream.server.HStreamVersion version = 4;
- Specified by:
getVersion
in interfaceServerNodeOrBuilder
- Returns:
- The version.
-
setVersion
public ServerNode.Builder setVersion(HStreamVersion value)
.hstream.server.HStreamVersion version = 4;
-
setVersion
public ServerNode.Builder setVersion(HStreamVersion.Builder builderForValue)
.hstream.server.HStreamVersion version = 4;
-
mergeVersion
public ServerNode.Builder mergeVersion(HStreamVersion value)
.hstream.server.HStreamVersion version = 4;
-
clearVersion
public ServerNode.Builder clearVersion()
.hstream.server.HStreamVersion version = 4;
-
getVersionBuilder
public HStreamVersion.Builder getVersionBuilder()
.hstream.server.HStreamVersion version = 4;
-
getVersionOrBuilder
public HStreamVersionOrBuilder getVersionOrBuilder()
.hstream.server.HStreamVersion version = 4;
- Specified by:
getVersionOrBuilder
in interfaceServerNodeOrBuilder
-
setUnknownFields
public final ServerNode.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerNode.Builder>
-
mergeUnknownFields
public final ServerNode.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerNode.Builder>
-
-