TensorSpecProto.Builder

public static final class TensorSpecProto.Builder

 A protobuf to represent tf.TensorSpec.
 
Protobuf type tensorflow.TensorSpecProto

Public Methods

TensorSpecProto.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TensorSpecProto
build()
TensorSpecProto
TensorSpecProto.Builder
clear()
TensorSpecProto.Builder
clearDtype()
.tensorflow.DataType dtype = 3;
TensorSpecProto.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
TensorSpecProto.Builder
clearName()
string name = 1;
TensorSpecProto.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
TensorSpecProto.Builder
clearShape()
.tensorflow.TensorShapeProto shape = 2;
TensorSpecProto.Builder
clone()
TensorSpecProto
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
DataType
getDtype()
.tensorflow.DataType dtype = 3;
int
getDtypeValue()
.tensorflow.DataType dtype = 3;
String
getName()
string name = 1;
com.google.protobuf.ByteString
getNameBytes()
string name = 1;
TensorShapeProto
getShape()
.tensorflow.TensorShapeProto shape = 2;
TensorShapeProto.Builder
getShapeBuilder()
.tensorflow.TensorShapeProto shape = 2;
TensorShapeProtoOrBuilder
getShapeOrBuilder()
.tensorflow.TensorShapeProto shape = 2;
boolean
hasShape()
.tensorflow.TensorShapeProto shape = 2;
final boolean
TensorSpecProto.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TensorSpecProto.Builder
mergeFrom(com.google.protobuf.Message other)
TensorSpecProto.Builder
mergeShape(TensorShapeProto value)
.tensorflow.TensorShapeProto shape = 2;
final TensorSpecProto.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TensorSpecProto.Builder
setDtype(DataType value)
.tensorflow.DataType dtype = 3;
TensorSpecProto.Builder
setDtypeValue(int value)
.tensorflow.DataType dtype = 3;
TensorSpecProto.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TensorSpecProto.Builder
setName(String value)
string name = 1;
TensorSpecProto.Builder
setNameBytes(com.google.protobuf.ByteString value)
string name = 1;
TensorSpecProto.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
TensorSpecProto.Builder
setShape(TensorShapeProto value)
.tensorflow.TensorShapeProto shape = 2;
TensorSpecProto.Builder
setShape(TensorShapeProto.Builder builderForValue)
.tensorflow.TensorShapeProto shape = 2;
final TensorSpecProto.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)

Inherited Methods

Public Methods

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

public TensorSpecProto build ()

public TensorSpecProto buildPartial ()

public TensorSpecProto.Builder clear ()

public TensorSpecProto.Builder clearDtype ()

.tensorflow.DataType dtype = 3;

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

public TensorSpecProto.Builder clearName ()

string name = 1;

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

public TensorSpecProto.Builder clearShape ()

.tensorflow.TensorShapeProto shape = 2;

public TensorSpecProto.Builder clone ()

public TensorSpecProto getDefaultInstanceForType ()

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

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

public DataType getDtype ()

.tensorflow.DataType dtype = 3;

public int getDtypeValue ()

.tensorflow.DataType dtype = 3;

public String getName ()

string name = 1;

public com.google.protobuf.ByteString getNameBytes ()

string name = 1;

public TensorShapeProto getShape ()

.tensorflow.TensorShapeProto shape = 2;

public TensorShapeProto.Builder getShapeBuilder ()

.tensorflow.TensorShapeProto shape = 2;

public TensorShapeProtoOrBuilder getShapeOrBuilder ()

.tensorflow.TensorShapeProto shape = 2;

public boolean hasShape ()

.tensorflow.TensorShapeProto shape = 2;

public final boolean isInitialized ()

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

Throws
IOException

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

public TensorSpecProto.Builder mergeShape (TensorShapeProto value)

.tensorflow.TensorShapeProto shape = 2;

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

public TensorSpecProto.Builder setDtype (DataType value)

.tensorflow.DataType dtype = 3;

public TensorSpecProto.Builder setDtypeValue (int value)

.tensorflow.DataType dtype = 3;

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

public TensorSpecProto.Builder setName (String value)

string name = 1;

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

string name = 1;

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

public TensorSpecProto.Builder setShape (TensorShapeProto value)

.tensorflow.TensorShapeProto shape = 2;

public TensorSpecProto.Builder setShape (TensorShapeProto.Builder builderForValue)

.tensorflow.TensorShapeProto shape = 2;

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