public static final class
ApiDef.Endpoint.Builder
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).
tensorflow.ApiDef.Endpoint
Public Methods
ApiDef.Endpoint.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
ApiDef.Endpoint |
build()
|
ApiDef.Endpoint | |
ApiDef.Endpoint.Builder |
clear()
|
ApiDef.Endpoint.Builder |
clearDeprecated()
Set if this endpoint is deprecated. |
ApiDef.Endpoint.Builder |
clearDeprecationVersion()
Major version when an endpoint will be deleted. |
ApiDef.Endpoint.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
|
ApiDef.Endpoint.Builder |
clearName()
Name should be either like "CamelCaseName" or "Package.CamelCaseName". |
ApiDef.Endpoint.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
|
ApiDef.Endpoint.Builder |
clone()
|
ApiDef.Endpoint | |
boolean |
getDeprecated()
Set if this endpoint is deprecated. |
int |
getDeprecationVersion()
Major version when an endpoint will be deleted. |
final static com.google.protobuf.Descriptors.Descriptor | |
com.google.protobuf.Descriptors.Descriptor | |
String |
getName()
Name should be either like "CamelCaseName" or "Package.CamelCaseName". |
com.google.protobuf.ByteString |
getNameBytes()
Name should be either like "CamelCaseName" or "Package.CamelCaseName". |
final boolean | |
ApiDef.Endpoint.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
ApiDef.Endpoint.Builder |
mergeFrom(com.google.protobuf.Message other)
|
final ApiDef.Endpoint.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
ApiDef.Endpoint.Builder |
setDeprecated(boolean value)
Set if this endpoint is deprecated. |
ApiDef.Endpoint.Builder |
setDeprecationVersion(int value)
Major version when an endpoint will be deleted. |
ApiDef.Endpoint.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
ApiDef.Endpoint.Builder |
setName(String value)
Name should be either like "CamelCaseName" or "Package.CamelCaseName". |
ApiDef.Endpoint.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Name should be either like "CamelCaseName" or "Package.CamelCaseName". |
ApiDef.Endpoint.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
|
final ApiDef.Endpoint.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
Inherited Methods
Public Methods
public ApiDef.Endpoint.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public ApiDef.Endpoint.Builder clearDeprecated ()
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 ApiDef.Endpoint.Builder clearDeprecationVersion ()
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 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;
public 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 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 static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
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;
public 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;
public final boolean isInitialized ()
public ApiDef.Endpoint.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public final ApiDef.Endpoint.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
public ApiDef.Endpoint.Builder setDeprecated (boolean value)
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 ApiDef.Endpoint.Builder setDeprecationVersion (int value)
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 ApiDef.Endpoint.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
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;
public ApiDef.Endpoint.Builder setNameBytes (com.google.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;