Class ComputeMessageStatsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.Builder
All Implemented Interfaces:
ComputeMessageStatsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ComputeMessageStatsResponse

public static final class ComputeMessageStatsResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder> implements ComputeMessageStatsResponseOrBuilder
 Response containing stats for messages in the requested topic and partition.
 
Protobuf type google.cloud.pubsublite.v1.ComputeMessageStatsResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.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.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.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.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
    • getDefaultInstanceForType

      public ComputeMessageStatsResponse 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 ComputeMessageStatsResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
    • setField

      public ComputeMessageStatsResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
    • clearField

      public ComputeMessageStatsResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
    • clearOneof

      public ComputeMessageStatsResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
    • setRepeatedField

      public ComputeMessageStatsResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
    • addRepeatedField

      public ComputeMessageStatsResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
    • mergeFrom

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

    • isInitialized

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

      public ComputeMessageStatsResponse.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<ComputeMessageStatsResponse.Builder>
      Throws:
      IOException
    • getMessageCount

      public long getMessageCount()
       The count of messages.
       
      int64 message_count = 1;
      Specified by:
      getMessageCount in interface ComputeMessageStatsResponseOrBuilder
      Returns:
      The messageCount.
    • setMessageCount

      public ComputeMessageStatsResponse.Builder setMessageCount(long value)
       The count of messages.
       
      int64 message_count = 1;
      Parameters:
      value - The messageCount to set.
      Returns:
      This builder for chaining.
    • clearMessageCount

      public ComputeMessageStatsResponse.Builder clearMessageCount()
       The count of messages.
       
      int64 message_count = 1;
      Returns:
      This builder for chaining.
    • getMessageBytes

      public long getMessageBytes()
       The number of quota bytes accounted to these messages.
       
      int64 message_bytes = 2;
      Specified by:
      getMessageBytes in interface ComputeMessageStatsResponseOrBuilder
      Returns:
      The messageBytes.
    • setMessageBytes

      public ComputeMessageStatsResponse.Builder setMessageBytes(long value)
       The number of quota bytes accounted to these messages.
       
      int64 message_bytes = 2;
      Parameters:
      value - The messageBytes to set.
      Returns:
      This builder for chaining.
    • clearMessageBytes

      public ComputeMessageStatsResponse.Builder clearMessageBytes()
       The number of quota bytes accounted to these messages.
       
      int64 message_bytes = 2;
      Returns:
      This builder for chaining.
    • hasMinimumPublishTime

      public boolean hasMinimumPublishTime()
       The minimum publish timestamp across these messages. Note that publish
       timestamps within a partition are not guaranteed to be non-decreasing. The
       timestamp will be unset if there are no messages.
       
      .google.protobuf.Timestamp minimum_publish_time = 3;
      Specified by:
      hasMinimumPublishTime in interface ComputeMessageStatsResponseOrBuilder
      Returns:
      Whether the minimumPublishTime field is set.
    • getMinimumPublishTime

      public com.google.protobuf.Timestamp getMinimumPublishTime()
       The minimum publish timestamp across these messages. Note that publish
       timestamps within a partition are not guaranteed to be non-decreasing. The
       timestamp will be unset if there are no messages.
       
      .google.protobuf.Timestamp minimum_publish_time = 3;
      Specified by:
      getMinimumPublishTime in interface ComputeMessageStatsResponseOrBuilder
      Returns:
      The minimumPublishTime.
    • setMinimumPublishTime

      public ComputeMessageStatsResponse.Builder setMinimumPublishTime(com.google.protobuf.Timestamp value)
       The minimum publish timestamp across these messages. Note that publish
       timestamps within a partition are not guaranteed to be non-decreasing. The
       timestamp will be unset if there are no messages.
       
      .google.protobuf.Timestamp minimum_publish_time = 3;
    • setMinimumPublishTime

      public ComputeMessageStatsResponse.Builder setMinimumPublishTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The minimum publish timestamp across these messages. Note that publish
       timestamps within a partition are not guaranteed to be non-decreasing. The
       timestamp will be unset if there are no messages.
       
      .google.protobuf.Timestamp minimum_publish_time = 3;
    • mergeMinimumPublishTime

      public ComputeMessageStatsResponse.Builder mergeMinimumPublishTime(com.google.protobuf.Timestamp value)
       The minimum publish timestamp across these messages. Note that publish
       timestamps within a partition are not guaranteed to be non-decreasing. The
       timestamp will be unset if there are no messages.
       
      .google.protobuf.Timestamp minimum_publish_time = 3;
    • clearMinimumPublishTime

      public ComputeMessageStatsResponse.Builder clearMinimumPublishTime()
       The minimum publish timestamp across these messages. Note that publish
       timestamps within a partition are not guaranteed to be non-decreasing. The
       timestamp will be unset if there are no messages.
       
      .google.protobuf.Timestamp minimum_publish_time = 3;
    • getMinimumPublishTimeBuilder

      public com.google.protobuf.Timestamp.Builder getMinimumPublishTimeBuilder()
       The minimum publish timestamp across these messages. Note that publish
       timestamps within a partition are not guaranteed to be non-decreasing. The
       timestamp will be unset if there are no messages.
       
      .google.protobuf.Timestamp minimum_publish_time = 3;
    • getMinimumPublishTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder()
       The minimum publish timestamp across these messages. Note that publish
       timestamps within a partition are not guaranteed to be non-decreasing. The
       timestamp will be unset if there are no messages.
       
      .google.protobuf.Timestamp minimum_publish_time = 3;
      Specified by:
      getMinimumPublishTimeOrBuilder in interface ComputeMessageStatsResponseOrBuilder
    • hasMinimumEventTime

      public boolean hasMinimumEventTime()
       The minimum event timestamp across these messages. For the purposes of this
       computation, if a message does not have an event time, we use the publish
       time. The timestamp will be unset if there are no messages.
       
      .google.protobuf.Timestamp minimum_event_time = 4;
      Specified by:
      hasMinimumEventTime in interface ComputeMessageStatsResponseOrBuilder
      Returns:
      Whether the minimumEventTime field is set.
    • getMinimumEventTime

      public com.google.protobuf.Timestamp getMinimumEventTime()
       The minimum event timestamp across these messages. For the purposes of this
       computation, if a message does not have an event time, we use the publish
       time. The timestamp will be unset if there are no messages.
       
      .google.protobuf.Timestamp minimum_event_time = 4;
      Specified by:
      getMinimumEventTime in interface ComputeMessageStatsResponseOrBuilder
      Returns:
      The minimumEventTime.
    • setMinimumEventTime

      public ComputeMessageStatsResponse.Builder setMinimumEventTime(com.google.protobuf.Timestamp value)
       The minimum event timestamp across these messages. For the purposes of this
       computation, if a message does not have an event time, we use the publish
       time. The timestamp will be unset if there are no messages.
       
      .google.protobuf.Timestamp minimum_event_time = 4;
    • setMinimumEventTime

      public ComputeMessageStatsResponse.Builder setMinimumEventTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The minimum event timestamp across these messages. For the purposes of this
       computation, if a message does not have an event time, we use the publish
       time. The timestamp will be unset if there are no messages.
       
      .google.protobuf.Timestamp minimum_event_time = 4;
    • mergeMinimumEventTime

      public ComputeMessageStatsResponse.Builder mergeMinimumEventTime(com.google.protobuf.Timestamp value)
       The minimum event timestamp across these messages. For the purposes of this
       computation, if a message does not have an event time, we use the publish
       time. The timestamp will be unset if there are no messages.
       
      .google.protobuf.Timestamp minimum_event_time = 4;
    • clearMinimumEventTime

      public ComputeMessageStatsResponse.Builder clearMinimumEventTime()
       The minimum event timestamp across these messages. For the purposes of this
       computation, if a message does not have an event time, we use the publish
       time. The timestamp will be unset if there are no messages.
       
      .google.protobuf.Timestamp minimum_event_time = 4;
    • getMinimumEventTimeBuilder

      public com.google.protobuf.Timestamp.Builder getMinimumEventTimeBuilder()
       The minimum event timestamp across these messages. For the purposes of this
       computation, if a message does not have an event time, we use the publish
       time. The timestamp will be unset if there are no messages.
       
      .google.protobuf.Timestamp minimum_event_time = 4;
    • getMinimumEventTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getMinimumEventTimeOrBuilder()
       The minimum event timestamp across these messages. For the purposes of this
       computation, if a message does not have an event time, we use the publish
       time. The timestamp will be unset if there are no messages.
       
      .google.protobuf.Timestamp minimum_event_time = 4;
      Specified by:
      getMinimumEventTimeOrBuilder in interface ComputeMessageStatsResponseOrBuilder
    • setUnknownFields

      public final ComputeMessageStatsResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
    • mergeUnknownFields

      public final ComputeMessageStatsResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>