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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The number of quota bytes accounted to these messages.The count of messages.The minimum event timestamp across these messages.The minimum publish timestamp across these messages.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongThe number of quota bytes accounted to these messages.longThe count of messages.com.google.protobuf.TimestampThe minimum event timestamp across these messages.com.google.protobuf.Timestamp.BuilderThe minimum event timestamp across these messages.com.google.protobuf.TimestampOrBuilderThe minimum event timestamp across these messages.com.google.protobuf.TimestampThe minimum publish timestamp across these messages.com.google.protobuf.Timestamp.BuilderThe minimum publish timestamp across these messages.com.google.protobuf.TimestampOrBuilderThe minimum publish timestamp across these messages.booleanThe minimum event timestamp across these messages.booleanThe minimum publish timestamp across these messages.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMinimumEventTime(com.google.protobuf.Timestamp value) The minimum event timestamp across these messages.mergeMinimumPublishTime(com.google.protobuf.Timestamp value) The minimum publish timestamp across these messages.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setMessageBytes(long value) The number of quota bytes accounted to these messages.setMessageCount(long value) The count of messages.setMinimumEventTime(com.google.protobuf.Timestamp value) The minimum event timestamp across these messages.setMinimumEventTime(com.google.protobuf.Timestamp.Builder builderForValue) The minimum event timestamp across these messages.setMinimumPublishTime(com.google.protobuf.Timestamp value) The minimum publish timestamp across these messages.setMinimumPublishTime(com.google.protobuf.Timestamp.Builder builderForValue) The minimum publish timestamp across these messages.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
-
setField
public ComputeMessageStatsResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
-
clearField
public ComputeMessageStatsResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
-
clearOneof
public ComputeMessageStatsResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
-
setRepeatedField
public ComputeMessageStatsResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
-
addRepeatedField
public ComputeMessageStatsResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ComputeMessageStatsResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ComputeMessageStatsResponse.Builder>- Throws:
IOException
-
getMessageCount
public long getMessageCount()The count of messages.
int64 message_count = 1;- Specified by:
getMessageCountin interfaceComputeMessageStatsResponseOrBuilder- Returns:
- The messageCount.
-
setMessageCount
The count of messages.
int64 message_count = 1;- Parameters:
value- The messageCount to set.- Returns:
- This builder for chaining.
-
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:
getMessageBytesin interfaceComputeMessageStatsResponseOrBuilder- Returns:
- The messageBytes.
-
setMessageBytes
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
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:
hasMinimumPublishTimein interfaceComputeMessageStatsResponseOrBuilder- 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:
getMinimumPublishTimein interfaceComputeMessageStatsResponseOrBuilder- 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
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:
getMinimumPublishTimeOrBuilderin interfaceComputeMessageStatsResponseOrBuilder
-
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:
hasMinimumEventTimein interfaceComputeMessageStatsResponseOrBuilder- 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:
getMinimumEventTimein interfaceComputeMessageStatsResponseOrBuilder- Returns:
- The minimumEventTime.
-
setMinimumEventTime
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
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:
getMinimumEventTimeOrBuilderin interfaceComputeMessageStatsResponseOrBuilder
-
setUnknownFields
public final ComputeMessageStatsResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
-
mergeUnknownFields
public final ComputeMessageStatsResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder>
-