org.apache.hadoop.ha.proto
Class HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder

java.lang.Object
  extended by com.google.protobuf.AbstractMessageLite.Builder<BuilderType>
      extended by com.google.protobuf.AbstractMessage.Builder<BuilderType>
          extended by com.google.protobuf.GeneratedMessage.Builder<HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder>
              extended by org.apache.hadoop.ha.proto.HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, HAServiceProtocolProtos.GetServiceStatusResponseProtoOrBuilder
Enclosing class:
HAServiceProtocolProtos.GetServiceStatusResponseProto

public static final class HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder>
implements HAServiceProtocolProtos.GetServiceStatusResponseProtoOrBuilder

Protobuf type hadoop.common.GetServiceStatusResponseProto


 Returns the state of the service
 


Method Summary
 HAServiceProtocolProtos.GetServiceStatusResponseProto build()
           
 HAServiceProtocolProtos.GetServiceStatusResponseProto buildPartial()
           
 HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder clear()
           
 HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder clearNotReadyReason()
          optional string notReadyReason = 3;
 HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder clearReadyToBecomeActive()
          optional bool readyToBecomeActive = 2;
 HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder clearState()
          required .hadoop.common.HAServiceStateProto state = 1;
 HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder clone()
           
 HAServiceProtocolProtos.GetServiceStatusResponseProto getDefaultInstanceForType()
           
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
           
 String getNotReadyReason()
          optional string notReadyReason = 3;
 com.google.protobuf.ByteString getNotReadyReasonBytes()
          optional string notReadyReason = 3;
 boolean getReadyToBecomeActive()
          optional bool readyToBecomeActive = 2;
 HAServiceProtocolProtos.HAServiceStateProto getState()
          required .hadoop.common.HAServiceStateProto state = 1;
 boolean hasNotReadyReason()
          optional string notReadyReason = 3;
 boolean hasReadyToBecomeActive()
          optional bool readyToBecomeActive = 2;
 boolean hasState()
          required .hadoop.common.HAServiceStateProto state = 1;
protected  com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
           
 boolean isInitialized()
           
 HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder mergeFrom(HAServiceProtocolProtos.GetServiceStatusResponseProto other)
           
 HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder mergeFrom(com.google.protobuf.Message other)
           
 HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder setNotReadyReason(String value)
          optional string notReadyReason = 3;
 HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder setNotReadyReasonBytes(com.google.protobuf.ByteString value)
          optional string notReadyReason = 3;
 HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder setReadyToBecomeActive(boolean value)
          optional bool readyToBecomeActive = 2;
 HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder setState(HAServiceProtocolProtos.HAServiceStateProto value)
          required .hadoop.common.HAServiceStateProto state = 1;
 
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
 
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
 
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, newUninitializedMessageException
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField
 

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<HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder>

clear

public HAServiceProtocolProtos.GetServiceStatusResponseProto.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<HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder>

clone

public HAServiceProtocolProtos.GetServiceStatusResponseProto.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.GeneratedMessage.Builder<HAServiceProtocolProtos.GetServiceStatusResponseProto.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<HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder>

getDefaultInstanceForType

public HAServiceProtocolProtos.GetServiceStatusResponseProto getDefaultInstanceForType()
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder

build

public HAServiceProtocolProtos.GetServiceStatusResponseProto build()
Specified by:
build in interface com.google.protobuf.Message.Builder
Specified by:
build in interface com.google.protobuf.MessageLite.Builder

buildPartial

public HAServiceProtocolProtos.GetServiceStatusResponseProto buildPartial()
Specified by:
buildPartial in interface com.google.protobuf.Message.Builder
Specified by:
buildPartial in interface com.google.protobuf.MessageLite.Builder

mergeFrom

public HAServiceProtocolProtos.GetServiceStatusResponseProto.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<HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder>

mergeFrom

public HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder mergeFrom(HAServiceProtocolProtos.GetServiceStatusResponseProto other)

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage.Builder<HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder>

mergeFrom

public HAServiceProtocolProtos.GetServiceStatusResponseProto.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<HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder>
Throws:
IOException

hasState

public boolean hasState()
required .hadoop.common.HAServiceStateProto state = 1;

Specified by:
hasState in interface HAServiceProtocolProtos.GetServiceStatusResponseProtoOrBuilder

getState

public HAServiceProtocolProtos.HAServiceStateProto getState()
required .hadoop.common.HAServiceStateProto state = 1;

Specified by:
getState in interface HAServiceProtocolProtos.GetServiceStatusResponseProtoOrBuilder

setState

public HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder setState(HAServiceProtocolProtos.HAServiceStateProto value)
required .hadoop.common.HAServiceStateProto state = 1;


clearState

public HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder clearState()
required .hadoop.common.HAServiceStateProto state = 1;


hasReadyToBecomeActive

public boolean hasReadyToBecomeActive()
optional bool readyToBecomeActive = 2;
 If state is STANDBY, indicate whether it is
 ready to become active.
 

Specified by:
hasReadyToBecomeActive in interface HAServiceProtocolProtos.GetServiceStatusResponseProtoOrBuilder

getReadyToBecomeActive

public boolean getReadyToBecomeActive()
optional bool readyToBecomeActive = 2;
 If state is STANDBY, indicate whether it is
 ready to become active.
 

Specified by:
getReadyToBecomeActive in interface HAServiceProtocolProtos.GetServiceStatusResponseProtoOrBuilder

setReadyToBecomeActive

public HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder setReadyToBecomeActive(boolean value)
optional bool readyToBecomeActive = 2;
 If state is STANDBY, indicate whether it is
 ready to become active.
 


clearReadyToBecomeActive

public HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder clearReadyToBecomeActive()
optional bool readyToBecomeActive = 2;
 If state is STANDBY, indicate whether it is
 ready to become active.
 


hasNotReadyReason

public boolean hasNotReadyReason()
optional string notReadyReason = 3;
 If not ready to become active, a textual explanation of why not
 

Specified by:
hasNotReadyReason in interface HAServiceProtocolProtos.GetServiceStatusResponseProtoOrBuilder

getNotReadyReason

public String getNotReadyReason()
optional string notReadyReason = 3;
 If not ready to become active, a textual explanation of why not
 

Specified by:
getNotReadyReason in interface HAServiceProtocolProtos.GetServiceStatusResponseProtoOrBuilder

getNotReadyReasonBytes

public com.google.protobuf.ByteString getNotReadyReasonBytes()
optional string notReadyReason = 3;
 If not ready to become active, a textual explanation of why not
 

Specified by:
getNotReadyReasonBytes in interface HAServiceProtocolProtos.GetServiceStatusResponseProtoOrBuilder

setNotReadyReason

public HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder setNotReadyReason(String value)
optional string notReadyReason = 3;
 If not ready to become active, a textual explanation of why not
 


clearNotReadyReason

public HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder clearNotReadyReason()
optional string notReadyReason = 3;
 If not ready to become active, a textual explanation of why not
 


setNotReadyReasonBytes

public HAServiceProtocolProtos.GetServiceStatusResponseProto.Builder setNotReadyReasonBytes(com.google.protobuf.ByteString value)
optional string notReadyReason = 3;
 If not ready to become active, a textual explanation of why not
 



Copyright © 2014 Apache Software Foundation. All Rights Reserved.