Class ExecuteDashboardQueryRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExecuteDashboardQueryRequest.Builder>
com.google.cloud.chronicle.v1.ExecuteDashboardQueryRequest.Builder
All Implemented Interfaces:
ExecuteDashboardQueryRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ExecuteDashboardQueryRequest

public static final class ExecuteDashboardQueryRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExecuteDashboardQueryRequest.Builder> implements ExecuteDashboardQueryRequestOrBuilder
 Request message to execute a dashboard query.
 
Protobuf type google.cloud.chronicle.v1.ExecuteDashboardQueryRequest
  • 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<ExecuteDashboardQueryRequest.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<ExecuteDashboardQueryRequest.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<ExecuteDashboardQueryRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public ExecuteDashboardQueryRequest.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<ExecuteDashboardQueryRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent, under which to run this dashboardQuery.
       Format: projects/{project}/locations/{location}/instances/{instance}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface ExecuteDashboardQueryRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent, under which to run this dashboardQuery.
       Format: projects/{project}/locations/{location}/instances/{instance}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface ExecuteDashboardQueryRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public ExecuteDashboardQueryRequest.Builder setParent(String value)
       Required. The parent, under which to run this dashboardQuery.
       Format: projects/{project}/locations/{location}/instances/{instance}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. The parent, under which to run this dashboardQuery.
       Format: projects/{project}/locations/{location}/instances/{instance}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public ExecuteDashboardQueryRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent, under which to run this dashboardQuery.
       Format: projects/{project}/locations/{location}/instances/{instance}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasQuery

      public boolean hasQuery()
       Required. The query to execute and get results back for.
       QueryID or 'query', 'input.time_window' fields will be used. Use
       'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard
       query.
       
      .google.cloud.chronicle.v1.DashboardQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasQuery in interface ExecuteDashboardQueryRequestOrBuilder
      Returns:
      Whether the query field is set.
    • getQuery

      public DashboardQuery getQuery()
       Required. The query to execute and get results back for.
       QueryID or 'query', 'input.time_window' fields will be used. Use
       'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard
       query.
       
      .google.cloud.chronicle.v1.DashboardQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuery in interface ExecuteDashboardQueryRequestOrBuilder
      Returns:
      The query.
    • setQuery

       Required. The query to execute and get results back for.
       QueryID or 'query', 'input.time_window' fields will be used. Use
       'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard
       query.
       
      .google.cloud.chronicle.v1.DashboardQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
    • setQuery

       Required. The query to execute and get results back for.
       QueryID or 'query', 'input.time_window' fields will be used. Use
       'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard
       query.
       
      .google.cloud.chronicle.v1.DashboardQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeQuery

       Required. The query to execute and get results back for.
       QueryID or 'query', 'input.time_window' fields will be used. Use
       'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard
       query.
       
      .google.cloud.chronicle.v1.DashboardQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearQuery

       Required. The query to execute and get results back for.
       QueryID or 'query', 'input.time_window' fields will be used. Use
       'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard
       query.
       
      .google.cloud.chronicle.v1.DashboardQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
    • getQueryBuilder

      public DashboardQuery.Builder getQueryBuilder()
       Required. The query to execute and get results back for.
       QueryID or 'query', 'input.time_window' fields will be used. Use
       'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard
       query.
       
      .google.cloud.chronicle.v1.DashboardQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
    • getQueryOrBuilder

      public DashboardQueryOrBuilder getQueryOrBuilder()
       Required. The query to execute and get results back for.
       QueryID or 'query', 'input.time_window' fields will be used. Use
       'native_dashboard' and 'dashboard_chart' fields if it is an in-dashboard
       query.
       
      .google.cloud.chronicle.v1.DashboardQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQueryOrBuilder in interface ExecuteDashboardQueryRequestOrBuilder
    • getFiltersList

      public List<DashboardFilter> getFiltersList()
       Optional. Dashboard level filters other than query string.
       
      repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFiltersList in interface ExecuteDashboardQueryRequestOrBuilder
    • getFiltersCount

      public int getFiltersCount()
       Optional. Dashboard level filters other than query string.
       
      repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFiltersCount in interface ExecuteDashboardQueryRequestOrBuilder
    • getFilters

      public DashboardFilter getFilters(int index)
       Optional. Dashboard level filters other than query string.
       
      repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilters in interface ExecuteDashboardQueryRequestOrBuilder
    • setFilters

      public ExecuteDashboardQueryRequest.Builder setFilters(int index, DashboardFilter value)
       Optional. Dashboard level filters other than query string.
       
      repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setFilters

      public ExecuteDashboardQueryRequest.Builder setFilters(int index, DashboardFilter.Builder builderForValue)
       Optional. Dashboard level filters other than query string.
       
      repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addFilters

       Optional. Dashboard level filters other than query string.
       
      repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addFilters

      public ExecuteDashboardQueryRequest.Builder addFilters(int index, DashboardFilter value)
       Optional. Dashboard level filters other than query string.
       
      repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addFilters

       Optional. Dashboard level filters other than query string.
       
      repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addFilters

      public ExecuteDashboardQueryRequest.Builder addFilters(int index, DashboardFilter.Builder builderForValue)
       Optional. Dashboard level filters other than query string.
       
      repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addAllFilters

      public ExecuteDashboardQueryRequest.Builder addAllFilters(Iterable<? extends DashboardFilter> values)
       Optional. Dashboard level filters other than query string.
       
      repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearFilters

      public ExecuteDashboardQueryRequest.Builder clearFilters()
       Optional. Dashboard level filters other than query string.
       
      repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • removeFilters

      public ExecuteDashboardQueryRequest.Builder removeFilters(int index)
       Optional. Dashboard level filters other than query string.
       
      repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getFiltersBuilder

      public DashboardFilter.Builder getFiltersBuilder(int index)
       Optional. Dashboard level filters other than query string.
       
      repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getFiltersOrBuilder

      public DashboardFilterOrBuilder getFiltersOrBuilder(int index)
       Optional. Dashboard level filters other than query string.
       
      repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFiltersOrBuilder in interface ExecuteDashboardQueryRequestOrBuilder
    • getFiltersOrBuilderList

      public List<? extends DashboardFilterOrBuilder> getFiltersOrBuilderList()
       Optional. Dashboard level filters other than query string.
       
      repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFiltersOrBuilderList in interface ExecuteDashboardQueryRequestOrBuilder
    • addFiltersBuilder

      public DashboardFilter.Builder addFiltersBuilder()
       Optional. Dashboard level filters other than query string.
       
      repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addFiltersBuilder

      public DashboardFilter.Builder addFiltersBuilder(int index)
       Optional. Dashboard level filters other than query string.
       
      repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getFiltersBuilderList

      public List<DashboardFilter.Builder> getFiltersBuilderList()
       Optional. Dashboard level filters other than query string.
       
      repeated .google.cloud.chronicle.v1.DashboardFilter filters = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getClearCache

      public boolean getClearCache()
       Optional. When true, the backend would read from the database, rather than
       fetching data directly from the cache.
       
      bool clear_cache = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getClearCache in interface ExecuteDashboardQueryRequestOrBuilder
      Returns:
      The clearCache.
    • setClearCache

      public ExecuteDashboardQueryRequest.Builder setClearCache(boolean value)
       Optional. When true, the backend would read from the database, rather than
       fetching data directly from the cache.
       
      bool clear_cache = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The clearCache to set.
      Returns:
      This builder for chaining.
    • clearClearCache

      public ExecuteDashboardQueryRequest.Builder clearClearCache()
       Optional. When true, the backend would read from the database, rather than
       fetching data directly from the cache.
       
      bool clear_cache = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getUsePreviousTimeRange

      public boolean getUsePreviousTimeRange()
       Optional. When true, the backend will execute the query against the
       previous time range of the query.
       
      bool use_previous_time_range = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUsePreviousTimeRange in interface ExecuteDashboardQueryRequestOrBuilder
      Returns:
      The usePreviousTimeRange.
    • setUsePreviousTimeRange

      public ExecuteDashboardQueryRequest.Builder setUsePreviousTimeRange(boolean value)
       Optional. When true, the backend will execute the query against the
       previous time range of the query.
       
      bool use_previous_time_range = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The usePreviousTimeRange to set.
      Returns:
      This builder for chaining.
    • clearUsePreviousTimeRange

      public ExecuteDashboardQueryRequest.Builder clearUsePreviousTimeRange()
       Optional. When true, the backend will execute the query against the
       previous time range of the query.
       
      bool use_previous_time_range = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.