Package tensorflow.serving
Class FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder>
tensorflow.serving.FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable,FileSystemStoragePathSource.FileSystemStoragePathSourceConfigOrBuilder
- Enclosing class:
- FileSystemStoragePathSource.FileSystemStoragePathSourceConfig
public static final class FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder> implements FileSystemStoragePathSource.FileSystemStoragePathSourceConfigOrBuilder
Config proto for FileSystemStoragePathSource.Protobuf type
tensorflow.serving.FileSystemStoragePathSourceConfig-
Method Summary
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder>
-
setField
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder>
-
clearField
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder>
-
clearOneof
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder>
-
setRepeatedField
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder>
-
addRepeatedField
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder>
-
mergeFrom
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder mergeFrom(com.google.protobuf.Message other)- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder>
-
mergeFrom
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder>- Throws:
java.io.IOException
-
getServablesList
public java.util.List<FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableToMonitor> getServablesList()The servables to monitor for new versions, and aspire.
repeated .tensorflow.serving.FileSystemStoragePathSourceConfig.ServableToMonitor servables = 5;- Specified by:
getServablesListin interfaceFileSystemStoragePathSource.FileSystemStoragePathSourceConfigOrBuilder
-
getServablesCount
public int getServablesCount()The servables to monitor for new versions, and aspire.
repeated .tensorflow.serving.FileSystemStoragePathSourceConfig.ServableToMonitor servables = 5;- Specified by:
getServablesCountin interfaceFileSystemStoragePathSource.FileSystemStoragePathSourceConfigOrBuilder
-
getServables
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableToMonitor getServables(int index)The servables to monitor for new versions, and aspire.
repeated .tensorflow.serving.FileSystemStoragePathSourceConfig.ServableToMonitor servables = 5;- Specified by:
getServablesin interfaceFileSystemStoragePathSource.FileSystemStoragePathSourceConfigOrBuilder
-
setServables
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder setServables(int index, FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableToMonitor value)The servables to monitor for new versions, and aspire.
repeated .tensorflow.serving.FileSystemStoragePathSourceConfig.ServableToMonitor servables = 5; -
setServables
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder setServables(int index, FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableToMonitor.Builder builderForValue)The servables to monitor for new versions, and aspire.
repeated .tensorflow.serving.FileSystemStoragePathSourceConfig.ServableToMonitor servables = 5; -
addServables
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder addServables(FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableToMonitor value)The servables to monitor for new versions, and aspire.
repeated .tensorflow.serving.FileSystemStoragePathSourceConfig.ServableToMonitor servables = 5; -
addServables
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder addServables(int index, FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableToMonitor value)The servables to monitor for new versions, and aspire.
repeated .tensorflow.serving.FileSystemStoragePathSourceConfig.ServableToMonitor servables = 5; -
addServables
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder addServables(FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableToMonitor.Builder builderForValue)The servables to monitor for new versions, and aspire.
repeated .tensorflow.serving.FileSystemStoragePathSourceConfig.ServableToMonitor servables = 5; -
addServables
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder addServables(int index, FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableToMonitor.Builder builderForValue)The servables to monitor for new versions, and aspire.
repeated .tensorflow.serving.FileSystemStoragePathSourceConfig.ServableToMonitor servables = 5; -
addAllServables
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder addAllServables(java.lang.Iterable<? extends FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableToMonitor> values)The servables to monitor for new versions, and aspire.
repeated .tensorflow.serving.FileSystemStoragePathSourceConfig.ServableToMonitor servables = 5; -
clearServables
The servables to monitor for new versions, and aspire.
repeated .tensorflow.serving.FileSystemStoragePathSourceConfig.ServableToMonitor servables = 5; -
removeServables
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder removeServables(int index)The servables to monitor for new versions, and aspire.
repeated .tensorflow.serving.FileSystemStoragePathSourceConfig.ServableToMonitor servables = 5; -
getServablesBuilder
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableToMonitor.Builder getServablesBuilder(int index)The servables to monitor for new versions, and aspire.
repeated .tensorflow.serving.FileSystemStoragePathSourceConfig.ServableToMonitor servables = 5; -
getServablesOrBuilder
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableToMonitorOrBuilder getServablesOrBuilder(int index)The servables to monitor for new versions, and aspire.
repeated .tensorflow.serving.FileSystemStoragePathSourceConfig.ServableToMonitor servables = 5;- Specified by:
getServablesOrBuilderin interfaceFileSystemStoragePathSource.FileSystemStoragePathSourceConfigOrBuilder
-
getServablesOrBuilderList
public java.util.List<? extends FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableToMonitorOrBuilder> getServablesOrBuilderList()The servables to monitor for new versions, and aspire.
repeated .tensorflow.serving.FileSystemStoragePathSourceConfig.ServableToMonitor servables = 5;- Specified by:
getServablesOrBuilderListin interfaceFileSystemStoragePathSource.FileSystemStoragePathSourceConfigOrBuilder
-
addServablesBuilder
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableToMonitor.Builder addServablesBuilder()The servables to monitor for new versions, and aspire.
repeated .tensorflow.serving.FileSystemStoragePathSourceConfig.ServableToMonitor servables = 5; -
addServablesBuilder
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableToMonitor.Builder addServablesBuilder(int index)The servables to monitor for new versions, and aspire.
repeated .tensorflow.serving.FileSystemStoragePathSourceConfig.ServableToMonitor servables = 5; -
getServablesBuilderList
public java.util.List<FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableToMonitor.Builder> getServablesBuilderList()The servables to monitor for new versions, and aspire.
repeated .tensorflow.serving.FileSystemStoragePathSourceConfig.ServableToMonitor servables = 5; -
getServableName
@Deprecated public java.lang.String getServableName()Deprecated.A single servable name/base_path pair to monitor. DEPRECATED: Use 'servables' instead. TODO(b/30898016): Stop using these fields, and ultimately remove them here.
string servable_name = 1 [deprecated = true];- Specified by:
getServableNamein interfaceFileSystemStoragePathSource.FileSystemStoragePathSourceConfigOrBuilder- Returns:
- The servableName.
-
getServableNameBytes
@Deprecated public com.google.protobuf.ByteString getServableNameBytes()Deprecated.A single servable name/base_path pair to monitor. DEPRECATED: Use 'servables' instead. TODO(b/30898016): Stop using these fields, and ultimately remove them here.
string servable_name = 1 [deprecated = true];- Specified by:
getServableNameBytesin interfaceFileSystemStoragePathSource.FileSystemStoragePathSourceConfigOrBuilder- Returns:
- The bytes for servableName.
-
setServableName
@Deprecated public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder setServableName(java.lang.String value)Deprecated.A single servable name/base_path pair to monitor. DEPRECATED: Use 'servables' instead. TODO(b/30898016): Stop using these fields, and ultimately remove them here.
string servable_name = 1 [deprecated = true];- Parameters:
value- The servableName to set.- Returns:
- This builder for chaining.
-
clearServableName
@Deprecated public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder clearServableName()Deprecated.A single servable name/base_path pair to monitor. DEPRECATED: Use 'servables' instead. TODO(b/30898016): Stop using these fields, and ultimately remove them here.
string servable_name = 1 [deprecated = true];- Returns:
- This builder for chaining.
-
setServableNameBytes
@Deprecated public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder setServableNameBytes(com.google.protobuf.ByteString value)Deprecated.A single servable name/base_path pair to monitor. DEPRECATED: Use 'servables' instead. TODO(b/30898016): Stop using these fields, and ultimately remove them here.
string servable_name = 1 [deprecated = true];- Parameters:
value- The bytes for servableName to set.- Returns:
- This builder for chaining.
-
getBasePath
@Deprecated public java.lang.String getBasePath()Deprecated.string base_path = 2 [deprecated = true];- Specified by:
getBasePathin interfaceFileSystemStoragePathSource.FileSystemStoragePathSourceConfigOrBuilder- Returns:
- The basePath.
-
getBasePathBytes
@Deprecated public com.google.protobuf.ByteString getBasePathBytes()Deprecated.string base_path = 2 [deprecated = true];- Specified by:
getBasePathBytesin interfaceFileSystemStoragePathSource.FileSystemStoragePathSourceConfigOrBuilder- Returns:
- The bytes for basePath.
-
setBasePath
@Deprecated public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder setBasePath(java.lang.String value)Deprecated.string base_path = 2 [deprecated = true];- Parameters:
value- The basePath to set.- Returns:
- This builder for chaining.
-
clearBasePath
@Deprecated public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder clearBasePath()Deprecated.string base_path = 2 [deprecated = true];- Returns:
- This builder for chaining.
-
setBasePathBytes
@Deprecated public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder setBasePathBytes(com.google.protobuf.ByteString value)Deprecated.string base_path = 2 [deprecated = true];- Parameters:
value- The bytes for basePath to set.- Returns:
- This builder for chaining.
-
getFileSystemPollWaitSeconds
public long getFileSystemPollWaitSeconds()How long to wait between file-system polling to look for children of 'base_path', in seconds. If set to zero, filesystem will be polled exactly once. If set to a negative value (for testing use only), polling will be entirely disabled.
int64 file_system_poll_wait_seconds = 3;- Specified by:
getFileSystemPollWaitSecondsin interfaceFileSystemStoragePathSource.FileSystemStoragePathSourceConfigOrBuilder- Returns:
- The fileSystemPollWaitSeconds.
-
setFileSystemPollWaitSeconds
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder setFileSystemPollWaitSeconds(long value)How long to wait between file-system polling to look for children of 'base_path', in seconds. If set to zero, filesystem will be polled exactly once. If set to a negative value (for testing use only), polling will be entirely disabled.
int64 file_system_poll_wait_seconds = 3;- Parameters:
value- The fileSystemPollWaitSeconds to set.- Returns:
- This builder for chaining.
-
clearFileSystemPollWaitSeconds
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder clearFileSystemPollWaitSeconds()How long to wait between file-system polling to look for children of 'base_path', in seconds. If set to zero, filesystem will be polled exactly once. If set to a negative value (for testing use only), polling will be entirely disabled.
int64 file_system_poll_wait_seconds = 3;- Returns:
- This builder for chaining.
-
getFailIfZeroVersionsAtStartup
@Deprecated public boolean getFailIfZeroVersionsAtStartup()Deprecated.If true, then FileSystemStoragePathSource::Create() and ::UpdateConfig() fail if, for any configured servables, the file system doesn't currently contain at least one version under the base path. (Otherwise, it will emit a warning and keep pinging the file system to check for a version to appear later.) DEPRECATED: Use 'servable_versions_always_present' instead, which includes this behavior. TODO(b/30898016): Remove 2019-10-31 or later.
bool fail_if_zero_versions_at_startup = 4 [deprecated = true];- Specified by:
getFailIfZeroVersionsAtStartupin interfaceFileSystemStoragePathSource.FileSystemStoragePathSourceConfigOrBuilder- Returns:
- The failIfZeroVersionsAtStartup.
-
setFailIfZeroVersionsAtStartup
@Deprecated public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder setFailIfZeroVersionsAtStartup(boolean value)Deprecated.If true, then FileSystemStoragePathSource::Create() and ::UpdateConfig() fail if, for any configured servables, the file system doesn't currently contain at least one version under the base path. (Otherwise, it will emit a warning and keep pinging the file system to check for a version to appear later.) DEPRECATED: Use 'servable_versions_always_present' instead, which includes this behavior. TODO(b/30898016): Remove 2019-10-31 or later.
bool fail_if_zero_versions_at_startup = 4 [deprecated = true];- Parameters:
value- The failIfZeroVersionsAtStartup to set.- Returns:
- This builder for chaining.
-
clearFailIfZeroVersionsAtStartup
@Deprecated public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder clearFailIfZeroVersionsAtStartup()Deprecated.If true, then FileSystemStoragePathSource::Create() and ::UpdateConfig() fail if, for any configured servables, the file system doesn't currently contain at least one version under the base path. (Otherwise, it will emit a warning and keep pinging the file system to check for a version to appear later.) DEPRECATED: Use 'servable_versions_always_present' instead, which includes this behavior. TODO(b/30898016): Remove 2019-10-31 or later.
bool fail_if_zero_versions_at_startup = 4 [deprecated = true];- Returns:
- This builder for chaining.
-
getServableVersionsAlwaysPresent
public boolean getServableVersionsAlwaysPresent()If true, the servable is always expected to exist on the underlying filesystem. FileSystemStoragePathSource::Create() and ::UpdateConfig() will fail if, for any configured servables, the file system doesn't currently contain at least one version under the base path. In addition, if a polling loop find the base path empty, it will not unload existing servables.
bool servable_versions_always_present = 6;- Specified by:
getServableVersionsAlwaysPresentin interfaceFileSystemStoragePathSource.FileSystemStoragePathSourceConfigOrBuilder- Returns:
- The servableVersionsAlwaysPresent.
-
setServableVersionsAlwaysPresent
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder setServableVersionsAlwaysPresent(boolean value)If true, the servable is always expected to exist on the underlying filesystem. FileSystemStoragePathSource::Create() and ::UpdateConfig() will fail if, for any configured servables, the file system doesn't currently contain at least one version under the base path. In addition, if a polling loop find the base path empty, it will not unload existing servables.
bool servable_versions_always_present = 6;- Parameters:
value- The servableVersionsAlwaysPresent to set.- Returns:
- This builder for chaining.
-
clearServableVersionsAlwaysPresent
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder clearServableVersionsAlwaysPresent()If true, the servable is always expected to exist on the underlying filesystem. FileSystemStoragePathSource::Create() and ::UpdateConfig() will fail if, for any configured servables, the file system doesn't currently contain at least one version under the base path. In addition, if a polling loop find the base path empty, it will not unload existing servables.
bool servable_versions_always_present = 6;- Returns:
- This builder for chaining.
-
setUnknownFields
public final FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder>
-
mergeUnknownFields
public final FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.Builder>
-