Package org.apache.bookkeeper.proto
Class BookkeeperProtocol.GetBookieInfoResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.GetBookieInfoResponse.Builder>
-
- org.apache.bookkeeper.proto.BookkeeperProtocol.GetBookieInfoResponse.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
,BookkeeperProtocol.GetBookieInfoResponseOrBuilder
- Enclosing class:
- BookkeeperProtocol.GetBookieInfoResponse
public static final class BookkeeperProtocol.GetBookieInfoResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.GetBookieInfoResponse.Builder> implements BookkeeperProtocol.GetBookieInfoResponseOrBuilder
Protobuf typeGetBookieInfoResponse
-
-
Method Summary
-
Methods inherited from class com.google.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, 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<BookkeeperProtocol.GetBookieInfoResponse.Builder>
-
clear
public BookkeeperProtocol.GetBookieInfoResponse.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<BookkeeperProtocol.GetBookieInfoResponse.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<BookkeeperProtocol.GetBookieInfoResponse.Builder>
-
getDefaultInstanceForType
public BookkeeperProtocol.GetBookieInfoResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BookkeeperProtocol.GetBookieInfoResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BookkeeperProtocol.GetBookieInfoResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BookkeeperProtocol.GetBookieInfoResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.GetBookieInfoResponse.Builder>
-
setField
public BookkeeperProtocol.GetBookieInfoResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.GetBookieInfoResponse.Builder>
-
clearField
public BookkeeperProtocol.GetBookieInfoResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.GetBookieInfoResponse.Builder>
-
clearOneof
public BookkeeperProtocol.GetBookieInfoResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.GetBookieInfoResponse.Builder>
-
setRepeatedField
public BookkeeperProtocol.GetBookieInfoResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.GetBookieInfoResponse.Builder>
-
addRepeatedField
public BookkeeperProtocol.GetBookieInfoResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.GetBookieInfoResponse.Builder>
-
mergeFrom
public BookkeeperProtocol.GetBookieInfoResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BookkeeperProtocol.GetBookieInfoResponse.Builder>
-
mergeFrom
public BookkeeperProtocol.GetBookieInfoResponse.Builder mergeFrom(BookkeeperProtocol.GetBookieInfoResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.GetBookieInfoResponse.Builder>
-
mergeFrom
public BookkeeperProtocol.GetBookieInfoResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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<BookkeeperProtocol.GetBookieInfoResponse.Builder>
- Throws:
java.io.IOException
-
hasStatus
public boolean hasStatus()
required .StatusCode status = 1;
- Specified by:
hasStatus
in interfaceBookkeeperProtocol.GetBookieInfoResponseOrBuilder
- Returns:
- Whether the status field is set.
-
getStatus
public BookkeeperProtocol.StatusCode getStatus()
required .StatusCode status = 1;
- Specified by:
getStatus
in interfaceBookkeeperProtocol.GetBookieInfoResponseOrBuilder
- Returns:
- The status.
-
setStatus
public BookkeeperProtocol.GetBookieInfoResponse.Builder setStatus(BookkeeperProtocol.StatusCode value)
required .StatusCode status = 1;
- Parameters:
value
- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public BookkeeperProtocol.GetBookieInfoResponse.Builder clearStatus()
required .StatusCode status = 1;
- Returns:
- This builder for chaining.
-
hasTotalDiskCapacity
public boolean hasTotalDiskCapacity()
optional int64 totalDiskCapacity = 2;
- Specified by:
hasTotalDiskCapacity
in interfaceBookkeeperProtocol.GetBookieInfoResponseOrBuilder
- Returns:
- Whether the totalDiskCapacity field is set.
-
getTotalDiskCapacity
public long getTotalDiskCapacity()
optional int64 totalDiskCapacity = 2;
- Specified by:
getTotalDiskCapacity
in interfaceBookkeeperProtocol.GetBookieInfoResponseOrBuilder
- Returns:
- The totalDiskCapacity.
-
setTotalDiskCapacity
public BookkeeperProtocol.GetBookieInfoResponse.Builder setTotalDiskCapacity(long value)
optional int64 totalDiskCapacity = 2;
- Parameters:
value
- The totalDiskCapacity to set.- Returns:
- This builder for chaining.
-
clearTotalDiskCapacity
public BookkeeperProtocol.GetBookieInfoResponse.Builder clearTotalDiskCapacity()
optional int64 totalDiskCapacity = 2;
- Returns:
- This builder for chaining.
-
hasFreeDiskSpace
public boolean hasFreeDiskSpace()
optional int64 freeDiskSpace = 3;
- Specified by:
hasFreeDiskSpace
in interfaceBookkeeperProtocol.GetBookieInfoResponseOrBuilder
- Returns:
- Whether the freeDiskSpace field is set.
-
getFreeDiskSpace
public long getFreeDiskSpace()
optional int64 freeDiskSpace = 3;
- Specified by:
getFreeDiskSpace
in interfaceBookkeeperProtocol.GetBookieInfoResponseOrBuilder
- Returns:
- The freeDiskSpace.
-
setFreeDiskSpace
public BookkeeperProtocol.GetBookieInfoResponse.Builder setFreeDiskSpace(long value)
optional int64 freeDiskSpace = 3;
- Parameters:
value
- The freeDiskSpace to set.- Returns:
- This builder for chaining.
-
clearFreeDiskSpace
public BookkeeperProtocol.GetBookieInfoResponse.Builder clearFreeDiskSpace()
optional int64 freeDiskSpace = 3;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final BookkeeperProtocol.GetBookieInfoResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.GetBookieInfoResponse.Builder>
-
mergeUnknownFields
public final BookkeeperProtocol.GetBookieInfoResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.GetBookieInfoResponse.Builder>
-
-