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 TypeMethodDescriptiongetKey()The header name (e.g., "Content-Type", "Authorization", "Accept").com.google.protobuf.ByteStringThe header name (e.g., "Content-Type", "Authorization", "Accept").getValue()The header value (e.g., "application/json", "Bearer token123").com.google.protobuf.ByteStringThe header value (e.g., "application/json", "Bearer token123").Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods 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.
-