Interface TlvEntryOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
TlvEntry, TlvEntry.Builder

public interface TlvEntryOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The type of the TLV.
    com.google.protobuf.ByteString
    The value of the TLV.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getType

      int getType()
       The type of the TLV. Must be a uint8 (0-255) as per the Proxy Protocol v2 specification.
       
      uint32 type = 1 [(.validate.rules) = { ... }
      Returns:
      The type.
    • getValue

      com.google.protobuf.ByteString getValue()
       The value of the TLV. Must be at least one byte long.
       
      bytes value = 2 [(.validate.rules) = { ... }
      Returns:
      The value.