public static final class ProcedureProtos.Procedure.Builder extends com.google.protobuf.GeneratedMessage.Builder<ProcedureProtos.Procedure.Builder> implements ProcedureProtos.ProcedureOrBuilder
Procedure
Procedure metadata, serialized by the ProcedureStore to be able to recover the old state.
Modifier and Type | Method and Description |
---|---|
ProcedureProtos.Procedure.Builder |
addAllStackId(Iterable<? extends Integer> values)
repeated uint32 stack_id = 7; |
ProcedureProtos.Procedure.Builder |
addStackId(int value)
repeated uint32 stack_id = 7; |
ProcedureProtos.Procedure |
build() |
ProcedureProtos.Procedure |
buildPartial() |
ProcedureProtos.Procedure.Builder |
clear() |
ProcedureProtos.Procedure.Builder |
clearClassName()
required string class_name = 1; |
ProcedureProtos.Procedure.Builder |
clearException()
optional .ForeignExceptionMessage exception = 10; |
ProcedureProtos.Procedure.Builder |
clearLastUpdate()
required uint64 last_update = 8; |
ProcedureProtos.Procedure.Builder |
clearNonce()
optional uint64 nonce = 14 [default = 0]; |
ProcedureProtos.Procedure.Builder |
clearNonceGroup()
optional uint64 nonce_group = 13 [default = 0]; |
ProcedureProtos.Procedure.Builder |
clearOwner()
optional string owner = 5; |
ProcedureProtos.Procedure.Builder |
clearParentId()
optional uint64 parent_id = 2; |
ProcedureProtos.Procedure.Builder |
clearProcId()
required uint64 proc_id = 3; |
ProcedureProtos.Procedure.Builder |
clearResult()
optional bytes result = 11; |
ProcedureProtos.Procedure.Builder |
clearStackId()
repeated uint32 stack_id = 7; |
ProcedureProtos.Procedure.Builder |
clearStartTime()
required uint64 start_time = 4; |
ProcedureProtos.Procedure.Builder |
clearState()
required .ProcedureState state = 6; |
ProcedureProtos.Procedure.Builder |
clearStateData()
optional bytes state_data = 12; |
ProcedureProtos.Procedure.Builder |
clearTimeout()
optional uint32 timeout = 9; |
ProcedureProtos.Procedure.Builder |
clone() |
String |
getClassName()
required string class_name = 1; |
com.google.protobuf.ByteString |
getClassNameBytes()
required string class_name = 1; |
ProcedureProtos.Procedure |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
ErrorHandlingProtos.ForeignExceptionMessage |
getException()
optional .ForeignExceptionMessage exception = 10; |
ErrorHandlingProtos.ForeignExceptionMessage.Builder |
getExceptionBuilder()
optional .ForeignExceptionMessage exception = 10; |
ErrorHandlingProtos.ForeignExceptionMessageOrBuilder |
getExceptionOrBuilder()
optional .ForeignExceptionMessage exception = 10; |
long |
getLastUpdate()
required uint64 last_update = 8; |
long |
getNonce()
optional uint64 nonce = 14 [default = 0]; |
long |
getNonceGroup()
optional uint64 nonce_group = 13 [default = 0]; |
String |
getOwner()
optional string owner = 5; |
com.google.protobuf.ByteString |
getOwnerBytes()
optional string owner = 5; |
long |
getParentId()
optional uint64 parent_id = 2; |
long |
getProcId()
required uint64 proc_id = 3; |
com.google.protobuf.ByteString |
getResult()
optional bytes result = 11; |
int |
getStackId(int index)
repeated uint32 stack_id = 7; |
int |
getStackIdCount()
repeated uint32 stack_id = 7; |
List<Integer> |
getStackIdList()
repeated uint32 stack_id = 7; |
long |
getStartTime()
required uint64 start_time = 4; |
ProcedureProtos.ProcedureState |
getState()
required .ProcedureState state = 6; |
com.google.protobuf.ByteString |
getStateData()
optional bytes state_data = 12; |
int |
getTimeout()
optional uint32 timeout = 9; |
boolean |
hasClassName()
required string class_name = 1; |
boolean |
hasException()
optional .ForeignExceptionMessage exception = 10; |
boolean |
hasLastUpdate()
required uint64 last_update = 8; |
boolean |
hasNonce()
optional uint64 nonce = 14 [default = 0]; |
boolean |
hasNonceGroup()
optional uint64 nonce_group = 13 [default = 0]; |
boolean |
hasOwner()
optional string owner = 5; |
boolean |
hasParentId()
optional uint64 parent_id = 2; |
boolean |
hasProcId()
required uint64 proc_id = 3; |
boolean |
hasResult()
optional bytes result = 11; |
boolean |
hasStartTime()
required uint64 start_time = 4; |
boolean |
hasState()
required .ProcedureState state = 6; |
boolean |
hasStateData()
optional bytes state_data = 12; |
boolean |
hasTimeout()
optional uint32 timeout = 9; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ProcedureProtos.Procedure.Builder |
mergeException(ErrorHandlingProtos.ForeignExceptionMessage value)
optional .ForeignExceptionMessage exception = 10; |
ProcedureProtos.Procedure.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ProcedureProtos.Procedure.Builder |
mergeFrom(com.google.protobuf.Message other) |
ProcedureProtos.Procedure.Builder |
mergeFrom(ProcedureProtos.Procedure other) |
ProcedureProtos.Procedure.Builder |
setClassName(String value)
required string class_name = 1; |
ProcedureProtos.Procedure.Builder |
setClassNameBytes(com.google.protobuf.ByteString value)
required string class_name = 1; |
ProcedureProtos.Procedure.Builder |
setException(ErrorHandlingProtos.ForeignExceptionMessage.Builder builderForValue)
optional .ForeignExceptionMessage exception = 10; |
ProcedureProtos.Procedure.Builder |
setException(ErrorHandlingProtos.ForeignExceptionMessage value)
optional .ForeignExceptionMessage exception = 10; |
ProcedureProtos.Procedure.Builder |
setLastUpdate(long value)
required uint64 last_update = 8; |
ProcedureProtos.Procedure.Builder |
setNonce(long value)
optional uint64 nonce = 14 [default = 0]; |
ProcedureProtos.Procedure.Builder |
setNonceGroup(long value)
optional uint64 nonce_group = 13 [default = 0]; |
ProcedureProtos.Procedure.Builder |
setOwner(String value)
optional string owner = 5; |
ProcedureProtos.Procedure.Builder |
setOwnerBytes(com.google.protobuf.ByteString value)
optional string owner = 5; |
ProcedureProtos.Procedure.Builder |
setParentId(long value)
optional uint64 parent_id = 2; |
ProcedureProtos.Procedure.Builder |
setProcId(long value)
required uint64 proc_id = 3; |
ProcedureProtos.Procedure.Builder |
setResult(com.google.protobuf.ByteString value)
optional bytes result = 11; |
ProcedureProtos.Procedure.Builder |
setStackId(int index,
int value)
repeated uint32 stack_id = 7; |
ProcedureProtos.Procedure.Builder |
setStartTime(long value)
required uint64 start_time = 4; |
ProcedureProtos.Procedure.Builder |
setState(ProcedureProtos.ProcedureState value)
required .ProcedureState state = 6; |
ProcedureProtos.Procedure.Builder |
setStateData(com.google.protobuf.ByteString value)
optional bytes state_data = 12; |
ProcedureProtos.Procedure.Builder |
setTimeout(int value)
optional uint32 timeout = 9; |
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
addAll, newUninitializedMessageException
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<ProcedureProtos.Procedure.Builder>
public ProcedureProtos.Procedure.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<ProcedureProtos.Procedure.Builder>
public ProcedureProtos.Procedure.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessage.Builder<ProcedureProtos.Procedure.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<ProcedureProtos.Procedure.Builder>
public ProcedureProtos.Procedure getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ProcedureProtos.Procedure build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ProcedureProtos.Procedure buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ProcedureProtos.Procedure.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ProcedureProtos.Procedure.Builder>
public ProcedureProtos.Procedure.Builder mergeFrom(ProcedureProtos.Procedure other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<ProcedureProtos.Procedure.Builder>
public ProcedureProtos.Procedure.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ProcedureProtos.Procedure.Builder>
IOException
public boolean hasClassName()
required string class_name = 1;
internal "static" state
hasClassName
in interface ProcedureProtos.ProcedureOrBuilder
public String getClassName()
required string class_name = 1;
internal "static" state
getClassName
in interface ProcedureProtos.ProcedureOrBuilder
public com.google.protobuf.ByteString getClassNameBytes()
required string class_name = 1;
internal "static" state
getClassNameBytes
in interface ProcedureProtos.ProcedureOrBuilder
public ProcedureProtos.Procedure.Builder setClassName(String value)
required string class_name = 1;
internal "static" state
public ProcedureProtos.Procedure.Builder clearClassName()
required string class_name = 1;
internal "static" state
public ProcedureProtos.Procedure.Builder setClassNameBytes(com.google.protobuf.ByteString value)
required string class_name = 1;
internal "static" state
public boolean hasParentId()
optional uint64 parent_id = 2;
parent if not a root-procedure otherwise not set
hasParentId
in interface ProcedureProtos.ProcedureOrBuilder
public long getParentId()
optional uint64 parent_id = 2;
parent if not a root-procedure otherwise not set
getParentId
in interface ProcedureProtos.ProcedureOrBuilder
public ProcedureProtos.Procedure.Builder setParentId(long value)
optional uint64 parent_id = 2;
parent if not a root-procedure otherwise not set
public ProcedureProtos.Procedure.Builder clearParentId()
optional uint64 parent_id = 2;
parent if not a root-procedure otherwise not set
public boolean hasProcId()
required uint64 proc_id = 3;
hasProcId
in interface ProcedureProtos.ProcedureOrBuilder
public long getProcId()
required uint64 proc_id = 3;
getProcId
in interface ProcedureProtos.ProcedureOrBuilder
public ProcedureProtos.Procedure.Builder setProcId(long value)
required uint64 proc_id = 3;
public ProcedureProtos.Procedure.Builder clearProcId()
required uint64 proc_id = 3;
public boolean hasStartTime()
required uint64 start_time = 4;
hasStartTime
in interface ProcedureProtos.ProcedureOrBuilder
public long getStartTime()
required uint64 start_time = 4;
getStartTime
in interface ProcedureProtos.ProcedureOrBuilder
public ProcedureProtos.Procedure.Builder setStartTime(long value)
required uint64 start_time = 4;
public ProcedureProtos.Procedure.Builder clearStartTime()
required uint64 start_time = 4;
public boolean hasOwner()
optional string owner = 5;
hasOwner
in interface ProcedureProtos.ProcedureOrBuilder
public String getOwner()
optional string owner = 5;
getOwner
in interface ProcedureProtos.ProcedureOrBuilder
public com.google.protobuf.ByteString getOwnerBytes()
optional string owner = 5;
getOwnerBytes
in interface ProcedureProtos.ProcedureOrBuilder
public ProcedureProtos.Procedure.Builder setOwner(String value)
optional string owner = 5;
public ProcedureProtos.Procedure.Builder clearOwner()
optional string owner = 5;
public ProcedureProtos.Procedure.Builder setOwnerBytes(com.google.protobuf.ByteString value)
optional string owner = 5;
public boolean hasState()
required .ProcedureState state = 6;
internal "runtime" state
hasState
in interface ProcedureProtos.ProcedureOrBuilder
public ProcedureProtos.ProcedureState getState()
required .ProcedureState state = 6;
internal "runtime" state
getState
in interface ProcedureProtos.ProcedureOrBuilder
public ProcedureProtos.Procedure.Builder setState(ProcedureProtos.ProcedureState value)
required .ProcedureState state = 6;
internal "runtime" state
public ProcedureProtos.Procedure.Builder clearState()
required .ProcedureState state = 6;
internal "runtime" state
public List<Integer> getStackIdList()
repeated uint32 stack_id = 7;
stack indices in case the procedure was running
getStackIdList
in interface ProcedureProtos.ProcedureOrBuilder
public int getStackIdCount()
repeated uint32 stack_id = 7;
stack indices in case the procedure was running
getStackIdCount
in interface ProcedureProtos.ProcedureOrBuilder
public int getStackId(int index)
repeated uint32 stack_id = 7;
stack indices in case the procedure was running
getStackId
in interface ProcedureProtos.ProcedureOrBuilder
public ProcedureProtos.Procedure.Builder setStackId(int index, int value)
repeated uint32 stack_id = 7;
stack indices in case the procedure was running
public ProcedureProtos.Procedure.Builder addStackId(int value)
repeated uint32 stack_id = 7;
stack indices in case the procedure was running
public ProcedureProtos.Procedure.Builder addAllStackId(Iterable<? extends Integer> values)
repeated uint32 stack_id = 7;
stack indices in case the procedure was running
public ProcedureProtos.Procedure.Builder clearStackId()
repeated uint32 stack_id = 7;
stack indices in case the procedure was running
public boolean hasLastUpdate()
required uint64 last_update = 8;
hasLastUpdate
in interface ProcedureProtos.ProcedureOrBuilder
public long getLastUpdate()
required uint64 last_update = 8;
getLastUpdate
in interface ProcedureProtos.ProcedureOrBuilder
public ProcedureProtos.Procedure.Builder setLastUpdate(long value)
required uint64 last_update = 8;
public ProcedureProtos.Procedure.Builder clearLastUpdate()
required uint64 last_update = 8;
public boolean hasTimeout()
optional uint32 timeout = 9;
hasTimeout
in interface ProcedureProtos.ProcedureOrBuilder
public int getTimeout()
optional uint32 timeout = 9;
getTimeout
in interface ProcedureProtos.ProcedureOrBuilder
public ProcedureProtos.Procedure.Builder setTimeout(int value)
optional uint32 timeout = 9;
public ProcedureProtos.Procedure.Builder clearTimeout()
optional uint32 timeout = 9;
public boolean hasException()
optional .ForeignExceptionMessage exception = 10;
user state/results
hasException
in interface ProcedureProtos.ProcedureOrBuilder
public ErrorHandlingProtos.ForeignExceptionMessage getException()
optional .ForeignExceptionMessage exception = 10;
user state/results
getException
in interface ProcedureProtos.ProcedureOrBuilder
public ProcedureProtos.Procedure.Builder setException(ErrorHandlingProtos.ForeignExceptionMessage value)
optional .ForeignExceptionMessage exception = 10;
user state/results
public ProcedureProtos.Procedure.Builder setException(ErrorHandlingProtos.ForeignExceptionMessage.Builder builderForValue)
optional .ForeignExceptionMessage exception = 10;
user state/results
public ProcedureProtos.Procedure.Builder mergeException(ErrorHandlingProtos.ForeignExceptionMessage value)
optional .ForeignExceptionMessage exception = 10;
user state/results
public ProcedureProtos.Procedure.Builder clearException()
optional .ForeignExceptionMessage exception = 10;
user state/results
public ErrorHandlingProtos.ForeignExceptionMessage.Builder getExceptionBuilder()
optional .ForeignExceptionMessage exception = 10;
user state/results
public ErrorHandlingProtos.ForeignExceptionMessageOrBuilder getExceptionOrBuilder()
optional .ForeignExceptionMessage exception = 10;
user state/results
getExceptionOrBuilder
in interface ProcedureProtos.ProcedureOrBuilder
public boolean hasResult()
optional bytes result = 11;
opaque (user) result structure
hasResult
in interface ProcedureProtos.ProcedureOrBuilder
public com.google.protobuf.ByteString getResult()
optional bytes result = 11;
opaque (user) result structure
getResult
in interface ProcedureProtos.ProcedureOrBuilder
public ProcedureProtos.Procedure.Builder setResult(com.google.protobuf.ByteString value)
optional bytes result = 11;
opaque (user) result structure
public ProcedureProtos.Procedure.Builder clearResult()
optional bytes result = 11;
opaque (user) result structure
public boolean hasStateData()
optional bytes state_data = 12;
opaque (user) procedure internal-state
hasStateData
in interface ProcedureProtos.ProcedureOrBuilder
public com.google.protobuf.ByteString getStateData()
optional bytes state_data = 12;
opaque (user) procedure internal-state
getStateData
in interface ProcedureProtos.ProcedureOrBuilder
public ProcedureProtos.Procedure.Builder setStateData(com.google.protobuf.ByteString value)
optional bytes state_data = 12;
opaque (user) procedure internal-state
public ProcedureProtos.Procedure.Builder clearStateData()
optional bytes state_data = 12;
opaque (user) procedure internal-state
public boolean hasNonceGroup()
optional uint64 nonce_group = 13 [default = 0];
Nonce to prevent same procedure submit by multiple times
hasNonceGroup
in interface ProcedureProtos.ProcedureOrBuilder
public long getNonceGroup()
optional uint64 nonce_group = 13 [default = 0];
Nonce to prevent same procedure submit by multiple times
getNonceGroup
in interface ProcedureProtos.ProcedureOrBuilder
public ProcedureProtos.Procedure.Builder setNonceGroup(long value)
optional uint64 nonce_group = 13 [default = 0];
Nonce to prevent same procedure submit by multiple times
public ProcedureProtos.Procedure.Builder clearNonceGroup()
optional uint64 nonce_group = 13 [default = 0];
Nonce to prevent same procedure submit by multiple times
public boolean hasNonce()
optional uint64 nonce = 14 [default = 0];
hasNonce
in interface ProcedureProtos.ProcedureOrBuilder
public long getNonce()
optional uint64 nonce = 14 [default = 0];
getNonce
in interface ProcedureProtos.ProcedureOrBuilder
public ProcedureProtos.Procedure.Builder setNonce(long value)
optional uint64 nonce = 14 [default = 0];
public ProcedureProtos.Procedure.Builder clearNonce()
optional uint64 nonce = 14 [default = 0];
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.