Have a question? Connect with the community at the TensorFlow Forum Visit Forum

SessionMetadata.Builder

public static final class SessionMetadata.Builder

 Metadata about the session.
 This can be used by the runtime and the Ops for debugging, monitoring, etc.
 The (name, version) tuple is expected to be a unique identifier for
 sessions within the same process.
 NOTE: This is currently used and propagated only by the direct session.
 
Protobuf type tensorflow.SessionMetadata

Public Methods

SessionMetadata.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SessionMetadata
SessionMetadata
SessionMetadata.Builder
SessionMetadata.Builder
clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
SessionMetadata.Builder
clearName ()
string name = 1;
SessionMetadata.Builder
clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
SessionMetadata.Builder
clearVersion ()
 The version is optional.
SessionMetadata.Builder
SessionMetadata
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
String
getName ()
string name = 1;
com.google.protobuf.ByteString
getNameBytes ()
string name = 1;
long
getVersion ()
 The version is optional.
final boolean
SessionMetadata.Builder
mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SessionMetadata.Builder
mergeFrom (com.google.protobuf.Message other)
final SessionMetadata.Builder
mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
SessionMetadata.Builder
setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SessionMetadata.Builder
setName (String value)
string name = 1;
SessionMetadata.Builder
setNameBytes (com.google.protobuf.ByteString value)
string name = 1;
SessionMetadata.Builder
setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
final SessionMetadata.Builder
setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
SessionMetadata.Builder
setVersion (long value)
 The version is optional.

Inherited Methods

Public Methods

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

public SessionMetadata build ()

public SessionMetadata buildPartial ()

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

public SessionMetadata.Builder clearName ()

string name = 1;

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

public SessionMetadata.Builder clearVersion ()

 The version is optional. If set, needs to be >= 0.
 
int64 version = 2;

public SessionMetadata getDefaultInstanceForType ()

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

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

public String getName ()

string name = 1;

public com.google.protobuf.ByteString getNameBytes ()

string name = 1;

public long getVersion ()

 The version is optional. If set, needs to be >= 0.
 
int64 version = 2;

public final boolean isInitialized ()

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

Throws
IOException

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

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

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

public SessionMetadata.Builder setName (String value)

string name = 1;

public SessionMetadata.Builder setNameBytes (com.google.protobuf.ByteString value)

string name = 1;

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

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

public SessionMetadata.Builder setVersion (long value)

 The version is optional. If set, needs to be >= 0.
 
int64 version = 2;