Class ComputeScaler.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ComputeScaler.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ComputeScaler.Builder>
io.temporal.api.compute.v1.ComputeScaler.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ComputeScalerOrBuilder, Cloneable
Enclosing class:
ComputeScaler

public static final class ComputeScaler.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ComputeScaler.Builder> implements ComputeScalerOrBuilder
 ComputeScaler instructs the Temporal Service when to scale up or down the number of
 Workers that comprise a WorkerDeployment.
 
Protobuf type temporal.api.compute.v1.ComputeScaler
  • 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<ComputeScaler.Builder>
    • clear

      public ComputeScaler.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<ComputeScaler.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<ComputeScaler.Builder>
    • getDefaultInstanceForType

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

      public ComputeScaler build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ComputeScaler buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public ComputeScaler.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<ComputeScaler.Builder>
    • setField

      public ComputeScaler.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<ComputeScaler.Builder>
    • clearField

      public ComputeScaler.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<ComputeScaler.Builder>
    • clearOneof

      public ComputeScaler.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<ComputeScaler.Builder>
    • setRepeatedField

      public ComputeScaler.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<ComputeScaler.Builder>
    • addRepeatedField

      public ComputeScaler.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<ComputeScaler.Builder>
    • mergeFrom

      public ComputeScaler.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<ComputeScaler.Builder>
    • mergeFrom

      public ComputeScaler.Builder mergeFrom(ComputeScaler other)
    • isInitialized

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

      public ComputeScaler.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<ComputeScaler.Builder>
      Throws:
      IOException
    • getType

      public String getType()
       Type of the compute scaler. this string is implementation-specific and
       can be used by implementations to understand how to interpret the
       contents of the scaler_details field.
       
      string type = 1;
      Specified by:
      getType in interface ComputeScalerOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Type of the compute scaler. this string is implementation-specific and
       can be used by implementations to understand how to interpret the
       contents of the scaler_details field.
       
      string type = 1;
      Specified by:
      getTypeBytes in interface ComputeScalerOrBuilder
      Returns:
      The bytes for type.
    • setType

      public ComputeScaler.Builder setType(String value)
       Type of the compute scaler. this string is implementation-specific and
       can be used by implementations to understand how to interpret the
       contents of the scaler_details field.
       
      string type = 1;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public ComputeScaler.Builder clearType()
       Type of the compute scaler. this string is implementation-specific and
       can be used by implementations to understand how to interpret the
       contents of the scaler_details field.
       
      string type = 1;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public ComputeScaler.Builder setTypeBytes(com.google.protobuf.ByteString value)
       Type of the compute scaler. this string is implementation-specific and
       can be used by implementations to understand how to interpret the
       contents of the scaler_details field.
       
      string type = 1;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • hasDetails

      public boolean hasDetails()
       Contains scaler-specific instructions and configuration.
       For server-implemented scalers, use the SDK's default data
       converter to ensure the server can understand it.
       For remote-implemented scalers, you might use your own data
       converters according to what the remote endpoints understand.
       
      .temporal.api.common.v1.Payload details = 2;
      Specified by:
      hasDetails in interface ComputeScalerOrBuilder
      Returns:
      Whether the details field is set.
    • getDetails

      public Payload getDetails()
       Contains scaler-specific instructions and configuration.
       For server-implemented scalers, use the SDK's default data
       converter to ensure the server can understand it.
       For remote-implemented scalers, you might use your own data
       converters according to what the remote endpoints understand.
       
      .temporal.api.common.v1.Payload details = 2;
      Specified by:
      getDetails in interface ComputeScalerOrBuilder
      Returns:
      The details.
    • setDetails

      public ComputeScaler.Builder setDetails(Payload value)
       Contains scaler-specific instructions and configuration.
       For server-implemented scalers, use the SDK's default data
       converter to ensure the server can understand it.
       For remote-implemented scalers, you might use your own data
       converters according to what the remote endpoints understand.
       
      .temporal.api.common.v1.Payload details = 2;
    • setDetails

      public ComputeScaler.Builder setDetails(Payload.Builder builderForValue)
       Contains scaler-specific instructions and configuration.
       For server-implemented scalers, use the SDK's default data
       converter to ensure the server can understand it.
       For remote-implemented scalers, you might use your own data
       converters according to what the remote endpoints understand.
       
      .temporal.api.common.v1.Payload details = 2;
    • mergeDetails

      public ComputeScaler.Builder mergeDetails(Payload value)
       Contains scaler-specific instructions and configuration.
       For server-implemented scalers, use the SDK's default data
       converter to ensure the server can understand it.
       For remote-implemented scalers, you might use your own data
       converters according to what the remote endpoints understand.
       
      .temporal.api.common.v1.Payload details = 2;
    • clearDetails

      public ComputeScaler.Builder clearDetails()
       Contains scaler-specific instructions and configuration.
       For server-implemented scalers, use the SDK's default data
       converter to ensure the server can understand it.
       For remote-implemented scalers, you might use your own data
       converters according to what the remote endpoints understand.
       
      .temporal.api.common.v1.Payload details = 2;
    • getDetailsBuilder

      public Payload.Builder getDetailsBuilder()
       Contains scaler-specific instructions and configuration.
       For server-implemented scalers, use the SDK's default data
       converter to ensure the server can understand it.
       For remote-implemented scalers, you might use your own data
       converters according to what the remote endpoints understand.
       
      .temporal.api.common.v1.Payload details = 2;
    • getDetailsOrBuilder

      public PayloadOrBuilder getDetailsOrBuilder()
       Contains scaler-specific instructions and configuration.
       For server-implemented scalers, use the SDK's default data
       converter to ensure the server can understand it.
       For remote-implemented scalers, you might use your own data
       converters according to what the remote endpoints understand.
       
      .temporal.api.common.v1.Payload details = 2;
      Specified by:
      getDetailsOrBuilder in interface ComputeScalerOrBuilder
    • setUnknownFields

      public final ComputeScaler.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<ComputeScaler.Builder>
    • mergeUnknownFields

      public final ComputeScaler.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<ComputeScaler.Builder>