Class EPICSEvent.PayloadInfo

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
edu.stanford.slac.archiverappliance.PB.EPICSEvent.PayloadInfo
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, EPICSEvent.PayloadInfoOrBuilder, Serializable
Enclosing class:
EPICSEvent

public static final class EPICSEvent.PayloadInfo extends com.google.protobuf.GeneratedMessage implements EPICSEvent.PayloadInfoOrBuilder
 A payload info is the first line in a chunk of data sent back to the client.
 It tells you how to unmarshall, the pvname and the year for the data
 It also has a lot of optional fields
 
Protobuf type EPICS.PayloadInfo
See Also:
  • Field Details

  • Method Details

    • 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
    • hasType

      public boolean hasType()
      required .EPICS.PayloadType type = 1;
      Specified by:
      hasType in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public EPICSEvent.PayloadType getType()
      required .EPICS.PayloadType type = 1;
      Specified by:
      getType in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      The type.
    • hasPvname

      public boolean hasPvname()
      required string pvname = 2;
      Specified by:
      hasPvname in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      Whether the pvname field is set.
    • getPvname

      public String getPvname()
      required string pvname = 2;
      Specified by:
      getPvname in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      The pvname.
    • getPvnameBytes

      public com.google.protobuf.ByteString getPvnameBytes()
      required string pvname = 2;
      Specified by:
      getPvnameBytes in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      The bytes for pvname.
    • hasYear

      public boolean hasYear()
      required int32 year = 3;
      Specified by:
      hasYear in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      Whether the year field is set.
    • getYear

      public int getYear()
      required int32 year = 3;
      Specified by:
      getYear in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      The year.
    • hasElementCount

      public boolean hasElementCount()
      optional int32 elementCount = 4;
      Specified by:
      hasElementCount in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      Whether the elementCount field is set.
    • getElementCount

      public int getElementCount()
      optional int32 elementCount = 4;
      Specified by:
      getElementCount in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      The elementCount.
    • hasUnused00

      public boolean hasUnused00()
       Items from 5 to 14 are no longer to be used. 
       Stick these into the headers using the field names
       For example, units comes in as EGU in the headers.
       
      optional double unused00 = 5;
      Specified by:
      hasUnused00 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      Whether the unused00 field is set.
    • getUnused00

      public double getUnused00()
       Items from 5 to 14 are no longer to be used. 
       Stick these into the headers using the field names
       For example, units comes in as EGU in the headers.
       
      optional double unused00 = 5;
      Specified by:
      getUnused00 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      The unused00.
    • hasUnused01

      public boolean hasUnused01()
      optional double unused01 = 6;
      Specified by:
      hasUnused01 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      Whether the unused01 field is set.
    • getUnused01

      public double getUnused01()
      optional double unused01 = 6;
      Specified by:
      getUnused01 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      The unused01.
    • hasUnused02

      public boolean hasUnused02()
      optional double unused02 = 7;
      Specified by:
      hasUnused02 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      Whether the unused02 field is set.
    • getUnused02

      public double getUnused02()
      optional double unused02 = 7;
      Specified by:
      getUnused02 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      The unused02.
    • hasUnused03

      public boolean hasUnused03()
      optional double unused03 = 8;
      Specified by:
      hasUnused03 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      Whether the unused03 field is set.
    • getUnused03

      public double getUnused03()
      optional double unused03 = 8;
      Specified by:
      getUnused03 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      The unused03.
    • hasUnused04

      public boolean hasUnused04()
      optional double unused04 = 9;
      Specified by:
      hasUnused04 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      Whether the unused04 field is set.
    • getUnused04

      public double getUnused04()
      optional double unused04 = 9;
      Specified by:
      getUnused04 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      The unused04.
    • hasUnused05

      public boolean hasUnused05()
      optional double unused05 = 10;
      Specified by:
      hasUnused05 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      Whether the unused05 field is set.
    • getUnused05

      public double getUnused05()
      optional double unused05 = 10;
      Specified by:
      getUnused05 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      The unused05.
    • hasUnused06

      public boolean hasUnused06()
      optional double unused06 = 11;
      Specified by:
      hasUnused06 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      Whether the unused06 field is set.
    • getUnused06

      public double getUnused06()
      optional double unused06 = 11;
      Specified by:
      getUnused06 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      The unused06.
    • hasUnused07

      public boolean hasUnused07()
      optional double unused07 = 12;
      Specified by:
      hasUnused07 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      Whether the unused07 field is set.
    • getUnused07

      public double getUnused07()
      optional double unused07 = 12;
      Specified by:
      getUnused07 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      The unused07.
    • hasUnused08

      public boolean hasUnused08()
      optional double unused08 = 13;
      Specified by:
      hasUnused08 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      Whether the unused08 field is set.
    • getUnused08

      public double getUnused08()
      optional double unused08 = 13;
      Specified by:
      getUnused08 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      The unused08.
    • hasUnused09

      public boolean hasUnused09()
      optional string unused09 = 14;
      Specified by:
      hasUnused09 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      Whether the unused09 field is set.
    • getUnused09

      public String getUnused09()
      optional string unused09 = 14;
      Specified by:
      getUnused09 in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      The unused09.
    • getUnused09Bytes

      public com.google.protobuf.ByteString getUnused09Bytes()
      optional string unused09 = 14;
      Specified by:
      getUnused09Bytes in interface EPICSEvent.PayloadInfoOrBuilder
      Returns:
      The bytes for unused09.
    • getHeadersList

      public List<EPICSEvent.FieldValue> getHeadersList()
       End of unused elements
       
      repeated .EPICS.FieldValue headers = 15;
      Specified by:
      getHeadersList in interface EPICSEvent.PayloadInfoOrBuilder
    • getHeadersOrBuilderList

      public List<? extends EPICSEvent.FieldValueOrBuilder> getHeadersOrBuilderList()
       End of unused elements
       
      repeated .EPICS.FieldValue headers = 15;
      Specified by:
      getHeadersOrBuilderList in interface EPICSEvent.PayloadInfoOrBuilder
    • getHeadersCount

      public int getHeadersCount()
       End of unused elements
       
      repeated .EPICS.FieldValue headers = 15;
      Specified by:
      getHeadersCount in interface EPICSEvent.PayloadInfoOrBuilder
    • getHeaders

      public EPICSEvent.FieldValue getHeaders(int index)
       End of unused elements
       
      repeated .EPICS.FieldValue headers = 15;
      Specified by:
      getHeaders in interface EPICSEvent.PayloadInfoOrBuilder
    • getHeadersOrBuilder

      public EPICSEvent.FieldValueOrBuilder getHeadersOrBuilder(int index)
       End of unused elements
       
      repeated .EPICS.FieldValue headers = 15;
      Specified by:
      getHeadersOrBuilder in interface EPICSEvent.PayloadInfoOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static EPICSEvent.PayloadInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EPICSEvent.PayloadInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EPICSEvent.PayloadInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EPICSEvent.PayloadInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EPICSEvent.PayloadInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EPICSEvent.PayloadInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EPICSEvent.PayloadInfo parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EPICSEvent.PayloadInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static EPICSEvent.PayloadInfo parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static EPICSEvent.PayloadInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EPICSEvent.PayloadInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EPICSEvent.PayloadInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public EPICSEvent.PayloadInfo.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static EPICSEvent.PayloadInfo.Builder newBuilder()
    • newBuilder

      public static EPICSEvent.PayloadInfo.Builder newBuilder(EPICSEvent.PayloadInfo prototype)
    • toBuilder

      public EPICSEvent.PayloadInfo.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected EPICSEvent.PayloadInfo.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static EPICSEvent.PayloadInfo getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<EPICSEvent.PayloadInfo> parser()
    • getParserForType

      public com.google.protobuf.Parser<EPICSEvent.PayloadInfo> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public EPICSEvent.PayloadInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder