Class ComputeMessageStatsRequest.Builder

    • Method Detail

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

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

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

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

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

        public ComputeMessageStatsRequest.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<ComputeMessageStatsRequest.Builder>
        Throws:
        IOException
      • getTopic

        public String getTopic()
         Required. The topic for which we should compute message stats.
         
        string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getTopic in interface ComputeMessageStatsRequestOrBuilder
        Returns:
        The topic.
      • getTopicBytes

        public com.google.protobuf.ByteString getTopicBytes()
         Required. The topic for which we should compute message stats.
         
        string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getTopicBytes in interface ComputeMessageStatsRequestOrBuilder
        Returns:
        The bytes for topic.
      • setTopic

        public ComputeMessageStatsRequest.Builder setTopic​(String value)
         Required. The topic for which we should compute message stats.
         
        string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The topic to set.
        Returns:
        This builder for chaining.
      • clearTopic

        public ComputeMessageStatsRequest.Builder clearTopic()
         Required. The topic for which we should compute message stats.
         
        string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setTopicBytes

        public ComputeMessageStatsRequest.Builder setTopicBytes​(com.google.protobuf.ByteString value)
         Required. The topic for which we should compute message stats.
         
        string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for topic to set.
        Returns:
        This builder for chaining.
      • getPartition

        public long getPartition()
         Required. The partition for which we should compute message stats.
         
        int64 partition = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPartition in interface ComputeMessageStatsRequestOrBuilder
        Returns:
        The partition.
      • setPartition

        public ComputeMessageStatsRequest.Builder setPartition​(long value)
         Required. The partition for which we should compute message stats.
         
        int64 partition = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The partition to set.
        Returns:
        This builder for chaining.
      • clearPartition

        public ComputeMessageStatsRequest.Builder clearPartition()
         Required. The partition for which we should compute message stats.
         
        int64 partition = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • hasStartCursor

        public boolean hasStartCursor()
         The inclusive start of the range.
         
        .google.cloud.pubsublite.v1.Cursor start_cursor = 3;
        Specified by:
        hasStartCursor in interface ComputeMessageStatsRequestOrBuilder
        Returns:
        Whether the startCursor field is set.
      • getStartCursorBuilder

        public Cursor.Builder getStartCursorBuilder()
         The inclusive start of the range.
         
        .google.cloud.pubsublite.v1.Cursor start_cursor = 3;
      • hasEndCursor

        public boolean hasEndCursor()
         The exclusive end of the range. The range is empty if end_cursor <=
         start_cursor. Specifying a start_cursor before the first message and an
         end_cursor after the last message will retrieve all messages.
         
        .google.cloud.pubsublite.v1.Cursor end_cursor = 4;
        Specified by:
        hasEndCursor in interface ComputeMessageStatsRequestOrBuilder
        Returns:
        Whether the endCursor field is set.
      • getEndCursor

        public Cursor getEndCursor()
         The exclusive end of the range. The range is empty if end_cursor <=
         start_cursor. Specifying a start_cursor before the first message and an
         end_cursor after the last message will retrieve all messages.
         
        .google.cloud.pubsublite.v1.Cursor end_cursor = 4;
        Specified by:
        getEndCursor in interface ComputeMessageStatsRequestOrBuilder
        Returns:
        The endCursor.
      • setEndCursor

        public ComputeMessageStatsRequest.Builder setEndCursor​(Cursor value)
         The exclusive end of the range. The range is empty if end_cursor <=
         start_cursor. Specifying a start_cursor before the first message and an
         end_cursor after the last message will retrieve all messages.
         
        .google.cloud.pubsublite.v1.Cursor end_cursor = 4;
      • setEndCursor

        public ComputeMessageStatsRequest.Builder setEndCursor​(Cursor.Builder builderForValue)
         The exclusive end of the range. The range is empty if end_cursor <=
         start_cursor. Specifying a start_cursor before the first message and an
         end_cursor after the last message will retrieve all messages.
         
        .google.cloud.pubsublite.v1.Cursor end_cursor = 4;
      • mergeEndCursor

        public ComputeMessageStatsRequest.Builder mergeEndCursor​(Cursor value)
         The exclusive end of the range. The range is empty if end_cursor <=
         start_cursor. Specifying a start_cursor before the first message and an
         end_cursor after the last message will retrieve all messages.
         
        .google.cloud.pubsublite.v1.Cursor end_cursor = 4;
      • clearEndCursor

        public ComputeMessageStatsRequest.Builder clearEndCursor()
         The exclusive end of the range. The range is empty if end_cursor <=
         start_cursor. Specifying a start_cursor before the first message and an
         end_cursor after the last message will retrieve all messages.
         
        .google.cloud.pubsublite.v1.Cursor end_cursor = 4;
      • getEndCursorBuilder

        public Cursor.Builder getEndCursorBuilder()
         The exclusive end of the range. The range is empty if end_cursor <=
         start_cursor. Specifying a start_cursor before the first message and an
         end_cursor after the last message will retrieve all messages.
         
        .google.cloud.pubsublite.v1.Cursor end_cursor = 4;
      • getEndCursorOrBuilder

        public CursorOrBuilder getEndCursorOrBuilder()
         The exclusive end of the range. The range is empty if end_cursor <=
         start_cursor. Specifying a start_cursor before the first message and an
         end_cursor after the last message will retrieve all messages.
         
        .google.cloud.pubsublite.v1.Cursor end_cursor = 4;
        Specified by:
        getEndCursorOrBuilder in interface ComputeMessageStatsRequestOrBuilder
      • setUnknownFields

        public final ComputeMessageStatsRequest.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<ComputeMessageStatsRequest.Builder>
      • mergeUnknownFields

        public final ComputeMessageStatsRequest.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<ComputeMessageStatsRequest.Builder>