public static final class AttrValue.Builder extends com.google.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 type
tensorflow.AttrValue| Modifier and Type | Method and Description |
|---|---|
AttrValue.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
AttrValue |
build() |
AttrValue |
buildPartial() |
AttrValue.Builder |
clear() |
AttrValue.Builder |
clearB()
"bool"
|
AttrValue.Builder |
clearF()
"float"
|
AttrValue.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AttrValue.Builder |
clearFunc()
"func" represents a function.
|
AttrValue.Builder |
clearI()
"int"
|
AttrValue.Builder |
clearList()
any "list(...)"
|
AttrValue.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AttrValue.Builder |
clearPlaceholder()
This is a placeholder only used in nodes defined inside a
function.
|
AttrValue.Builder |
clearS()
"string"
|
AttrValue.Builder |
clearShape()
"shape"
|
AttrValue.Builder |
clearTensor()
"tensor"
|
AttrValue.Builder |
clearType()
"type"
|
AttrValue.Builder |
clearValue() |
AttrValue.Builder |
clone() |
boolean |
getB()
"bool"
|
AttrValue |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
float |
getF()
"float"
|
NameAttrList |
getFunc()
"func" represents a function.
|
NameAttrList.Builder |
getFuncBuilder()
"func" represents a function.
|
NameAttrListOrBuilder |
getFuncOrBuilder()
"func" represents a function.
|
long |
getI()
"int"
|
AttrValue.ListValue |
getList()
any "list(...)"
|
AttrValue.ListValue.Builder |
getListBuilder()
any "list(...)"
|
AttrValue.ListValueOrBuilder |
getListOrBuilder()
any "list(...)"
|
java.lang.String |
getPlaceholder()
This is a placeholder only used in nodes defined inside a
function.
|
com.google.protobuf.ByteString |
getPlaceholderBytes()
This is a placeholder only used in nodes defined inside a
function.
|
com.google.protobuf.ByteString |
getS()
"string"
|
TensorShapeProto |
getShape()
"shape"
|
TensorShapeProto.Builder |
getShapeBuilder()
"shape"
|
TensorShapeProtoOrBuilder |
getShapeOrBuilder()
"shape"
|
TensorProto |
getTensor()
"tensor"
|
TensorProto.Builder |
getTensorBuilder()
"tensor"
|
TensorProtoOrBuilder |
getTensorOrBuilder()
"tensor"
|
DataType |
getType()
"type"
|
int |
getTypeValue()
"type"
|
AttrValue.ValueCase |
getValueCase() |
boolean |
hasFunc()
"func" represents a function.
|
boolean |
hasList()
any "list(...)"
|
boolean |
hasShape()
"shape"
|
boolean |
hasTensor()
"tensor"
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AttrValue.Builder |
mergeFrom(AttrValue other) |
AttrValue.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AttrValue.Builder |
mergeFrom(com.google.protobuf.Message other) |
AttrValue.Builder |
mergeFunc(NameAttrList value)
"func" represents a function.
|
AttrValue.Builder |
mergeList(AttrValue.ListValue value)
any "list(...)"
|
AttrValue.Builder |
mergeShape(TensorShapeProto value)
"shape"
|
AttrValue.Builder |
mergeTensor(TensorProto value)
"tensor"
|
AttrValue.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AttrValue.Builder |
setB(boolean value)
"bool"
|
AttrValue.Builder |
setF(float value)
"float"
|
AttrValue.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
AttrValue.Builder |
setFunc(NameAttrList.Builder builderForValue)
"func" represents a function.
|
AttrValue.Builder |
setFunc(NameAttrList value)
"func" represents a function.
|
AttrValue.Builder |
setI(long value)
"int"
|
AttrValue.Builder |
setList(AttrValue.ListValue.Builder builderForValue)
any "list(...)"
|
AttrValue.Builder |
setList(AttrValue.ListValue value)
any "list(...)"
|
AttrValue.Builder |
setPlaceholder(java.lang.String value)
This is a placeholder only used in nodes defined inside a
function.
|
AttrValue.Builder |
setPlaceholderBytes(com.google.protobuf.ByteString value)
This is a placeholder only used in nodes defined inside a
function.
|
AttrValue.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
AttrValue.Builder |
setS(com.google.protobuf.ByteString value)
"string"
|
AttrValue.Builder |
setShape(TensorShapeProto.Builder builderForValue)
"shape"
|
AttrValue.Builder |
setShape(TensorShapeProto value)
"shape"
|
AttrValue.Builder |
setTensor(TensorProto.Builder builderForValue)
"tensor"
|
AttrValue.Builder |
setTensor(TensorProto value)
"tensor"
|
AttrValue.Builder |
setType(DataType value)
"type"
|
AttrValue.Builder |
setTypeValue(int value)
"type"
|
AttrValue.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>public AttrValue.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>public AttrValue getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AttrValue build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AttrValue buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AttrValue.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>public AttrValue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>public AttrValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>public AttrValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>public AttrValue.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>public AttrValue.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>public AttrValue.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttrValue.Builder>public AttrValue.Builder mergeFrom(AttrValue other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>public AttrValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttrValue.Builder>java.io.IOExceptionpublic AttrValue.ValueCase getValueCase()
getValueCase in interface AttrValueOrBuilderpublic AttrValue.Builder clearValue()
public com.google.protobuf.ByteString getS()
"string"
bytes s = 2;getS in interface AttrValueOrBuilderpublic AttrValue.Builder setS(com.google.protobuf.ByteString value)
"string"
bytes s = 2;value - The s to set.public AttrValue.Builder clearS()
"string"
bytes s = 2;public long getI()
"int"
int64 i = 3;getI in interface AttrValueOrBuilderpublic AttrValue.Builder setI(long value)
"int"
int64 i = 3;value - The i to set.public AttrValue.Builder clearI()
"int"
int64 i = 3;public float getF()
"float"
float f = 4;getF in interface AttrValueOrBuilderpublic AttrValue.Builder setF(float value)
"float"
float f = 4;value - The f to set.public AttrValue.Builder clearF()
"float"
float f = 4;public boolean getB()
"bool"
bool b = 5;getB in interface AttrValueOrBuilderpublic AttrValue.Builder setB(boolean value)
"bool"
bool b = 5;value - The b to set.public AttrValue.Builder clearB()
"bool"
bool b = 5;public int getTypeValue()
"type"
.tensorflow.DataType type = 6;getTypeValue in interface AttrValueOrBuilderpublic AttrValue.Builder setTypeValue(int value)
"type"
.tensorflow.DataType type = 6;value - The enum numeric value on the wire for type to set.public DataType getType()
"type"
.tensorflow.DataType type = 6;getType in interface AttrValueOrBuilderpublic AttrValue.Builder setType(DataType value)
"type"
.tensorflow.DataType type = 6;value - The type to set.public AttrValue.Builder clearType()
"type"
.tensorflow.DataType type = 6;public boolean hasShape()
"shape"
.tensorflow.TensorShapeProto shape = 7;hasShape in interface AttrValueOrBuilderpublic TensorShapeProto getShape()
"shape"
.tensorflow.TensorShapeProto shape = 7;getShape in interface AttrValueOrBuilderpublic AttrValue.Builder setShape(TensorShapeProto value)
"shape"
.tensorflow.TensorShapeProto shape = 7;public AttrValue.Builder setShape(TensorShapeProto.Builder builderForValue)
"shape"
.tensorflow.TensorShapeProto shape = 7;public AttrValue.Builder mergeShape(TensorShapeProto value)
"shape"
.tensorflow.TensorShapeProto shape = 7;public AttrValue.Builder clearShape()
"shape"
.tensorflow.TensorShapeProto shape = 7;public TensorShapeProto.Builder getShapeBuilder()
"shape"
.tensorflow.TensorShapeProto shape = 7;public TensorShapeProtoOrBuilder getShapeOrBuilder()
"shape"
.tensorflow.TensorShapeProto shape = 7;getShapeOrBuilder in interface AttrValueOrBuilderpublic boolean hasTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;hasTensor in interface AttrValueOrBuilderpublic TensorProto getTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;getTensor in interface AttrValueOrBuilderpublic AttrValue.Builder setTensor(TensorProto value)
"tensor"
.tensorflow.TensorProto tensor = 8;public AttrValue.Builder setTensor(TensorProto.Builder builderForValue)
"tensor"
.tensorflow.TensorProto tensor = 8;public AttrValue.Builder mergeTensor(TensorProto value)
"tensor"
.tensorflow.TensorProto tensor = 8;public AttrValue.Builder clearTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;public TensorProto.Builder getTensorBuilder()
"tensor"
.tensorflow.TensorProto tensor = 8;public TensorProtoOrBuilder getTensorOrBuilder()
"tensor"
.tensorflow.TensorProto tensor = 8;getTensorOrBuilder in interface AttrValueOrBuilderpublic boolean hasList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;hasList in interface AttrValueOrBuilderpublic AttrValue.ListValue getList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;getList in interface AttrValueOrBuilderpublic AttrValue.Builder setList(AttrValue.ListValue value)
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;public AttrValue.Builder setList(AttrValue.ListValue.Builder builderForValue)
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;public AttrValue.Builder mergeList(AttrValue.ListValue value)
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;public AttrValue.Builder clearList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;public AttrValue.ListValue.Builder getListBuilder()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;public AttrValue.ListValueOrBuilder getListOrBuilder()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;getListOrBuilder in interface AttrValueOrBuilderpublic 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;hasFunc in interface AttrValueOrBuilderpublic 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;getFunc in interface AttrValueOrBuilderpublic 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;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;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;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;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;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;getFuncOrBuilder in interface AttrValueOrBuilderpublic java.lang.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;getPlaceholder in interface AttrValueOrBuilderpublic com.google.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;getPlaceholderBytes in interface AttrValueOrBuilderpublic AttrValue.Builder setPlaceholder(java.lang.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;value - The placeholder to set.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;public AttrValue.Builder setPlaceholderBytes(com.google.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;value - The bytes for placeholder to set.public final AttrValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>public final AttrValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttrValue.Builder>