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
    Protobuf type temporal.api.cloud.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()
         The name of the endpoint. Must be unique within an account.
         The name must match `^[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]$`.
         This field is mutable.
         
        string name = 1;
        Specified by:
        getName in interface EndpointSpecOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of the endpoint. Must be unique within an account.
         The name must match `^[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]$`.
         This field is mutable.
         
        string name = 1;
        Specified by:
        getNameBytes in interface EndpointSpecOrBuilder
        Returns:
        The bytes for name.
      • setName

        public EndpointSpec.Builder setName​(java.lang.String value)
         The name of the endpoint. Must be unique within an account.
         The name must match `^[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]$`.
         This field is mutable.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public EndpointSpec.Builder clearName()
         The name of the endpoint. Must be unique within an account.
         The name must match `^[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]$`.
         This field is mutable.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public EndpointSpec.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The name of the endpoint. Must be unique within an account.
         The name must match `^[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]$`.
         This field is mutable.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasTargetSpec

        public boolean hasTargetSpec()
         Indicates where the endpoint should forward received nexus requests to. 
         
        .temporal.api.cloud.nexus.v1.EndpointTargetSpec target_spec = 2;
        Specified by:
        hasTargetSpec in interface EndpointSpecOrBuilder
        Returns:
        Whether the targetSpec field is set.
      • getTargetSpec

        public EndpointTargetSpec getTargetSpec()
         Indicates where the endpoint should forward received nexus requests to. 
         
        .temporal.api.cloud.nexus.v1.EndpointTargetSpec target_spec = 2;
        Specified by:
        getTargetSpec in interface EndpointSpecOrBuilder
        Returns:
        The targetSpec.
      • setTargetSpec

        public EndpointSpec.Builder setTargetSpec​(EndpointTargetSpec value)
         Indicates where the endpoint should forward received nexus requests to. 
         
        .temporal.api.cloud.nexus.v1.EndpointTargetSpec target_spec = 2;
      • setTargetSpec

        public EndpointSpec.Builder setTargetSpec​(EndpointTargetSpec.Builder builderForValue)
         Indicates where the endpoint should forward received nexus requests to. 
         
        .temporal.api.cloud.nexus.v1.EndpointTargetSpec target_spec = 2;
      • mergeTargetSpec

        public EndpointSpec.Builder mergeTargetSpec​(EndpointTargetSpec value)
         Indicates where the endpoint should forward received nexus requests to. 
         
        .temporal.api.cloud.nexus.v1.EndpointTargetSpec target_spec = 2;
      • clearTargetSpec

        public EndpointSpec.Builder clearTargetSpec()
         Indicates where the endpoint should forward received nexus requests to. 
         
        .temporal.api.cloud.nexus.v1.EndpointTargetSpec target_spec = 2;
      • getTargetSpecBuilder

        public EndpointTargetSpec.Builder getTargetSpecBuilder()
         Indicates where the endpoint should forward received nexus requests to. 
         
        .temporal.api.cloud.nexus.v1.EndpointTargetSpec target_spec = 2;
      • getPolicySpecsList

        public java.util.List<EndpointPolicySpec> getPolicySpecsList()
         The set of policies (e.g. authorization) for the endpoint. Each request's caller
         must match with at least one of the specs to be accepted by the endpoint.
         This field is mutable.
         
        repeated .temporal.api.cloud.nexus.v1.EndpointPolicySpec policy_specs = 3;
        Specified by:
        getPolicySpecsList in interface EndpointSpecOrBuilder
      • getPolicySpecsCount

        public int getPolicySpecsCount()
         The set of policies (e.g. authorization) for the endpoint. Each request's caller
         must match with at least one of the specs to be accepted by the endpoint.
         This field is mutable.
         
        repeated .temporal.api.cloud.nexus.v1.EndpointPolicySpec policy_specs = 3;
        Specified by:
        getPolicySpecsCount in interface EndpointSpecOrBuilder
      • getPolicySpecs

        public EndpointPolicySpec getPolicySpecs​(int index)
         The set of policies (e.g. authorization) for the endpoint. Each request's caller
         must match with at least one of the specs to be accepted by the endpoint.
         This field is mutable.
         
        repeated .temporal.api.cloud.nexus.v1.EndpointPolicySpec policy_specs = 3;
        Specified by:
        getPolicySpecs in interface EndpointSpecOrBuilder
      • setPolicySpecs

        public EndpointSpec.Builder setPolicySpecs​(int index,
                                                   EndpointPolicySpec value)
         The set of policies (e.g. authorization) for the endpoint. Each request's caller
         must match with at least one of the specs to be accepted by the endpoint.
         This field is mutable.
         
        repeated .temporal.api.cloud.nexus.v1.EndpointPolicySpec policy_specs = 3;
      • setPolicySpecs

        public EndpointSpec.Builder setPolicySpecs​(int index,
                                                   EndpointPolicySpec.Builder builderForValue)
         The set of policies (e.g. authorization) for the endpoint. Each request's caller
         must match with at least one of the specs to be accepted by the endpoint.
         This field is mutable.
         
        repeated .temporal.api.cloud.nexus.v1.EndpointPolicySpec policy_specs = 3;
      • addPolicySpecs

        public EndpointSpec.Builder addPolicySpecs​(EndpointPolicySpec value)
         The set of policies (e.g. authorization) for the endpoint. Each request's caller
         must match with at least one of the specs to be accepted by the endpoint.
         This field is mutable.
         
        repeated .temporal.api.cloud.nexus.v1.EndpointPolicySpec policy_specs = 3;
      • addPolicySpecs

        public EndpointSpec.Builder addPolicySpecs​(int index,
                                                   EndpointPolicySpec value)
         The set of policies (e.g. authorization) for the endpoint. Each request's caller
         must match with at least one of the specs to be accepted by the endpoint.
         This field is mutable.
         
        repeated .temporal.api.cloud.nexus.v1.EndpointPolicySpec policy_specs = 3;
      • addPolicySpecs

        public EndpointSpec.Builder addPolicySpecs​(EndpointPolicySpec.Builder builderForValue)
         The set of policies (e.g. authorization) for the endpoint. Each request's caller
         must match with at least one of the specs to be accepted by the endpoint.
         This field is mutable.
         
        repeated .temporal.api.cloud.nexus.v1.EndpointPolicySpec policy_specs = 3;
      • addPolicySpecs

        public EndpointSpec.Builder addPolicySpecs​(int index,
                                                   EndpointPolicySpec.Builder builderForValue)
         The set of policies (e.g. authorization) for the endpoint. Each request's caller
         must match with at least one of the specs to be accepted by the endpoint.
         This field is mutable.
         
        repeated .temporal.api.cloud.nexus.v1.EndpointPolicySpec policy_specs = 3;
      • addAllPolicySpecs

        public EndpointSpec.Builder addAllPolicySpecs​(java.lang.Iterable<? extends EndpointPolicySpec> values)
         The set of policies (e.g. authorization) for the endpoint. Each request's caller
         must match with at least one of the specs to be accepted by the endpoint.
         This field is mutable.
         
        repeated .temporal.api.cloud.nexus.v1.EndpointPolicySpec policy_specs = 3;
      • clearPolicySpecs

        public EndpointSpec.Builder clearPolicySpecs()
         The set of policies (e.g. authorization) for the endpoint. Each request's caller
         must match with at least one of the specs to be accepted by the endpoint.
         This field is mutable.
         
        repeated .temporal.api.cloud.nexus.v1.EndpointPolicySpec policy_specs = 3;
      • removePolicySpecs

        public EndpointSpec.Builder removePolicySpecs​(int index)
         The set of policies (e.g. authorization) for the endpoint. Each request's caller
         must match with at least one of the specs to be accepted by the endpoint.
         This field is mutable.
         
        repeated .temporal.api.cloud.nexus.v1.EndpointPolicySpec policy_specs = 3;
      • getPolicySpecsBuilder

        public EndpointPolicySpec.Builder getPolicySpecsBuilder​(int index)
         The set of policies (e.g. authorization) for the endpoint. Each request's caller
         must match with at least one of the specs to be accepted by the endpoint.
         This field is mutable.
         
        repeated .temporal.api.cloud.nexus.v1.EndpointPolicySpec policy_specs = 3;
      • getPolicySpecsOrBuilder

        public EndpointPolicySpecOrBuilder getPolicySpecsOrBuilder​(int index)
         The set of policies (e.g. authorization) for the endpoint. Each request's caller
         must match with at least one of the specs to be accepted by the endpoint.
         This field is mutable.
         
        repeated .temporal.api.cloud.nexus.v1.EndpointPolicySpec policy_specs = 3;
        Specified by:
        getPolicySpecsOrBuilder in interface EndpointSpecOrBuilder
      • getPolicySpecsOrBuilderList

        public java.util.List<? extends EndpointPolicySpecOrBuilder> getPolicySpecsOrBuilderList()
         The set of policies (e.g. authorization) for the endpoint. Each request's caller
         must match with at least one of the specs to be accepted by the endpoint.
         This field is mutable.
         
        repeated .temporal.api.cloud.nexus.v1.EndpointPolicySpec policy_specs = 3;
        Specified by:
        getPolicySpecsOrBuilderList in interface EndpointSpecOrBuilder
      • addPolicySpecsBuilder

        public EndpointPolicySpec.Builder addPolicySpecsBuilder()
         The set of policies (e.g. authorization) for the endpoint. Each request's caller
         must match with at least one of the specs to be accepted by the endpoint.
         This field is mutable.
         
        repeated .temporal.api.cloud.nexus.v1.EndpointPolicySpec policy_specs = 3;
      • addPolicySpecsBuilder

        public EndpointPolicySpec.Builder addPolicySpecsBuilder​(int index)
         The set of policies (e.g. authorization) for the endpoint. Each request's caller
         must match with at least one of the specs to be accepted by the endpoint.
         This field is mutable.
         
        repeated .temporal.api.cloud.nexus.v1.EndpointPolicySpec policy_specs = 3;
      • getPolicySpecsBuilderList

        public java.util.List<EndpointPolicySpec.Builder> getPolicySpecsBuilderList()
         The set of policies (e.g. authorization) for the endpoint. Each request's caller
         must match with at least one of the specs to be accepted by the endpoint.
         This field is mutable.
         
        repeated .temporal.api.cloud.nexus.v1.EndpointPolicySpec policy_specs = 3;
      • getDescriptionDeprecated

        @Deprecated
        public java.lang.String getDescriptionDeprecated()
        Deprecated.
        temporal.api.cloud.nexus.v1.EndpointSpec.description_deprecated is deprecated. See temporal/api/cloud/nexus/v1/message.proto;l=31
         Deprecated: Not supported after v0.4.0 api version. Use description instead.
         temporal:versioning:max_version=v0.4.0
         
        string description_deprecated = 4 [deprecated = true];
        Specified by:
        getDescriptionDeprecated in interface EndpointSpecOrBuilder
        Returns:
        The descriptionDeprecated.
      • getDescriptionDeprecatedBytes

        @Deprecated
        public com.google.protobuf.ByteString getDescriptionDeprecatedBytes()
        Deprecated.
        temporal.api.cloud.nexus.v1.EndpointSpec.description_deprecated is deprecated. See temporal/api/cloud/nexus/v1/message.proto;l=31
         Deprecated: Not supported after v0.4.0 api version. Use description instead.
         temporal:versioning:max_version=v0.4.0
         
        string description_deprecated = 4 [deprecated = true];
        Specified by:
        getDescriptionDeprecatedBytes in interface EndpointSpecOrBuilder
        Returns:
        The bytes for descriptionDeprecated.
      • setDescriptionDeprecated

        @Deprecated
        public EndpointSpec.Builder setDescriptionDeprecated​(java.lang.String value)
        Deprecated.
        temporal.api.cloud.nexus.v1.EndpointSpec.description_deprecated is deprecated. See temporal/api/cloud/nexus/v1/message.proto;l=31
         Deprecated: Not supported after v0.4.0 api version. Use description instead.
         temporal:versioning:max_version=v0.4.0
         
        string description_deprecated = 4 [deprecated = true];
        Parameters:
        value - The descriptionDeprecated to set.
        Returns:
        This builder for chaining.
      • clearDescriptionDeprecated

        @Deprecated
        public EndpointSpec.Builder clearDescriptionDeprecated()
        Deprecated.
        temporal.api.cloud.nexus.v1.EndpointSpec.description_deprecated is deprecated. See temporal/api/cloud/nexus/v1/message.proto;l=31
         Deprecated: Not supported after v0.4.0 api version. Use description instead.
         temporal:versioning:max_version=v0.4.0
         
        string description_deprecated = 4 [deprecated = true];
        Returns:
        This builder for chaining.
      • setDescriptionDeprecatedBytes

        @Deprecated
        public EndpointSpec.Builder setDescriptionDeprecatedBytes​(com.google.protobuf.ByteString value)
        Deprecated.
        temporal.api.cloud.nexus.v1.EndpointSpec.description_deprecated is deprecated. See temporal/api/cloud/nexus/v1/message.proto;l=31
         Deprecated: Not supported after v0.4.0 api version. Use description instead.
         temporal:versioning:max_version=v0.4.0
         
        string description_deprecated = 4 [deprecated = true];
        Parameters:
        value - The bytes for descriptionDeprecated to set.
        Returns:
        This builder for chaining.
      • hasDescription

        public boolean hasDescription()
         The markdown description of the endpoint - optional.
         temporal:versioning:min_version=v0.4.0
         
        .temporal.api.common.v1.Payload description = 5;
        Specified by:
        hasDescription in interface EndpointSpecOrBuilder
        Returns:
        Whether the description field is set.
      • getDescription

        public Payload getDescription()
         The markdown description of the endpoint - optional.
         temporal:versioning:min_version=v0.4.0
         
        .temporal.api.common.v1.Payload description = 5;
        Specified by:
        getDescription in interface EndpointSpecOrBuilder
        Returns:
        The description.
      • setDescription

        public EndpointSpec.Builder setDescription​(Payload value)
         The markdown description of the endpoint - optional.
         temporal:versioning:min_version=v0.4.0
         
        .temporal.api.common.v1.Payload description = 5;
      • setDescription

        public EndpointSpec.Builder setDescription​(Payload.Builder builderForValue)
         The markdown description of the endpoint - optional.
         temporal:versioning:min_version=v0.4.0
         
        .temporal.api.common.v1.Payload description = 5;
      • mergeDescription

        public EndpointSpec.Builder mergeDescription​(Payload value)
         The markdown description of the endpoint - optional.
         temporal:versioning:min_version=v0.4.0
         
        .temporal.api.common.v1.Payload description = 5;
      • clearDescription

        public EndpointSpec.Builder clearDescription()
         The markdown description of the endpoint - optional.
         temporal:versioning:min_version=v0.4.0
         
        .temporal.api.common.v1.Payload description = 5;
      • getDescriptionBuilder

        public Payload.Builder getDescriptionBuilder()
         The markdown description of the endpoint - optional.
         temporal:versioning:min_version=v0.4.0
         
        .temporal.api.common.v1.Payload description = 5;
      • 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>