public static final class AttrValue.Builder extends com.github.os72.protobuf351.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.github.os72.protobuf351.Descriptors.FieldDescriptor field,
Object value) |
AttrValue |
build() |
AttrValue |
buildPartial() |
AttrValue.Builder |
clear() |
AttrValue.Builder |
clearB()
"bool"
|
AttrValue.Builder |
clearF()
"float"
|
AttrValue.Builder |
clearField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field) |
AttrValue.Builder |
clearFunc()
"func" represents a function.
|
AttrValue.Builder |
clearI()
"int"
|
AttrValue.Builder |
clearList()
any "list(...)"
|
AttrValue.Builder |
clearOneof(com.github.os72.protobuf351.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.github.os72.protobuf351.Descriptors.Descriptor |
getDescriptor() |
com.github.os72.protobuf351.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(...)"
|
String |
getPlaceholder()
This is a placeholder only used in nodes defined inside a
function.
|
com.github.os72.protobuf351.ByteString |
getPlaceholderBytes()
This is a placeholder only used in nodes defined inside a
function.
|
com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AttrValue.Builder |
mergeFrom(AttrValue other) |
AttrValue.Builder |
mergeFrom(com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
AttrValue.Builder |
mergeFrom(com.github.os72.protobuf351.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.github.os72.protobuf351.UnknownFieldSet unknownFields) |
AttrValue.Builder |
setB(boolean value)
"bool"
|
AttrValue.Builder |
setF(float value)
"float"
|
AttrValue.Builder |
setField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
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(String value)
This is a placeholder only used in nodes defined inside a
function.
|
AttrValue.Builder |
setPlaceholderBytes(com.github.os72.protobuf351.ByteString value)
This is a placeholder only used in nodes defined inside a
function.
|
AttrValue.Builder |
setRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index,
Object value) |
AttrValue.Builder |
setS(com.github.os72.protobuf351.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.github.os72.protobuf351.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor()
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<AttrValue.Builder>
public AttrValue.Builder clear()
clear
in interface com.github.os72.protobuf351.Message.Builder
clear
in interface com.github.os72.protobuf351.MessageLite.Builder
clear
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<AttrValue.Builder>
public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.github.os72.protobuf351.Message.Builder
getDescriptorForType
in interface com.github.os72.protobuf351.MessageOrBuilder
getDescriptorForType
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<AttrValue.Builder>
public AttrValue getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageOrBuilder
public AttrValue build()
build
in interface com.github.os72.protobuf351.Message.Builder
build
in interface com.github.os72.protobuf351.MessageLite.Builder
public AttrValue buildPartial()
buildPartial
in interface com.github.os72.protobuf351.Message.Builder
buildPartial
in interface com.github.os72.protobuf351.MessageLite.Builder
public AttrValue.Builder clone()
clone
in interface com.github.os72.protobuf351.Message.Builder
clone
in interface com.github.os72.protobuf351.MessageLite.Builder
clone
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<AttrValue.Builder>
public AttrValue.Builder setField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.github.os72.protobuf351.Message.Builder
setField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<AttrValue.Builder>
public AttrValue.Builder clearField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field)
clearField
in interface com.github.os72.protobuf351.Message.Builder
clearField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<AttrValue.Builder>
public AttrValue.Builder clearOneof(com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.github.os72.protobuf351.Message.Builder
clearOneof
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<AttrValue.Builder>
public AttrValue.Builder setRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.github.os72.protobuf351.Message.Builder
setRepeatedField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<AttrValue.Builder>
public AttrValue.Builder addRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.github.os72.protobuf351.Message.Builder
addRepeatedField
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<AttrValue.Builder>
public AttrValue.Builder mergeFrom(com.github.os72.protobuf351.Message other)
mergeFrom
in interface com.github.os72.protobuf351.Message.Builder
mergeFrom
in class com.github.os72.protobuf351.AbstractMessage.Builder<AttrValue.Builder>
public AttrValue.Builder mergeFrom(AttrValue other)
public final boolean isInitialized()
isInitialized
in interface com.github.os72.protobuf351.MessageLiteOrBuilder
isInitialized
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<AttrValue.Builder>
public AttrValue.Builder mergeFrom(com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.github.os72.protobuf351.Message.Builder
mergeFrom
in interface com.github.os72.protobuf351.MessageLite.Builder
mergeFrom
in class com.github.os72.protobuf351.AbstractMessage.Builder<AttrValue.Builder>
IOException
public AttrValue.ValueCase getValueCase()
getValueCase
in interface AttrValueOrBuilder
public AttrValue.Builder clearValue()
public com.github.os72.protobuf351.ByteString getS()
"string"
bytes s = 2;
getS
in interface AttrValueOrBuilder
public AttrValue.Builder setS(com.github.os72.protobuf351.ByteString value)
"string"
bytes s = 2;
public AttrValue.Builder clearS()
"string"
bytes s = 2;
public long getI()
"int"
int64 i = 3;
getI
in interface AttrValueOrBuilder
public AttrValue.Builder setI(long value)
"int"
int64 i = 3;
public AttrValue.Builder clearI()
"int"
int64 i = 3;
public float getF()
"float"
float f = 4;
getF
in interface AttrValueOrBuilder
public AttrValue.Builder setF(float value)
"float"
float f = 4;
public AttrValue.Builder clearF()
"float"
float f = 4;
public boolean getB()
"bool"
bool b = 5;
getB
in interface AttrValueOrBuilder
public AttrValue.Builder setB(boolean value)
"bool"
bool b = 5;
public AttrValue.Builder clearB()
"bool"
bool b = 5;
public int getTypeValue()
"type"
.tensorflow.DataType type = 6;
getTypeValue
in interface AttrValueOrBuilder
public AttrValue.Builder setTypeValue(int value)
"type"
.tensorflow.DataType type = 6;
public DataType getType()
"type"
.tensorflow.DataType type = 6;
getType
in interface AttrValueOrBuilder
public AttrValue.Builder setType(DataType value)
"type"
.tensorflow.DataType type = 6;
public AttrValue.Builder clearType()
"type"
.tensorflow.DataType type = 6;
public boolean hasShape()
"shape"
.tensorflow.TensorShapeProto shape = 7;
hasShape
in interface AttrValueOrBuilder
public TensorShapeProto getShape()
"shape"
.tensorflow.TensorShapeProto shape = 7;
getShape
in interface AttrValueOrBuilder
public 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 AttrValueOrBuilder
public boolean hasTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;
hasTensor
in interface AttrValueOrBuilder
public TensorProto getTensor()
"tensor"
.tensorflow.TensorProto tensor = 8;
getTensor
in interface AttrValueOrBuilder
public 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 AttrValueOrBuilder
public boolean hasList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
hasList
in interface AttrValueOrBuilder
public AttrValue.ListValue getList()
any "list(...)"
.tensorflow.AttrValue.ListValue list = 1;
getList
in interface AttrValueOrBuilder
public 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 AttrValueOrBuilder
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;
hasFunc
in interface AttrValueOrBuilder
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;
getFunc
in interface AttrValueOrBuilder
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;
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 AttrValueOrBuilder
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;
getPlaceholder
in interface AttrValueOrBuilder
public com.github.os72.protobuf351.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 AttrValueOrBuilder
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;
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.github.os72.protobuf351.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;
public final AttrValue.Builder setUnknownFields(com.github.os72.protobuf351.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.github.os72.protobuf351.Message.Builder
setUnknownFields
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<AttrValue.Builder>
public final AttrValue.Builder mergeUnknownFields(com.github.os72.protobuf351.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.github.os72.protobuf351.Message.Builder
mergeUnknownFields
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<AttrValue.Builder>
Copyright © 2019. All rights reserved.