Package io.axoniq.axonserver.grpc.event
Class Transformation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<Transformation.Builder>
-
- io.axoniq.axonserver.grpc.event.Transformation.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TransformationOrBuilder,Cloneable
- Enclosing class:
- Transformation
public static final class Transformation.Builder extends com.google.protobuf.GeneratedMessage.Builder<Transformation.Builder> implements TransformationOrBuilder
The transformation data.
Protobuf typeio.axoniq.axonserver.grpc.event.Transformation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Transformationbuild()TransformationbuildPartial()Transformation.Builderclear()Transformation.BuilderclearAppliedAt()The timestamp at which the transformation was applied.Transformation.BuilderclearApplyRequester()The username of user who requested the transformation to be applied.Transformation.BuilderclearContext()The bounded context in which this transformation is being executed.Transformation.BuilderclearDescription()The description of the transformation.Transformation.BuilderclearSequence()The sequence of the last transformation action stored.Transformation.BuilderclearState()The state of the transformationTransformation.BuilderclearTransformationId()The identifier of the transformation.Transformation.BuilderclearVersion()The version of the transformation.longgetAppliedAt()The timestamp at which the transformation was applied.StringgetApplyRequester()The username of user who requested the transformation to be applied.com.google.protobuf.ByteStringgetApplyRequesterBytes()The username of user who requested the transformation to be applied.StringgetContext()The bounded context in which this transformation is being executed.com.google.protobuf.ByteStringgetContextBytes()The bounded context in which this transformation is being executed.TransformationgetDefaultInstanceForType()StringgetDescription()The description of the transformation.com.google.protobuf.ByteStringgetDescriptionBytes()The description of the transformation.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetSequence()The sequence of the last transformation action stored.TransformationStategetState()The state of the transformationintgetStateValue()The state of the transformationTransformationIdgetTransformationId()The identifier of the transformation.TransformationId.BuildergetTransformationIdBuilder()The identifier of the transformation.TransformationIdOrBuildergetTransformationIdOrBuilder()The identifier of the transformation.intgetVersion()The version of the transformation.booleanhasTransformationId()The identifier of the transformation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Transformation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Transformation.BuildermergeFrom(com.google.protobuf.Message other)Transformation.BuildermergeFrom(Transformation other)Transformation.BuildermergeTransformationId(TransformationId value)The identifier of the transformation.Transformation.BuildersetAppliedAt(long value)The timestamp at which the transformation was applied.Transformation.BuildersetApplyRequester(String value)The username of user who requested the transformation to be applied.Transformation.BuildersetApplyRequesterBytes(com.google.protobuf.ByteString value)The username of user who requested the transformation to be applied.Transformation.BuildersetContext(String value)The bounded context in which this transformation is being executed.Transformation.BuildersetContextBytes(com.google.protobuf.ByteString value)The bounded context in which this transformation is being executed.Transformation.BuildersetDescription(String value)The description of the transformation.Transformation.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)The description of the transformation.Transformation.BuildersetSequence(long value)The sequence of the last transformation action stored.Transformation.BuildersetState(TransformationState value)The state of the transformationTransformation.BuildersetStateValue(int value)The state of the transformationTransformation.BuildersetTransformationId(TransformationId value)The identifier of the transformation.Transformation.BuildersetTransformationId(TransformationId.Builder builderForValue)The identifier of the transformation.Transformation.BuildersetVersion(int value)The version of the transformation.-
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<Transformation.Builder>
-
clear
public Transformation.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<Transformation.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<Transformation.Builder>
-
getDefaultInstanceForType
public Transformation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Transformation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Transformation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Transformation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Transformation.Builder>
-
mergeFrom
public Transformation.Builder mergeFrom(Transformation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Transformation.Builder>
-
mergeFrom
public Transformation.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<Transformation.Builder>- Throws:
IOException
-
hasTransformationId
public boolean hasTransformationId()
The identifier of the transformation.
.io.axoniq.axonserver.grpc.event.TransformationId transformationId = 1;- Specified by:
hasTransformationIdin interfaceTransformationOrBuilder- Returns:
- Whether the transformationId field is set.
-
getTransformationId
public TransformationId getTransformationId()
The identifier of the transformation.
.io.axoniq.axonserver.grpc.event.TransformationId transformationId = 1;- Specified by:
getTransformationIdin interfaceTransformationOrBuilder- Returns:
- The transformationId.
-
setTransformationId
public Transformation.Builder setTransformationId(TransformationId value)
The identifier of the transformation.
.io.axoniq.axonserver.grpc.event.TransformationId transformationId = 1;
-
setTransformationId
public Transformation.Builder setTransformationId(TransformationId.Builder builderForValue)
The identifier of the transformation.
.io.axoniq.axonserver.grpc.event.TransformationId transformationId = 1;
-
mergeTransformationId
public Transformation.Builder mergeTransformationId(TransformationId value)
The identifier of the transformation.
.io.axoniq.axonserver.grpc.event.TransformationId transformationId = 1;
-
clearTransformationId
public Transformation.Builder clearTransformationId()
The identifier of the transformation.
.io.axoniq.axonserver.grpc.event.TransformationId transformationId = 1;
-
getTransformationIdBuilder
public TransformationId.Builder getTransformationIdBuilder()
The identifier of the transformation.
.io.axoniq.axonserver.grpc.event.TransformationId transformationId = 1;
-
getTransformationIdOrBuilder
public TransformationIdOrBuilder getTransformationIdOrBuilder()
The identifier of the transformation.
.io.axoniq.axonserver.grpc.event.TransformationId transformationId = 1;- Specified by:
getTransformationIdOrBuilderin interfaceTransformationOrBuilder
-
getStateValue
public int getStateValue()
The state of the transformation
.io.axoniq.axonserver.grpc.event.TransformationState state = 2;- Specified by:
getStateValuein interfaceTransformationOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public Transformation.Builder setStateValue(int value)
The state of the transformation
.io.axoniq.axonserver.grpc.event.TransformationState state = 2;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
getState
public TransformationState getState()
The state of the transformation
.io.axoniq.axonserver.grpc.event.TransformationState state = 2;- Specified by:
getStatein interfaceTransformationOrBuilder- Returns:
- The state.
-
setState
public Transformation.Builder setState(TransformationState value)
The state of the transformation
.io.axoniq.axonserver.grpc.event.TransformationState state = 2;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
public Transformation.Builder clearState()
The state of the transformation
.io.axoniq.axonserver.grpc.event.TransformationState state = 2;- Returns:
- This builder for chaining.
-
getSequence
public long getSequence()
The sequence of the last transformation action stored. Needed for checking sequential consistency of requests.
int64 sequence = 3;- Specified by:
getSequencein interfaceTransformationOrBuilder- Returns:
- The sequence.
-
setSequence
public Transformation.Builder setSequence(long value)
The sequence of the last transformation action stored. Needed for checking sequential consistency of requests.
int64 sequence = 3;- Parameters:
value- The sequence to set.- Returns:
- This builder for chaining.
-
clearSequence
public Transformation.Builder clearSequence()
The sequence of the last transformation action stored. Needed for checking sequential consistency of requests.
int64 sequence = 3;- Returns:
- This builder for chaining.
-
getContext
public String getContext()
The bounded context in which this transformation is being executed.
string context = 4;- Specified by:
getContextin interfaceTransformationOrBuilder- Returns:
- The context.
-
getContextBytes
public com.google.protobuf.ByteString getContextBytes()
The bounded context in which this transformation is being executed.
string context = 4;- Specified by:
getContextBytesin interfaceTransformationOrBuilder- Returns:
- The bytes for context.
-
setContext
public Transformation.Builder setContext(String value)
The bounded context in which this transformation is being executed.
string context = 4;- Parameters:
value- The context to set.- Returns:
- This builder for chaining.
-
clearContext
public Transformation.Builder clearContext()
The bounded context in which this transformation is being executed.
string context = 4;- Returns:
- This builder for chaining.
-
setContextBytes
public Transformation.Builder setContextBytes(com.google.protobuf.ByteString value)
The bounded context in which this transformation is being executed.
string context = 4;- Parameters:
value- The bytes for context to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
The description of the transformation.
string description = 5;- Specified by:
getDescriptionin interfaceTransformationOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
The description of the transformation.
string description = 5;- Specified by:
getDescriptionBytesin interfaceTransformationOrBuilder- Returns:
- The bytes for description.
-
setDescription
public Transformation.Builder setDescription(String value)
The description of the transformation.
string description = 5;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Transformation.Builder clearDescription()
The description of the transformation.
string description = 5;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Transformation.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
The description of the transformation.
string description = 5;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getAppliedAt
public long getAppliedAt()
The timestamp at which the transformation was applied. Set to -1 if the transformation was not applied.
int64 applied_at = 6;- Specified by:
getAppliedAtin interfaceTransformationOrBuilder- Returns:
- The appliedAt.
-
setAppliedAt
public Transformation.Builder setAppliedAt(long value)
The timestamp at which the transformation was applied. Set to -1 if the transformation was not applied.
int64 applied_at = 6;- Parameters:
value- The appliedAt to set.- Returns:
- This builder for chaining.
-
clearAppliedAt
public Transformation.Builder clearAppliedAt()
The timestamp at which the transformation was applied. Set to -1 if the transformation was not applied.
int64 applied_at = 6;- Returns:
- This builder for chaining.
-
getApplyRequester
public String getApplyRequester()
The username of user who requested the transformation to be applied. Empty if the transformation was not applied.
string apply_requester = 7;- Specified by:
getApplyRequesterin interfaceTransformationOrBuilder- Returns:
- The applyRequester.
-
getApplyRequesterBytes
public com.google.protobuf.ByteString getApplyRequesterBytes()
The username of user who requested the transformation to be applied. Empty if the transformation was not applied.
string apply_requester = 7;- Specified by:
getApplyRequesterBytesin interfaceTransformationOrBuilder- Returns:
- The bytes for applyRequester.
-
setApplyRequester
public Transformation.Builder setApplyRequester(String value)
The username of user who requested the transformation to be applied. Empty if the transformation was not applied.
string apply_requester = 7;- Parameters:
value- The applyRequester to set.- Returns:
- This builder for chaining.
-
clearApplyRequester
public Transformation.Builder clearApplyRequester()
The username of user who requested the transformation to be applied. Empty if the transformation was not applied.
string apply_requester = 7;- Returns:
- This builder for chaining.
-
setApplyRequesterBytes
public Transformation.Builder setApplyRequesterBytes(com.google.protobuf.ByteString value)
The username of user who requested the transformation to be applied. Empty if the transformation was not applied.
string apply_requester = 7;- Parameters:
value- The bytes for applyRequester to set.- Returns:
- This builder for chaining.
-
getVersion
public int getVersion()
The version of the transformation. The sequence
int32 version = 8;- Specified by:
getVersionin interfaceTransformationOrBuilder- Returns:
- The version.
-
setVersion
public Transformation.Builder setVersion(int value)
The version of the transformation. The sequence
int32 version = 8;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
public Transformation.Builder clearVersion()
The version of the transformation. The sequence
int32 version = 8;- Returns:
- This builder for chaining.
-
-