Class QueryRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<QueryRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<QueryRequest.Builder>
studio.o7.octopus.sdk.v1.QueryRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, QueryRequestOrBuilder
Enclosing class:
QueryRequest

public static final class QueryRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<QueryRequest.Builder> implements QueryRequestOrBuilder
*
Filters and options for `Query` RPC.
Protobuf type octopus_sdk.v1.QueryRequest
  • 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<QueryRequest.Builder>
    • clear

      public QueryRequest.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<QueryRequest.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<QueryRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public QueryRequest.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<QueryRequest.Builder>
    • mergeFrom

      public QueryRequest.Builder mergeFrom(QueryRequest other)
    • isInitialized

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

      public QueryRequest.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<QueryRequest.Builder>
      Throws:
      IOException
    • getKeyPattern

      public String getKeyPattern()
      Pattern to match keys. Supports wildcards:
      *  — matches exactly one token (between dots), e.g., "foo.*.bar" matches "foo.x.bar" but not "foo.x.y.bar"
      >  — matches one or more tokens until the end, e.g., "foo.>" matches "foo", "foo.bar", "foo.bar.baz", etc.
      Multiple wildcards can be used in a single pattern. Tokens are dot-separated.
      
      string key_pattern = 1 [json_name = "keyPattern"];
      Specified by:
      getKeyPattern in interface QueryRequestOrBuilder
      Returns:
      The keyPattern.
    • getKeyPatternBytes

      public com.google.protobuf.ByteString getKeyPatternBytes()
      Pattern to match keys. Supports wildcards:
      *  — matches exactly one token (between dots), e.g., "foo.*.bar" matches "foo.x.bar" but not "foo.x.y.bar"
      >  — matches one or more tokens until the end, e.g., "foo.>" matches "foo", "foo.bar", "foo.bar.baz", etc.
      Multiple wildcards can be used in a single pattern. Tokens are dot-separated.
      
      string key_pattern = 1 [json_name = "keyPattern"];
      Specified by:
      getKeyPatternBytes in interface QueryRequestOrBuilder
      Returns:
      The bytes for keyPattern.
    • setKeyPattern

      public QueryRequest.Builder setKeyPattern(String value)
      Pattern to match keys. Supports wildcards:
      *  — matches exactly one token (between dots), e.g., "foo.*.bar" matches "foo.x.bar" but not "foo.x.y.bar"
      >  — matches one or more tokens until the end, e.g., "foo.>" matches "foo", "foo.bar", "foo.bar.baz", etc.
      Multiple wildcards can be used in a single pattern. Tokens are dot-separated.
      
      string key_pattern = 1 [json_name = "keyPattern"];
      Parameters:
      value - The keyPattern to set.
      Returns:
      This builder for chaining.
    • clearKeyPattern

      public QueryRequest.Builder clearKeyPattern()
      Pattern to match keys. Supports wildcards:
      *  — matches exactly one token (between dots), e.g., "foo.*.bar" matches "foo.x.bar" but not "foo.x.y.bar"
      >  — matches one or more tokens until the end, e.g., "foo.>" matches "foo", "foo.bar", "foo.bar.baz", etc.
      Multiple wildcards can be used in a single pattern. Tokens are dot-separated.
      
      string key_pattern = 1 [json_name = "keyPattern"];
      Returns:
      This builder for chaining.
    • setKeyPatternBytes

      public QueryRequest.Builder setKeyPatternBytes(com.google.protobuf.ByteString value)
      Pattern to match keys. Supports wildcards:
      *  — matches exactly one token (between dots), e.g., "foo.*.bar" matches "foo.x.bar" but not "foo.x.y.bar"
      >  — matches one or more tokens until the end, e.g., "foo.>" matches "foo", "foo.bar", "foo.bar.baz", etc.
      Multiple wildcards can be used in a single pattern. Tokens are dot-separated.
      
      string key_pattern = 1 [json_name = "keyPattern"];
      Parameters:
      value - The bytes for keyPattern to set.
      Returns:
      This builder for chaining.
    • hasIncludeExpired

      public boolean hasIncludeExpired()
      Whether to include expired objects.
      
      optional bool include_expired = 2 [json_name = "includeExpired"];
      Specified by:
      hasIncludeExpired in interface QueryRequestOrBuilder
      Returns:
      Whether the includeExpired field is set.
    • getIncludeExpired

      public boolean getIncludeExpired()
      Whether to include expired objects.
      
      optional bool include_expired = 2 [json_name = "includeExpired"];
      Specified by:
      getIncludeExpired in interface QueryRequestOrBuilder
      Returns:
      The includeExpired.
    • setIncludeExpired

      public QueryRequest.Builder setIncludeExpired(boolean value)
      Whether to include expired objects.
      
      optional bool include_expired = 2 [json_name = "includeExpired"];
      Parameters:
      value - The includeExpired to set.
      Returns:
      This builder for chaining.
    • clearIncludeExpired

      public QueryRequest.Builder clearIncludeExpired()
      Whether to include expired objects.
      
      optional bool include_expired = 2 [json_name = "includeExpired"];
      Returns:
      This builder for chaining.
    • hasCreatedAtRangeStart

      public boolean hasCreatedAtRangeStart()
      Start timestamp to filter creation time.
      
      optional .google.protobuf.Timestamp created_at_range_start = 3 [json_name = "createdAtRangeStart"];
      Specified by:
      hasCreatedAtRangeStart in interface QueryRequestOrBuilder
      Returns:
      Whether the createdAtRangeStart field is set.
    • getCreatedAtRangeStart

      public com.google.protobuf.Timestamp getCreatedAtRangeStart()
      Start timestamp to filter creation time.
      
      optional .google.protobuf.Timestamp created_at_range_start = 3 [json_name = "createdAtRangeStart"];
      Specified by:
      getCreatedAtRangeStart in interface QueryRequestOrBuilder
      Returns:
      The createdAtRangeStart.
    • setCreatedAtRangeStart

      public QueryRequest.Builder setCreatedAtRangeStart(com.google.protobuf.Timestamp value)
      Start timestamp to filter creation time.
      
      optional .google.protobuf.Timestamp created_at_range_start = 3 [json_name = "createdAtRangeStart"];
    • setCreatedAtRangeStart

      public QueryRequest.Builder setCreatedAtRangeStart(com.google.protobuf.Timestamp.Builder builderForValue)
      Start timestamp to filter creation time.
      
      optional .google.protobuf.Timestamp created_at_range_start = 3 [json_name = "createdAtRangeStart"];
    • mergeCreatedAtRangeStart

      public QueryRequest.Builder mergeCreatedAtRangeStart(com.google.protobuf.Timestamp value)
      Start timestamp to filter creation time.
      
      optional .google.protobuf.Timestamp created_at_range_start = 3 [json_name = "createdAtRangeStart"];
    • clearCreatedAtRangeStart

      public QueryRequest.Builder clearCreatedAtRangeStart()
      Start timestamp to filter creation time.
      
      optional .google.protobuf.Timestamp created_at_range_start = 3 [json_name = "createdAtRangeStart"];
    • getCreatedAtRangeStartBuilder

      public com.google.protobuf.Timestamp.Builder getCreatedAtRangeStartBuilder()
      Start timestamp to filter creation time.
      
      optional .google.protobuf.Timestamp created_at_range_start = 3 [json_name = "createdAtRangeStart"];
    • getCreatedAtRangeStartOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreatedAtRangeStartOrBuilder()
      Start timestamp to filter creation time.
      
      optional .google.protobuf.Timestamp created_at_range_start = 3 [json_name = "createdAtRangeStart"];
      Specified by:
      getCreatedAtRangeStartOrBuilder in interface QueryRequestOrBuilder
    • hasCreatedAtRangeEnd

      public boolean hasCreatedAtRangeEnd()
      End timestamp to filter creation time.
      
      optional .google.protobuf.Timestamp created_at_range_end = 4 [json_name = "createdAtRangeEnd"];
      Specified by:
      hasCreatedAtRangeEnd in interface QueryRequestOrBuilder
      Returns:
      Whether the createdAtRangeEnd field is set.
    • getCreatedAtRangeEnd

      public com.google.protobuf.Timestamp getCreatedAtRangeEnd()
      End timestamp to filter creation time.
      
      optional .google.protobuf.Timestamp created_at_range_end = 4 [json_name = "createdAtRangeEnd"];
      Specified by:
      getCreatedAtRangeEnd in interface QueryRequestOrBuilder
      Returns:
      The createdAtRangeEnd.
    • setCreatedAtRangeEnd

      public QueryRequest.Builder setCreatedAtRangeEnd(com.google.protobuf.Timestamp value)
      End timestamp to filter creation time.
      
      optional .google.protobuf.Timestamp created_at_range_end = 4 [json_name = "createdAtRangeEnd"];
    • setCreatedAtRangeEnd

      public QueryRequest.Builder setCreatedAtRangeEnd(com.google.protobuf.Timestamp.Builder builderForValue)
      End timestamp to filter creation time.
      
      optional .google.protobuf.Timestamp created_at_range_end = 4 [json_name = "createdAtRangeEnd"];
    • mergeCreatedAtRangeEnd

      public QueryRequest.Builder mergeCreatedAtRangeEnd(com.google.protobuf.Timestamp value)
      End timestamp to filter creation time.
      
      optional .google.protobuf.Timestamp created_at_range_end = 4 [json_name = "createdAtRangeEnd"];
    • clearCreatedAtRangeEnd

      public QueryRequest.Builder clearCreatedAtRangeEnd()
      End timestamp to filter creation time.
      
      optional .google.protobuf.Timestamp created_at_range_end = 4 [json_name = "createdAtRangeEnd"];
    • getCreatedAtRangeEndBuilder

      public com.google.protobuf.Timestamp.Builder getCreatedAtRangeEndBuilder()
      End timestamp to filter creation time.
      
      optional .google.protobuf.Timestamp created_at_range_end = 4 [json_name = "createdAtRangeEnd"];
    • getCreatedAtRangeEndOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreatedAtRangeEndOrBuilder()
      End timestamp to filter creation time.
      
      optional .google.protobuf.Timestamp created_at_range_end = 4 [json_name = "createdAtRangeEnd"];
      Specified by:
      getCreatedAtRangeEndOrBuilder in interface QueryRequestOrBuilder
    • hasDataFilter

      public boolean hasDataFilter()
      Filter by json (use MongoDB filter pattern)
      
      optional string data_filter = 5 [json_name = "dataFilter"];
      Specified by:
      hasDataFilter in interface QueryRequestOrBuilder
      Returns:
      Whether the dataFilter field is set.
    • getDataFilter

      public String getDataFilter()
      Filter by json (use MongoDB filter pattern)
      
      optional string data_filter = 5 [json_name = "dataFilter"];
      Specified by:
      getDataFilter in interface QueryRequestOrBuilder
      Returns:
      The dataFilter.
    • getDataFilterBytes

      public com.google.protobuf.ByteString getDataFilterBytes()
      Filter by json (use MongoDB filter pattern)
      
      optional string data_filter = 5 [json_name = "dataFilter"];
      Specified by:
      getDataFilterBytes in interface QueryRequestOrBuilder
      Returns:
      The bytes for dataFilter.
    • setDataFilter

      public QueryRequest.Builder setDataFilter(String value)
      Filter by json (use MongoDB filter pattern)
      
      optional string data_filter = 5 [json_name = "dataFilter"];
      Parameters:
      value - The dataFilter to set.
      Returns:
      This builder for chaining.
    • clearDataFilter

      public QueryRequest.Builder clearDataFilter()
      Filter by json (use MongoDB filter pattern)
      
      optional string data_filter = 5 [json_name = "dataFilter"];
      Returns:
      This builder for chaining.
    • setDataFilterBytes

      public QueryRequest.Builder setDataFilterBytes(com.google.protobuf.ByteString value)
      Filter by json (use MongoDB filter pattern)
      
      optional string data_filter = 5 [json_name = "dataFilter"];
      Parameters:
      value - The bytes for dataFilter to set.
      Returns:
      This builder for chaining.
    • hasDataSort

      public boolean hasDataSort()
      Sort by json (use MongoDB sort pattern)
      
      optional string data_sort = 6 [json_name = "dataSort"];
      Specified by:
      hasDataSort in interface QueryRequestOrBuilder
      Returns:
      Whether the dataSort field is set.
    • getDataSort

      public String getDataSort()
      Sort by json (use MongoDB sort pattern)
      
      optional string data_sort = 6 [json_name = "dataSort"];
      Specified by:
      getDataSort in interface QueryRequestOrBuilder
      Returns:
      The dataSort.
    • getDataSortBytes

      public com.google.protobuf.ByteString getDataSortBytes()
      Sort by json (use MongoDB sort pattern)
      
      optional string data_sort = 6 [json_name = "dataSort"];
      Specified by:
      getDataSortBytes in interface QueryRequestOrBuilder
      Returns:
      The bytes for dataSort.
    • setDataSort

      public QueryRequest.Builder setDataSort(String value)
      Sort by json (use MongoDB sort pattern)
      
      optional string data_sort = 6 [json_name = "dataSort"];
      Parameters:
      value - The dataSort to set.
      Returns:
      This builder for chaining.
    • clearDataSort

      public QueryRequest.Builder clearDataSort()
      Sort by json (use MongoDB sort pattern)
      
      optional string data_sort = 6 [json_name = "dataSort"];
      Returns:
      This builder for chaining.
    • setDataSortBytes

      public QueryRequest.Builder setDataSortBytes(com.google.protobuf.ByteString value)
      Sort by json (use MongoDB sort pattern)
      
      optional string data_sort = 6 [json_name = "dataSort"];
      Parameters:
      value - The bytes for dataSort to set.
      Returns:
      This builder for chaining.
    • hasPaginator

      public boolean hasPaginator()
      Entry paginator
      
      .octopus_sdk.v1.Paginator paginator = 7 [json_name = "paginator"];
      Specified by:
      hasPaginator in interface QueryRequestOrBuilder
      Returns:
      Whether the paginator field is set.
    • getPaginator

      public Paginator getPaginator()
      Entry paginator
      
      .octopus_sdk.v1.Paginator paginator = 7 [json_name = "paginator"];
      Specified by:
      getPaginator in interface QueryRequestOrBuilder
      Returns:
      The paginator.
    • setPaginator

      public QueryRequest.Builder setPaginator(Paginator value)
      Entry paginator
      
      .octopus_sdk.v1.Paginator paginator = 7 [json_name = "paginator"];
    • setPaginator

      public QueryRequest.Builder setPaginator(Paginator.Builder builderForValue)
      Entry paginator
      
      .octopus_sdk.v1.Paginator paginator = 7 [json_name = "paginator"];
    • mergePaginator

      public QueryRequest.Builder mergePaginator(Paginator value)
      Entry paginator
      
      .octopus_sdk.v1.Paginator paginator = 7 [json_name = "paginator"];
    • clearPaginator

      public QueryRequest.Builder clearPaginator()
      Entry paginator
      
      .octopus_sdk.v1.Paginator paginator = 7 [json_name = "paginator"];
    • getPaginatorBuilder

      public Paginator.Builder getPaginatorBuilder()
      Entry paginator
      
      .octopus_sdk.v1.Paginator paginator = 7 [json_name = "paginator"];
    • getPaginatorOrBuilder

      public PaginatorOrBuilder getPaginatorOrBuilder()
      Entry paginator
      
      .octopus_sdk.v1.Paginator paginator = 7 [json_name = "paginator"];
      Specified by:
      getPaginatorOrBuilder in interface QueryRequestOrBuilder