Package org.tensorflow.framework
Class ApiDef.Endpoint.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
-
- org.tensorflow.framework.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 typetensorflow.ApiDef.Endpoint
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiDef.Endpoint.BuilderaddRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)ApiDef.Endpointbuild()ApiDef.EndpointbuildPartial()ApiDef.Endpoint.Builderclear()ApiDef.Endpoint.BuilderclearDeprecationMessage()If this endpoint is deprecated, set deprecation_message to a message that should be logged when the endpoint is used.ApiDef.Endpoint.BuilderclearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)ApiDef.Endpoint.BuilderclearName()Name should be either like "CamelCaseName" or "Package.CamelCaseName".ApiDef.Endpoint.BuilderclearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)ApiDef.Endpoint.Builderclone()ApiDef.EndpointgetDefaultInstanceForType()StringgetDeprecationMessage()If this endpoint is deprecated, set deprecation_message to a message that should be logged when the endpoint is used.org.nd4j.shade.protobuf.ByteStringgetDeprecationMessageBytes()If this endpoint is deprecated, set deprecation_message to a message that should be logged when the endpoint is used.static org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptor()org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()Name should be either like "CamelCaseName" or "Package.CamelCaseName".org.nd4j.shade.protobuf.ByteStringgetNameBytes()Name should be either like "CamelCaseName" or "Package.CamelCaseName".protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ApiDef.Endpoint.BuildermergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)ApiDef.Endpoint.BuildermergeFrom(org.nd4j.shade.protobuf.Message other)ApiDef.Endpoint.BuildermergeFrom(ApiDef.Endpoint other)ApiDef.Endpoint.BuildermergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)ApiDef.Endpoint.BuildersetDeprecationMessage(String value)If this endpoint is deprecated, set deprecation_message to a message that should be logged when the endpoint is used.ApiDef.Endpoint.BuildersetDeprecationMessageBytes(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.ApiDef.Endpoint.BuildersetField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)ApiDef.Endpoint.BuildersetName(String value)Name should be either like "CamelCaseName" or "Package.CamelCaseName".ApiDef.Endpoint.BuildersetNameBytes(org.nd4j.shade.protobuf.ByteString value)Name should be either like "CamelCaseName" or "Package.CamelCaseName".ApiDef.Endpoint.BuildersetRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ApiDef.Endpoint.BuildersetUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
-
clear
public ApiDef.Endpoint.Builder clear()
- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clearin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
-
getDefaultInstanceForType
public ApiDef.Endpoint getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public ApiDef.Endpoint build()
- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public ApiDef.Endpoint buildPartial()
- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public ApiDef.Endpoint.Builder clone()
- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clonein classorg.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:
setFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
-
clearField
public ApiDef.Endpoint.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
-
clearOneof
public ApiDef.Endpoint.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearOneofin classorg.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:
setRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classorg.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:
addRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
-
mergeFrom
public ApiDef.Endpoint.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<ApiDef.Endpoint.Builder>
-
mergeFrom
public ApiDef.Endpoint.Builder mergeFrom(ApiDef.Endpoint other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.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:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
mergeFromin classorg.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:
getNamein interfaceApiDef.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:
getNameBytesin interfaceApiDef.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:
getDeprecationMessagein interfaceApiDef.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:
getDeprecationMessageBytesin interfaceApiDef.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:
setUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
-
mergeUnknownFields
public final ApiDef.Endpoint.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Endpoint.Builder>
-
-