Package io.axoniq.axonserver.grpc.admin
Class EventProcessorSegment.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<EventProcessorSegment.Builder>
-
- io.axoniq.axonserver.grpc.admin.EventProcessorSegment.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,EventProcessorSegmentOrBuilder,Cloneable
- Enclosing class:
- EventProcessorSegment
public static final class EventProcessorSegment.Builder extends com.google.protobuf.GeneratedMessage.Builder<EventProcessorSegment.Builder> implements EventProcessorSegmentOrBuilder
Protobuf typeio.axoniq.axonserver.grpc.admin.EventProcessorSegment
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EventProcessorSegmentbuild()EventProcessorSegmentbuildPartial()EventProcessorSegment.Builderclear()EventProcessorSegment.BuilderclearClaimedBy()the id of the client that claimed the segmentEventProcessorSegment.BuilderclearError()the error description, if the segment is in errorEventProcessorSegment.BuilderclearId()the identifier of the segmentEventProcessorSegment.BuilderclearIsCaughtUp()true if the segment has ever reached the head of the stream since it was started, false otherwiseEventProcessorSegment.BuilderclearIsInError()true if the segment is in an error loop, false otherwiseEventProcessorSegment.BuilderclearIsReplaying()true if the segment is replaying, false otherwiseEventProcessorSegment.BuilderclearOnePartOf()the fractional unit representing the size of the segmentEventProcessorSegment.BuilderclearTokenPosition()the approximate position of the tokenStringgetClaimedBy()the id of the client that claimed the segmentcom.google.protobuf.ByteStringgetClaimedByBytes()the id of the client that claimed the segmentEventProcessorSegmentgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetError()the error description, if the segment is in errorcom.google.protobuf.ByteStringgetErrorBytes()the error description, if the segment is in errorintgetId()the identifier of the segmentbooleangetIsCaughtUp()true if the segment has ever reached the head of the stream since it was started, false otherwisebooleangetIsInError()true if the segment is in an error loop, false otherwisebooleangetIsReplaying()true if the segment is replaying, false otherwiseintgetOnePartOf()the fractional unit representing the size of the segmentlonggetTokenPosition()the approximate position of the tokenprotected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()EventProcessorSegment.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)EventProcessorSegment.BuildermergeFrom(com.google.protobuf.Message other)EventProcessorSegment.BuildermergeFrom(EventProcessorSegment other)EventProcessorSegment.BuildersetClaimedBy(String value)the id of the client that claimed the segmentEventProcessorSegment.BuildersetClaimedByBytes(com.google.protobuf.ByteString value)the id of the client that claimed the segmentEventProcessorSegment.BuildersetError(String value)the error description, if the segment is in errorEventProcessorSegment.BuildersetErrorBytes(com.google.protobuf.ByteString value)the error description, if the segment is in errorEventProcessorSegment.BuildersetId(int value)the identifier of the segmentEventProcessorSegment.BuildersetIsCaughtUp(boolean value)true if the segment has ever reached the head of the stream since it was started, false otherwiseEventProcessorSegment.BuildersetIsInError(boolean value)true if the segment is in an error loop, false otherwiseEventProcessorSegment.BuildersetIsReplaying(boolean value)true if the segment is replaying, false otherwiseEventProcessorSegment.BuildersetOnePartOf(int value)the fractional unit representing the size of the segmentEventProcessorSegment.BuildersetTokenPosition(long value)the approximate position of the token-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<EventProcessorSegment.Builder>
-
clear
public EventProcessorSegment.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<EventProcessorSegment.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.GeneratedMessage.Builder<EventProcessorSegment.Builder>
-
getDefaultInstanceForType
public EventProcessorSegment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public EventProcessorSegment build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EventProcessorSegment buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public EventProcessorSegment.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EventProcessorSegment.Builder>
-
mergeFrom
public EventProcessorSegment.Builder mergeFrom(EventProcessorSegment other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<EventProcessorSegment.Builder>
-
mergeFrom
public EventProcessorSegment.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<EventProcessorSegment.Builder>- Throws:
IOException
-
getId
public int getId()
the identifier of the segment
int32 id = 1;- Specified by:
getIdin interfaceEventProcessorSegmentOrBuilder- Returns:
- The id.
-
setId
public EventProcessorSegment.Builder setId(int value)
the identifier of the segment
int32 id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public EventProcessorSegment.Builder clearId()
the identifier of the segment
int32 id = 1;- Returns:
- This builder for chaining.
-
getOnePartOf
public int getOnePartOf()
the fractional unit representing the size of the segment
int32 one_part_of = 2;- Specified by:
getOnePartOfin interfaceEventProcessorSegmentOrBuilder- Returns:
- The onePartOf.
-
setOnePartOf
public EventProcessorSegment.Builder setOnePartOf(int value)
the fractional unit representing the size of the segment
int32 one_part_of = 2;- Parameters:
value- The onePartOf to set.- Returns:
- This builder for chaining.
-
clearOnePartOf
public EventProcessorSegment.Builder clearOnePartOf()
the fractional unit representing the size of the segment
int32 one_part_of = 2;- Returns:
- This builder for chaining.
-
getClaimedBy
public String getClaimedBy()
the id of the client that claimed the segment
string claimed_by = 3;- Specified by:
getClaimedByin interfaceEventProcessorSegmentOrBuilder- Returns:
- The claimedBy.
-
getClaimedByBytes
public com.google.protobuf.ByteString getClaimedByBytes()
the id of the client that claimed the segment
string claimed_by = 3;- Specified by:
getClaimedByBytesin interfaceEventProcessorSegmentOrBuilder- Returns:
- The bytes for claimedBy.
-
setClaimedBy
public EventProcessorSegment.Builder setClaimedBy(String value)
the id of the client that claimed the segment
string claimed_by = 3;- Parameters:
value- The claimedBy to set.- Returns:
- This builder for chaining.
-
clearClaimedBy
public EventProcessorSegment.Builder clearClaimedBy()
the id of the client that claimed the segment
string claimed_by = 3;- Returns:
- This builder for chaining.
-
setClaimedByBytes
public EventProcessorSegment.Builder setClaimedByBytes(com.google.protobuf.ByteString value)
the id of the client that claimed the segment
string claimed_by = 3;- Parameters:
value- The bytes for claimedBy to set.- Returns:
- This builder for chaining.
-
getIsCaughtUp
public boolean getIsCaughtUp()
true if the segment has ever reached the head of the stream since it was started, false otherwise
bool is_caughtUp = 4;- Specified by:
getIsCaughtUpin interfaceEventProcessorSegmentOrBuilder- Returns:
- The isCaughtUp.
-
setIsCaughtUp
public EventProcessorSegment.Builder setIsCaughtUp(boolean value)
true if the segment has ever reached the head of the stream since it was started, false otherwise
bool is_caughtUp = 4;- Parameters:
value- The isCaughtUp to set.- Returns:
- This builder for chaining.
-
clearIsCaughtUp
public EventProcessorSegment.Builder clearIsCaughtUp()
true if the segment has ever reached the head of the stream since it was started, false otherwise
bool is_caughtUp = 4;- Returns:
- This builder for chaining.
-
getIsReplaying
public boolean getIsReplaying()
true if the segment is replaying, false otherwise
bool is_replaying = 5;- Specified by:
getIsReplayingin interfaceEventProcessorSegmentOrBuilder- Returns:
- The isReplaying.
-
setIsReplaying
public EventProcessorSegment.Builder setIsReplaying(boolean value)
true if the segment is replaying, false otherwise
bool is_replaying = 5;- Parameters:
value- The isReplaying to set.- Returns:
- This builder for chaining.
-
clearIsReplaying
public EventProcessorSegment.Builder clearIsReplaying()
true if the segment is replaying, false otherwise
bool is_replaying = 5;- Returns:
- This builder for chaining.
-
getTokenPosition
public long getTokenPosition()
the approximate position of the token
int64 token_position = 6;- Specified by:
getTokenPositionin interfaceEventProcessorSegmentOrBuilder- Returns:
- The tokenPosition.
-
setTokenPosition
public EventProcessorSegment.Builder setTokenPosition(long value)
the approximate position of the token
int64 token_position = 6;- Parameters:
value- The tokenPosition to set.- Returns:
- This builder for chaining.
-
clearTokenPosition
public EventProcessorSegment.Builder clearTokenPosition()
the approximate position of the token
int64 token_position = 6;- Returns:
- This builder for chaining.
-
getIsInError
public boolean getIsInError()
true if the segment is in an error loop, false otherwise
bool is_in_error = 7;- Specified by:
getIsInErrorin interfaceEventProcessorSegmentOrBuilder- Returns:
- The isInError.
-
setIsInError
public EventProcessorSegment.Builder setIsInError(boolean value)
true if the segment is in an error loop, false otherwise
bool is_in_error = 7;- Parameters:
value- The isInError to set.- Returns:
- This builder for chaining.
-
clearIsInError
public EventProcessorSegment.Builder clearIsInError()
true if the segment is in an error loop, false otherwise
bool is_in_error = 7;- Returns:
- This builder for chaining.
-
getError
public String getError()
the error description, if the segment is in error
string error = 8;- Specified by:
getErrorin interfaceEventProcessorSegmentOrBuilder- Returns:
- The error.
-
getErrorBytes
public com.google.protobuf.ByteString getErrorBytes()
the error description, if the segment is in error
string error = 8;- Specified by:
getErrorBytesin interfaceEventProcessorSegmentOrBuilder- Returns:
- The bytes for error.
-
setError
public EventProcessorSegment.Builder setError(String value)
the error description, if the segment is in error
string error = 8;- Parameters:
value- The error to set.- Returns:
- This builder for chaining.
-
clearError
public EventProcessorSegment.Builder clearError()
the error description, if the segment is in error
string error = 8;- Returns:
- This builder for chaining.
-
setErrorBytes
public EventProcessorSegment.Builder setErrorBytes(com.google.protobuf.ByteString value)
the error description, if the segment is in error
string error = 8;- Parameters:
value- The bytes for error to set.- Returns:
- This builder for chaining.
-
-