Class ComputeProvider.Builder

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

public static final class ComputeProvider.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ComputeProvider.Builder> implements ComputeProviderOrBuilder
 ComputeProvider stores information used by a worker control plane controller
 to respond to worker lifecycle events. For example, when a Task is received
 on a TaskQueue that has no active pollers, a serverless worker lifecycle
 controller might need to invoke an AWS Lambda Function that itself ends up
 calling the SDK's worker.New() function.
 
Protobuf type temporal.api.compute.v1.ComputeProvider
  • 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<ComputeProvider.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public ComputeProvider.Builder mergeFrom(ComputeProvider other)
    • isInitialized

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public String getNexusEndpoint()
       Optional. If the compute provider is a Nexus service, this should point
       there.
       
      string nexus_endpoint = 10;
      Specified by:
      getNexusEndpoint in interface ComputeProviderOrBuilder
      Returns:
      The nexusEndpoint.
    • getNexusEndpointBytes

      public com.google.protobuf.ByteString getNexusEndpointBytes()
       Optional. If the compute provider is a Nexus service, this should point
       there.
       
      string nexus_endpoint = 10;
      Specified by:
      getNexusEndpointBytes in interface ComputeProviderOrBuilder
      Returns:
      The bytes for nexusEndpoint.
    • setNexusEndpoint

      public ComputeProvider.Builder setNexusEndpoint(String value)
       Optional. If the compute provider is a Nexus service, this should point
       there.
       
      string nexus_endpoint = 10;
      Parameters:
      value - The nexusEndpoint to set.
      Returns:
      This builder for chaining.
    • clearNexusEndpoint

      public ComputeProvider.Builder clearNexusEndpoint()
       Optional. If the compute provider is a Nexus service, this should point
       there.
       
      string nexus_endpoint = 10;
      Returns:
      This builder for chaining.
    • setNexusEndpointBytes

      public ComputeProvider.Builder setNexusEndpointBytes(com.google.protobuf.ByteString value)
       Optional. If the compute provider is a Nexus service, this should point
       there.
       
      string nexus_endpoint = 10;
      Parameters:
      value - The bytes for nexusEndpoint to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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