Package prometheus

Class Remote.ReadRequest.Builder

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

public static final class Remote.ReadRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<Remote.ReadRequest.Builder> implements Remote.ReadRequestOrBuilder
 ReadRequest represents a remote read request.
 
Protobuf type prometheus.ReadRequest
  • 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.Builder<Remote.ReadRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Remote.ReadRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Remote.ReadRequest.Builder>
    • getDefaultInstanceForType

      public Remote.ReadRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

      public Remote.ReadRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Remote.ReadRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Remote.ReadRequest.Builder>
    • mergeFrom

      public Remote.ReadRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Remote.ReadRequest.Builder>
      Throws:
      IOException
    • getQueriesList

      public List<Remote.Query> getQueriesList()
      repeated .prometheus.Query queries = 1;
      Specified by:
      getQueriesList 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
    • setQueries

      public Remote.ReadRequest.Builder setQueries(int index, Remote.Query value)
      repeated .prometheus.Query queries = 1;
    • setQueries

      public Remote.ReadRequest.Builder setQueries(int index, Remote.Query.Builder builderForValue)
      repeated .prometheus.Query queries = 1;
    • addQueries

      public Remote.ReadRequest.Builder addQueries(Remote.Query value)
      repeated .prometheus.Query queries = 1;
    • addQueries

      public Remote.ReadRequest.Builder addQueries(int index, Remote.Query value)
      repeated .prometheus.Query queries = 1;
    • addQueries

      public Remote.ReadRequest.Builder addQueries(Remote.Query.Builder builderForValue)
      repeated .prometheus.Query queries = 1;
    • addQueries

      public Remote.ReadRequest.Builder addQueries(int index, Remote.Query.Builder builderForValue)
      repeated .prometheus.Query queries = 1;
    • addAllQueries

      public Remote.ReadRequest.Builder addAllQueries(Iterable<? extends Remote.Query> values)
      repeated .prometheus.Query queries = 1;
    • clearQueries

      public Remote.ReadRequest.Builder clearQueries()
      repeated .prometheus.Query queries = 1;
    • removeQueries

      public Remote.ReadRequest.Builder removeQueries(int index)
      repeated .prometheus.Query queries = 1;
    • getQueriesBuilder

      public Remote.Query.Builder getQueriesBuilder(int index)
      repeated .prometheus.Query queries = 1;
    • getQueriesOrBuilder

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

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

      public Remote.Query.Builder addQueriesBuilder()
      repeated .prometheus.Query queries = 1;
    • addQueriesBuilder

      public Remote.Query.Builder addQueriesBuilder(int index)
      repeated .prometheus.Query queries = 1;
    • getQueriesBuilderList

      public List<Remote.Query.Builder> getQueriesBuilderList()
      repeated .prometheus.Query queries = 1;
    • 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.
    • setAcceptedResponseTypes

      public Remote.ReadRequest.Builder setAcceptedResponseTypes(int index, Remote.ReadRequest.ResponseType value)
       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;
      Parameters:
      index - The index to set the value at.
      value - The acceptedResponseTypes to set.
      Returns:
      This builder for chaining.
    • addAcceptedResponseTypes

      public Remote.ReadRequest.Builder addAcceptedResponseTypes(Remote.ReadRequest.ResponseType value)
       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;
      Parameters:
      value - The acceptedResponseTypes to add.
      Returns:
      This builder for chaining.
    • addAllAcceptedResponseTypes

      public Remote.ReadRequest.Builder addAllAcceptedResponseTypes(Iterable<? extends Remote.ReadRequest.ResponseType> values)
       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;
      Parameters:
      values - The acceptedResponseTypes to add.
      Returns:
      This builder for chaining.
    • clearAcceptedResponseTypes

      public Remote.ReadRequest.Builder clearAcceptedResponseTypes()
       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;
      Returns:
      This builder for chaining.
    • 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.
    • setAcceptedResponseTypesValue

      public Remote.ReadRequest.Builder setAcceptedResponseTypesValue(int index, int value)
       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;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for acceptedResponseTypes to set.
      Returns:
      This builder for chaining.
    • addAcceptedResponseTypesValue

      public Remote.ReadRequest.Builder addAcceptedResponseTypesValue(int value)
       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;
      Parameters:
      value - The enum numeric value on the wire for acceptedResponseTypes to add.
      Returns:
      This builder for chaining.
    • addAllAcceptedResponseTypesValue

      public Remote.ReadRequest.Builder addAllAcceptedResponseTypesValue(Iterable<Integer> values)
       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;
      Parameters:
      values - The enum numeric values on the wire for acceptedResponseTypes to add.
      Returns:
      This builder for chaining.