Package org.tensorflow.framework
Class VariableDef.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>
-
- org.tensorflow.framework.VariableDef.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,VariableDefOrBuilder
- Enclosing class:
- VariableDef
public static final class VariableDef.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder> implements VariableDefOrBuilder
Protocol buffer representing a Variable.
Protobuf typetensorflow.VariableDef
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VariableDef.BuilderaddRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)VariableDefbuild()VariableDefbuildPartial()VariableDef.Builderclear()VariableDef.BuilderclearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)VariableDef.BuilderclearInitializerName()Name of the initializer op.VariableDef.BuilderclearInitialValueName()Name of the tensor holding the variable's initial value.VariableDef.BuilderclearIsResource()Whether to represent this as a ResourceVariable.VariableDef.BuilderclearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)VariableDef.BuilderclearSaveSliceInfoDef()Support for saving variables as slices of a larger variable.VariableDef.BuilderclearSnapshotName()Name of the snapshot tensor.VariableDef.BuilderclearTrainable()Whether this variable should be trained.VariableDef.BuilderclearVariableName()Name of the variable tensor.VariableDef.Builderclone()VariableDefgetDefaultInstanceForType()static org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptor()org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetInitializerName()Name of the initializer op.org.nd4j.shade.protobuf.ByteStringgetInitializerNameBytes()Name of the initializer op.StringgetInitialValueName()Name of the tensor holding the variable's initial value.org.nd4j.shade.protobuf.ByteStringgetInitialValueNameBytes()Name of the tensor holding the variable's initial value.booleangetIsResource()Whether to represent this as a ResourceVariable.SaveSliceInfoDefgetSaveSliceInfoDef()Support for saving variables as slices of a larger variable.SaveSliceInfoDef.BuildergetSaveSliceInfoDefBuilder()Support for saving variables as slices of a larger variable.SaveSliceInfoDefOrBuildergetSaveSliceInfoDefOrBuilder()Support for saving variables as slices of a larger variable.StringgetSnapshotName()Name of the snapshot tensor.org.nd4j.shade.protobuf.ByteStringgetSnapshotNameBytes()Name of the snapshot tensor.booleangetTrainable()Whether this variable should be trained.StringgetVariableName()Name of the variable tensor.org.nd4j.shade.protobuf.ByteStringgetVariableNameBytes()Name of the variable tensor.booleanhasSaveSliceInfoDef()Support for saving variables as slices of a larger variable.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()VariableDef.BuildermergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)VariableDef.BuildermergeFrom(org.nd4j.shade.protobuf.Message other)VariableDef.BuildermergeFrom(VariableDef other)VariableDef.BuildermergeSaveSliceInfoDef(SaveSliceInfoDef value)Support for saving variables as slices of a larger variable.VariableDef.BuildermergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)VariableDef.BuildersetField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)VariableDef.BuildersetInitializerName(String value)Name of the initializer op.VariableDef.BuildersetInitializerNameBytes(org.nd4j.shade.protobuf.ByteString value)Name of the initializer op.VariableDef.BuildersetInitialValueName(String value)Name of the tensor holding the variable's initial value.VariableDef.BuildersetInitialValueNameBytes(org.nd4j.shade.protobuf.ByteString value)Name of the tensor holding the variable's initial value.VariableDef.BuildersetIsResource(boolean value)Whether to represent this as a ResourceVariable.VariableDef.BuildersetRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)VariableDef.BuildersetSaveSliceInfoDef(SaveSliceInfoDef value)Support for saving variables as slices of a larger variable.VariableDef.BuildersetSaveSliceInfoDef(SaveSliceInfoDef.Builder builderForValue)Support for saving variables as slices of a larger variable.VariableDef.BuildersetSnapshotName(String value)Name of the snapshot tensor.VariableDef.BuildersetSnapshotNameBytes(org.nd4j.shade.protobuf.ByteString value)Name of the snapshot tensor.VariableDef.BuildersetTrainable(boolean value)Whether this variable should be trained.VariableDef.BuildersetUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)VariableDef.BuildersetVariableName(String value)Name of the variable tensor.VariableDef.BuildersetVariableNameBytes(org.nd4j.shade.protobuf.ByteString value)Name of the variable tensor.-
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<VariableDef.Builder>
-
clear
public VariableDef.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<VariableDef.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<VariableDef.Builder>
-
getDefaultInstanceForType
public VariableDef getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public VariableDef build()
- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public VariableDef buildPartial()
- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public VariableDef.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<VariableDef.Builder>
-
setField
public VariableDef.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<VariableDef.Builder>
-
clearField
public VariableDef.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<VariableDef.Builder>
-
clearOneof
public VariableDef.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<VariableDef.Builder>
-
setRepeatedField
public VariableDef.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<VariableDef.Builder>
-
addRepeatedField
public VariableDef.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<VariableDef.Builder>
-
mergeFrom
public VariableDef.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<VariableDef.Builder>
-
mergeFrom
public VariableDef.Builder mergeFrom(VariableDef other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>
-
mergeFrom
public VariableDef.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<VariableDef.Builder>- Throws:
IOException
-
getVariableName
public String getVariableName()
Name of the variable tensor.
string variable_name = 1;- Specified by:
getVariableNamein interfaceVariableDefOrBuilder- Returns:
- The variableName.
-
getVariableNameBytes
public org.nd4j.shade.protobuf.ByteString getVariableNameBytes()
Name of the variable tensor.
string variable_name = 1;- Specified by:
getVariableNameBytesin interfaceVariableDefOrBuilder- Returns:
- The bytes for variableName.
-
setVariableName
public VariableDef.Builder setVariableName(String value)
Name of the variable tensor.
string variable_name = 1;- Parameters:
value- The variableName to set.- Returns:
- This builder for chaining.
-
clearVariableName
public VariableDef.Builder clearVariableName()
Name of the variable tensor.
string variable_name = 1;- Returns:
- This builder for chaining.
-
setVariableNameBytes
public VariableDef.Builder setVariableNameBytes(org.nd4j.shade.protobuf.ByteString value)
Name of the variable tensor.
string variable_name = 1;- Parameters:
value- The bytes for variableName to set.- Returns:
- This builder for chaining.
-
getInitialValueName
public String getInitialValueName()
Name of the tensor holding the variable's initial value.
string initial_value_name = 6;- Specified by:
getInitialValueNamein interfaceVariableDefOrBuilder- Returns:
- The initialValueName.
-
getInitialValueNameBytes
public org.nd4j.shade.protobuf.ByteString getInitialValueNameBytes()
Name of the tensor holding the variable's initial value.
string initial_value_name = 6;- Specified by:
getInitialValueNameBytesin interfaceVariableDefOrBuilder- Returns:
- The bytes for initialValueName.
-
setInitialValueName
public VariableDef.Builder setInitialValueName(String value)
Name of the tensor holding the variable's initial value.
string initial_value_name = 6;- Parameters:
value- The initialValueName to set.- Returns:
- This builder for chaining.
-
clearInitialValueName
public VariableDef.Builder clearInitialValueName()
Name of the tensor holding the variable's initial value.
string initial_value_name = 6;- Returns:
- This builder for chaining.
-
setInitialValueNameBytes
public VariableDef.Builder setInitialValueNameBytes(org.nd4j.shade.protobuf.ByteString value)
Name of the tensor holding the variable's initial value.
string initial_value_name = 6;- Parameters:
value- The bytes for initialValueName to set.- Returns:
- This builder for chaining.
-
getInitializerName
public String getInitializerName()
Name of the initializer op.
string initializer_name = 2;- Specified by:
getInitializerNamein interfaceVariableDefOrBuilder- Returns:
- The initializerName.
-
getInitializerNameBytes
public org.nd4j.shade.protobuf.ByteString getInitializerNameBytes()
Name of the initializer op.
string initializer_name = 2;- Specified by:
getInitializerNameBytesin interfaceVariableDefOrBuilder- Returns:
- The bytes for initializerName.
-
setInitializerName
public VariableDef.Builder setInitializerName(String value)
Name of the initializer op.
string initializer_name = 2;- Parameters:
value- The initializerName to set.- Returns:
- This builder for chaining.
-
clearInitializerName
public VariableDef.Builder clearInitializerName()
Name of the initializer op.
string initializer_name = 2;- Returns:
- This builder for chaining.
-
setInitializerNameBytes
public VariableDef.Builder setInitializerNameBytes(org.nd4j.shade.protobuf.ByteString value)
Name of the initializer op.
string initializer_name = 2;- Parameters:
value- The bytes for initializerName to set.- Returns:
- This builder for chaining.
-
getSnapshotName
public String getSnapshotName()
Name of the snapshot tensor.
string snapshot_name = 3;- Specified by:
getSnapshotNamein interfaceVariableDefOrBuilder- Returns:
- The snapshotName.
-
getSnapshotNameBytes
public org.nd4j.shade.protobuf.ByteString getSnapshotNameBytes()
Name of the snapshot tensor.
string snapshot_name = 3;- Specified by:
getSnapshotNameBytesin interfaceVariableDefOrBuilder- Returns:
- The bytes for snapshotName.
-
setSnapshotName
public VariableDef.Builder setSnapshotName(String value)
Name of the snapshot tensor.
string snapshot_name = 3;- Parameters:
value- The snapshotName to set.- Returns:
- This builder for chaining.
-
clearSnapshotName
public VariableDef.Builder clearSnapshotName()
Name of the snapshot tensor.
string snapshot_name = 3;- Returns:
- This builder for chaining.
-
setSnapshotNameBytes
public VariableDef.Builder setSnapshotNameBytes(org.nd4j.shade.protobuf.ByteString value)
Name of the snapshot tensor.
string snapshot_name = 3;- Parameters:
value- The bytes for snapshotName to set.- Returns:
- This builder for chaining.
-
hasSaveSliceInfoDef
public boolean hasSaveSliceInfoDef()
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;- Specified by:
hasSaveSliceInfoDefin interfaceVariableDefOrBuilder- Returns:
- Whether the saveSliceInfoDef field is set.
-
getSaveSliceInfoDef
public SaveSliceInfoDef getSaveSliceInfoDef()
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;- Specified by:
getSaveSliceInfoDefin interfaceVariableDefOrBuilder- Returns:
- The saveSliceInfoDef.
-
setSaveSliceInfoDef
public VariableDef.Builder setSaveSliceInfoDef(SaveSliceInfoDef value)
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;
-
setSaveSliceInfoDef
public VariableDef.Builder setSaveSliceInfoDef(SaveSliceInfoDef.Builder builderForValue)
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;
-
mergeSaveSliceInfoDef
public VariableDef.Builder mergeSaveSliceInfoDef(SaveSliceInfoDef value)
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;
-
clearSaveSliceInfoDef
public VariableDef.Builder clearSaveSliceInfoDef()
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;
-
getSaveSliceInfoDefBuilder
public SaveSliceInfoDef.Builder getSaveSliceInfoDefBuilder()
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;
-
getSaveSliceInfoDefOrBuilder
public SaveSliceInfoDefOrBuilder getSaveSliceInfoDefOrBuilder()
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;- Specified by:
getSaveSliceInfoDefOrBuilderin interfaceVariableDefOrBuilder
-
getIsResource
public boolean getIsResource()
Whether to represent this as a ResourceVariable.
bool is_resource = 5;- Specified by:
getIsResourcein interfaceVariableDefOrBuilder- Returns:
- The isResource.
-
setIsResource
public VariableDef.Builder setIsResource(boolean value)
Whether to represent this as a ResourceVariable.
bool is_resource = 5;- Parameters:
value- The isResource to set.- Returns:
- This builder for chaining.
-
clearIsResource
public VariableDef.Builder clearIsResource()
Whether to represent this as a ResourceVariable.
bool is_resource = 5;- Returns:
- This builder for chaining.
-
getTrainable
public boolean getTrainable()
Whether this variable should be trained.
bool trainable = 7;- Specified by:
getTrainablein interfaceVariableDefOrBuilder- Returns:
- The trainable.
-
setTrainable
public VariableDef.Builder setTrainable(boolean value)
Whether this variable should be trained.
bool trainable = 7;- Parameters:
value- The trainable to set.- Returns:
- This builder for chaining.
-
clearTrainable
public VariableDef.Builder clearTrainable()
Whether this variable should be trained.
bool trainable = 7;- Returns:
- This builder for chaining.
-
setUnknownFields
public final VariableDef.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<VariableDef.Builder>
-
mergeUnknownFields
public final VariableDef.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<VariableDef.Builder>
-
-