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.Builder
addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
VariableDef
build()
VariableDef
buildPartial()
VariableDef.Builder
clear()
VariableDef.Builder
clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
VariableDef.Builder
clearInitializerName()
Name of the initializer op.VariableDef.Builder
clearInitialValueName()
Name of the tensor holding the variable's initial value.VariableDef.Builder
clearIsResource()
Whether to represent this as a ResourceVariable.VariableDef.Builder
clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
VariableDef.Builder
clearSaveSliceInfoDef()
Support for saving variables as slices of a larger variable.VariableDef.Builder
clearSnapshotName()
Name of the snapshot tensor.VariableDef.Builder
clearTrainable()
Whether this variable should be trained.VariableDef.Builder
clearVariableName()
Name of the variable tensor.VariableDef.Builder
clone()
VariableDef
getDefaultInstanceForType()
static org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor()
org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getInitializerName()
Name of the initializer op.org.nd4j.shade.protobuf.ByteString
getInitializerNameBytes()
Name of the initializer op.String
getInitialValueName()
Name of the tensor holding the variable's initial value.org.nd4j.shade.protobuf.ByteString
getInitialValueNameBytes()
Name of the tensor holding the variable's initial value.boolean
getIsResource()
Whether to represent this as a ResourceVariable.SaveSliceInfoDef
getSaveSliceInfoDef()
Support for saving variables as slices of a larger variable.SaveSliceInfoDef.Builder
getSaveSliceInfoDefBuilder()
Support for saving variables as slices of a larger variable.SaveSliceInfoDefOrBuilder
getSaveSliceInfoDefOrBuilder()
Support for saving variables as slices of a larger variable.String
getSnapshotName()
Name of the snapshot tensor.org.nd4j.shade.protobuf.ByteString
getSnapshotNameBytes()
Name of the snapshot tensor.boolean
getTrainable()
Whether this variable should be trained.String
getVariableName()
Name of the variable tensor.org.nd4j.shade.protobuf.ByteString
getVariableNameBytes()
Name of the variable tensor.boolean
hasSaveSliceInfoDef()
Support for saving variables as slices of a larger variable.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
VariableDef.Builder
mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
VariableDef.Builder
mergeFrom(org.nd4j.shade.protobuf.Message other)
VariableDef.Builder
mergeFrom(VariableDef other)
VariableDef.Builder
mergeSaveSliceInfoDef(SaveSliceInfoDef value)
Support for saving variables as slices of a larger variable.VariableDef.Builder
mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
VariableDef.Builder
setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
VariableDef.Builder
setInitializerName(String value)
Name of the initializer op.VariableDef.Builder
setInitializerNameBytes(org.nd4j.shade.protobuf.ByteString value)
Name of the initializer op.VariableDef.Builder
setInitialValueName(String value)
Name of the tensor holding the variable's initial value.VariableDef.Builder
setInitialValueNameBytes(org.nd4j.shade.protobuf.ByteString value)
Name of the tensor holding the variable's initial value.VariableDef.Builder
setIsResource(boolean value)
Whether to represent this as a ResourceVariable.VariableDef.Builder
setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
VariableDef.Builder
setSaveSliceInfoDef(SaveSliceInfoDef value)
Support for saving variables as slices of a larger variable.VariableDef.Builder
setSaveSliceInfoDef(SaveSliceInfoDef.Builder builderForValue)
Support for saving variables as slices of a larger variable.VariableDef.Builder
setSnapshotName(String value)
Name of the snapshot tensor.VariableDef.Builder
setSnapshotNameBytes(org.nd4j.shade.protobuf.ByteString value)
Name of the snapshot tensor.VariableDef.Builder
setTrainable(boolean value)
Whether this variable should be trained.VariableDef.Builder
setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
VariableDef.Builder
setVariableName(String value)
Name of the variable tensor.VariableDef.Builder
setVariableNameBytes(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:
internalGetFieldAccessorTable
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>
-
clear
public VariableDef.Builder clear()
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clear
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>
-
getDefaultInstanceForType
public VariableDef getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public VariableDef build()
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public VariableDef buildPartial()
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public VariableDef.Builder clone()
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clone
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>
-
setField
public VariableDef.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>
-
clearField
public VariableDef.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>
-
clearOneof
public VariableDef.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>
-
addRepeatedField
public VariableDef.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>
-
mergeFrom
public VariableDef.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeFrom
in classorg.nd4j.shade.protobuf.AbstractMessage.Builder<VariableDef.Builder>
-
mergeFrom
public VariableDef.Builder mergeFrom(VariableDef other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getVariableName
in interfaceVariableDefOrBuilder
- Returns:
- The variableName.
-
getVariableNameBytes
public org.nd4j.shade.protobuf.ByteString getVariableNameBytes()
Name of the variable tensor.
string variable_name = 1;
- Specified by:
getVariableNameBytes
in 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:
getInitialValueName
in 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:
getInitialValueNameBytes
in 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:
getInitializerName
in interfaceVariableDefOrBuilder
- Returns:
- The initializerName.
-
getInitializerNameBytes
public org.nd4j.shade.protobuf.ByteString getInitializerNameBytes()
Name of the initializer op.
string initializer_name = 2;
- Specified by:
getInitializerNameBytes
in 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:
getSnapshotName
in interfaceVariableDefOrBuilder
- Returns:
- The snapshotName.
-
getSnapshotNameBytes
public org.nd4j.shade.protobuf.ByteString getSnapshotNameBytes()
Name of the snapshot tensor.
string snapshot_name = 3;
- Specified by:
getSnapshotNameBytes
in 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:
hasSaveSliceInfoDef
in 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:
getSaveSliceInfoDef
in 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:
getSaveSliceInfoDefOrBuilder
in interfaceVariableDefOrBuilder
-
getIsResource
public boolean getIsResource()
Whether to represent this as a ResourceVariable.
bool is_resource = 5;
- Specified by:
getIsResource
in 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:
getTrainable
in 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:
setUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>
-
mergeUnknownFields
public final VariableDef.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>
-
-