VersionDef.Builder

public static final class VersionDef.Builder

 Version information for a piece of serialized data
 There are different types of versions for each type of data
 (GraphDef, etc.), but they all have the same common shape
 described here.
 Each consumer has "consumer" and "min_producer" versions (specified
 elsewhere).  A consumer is allowed to consume this data if
   producer >= min_producer
   consumer >= min_consumer
   consumer not in bad_consumers
 
Protobuf type tensorflow.VersionDef

Public Methods

VersionDef.Builder
addAllBadConsumers(Iterable<? extends Integer> values)
 Specific consumer versions which are disallowed (e.g.
VersionDef.Builder
addBadConsumers(int value)
 Specific consumer versions which are disallowed (e.g.
VersionDef.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
VersionDef
build()
VersionDef
VersionDef.Builder
clear()
VersionDef.Builder
clearBadConsumers()
 Specific consumer versions which are disallowed (e.g.
VersionDef.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
VersionDef.Builder
clearMinConsumer()
 Any consumer below this version is not allowed to consume this data.
VersionDef.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
VersionDef.Builder
clearProducer()
 The version of the code that produced this data.
VersionDef.Builder
clone()
int
getBadConsumers(int index)
 Specific consumer versions which are disallowed (e.g.
int
getBadConsumersCount()
 Specific consumer versions which are disallowed (e.g.
List<Integer>
getBadConsumersList()
 Specific consumer versions which are disallowed (e.g.
VersionDef
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
getMinConsumer()
 Any consumer below this version is not allowed to consume this data.
int
getProducer()
 The version of the code that produced this data.
final boolean
VersionDef.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
VersionDef.Builder
mergeFrom(com.google.protobuf.Message other)
final VersionDef.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
VersionDef.Builder
setBadConsumers(int index, int value)
 Specific consumer versions which are disallowed (e.g.
VersionDef.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
VersionDef.Builder
setMinConsumer(int value)
 Any consumer below this version is not allowed to consume this data.
VersionDef.Builder
setProducer(int value)
 The version of the code that produced this data.
VersionDef.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
final VersionDef.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)

Inherited Methods

Public Methods

public VersionDef.Builder addAllBadConsumers (Iterable<? extends Integer> values)

 Specific consumer versions which are disallowed (e.g. due to bugs).
 
repeated int32 bad_consumers = 3;

public VersionDef.Builder addBadConsumers (int value)

 Specific consumer versions which are disallowed (e.g. due to bugs).
 
repeated int32 bad_consumers = 3;

public VersionDef.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public VersionDef build ()

public VersionDef buildPartial ()

public VersionDef.Builder clear ()

public VersionDef.Builder clearBadConsumers ()

 Specific consumer versions which are disallowed (e.g. due to bugs).
 
repeated int32 bad_consumers = 3;

public VersionDef.Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)

public VersionDef.Builder clearMinConsumer ()

 Any consumer below this version is not allowed to consume this data.
 
int32 min_consumer = 2;

public VersionDef.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

public VersionDef.Builder clearProducer ()

 The version of the code that produced this data.
 
int32 producer = 1;

public VersionDef.Builder clone ()

public int getBadConsumers (int index)

 Specific consumer versions which are disallowed (e.g. due to bugs).
 
repeated int32 bad_consumers = 3;

public int getBadConsumersCount ()

 Specific consumer versions which are disallowed (e.g. due to bugs).
 
repeated int32 bad_consumers = 3;

public List<Integer> getBadConsumersList ()

 Specific consumer versions which are disallowed (e.g. due to bugs).
 
repeated int32 bad_consumers = 3;

public VersionDef getDefaultInstanceForType ()

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

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

public int getMinConsumer ()

 Any consumer below this version is not allowed to consume this data.
 
int32 min_consumer = 2;

public int getProducer ()

 The version of the code that produced this data.
 
int32 producer = 1;

public final boolean isInitialized ()

public VersionDef.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public VersionDef.Builder mergeFrom (com.google.protobuf.Message other)

public final VersionDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

public VersionDef.Builder setBadConsumers (int index, int value)

 Specific consumer versions which are disallowed (e.g. due to bugs).
 
repeated int32 bad_consumers = 3;

public VersionDef.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public VersionDef.Builder setMinConsumer (int value)

 Any consumer below this version is not allowed to consume this data.
 
int32 min_consumer = 2;

public VersionDef.Builder setProducer (int value)

 The version of the code that produced this data.
 
int32 producer = 1;

public VersionDef.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)

public final VersionDef.Builder setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)