public static final class VariableDef.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder> implements VariableDefOrBuilder
Protocol buffer representing a Variable.Protobuf type
tensorflow.VariableDef| Modifier and Type | Method and Description |
|---|---|
VariableDef.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
VariableDef |
build() |
VariableDef |
buildPartial() |
VariableDef.Builder |
clear() |
VariableDef.Builder |
clearAggregation()
Indicates how a distributed variable will be aggregated.
|
VariableDef.Builder |
clearField(com.google.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(com.google.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 |
clearSynchronization()
Indicates when a distributed variable will be synced.
|
VariableDef.Builder |
clearTrainable()
Whether this variable should be trained.
|
VariableDef.Builder |
clearVariableName()
Name of the variable tensor.
|
VariableDef.Builder |
clone() |
VariableAggregation |
getAggregation()
Indicates how a distributed variable will be aggregated.
|
int |
getAggregationValue()
Indicates how a distributed variable will be aggregated.
|
VariableDef |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getInitializerName()
Name of the initializer op.
|
com.google.protobuf.ByteString |
getInitializerNameBytes()
Name of the initializer op.
|
java.lang.String |
getInitialValueName()
Name of the tensor holding the variable's initial value.
|
com.google.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.
|
java.lang.String |
getSnapshotName()
Name of the snapshot tensor.
|
com.google.protobuf.ByteString |
getSnapshotNameBytes()
Name of the snapshot tensor.
|
VariableSynchronization |
getSynchronization()
Indicates when a distributed variable will be synced.
|
int |
getSynchronizationValue()
Indicates when a distributed variable will be synced.
|
boolean |
getTrainable()
Whether this variable should be trained.
|
java.lang.String |
getVariableName()
Name of the variable tensor.
|
com.google.protobuf.ByteString |
getVariableNameBytes()
Name of the variable tensor.
|
boolean |
hasSaveSliceInfoDef()
Support for saving variables as slices of a larger variable.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
VariableDef.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
VariableDef.Builder |
mergeFrom(com.google.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(com.google.protobuf.UnknownFieldSet unknownFields) |
VariableDef.Builder |
setAggregation(VariableAggregation value)
Indicates how a distributed variable will be aggregated.
|
VariableDef.Builder |
setAggregationValue(int value)
Indicates how a distributed variable will be aggregated.
|
VariableDef.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
VariableDef.Builder |
setInitializerName(java.lang.String value)
Name of the initializer op.
|
VariableDef.Builder |
setInitializerNameBytes(com.google.protobuf.ByteString value)
Name of the initializer op.
|
VariableDef.Builder |
setInitialValueName(java.lang.String value)
Name of the tensor holding the variable's initial value.
|
VariableDef.Builder |
setInitialValueNameBytes(com.google.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(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
VariableDef.Builder |
setSaveSliceInfoDef(SaveSliceInfoDef.Builder builderForValue)
Support for saving variables as slices of a larger variable.
|
VariableDef.Builder |
setSaveSliceInfoDef(SaveSliceInfoDef value)
Support for saving variables as slices of a larger variable.
|
VariableDef.Builder |
setSnapshotName(java.lang.String value)
Name of the snapshot tensor.
|
VariableDef.Builder |
setSnapshotNameBytes(com.google.protobuf.ByteString value)
Name of the snapshot tensor.
|
VariableDef.Builder |
setSynchronization(VariableSynchronization value)
Indicates when a distributed variable will be synced.
|
VariableDef.Builder |
setSynchronizationValue(int value)
Indicates when a distributed variable will be synced.
|
VariableDef.Builder |
setTrainable(boolean value)
Whether this variable should be trained.
|
VariableDef.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
VariableDef.Builder |
setVariableName(java.lang.String value)
Name of the variable tensor.
|
VariableDef.Builder |
setVariableNameBytes(com.google.protobuf.ByteString value)
Name of the variable tensor.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>public VariableDef.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>public VariableDef getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic VariableDef build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic VariableDef buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic VariableDef.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>public VariableDef.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>public VariableDef.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>public VariableDef.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>public VariableDef.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>public VariableDef.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>public VariableDef.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<VariableDef.Builder>public VariableDef.Builder mergeFrom(VariableDef other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>public VariableDef.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<VariableDef.Builder>java.io.IOExceptionpublic java.lang.String getVariableName()
Name of the variable tensor.
string variable_name = 1;getVariableName in interface VariableDefOrBuilderpublic com.google.protobuf.ByteString getVariableNameBytes()
Name of the variable tensor.
string variable_name = 1;getVariableNameBytes in interface VariableDefOrBuilderpublic VariableDef.Builder setVariableName(java.lang.String value)
Name of the variable tensor.
string variable_name = 1;value - The variableName to set.public VariableDef.Builder clearVariableName()
Name of the variable tensor.
string variable_name = 1;public VariableDef.Builder setVariableNameBytes(com.google.protobuf.ByteString value)
Name of the variable tensor.
string variable_name = 1;value - The bytes for variableName to set.public java.lang.String getInitialValueName()
Name of the tensor holding the variable's initial value.
string initial_value_name = 6;getInitialValueName in interface VariableDefOrBuilderpublic com.google.protobuf.ByteString getInitialValueNameBytes()
Name of the tensor holding the variable's initial value.
string initial_value_name = 6;getInitialValueNameBytes in interface VariableDefOrBuilderpublic VariableDef.Builder setInitialValueName(java.lang.String value)
Name of the tensor holding the variable's initial value.
string initial_value_name = 6;value - The initialValueName to set.public VariableDef.Builder clearInitialValueName()
Name of the tensor holding the variable's initial value.
string initial_value_name = 6;public VariableDef.Builder setInitialValueNameBytes(com.google.protobuf.ByteString value)
Name of the tensor holding the variable's initial value.
string initial_value_name = 6;value - The bytes for initialValueName to set.public java.lang.String getInitializerName()
Name of the initializer op.
string initializer_name = 2;getInitializerName in interface VariableDefOrBuilderpublic com.google.protobuf.ByteString getInitializerNameBytes()
Name of the initializer op.
string initializer_name = 2;getInitializerNameBytes in interface VariableDefOrBuilderpublic VariableDef.Builder setInitializerName(java.lang.String value)
Name of the initializer op.
string initializer_name = 2;value - The initializerName to set.public VariableDef.Builder clearInitializerName()
Name of the initializer op.
string initializer_name = 2;public VariableDef.Builder setInitializerNameBytes(com.google.protobuf.ByteString value)
Name of the initializer op.
string initializer_name = 2;value - The bytes for initializerName to set.public java.lang.String getSnapshotName()
Name of the snapshot tensor.
string snapshot_name = 3;getSnapshotName in interface VariableDefOrBuilderpublic com.google.protobuf.ByteString getSnapshotNameBytes()
Name of the snapshot tensor.
string snapshot_name = 3;getSnapshotNameBytes in interface VariableDefOrBuilderpublic VariableDef.Builder setSnapshotName(java.lang.String value)
Name of the snapshot tensor.
string snapshot_name = 3;value - The snapshotName to set.public VariableDef.Builder clearSnapshotName()
Name of the snapshot tensor.
string snapshot_name = 3;public VariableDef.Builder setSnapshotNameBytes(com.google.protobuf.ByteString value)
Name of the snapshot tensor.
string snapshot_name = 3;value - The bytes for snapshotName to set.public boolean hasSaveSliceInfoDef()
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;hasSaveSliceInfoDef in interface VariableDefOrBuilderpublic SaveSliceInfoDef getSaveSliceInfoDef()
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;getSaveSliceInfoDef in interface VariableDefOrBuilderpublic VariableDef.Builder setSaveSliceInfoDef(SaveSliceInfoDef value)
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;public VariableDef.Builder setSaveSliceInfoDef(SaveSliceInfoDef.Builder builderForValue)
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;public VariableDef.Builder mergeSaveSliceInfoDef(SaveSliceInfoDef value)
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;public VariableDef.Builder clearSaveSliceInfoDef()
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;public SaveSliceInfoDef.Builder getSaveSliceInfoDefBuilder()
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;public SaveSliceInfoDefOrBuilder getSaveSliceInfoDefOrBuilder()
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;getSaveSliceInfoDefOrBuilder in interface VariableDefOrBuilderpublic boolean getIsResource()
Whether to represent this as a ResourceVariable.
bool is_resource = 5;getIsResource in interface VariableDefOrBuilderpublic VariableDef.Builder setIsResource(boolean value)
Whether to represent this as a ResourceVariable.
bool is_resource = 5;value - The isResource to set.public VariableDef.Builder clearIsResource()
Whether to represent this as a ResourceVariable.
bool is_resource = 5;public boolean getTrainable()
Whether this variable should be trained.
bool trainable = 7;getTrainable in interface VariableDefOrBuilderpublic VariableDef.Builder setTrainable(boolean value)
Whether this variable should be trained.
bool trainable = 7;value - The trainable to set.public VariableDef.Builder clearTrainable()
Whether this variable should be trained.
bool trainable = 7;public int getSynchronizationValue()
Indicates when a distributed variable will be synced.
.tensorflow.VariableSynchronization synchronization = 8;getSynchronizationValue in interface VariableDefOrBuilderpublic VariableDef.Builder setSynchronizationValue(int value)
Indicates when a distributed variable will be synced.
.tensorflow.VariableSynchronization synchronization = 8;value - The enum numeric value on the wire for synchronization to set.public VariableSynchronization getSynchronization()
Indicates when a distributed variable will be synced.
.tensorflow.VariableSynchronization synchronization = 8;getSynchronization in interface VariableDefOrBuilderpublic VariableDef.Builder setSynchronization(VariableSynchronization value)
Indicates when a distributed variable will be synced.
.tensorflow.VariableSynchronization synchronization = 8;value - The synchronization to set.public VariableDef.Builder clearSynchronization()
Indicates when a distributed variable will be synced.
.tensorflow.VariableSynchronization synchronization = 8;public int getAggregationValue()
Indicates how a distributed variable will be aggregated.
.tensorflow.VariableAggregation aggregation = 9;getAggregationValue in interface VariableDefOrBuilderpublic VariableDef.Builder setAggregationValue(int value)
Indicates how a distributed variable will be aggregated.
.tensorflow.VariableAggregation aggregation = 9;value - The enum numeric value on the wire for aggregation to set.public VariableAggregation getAggregation()
Indicates how a distributed variable will be aggregated.
.tensorflow.VariableAggregation aggregation = 9;getAggregation in interface VariableDefOrBuilderpublic VariableDef.Builder setAggregation(VariableAggregation value)
Indicates how a distributed variable will be aggregated.
.tensorflow.VariableAggregation aggregation = 9;value - The aggregation to set.public VariableDef.Builder clearAggregation()
Indicates how a distributed variable will be aggregated.
.tensorflow.VariableAggregation aggregation = 9;public final VariableDef.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>public final VariableDef.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VariableDef.Builder>