Package prometheus

Class Remote.ReadRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
prometheus.Remote.ReadRequest
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Remote.ReadRequestOrBuilder
Enclosing class:
Remote

public static final class Remote.ReadRequest extends com.google.protobuf.GeneratedMessage implements Remote.ReadRequestOrBuilder
 ReadRequest represents a remote read request.
 
Protobuf type prometheus.ReadRequest
See Also:
  • Field Details

    • QUERIES_FIELD_NUMBER

      public static final int QUERIES_FIELD_NUMBER
      See Also:
    • ACCEPTED_RESPONSE_TYPES_FIELD_NUMBER

      public static final int ACCEPTED_RESPONSE_TYPES_FIELD_NUMBER
      See Also:
  • 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
    • getQueriesList

      public List<Remote.Query> getQueriesList()
      repeated .prometheus.Query queries = 1;
      Specified by:
      getQueriesList in interface Remote.ReadRequestOrBuilder
    • getQueriesOrBuilderList

      public List<? extends Remote.QueryOrBuilder> getQueriesOrBuilderList()
      repeated .prometheus.Query queries = 1;
      Specified by:
      getQueriesOrBuilderList in interface Remote.ReadRequestOrBuilder
    • getQueriesCount

      public int getQueriesCount()
      repeated .prometheus.Query queries = 1;
      Specified by:
      getQueriesCount in interface Remote.ReadRequestOrBuilder
    • getQueries

      public Remote.Query getQueries(int index)
      repeated .prometheus.Query queries = 1;
      Specified by:
      getQueries in interface Remote.ReadRequestOrBuilder
    • getQueriesOrBuilder

      public Remote.QueryOrBuilder getQueriesOrBuilder(int index)
      repeated .prometheus.Query queries = 1;
      Specified by:
      getQueriesOrBuilder in interface Remote.ReadRequestOrBuilder
    • getAcceptedResponseTypesList

      public List<Remote.ReadRequest.ResponseType> getAcceptedResponseTypesList()
       accepted_response_types allows negotiating the content type of the response.
      
       Response types are taken from the list in the FIFO order. If no response type in `accepted_response_types` is
       implemented by server, error is returned.
       For request that do not contain `accepted_response_types` field the SAMPLES response type will be used.
       
      repeated .prometheus.ReadRequest.ResponseType accepted_response_types = 2;
      Specified by:
      getAcceptedResponseTypesList in interface Remote.ReadRequestOrBuilder
      Returns:
      A list containing the acceptedResponseTypes.
    • getAcceptedResponseTypesCount

      public int getAcceptedResponseTypesCount()
       accepted_response_types allows negotiating the content type of the response.
      
       Response types are taken from the list in the FIFO order. If no response type in `accepted_response_types` is
       implemented by server, error is returned.
       For request that do not contain `accepted_response_types` field the SAMPLES response type will be used.
       
      repeated .prometheus.ReadRequest.ResponseType accepted_response_types = 2;
      Specified by:
      getAcceptedResponseTypesCount in interface Remote.ReadRequestOrBuilder
      Returns:
      The count of acceptedResponseTypes.
    • getAcceptedResponseTypes

      public Remote.ReadRequest.ResponseType getAcceptedResponseTypes(int index)
       accepted_response_types allows negotiating the content type of the response.
      
       Response types are taken from the list in the FIFO order. If no response type in `accepted_response_types` is
       implemented by server, error is returned.
       For request that do not contain `accepted_response_types` field the SAMPLES response type will be used.
       
      repeated .prometheus.ReadRequest.ResponseType accepted_response_types = 2;
      Specified by:
      getAcceptedResponseTypes in interface Remote.ReadRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The acceptedResponseTypes at the given index.
    • getAcceptedResponseTypesValueList

      public List<Integer> getAcceptedResponseTypesValueList()
       accepted_response_types allows negotiating the content type of the response.
      
       Response types are taken from the list in the FIFO order. If no response type in `accepted_response_types` is
       implemented by server, error is returned.
       For request that do not contain `accepted_response_types` field the SAMPLES response type will be used.
       
      repeated .prometheus.ReadRequest.ResponseType accepted_response_types = 2;
      Specified by:
      getAcceptedResponseTypesValueList in interface Remote.ReadRequestOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for acceptedResponseTypes.
    • getAcceptedResponseTypesValue

      public int getAcceptedResponseTypesValue(int index)
       accepted_response_types allows negotiating the content type of the response.
      
       Response types are taken from the list in the FIFO order. If no response type in `accepted_response_types` is
       implemented by server, error is returned.
       For request that do not contain `accepted_response_types` field the SAMPLES response type will be used.
       
      repeated .prometheus.ReadRequest.ResponseType accepted_response_types = 2;
      Specified by:
      getAcceptedResponseTypesValue in interface Remote.ReadRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of acceptedResponseTypes at the given index.
    • 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 Remote.ReadRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static Remote.ReadRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Remote.ReadRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static Remote.ReadRequest.Builder newBuilder()
    • newBuilder

      public static Remote.ReadRequest.Builder newBuilder(Remote.ReadRequest prototype)
    • toBuilder

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

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

      public static Remote.ReadRequest getDefaultInstance()
    • parser

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

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