Package org.tensorflow.framework
Class AttrValue.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
-
- org.tensorflow.framework.AttrValue.Builder
-
- All Implemented Interfaces:
Cloneable,org.nd4j.shade.protobuf.Message.Builder,org.nd4j.shade.protobuf.MessageLite.Builder,org.nd4j.shade.protobuf.MessageLiteOrBuilder,org.nd4j.shade.protobuf.MessageOrBuilder,AttrValueOrBuilder
- Enclosing class:
- AttrValue
public static final class AttrValue.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder> implements AttrValueOrBuilder
Protocol buffer representing the value for an attr used to configure an Op. Comment indicates the corresponding attr type. Only the field matching the attr type may be filled.
Protobuf typetensorflow.AttrValue
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AttrValue.BuilderaddRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)AttrValuebuild()AttrValuebuildPartial()AttrValue.Builderclear()AttrValue.BuilderclearB()"bool"AttrValue.BuilderclearF()"float"AttrValue.BuilderclearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)AttrValue.BuilderclearFunc()"func" represents a function.AttrValue.BuilderclearI()"int"AttrValue.BuilderclearList()any "list(...)"AttrValue.BuilderclearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)AttrValue.BuilderclearPlaceholder()This is a placeholder only used in nodes defined inside a function.AttrValue.BuilderclearS()"string"AttrValue.BuilderclearShape()"shape"AttrValue.BuilderclearTensor()"tensor"AttrValue.BuilderclearType()"type"AttrValue.BuilderclearValue()AttrValue.Builderclone()booleangetB()"bool"AttrValuegetDefaultInstanceForType()static org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptor()org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptorForType()floatgetF()"float"NameAttrListgetFunc()"func" represents a function.NameAttrList.BuildergetFuncBuilder()"func" represents a function.NameAttrListOrBuildergetFuncOrBuilder()"func" represents a function.longgetI()"int"AttrValue.ListValuegetList()any "list(...)"AttrValue.ListValue.BuildergetListBuilder()any "list(...)"AttrValue.ListValueOrBuildergetListOrBuilder()any "list(...)"StringgetPlaceholder()This is a placeholder only used in nodes defined inside a function.org.nd4j.shade.protobuf.ByteStringgetPlaceholderBytes()This is a placeholder only used in nodes defined inside a function.org.nd4j.shade.protobuf.ByteStringgetS()"string"TensorShapeProtogetShape()"shape"TensorShapeProto.BuildergetShapeBuilder()"shape"TensorShapeProtoOrBuildergetShapeOrBuilder()"shape"TensorProtogetTensor()"tensor"TensorProto.BuildergetTensorBuilder()"tensor"TensorProtoOrBuildergetTensorOrBuilder()"tensor"DataTypegetType()"type"intgetTypeValue()"type"AttrValue.ValueCasegetValueCase()booleanhasB()"bool"booleanhasF()"float"booleanhasFunc()"func" represents a function.booleanhasI()"int"booleanhasList()any "list(...)"booleanhasPlaceholder()This is a placeholder only used in nodes defined inside a function.booleanhasS()"string"booleanhasShape()"shape"booleanhasTensor()"tensor"booleanhasType()"type"protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AttrValue.BuildermergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)AttrValue.BuildermergeFrom(org.nd4j.shade.protobuf.Message other)AttrValue.BuildermergeFrom(AttrValue other)AttrValue.BuildermergeFunc(NameAttrList value)"func" represents a function.AttrValue.BuildermergeList(AttrValue.ListValue value)any "list(...)"AttrValue.BuildermergeShape(TensorShapeProto value)"shape"AttrValue.BuildermergeTensor(TensorProto value)"tensor"AttrValue.BuildermergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)AttrValue.BuildersetB(boolean value)"bool"AttrValue.BuildersetF(float value)"float"AttrValue.BuildersetField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)AttrValue.BuildersetFunc(NameAttrList value)"func" represents a function.AttrValue.BuildersetFunc(NameAttrList.Builder builderForValue)"func" represents a function.AttrValue.BuildersetI(long value)"int"AttrValue.BuildersetList(AttrValue.ListValue value)any "list(...)"AttrValue.BuildersetList(AttrValue.ListValue.Builder builderForValue)any "list(...)"AttrValue.BuildersetPlaceholder(String value)This is a placeholder only used in nodes defined inside a function.AttrValue.BuildersetPlaceholderBytes(org.nd4j.shade.protobuf.ByteString value)This is a placeholder only used in nodes defined inside a function.AttrValue.BuildersetRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AttrValue.BuildersetS(org.nd4j.shade.protobuf.ByteString value)"string"AttrValue.BuildersetShape(TensorShapeProto value)"shape"AttrValue.BuildersetShape(TensorShapeProto.Builder builderForValue)"shape"AttrValue.BuildersetTensor(TensorProto value)"tensor"AttrValue.BuildersetTensor(TensorProto.Builder builderForValue)"tensor"AttrValue.BuildersetType(DataType value)"type"AttrValue.BuildersetTypeValue(int value)"type"AttrValue.BuildersetUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class org.nd4j.shade.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 org.nd4j.shade.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
-
clear
public AttrValue.Builder clear()
- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clearin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
-
getDefaultInstanceForType
public AttrValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public AttrValue build()
- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public AttrValue buildPartial()
- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public AttrValue.Builder clone()
- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clonein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
-
setField
public AttrValue.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
-
clearField
public AttrValue.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
-
clearOneof
public AttrValue.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearOneofin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
-
setRepeatedField
public AttrValue.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
-
addRepeatedField
public AttrValue.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
-
mergeFrom
public AttrValue.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<AttrValue.Builder>
-
mergeFrom
public AttrValue.Builder mergeFrom(AttrValue other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
-
mergeFrom
public AttrValue.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<AttrValue.Builder>- Throws:
IOException
-
getValueCase
public AttrValue.ValueCase getValueCase()
- Specified by:
getValueCasein interfaceAttrValueOrBuilder
-
clearValue
public AttrValue.Builder clearValue()
-
hasS
public boolean hasS()
"string"
bytes s = 2;- Specified by:
hasSin interfaceAttrValueOrBuilder- Returns:
- Whether the s field is set.
-
getS
public org.nd4j.shade.protobuf.ByteString getS()
"string"
bytes s = 2;- Specified by:
getSin interfaceAttrValueOrBuilder- Returns:
- The s.
-
setS
public AttrValue.Builder setS(org.nd4j.shade.protobuf.ByteString value)
"string"
bytes s = 2;- Parameters:
value- The s to set.- Returns:
- This builder for chaining.
-
clearS
public AttrValue.Builder clearS()
"string"
bytes s = 2;- Returns:
- This builder for chaining.
-
hasI
public boolean hasI()
"int"
int64 i = 3;- Specified by:
hasIin interfaceAttrValueOrBuilder- Returns:
- Whether the i field is set.
-
getI
public long getI()
"int"
int64 i = 3;- Specified by:
getIin interfaceAttrValueOrBuilder- Returns:
- The i.
-
setI
public AttrValue.Builder setI(long value)
"int"
int64 i = 3;- Parameters:
value- The i to set.- Returns:
- This builder for chaining.
-
clearI
public AttrValue.Builder clearI()
"int"
int64 i = 3;- Returns:
- This builder for chaining.
-
hasF
public boolean hasF()
"float"
float f = 4;- Specified by:
hasFin interfaceAttrValueOrBuilder- Returns:
- Whether the f field is set.
-
getF
public float getF()
"float"
float f = 4;- Specified by:
getFin interfaceAttrValueOrBuilder- Returns:
- The f.
-
setF
public AttrValue.Builder setF(float value)
"float"
float f = 4;- Parameters:
value- The f to set.- Returns:
- This builder for chaining.
-
clearF
public AttrValue.Builder clearF()
"float"
float f = 4;- Returns:
- This builder for chaining.
-
hasB
public boolean hasB()
"bool"
bool b = 5;- Specified by:
hasBin interfaceAttrValueOrBuilder- Returns:
- Whether the b field is set.
-
getB
public boolean getB()
"bool"
bool b = 5;- Specified by:
getBin interfaceAttrValueOrBuilder- Returns:
- The b.
-
setB
public AttrValue.Builder setB(boolean value)
"bool"
bool b = 5;- Parameters:
value- The b to set.- Returns:
- This builder for chaining.
-
clearB
public AttrValue.Builder clearB()
"bool"
bool b = 5;- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()
"type"
.tensorflow.DataType type = 6;- Specified by:
hasTypein interfaceAttrValueOrBuilder- Returns:
- Whether the type field is set.
-
getTypeValue
public int getTypeValue()
"type"
.tensorflow.DataType type = 6;- Specified by:
getTypeValuein interfaceAttrValueOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public AttrValue.Builder setTypeValue(int value)
"type"
.tensorflow.DataType type = 6;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public DataType getType()
"type"
.tensorflow.DataType type = 6;- Specified by:
getTypein interfaceAttrValueOrBuilder- Returns:
- The type.
-
setType
public AttrValue.Builder setType(DataType value)
"type"
.tensorflow.DataType type = 6;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public AttrValue.Builder clearType()
"type"
.tensorflow.DataType type = 6;- Returns:
- This builder for chaining.
-
hasShape
public boolean hasShape()
"shape"
.tensorflow.TensorShapeProto shape = 7;- Specified by:
hasShapein interfaceAttrValueOrBuilder- Returns:
- Whether the shape field is set.
-
getShape
public TensorShapeProto getShape()
"shape"
.tensorflow.TensorShapeProto shape = 7;- Specified by:
getShapein interfaceAttrValueOrBuilder- Returns:
- The shape.
-
setShape
public AttrValue.Builder setShape(TensorShapeProto value)
"shape"
.tensorflow.TensorShapeProto shape = 7;
-
setShape
public AttrValue.Builder setShape(TensorShapeProto.Builder builderForValue)
"shape"
.tensorflow.TensorShapeProto shape = 7;
-
mergeShape
public AttrValue.Builder mergeShape(TensorShapeProto value)
"shape"
.tensorflow.TensorShapeProto shape = 7;
-
clearShape
public AttrValue.Builder clearShape()
"shape"
.tensorflow.TensorShapeProto shape = 7;
-
getShapeBuilder
public TensorShapeProto.Builder getShapeBuilder()
"shape"
.tensorflow.TensorShapeProto shape = 7;
-
getShapeOrBuilder
public TensorShapeProtoOrBuilder getShapeOrBuilder()
"shape"
.tensorflow.TensorShapeProto shape = 7;- Specified by:
getShapeOrBuilderin interfaceAttrValueOrBuilder
-
hasTensor
public boolean hasTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;- Specified by:
hasTensorin interfaceAttrValueOrBuilder- Returns:
- Whether the tensor field is set.
-
getTensor
public TensorProto getTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;- Specified by:
getTensorin interfaceAttrValueOrBuilder- Returns:
- The tensor.
-
setTensor
public AttrValue.Builder setTensor(TensorProto value)
"tensor"
.tensorflow.TensorProto tensor = 8;
-
setTensor
public AttrValue.Builder setTensor(TensorProto.Builder builderForValue)
"tensor"
.tensorflow.TensorProto tensor = 8;
-
mergeTensor
public AttrValue.Builder mergeTensor(TensorProto value)
"tensor"
.tensorflow.TensorProto tensor = 8;
-
clearTensor
public AttrValue.Builder clearTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;
-
getTensorBuilder
public TensorProto.Builder getTensorBuilder()
"tensor"
.tensorflow.TensorProto tensor = 8;
-
getTensorOrBuilder
public TensorProtoOrBuilder getTensorOrBuilder()
"tensor"
.tensorflow.TensorProto tensor = 8;- Specified by:
getTensorOrBuilderin interfaceAttrValueOrBuilder
-
hasList
public boolean hasList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;- Specified by:
hasListin interfaceAttrValueOrBuilder- Returns:
- Whether the list field is set.
-
getList
public AttrValue.ListValue getList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;- Specified by:
getListin interfaceAttrValueOrBuilder- Returns:
- The list.
-
setList
public AttrValue.Builder setList(AttrValue.ListValue value)
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
-
setList
public AttrValue.Builder setList(AttrValue.ListValue.Builder builderForValue)
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
-
mergeList
public AttrValue.Builder mergeList(AttrValue.ListValue value)
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
-
clearList
public AttrValue.Builder clearList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
-
getListBuilder
public AttrValue.ListValue.Builder getListBuilder()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
-
getListOrBuilder
public AttrValue.ListValueOrBuilder getListOrBuilder()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;- Specified by:
getListOrBuilderin interfaceAttrValueOrBuilder
-
hasFunc
public boolean hasFunc()
"func" represents a function. func.name is a function's name or a primitive op's name. func.attr.first is the name of an attr defined for that function. func.attr.second is the value for that attr in the instantiation.
.tensorflow.NameAttrList func = 10;- Specified by:
hasFuncin interfaceAttrValueOrBuilder- Returns:
- Whether the func field is set.
-
getFunc
public NameAttrList getFunc()
"func" represents a function. func.name is a function's name or a primitive op's name. func.attr.first is the name of an attr defined for that function. func.attr.second is the value for that attr in the instantiation.
.tensorflow.NameAttrList func = 10;- Specified by:
getFuncin interfaceAttrValueOrBuilder- Returns:
- The func.
-
setFunc
public AttrValue.Builder setFunc(NameAttrList value)
"func" represents a function. func.name is a function's name or a primitive op's name. func.attr.first is the name of an attr defined for that function. func.attr.second is the value for that attr in the instantiation.
.tensorflow.NameAttrList func = 10;
-
setFunc
public AttrValue.Builder setFunc(NameAttrList.Builder builderForValue)
"func" represents a function. func.name is a function's name or a primitive op's name. func.attr.first is the name of an attr defined for that function. func.attr.second is the value for that attr in the instantiation.
.tensorflow.NameAttrList func = 10;
-
mergeFunc
public AttrValue.Builder mergeFunc(NameAttrList value)
"func" represents a function. func.name is a function's name or a primitive op's name. func.attr.first is the name of an attr defined for that function. func.attr.second is the value for that attr in the instantiation.
.tensorflow.NameAttrList func = 10;
-
clearFunc
public AttrValue.Builder clearFunc()
"func" represents a function. func.name is a function's name or a primitive op's name. func.attr.first is the name of an attr defined for that function. func.attr.second is the value for that attr in the instantiation.
.tensorflow.NameAttrList func = 10;
-
getFuncBuilder
public NameAttrList.Builder getFuncBuilder()
"func" represents a function. func.name is a function's name or a primitive op's name. func.attr.first is the name of an attr defined for that function. func.attr.second is the value for that attr in the instantiation.
.tensorflow.NameAttrList func = 10;
-
getFuncOrBuilder
public NameAttrListOrBuilder getFuncOrBuilder()
"func" represents a function. func.name is a function's name or a primitive op's name. func.attr.first is the name of an attr defined for that function. func.attr.second is the value for that attr in the instantiation.
.tensorflow.NameAttrList func = 10;- Specified by:
getFuncOrBuilderin interfaceAttrValueOrBuilder
-
hasPlaceholder
public boolean hasPlaceholder()
This is a placeholder only used in nodes defined inside a function. It indicates the attr value will be supplied when the function is instantiated. For example, let us suppose a node "N" in function "FN". "N" has an attr "A" with value placeholder = "foo". When FN is instantiated with attr "foo" set to "bar", the instantiated node N's attr A will have been given the value "bar".
string placeholder = 9;- Specified by:
hasPlaceholderin interfaceAttrValueOrBuilder- Returns:
- Whether the placeholder field is set.
-
getPlaceholder
public String getPlaceholder()
This is a placeholder only used in nodes defined inside a function. It indicates the attr value will be supplied when the function is instantiated. For example, let us suppose a node "N" in function "FN". "N" has an attr "A" with value placeholder = "foo". When FN is instantiated with attr "foo" set to "bar", the instantiated node N's attr A will have been given the value "bar".
string placeholder = 9;- Specified by:
getPlaceholderin interfaceAttrValueOrBuilder- Returns:
- The placeholder.
-
getPlaceholderBytes
public org.nd4j.shade.protobuf.ByteString getPlaceholderBytes()
This is a placeholder only used in nodes defined inside a function. It indicates the attr value will be supplied when the function is instantiated. For example, let us suppose a node "N" in function "FN". "N" has an attr "A" with value placeholder = "foo". When FN is instantiated with attr "foo" set to "bar", the instantiated node N's attr A will have been given the value "bar".
string placeholder = 9;- Specified by:
getPlaceholderBytesin interfaceAttrValueOrBuilder- Returns:
- The bytes for placeholder.
-
setPlaceholder
public AttrValue.Builder setPlaceholder(String value)
This is a placeholder only used in nodes defined inside a function. It indicates the attr value will be supplied when the function is instantiated. For example, let us suppose a node "N" in function "FN". "N" has an attr "A" with value placeholder = "foo". When FN is instantiated with attr "foo" set to "bar", the instantiated node N's attr A will have been given the value "bar".
string placeholder = 9;- Parameters:
value- The placeholder to set.- Returns:
- This builder for chaining.
-
clearPlaceholder
public AttrValue.Builder clearPlaceholder()
This is a placeholder only used in nodes defined inside a function. It indicates the attr value will be supplied when the function is instantiated. For example, let us suppose a node "N" in function "FN". "N" has an attr "A" with value placeholder = "foo". When FN is instantiated with attr "foo" set to "bar", the instantiated node N's attr A will have been given the value "bar".
string placeholder = 9;- Returns:
- This builder for chaining.
-
setPlaceholderBytes
public AttrValue.Builder setPlaceholderBytes(org.nd4j.shade.protobuf.ByteString value)
This is a placeholder only used in nodes defined inside a function. It indicates the attr value will be supplied when the function is instantiated. For example, let us suppose a node "N" in function "FN". "N" has an attr "A" with value placeholder = "foo". When FN is instantiated with attr "foo" set to "bar", the instantiated node N's attr A will have been given the value "bar".
string placeholder = 9;- Parameters:
value- The bytes for placeholder to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final AttrValue.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
-
mergeUnknownFields
public final AttrValue.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>
-
-