Interface ApiDef.EndpointOrBuilder
- All Superinterfaces:
MessageLiteOrBuilder, MessageOrBuilder
- All Known Implementing Classes:
ApiDef.Endpoint, ApiDef.Endpoint.Builder
- Enclosing class:
ApiDef
-
Method Summary
Modifier and TypeMethodDescriptionbooleanSet if this endpoint is deprecated.intMajor version when an endpoint will be deleted.getName()Name should be either like "CamelCaseName" or "Package.CamelCaseName".Name should be either like "CamelCaseName" or "Package.CamelCaseName".Methods inherited from interface MessageLiteOrBuilder
isInitialized
-
Method Details
-
getName
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;- Returns:
- The name.
-
getNameBytes
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;- Returns:
- The bytes for name.
-
getDeprecated
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;- Returns:
- The deprecated.
-
getDeprecationVersion
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;- Returns:
- The deprecationVersion.
-