Class ApiDef.Endpoint.Builder

  • All Implemented Interfaces:
    Cloneable, org.nd4j.shade.protobuf.Message.Builder, org.nd4j.shade.protobuf.MessageLite.Builder, org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder, ApiDef.EndpointOrBuilder
    Enclosing class:
    ApiDef.Endpoint

    public static final class ApiDef.Endpoint.Builder
    extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
    implements ApiDef.EndpointOrBuilder
     If you specify any endpoint, this will replace all of the
     inherited endpoints.  The first endpoint should be the
     "canonical" endpoint, and should not be deprecated (unless all
     endpoints are deprecated).
     
    Protobuf type tensorflow.ApiDef.Endpoint
    • Method Detail

      • getDescriptor

        public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
      • clear

        public ApiDef.Endpoint.Builder clear()
        Specified by:
        clear in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clear in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clear in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
      • getDescriptorForType

        public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
      • getDefaultInstanceForType

        public ApiDef.Endpoint getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
      • build

        public ApiDef.Endpoint build()
        Specified by:
        build in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        build in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • buildPartial

        public ApiDef.Endpoint buildPartial()
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • clone

        public ApiDef.Endpoint.Builder clone()
        Specified by:
        clone in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clone in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clone in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
      • setField

        public ApiDef.Endpoint.Builder setField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
      • clearField

        public ApiDef.Endpoint.Builder clearField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
      • clearOneof

        public ApiDef.Endpoint.Builder clearOneof​(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearOneof in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
      • setRepeatedField

        public ApiDef.Endpoint.Builder setRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
      • addRepeatedField

        public ApiDef.Endpoint.Builder addRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
      • mergeFrom

        public ApiDef.Endpoint.Builder mergeFrom​(org.nd4j.shade.protobuf.Message other)
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<ApiDef.Endpoint.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
      • mergeFrom

        public ApiDef.Endpoint.Builder mergeFrom​(org.nd4j.shade.protobuf.CodedInputStream input,
                                                 org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<ApiDef.Endpoint.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Name should be either like "CamelCaseName" or
         "Package.CamelCaseName". Client-language-specific ApiDefs may
         use a snake_case convention instead of CamelCase.
         
        string name = 1;
        Specified by:
        getName in interface ApiDef.EndpointOrBuilder
        Returns:
        The name.
      • getNameBytes

        public org.nd4j.shade.protobuf.ByteString getNameBytes()
         Name should be either like "CamelCaseName" or
         "Package.CamelCaseName". Client-language-specific ApiDefs may
         use a snake_case convention instead of CamelCase.
         
        string name = 1;
        Specified by:
        getNameBytes in interface ApiDef.EndpointOrBuilder
        Returns:
        The bytes for name.
      • setName

        public ApiDef.Endpoint.Builder setName​(String value)
         Name should be either like "CamelCaseName" or
         "Package.CamelCaseName". Client-language-specific ApiDefs may
         use a snake_case convention instead of CamelCase.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public ApiDef.Endpoint.Builder clearName()
         Name should be either like "CamelCaseName" or
         "Package.CamelCaseName". Client-language-specific ApiDefs may
         use a snake_case convention instead of CamelCase.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public ApiDef.Endpoint.Builder setNameBytes​(org.nd4j.shade.protobuf.ByteString value)
         Name should be either like "CamelCaseName" or
         "Package.CamelCaseName". Client-language-specific ApiDefs may
         use a snake_case convention instead of CamelCase.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDeprecationMessage

        public String getDeprecationMessage()
         If this endpoint is deprecated, set deprecation_message to a
         message that should be logged when the endpoint is used.
         The message should indicate alternative endpoint to use, if any.
         
        string deprecation_message = 2;
        Specified by:
        getDeprecationMessage in interface ApiDef.EndpointOrBuilder
        Returns:
        The deprecationMessage.
      • getDeprecationMessageBytes

        public org.nd4j.shade.protobuf.ByteString getDeprecationMessageBytes()
         If this endpoint is deprecated, set deprecation_message to a
         message that should be logged when the endpoint is used.
         The message should indicate alternative endpoint to use, if any.
         
        string deprecation_message = 2;
        Specified by:
        getDeprecationMessageBytes in interface ApiDef.EndpointOrBuilder
        Returns:
        The bytes for deprecationMessage.
      • setDeprecationMessage

        public ApiDef.Endpoint.Builder setDeprecationMessage​(String value)
         If this endpoint is deprecated, set deprecation_message to a
         message that should be logged when the endpoint is used.
         The message should indicate alternative endpoint to use, if any.
         
        string deprecation_message = 2;
        Parameters:
        value - The deprecationMessage to set.
        Returns:
        This builder for chaining.
      • clearDeprecationMessage

        public ApiDef.Endpoint.Builder clearDeprecationMessage()
         If this endpoint is deprecated, set deprecation_message to a
         message that should be logged when the endpoint is used.
         The message should indicate alternative endpoint to use, if any.
         
        string deprecation_message = 2;
        Returns:
        This builder for chaining.
      • setDeprecationMessageBytes

        public ApiDef.Endpoint.Builder setDeprecationMessageBytes​(org.nd4j.shade.protobuf.ByteString value)
         If this endpoint is deprecated, set deprecation_message to a
         message that should be logged when the endpoint is used.
         The message should indicate alternative endpoint to use, if any.
         
        string deprecation_message = 2;
        Parameters:
        value - The bytes for deprecationMessage to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ApiDef.Endpoint.Builder setUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
      • mergeUnknownFields

        public final ApiDef.Endpoint.Builder mergeUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>