Package org.platanios.tensorflow.proto
Class SavedObjectGraphOuterClass.SavedVariable.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SavedObjectGraphOuterClass.SavedVariable.Builder>
-
- org.platanios.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.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
,SavedObjectGraphOuterClass.SavedVariableOrBuilder
- Enclosing class:
- SavedObjectGraphOuterClass.SavedVariable
public static final class SavedObjectGraphOuterClass.SavedVariable.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SavedObjectGraphOuterClass.SavedVariable.Builder> implements SavedObjectGraphOuterClass.SavedVariableOrBuilder
Represents a Variable that is initialized by loading the contents from the checkpoint.
Protobuf typeorg.platanios.tensorflow.proto.SavedVariable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SavedObjectGraphOuterClass.SavedVariable.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
SavedObjectGraphOuterClass.SavedVariable
build()
SavedObjectGraphOuterClass.SavedVariable
buildPartial()
SavedObjectGraphOuterClass.SavedVariable.Builder
clear()
SavedObjectGraphOuterClass.SavedVariable.Builder
clearAggregation()
.org.platanios.tensorflow.proto.VariableAggregation aggregation = 5;
SavedObjectGraphOuterClass.SavedVariable.Builder
clearDtype()
.org.platanios.tensorflow.proto.DataType dtype = 1;
SavedObjectGraphOuterClass.SavedVariable.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SavedObjectGraphOuterClass.SavedVariable.Builder
clearName()
string name = 6;
SavedObjectGraphOuterClass.SavedVariable.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SavedObjectGraphOuterClass.SavedVariable.Builder
clearShape()
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
SavedObjectGraphOuterClass.SavedVariable.Builder
clearSynchronization()
.org.platanios.tensorflow.proto.VariableSynchronization synchronization = 4;
SavedObjectGraphOuterClass.SavedVariable.Builder
clearTrainable()
bool trainable = 3;
SavedObjectGraphOuterClass.SavedVariable.Builder
clone()
VariableAggregation
getAggregation()
.org.platanios.tensorflow.proto.VariableAggregation aggregation = 5;
int
getAggregationValue()
.org.platanios.tensorflow.proto.VariableAggregation aggregation = 5;
SavedObjectGraphOuterClass.SavedVariable
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
DataType
getDtype()
.org.platanios.tensorflow.proto.DataType dtype = 1;
int
getDtypeValue()
.org.platanios.tensorflow.proto.DataType dtype = 1;
java.lang.String
getName()
string name = 6;
com.google.protobuf.ByteString
getNameBytes()
string name = 6;
TensorShapeProto
getShape()
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
TensorShapeProto.Builder
getShapeBuilder()
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
TensorShapeProtoOrBuilder
getShapeOrBuilder()
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
VariableSynchronization
getSynchronization()
.org.platanios.tensorflow.proto.VariableSynchronization synchronization = 4;
int
getSynchronizationValue()
.org.platanios.tensorflow.proto.VariableSynchronization synchronization = 4;
boolean
getTrainable()
bool trainable = 3;
boolean
hasShape()
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SavedObjectGraphOuterClass.SavedVariable.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SavedObjectGraphOuterClass.SavedVariable.Builder
mergeFrom(com.google.protobuf.Message other)
SavedObjectGraphOuterClass.SavedVariable.Builder
mergeFrom(SavedObjectGraphOuterClass.SavedVariable other)
SavedObjectGraphOuterClass.SavedVariable.Builder
mergeShape(TensorShapeProto value)
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
SavedObjectGraphOuterClass.SavedVariable.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SavedObjectGraphOuterClass.SavedVariable.Builder
setAggregation(VariableAggregation value)
.org.platanios.tensorflow.proto.VariableAggregation aggregation = 5;
SavedObjectGraphOuterClass.SavedVariable.Builder
setAggregationValue(int value)
.org.platanios.tensorflow.proto.VariableAggregation aggregation = 5;
SavedObjectGraphOuterClass.SavedVariable.Builder
setDtype(DataType value)
.org.platanios.tensorflow.proto.DataType dtype = 1;
SavedObjectGraphOuterClass.SavedVariable.Builder
setDtypeValue(int value)
.org.platanios.tensorflow.proto.DataType dtype = 1;
SavedObjectGraphOuterClass.SavedVariable.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
SavedObjectGraphOuterClass.SavedVariable.Builder
setName(java.lang.String value)
string name = 6;
SavedObjectGraphOuterClass.SavedVariable.Builder
setNameBytes(com.google.protobuf.ByteString value)
string name = 6;
SavedObjectGraphOuterClass.SavedVariable.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
SavedObjectGraphOuterClass.SavedVariable.Builder
setShape(TensorShapeProto value)
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
SavedObjectGraphOuterClass.SavedVariable.Builder
setShape(TensorShapeProto.Builder builderForValue)
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
SavedObjectGraphOuterClass.SavedVariable.Builder
setSynchronization(VariableSynchronization value)
.org.platanios.tensorflow.proto.VariableSynchronization synchronization = 4;
SavedObjectGraphOuterClass.SavedVariable.Builder
setSynchronizationValue(int value)
.org.platanios.tensorflow.proto.VariableSynchronization synchronization = 4;
SavedObjectGraphOuterClass.SavedVariable.Builder
setTrainable(boolean value)
bool trainable = 3;
SavedObjectGraphOuterClass.SavedVariable.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
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, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedObjectGraphOuterClass.SavedVariable.Builder>
-
clear
public SavedObjectGraphOuterClass.SavedVariable.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedObjectGraphOuterClass.SavedVariable.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedObjectGraphOuterClass.SavedVariable.Builder>
-
getDefaultInstanceForType
public SavedObjectGraphOuterClass.SavedVariable getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SavedObjectGraphOuterClass.SavedVariable build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SavedObjectGraphOuterClass.SavedVariable buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SavedObjectGraphOuterClass.SavedVariable.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedObjectGraphOuterClass.SavedVariable.Builder>
-
setField
public SavedObjectGraphOuterClass.SavedVariable.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedObjectGraphOuterClass.SavedVariable.Builder>
-
clearField
public SavedObjectGraphOuterClass.SavedVariable.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedObjectGraphOuterClass.SavedVariable.Builder>
-
clearOneof
public SavedObjectGraphOuterClass.SavedVariable.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedObjectGraphOuterClass.SavedVariable.Builder>
-
setRepeatedField
public SavedObjectGraphOuterClass.SavedVariable.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedObjectGraphOuterClass.SavedVariable.Builder>
-
addRepeatedField
public SavedObjectGraphOuterClass.SavedVariable.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedObjectGraphOuterClass.SavedVariable.Builder>
-
mergeFrom
public SavedObjectGraphOuterClass.SavedVariable.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SavedObjectGraphOuterClass.SavedVariable.Builder>
-
mergeFrom
public SavedObjectGraphOuterClass.SavedVariable.Builder mergeFrom(SavedObjectGraphOuterClass.SavedVariable other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedObjectGraphOuterClass.SavedVariable.Builder>
-
mergeFrom
public SavedObjectGraphOuterClass.SavedVariable.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SavedObjectGraphOuterClass.SavedVariable.Builder>
- Throws:
java.io.IOException
-
getDtypeValue
public int getDtypeValue()
.org.platanios.tensorflow.proto.DataType dtype = 1;
- Specified by:
getDtypeValue
in interfaceSavedObjectGraphOuterClass.SavedVariableOrBuilder
- Returns:
- The enum numeric value on the wire for dtype.
-
setDtypeValue
public SavedObjectGraphOuterClass.SavedVariable.Builder setDtypeValue(int value)
.org.platanios.tensorflow.proto.DataType dtype = 1;
- Parameters:
value
- The enum numeric value on the wire for dtype to set.- Returns:
- This builder for chaining.
-
getDtype
public DataType getDtype()
.org.platanios.tensorflow.proto.DataType dtype = 1;
- Specified by:
getDtype
in interfaceSavedObjectGraphOuterClass.SavedVariableOrBuilder
- Returns:
- The dtype.
-
setDtype
public SavedObjectGraphOuterClass.SavedVariable.Builder setDtype(DataType value)
.org.platanios.tensorflow.proto.DataType dtype = 1;
- Parameters:
value
- The dtype to set.- Returns:
- This builder for chaining.
-
clearDtype
public SavedObjectGraphOuterClass.SavedVariable.Builder clearDtype()
.org.platanios.tensorflow.proto.DataType dtype = 1;
- Returns:
- This builder for chaining.
-
hasShape
public boolean hasShape()
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
- Specified by:
hasShape
in interfaceSavedObjectGraphOuterClass.SavedVariableOrBuilder
- Returns:
- Whether the shape field is set.
-
getShape
public TensorShapeProto getShape()
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
- Specified by:
getShape
in interfaceSavedObjectGraphOuterClass.SavedVariableOrBuilder
- Returns:
- The shape.
-
setShape
public SavedObjectGraphOuterClass.SavedVariable.Builder setShape(TensorShapeProto value)
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
-
setShape
public SavedObjectGraphOuterClass.SavedVariable.Builder setShape(TensorShapeProto.Builder builderForValue)
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
-
mergeShape
public SavedObjectGraphOuterClass.SavedVariable.Builder mergeShape(TensorShapeProto value)
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
-
clearShape
public SavedObjectGraphOuterClass.SavedVariable.Builder clearShape()
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
-
getShapeBuilder
public TensorShapeProto.Builder getShapeBuilder()
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
-
getShapeOrBuilder
public TensorShapeProtoOrBuilder getShapeOrBuilder()
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
- Specified by:
getShapeOrBuilder
in interfaceSavedObjectGraphOuterClass.SavedVariableOrBuilder
-
getTrainable
public boolean getTrainable()
bool trainable = 3;
- Specified by:
getTrainable
in interfaceSavedObjectGraphOuterClass.SavedVariableOrBuilder
- Returns:
- The trainable.
-
setTrainable
public SavedObjectGraphOuterClass.SavedVariable.Builder setTrainable(boolean value)
bool trainable = 3;
- Parameters:
value
- The trainable to set.- Returns:
- This builder for chaining.
-
clearTrainable
public SavedObjectGraphOuterClass.SavedVariable.Builder clearTrainable()
bool trainable = 3;
- Returns:
- This builder for chaining.
-
getSynchronizationValue
public int getSynchronizationValue()
.org.platanios.tensorflow.proto.VariableSynchronization synchronization = 4;
- Specified by:
getSynchronizationValue
in interfaceSavedObjectGraphOuterClass.SavedVariableOrBuilder
- Returns:
- The enum numeric value on the wire for synchronization.
-
setSynchronizationValue
public SavedObjectGraphOuterClass.SavedVariable.Builder setSynchronizationValue(int value)
.org.platanios.tensorflow.proto.VariableSynchronization synchronization = 4;
- Parameters:
value
- The enum numeric value on the wire for synchronization to set.- Returns:
- This builder for chaining.
-
getSynchronization
public VariableSynchronization getSynchronization()
.org.platanios.tensorflow.proto.VariableSynchronization synchronization = 4;
- Specified by:
getSynchronization
in interfaceSavedObjectGraphOuterClass.SavedVariableOrBuilder
- Returns:
- The synchronization.
-
setSynchronization
public SavedObjectGraphOuterClass.SavedVariable.Builder setSynchronization(VariableSynchronization value)
.org.platanios.tensorflow.proto.VariableSynchronization synchronization = 4;
- Parameters:
value
- The synchronization to set.- Returns:
- This builder for chaining.
-
clearSynchronization
public SavedObjectGraphOuterClass.SavedVariable.Builder clearSynchronization()
.org.platanios.tensorflow.proto.VariableSynchronization synchronization = 4;
- Returns:
- This builder for chaining.
-
getAggregationValue
public int getAggregationValue()
.org.platanios.tensorflow.proto.VariableAggregation aggregation = 5;
- Specified by:
getAggregationValue
in interfaceSavedObjectGraphOuterClass.SavedVariableOrBuilder
- Returns:
- The enum numeric value on the wire for aggregation.
-
setAggregationValue
public SavedObjectGraphOuterClass.SavedVariable.Builder setAggregationValue(int value)
.org.platanios.tensorflow.proto.VariableAggregation aggregation = 5;
- Parameters:
value
- The enum numeric value on the wire for aggregation to set.- Returns:
- This builder for chaining.
-
getAggregation
public VariableAggregation getAggregation()
.org.platanios.tensorflow.proto.VariableAggregation aggregation = 5;
- Specified by:
getAggregation
in interfaceSavedObjectGraphOuterClass.SavedVariableOrBuilder
- Returns:
- The aggregation.
-
setAggregation
public SavedObjectGraphOuterClass.SavedVariable.Builder setAggregation(VariableAggregation value)
.org.platanios.tensorflow.proto.VariableAggregation aggregation = 5;
- Parameters:
value
- The aggregation to set.- Returns:
- This builder for chaining.
-
clearAggregation
public SavedObjectGraphOuterClass.SavedVariable.Builder clearAggregation()
.org.platanios.tensorflow.proto.VariableAggregation aggregation = 5;
- Returns:
- This builder for chaining.
-
getName
public java.lang.String getName()
string name = 6;
- Specified by:
getName
in interfaceSavedObjectGraphOuterClass.SavedVariableOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
string name = 6;
- Specified by:
getNameBytes
in interfaceSavedObjectGraphOuterClass.SavedVariableOrBuilder
- Returns:
- The bytes for name.
-
setName
public SavedObjectGraphOuterClass.SavedVariable.Builder setName(java.lang.String value)
string name = 6;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public SavedObjectGraphOuterClass.SavedVariable.Builder clearName()
string name = 6;
- Returns:
- This builder for chaining.
-
setNameBytes
public SavedObjectGraphOuterClass.SavedVariable.Builder setNameBytes(com.google.protobuf.ByteString value)
string name = 6;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SavedObjectGraphOuterClass.SavedVariable.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedObjectGraphOuterClass.SavedVariable.Builder>
-
mergeUnknownFields
public final SavedObjectGraphOuterClass.SavedVariable.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedObjectGraphOuterClass.SavedVariable.Builder>
-
-