Class UpdateActivityOptionsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<UpdateActivityOptionsRequest.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<UpdateActivityOptionsRequest.Builder>
io.temporal.api.workflowservice.v1.UpdateActivityOptionsRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,UpdateActivityOptionsRequestOrBuilder,Cloneable
- Enclosing class:
UpdateActivityOptionsRequest
public static final class UpdateActivityOptionsRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<UpdateActivityOptionsRequest.Builder>
implements UpdateActivityOptionsRequestOrBuilder
NOTE: keep in sync with temporal.api.batch.v1.BatchOperationUpdateActivityOptions Deprecated. Use `UpdateActivityExecutionOptionsRequest`.Protobuf type
temporal.api.workflowservice.v1.UpdateActivityOptionsRequest-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Activity options.Execution info of the workflow which scheduled this activityclearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()Only activity with this ID will be updated.The identity of the client who initiated this requestUpdate all running activities.Namespace of the workflow which scheduled this activityclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) If set, the activity options will be restored to the default.Update all running activities of this type.Controls which fields from `activity_options` will be appliedclone()Activity options.Activity options.Activity options.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorExecution info of the workflow which scheduled this activityExecution info of the workflow which scheduled this activityExecution info of the workflow which scheduled this activitygetId()Only activity with this ID will be updated.com.google.protobuf.ByteStringOnly activity with this ID will be updated.The identity of the client who initiated this requestcom.google.protobuf.ByteStringThe identity of the client who initiated this requestbooleanUpdate all running activities.Namespace of the workflow which scheduled this activitycom.google.protobuf.ByteStringNamespace of the workflow which scheduled this activitybooleanIf set, the activity options will be restored to the default.getType()Update all running activities of this type.com.google.protobuf.ByteStringUpdate all running activities of this type.com.google.protobuf.FieldMaskControls which fields from `activity_options` will be appliedcom.google.protobuf.FieldMask.BuilderControls which fields from `activity_options` will be appliedcom.google.protobuf.FieldMaskOrBuilderControls which fields from `activity_options` will be appliedbooleanActivity options.booleanExecution info of the workflow which scheduled this activitybooleanhasId()Only activity with this ID will be updated.booleanUpdate all running activities.booleanhasType()Update all running activities of this type.booleanControls which fields from `activity_options` will be appliedprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanActivity options.mergeExecution(WorkflowExecution value) Execution info of the workflow which scheduled this activitymergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) mergeUpdateMask(com.google.protobuf.FieldMask value) Controls which fields from `activity_options` will be appliedActivity options.setActivityOptions(ActivityOptions.Builder builderForValue) Activity options.setExecution(WorkflowExecution value) Execution info of the workflow which scheduled this activitysetExecution(WorkflowExecution.Builder builderForValue) Execution info of the workflow which scheduled this activityOnly activity with this ID will be updated.setIdBytes(com.google.protobuf.ByteString value) Only activity with this ID will be updated.setIdentity(String value) The identity of the client who initiated this requestsetIdentityBytes(com.google.protobuf.ByteString value) The identity of the client who initiated this requestsetMatchAll(boolean value) Update all running activities.setNamespace(String value) Namespace of the workflow which scheduled this activitysetNamespaceBytes(com.google.protobuf.ByteString value) Namespace of the workflow which scheduled this activitysetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRestoreOriginal(boolean value) If set, the activity options will be restored to the default.Update all running activities of this type.setTypeBytes(com.google.protobuf.ByteString value) Update all running activities of this type.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUpdateMask(com.google.protobuf.FieldMask value) Controls which fields from `activity_options` will be appliedsetUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) Controls which fields from `activity_options` will be appliedMethods 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<UpdateActivityOptionsRequest.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<UpdateActivityOptionsRequest.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<UpdateActivityOptionsRequest.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<UpdateActivityOptionsRequest.Builder>
-
setField
public UpdateActivityOptionsRequest.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<UpdateActivityOptionsRequest.Builder>
-
clearField
public UpdateActivityOptionsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateActivityOptionsRequest.Builder>
-
clearOneof
public UpdateActivityOptionsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateActivityOptionsRequest.Builder>
-
setRepeatedField
public UpdateActivityOptionsRequest.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<UpdateActivityOptionsRequest.Builder>
-
addRepeatedField
public UpdateActivityOptionsRequest.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<UpdateActivityOptionsRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpdateActivityOptionsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateActivityOptionsRequest.Builder>
-
mergeFrom
public UpdateActivityOptionsRequest.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<UpdateActivityOptionsRequest.Builder>- Throws:
IOException
-
getActivityCase
- Specified by:
getActivityCasein interfaceUpdateActivityOptionsRequestOrBuilder
-
clearActivity
-
getNamespace
Namespace of the workflow which scheduled this activity
string namespace = 1;- Specified by:
getNamespacein interfaceUpdateActivityOptionsRequestOrBuilder- Returns:
- The namespace.
-
getNamespaceBytes
public com.google.protobuf.ByteString getNamespaceBytes()Namespace of the workflow which scheduled this activity
string namespace = 1;- Specified by:
getNamespaceBytesin interfaceUpdateActivityOptionsRequestOrBuilder- Returns:
- The bytes for namespace.
-
setNamespace
Namespace of the workflow which scheduled this activity
string namespace = 1;- Parameters:
value- The namespace to set.- Returns:
- This builder for chaining.
-
clearNamespace
Namespace of the workflow which scheduled this activity
string namespace = 1;- Returns:
- This builder for chaining.
-
setNamespaceBytes
Namespace of the workflow which scheduled this activity
string namespace = 1;- Parameters:
value- The bytes for namespace to set.- Returns:
- This builder for chaining.
-
hasExecution
public boolean hasExecution()Execution info of the workflow which scheduled this activity
.temporal.api.common.v1.WorkflowExecution execution = 2;- Specified by:
hasExecutionin interfaceUpdateActivityOptionsRequestOrBuilder- Returns:
- Whether the execution field is set.
-
getExecution
Execution info of the workflow which scheduled this activity
.temporal.api.common.v1.WorkflowExecution execution = 2;- Specified by:
getExecutionin interfaceUpdateActivityOptionsRequestOrBuilder- Returns:
- The execution.
-
setExecution
Execution info of the workflow which scheduled this activity
.temporal.api.common.v1.WorkflowExecution execution = 2; -
setExecution
Execution info of the workflow which scheduled this activity
.temporal.api.common.v1.WorkflowExecution execution = 2; -
mergeExecution
Execution info of the workflow which scheduled this activity
.temporal.api.common.v1.WorkflowExecution execution = 2; -
clearExecution
Execution info of the workflow which scheduled this activity
.temporal.api.common.v1.WorkflowExecution execution = 2; -
getExecutionBuilder
Execution info of the workflow which scheduled this activity
.temporal.api.common.v1.WorkflowExecution execution = 2; -
getExecutionOrBuilder
Execution info of the workflow which scheduled this activity
.temporal.api.common.v1.WorkflowExecution execution = 2;- Specified by:
getExecutionOrBuilderin interfaceUpdateActivityOptionsRequestOrBuilder
-
getIdentity
The identity of the client who initiated this request
string identity = 3;- Specified by:
getIdentityin interfaceUpdateActivityOptionsRequestOrBuilder- Returns:
- The identity.
-
getIdentityBytes
public com.google.protobuf.ByteString getIdentityBytes()The identity of the client who initiated this request
string identity = 3;- Specified by:
getIdentityBytesin interfaceUpdateActivityOptionsRequestOrBuilder- Returns:
- The bytes for identity.
-
setIdentity
The identity of the client who initiated this request
string identity = 3;- Parameters:
value- The identity to set.- Returns:
- This builder for chaining.
-
clearIdentity
The identity of the client who initiated this request
string identity = 3;- Returns:
- This builder for chaining.
-
setIdentityBytes
The identity of the client who initiated this request
string identity = 3;- Parameters:
value- The bytes for identity to set.- Returns:
- This builder for chaining.
-
hasActivityOptions
public boolean hasActivityOptions()Activity options. Partial updates are accepted and controlled by update_mask
.temporal.api.activity.v1.ActivityOptions activity_options = 4;- Specified by:
hasActivityOptionsin interfaceUpdateActivityOptionsRequestOrBuilder- Returns:
- Whether the activityOptions field is set.
-
getActivityOptions
Activity options. Partial updates are accepted and controlled by update_mask
.temporal.api.activity.v1.ActivityOptions activity_options = 4;- Specified by:
getActivityOptionsin interfaceUpdateActivityOptionsRequestOrBuilder- Returns:
- The activityOptions.
-
setActivityOptions
Activity options. Partial updates are accepted and controlled by update_mask
.temporal.api.activity.v1.ActivityOptions activity_options = 4; -
setActivityOptions
public UpdateActivityOptionsRequest.Builder setActivityOptions(ActivityOptions.Builder builderForValue) Activity options. Partial updates are accepted and controlled by update_mask
.temporal.api.activity.v1.ActivityOptions activity_options = 4; -
mergeActivityOptions
Activity options. Partial updates are accepted and controlled by update_mask
.temporal.api.activity.v1.ActivityOptions activity_options = 4; -
clearActivityOptions
Activity options. Partial updates are accepted and controlled by update_mask
.temporal.api.activity.v1.ActivityOptions activity_options = 4; -
getActivityOptionsBuilder
Activity options. Partial updates are accepted and controlled by update_mask
.temporal.api.activity.v1.ActivityOptions activity_options = 4; -
getActivityOptionsOrBuilder
Activity options. Partial updates are accepted and controlled by update_mask
.temporal.api.activity.v1.ActivityOptions activity_options = 4;- Specified by:
getActivityOptionsOrBuilderin interfaceUpdateActivityOptionsRequestOrBuilder
-
hasUpdateMask
public boolean hasUpdateMask()Controls which fields from `activity_options` will be applied
.google.protobuf.FieldMask update_mask = 5;- Specified by:
hasUpdateMaskin interfaceUpdateActivityOptionsRequestOrBuilder- Returns:
- Whether the updateMask field is set.
-
getUpdateMask
public com.google.protobuf.FieldMask getUpdateMask()Controls which fields from `activity_options` will be applied
.google.protobuf.FieldMask update_mask = 5;- Specified by:
getUpdateMaskin interfaceUpdateActivityOptionsRequestOrBuilder- Returns:
- The updateMask.
-
setUpdateMask
Controls which fields from `activity_options` will be applied
.google.protobuf.FieldMask update_mask = 5; -
setUpdateMask
public UpdateActivityOptionsRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) Controls which fields from `activity_options` will be applied
.google.protobuf.FieldMask update_mask = 5; -
mergeUpdateMask
Controls which fields from `activity_options` will be applied
.google.protobuf.FieldMask update_mask = 5; -
clearUpdateMask
Controls which fields from `activity_options` will be applied
.google.protobuf.FieldMask update_mask = 5; -
getUpdateMaskBuilder
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()Controls which fields from `activity_options` will be applied
.google.protobuf.FieldMask update_mask = 5; -
getUpdateMaskOrBuilder
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()Controls which fields from `activity_options` will be applied
.google.protobuf.FieldMask update_mask = 5;- Specified by:
getUpdateMaskOrBuilderin interfaceUpdateActivityOptionsRequestOrBuilder
-
hasId
public boolean hasId()Only activity with this ID will be updated.
string id = 6;- Specified by:
hasIdin interfaceUpdateActivityOptionsRequestOrBuilder- Returns:
- Whether the id field is set.
-
getId
Only activity with this ID will be updated.
string id = 6;- Specified by:
getIdin interfaceUpdateActivityOptionsRequestOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Only activity with this ID will be updated.
string id = 6;- Specified by:
getIdBytesin interfaceUpdateActivityOptionsRequestOrBuilder- Returns:
- The bytes for id.
-
setId
Only activity with this ID will be updated.
string id = 6;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Only activity with this ID will be updated.
string id = 6;- Returns:
- This builder for chaining.
-
setIdBytes
Only activity with this ID will be updated.
string id = 6;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()Update all running activities of this type.
string type = 7;- Specified by:
hasTypein interfaceUpdateActivityOptionsRequestOrBuilder- Returns:
- Whether the type field is set.
-
getType
Update all running activities of this type.
string type = 7;- Specified by:
getTypein interfaceUpdateActivityOptionsRequestOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()Update all running activities of this type.
string type = 7;- Specified by:
getTypeBytesin interfaceUpdateActivityOptionsRequestOrBuilder- Returns:
- The bytes for type.
-
setType
Update all running activities of this type.
string type = 7;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Update all running activities of this type.
string type = 7;- Returns:
- This builder for chaining.
-
setTypeBytes
Update all running activities of this type.
string type = 7;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
hasMatchAll
public boolean hasMatchAll()Update all running activities.
bool match_all = 9;- Specified by:
hasMatchAllin interfaceUpdateActivityOptionsRequestOrBuilder- Returns:
- Whether the matchAll field is set.
-
getMatchAll
public boolean getMatchAll()Update all running activities.
bool match_all = 9;- Specified by:
getMatchAllin interfaceUpdateActivityOptionsRequestOrBuilder- Returns:
- The matchAll.
-
setMatchAll
Update all running activities.
bool match_all = 9;- Parameters:
value- The matchAll to set.- Returns:
- This builder for chaining.
-
clearMatchAll
Update all running activities.
bool match_all = 9;- Returns:
- This builder for chaining.
-
getRestoreOriginal
public boolean getRestoreOriginal()If set, the activity options will be restored to the default. Default options are then options activity was created with. They are part of the first schedule event. This flag cannot be combined with any other option; if you supply restore_original together with other options, the request will be rejected.
bool restore_original = 8;- Specified by:
getRestoreOriginalin interfaceUpdateActivityOptionsRequestOrBuilder- Returns:
- The restoreOriginal.
-
setRestoreOriginal
If set, the activity options will be restored to the default. Default options are then options activity was created with. They are part of the first schedule event. This flag cannot be combined with any other option; if you supply restore_original together with other options, the request will be rejected.
bool restore_original = 8;- Parameters:
value- The restoreOriginal to set.- Returns:
- This builder for chaining.
-
clearRestoreOriginal
If set, the activity options will be restored to the default. Default options are then options activity was created with. They are part of the first schedule event. This flag cannot be combined with any other option; if you supply restore_original together with other options, the request will be rejected.
bool restore_original = 8;- Returns:
- This builder for chaining.
-
setUnknownFields
public final UpdateActivityOptionsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateActivityOptionsRequest.Builder>
-
mergeUnknownFields
public final UpdateActivityOptionsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateActivityOptionsRequest.Builder>
-