Class ClientStats.WindowStats.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ClientStats.WindowStats.Builder>
com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.Builder
All Implemented Interfaces:
ClientStats.WindowStatsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ClientStats.WindowStats

public static final class ClientStats.WindowStats.Builder extends com.google.protobuf.GeneratedMessage.Builder<ClientStats.WindowStats.Builder> implements ClientStats.WindowStatsOrBuilder
 Aggregate connection metrics over a window interval.
 
Protobuf type google.cloud.bigquery.storage.v1.ClientStats.WindowStats
  • 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<ClientStats.WindowStats.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<ClientStats.WindowStats.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<ClientStats.WindowStats.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ClientStats.WindowStats.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<ClientStats.WindowStats.Builder>
      Throws:
      IOException
    • hasMaxResponseLatencyMillis

      public boolean hasMaxResponseLatencyMillis()
       Optional. The maximum response latency observed in the window, expressed
       in milliseconds.
       
      optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMaxResponseLatencyMillis in interface ClientStats.WindowStatsOrBuilder
      Returns:
      Whether the maxResponseLatencyMillis field is set.
    • getMaxResponseLatencyMillis

      public long getMaxResponseLatencyMillis()
       Optional. The maximum response latency observed in the window, expressed
       in milliseconds.
       
      optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMaxResponseLatencyMillis in interface ClientStats.WindowStatsOrBuilder
      Returns:
      The maxResponseLatencyMillis.
    • setMaxResponseLatencyMillis

      public ClientStats.WindowStats.Builder setMaxResponseLatencyMillis(long value)
       Optional. The maximum response latency observed in the window, expressed
       in milliseconds.
       
      optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The maxResponseLatencyMillis to set.
      Returns:
      This builder for chaining.
    • clearMaxResponseLatencyMillis

      public ClientStats.WindowStats.Builder clearMaxResponseLatencyMillis()
       Optional. The maximum response latency observed in the window, expressed
       in milliseconds.
       
      optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasAvgResponseLatencyMillis

      public boolean hasAvgResponseLatencyMillis()
       Optional. The average response latency observed in the window, expressed
       in milliseconds.
       
      optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAvgResponseLatencyMillis in interface ClientStats.WindowStatsOrBuilder
      Returns:
      Whether the avgResponseLatencyMillis field is set.
    • getAvgResponseLatencyMillis

      public long getAvgResponseLatencyMillis()
       Optional. The average response latency observed in the window, expressed
       in milliseconds.
       
      optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAvgResponseLatencyMillis in interface ClientStats.WindowStatsOrBuilder
      Returns:
      The avgResponseLatencyMillis.
    • setAvgResponseLatencyMillis

      public ClientStats.WindowStats.Builder setAvgResponseLatencyMillis(long value)
       Optional. The average response latency observed in the window, expressed
       in milliseconds.
       
      optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The avgResponseLatencyMillis to set.
      Returns:
      This builder for chaining.
    • clearAvgResponseLatencyMillis

      public ClientStats.WindowStats.Builder clearAvgResponseLatencyMillis()
       Optional. The average response latency observed in the window, expressed
       in milliseconds.
       
      optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasLongestWaitNoResponseMillis

      public boolean hasLongestWaitNoResponseMillis()
       Optional. The longest time spent waiting without receiving a response in
       the window. This could exceed max_response_latency_millis because the
       latter is evaluated only when a response is received. Expressed in
       milliseconds.
       
      optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasLongestWaitNoResponseMillis in interface ClientStats.WindowStatsOrBuilder
      Returns:
      Whether the longestWaitNoResponseMillis field is set.
    • getLongestWaitNoResponseMillis

      public long getLongestWaitNoResponseMillis()
       Optional. The longest time spent waiting without receiving a response in
       the window. This could exceed max_response_latency_millis because the
       latter is evaluated only when a response is received. Expressed in
       milliseconds.
       
      optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLongestWaitNoResponseMillis in interface ClientStats.WindowStatsOrBuilder
      Returns:
      The longestWaitNoResponseMillis.
    • setLongestWaitNoResponseMillis

      public ClientStats.WindowStats.Builder setLongestWaitNoResponseMillis(long value)
       Optional. The longest time spent waiting without receiving a response in
       the window. This could exceed max_response_latency_millis because the
       latter is evaluated only when a response is received. Expressed in
       milliseconds.
       
      optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The longestWaitNoResponseMillis to set.
      Returns:
      This builder for chaining.
    • clearLongestWaitNoResponseMillis

      public ClientStats.WindowStats.Builder clearLongestWaitNoResponseMillis()
       Optional. The longest time spent waiting without receiving a response in
       the window. This could exceed max_response_latency_millis because the
       latter is evaluated only when a response is received. Expressed in
       milliseconds.
       
      optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasRequestsSentCount

      public boolean hasRequestsSentCount()
       Optional. How many requests were sent in the window.
       
      optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRequestsSentCount in interface ClientStats.WindowStatsOrBuilder
      Returns:
      Whether the requestsSentCount field is set.
    • getRequestsSentCount

      public long getRequestsSentCount()
       Optional. How many requests were sent in the window.
       
      optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestsSentCount in interface ClientStats.WindowStatsOrBuilder
      Returns:
      The requestsSentCount.
    • setRequestsSentCount

      public ClientStats.WindowStats.Builder setRequestsSentCount(long value)
       Optional. How many requests were sent in the window.
       
      optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The requestsSentCount to set.
      Returns:
      This builder for chaining.
    • clearRequestsSentCount

      public ClientStats.WindowStats.Builder clearRequestsSentCount()
       Optional. How many requests were sent in the window.
       
      optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasResponsesReceivedCount

      public boolean hasResponsesReceivedCount()
       Optional. How many responses were received in the window.
       
      optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasResponsesReceivedCount in interface ClientStats.WindowStatsOrBuilder
      Returns:
      Whether the responsesReceivedCount field is set.
    • getResponsesReceivedCount

      public long getResponsesReceivedCount()
       Optional. How many responses were received in the window.
       
      optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResponsesReceivedCount in interface ClientStats.WindowStatsOrBuilder
      Returns:
      The responsesReceivedCount.
    • setResponsesReceivedCount

      public ClientStats.WindowStats.Builder setResponsesReceivedCount(long value)
       Optional. How many responses were received in the window.
       
      optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The responsesReceivedCount to set.
      Returns:
      This builder for chaining.
    • clearResponsesReceivedCount

      public ClientStats.WindowStats.Builder clearResponsesReceivedCount()
       Optional. How many responses were received in the window.
       
      optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasBytesSentCount

      public boolean hasBytesSentCount()
       Optional. How many bytes were sent in the window.
       
      optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasBytesSentCount in interface ClientStats.WindowStatsOrBuilder
      Returns:
      Whether the bytesSentCount field is set.
    • getBytesSentCount

      public long getBytesSentCount()
       Optional. How many bytes were sent in the window.
       
      optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBytesSentCount in interface ClientStats.WindowStatsOrBuilder
      Returns:
      The bytesSentCount.
    • setBytesSentCount

      public ClientStats.WindowStats.Builder setBytesSentCount(long value)
       Optional. How many bytes were sent in the window.
       
      optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytesSentCount to set.
      Returns:
      This builder for chaining.
    • clearBytesSentCount

      public ClientStats.WindowStats.Builder clearBytesSentCount()
       Optional. How many bytes were sent in the window.
       
      optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasWindowStartTimeEpochMillis

      public boolean hasWindowStartTimeEpochMillis()
       Optional. Start time of the window interval for which these stats are
       aggregated, expressed in epoch milliseconds.
       
      optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasWindowStartTimeEpochMillis in interface ClientStats.WindowStatsOrBuilder
      Returns:
      Whether the windowStartTimeEpochMillis field is set.
    • getWindowStartTimeEpochMillis

      public long getWindowStartTimeEpochMillis()
       Optional. Start time of the window interval for which these stats are
       aggregated, expressed in epoch milliseconds.
       
      optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWindowStartTimeEpochMillis in interface ClientStats.WindowStatsOrBuilder
      Returns:
      The windowStartTimeEpochMillis.
    • setWindowStartTimeEpochMillis

      public ClientStats.WindowStats.Builder setWindowStartTimeEpochMillis(long value)
       Optional. Start time of the window interval for which these stats are
       aggregated, expressed in epoch milliseconds.
       
      optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The windowStartTimeEpochMillis to set.
      Returns:
      This builder for chaining.
    • clearWindowStartTimeEpochMillis

      public ClientStats.WindowStats.Builder clearWindowStartTimeEpochMillis()
       Optional. Start time of the window interval for which these stats are
       aggregated, expressed in epoch milliseconds.
       
      optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasWindowMillis

      public boolean hasWindowMillis()
       Optional. Duration of the window interval for which these stats are
       aggregated, expressed in milliseconds.
       
      optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasWindowMillis in interface ClientStats.WindowStatsOrBuilder
      Returns:
      Whether the windowMillis field is set.
    • getWindowMillis

      public long getWindowMillis()
       Optional. Duration of the window interval for which these stats are
       aggregated, expressed in milliseconds.
       
      optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWindowMillis in interface ClientStats.WindowStatsOrBuilder
      Returns:
      The windowMillis.
    • setWindowMillis

      public ClientStats.WindowStats.Builder setWindowMillis(long value)
       Optional. Duration of the window interval for which these stats are
       aggregated, expressed in milliseconds.
       
      optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The windowMillis to set.
      Returns:
      This builder for chaining.
    • clearWindowMillis

      public ClientStats.WindowStats.Builder clearWindowMillis()
       Optional. Duration of the window interval for which these stats are
       aggregated, expressed in milliseconds.
       
      optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.