Interface HeaderPairOrBuilder

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

@Generated public interface HeaderPairOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    The header name (e.g., "Content-Type", "Authorization", "Accept").
    com.google.protobuf.ByteString
    The header name (e.g., "Content-Type", "Authorization", "Accept").
    The header value (e.g., "application/json", "Bearer token123").
    com.google.protobuf.ByteString
    The header value (e.g., "application/json", "Bearer token123").

    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

    • getKey

      String getKey()
      The header name (e.g., "Content-Type", "Authorization", "Accept").
      Header names are case-insensitive per HTTP specification.
      
      string key = 1;
      Returns:
      The key.
    • getKeyBytes

      com.google.protobuf.ByteString getKeyBytes()
      The header name (e.g., "Content-Type", "Authorization", "Accept").
      Header names are case-insensitive per HTTP specification.
      
      string key = 1;
      Returns:
      The bytes for key.
    • getValue

      String getValue()
      The header value (e.g., "application/json", "Bearer token123").
      
      string value = 2;
      Returns:
      The value.
    • getValueBytes

      com.google.protobuf.ByteString getValueBytes()
      The header value (e.g., "application/json", "Bearer token123").
      
      string value = 2;
      Returns:
      The bytes for value.