Package org.yamcs.api
Class ExceptionMessage.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ExceptionMessage.Builder>
org.yamcs.api.ExceptionMessage.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,ExceptionMessageOrBuilder
- Enclosing class:
- ExceptionMessage
public static final class ExceptionMessage.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ExceptionMessage.Builder>
implements ExceptionMessageOrBuilder
Generic holder for an exceptionProtobuf type
yamcs.api.ExceptionMessage
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
int32 code = 1;
.google.protobuf.Any detail = 4;
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearMsg()
string msg = 3;
clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) string type = 2;
clone()
int
getCode()
int32 code = 1;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Any
.google.protobuf.Any detail = 4;
com.google.protobuf.Any.Builder
.google.protobuf.Any detail = 4;
com.google.protobuf.AnyOrBuilder
.google.protobuf.Any detail = 4;
getMsg()
string msg = 3;
com.google.protobuf.ByteString
string msg = 3;
getType()
string type = 2;
com.google.protobuf.ByteString
string type = 2;
boolean
.google.protobuf.Any detail = 4;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeDetail
(com.google.protobuf.Any value) .google.protobuf.Any detail = 4;
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(ExceptionMessage other) final ExceptionMessage.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setCode
(int value) int32 code = 1;
setDetail
(com.google.protobuf.Any value) .google.protobuf.Any detail = 4;
setDetail
(com.google.protobuf.Any.Builder builderForValue) .google.protobuf.Any detail = 4;
string msg = 3;
setMsgBytes
(com.google.protobuf.ByteString value) string msg = 3;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) string type = 2;
setTypeBytes
(com.google.protobuf.ByteString value) string type = 2;
final ExceptionMessage.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<ExceptionMessage.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<ExceptionMessage.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<ExceptionMessage.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<ExceptionMessage.Builder>
-
setField
public ExceptionMessage.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<ExceptionMessage.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExceptionMessage.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExceptionMessage.Builder>
-
setRepeatedField
public ExceptionMessage.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<ExceptionMessage.Builder>
-
addRepeatedField
public ExceptionMessage.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<ExceptionMessage.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ExceptionMessage.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExceptionMessage.Builder>
-
mergeFrom
public ExceptionMessage.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<ExceptionMessage.Builder>
- Throws:
IOException
-
getCode
public int getCode()int32 code = 1;
- Specified by:
getCode
in interfaceExceptionMessageOrBuilder
- Returns:
- The code.
-
setCode
int32 code = 1;
- Parameters:
value
- The code to set.- Returns:
- This builder for chaining.
-
clearCode
int32 code = 1;
- Returns:
- This builder for chaining.
-
getType
string type = 2;
- Specified by:
getType
in interfaceExceptionMessageOrBuilder
- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()string type = 2;
- Specified by:
getTypeBytes
in interfaceExceptionMessageOrBuilder
- Returns:
- The bytes for type.
-
setType
string type = 2;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
string type = 2;
- Returns:
- This builder for chaining.
-
setTypeBytes
string type = 2;
- Parameters:
value
- The bytes for type to set.- Returns:
- This builder for chaining.
-
getMsg
string msg = 3;
- Specified by:
getMsg
in interfaceExceptionMessageOrBuilder
- Returns:
- The msg.
-
getMsgBytes
public com.google.protobuf.ByteString getMsgBytes()string msg = 3;
- Specified by:
getMsgBytes
in interfaceExceptionMessageOrBuilder
- Returns:
- The bytes for msg.
-
setMsg
string msg = 3;
- Parameters:
value
- The msg to set.- Returns:
- This builder for chaining.
-
clearMsg
string msg = 3;
- Returns:
- This builder for chaining.
-
setMsgBytes
string msg = 3;
- Parameters:
value
- The bytes for msg to set.- Returns:
- This builder for chaining.
-
hasDetail
public boolean hasDetail().google.protobuf.Any detail = 4;
- Specified by:
hasDetail
in interfaceExceptionMessageOrBuilder
- Returns:
- Whether the detail field is set.
-
getDetail
public com.google.protobuf.Any getDetail().google.protobuf.Any detail = 4;
- Specified by:
getDetail
in interfaceExceptionMessageOrBuilder
- Returns:
- The detail.
-
setDetail
.google.protobuf.Any detail = 4;
-
setDetail
.google.protobuf.Any detail = 4;
-
mergeDetail
.google.protobuf.Any detail = 4;
-
clearDetail
.google.protobuf.Any detail = 4;
-
getDetailBuilder
public com.google.protobuf.Any.Builder getDetailBuilder().google.protobuf.Any detail = 4;
-
getDetailOrBuilder
public com.google.protobuf.AnyOrBuilder getDetailOrBuilder().google.protobuf.Any detail = 4;
- Specified by:
getDetailOrBuilder
in interfaceExceptionMessageOrBuilder
-
setUnknownFields
public final ExceptionMessage.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExceptionMessage.Builder>
-
mergeUnknownFields
public final ExceptionMessage.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExceptionMessage.Builder>
-