Package org.yamcs.protobuf
Class ServiceInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ServiceInfo.Builder>
org.yamcs.protobuf.ServiceInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,ServiceInfoOrBuilder
- Enclosing class:
- ServiceInfo
public static final class ServiceInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ServiceInfo.Builder>
implements ServiceInfoOrBuilder
Protobuf type
yamcs.protobuf.services.ServiceInfo
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Java class nameStacktrace when `state` is FAILED.Short failure message when `state` is FAILED.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Yamcs instance nameService nameclearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Processor name (in case this is a processor service)Service stateclone()
Java class namecom.google.protobuf.ByteString
Java class namestatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Stacktrace when `state` is FAILED.com.google.protobuf.ByteString
Stacktrace when `state` is FAILED.Short failure message when `state` is FAILED.com.google.protobuf.ByteString
Short failure message when `state` is FAILED.Yamcs instance namecom.google.protobuf.ByteString
Yamcs instance namegetName()
Service namecom.google.protobuf.ByteString
Service nameProcessor name (in case this is a processor service)com.google.protobuf.ByteString
Processor name (in case this is a processor service)getState()
Service stateboolean
Java class nameboolean
Stacktrace when `state` is FAILED.boolean
Short failure message when `state` is FAILED.boolean
Yamcs instance nameboolean
hasName()
Service nameboolean
Processor name (in case this is a processor service)boolean
hasState()
Service stateprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(ServiceInfo other) final ServiceInfo.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setClassName
(String value) Java class namesetClassNameBytes
(com.google.protobuf.ByteString value) Java class namesetFailureCause
(String value) Stacktrace when `state` is FAILED.setFailureCauseBytes
(com.google.protobuf.ByteString value) Stacktrace when `state` is FAILED.setFailureMessage
(String value) Short failure message when `state` is FAILED.setFailureMessageBytes
(com.google.protobuf.ByteString value) Short failure message when `state` is FAILED.setInstance
(String value) Yamcs instance namesetInstanceBytes
(com.google.protobuf.ByteString value) Yamcs instance nameService namesetNameBytes
(com.google.protobuf.ByteString value) Service namesetProcessor
(String value) Processor name (in case this is a processor service)setProcessorBytes
(com.google.protobuf.ByteString value) Processor name (in case this is a processor service)setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setState
(ServiceState value) Service statefinal ServiceInfo.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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 Details
-
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<ServiceInfo.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<ServiceInfo.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<ServiceInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.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<ServiceInfo.Builder>
-
setField
public ServiceInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceInfo.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceInfo.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceInfo.Builder>
-
setRepeatedField
public ServiceInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceInfo.Builder>
-
addRepeatedField
public ServiceInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ServiceInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceInfo.Builder>
-
mergeFrom
public ServiceInfo.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<ServiceInfo.Builder>
- Throws:
IOException
-
hasInstance
public boolean hasInstance()Yamcs instance name
optional string instance = 1;
- Specified by:
hasInstance
in interfaceServiceInfoOrBuilder
- Returns:
- Whether the instance field is set.
-
getInstance
Yamcs instance name
optional string instance = 1;
- Specified by:
getInstance
in interfaceServiceInfoOrBuilder
- Returns:
- The instance.
-
getInstanceBytes
public com.google.protobuf.ByteString getInstanceBytes()Yamcs instance name
optional string instance = 1;
- Specified by:
getInstanceBytes
in interfaceServiceInfoOrBuilder
- Returns:
- The bytes for instance.
-
setInstance
Yamcs instance name
optional string instance = 1;
- Parameters:
value
- The instance to set.- Returns:
- This builder for chaining.
-
clearInstance
Yamcs instance name
optional string instance = 1;
- Returns:
- This builder for chaining.
-
setInstanceBytes
Yamcs instance name
optional string instance = 1;
- Parameters:
value
- The bytes for instance to set.- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()Service name
optional string name = 2;
- Specified by:
hasName
in interfaceServiceInfoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
Service name
optional string name = 2;
- Specified by:
getName
in interfaceServiceInfoOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Service name
optional string name = 2;
- Specified by:
getNameBytes
in interfaceServiceInfoOrBuilder
- Returns:
- The bytes for name.
-
setName
Service name
optional string name = 2;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
Service name
optional string name = 2;
- Returns:
- This builder for chaining.
-
setNameBytes
Service name
optional string name = 2;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasState
public boolean hasState()Service state
optional .yamcs.protobuf.services.ServiceState state = 3;
- Specified by:
hasState
in interfaceServiceInfoOrBuilder
- Returns:
- Whether the state field is set.
-
getState
Service state
optional .yamcs.protobuf.services.ServiceState state = 3;
- Specified by:
getState
in interfaceServiceInfoOrBuilder
- Returns:
- The state.
-
setState
Service state
optional .yamcs.protobuf.services.ServiceState state = 3;
- Parameters:
value
- The state to set.- Returns:
- This builder for chaining.
-
clearState
Service state
optional .yamcs.protobuf.services.ServiceState state = 3;
- Returns:
- This builder for chaining.
-
hasClassName
public boolean hasClassName()Java class name
optional string className = 4;
- Specified by:
hasClassName
in interfaceServiceInfoOrBuilder
- Returns:
- Whether the className field is set.
-
getClassName
Java class name
optional string className = 4;
- Specified by:
getClassName
in interfaceServiceInfoOrBuilder
- Returns:
- The className.
-
getClassNameBytes
public com.google.protobuf.ByteString getClassNameBytes()Java class name
optional string className = 4;
- Specified by:
getClassNameBytes
in interfaceServiceInfoOrBuilder
- Returns:
- The bytes for className.
-
setClassName
Java class name
optional string className = 4;
- Parameters:
value
- The className to set.- Returns:
- This builder for chaining.
-
clearClassName
Java class name
optional string className = 4;
- Returns:
- This builder for chaining.
-
setClassNameBytes
Java class name
optional string className = 4;
- Parameters:
value
- The bytes for className to set.- Returns:
- This builder for chaining.
-
hasProcessor
public boolean hasProcessor()Processor name (in case this is a processor service)
optional string processor = 5;
- Specified by:
hasProcessor
in interfaceServiceInfoOrBuilder
- Returns:
- Whether the processor field is set.
-
getProcessor
Processor name (in case this is a processor service)
optional string processor = 5;
- Specified by:
getProcessor
in interfaceServiceInfoOrBuilder
- Returns:
- The processor.
-
getProcessorBytes
public com.google.protobuf.ByteString getProcessorBytes()Processor name (in case this is a processor service)
optional string processor = 5;
- Specified by:
getProcessorBytes
in interfaceServiceInfoOrBuilder
- Returns:
- The bytes for processor.
-
setProcessor
Processor name (in case this is a processor service)
optional string processor = 5;
- Parameters:
value
- The processor to set.- Returns:
- This builder for chaining.
-
clearProcessor
Processor name (in case this is a processor service)
optional string processor = 5;
- Returns:
- This builder for chaining.
-
setProcessorBytes
Processor name (in case this is a processor service)
optional string processor = 5;
- Parameters:
value
- The bytes for processor to set.- Returns:
- This builder for chaining.
-
hasFailureMessage
public boolean hasFailureMessage()Short failure message when `state` is FAILED.
optional string failureMessage = 6;
- Specified by:
hasFailureMessage
in interfaceServiceInfoOrBuilder
- Returns:
- Whether the failureMessage field is set.
-
getFailureMessage
Short failure message when `state` is FAILED.
optional string failureMessage = 6;
- Specified by:
getFailureMessage
in interfaceServiceInfoOrBuilder
- Returns:
- The failureMessage.
-
getFailureMessageBytes
public com.google.protobuf.ByteString getFailureMessageBytes()Short failure message when `state` is FAILED.
optional string failureMessage = 6;
- Specified by:
getFailureMessageBytes
in interfaceServiceInfoOrBuilder
- Returns:
- The bytes for failureMessage.
-
setFailureMessage
Short failure message when `state` is FAILED.
optional string failureMessage = 6;
- Parameters:
value
- The failureMessage to set.- Returns:
- This builder for chaining.
-
clearFailureMessage
Short failure message when `state` is FAILED.
optional string failureMessage = 6;
- Returns:
- This builder for chaining.
-
setFailureMessageBytes
Short failure message when `state` is FAILED.
optional string failureMessage = 6;
- Parameters:
value
- The bytes for failureMessage to set.- Returns:
- This builder for chaining.
-
hasFailureCause
public boolean hasFailureCause()Stacktrace when `state` is FAILED.
optional string failureCause = 7;
- Specified by:
hasFailureCause
in interfaceServiceInfoOrBuilder
- Returns:
- Whether the failureCause field is set.
-
getFailureCause
Stacktrace when `state` is FAILED.
optional string failureCause = 7;
- Specified by:
getFailureCause
in interfaceServiceInfoOrBuilder
- Returns:
- The failureCause.
-
getFailureCauseBytes
public com.google.protobuf.ByteString getFailureCauseBytes()Stacktrace when `state` is FAILED.
optional string failureCause = 7;
- Specified by:
getFailureCauseBytes
in interfaceServiceInfoOrBuilder
- Returns:
- The bytes for failureCause.
-
setFailureCause
Stacktrace when `state` is FAILED.
optional string failureCause = 7;
- Parameters:
value
- The failureCause to set.- Returns:
- This builder for chaining.
-
clearFailureCause
Stacktrace when `state` is FAILED.
optional string failureCause = 7;
- Returns:
- This builder for chaining.
-
setFailureCauseBytes
Stacktrace when `state` is FAILED.
optional string failureCause = 7;
- Parameters:
value
- The bytes for failureCause to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ServiceInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceInfo.Builder>
-
mergeUnknownFields
public final ServiceInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceInfo.Builder>
-