Class GatewayOuterClass.SetVariablesRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.SetVariablesRequest.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.SetVariablesRequest.Builder>
io.camunda.zeebe.gateway.protocol.GatewayOuterClass.SetVariablesRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GatewayOuterClass.SetVariablesRequestOrBuilder, Cloneable
Enclosing class:
GatewayOuterClass.SetVariablesRequest

public static final class GatewayOuterClass.SetVariablesRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.SetVariablesRequest.Builder> implements GatewayOuterClass.SetVariablesRequestOrBuilder
Protobuf type gateway_protocol.SetVariablesRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.SetVariablesRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.SetVariablesRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.SetVariablesRequest.Builder>
    • getDefaultInstanceForType

      public GatewayOuterClass.SetVariablesRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.SetVariablesRequest.Builder>
    • setField

      public GatewayOuterClass.SetVariablesRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.SetVariablesRequest.Builder>
    • clearField

      public GatewayOuterClass.SetVariablesRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.SetVariablesRequest.Builder>
    • clearOneof

      public GatewayOuterClass.SetVariablesRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.SetVariablesRequest.Builder>
    • setRepeatedField

      public GatewayOuterClass.SetVariablesRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.SetVariablesRequest.Builder>
    • addRepeatedField

      public GatewayOuterClass.SetVariablesRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.SetVariablesRequest.Builder>
    • mergeFrom

      public GatewayOuterClass.SetVariablesRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.SetVariablesRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.SetVariablesRequest.Builder>
    • mergeFrom

      public GatewayOuterClass.SetVariablesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.SetVariablesRequest.Builder>
      Throws:
      IOException
    • getElementInstanceKey

      public long getElementInstanceKey()
       the unique identifier of a particular element; can be the process instance key (as
       obtained during instance creation), or a given element, such as a service task (see
       elementInstanceKey on the job message)
       
      int64 elementInstanceKey = 1;
      Specified by:
      getElementInstanceKey in interface GatewayOuterClass.SetVariablesRequestOrBuilder
      Returns:
      The elementInstanceKey.
    • setElementInstanceKey

      public GatewayOuterClass.SetVariablesRequest.Builder setElementInstanceKey(long value)
       the unique identifier of a particular element; can be the process instance key (as
       obtained during instance creation), or a given element, such as a service task (see
       elementInstanceKey on the job message)
       
      int64 elementInstanceKey = 1;
      Parameters:
      value - The elementInstanceKey to set.
      Returns:
      This builder for chaining.
    • clearElementInstanceKey

      public GatewayOuterClass.SetVariablesRequest.Builder clearElementInstanceKey()
       the unique identifier of a particular element; can be the process instance key (as
       obtained during instance creation), or a given element, such as a service task (see
       elementInstanceKey on the job message)
       
      int64 elementInstanceKey = 1;
      Returns:
      This builder for chaining.
    • getVariables

      public String getVariables()
       a JSON serialized document describing variables as key value pairs; the root of the document
       must be an object
       
      string variables = 2;
      Specified by:
      getVariables in interface GatewayOuterClass.SetVariablesRequestOrBuilder
      Returns:
      The variables.
    • getVariablesBytes

      public com.google.protobuf.ByteString getVariablesBytes()
       a JSON serialized document describing variables as key value pairs; the root of the document
       must be an object
       
      string variables = 2;
      Specified by:
      getVariablesBytes in interface GatewayOuterClass.SetVariablesRequestOrBuilder
      Returns:
      The bytes for variables.
    • setVariables

       a JSON serialized document describing variables as key value pairs; the root of the document
       must be an object
       
      string variables = 2;
      Parameters:
      value - The variables to set.
      Returns:
      This builder for chaining.
    • clearVariables

       a JSON serialized document describing variables as key value pairs; the root of the document
       must be an object
       
      string variables = 2;
      Returns:
      This builder for chaining.
    • setVariablesBytes

      public GatewayOuterClass.SetVariablesRequest.Builder setVariablesBytes(com.google.protobuf.ByteString value)
       a JSON serialized document describing variables as key value pairs; the root of the document
       must be an object
       
      string variables = 2;
      Parameters:
      value - The bytes for variables to set.
      Returns:
      This builder for chaining.
    • getLocal

      public boolean getLocal()
       if true, the variables will be merged strictly into the local scope (as indicated by
       elementInstanceKey); this means the variables is not propagated to upper scopes.
       for example, let's say we have two scopes, '1' and '2', with each having effective variables as:
       1 => `{ "foo" : 2 }`, and 2 => `{ "bar" : 1 }`. if we send an update request with
       elementInstanceKey = 2, variables `{ "foo" : 5 }`, and local is true, then scope 1 will
       be unchanged, and scope 2 will now be `{ "bar" : 1, "foo" 5 }`. if local was false, however,
       then scope 1 would be `{ "foo": 5 }`, and scope 2 would be `{ "bar" : 1 }`.
       
      bool local = 3;
      Specified by:
      getLocal in interface GatewayOuterClass.SetVariablesRequestOrBuilder
      Returns:
      The local.
    • setLocal

      public GatewayOuterClass.SetVariablesRequest.Builder setLocal(boolean value)
       if true, the variables will be merged strictly into the local scope (as indicated by
       elementInstanceKey); this means the variables is not propagated to upper scopes.
       for example, let's say we have two scopes, '1' and '2', with each having effective variables as:
       1 => `{ "foo" : 2 }`, and 2 => `{ "bar" : 1 }`. if we send an update request with
       elementInstanceKey = 2, variables `{ "foo" : 5 }`, and local is true, then scope 1 will
       be unchanged, and scope 2 will now be `{ "bar" : 1, "foo" 5 }`. if local was false, however,
       then scope 1 would be `{ "foo": 5 }`, and scope 2 would be `{ "bar" : 1 }`.
       
      bool local = 3;
      Parameters:
      value - The local to set.
      Returns:
      This builder for chaining.
    • clearLocal

       if true, the variables will be merged strictly into the local scope (as indicated by
       elementInstanceKey); this means the variables is not propagated to upper scopes.
       for example, let's say we have two scopes, '1' and '2', with each having effective variables as:
       1 => `{ "foo" : 2 }`, and 2 => `{ "bar" : 1 }`. if we send an update request with
       elementInstanceKey = 2, variables `{ "foo" : 5 }`, and local is true, then scope 1 will
       be unchanged, and scope 2 will now be `{ "bar" : 1, "foo" 5 }`. if local was false, however,
       then scope 1 would be `{ "foo": 5 }`, and scope 2 would be `{ "bar" : 1 }`.
       
      bool local = 3;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final GatewayOuterClass.SetVariablesRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.SetVariablesRequest.Builder>
    • mergeUnknownFields

      public final GatewayOuterClass.SetVariablesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.SetVariablesRequest.Builder>