Class CallbackInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CallbackInfo.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<CallbackInfo.Builder>
io.temporal.api.callback.v1.CallbackInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CallbackInfoOrBuilder,Cloneable
- Enclosing class:
CallbackInfo
public static final class CallbackInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CallbackInfo.Builder>
implements CallbackInfoOrBuilder
Common callback information. Specific CallbackInfo messages should embed this and may include additional fields.Protobuf type
temporal.api.callback.v1.CallbackInfo-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The number of attempts made to deliver the callback.If the state is BLOCKED, blocked reason provides additional information.Information on how this callback should be invoked (e.g.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The time when the last attempt completed.The last attempt's failure, if any.The time when the next attempt is scheduled.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The time when the callback was registered.The current state of the callback.clone()intThe number of attempts made to deliver the callback.If the state is BLOCKED, blocked reason provides additional information.com.google.protobuf.ByteStringIf the state is BLOCKED, blocked reason provides additional information.Information on how this callback should be invoked (e.g.Information on how this callback should be invoked (e.g.Information on how this callback should be invoked (e.g.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampThe time when the last attempt completed.com.google.protobuf.Timestamp.BuilderThe time when the last attempt completed.com.google.protobuf.TimestampOrBuilderThe time when the last attempt completed.The last attempt's failure, if any.The last attempt's failure, if any.The last attempt's failure, if any.com.google.protobuf.TimestampThe time when the next attempt is scheduled.com.google.protobuf.Timestamp.BuilderThe time when the next attempt is scheduled.com.google.protobuf.TimestampOrBuilderThe time when the next attempt is scheduled.com.google.protobuf.TimestampThe time when the callback was registered.com.google.protobuf.Timestamp.BuilderThe time when the callback was registered.com.google.protobuf.TimestampOrBuilderThe time when the callback was registered.getState()The current state of the callback.intThe current state of the callback.booleanInformation on how this callback should be invoked (e.g.booleanThe time when the last attempt completed.booleanThe last attempt's failure, if any.booleanThe time when the next attempt is scheduled.booleanThe time when the callback was registered.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeCallback(Callback value) Information on how this callback should be invoked (e.g.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(CallbackInfo other) mergeLastAttemptCompleteTime(com.google.protobuf.Timestamp value) The time when the last attempt completed.mergeLastAttemptFailure(Failure value) The last attempt's failure, if any.mergeNextAttemptScheduleTime(com.google.protobuf.Timestamp value) The time when the next attempt is scheduled.mergeRegistrationTime(com.google.protobuf.Timestamp value) The time when the callback was registered.final CallbackInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAttempt(int value) The number of attempts made to deliver the callback.setBlockedReason(String value) If the state is BLOCKED, blocked reason provides additional information.setBlockedReasonBytes(com.google.protobuf.ByteString value) If the state is BLOCKED, blocked reason provides additional information.setCallback(Callback value) Information on how this callback should be invoked (e.g.setCallback(Callback.Builder builderForValue) Information on how this callback should be invoked (e.g.setLastAttemptCompleteTime(com.google.protobuf.Timestamp value) The time when the last attempt completed.setLastAttemptCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) The time when the last attempt completed.setLastAttemptFailure(Failure value) The last attempt's failure, if any.setLastAttemptFailure(Failure.Builder builderForValue) The last attempt's failure, if any.setNextAttemptScheduleTime(com.google.protobuf.Timestamp value) The time when the next attempt is scheduled.setNextAttemptScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) The time when the next attempt is scheduled.setRegistrationTime(com.google.protobuf.Timestamp value) The time when the callback was registered.setRegistrationTime(com.google.protobuf.Timestamp.Builder builderForValue) The time when the callback was registered.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setState(CallbackState value) The current state of the callback.setStateValue(int value) The current state of the callback.final CallbackInfo.BuildersetUnknownFields(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<CallbackInfo.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<CallbackInfo.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<CallbackInfo.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<CallbackInfo.Builder>
-
setField
public CallbackInfo.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<CallbackInfo.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CallbackInfo.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CallbackInfo.Builder>
-
setRepeatedField
public CallbackInfo.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<CallbackInfo.Builder>
-
addRepeatedField
public CallbackInfo.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<CallbackInfo.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CallbackInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CallbackInfo.Builder>
-
mergeFrom
public CallbackInfo.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<CallbackInfo.Builder>- Throws:
IOException
-
hasCallback
public boolean hasCallback()Information on how this callback should be invoked (e.g. its URL and type).
.temporal.api.common.v1.Callback callback = 1;- Specified by:
hasCallbackin interfaceCallbackInfoOrBuilder- Returns:
- Whether the callback field is set.
-
getCallback
Information on how this callback should be invoked (e.g. its URL and type).
.temporal.api.common.v1.Callback callback = 1;- Specified by:
getCallbackin interfaceCallbackInfoOrBuilder- Returns:
- The callback.
-
setCallback
Information on how this callback should be invoked (e.g. its URL and type).
.temporal.api.common.v1.Callback callback = 1; -
setCallback
Information on how this callback should be invoked (e.g. its URL and type).
.temporal.api.common.v1.Callback callback = 1; -
mergeCallback
Information on how this callback should be invoked (e.g. its URL and type).
.temporal.api.common.v1.Callback callback = 1; -
clearCallback
Information on how this callback should be invoked (e.g. its URL and type).
.temporal.api.common.v1.Callback callback = 1; -
getCallbackBuilder
Information on how this callback should be invoked (e.g. its URL and type).
.temporal.api.common.v1.Callback callback = 1; -
getCallbackOrBuilder
Information on how this callback should be invoked (e.g. its URL and type).
.temporal.api.common.v1.Callback callback = 1;- Specified by:
getCallbackOrBuilderin interfaceCallbackInfoOrBuilder
-
hasRegistrationTime
public boolean hasRegistrationTime()The time when the callback was registered.
.google.protobuf.Timestamp registration_time = 2;- Specified by:
hasRegistrationTimein interfaceCallbackInfoOrBuilder- Returns:
- Whether the registrationTime field is set.
-
getRegistrationTime
public com.google.protobuf.Timestamp getRegistrationTime()The time when the callback was registered.
.google.protobuf.Timestamp registration_time = 2;- Specified by:
getRegistrationTimein interfaceCallbackInfoOrBuilder- Returns:
- The registrationTime.
-
setRegistrationTime
The time when the callback was registered.
.google.protobuf.Timestamp registration_time = 2; -
setRegistrationTime
public CallbackInfo.Builder setRegistrationTime(com.google.protobuf.Timestamp.Builder builderForValue) The time when the callback was registered.
.google.protobuf.Timestamp registration_time = 2; -
mergeRegistrationTime
The time when the callback was registered.
.google.protobuf.Timestamp registration_time = 2; -
clearRegistrationTime
The time when the callback was registered.
.google.protobuf.Timestamp registration_time = 2; -
getRegistrationTimeBuilder
public com.google.protobuf.Timestamp.Builder getRegistrationTimeBuilder()The time when the callback was registered.
.google.protobuf.Timestamp registration_time = 2; -
getRegistrationTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getRegistrationTimeOrBuilder()The time when the callback was registered.
.google.protobuf.Timestamp registration_time = 2;- Specified by:
getRegistrationTimeOrBuilderin interfaceCallbackInfoOrBuilder
-
getStateValue
public int getStateValue()The current state of the callback.
.temporal.api.enums.v1.CallbackState state = 3;- Specified by:
getStateValuein interfaceCallbackInfoOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
The current state of the callback.
.temporal.api.enums.v1.CallbackState state = 3;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
The current state of the callback.
.temporal.api.enums.v1.CallbackState state = 3;- Specified by:
getStatein interfaceCallbackInfoOrBuilder- Returns:
- The state.
-
setState
The current state of the callback.
.temporal.api.enums.v1.CallbackState state = 3;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
The current state of the callback.
.temporal.api.enums.v1.CallbackState state = 3;- Returns:
- This builder for chaining.
-
getAttempt
public int getAttempt()The number of attempts made to deliver the callback. This number represents a minimum bound since the attempt is incremented after the callback request completes.
int32 attempt = 4;- Specified by:
getAttemptin interfaceCallbackInfoOrBuilder- Returns:
- The attempt.
-
setAttempt
The number of attempts made to deliver the callback. This number represents a minimum bound since the attempt is incremented after the callback request completes.
int32 attempt = 4;- Parameters:
value- The attempt to set.- Returns:
- This builder for chaining.
-
clearAttempt
The number of attempts made to deliver the callback. This number represents a minimum bound since the attempt is incremented after the callback request completes.
int32 attempt = 4;- Returns:
- This builder for chaining.
-
hasLastAttemptCompleteTime
public boolean hasLastAttemptCompleteTime()The time when the last attempt completed.
.google.protobuf.Timestamp last_attempt_complete_time = 5;- Specified by:
hasLastAttemptCompleteTimein interfaceCallbackInfoOrBuilder- Returns:
- Whether the lastAttemptCompleteTime field is set.
-
getLastAttemptCompleteTime
public com.google.protobuf.Timestamp getLastAttemptCompleteTime()The time when the last attempt completed.
.google.protobuf.Timestamp last_attempt_complete_time = 5;- Specified by:
getLastAttemptCompleteTimein interfaceCallbackInfoOrBuilder- Returns:
- The lastAttemptCompleteTime.
-
setLastAttemptCompleteTime
The time when the last attempt completed.
.google.protobuf.Timestamp last_attempt_complete_time = 5; -
setLastAttemptCompleteTime
public CallbackInfo.Builder setLastAttemptCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) The time when the last attempt completed.
.google.protobuf.Timestamp last_attempt_complete_time = 5; -
mergeLastAttemptCompleteTime
The time when the last attempt completed.
.google.protobuf.Timestamp last_attempt_complete_time = 5; -
clearLastAttemptCompleteTime
The time when the last attempt completed.
.google.protobuf.Timestamp last_attempt_complete_time = 5; -
getLastAttemptCompleteTimeBuilder
public com.google.protobuf.Timestamp.Builder getLastAttemptCompleteTimeBuilder()The time when the last attempt completed.
.google.protobuf.Timestamp last_attempt_complete_time = 5; -
getLastAttemptCompleteTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getLastAttemptCompleteTimeOrBuilder()The time when the last attempt completed.
.google.protobuf.Timestamp last_attempt_complete_time = 5;- Specified by:
getLastAttemptCompleteTimeOrBuilderin interfaceCallbackInfoOrBuilder
-
hasLastAttemptFailure
public boolean hasLastAttemptFailure()The last attempt's failure, if any.
.temporal.api.failure.v1.Failure last_attempt_failure = 6;- Specified by:
hasLastAttemptFailurein interfaceCallbackInfoOrBuilder- Returns:
- Whether the lastAttemptFailure field is set.
-
getLastAttemptFailure
The last attempt's failure, if any.
.temporal.api.failure.v1.Failure last_attempt_failure = 6;- Specified by:
getLastAttemptFailurein interfaceCallbackInfoOrBuilder- Returns:
- The lastAttemptFailure.
-
setLastAttemptFailure
The last attempt's failure, if any.
.temporal.api.failure.v1.Failure last_attempt_failure = 6; -
setLastAttemptFailure
The last attempt's failure, if any.
.temporal.api.failure.v1.Failure last_attempt_failure = 6; -
mergeLastAttemptFailure
The last attempt's failure, if any.
.temporal.api.failure.v1.Failure last_attempt_failure = 6; -
clearLastAttemptFailure
The last attempt's failure, if any.
.temporal.api.failure.v1.Failure last_attempt_failure = 6; -
getLastAttemptFailureBuilder
The last attempt's failure, if any.
.temporal.api.failure.v1.Failure last_attempt_failure = 6; -
getLastAttemptFailureOrBuilder
The last attempt's failure, if any.
.temporal.api.failure.v1.Failure last_attempt_failure = 6;- Specified by:
getLastAttemptFailureOrBuilderin interfaceCallbackInfoOrBuilder
-
hasNextAttemptScheduleTime
public boolean hasNextAttemptScheduleTime()The time when the next attempt is scheduled.
.google.protobuf.Timestamp next_attempt_schedule_time = 7;- Specified by:
hasNextAttemptScheduleTimein interfaceCallbackInfoOrBuilder- Returns:
- Whether the nextAttemptScheduleTime field is set.
-
getNextAttemptScheduleTime
public com.google.protobuf.Timestamp getNextAttemptScheduleTime()The time when the next attempt is scheduled.
.google.protobuf.Timestamp next_attempt_schedule_time = 7;- Specified by:
getNextAttemptScheduleTimein interfaceCallbackInfoOrBuilder- Returns:
- The nextAttemptScheduleTime.
-
setNextAttemptScheduleTime
The time when the next attempt is scheduled.
.google.protobuf.Timestamp next_attempt_schedule_time = 7; -
setNextAttemptScheduleTime
public CallbackInfo.Builder setNextAttemptScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) The time when the next attempt is scheduled.
.google.protobuf.Timestamp next_attempt_schedule_time = 7; -
mergeNextAttemptScheduleTime
The time when the next attempt is scheduled.
.google.protobuf.Timestamp next_attempt_schedule_time = 7; -
clearNextAttemptScheduleTime
The time when the next attempt is scheduled.
.google.protobuf.Timestamp next_attempt_schedule_time = 7; -
getNextAttemptScheduleTimeBuilder
public com.google.protobuf.Timestamp.Builder getNextAttemptScheduleTimeBuilder()The time when the next attempt is scheduled.
.google.protobuf.Timestamp next_attempt_schedule_time = 7; -
getNextAttemptScheduleTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getNextAttemptScheduleTimeOrBuilder()The time when the next attempt is scheduled.
.google.protobuf.Timestamp next_attempt_schedule_time = 7;- Specified by:
getNextAttemptScheduleTimeOrBuilderin interfaceCallbackInfoOrBuilder
-
getBlockedReason
If the state is BLOCKED, blocked reason provides additional information.
string blocked_reason = 8;- Specified by:
getBlockedReasonin interfaceCallbackInfoOrBuilder- Returns:
- The blockedReason.
-
getBlockedReasonBytes
public com.google.protobuf.ByteString getBlockedReasonBytes()If the state is BLOCKED, blocked reason provides additional information.
string blocked_reason = 8;- Specified by:
getBlockedReasonBytesin interfaceCallbackInfoOrBuilder- Returns:
- The bytes for blockedReason.
-
setBlockedReason
If the state is BLOCKED, blocked reason provides additional information.
string blocked_reason = 8;- Parameters:
value- The blockedReason to set.- Returns:
- This builder for chaining.
-
clearBlockedReason
If the state is BLOCKED, blocked reason provides additional information.
string blocked_reason = 8;- Returns:
- This builder for chaining.
-
setBlockedReasonBytes
If the state is BLOCKED, blocked reason provides additional information.
string blocked_reason = 8;- Parameters:
value- The bytes for blockedReason to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final CallbackInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CallbackInfo.Builder>
-
mergeUnknownFields
public final CallbackInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CallbackInfo.Builder>
-