Class MonitorDProto.LogMessage.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.LogMessage.Builder>
de.serosystems.proto.v3.grx.monitord.MonitorDProto.LogMessage.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MonitorDProto.LogMessageOrBuilder, Cloneable
Enclosing class:
MonitorDProto.LogMessage

public static final class MonitorDProto.LogMessage.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.LogMessage.Builder> implements MonitorDProto.LogMessageOrBuilder

 Representation of of a single log message.
 See also SYSTEMD.JOURNAL-FIELDS(7) for details.
 
Protobuf type serosystems.proto.v3.grx.monitord.LogMessage
  • 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<MonitorDProto.LogMessage.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<MonitorDProto.LogMessage.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<MonitorDProto.LogMessage.Builder>
    • getDefaultInstanceForType

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

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

      public MonitorDProto.LogMessage buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<MonitorDProto.LogMessage.Builder>
    • setField

      public MonitorDProto.LogMessage.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<MonitorDProto.LogMessage.Builder>
    • clearField

      public MonitorDProto.LogMessage.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<MonitorDProto.LogMessage.Builder>
    • clearOneof

      public MonitorDProto.LogMessage.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<MonitorDProto.LogMessage.Builder>
    • setRepeatedField

      public MonitorDProto.LogMessage.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<MonitorDProto.LogMessage.Builder>
    • addRepeatedField

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

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.LogMessage.Builder>
    • mergeFrom

      public MonitorDProto.LogMessage.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<MonitorDProto.LogMessage.Builder>
      Throws:
      IOException
    • getMessage

      public String getMessage()
       Log message. 
       
      string message = 1;
      Specified by:
      getMessage in interface MonitorDProto.LogMessageOrBuilder
      Returns:
      The message.
    • getMessageBytes

      public com.google.protobuf.ByteString getMessageBytes()
       Log message. 
       
      string message = 1;
      Specified by:
      getMessageBytes in interface MonitorDProto.LogMessageOrBuilder
      Returns:
      The bytes for message.
    • setMessage

      public MonitorDProto.LogMessage.Builder setMessage(String value)
       Log message. 
       
      string message = 1;
      Parameters:
      value - The message to set.
      Returns:
      This builder for chaining.
    • clearMessage

      public MonitorDProto.LogMessage.Builder clearMessage()
       Log message. 
       
      string message = 1;
      Returns:
      This builder for chaining.
    • setMessageBytes

      public MonitorDProto.LogMessage.Builder setMessageBytes(com.google.protobuf.ByteString value)
       Log message. 
       
      string message = 1;
      Parameters:
      value - The bytes for message to set.
      Returns:
      This builder for chaining.
    • getPriority

      public int getPriority()
       Value between 0 (emergency) and 7 (debug). 
       
      uint32 priority = 2;
      Specified by:
      getPriority in interface MonitorDProto.LogMessageOrBuilder
      Returns:
      The priority.
    • setPriority

      public MonitorDProto.LogMessage.Builder setPriority(int value)
       Value between 0 (emergency) and 7 (debug). 
       
      uint32 priority = 2;
      Parameters:
      value - The priority to set.
      Returns:
      This builder for chaining.
    • clearPriority

      public MonitorDProto.LogMessage.Builder clearPriority()
       Value between 0 (emergency) and 7 (debug). 
       
      uint32 priority = 2;
      Returns:
      This builder for chaining.
    • getCodeFile

      public String getCodeFile()
       File of the code where the messages originates (if known). 
       
      string code_file = 3;
      Specified by:
      getCodeFile in interface MonitorDProto.LogMessageOrBuilder
      Returns:
      The codeFile.
    • getCodeFileBytes

      public com.google.protobuf.ByteString getCodeFileBytes()
       File of the code where the messages originates (if known). 
       
      string code_file = 3;
      Specified by:
      getCodeFileBytes in interface MonitorDProto.LogMessageOrBuilder
      Returns:
      The bytes for codeFile.
    • setCodeFile

      public MonitorDProto.LogMessage.Builder setCodeFile(String value)
       File of the code where the messages originates (if known). 
       
      string code_file = 3;
      Parameters:
      value - The codeFile to set.
      Returns:
      This builder for chaining.
    • clearCodeFile

      public MonitorDProto.LogMessage.Builder clearCodeFile()
       File of the code where the messages originates (if known). 
       
      string code_file = 3;
      Returns:
      This builder for chaining.
    • setCodeFileBytes

      public MonitorDProto.LogMessage.Builder setCodeFileBytes(com.google.protobuf.ByteString value)
       File of the code where the messages originates (if known). 
       
      string code_file = 3;
      Parameters:
      value - The bytes for codeFile to set.
      Returns:
      This builder for chaining.
    • getCodeLine

      public String getCodeLine()
       Line of the code where the messages originates (if known). 
       
      string code_line = 4;
      Specified by:
      getCodeLine in interface MonitorDProto.LogMessageOrBuilder
      Returns:
      The codeLine.
    • getCodeLineBytes

      public com.google.protobuf.ByteString getCodeLineBytes()
       Line of the code where the messages originates (if known). 
       
      string code_line = 4;
      Specified by:
      getCodeLineBytes in interface MonitorDProto.LogMessageOrBuilder
      Returns:
      The bytes for codeLine.
    • setCodeLine

      public MonitorDProto.LogMessage.Builder setCodeLine(String value)
       Line of the code where the messages originates (if known). 
       
      string code_line = 4;
      Parameters:
      value - The codeLine to set.
      Returns:
      This builder for chaining.
    • clearCodeLine

      public MonitorDProto.LogMessage.Builder clearCodeLine()
       Line of the code where the messages originates (if known). 
       
      string code_line = 4;
      Returns:
      This builder for chaining.
    • setCodeLineBytes

      public MonitorDProto.LogMessage.Builder setCodeLineBytes(com.google.protobuf.ByteString value)
       Line of the code where the messages originates (if known). 
       
      string code_line = 4;
      Parameters:
      value - The bytes for codeLine to set.
      Returns:
      This builder for chaining.
    • getCodeFunc

      public String getCodeFunc()
       Function of the code where the messages originates (if known). 
       
      string code_func = 5;
      Specified by:
      getCodeFunc in interface MonitorDProto.LogMessageOrBuilder
      Returns:
      The codeFunc.
    • getCodeFuncBytes

      public com.google.protobuf.ByteString getCodeFuncBytes()
       Function of the code where the messages originates (if known). 
       
      string code_func = 5;
      Specified by:
      getCodeFuncBytes in interface MonitorDProto.LogMessageOrBuilder
      Returns:
      The bytes for codeFunc.
    • setCodeFunc

      public MonitorDProto.LogMessage.Builder setCodeFunc(String value)
       Function of the code where the messages originates (if known). 
       
      string code_func = 5;
      Parameters:
      value - The codeFunc to set.
      Returns:
      This builder for chaining.
    • clearCodeFunc

      public MonitorDProto.LogMessage.Builder clearCodeFunc()
       Function of the code where the messages originates (if known). 
       
      string code_func = 5;
      Returns:
      This builder for chaining.
    • setCodeFuncBytes

      public MonitorDProto.LogMessage.Builder setCodeFuncBytes(com.google.protobuf.ByteString value)
       Function of the code where the messages originates (if known). 
       
      string code_func = 5;
      Parameters:
      value - The bytes for codeFunc to set.
      Returns:
      This builder for chaining.
    • getCausingErrno

      public int getCausingErrno()
       Value of errno (if available). 
       
      uint32 causing_errno = 6;
      Specified by:
      getCausingErrno in interface MonitorDProto.LogMessageOrBuilder
      Returns:
      The causingErrno.
    • setCausingErrno

      public MonitorDProto.LogMessage.Builder setCausingErrno(int value)
       Value of errno (if available). 
       
      uint32 causing_errno = 6;
      Parameters:
      value - The causingErrno to set.
      Returns:
      This builder for chaining.
    • clearCausingErrno

      public MonitorDProto.LogMessage.Builder clearCausingErrno()
       Value of errno (if available). 
       
      uint32 causing_errno = 6;
      Returns:
      This builder for chaining.
    • getSyslogFacility

      public int getSyslogFacility()
       Syslog facility, see RFC 3164. 
       
      uint32 syslog_facility = 7;
      Specified by:
      getSyslogFacility in interface MonitorDProto.LogMessageOrBuilder
      Returns:
      The syslogFacility.
    • setSyslogFacility

      public MonitorDProto.LogMessage.Builder setSyslogFacility(int value)
       Syslog facility, see RFC 3164. 
       
      uint32 syslog_facility = 7;
      Parameters:
      value - The syslogFacility to set.
      Returns:
      This builder for chaining.
    • clearSyslogFacility

      public MonitorDProto.LogMessage.Builder clearSyslogFacility()
       Syslog facility, see RFC 3164. 
       
      uint32 syslog_facility = 7;
      Returns:
      This builder for chaining.
    • getSyslogIdentifier

      public String getSyslogIdentifier()
      
       Systemd SyslogIdentifier, defaulting to process name.
       See also systemd.exec(5).
       
      string syslog_identifier = 8;
      Specified by:
      getSyslogIdentifier in interface MonitorDProto.LogMessageOrBuilder
      Returns:
      The syslogIdentifier.
    • getSyslogIdentifierBytes

      public com.google.protobuf.ByteString getSyslogIdentifierBytes()
      
       Systemd SyslogIdentifier, defaulting to process name.
       See also systemd.exec(5).
       
      string syslog_identifier = 8;
      Specified by:
      getSyslogIdentifierBytes in interface MonitorDProto.LogMessageOrBuilder
      Returns:
      The bytes for syslogIdentifier.
    • setSyslogIdentifier

      public MonitorDProto.LogMessage.Builder setSyslogIdentifier(String value)
      
       Systemd SyslogIdentifier, defaulting to process name.
       See also systemd.exec(5).
       
      string syslog_identifier = 8;
      Parameters:
      value - The syslogIdentifier to set.
      Returns:
      This builder for chaining.
    • clearSyslogIdentifier

      public MonitorDProto.LogMessage.Builder clearSyslogIdentifier()
      
       Systemd SyslogIdentifier, defaulting to process name.
       See also systemd.exec(5).
       
      string syslog_identifier = 8;
      Returns:
      This builder for chaining.
    • setSyslogIdentifierBytes

      public MonitorDProto.LogMessage.Builder setSyslogIdentifierBytes(com.google.protobuf.ByteString value)
      
       Systemd SyslogIdentifier, defaulting to process name.
       See also systemd.exec(5).
       
      string syslog_identifier = 8;
      Parameters:
      value - The bytes for syslogIdentifier to set.
      Returns:
      This builder for chaining.
    • getSyslogPid

      public int getSyslogPid()
       Syslog PID. 
       
      uint32 syslog_pid = 9;
      Specified by:
      getSyslogPid in interface MonitorDProto.LogMessageOrBuilder
      Returns:
      The syslogPid.
    • setSyslogPid

      public MonitorDProto.LogMessage.Builder setSyslogPid(int value)
       Syslog PID. 
       
      uint32 syslog_pid = 9;
      Parameters:
      value - The syslogPid to set.
      Returns:
      This builder for chaining.
    • clearSyslogPid

      public MonitorDProto.LogMessage.Builder clearSyslogPid()
       Syslog PID. 
       
      uint32 syslog_pid = 9;
      Returns:
      This builder for chaining.
    • getRealtimeTimestamp

      public long getRealtimeTimestamp()
       Time [ms since epoch UTC] this entry was received in the journal. 
       
      uint64 realtime_timestamp = 10;
      Specified by:
      getRealtimeTimestamp in interface MonitorDProto.LogMessageOrBuilder
      Returns:
      The realtimeTimestamp.
    • setRealtimeTimestamp

      public MonitorDProto.LogMessage.Builder setRealtimeTimestamp(long value)
       Time [ms since epoch UTC] this entry was received in the journal. 
       
      uint64 realtime_timestamp = 10;
      Parameters:
      value - The realtimeTimestamp to set.
      Returns:
      This builder for chaining.
    • clearRealtimeTimestamp

      public MonitorDProto.LogMessage.Builder clearRealtimeTimestamp()
       Time [ms since epoch UTC] this entry was received in the journal. 
       
      uint64 realtime_timestamp = 10;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final MonitorDProto.LogMessage.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<MonitorDProto.LogMessage.Builder>
    • mergeUnknownFields

      public final MonitorDProto.LogMessage.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<MonitorDProto.LogMessage.Builder>