ApiDef.EndpointOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
ApiDef.Endpoint |
If you specify any endpoint, this will replace all of the
inherited endpoints. |
ApiDef.Endpoint.Builder |
If you specify any endpoint, this will replace all of the
inherited endpoints. |
|
Public Methods
abstract
boolean
|
|
abstract
int
|
|
abstract
String
|
getName()
Name should be either like "CamelCaseName" or
"Package.CamelCaseName".
|
abstract
com.google.protobuf.ByteString
|
getNameBytes()
Name should be either like "CamelCaseName" or
"Package.CamelCaseName".
|
Public Methods
public
abstract
boolean
getDeprecated
()
Set if this endpoint is deprecated. If set to true, a message suggesting
to use a non-deprecated endpoint instead will be printed. If all
endpoints are deprecated, set deprecation_message in ApiDef instead.
bool deprecated = 3;
public
abstract
int
getDeprecationVersion
()
Major version when an endpoint will be deleted. For e.g. set this
value to 2 if endpoint should be removed in TensorFlow 2.0 and
deprecated in versions before that.
int32 deprecation_version = 4;
public
abstract
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;
public
abstract
com.google.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;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-11-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-11-29 UTC."],[],[],null,["# ApiDef.EndpointOrBuilder\n\npublic static interface **ApiDef.EndpointOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [ApiDef.Endpoint](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.Endpoint), [ApiDef.Endpoint.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.Endpoint.Builder) |------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------| | [ApiDef.Endpoint](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.Endpoint) | ``` If you specify any endpoint, this will replace all of the inherited endpoints. ``` | | [ApiDef.Endpoint.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.Endpoint.Builder) | ``` If you specify any endpoint, this will replace all of the inherited endpoints. ``` | |||\n\n### Public Methods\n\n|-----------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract boolean | [getDeprecated](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.EndpointOrBuilder#getDeprecated())() ``` Set if this endpoint is deprecated. ``` |\n| abstract int | [getDeprecationVersion](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.EndpointOrBuilder#getDeprecationVersion())() ``` Major version when an endpoint will be deleted. ``` |\n| abstract String | [getName](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.EndpointOrBuilder#getName())() ``` Name should be either like \"CamelCaseName\" or \"Package.CamelCaseName\". ``` |\n| abstract com.google.protobuf.ByteString | [getNameBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.EndpointOrBuilder#getNameBytes())() ``` Name should be either like \"CamelCaseName\" or \"Package.CamelCaseName\". ``` |\n\nPublic Methods\n--------------\n\n#### public abstract boolean\n**getDeprecated**\n()\n\n\u003cbr /\u003e\n\n```\n Set if this endpoint is deprecated. If set to true, a message suggesting\n to use a non-deprecated endpoint instead will be printed. If all\n endpoints are deprecated, set deprecation_message in ApiDef instead.\n \n```\n`bool deprecated = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract int\n**getDeprecationVersion**\n()\n\n\u003cbr /\u003e\n\n```\n Major version when an endpoint will be deleted. For e.g. set this\n value to 2 if endpoint should be removed in TensorFlow 2.0 and\n deprecated in versions before that.\n \n```\n`int32 deprecation_version = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getName**\n()\n\n\u003cbr /\u003e\n\n```\n Name should be either like \"CamelCaseName\" or\n \"Package.CamelCaseName\". Client-language-specific ApiDefs may\n use a snake_case convention instead of CamelCase.\n \n```\n`string name = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getNameBytes**\n()\n\n\u003cbr /\u003e\n\n```\n Name should be either like \"CamelCaseName\" or\n \"Package.CamelCaseName\". Client-language-specific ApiDefs may\n use a snake_case convention instead of CamelCase.\n \n```\n`string name = 1;`\n\n\u003cbr /\u003e"]]