Class Endpoint.Builder

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

public static final class Endpoint.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.Builder> implements EndpointOrBuilder
 A cluster-global binding from an endpoint ID to a target for dispatching incoming Nexus requests.
 
Protobuf type temporal.api.nexus.v1.Endpoint
  • 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<Endpoint.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public Endpoint.Builder mergeFrom(Endpoint other)
    • isInitialized

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

      public Endpoint.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<Endpoint.Builder>
      Throws:
      IOException
    • getVersion

      public long getVersion()
       Data version for this endpoint, incremented for every update issued via the UpdateNexusEndpoint API.
       
      int64 version = 1;
      Specified by:
      getVersion in interface EndpointOrBuilder
      Returns:
      The version.
    • setVersion

      public Endpoint.Builder setVersion(long value)
       Data version for this endpoint, incremented for every update issued via the UpdateNexusEndpoint API.
       
      int64 version = 1;
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public Endpoint.Builder clearVersion()
       Data version for this endpoint, incremented for every update issued via the UpdateNexusEndpoint API.
       
      int64 version = 1;
      Returns:
      This builder for chaining.
    • getId

      public String getId()
       Unique server-generated endpoint ID.
       
      string id = 2;
      Specified by:
      getId in interface EndpointOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Unique server-generated endpoint ID.
       
      string id = 2;
      Specified by:
      getIdBytes in interface EndpointOrBuilder
      Returns:
      The bytes for id.
    • setId

      public Endpoint.Builder setId(String value)
       Unique server-generated endpoint ID.
       
      string id = 2;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Endpoint.Builder clearId()
       Unique server-generated endpoint ID.
       
      string id = 2;
      Returns:
      This builder for chaining.
    • setIdBytes

      public Endpoint.Builder setIdBytes(com.google.protobuf.ByteString value)
       Unique server-generated endpoint ID.
       
      string id = 2;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • hasSpec

      public boolean hasSpec()
       Spec for the endpoint.
       
      .temporal.api.nexus.v1.EndpointSpec spec = 3;
      Specified by:
      hasSpec in interface EndpointOrBuilder
      Returns:
      Whether the spec field is set.
    • getSpec

      public EndpointSpec getSpec()
       Spec for the endpoint.
       
      .temporal.api.nexus.v1.EndpointSpec spec = 3;
      Specified by:
      getSpec in interface EndpointOrBuilder
      Returns:
      The spec.
    • setSpec

      public Endpoint.Builder setSpec(EndpointSpec value)
       Spec for the endpoint.
       
      .temporal.api.nexus.v1.EndpointSpec spec = 3;
    • setSpec

      public Endpoint.Builder setSpec(EndpointSpec.Builder builderForValue)
       Spec for the endpoint.
       
      .temporal.api.nexus.v1.EndpointSpec spec = 3;
    • mergeSpec

      public Endpoint.Builder mergeSpec(EndpointSpec value)
       Spec for the endpoint.
       
      .temporal.api.nexus.v1.EndpointSpec spec = 3;
    • clearSpec

      public Endpoint.Builder clearSpec()
       Spec for the endpoint.
       
      .temporal.api.nexus.v1.EndpointSpec spec = 3;
    • getSpecBuilder

      public EndpointSpec.Builder getSpecBuilder()
       Spec for the endpoint.
       
      .temporal.api.nexus.v1.EndpointSpec spec = 3;
    • getSpecOrBuilder

      public EndpointSpecOrBuilder getSpecOrBuilder()
       Spec for the endpoint.
       
      .temporal.api.nexus.v1.EndpointSpec spec = 3;
      Specified by:
      getSpecOrBuilder in interface EndpointOrBuilder
    • hasCreatedTime

      public boolean hasCreatedTime()
       The date and time when the endpoint was created.
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Not following linter rules. --)
       
      .google.protobuf.Timestamp created_time = 4;
      Specified by:
      hasCreatedTime in interface EndpointOrBuilder
      Returns:
      Whether the createdTime field is set.
    • getCreatedTime

      public com.google.protobuf.Timestamp getCreatedTime()
       The date and time when the endpoint was created.
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Not following linter rules. --)
       
      .google.protobuf.Timestamp created_time = 4;
      Specified by:
      getCreatedTime in interface EndpointOrBuilder
      Returns:
      The createdTime.
    • setCreatedTime

      public Endpoint.Builder setCreatedTime(com.google.protobuf.Timestamp value)
       The date and time when the endpoint was created.
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Not following linter rules. --)
       
      .google.protobuf.Timestamp created_time = 4;
    • setCreatedTime

      public Endpoint.Builder setCreatedTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The date and time when the endpoint was created.
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Not following linter rules. --)
       
      .google.protobuf.Timestamp created_time = 4;
    • mergeCreatedTime

      public Endpoint.Builder mergeCreatedTime(com.google.protobuf.Timestamp value)
       The date and time when the endpoint was created.
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Not following linter rules. --)
       
      .google.protobuf.Timestamp created_time = 4;
    • clearCreatedTime

      public Endpoint.Builder clearCreatedTime()
       The date and time when the endpoint was created.
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Not following linter rules. --)
       
      .google.protobuf.Timestamp created_time = 4;
    • getCreatedTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreatedTimeBuilder()
       The date and time when the endpoint was created.
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Not following linter rules. --)
       
      .google.protobuf.Timestamp created_time = 4;
    • getCreatedTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreatedTimeOrBuilder()
       The date and time when the endpoint was created.
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Not following linter rules. --)
       
      .google.protobuf.Timestamp created_time = 4;
      Specified by:
      getCreatedTimeOrBuilder in interface EndpointOrBuilder
    • hasLastModifiedTime

      public boolean hasLastModifiedTime()
       The date and time when the endpoint was last modified.
       Will not be set if the endpoint has never been modified.
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Not following linter rules. --)
       
      .google.protobuf.Timestamp last_modified_time = 5;
      Specified by:
      hasLastModifiedTime in interface EndpointOrBuilder
      Returns:
      Whether the lastModifiedTime field is set.
    • getLastModifiedTime

      public com.google.protobuf.Timestamp getLastModifiedTime()
       The date and time when the endpoint was last modified.
       Will not be set if the endpoint has never been modified.
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Not following linter rules. --)
       
      .google.protobuf.Timestamp last_modified_time = 5;
      Specified by:
      getLastModifiedTime in interface EndpointOrBuilder
      Returns:
      The lastModifiedTime.
    • setLastModifiedTime

      public Endpoint.Builder setLastModifiedTime(com.google.protobuf.Timestamp value)
       The date and time when the endpoint was last modified.
       Will not be set if the endpoint has never been modified.
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Not following linter rules. --)
       
      .google.protobuf.Timestamp last_modified_time = 5;
    • setLastModifiedTime

      public Endpoint.Builder setLastModifiedTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The date and time when the endpoint was last modified.
       Will not be set if the endpoint has never been modified.
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Not following linter rules. --)
       
      .google.protobuf.Timestamp last_modified_time = 5;
    • mergeLastModifiedTime

      public Endpoint.Builder mergeLastModifiedTime(com.google.protobuf.Timestamp value)
       The date and time when the endpoint was last modified.
       Will not be set if the endpoint has never been modified.
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Not following linter rules. --)
       
      .google.protobuf.Timestamp last_modified_time = 5;
    • clearLastModifiedTime

      public Endpoint.Builder clearLastModifiedTime()
       The date and time when the endpoint was last modified.
       Will not be set if the endpoint has never been modified.
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Not following linter rules. --)
       
      .google.protobuf.Timestamp last_modified_time = 5;
    • getLastModifiedTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLastModifiedTimeBuilder()
       The date and time when the endpoint was last modified.
       Will not be set if the endpoint has never been modified.
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Not following linter rules. --)
       
      .google.protobuf.Timestamp last_modified_time = 5;
    • getLastModifiedTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastModifiedTimeOrBuilder()
       The date and time when the endpoint was last modified.
       Will not be set if the endpoint has never been modified.
       (-- api-linter: core::0142::time-field-names=disabled
           aip.dev/not-precedent: Not following linter rules. --)
       
      .google.protobuf.Timestamp last_modified_time = 5;
      Specified by:
      getLastModifiedTimeOrBuilder in interface EndpointOrBuilder
    • getUrlPrefix

      public String getUrlPrefix()
       Server exposed URL prefix for invocation of operations on this endpoint.
       This doesn't include the protocol, hostname or port as the server does not know how it should be accessed
       publicly. The URL is stable in the face of endpoint renames.
       
      string url_prefix = 6;
      Specified by:
      getUrlPrefix in interface EndpointOrBuilder
      Returns:
      The urlPrefix.
    • getUrlPrefixBytes

      public com.google.protobuf.ByteString getUrlPrefixBytes()
       Server exposed URL prefix for invocation of operations on this endpoint.
       This doesn't include the protocol, hostname or port as the server does not know how it should be accessed
       publicly. The URL is stable in the face of endpoint renames.
       
      string url_prefix = 6;
      Specified by:
      getUrlPrefixBytes in interface EndpointOrBuilder
      Returns:
      The bytes for urlPrefix.
    • setUrlPrefix

      public Endpoint.Builder setUrlPrefix(String value)
       Server exposed URL prefix for invocation of operations on this endpoint.
       This doesn't include the protocol, hostname or port as the server does not know how it should be accessed
       publicly. The URL is stable in the face of endpoint renames.
       
      string url_prefix = 6;
      Parameters:
      value - The urlPrefix to set.
      Returns:
      This builder for chaining.
    • clearUrlPrefix

      public Endpoint.Builder clearUrlPrefix()
       Server exposed URL prefix for invocation of operations on this endpoint.
       This doesn't include the protocol, hostname or port as the server does not know how it should be accessed
       publicly. The URL is stable in the face of endpoint renames.
       
      string url_prefix = 6;
      Returns:
      This builder for chaining.
    • setUrlPrefixBytes

      public Endpoint.Builder setUrlPrefixBytes(com.google.protobuf.ByteString value)
       Server exposed URL prefix for invocation of operations on this endpoint.
       This doesn't include the protocol, hostname or port as the server does not know how it should be accessed
       publicly. The URL is stable in the face of endpoint renames.
       
      string url_prefix = 6;
      Parameters:
      value - The bytes for urlPrefix to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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