Class RouteLookupRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.grpc.lookup.v1.RouteLookupRequest
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RouteLookupRequestOrBuilder, Serializable

public final class RouteLookupRequest extends com.google.protobuf.GeneratedMessage implements RouteLookupRequestOrBuilder
Protobuf type grpc.lookup.v1.RouteLookupRequest
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • TARGET_TYPE_FIELD_NUMBER

      public static final int TARGET_TYPE_FIELD_NUMBER
      See Also:
    • targetType_

      private volatile Object targetType_
    • REASON_FIELD_NUMBER

      public static final int REASON_FIELD_NUMBER
      See Also:
    • reason_

      private int reason_
    • STALE_HEADER_DATA_FIELD_NUMBER

      public static final int STALE_HEADER_DATA_FIELD_NUMBER
      See Also:
    • staleHeaderData_

      private volatile Object staleHeaderData_
    • KEY_MAP_FIELD_NUMBER

      public static final int KEY_MAP_FIELD_NUMBER
      See Also:
    • keyMap_

      private com.google.protobuf.MapField<String,String> keyMap_
    • memoizedIsInitialized

      private byte memoizedIsInitialized
    • DEFAULT_INSTANCE

      private static final RouteLookupRequest DEFAULT_INSTANCE
    • PARSER

      private static final com.google.protobuf.Parser<RouteLookupRequest> PARSER
  • Constructor Details

    • RouteLookupRequest

      private RouteLookupRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder)
    • RouteLookupRequest

      private RouteLookupRequest()
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getTargetType

      public String getTargetType()
       Target type allows the client to specify what kind of target format it
       would like from RLS to allow it to find the regional server, e.g. "grpc".
       
      string target_type = 3;
      Specified by:
      getTargetType in interface RouteLookupRequestOrBuilder
      Returns:
      The targetType.
    • getTargetTypeBytes

      public com.google.protobuf.ByteString getTargetTypeBytes()
       Target type allows the client to specify what kind of target format it
       would like from RLS to allow it to find the regional server, e.g. "grpc".
       
      string target_type = 3;
      Specified by:
      getTargetTypeBytes in interface RouteLookupRequestOrBuilder
      Returns:
      The bytes for targetType.
    • getReasonValue

      public int getReasonValue()
       Reason for making this request.
       
      .grpc.lookup.v1.RouteLookupRequest.Reason reason = 5;
      Specified by:
      getReasonValue in interface RouteLookupRequestOrBuilder
      Returns:
      The enum numeric value on the wire for reason.
    • getReason

      public RouteLookupRequest.Reason getReason()
       Reason for making this request.
       
      .grpc.lookup.v1.RouteLookupRequest.Reason reason = 5;
      Specified by:
      getReason in interface RouteLookupRequestOrBuilder
      Returns:
      The reason.
    • getStaleHeaderData

      public String getStaleHeaderData()
       For REASON_STALE, the header_data from the stale response, if any.
       
      string stale_header_data = 6;
      Specified by:
      getStaleHeaderData in interface RouteLookupRequestOrBuilder
      Returns:
      The staleHeaderData.
    • getStaleHeaderDataBytes

      public com.google.protobuf.ByteString getStaleHeaderDataBytes()
       For REASON_STALE, the header_data from the stale response, if any.
       
      string stale_header_data = 6;
      Specified by:
      getStaleHeaderDataBytes in interface RouteLookupRequestOrBuilder
      Returns:
      The bytes for staleHeaderData.
    • internalGetKeyMap

      private com.google.protobuf.MapField<String,String> internalGetKeyMap()
    • getKeyMapCount

      public int getKeyMapCount()
      Description copied from interface: RouteLookupRequestOrBuilder
       Map of key values extracted via key builders for the gRPC or HTTP request.
       
      map<string, string> key_map = 4;
      Specified by:
      getKeyMapCount in interface RouteLookupRequestOrBuilder
    • containsKeyMap

      public boolean containsKeyMap(String key)
       Map of key values extracted via key builders for the gRPC or HTTP request.
       
      map<string, string> key_map = 4;
      Specified by:
      containsKeyMap in interface RouteLookupRequestOrBuilder
    • getKeyMap

      @Deprecated public Map<String,String> getKeyMap()
      Deprecated.
      Use getKeyMapMap() instead.
      Specified by:
      getKeyMap in interface RouteLookupRequestOrBuilder
    • getKeyMapMap

      public Map<String,String> getKeyMapMap()
       Map of key values extracted via key builders for the gRPC or HTTP request.
       
      map<string, string> key_map = 4;
      Specified by:
      getKeyMapMap in interface RouteLookupRequestOrBuilder
    • getKeyMapOrDefault

      public String getKeyMapOrDefault(String key, String defaultValue)
       Map of key values extracted via key builders for the gRPC or HTTP request.
       
      map<string, string> key_map = 4;
      Specified by:
      getKeyMapOrDefault in interface RouteLookupRequestOrBuilder
    • getKeyMapOrThrow

      public String getKeyMapOrThrow(String key)
       Map of key values extracted via key builders for the gRPC or HTTP request.
       
      map<string, string> key_map = 4;
      Specified by:
      getKeyMapOrThrow in interface RouteLookupRequestOrBuilder
    • 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 RouteLookupRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static RouteLookupRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static RouteLookupRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static RouteLookupRequest.Builder newBuilder()
    • newBuilder

      public static RouteLookupRequest.Builder newBuilder(RouteLookupRequest prototype)
    • toBuilder

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

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

      public static RouteLookupRequest getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<RouteLookupRequest> 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 RouteLookupRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder