Class AttrValue.ListValue.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<AttrValue.ListValue.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<AttrValue.ListValue.Builder>
org.tensorflow.proto.AttrValue.ListValue.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, AttrValue.ListValueOrBuilder
- Enclosing class:
AttrValue.ListValue
public static final class AttrValue.ListValue.Builder
extends GeneratedMessageV3.Builder<AttrValue.ListValue.Builder>
implements AttrValue.ListValueOrBuilder
LINT.IfChangeProtobuf type
tensorflow.AttrValue.ListValue-
Method Summary
Modifier and TypeMethodDescription"list(bool)""list(float)"addAllFunc(Iterable<? extends NameAttrList> values) "list(attr)""list(int)"addAllS(Iterable<? extends ByteString> values) "list(string)"addAllShape(Iterable<? extends TensorShapeProto> values) "list(shape)"addAllTensor(Iterable<? extends TensorProto> values) "list(tensor)"addAllType(Iterable<? extends DataType> values) "list(type)"addAllTypeValue(Iterable<Integer> values) "list(type)"addB(boolean value) "list(bool)"addF(float value) "list(float)"addFunc(int index, NameAttrList value) "list(attr)"addFunc(int index, NameAttrList.Builder builderForValue) "list(attr)"addFunc(NameAttrList value) "list(attr)"addFunc(NameAttrList.Builder builderForValue) "list(attr)""list(attr)"addFuncBuilder(int index) "list(attr)"addI(long value) "list(int)"addRepeatedField(Descriptors.FieldDescriptor field, Object value) addS(ByteString value) "list(string)"addShape(int index, TensorShapeProto value) "list(shape)"addShape(int index, TensorShapeProto.Builder builderForValue) "list(shape)"addShape(TensorShapeProto value) "list(shape)"addShape(TensorShapeProto.Builder builderForValue) "list(shape)""list(shape)"addShapeBuilder(int index) "list(shape)"addTensor(int index, TensorProto value) "list(tensor)"addTensor(int index, TensorProto.Builder builderForValue) "list(tensor)"addTensor(TensorProto value) "list(tensor)"addTensor(TensorProto.Builder builderForValue) "list(tensor)""list(tensor)"addTensorBuilder(int index) "list(tensor)""list(type)"addTypeValue(int value) "list(type)"build()clear()clearB()"list(bool)"clearF()"list(float)""list(attr)"clearI()"list(int)"clearS()"list(string)""list(shape)""list(tensor)""list(type)"clone()booleangetB(int index) "list(bool)"int"list(bool)"getBList()"list(bool)"static final Descriptors.DescriptorfloatgetF(int index) "list(float)"int"list(float)"getFList()"list(float)"getFunc(int index) "list(attr)"getFuncBuilder(int index) "list(attr)""list(attr)"int"list(attr)""list(attr)"getFuncOrBuilder(int index) "list(attr)"List<? extends NameAttrListOrBuilder> "list(attr)"longgetI(int index) "list(int)"int"list(int)"getIList()"list(int)"getS(int index) "list(string)"int"list(string)"getShape(int index) "list(shape)"getShapeBuilder(int index) "list(shape)""list(shape)"int"list(shape)""list(shape)"getShapeOrBuilder(int index) "list(shape)"List<? extends TensorShapeProtoOrBuilder> "list(shape)"getSList()"list(string)"getTensor(int index) "list(tensor)"getTensorBuilder(int index) "list(tensor)""list(tensor)"int"list(tensor)""list(tensor)"getTensorOrBuilder(int index) "list(tensor)"List<? extends TensorProtoOrBuilder> "list(tensor)"getType(int index) "list(type)"int"list(type)""list(type)"intgetTypeValue(int index) "list(type)""list(type)"protected GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(AttrValue.ListValue other) mergeUnknownFields(UnknownFieldSet unknownFields) removeFunc(int index) "list(attr)"removeShape(int index) "list(shape)"removeTensor(int index) "list(tensor)"setB(int index, boolean value) "list(bool)"setF(int index, float value) "list(float)"setField(Descriptors.FieldDescriptor field, Object value) setFunc(int index, NameAttrList value) "list(attr)"setFunc(int index, NameAttrList.Builder builderForValue) "list(attr)"setI(int index, long value) "list(int)"setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) setS(int index, ByteString value) "list(string)"setShape(int index, TensorShapeProto value) "list(shape)"setShape(int index, TensorShapeProto.Builder builderForValue) "list(shape)"setTensor(int index, TensorProto value) "list(tensor)"setTensor(int index, TensorProto.Builder builderForValue) "list(tensor)""list(type)"setTypeValue(int index, int value) "list(type)"setUnknownFields(UnknownFieldSet unknownFields) Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface MessageLite.Builder
mergeFromMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<AttrValue.ListValue.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<AttrValue.ListValue.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<AttrValue.ListValue.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<AttrValue.ListValue.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<AttrValue.ListValue.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<AttrValue.ListValue.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<AttrValue.ListValue.Builder>
-
setRepeatedField
public AttrValue.ListValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<AttrValue.ListValue.Builder>
-
addRepeatedField
public AttrValue.ListValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<AttrValue.ListValue.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<AttrValue.ListValue.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<AttrValue.ListValue.Builder>
-
mergeFrom
public AttrValue.ListValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<AttrValue.ListValue.Builder>- Throws:
IOException
-
getSList
"list(string)"
repeated bytes s = 2;- Specified by:
getSListin interfaceAttrValue.ListValueOrBuilder- Returns:
- A list containing the s.
-
getSCount
public int getSCount()"list(string)"
repeated bytes s = 2;- Specified by:
getSCountin interfaceAttrValue.ListValueOrBuilder- Returns:
- The count of s.
-
getS
"list(string)"
repeated bytes s = 2;- Specified by:
getSin interfaceAttrValue.ListValueOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The s at the given index.
-
setS
"list(string)"
repeated bytes s = 2;- Parameters:
index- The index to set the value at.value- The s to set.- Returns:
- This builder for chaining.
-
addS
"list(string)"
repeated bytes s = 2;- Parameters:
value- The s to add.- Returns:
- This builder for chaining.
-
addAllS
"list(string)"
repeated bytes s = 2;- Parameters:
values- The s to add.- Returns:
- This builder for chaining.
-
clearS
"list(string)"
repeated bytes s = 2;- Returns:
- This builder for chaining.
-
getIList
"list(int)"
repeated int64 i = 3 [packed = true];- Specified by:
getIListin interfaceAttrValue.ListValueOrBuilder- Returns:
- A list containing the i.
-
getICount
public int getICount()"list(int)"
repeated int64 i = 3 [packed = true];- Specified by:
getICountin interfaceAttrValue.ListValueOrBuilder- Returns:
- The count of i.
-
getI
public long getI(int index) "list(int)"
repeated int64 i = 3 [packed = true];- Specified by:
getIin interfaceAttrValue.ListValueOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The i at the given index.
-
setI
"list(int)"
repeated int64 i = 3 [packed = true];- Parameters:
index- The index to set the value at.value- The i to set.- Returns:
- This builder for chaining.
-
addI
"list(int)"
repeated int64 i = 3 [packed = true];- Parameters:
value- The i to add.- Returns:
- This builder for chaining.
-
addAllI
"list(int)"
repeated int64 i = 3 [packed = true];- Parameters:
values- The i to add.- Returns:
- This builder for chaining.
-
clearI
"list(int)"
repeated int64 i = 3 [packed = true];- Returns:
- This builder for chaining.
-
getFList
"list(float)"
repeated float f = 4 [packed = true];- Specified by:
getFListin interfaceAttrValue.ListValueOrBuilder- Returns:
- A list containing the f.
-
getFCount
public int getFCount()"list(float)"
repeated float f = 4 [packed = true];- Specified by:
getFCountin interfaceAttrValue.ListValueOrBuilder- Returns:
- The count of f.
-
getF
public float getF(int index) "list(float)"
repeated float f = 4 [packed = true];- Specified by:
getFin interfaceAttrValue.ListValueOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The f at the given index.
-
setF
"list(float)"
repeated float f = 4 [packed = true];- Parameters:
index- The index to set the value at.value- The f to set.- Returns:
- This builder for chaining.
-
addF
"list(float)"
repeated float f = 4 [packed = true];- Parameters:
value- The f to add.- Returns:
- This builder for chaining.
-
addAllF
"list(float)"
repeated float f = 4 [packed = true];- Parameters:
values- The f to add.- Returns:
- This builder for chaining.
-
clearF
"list(float)"
repeated float f = 4 [packed = true];- Returns:
- This builder for chaining.
-
getBList
"list(bool)"
repeated bool b = 5 [packed = true];- Specified by:
getBListin interfaceAttrValue.ListValueOrBuilder- Returns:
- A list containing the b.
-
getBCount
public int getBCount()"list(bool)"
repeated bool b = 5 [packed = true];- Specified by:
getBCountin interfaceAttrValue.ListValueOrBuilder- Returns:
- The count of b.
-
getB
public boolean getB(int index) "list(bool)"
repeated bool b = 5 [packed = true];- Specified by:
getBin interfaceAttrValue.ListValueOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The b at the given index.
-
setB
"list(bool)"
repeated bool b = 5 [packed = true];- Parameters:
index- The index to set the value at.value- The b to set.- Returns:
- This builder for chaining.
-
addB
"list(bool)"
repeated bool b = 5 [packed = true];- Parameters:
value- The b to add.- Returns:
- This builder for chaining.
-
addAllB
"list(bool)"
repeated bool b = 5 [packed = true];- Parameters:
values- The b to add.- Returns:
- This builder for chaining.
-
clearB
"list(bool)"
repeated bool b = 5 [packed = true];- Returns:
- This builder for chaining.
-
getTypeList
"list(type)"
repeated .tensorflow.DataType type = 6 [packed = true];- Specified by:
getTypeListin interfaceAttrValue.ListValueOrBuilder- Returns:
- A list containing the type.
-
getTypeCount
public int getTypeCount()"list(type)"
repeated .tensorflow.DataType type = 6 [packed = true];- Specified by:
getTypeCountin interfaceAttrValue.ListValueOrBuilder- Returns:
- The count of type.
-
getType
"list(type)"
repeated .tensorflow.DataType type = 6 [packed = true];- Specified by:
getTypein interfaceAttrValue.ListValueOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The type at the given index.
-
setType
"list(type)"
repeated .tensorflow.DataType type = 6 [packed = true];- Parameters:
index- The index to set the value at.value- The type to set.- Returns:
- This builder for chaining.
-
addType
"list(type)"
repeated .tensorflow.DataType type = 6 [packed = true];- Parameters:
value- The type to add.- Returns:
- This builder for chaining.
-
addAllType
"list(type)"
repeated .tensorflow.DataType type = 6 [packed = true];- Parameters:
values- The type to add.- Returns:
- This builder for chaining.
-
clearType
"list(type)"
repeated .tensorflow.DataType type = 6 [packed = true];- Returns:
- This builder for chaining.
-
getTypeValueList
"list(type)"
repeated .tensorflow.DataType type = 6 [packed = true];- Specified by:
getTypeValueListin interfaceAttrValue.ListValueOrBuilder- Returns:
- A list containing the enum numeric values on the wire for type.
-
getTypeValue
public int getTypeValue(int index) "list(type)"
repeated .tensorflow.DataType type = 6 [packed = true];- Specified by:
getTypeValuein interfaceAttrValue.ListValueOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of type at the given index.
-
setTypeValue
"list(type)"
repeated .tensorflow.DataType type = 6 [packed = true];- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
addTypeValue
"list(type)"
repeated .tensorflow.DataType type = 6 [packed = true];- Parameters:
value- The enum numeric value on the wire for type to add.- Returns:
- This builder for chaining.
-
addAllTypeValue
"list(type)"
repeated .tensorflow.DataType type = 6 [packed = true];- Parameters:
values- The enum numeric values on the wire for type to add.- Returns:
- This builder for chaining.
-
getShapeList
"list(shape)"
repeated .tensorflow.TensorShapeProto shape = 7;- Specified by:
getShapeListin interfaceAttrValue.ListValueOrBuilder
-
getShapeCount
public int getShapeCount()"list(shape)"
repeated .tensorflow.TensorShapeProto shape = 7;- Specified by:
getShapeCountin interfaceAttrValue.ListValueOrBuilder
-
getShape
"list(shape)"
repeated .tensorflow.TensorShapeProto shape = 7;- Specified by:
getShapein interfaceAttrValue.ListValueOrBuilder
-
setShape
"list(shape)"
repeated .tensorflow.TensorShapeProto shape = 7; -
setShape
"list(shape)"
repeated .tensorflow.TensorShapeProto shape = 7; -
addShape
"list(shape)"
repeated .tensorflow.TensorShapeProto shape = 7; -
addShape
"list(shape)"
repeated .tensorflow.TensorShapeProto shape = 7; -
addShape
"list(shape)"
repeated .tensorflow.TensorShapeProto shape = 7; -
addShape
"list(shape)"
repeated .tensorflow.TensorShapeProto shape = 7; -
addAllShape
"list(shape)"
repeated .tensorflow.TensorShapeProto shape = 7; -
clearShape
"list(shape)"
repeated .tensorflow.TensorShapeProto shape = 7; -
removeShape
"list(shape)"
repeated .tensorflow.TensorShapeProto shape = 7; -
getShapeBuilder
"list(shape)"
repeated .tensorflow.TensorShapeProto shape = 7; -
getShapeOrBuilder
"list(shape)"
repeated .tensorflow.TensorShapeProto shape = 7;- Specified by:
getShapeOrBuilderin interfaceAttrValue.ListValueOrBuilder
-
getShapeOrBuilderList
"list(shape)"
repeated .tensorflow.TensorShapeProto shape = 7;- Specified by:
getShapeOrBuilderListin interfaceAttrValue.ListValueOrBuilder
-
addShapeBuilder
"list(shape)"
repeated .tensorflow.TensorShapeProto shape = 7; -
addShapeBuilder
"list(shape)"
repeated .tensorflow.TensorShapeProto shape = 7; -
getShapeBuilderList
"list(shape)"
repeated .tensorflow.TensorShapeProto shape = 7; -
getTensorList
"list(tensor)"
repeated .tensorflow.TensorProto tensor = 8;- Specified by:
getTensorListin interfaceAttrValue.ListValueOrBuilder
-
getTensorCount
public int getTensorCount()"list(tensor)"
repeated .tensorflow.TensorProto tensor = 8;- Specified by:
getTensorCountin interfaceAttrValue.ListValueOrBuilder
-
getTensor
"list(tensor)"
repeated .tensorflow.TensorProto tensor = 8;- Specified by:
getTensorin interfaceAttrValue.ListValueOrBuilder
-
setTensor
"list(tensor)"
repeated .tensorflow.TensorProto tensor = 8; -
setTensor
"list(tensor)"
repeated .tensorflow.TensorProto tensor = 8; -
addTensor
"list(tensor)"
repeated .tensorflow.TensorProto tensor = 8; -
addTensor
"list(tensor)"
repeated .tensorflow.TensorProto tensor = 8; -
addTensor
"list(tensor)"
repeated .tensorflow.TensorProto tensor = 8; -
addTensor
"list(tensor)"
repeated .tensorflow.TensorProto tensor = 8; -
addAllTensor
"list(tensor)"
repeated .tensorflow.TensorProto tensor = 8; -
clearTensor
"list(tensor)"
repeated .tensorflow.TensorProto tensor = 8; -
removeTensor
"list(tensor)"
repeated .tensorflow.TensorProto tensor = 8; -
getTensorBuilder
"list(tensor)"
repeated .tensorflow.TensorProto tensor = 8; -
getTensorOrBuilder
"list(tensor)"
repeated .tensorflow.TensorProto tensor = 8;- Specified by:
getTensorOrBuilderin interfaceAttrValue.ListValueOrBuilder
-
getTensorOrBuilderList
"list(tensor)"
repeated .tensorflow.TensorProto tensor = 8;- Specified by:
getTensorOrBuilderListin interfaceAttrValue.ListValueOrBuilder
-
addTensorBuilder
"list(tensor)"
repeated .tensorflow.TensorProto tensor = 8; -
addTensorBuilder
"list(tensor)"
repeated .tensorflow.TensorProto tensor = 8; -
getTensorBuilderList
"list(tensor)"
repeated .tensorflow.TensorProto tensor = 8; -
getFuncList
"list(attr)"
repeated .tensorflow.NameAttrList func = 9;- Specified by:
getFuncListin interfaceAttrValue.ListValueOrBuilder
-
getFuncCount
public int getFuncCount()"list(attr)"
repeated .tensorflow.NameAttrList func = 9;- Specified by:
getFuncCountin interfaceAttrValue.ListValueOrBuilder
-
getFunc
"list(attr)"
repeated .tensorflow.NameAttrList func = 9;- Specified by:
getFuncin interfaceAttrValue.ListValueOrBuilder
-
setFunc
"list(attr)"
repeated .tensorflow.NameAttrList func = 9; -
setFunc
"list(attr)"
repeated .tensorflow.NameAttrList func = 9; -
addFunc
"list(attr)"
repeated .tensorflow.NameAttrList func = 9; -
addFunc
"list(attr)"
repeated .tensorflow.NameAttrList func = 9; -
addFunc
"list(attr)"
repeated .tensorflow.NameAttrList func = 9; -
addFunc
"list(attr)"
repeated .tensorflow.NameAttrList func = 9; -
addAllFunc
"list(attr)"
repeated .tensorflow.NameAttrList func = 9; -
clearFunc
"list(attr)"
repeated .tensorflow.NameAttrList func = 9; -
removeFunc
"list(attr)"
repeated .tensorflow.NameAttrList func = 9; -
getFuncBuilder
"list(attr)"
repeated .tensorflow.NameAttrList func = 9; -
getFuncOrBuilder
"list(attr)"
repeated .tensorflow.NameAttrList func = 9;- Specified by:
getFuncOrBuilderin interfaceAttrValue.ListValueOrBuilder
-
getFuncOrBuilderList
"list(attr)"
repeated .tensorflow.NameAttrList func = 9;- Specified by:
getFuncOrBuilderListin interfaceAttrValue.ListValueOrBuilder
-
addFuncBuilder
"list(attr)"
repeated .tensorflow.NameAttrList func = 9; -
addFuncBuilder
"list(attr)"
repeated .tensorflow.NameAttrList func = 9; -
getFuncBuilderList
"list(attr)"
repeated .tensorflow.NameAttrList func = 9; -
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<AttrValue.ListValue.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<AttrValue.ListValue.Builder>
-