Class EndpointSpec.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, EndpointSpecOrBuilder, java.lang.Cloneable
    Enclosing class:
    EndpointSpec

    public static final class EndpointSpec.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<EndpointSpec.Builder>
    implements EndpointSpecOrBuilder
     Contains mutable fields for an Endpoint.
     
    Protobuf type temporal.api.nexus.v1.EndpointSpec
    • Method Detail

      • 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<EndpointSpec.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public EndpointSpec.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<EndpointSpec.Builder>
      • isInitialized

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

        public EndpointSpec.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.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<EndpointSpec.Builder>
        Throws:
        java.io.IOException
      • getName

        public java.lang.String getName()
         Endpoint name, unique for this cluster. Must match `[a-zA-Z_][a-zA-Z0-9_]*`.
         Renaming an endpoint breaks all workflow callers that reference this endpoint, causing operations to fail.
         
        string name = 1;
        Specified by:
        getName in interface EndpointSpecOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Endpoint name, unique for this cluster. Must match `[a-zA-Z_][a-zA-Z0-9_]*`.
         Renaming an endpoint breaks all workflow callers that reference this endpoint, causing operations to fail.
         
        string name = 1;
        Specified by:
        getNameBytes in interface EndpointSpecOrBuilder
        Returns:
        The bytes for name.
      • setName

        public EndpointSpec.Builder setName​(java.lang.String value)
         Endpoint name, unique for this cluster. Must match `[a-zA-Z_][a-zA-Z0-9_]*`.
         Renaming an endpoint breaks all workflow callers that reference this endpoint, causing operations to fail.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public EndpointSpec.Builder clearName()
         Endpoint name, unique for this cluster. Must match `[a-zA-Z_][a-zA-Z0-9_]*`.
         Renaming an endpoint breaks all workflow callers that reference this endpoint, causing operations to fail.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public EndpointSpec.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Endpoint name, unique for this cluster. Must match `[a-zA-Z_][a-zA-Z0-9_]*`.
         Renaming an endpoint breaks all workflow callers that reference this endpoint, causing operations to fail.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasDescription

        public boolean hasDescription()
         Markdown description serialized as a single JSON string.
         If the Payload is encrypted, the UI and CLI may decrypt with the configured codec server endpoint.
         By default, the server enforces a limit of 20,000 bytes for this entire payload.
         
        .temporal.api.common.v1.Payload description = 2;
        Specified by:
        hasDescription in interface EndpointSpecOrBuilder
        Returns:
        Whether the description field is set.
      • getDescription

        public Payload getDescription()
         Markdown description serialized as a single JSON string.
         If the Payload is encrypted, the UI and CLI may decrypt with the configured codec server endpoint.
         By default, the server enforces a limit of 20,000 bytes for this entire payload.
         
        .temporal.api.common.v1.Payload description = 2;
        Specified by:
        getDescription in interface EndpointSpecOrBuilder
        Returns:
        The description.
      • setDescription

        public EndpointSpec.Builder setDescription​(Payload value)
         Markdown description serialized as a single JSON string.
         If the Payload is encrypted, the UI and CLI may decrypt with the configured codec server endpoint.
         By default, the server enforces a limit of 20,000 bytes for this entire payload.
         
        .temporal.api.common.v1.Payload description = 2;
      • setDescription

        public EndpointSpec.Builder setDescription​(Payload.Builder builderForValue)
         Markdown description serialized as a single JSON string.
         If the Payload is encrypted, the UI and CLI may decrypt with the configured codec server endpoint.
         By default, the server enforces a limit of 20,000 bytes for this entire payload.
         
        .temporal.api.common.v1.Payload description = 2;
      • mergeDescription

        public EndpointSpec.Builder mergeDescription​(Payload value)
         Markdown description serialized as a single JSON string.
         If the Payload is encrypted, the UI and CLI may decrypt with the configured codec server endpoint.
         By default, the server enforces a limit of 20,000 bytes for this entire payload.
         
        .temporal.api.common.v1.Payload description = 2;
      • clearDescription

        public EndpointSpec.Builder clearDescription()
         Markdown description serialized as a single JSON string.
         If the Payload is encrypted, the UI and CLI may decrypt with the configured codec server endpoint.
         By default, the server enforces a limit of 20,000 bytes for this entire payload.
         
        .temporal.api.common.v1.Payload description = 2;
      • getDescriptionBuilder

        public Payload.Builder getDescriptionBuilder()
         Markdown description serialized as a single JSON string.
         If the Payload is encrypted, the UI and CLI may decrypt with the configured codec server endpoint.
         By default, the server enforces a limit of 20,000 bytes for this entire payload.
         
        .temporal.api.common.v1.Payload description = 2;
      • getDescriptionOrBuilder

        public PayloadOrBuilder getDescriptionOrBuilder()
         Markdown description serialized as a single JSON string.
         If the Payload is encrypted, the UI and CLI may decrypt with the configured codec server endpoint.
         By default, the server enforces a limit of 20,000 bytes for this entire payload.
         
        .temporal.api.common.v1.Payload description = 2;
        Specified by:
        getDescriptionOrBuilder in interface EndpointSpecOrBuilder
      • hasTarget

        public boolean hasTarget()
         Target to route requests to.
         
        .temporal.api.nexus.v1.EndpointTarget target = 3;
        Specified by:
        hasTarget in interface EndpointSpecOrBuilder
        Returns:
        Whether the target field is set.
      • clearTarget

        public EndpointSpec.Builder clearTarget()
         Target to route requests to.
         
        .temporal.api.nexus.v1.EndpointTarget target = 3;
      • getTargetBuilder

        public EndpointTarget.Builder getTargetBuilder()
         Target to route requests to.
         
        .temporal.api.nexus.v1.EndpointTarget target = 3;
      • setUnknownFields

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

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