Class VariableDef

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.framework.VariableDef
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, VariableDefOrBuilder

public final class VariableDef extends com.google.protobuf.GeneratedMessageV3 implements VariableDefOrBuilder
 Protocol buffer representing a Variable.
 
Protobuf type tensorflow.VariableDef
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Protocol buffer representing a Variable.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Indicates how a distributed variable will be aggregated.
    int
    Indicates how a distributed variable will be aggregated.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Name of the initializer op.
    com.google.protobuf.ByteString
    Name of the initializer op.
    Name of the tensor holding the variable's initial value.
    com.google.protobuf.ByteString
    Name of the tensor holding the variable's initial value.
    boolean
    Whether to represent this as a ResourceVariable.
    com.google.protobuf.Parser<VariableDef>
     
    Support for saving variables as slices of a larger variable.
    Support for saving variables as slices of a larger variable.
    int
     
    Name of the snapshot tensor.
    com.google.protobuf.ByteString
    Name of the snapshot tensor.
    Indicates when a distributed variable will be synced.
    int
    Indicates when a distributed variable will be synced.
    boolean
    Whether this variable should be trained.
    Name of the variable tensor.
    com.google.protobuf.ByteString
    Name of the variable tensor.
    int
     
    boolean
    Support for saving variables as slices of a larger variable.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<VariableDef>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • VARIABLE_NAME_FIELD_NUMBER

      public static final int VARIABLE_NAME_FIELD_NUMBER
      See Also:
    • INITIAL_VALUE_NAME_FIELD_NUMBER

      public static final int INITIAL_VALUE_NAME_FIELD_NUMBER
      See Also:
    • INITIALIZER_NAME_FIELD_NUMBER

      public static final int INITIALIZER_NAME_FIELD_NUMBER
      See Also:
    • SNAPSHOT_NAME_FIELD_NUMBER

      public static final int SNAPSHOT_NAME_FIELD_NUMBER
      See Also:
    • SAVE_SLICE_INFO_DEF_FIELD_NUMBER

      public static final int SAVE_SLICE_INFO_DEF_FIELD_NUMBER
      See Also:
    • IS_RESOURCE_FIELD_NUMBER

      public static final int IS_RESOURCE_FIELD_NUMBER
      See Also:
    • TRAINABLE_FIELD_NUMBER

      public static final int TRAINABLE_FIELD_NUMBER
      See Also:
    • SYNCHRONIZATION_FIELD_NUMBER

      public static final int SYNCHRONIZATION_FIELD_NUMBER
      See Also:
    • AGGREGATION_FIELD_NUMBER

      public static final int AGGREGATION_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getVariableName

      public String getVariableName()
       Name of the variable tensor.
       
      string variable_name = 1;
      Specified by:
      getVariableName in interface VariableDefOrBuilder
      Returns:
      The variableName.
    • getVariableNameBytes

      public com.google.protobuf.ByteString getVariableNameBytes()
       Name of the variable tensor.
       
      string variable_name = 1;
      Specified by:
      getVariableNameBytes in interface VariableDefOrBuilder
      Returns:
      The bytes for variableName.
    • getInitialValueName

      public String getInitialValueName()
       Name of the tensor holding the variable's initial value.
       
      string initial_value_name = 6;
      Specified by:
      getInitialValueName in interface VariableDefOrBuilder
      Returns:
      The initialValueName.
    • getInitialValueNameBytes

      public com.google.protobuf.ByteString getInitialValueNameBytes()
       Name of the tensor holding the variable's initial value.
       
      string initial_value_name = 6;
      Specified by:
      getInitialValueNameBytes in interface VariableDefOrBuilder
      Returns:
      The bytes for initialValueName.
    • getInitializerName

      public String getInitializerName()
       Name of the initializer op.
       
      string initializer_name = 2;
      Specified by:
      getInitializerName in interface VariableDefOrBuilder
      Returns:
      The initializerName.
    • getInitializerNameBytes

      public com.google.protobuf.ByteString getInitializerNameBytes()
       Name of the initializer op.
       
      string initializer_name = 2;
      Specified by:
      getInitializerNameBytes in interface VariableDefOrBuilder
      Returns:
      The bytes for initializerName.
    • getSnapshotName

      public String getSnapshotName()
       Name of the snapshot tensor.
       
      string snapshot_name = 3;
      Specified by:
      getSnapshotName in interface VariableDefOrBuilder
      Returns:
      The snapshotName.
    • getSnapshotNameBytes

      public com.google.protobuf.ByteString getSnapshotNameBytes()
       Name of the snapshot tensor.
       
      string snapshot_name = 3;
      Specified by:
      getSnapshotNameBytes in interface VariableDefOrBuilder
      Returns:
      The bytes for snapshotName.
    • 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 interface VariableDefOrBuilder
      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 interface VariableDefOrBuilder
      Returns:
      The saveSliceInfoDef.
    • 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 interface VariableDefOrBuilder
    • getIsResource

      public boolean getIsResource()
       Whether to represent this as a ResourceVariable.
       
      bool is_resource = 5;
      Specified by:
      getIsResource in interface VariableDefOrBuilder
      Returns:
      The isResource.
    • getTrainable

      public boolean getTrainable()
       Whether this variable should be trained.
       
      bool trainable = 7;
      Specified by:
      getTrainable in interface VariableDefOrBuilder
      Returns:
      The trainable.
    • getSynchronizationValue

      public int getSynchronizationValue()
       Indicates when a distributed variable will be synced.
       
      .tensorflow.VariableSynchronization synchronization = 8;
      Specified by:
      getSynchronizationValue in interface VariableDefOrBuilder
      Returns:
      The enum numeric value on the wire for synchronization.
    • getSynchronization

      public VariableSynchronization getSynchronization()
       Indicates when a distributed variable will be synced.
       
      .tensorflow.VariableSynchronization synchronization = 8;
      Specified by:
      getSynchronization in interface VariableDefOrBuilder
      Returns:
      The synchronization.
    • getAggregationValue

      public int getAggregationValue()
       Indicates how a distributed variable will be aggregated.
       
      .tensorflow.VariableAggregation aggregation = 9;
      Specified by:
      getAggregationValue in interface VariableDefOrBuilder
      Returns:
      The enum numeric value on the wire for aggregation.
    • getAggregation

      public VariableAggregation getAggregation()
       Indicates how a distributed variable will be aggregated.
       
      .tensorflow.VariableAggregation aggregation = 9;
      Specified by:
      getAggregation in interface VariableDefOrBuilder
      Returns:
      The aggregation.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static VariableDef parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VariableDef parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VariableDef parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VariableDef parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VariableDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VariableDef parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VariableDef parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static VariableDef parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static VariableDef parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static VariableDef parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static VariableDef parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static VariableDef parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public VariableDef.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static VariableDef.Builder newBuilder()
    • newBuilder

      public static VariableDef.Builder newBuilder(VariableDef prototype)
    • toBuilder

      public VariableDef.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected VariableDef.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static VariableDef getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<VariableDef> parser()
    • getParserForType

      public com.google.protobuf.Parser<VariableDef> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public VariableDef getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder