Class HAZKInfoProtos.ActiveNodeInfo.Builder
java.lang.Object
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder
org.apache.hadoop.thirdparty.protobuf.AbstractMessage.Builder<BuilderT>
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<HAZKInfoProtos.ActiveNodeInfo.Builder>
org.apache.hadoop.hdfs.server.namenode.ha.proto.HAZKInfoProtos.ActiveNodeInfo.Builder
- All Implemented Interfaces:
Cloneable,HAZKInfoProtos.ActiveNodeInfoOrBuilder,org.apache.hadoop.thirdparty.protobuf.Message.Builder,org.apache.hadoop.thirdparty.protobuf.MessageLite.Builder,org.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuilder,org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder
- Enclosing class:
- HAZKInfoProtos.ActiveNodeInfo
public static final class HAZKInfoProtos.ActiveNodeInfo.Builder
extends org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<HAZKInfoProtos.ActiveNodeInfo.Builder>
implements HAZKInfoProtos.ActiveNodeInfoOrBuilder
Protobuf type
hadoop.hdfs.ActiveNodeInfo-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) required string hostname = 3;required string namenodeId = 2;required string nameserviceId = 1;clearOneof(org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) required int32 port = 4;required int32 zkfcPort = 5;clone()static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptororg.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptorrequired string hostname = 3;org.apache.hadoop.thirdparty.protobuf.ByteStringrequired string hostname = 3;required string namenodeId = 2;org.apache.hadoop.thirdparty.protobuf.ByteStringrequired string namenodeId = 2;required string nameserviceId = 1;org.apache.hadoop.thirdparty.protobuf.ByteStringrequired string nameserviceId = 1;intgetPort()required int32 port = 4;intrequired int32 zkfcPort = 5;booleanrequired string hostname = 3;booleanrequired string namenodeId = 2;booleanrequired string nameserviceId = 1;booleanhasPort()required int32 port = 4;booleanrequired int32 zkfcPort = 5;protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(org.apache.hadoop.thirdparty.protobuf.CodedInputStream input, org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) mergeUnknownFields(org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) setHostname(String value) required string hostname = 3;setHostnameBytes(org.apache.hadoop.thirdparty.protobuf.ByteString value) required string hostname = 3;setNamenodeId(String value) required string namenodeId = 2;setNamenodeIdBytes(org.apache.hadoop.thirdparty.protobuf.ByteString value) required string namenodeId = 2;setNameserviceId(String value) required string nameserviceId = 1;setNameserviceIdBytes(org.apache.hadoop.thirdparty.protobuf.ByteString value) required string nameserviceId = 1;setPort(int value) required int32 port = 4;setRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) setZkfcPort(int value) required int32 zkfcPort = 5;Methods inherited from class org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class org.apache.hadoop.thirdparty.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.thirdparty.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface org.apache.hadoop.thirdparty.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<HAZKInfoProtos.ActiveNodeInfo.Builder>
-
clear
- Specified by:
clearin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Specified by:
clearin interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLite.Builder- Overrides:
clearin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<HAZKInfoProtos.ActiveNodeInfo.Builder>
-
getDescriptorForType
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfaceorg.apache.hadoop.thirdparty.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<HAZKInfoProtos.ActiveNodeInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.apache.hadoop.thirdparty.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Specified by:
buildin interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Specified by:
buildPartialin interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Specified by:
clonein interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLite.Builder- Overrides:
clonein classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<HAZKInfoProtos.ActiveNodeInfo.Builder>
-
setField
public HAZKInfoProtos.ActiveNodeInfo.Builder setField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
setFieldin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<HAZKInfoProtos.ActiveNodeInfo.Builder>
-
clearField
public HAZKInfoProtos.ActiveNodeInfo.Builder clearField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
clearFieldin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<HAZKInfoProtos.ActiveNodeInfo.Builder>
-
clearOneof
public HAZKInfoProtos.ActiveNodeInfo.Builder clearOneof(org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
clearOneofin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<HAZKInfoProtos.ActiveNodeInfo.Builder>
-
setRepeatedField
public HAZKInfoProtos.ActiveNodeInfo.Builder setRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<HAZKInfoProtos.ActiveNodeInfo.Builder>
-
addRepeatedField
public HAZKInfoProtos.ActiveNodeInfo.Builder addRepeatedField(org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<HAZKInfoProtos.ActiveNodeInfo.Builder>
-
mergeFrom
public HAZKInfoProtos.ActiveNodeInfo.Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) - Specified by:
mergeFromin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
mergeFromin classorg.apache.hadoop.thirdparty.protobuf.AbstractMessage.Builder<HAZKInfoProtos.ActiveNodeInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<HAZKInfoProtos.ActiveNodeInfo.Builder>
-
mergeFrom
public HAZKInfoProtos.ActiveNodeInfo.Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.CodedInputStream input, org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Specified by:
mergeFromin interfaceorg.apache.hadoop.thirdparty.protobuf.MessageLite.Builder- Overrides:
mergeFromin classorg.apache.hadoop.thirdparty.protobuf.AbstractMessage.Builder<HAZKInfoProtos.ActiveNodeInfo.Builder>- Throws:
IOException
-
hasNameserviceId
public boolean hasNameserviceId()required string nameserviceId = 1;- Specified by:
hasNameserviceIdin interfaceHAZKInfoProtos.ActiveNodeInfoOrBuilder- Returns:
- Whether the nameserviceId field is set.
-
getNameserviceId
required string nameserviceId = 1;- Specified by:
getNameserviceIdin interfaceHAZKInfoProtos.ActiveNodeInfoOrBuilder- Returns:
- The nameserviceId.
-
getNameserviceIdBytes
public org.apache.hadoop.thirdparty.protobuf.ByteString getNameserviceIdBytes()required string nameserviceId = 1;- Specified by:
getNameserviceIdBytesin interfaceHAZKInfoProtos.ActiveNodeInfoOrBuilder- Returns:
- The bytes for nameserviceId.
-
setNameserviceId
required string nameserviceId = 1;- Parameters:
value- The nameserviceId to set.- Returns:
- This builder for chaining.
-
clearNameserviceId
required string nameserviceId = 1;- Returns:
- This builder for chaining.
-
setNameserviceIdBytes
public HAZKInfoProtos.ActiveNodeInfo.Builder setNameserviceIdBytes(org.apache.hadoop.thirdparty.protobuf.ByteString value) required string nameserviceId = 1;- Parameters:
value- The bytes for nameserviceId to set.- Returns:
- This builder for chaining.
-
hasNamenodeId
public boolean hasNamenodeId()required string namenodeId = 2;- Specified by:
hasNamenodeIdin interfaceHAZKInfoProtos.ActiveNodeInfoOrBuilder- Returns:
- Whether the namenodeId field is set.
-
getNamenodeId
required string namenodeId = 2;- Specified by:
getNamenodeIdin interfaceHAZKInfoProtos.ActiveNodeInfoOrBuilder- Returns:
- The namenodeId.
-
getNamenodeIdBytes
public org.apache.hadoop.thirdparty.protobuf.ByteString getNamenodeIdBytes()required string namenodeId = 2;- Specified by:
getNamenodeIdBytesin interfaceHAZKInfoProtos.ActiveNodeInfoOrBuilder- Returns:
- The bytes for namenodeId.
-
setNamenodeId
required string namenodeId = 2;- Parameters:
value- The namenodeId to set.- Returns:
- This builder for chaining.
-
clearNamenodeId
required string namenodeId = 2;- Returns:
- This builder for chaining.
-
setNamenodeIdBytes
public HAZKInfoProtos.ActiveNodeInfo.Builder setNamenodeIdBytes(org.apache.hadoop.thirdparty.protobuf.ByteString value) required string namenodeId = 2;- Parameters:
value- The bytes for namenodeId to set.- Returns:
- This builder for chaining.
-
hasHostname
public boolean hasHostname()required string hostname = 3;- Specified by:
hasHostnamein interfaceHAZKInfoProtos.ActiveNodeInfoOrBuilder- Returns:
- Whether the hostname field is set.
-
getHostname
required string hostname = 3;- Specified by:
getHostnamein interfaceHAZKInfoProtos.ActiveNodeInfoOrBuilder- Returns:
- The hostname.
-
getHostnameBytes
public org.apache.hadoop.thirdparty.protobuf.ByteString getHostnameBytes()required string hostname = 3;- Specified by:
getHostnameBytesin interfaceHAZKInfoProtos.ActiveNodeInfoOrBuilder- Returns:
- The bytes for hostname.
-
setHostname
required string hostname = 3;- Parameters:
value- The hostname to set.- Returns:
- This builder for chaining.
-
clearHostname
required string hostname = 3;- Returns:
- This builder for chaining.
-
setHostnameBytes
public HAZKInfoProtos.ActiveNodeInfo.Builder setHostnameBytes(org.apache.hadoop.thirdparty.protobuf.ByteString value) required string hostname = 3;- Parameters:
value- The bytes for hostname to set.- Returns:
- This builder for chaining.
-
hasPort
public boolean hasPort()required int32 port = 4;- Specified by:
hasPortin interfaceHAZKInfoProtos.ActiveNodeInfoOrBuilder- Returns:
- Whether the port field is set.
-
getPort
public int getPort()required int32 port = 4;- Specified by:
getPortin interfaceHAZKInfoProtos.ActiveNodeInfoOrBuilder- Returns:
- The port.
-
setPort
required int32 port = 4;- Parameters:
value- The port to set.- Returns:
- This builder for chaining.
-
clearPort
required int32 port = 4;- Returns:
- This builder for chaining.
-
hasZkfcPort
public boolean hasZkfcPort()required int32 zkfcPort = 5;- Specified by:
hasZkfcPortin interfaceHAZKInfoProtos.ActiveNodeInfoOrBuilder- Returns:
- Whether the zkfcPort field is set.
-
getZkfcPort
public int getZkfcPort()required int32 zkfcPort = 5;- Specified by:
getZkfcPortin interfaceHAZKInfoProtos.ActiveNodeInfoOrBuilder- Returns:
- The zkfcPort.
-
setZkfcPort
required int32 zkfcPort = 5;- Parameters:
value- The zkfcPort to set.- Returns:
- This builder for chaining.
-
clearZkfcPort
required int32 zkfcPort = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final HAZKInfoProtos.ActiveNodeInfo.Builder setUnknownFields(org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<HAZKInfoProtos.ActiveNodeInfo.Builder>
-
mergeUnknownFields
public final HAZKInfoProtos.ActiveNodeInfo.Builder mergeUnknownFields(org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfaceorg.apache.hadoop.thirdparty.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classorg.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder<HAZKInfoProtos.ActiveNodeInfo.Builder>
-