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 exception
 
Protobuf type yamcs.api.ExceptionMessage
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ExceptionMessage.Builder>
    • clear

      public ExceptionMessage.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.GeneratedMessageV3.Builder<ExceptionMessage.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.GeneratedMessageV3.Builder<ExceptionMessage.Builder>
    • getDefaultInstanceForType

      public ExceptionMessage getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ExceptionMessage build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ExceptionMessage buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public ExceptionMessage.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.GeneratedMessageV3.Builder<ExceptionMessage.Builder>
    • setField

      public ExceptionMessage.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ExceptionMessage.Builder>
    • clearField

      public ExceptionMessage.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExceptionMessage.Builder>
    • clearOneof

      public ExceptionMessage.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExceptionMessage.Builder>
    • addRepeatedField

      public ExceptionMessage.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExceptionMessage.Builder>
    • mergeFrom

      public ExceptionMessage.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<ExceptionMessage.Builder>
    • mergeFrom

      public ExceptionMessage.Builder mergeFrom(ExceptionMessage other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 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<ExceptionMessage.Builder>
      Throws:
      IOException
    • getCode

      public int getCode()
      int32 code = 1;
      Specified by:
      getCode in interface ExceptionMessageOrBuilder
      Returns:
      The code.
    • setCode

      public ExceptionMessage.Builder setCode(int value)
      int32 code = 1;
      Parameters:
      value - The code to set.
      Returns:
      This builder for chaining.
    • clearCode

      public ExceptionMessage.Builder clearCode()
      int32 code = 1;
      Returns:
      This builder for chaining.
    • getType

      public String getType()
      string type = 2;
      Specified by:
      getType in interface ExceptionMessageOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
      string type = 2;
      Specified by:
      getTypeBytes in interface ExceptionMessageOrBuilder
      Returns:
      The bytes for type.
    • setType

      public ExceptionMessage.Builder setType(String value)
      string type = 2;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public ExceptionMessage.Builder clearType()
      string type = 2;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public ExceptionMessage.Builder setTypeBytes(com.google.protobuf.ByteString value)
      string type = 2;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getMsg

      public String getMsg()
      string msg = 3;
      Specified by:
      getMsg in interface ExceptionMessageOrBuilder
      Returns:
      The msg.
    • getMsgBytes

      public com.google.protobuf.ByteString getMsgBytes()
      string msg = 3;
      Specified by:
      getMsgBytes in interface ExceptionMessageOrBuilder
      Returns:
      The bytes for msg.
    • setMsg

      public ExceptionMessage.Builder setMsg(String value)
      string msg = 3;
      Parameters:
      value - The msg to set.
      Returns:
      This builder for chaining.
    • clearMsg

      public ExceptionMessage.Builder clearMsg()
      string msg = 3;
      Returns:
      This builder for chaining.
    • setMsgBytes

      public ExceptionMessage.Builder setMsgBytes(com.google.protobuf.ByteString value)
      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 interface ExceptionMessageOrBuilder
      Returns:
      Whether the detail field is set.
    • getDetail

      public com.google.protobuf.Any getDetail()
      .google.protobuf.Any detail = 4;
      Specified by:
      getDetail in interface ExceptionMessageOrBuilder
      Returns:
      The detail.
    • setDetail

      public ExceptionMessage.Builder setDetail(com.google.protobuf.Any value)
      .google.protobuf.Any detail = 4;
    • setDetail

      public ExceptionMessage.Builder setDetail(com.google.protobuf.Any.Builder builderForValue)
      .google.protobuf.Any detail = 4;
    • mergeDetail

      public ExceptionMessage.Builder mergeDetail(com.google.protobuf.Any value)
      .google.protobuf.Any detail = 4;
    • clearDetail

      public ExceptionMessage.Builder 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 interface ExceptionMessageOrBuilder
    • setUnknownFields

      public final ExceptionMessage.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExceptionMessage.Builder>
    • mergeUnknownFields

      public final ExceptionMessage.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExceptionMessage.Builder>