Class CostGraphDef.Node.OutputInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CostGraphDef.Node.OutputInfo.Builder>
com.google.protobuf.GeneratedMessage.Builder<CostGraphDef.Node.OutputInfo.Builder>
org.tensorflow.proto.CostGraphDef.Node.OutputInfo.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, CostGraphDef.Node.OutputInfoOrBuilder
- Enclosing class:
CostGraphDef.Node.OutputInfo
public static final class CostGraphDef.Node.OutputInfo.Builder
extends GeneratedMessage.Builder<CostGraphDef.Node.OutputInfo.Builder>
implements CostGraphDef.Node.OutputInfoOrBuilder
Outputs of this node.Protobuf type
tensorflow.CostGraphDef.Node.OutputInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If >= 0, the output is an alias of an input..tensorflow.DataType dtype = 4;.tensorflow.TensorShapeProto shape = 3;int64 size = 1;longIf >= 0, the output is an alias of an input.static final Descriptors.DescriptorgetDtype().tensorflow.DataType dtype = 4;int.tensorflow.DataType dtype = 4;getShape().tensorflow.TensorShapeProto shape = 3;.tensorflow.TensorShapeProto shape = 3;.tensorflow.TensorShapeProto shape = 3;longgetSize()int64 size = 1;booleanhasShape().tensorflow.TensorShapeProto shape = 3;protected GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeShape(TensorShapeProto value) .tensorflow.TensorShapeProto shape = 3;setAliasInputPort(long value) If >= 0, the output is an alias of an input..tensorflow.DataType dtype = 4;setDtypeValue(int value) .tensorflow.DataType dtype = 4;setShape(TensorShapeProto value) .tensorflow.TensorShapeProto shape = 3;setShape(TensorShapeProto.Builder builderForValue) .tensorflow.TensorShapeProto shape = 3;setSize(long value) int64 size = 1;Methods inherited from class GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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, mergeDelimitedFrom
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessage.Builder<CostGraphDef.Node.OutputInfo.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessage.Builder<CostGraphDef.Node.OutputInfo.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessage.Builder<CostGraphDef.Node.OutputInfo.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
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<CostGraphDef.Node.OutputInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessage.Builder<CostGraphDef.Node.OutputInfo.Builder>
-
mergeFrom
public CostGraphDef.Node.OutputInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<CostGraphDef.Node.OutputInfo.Builder>- Throws:
IOException
-
getSize
public long getSize()int64 size = 1;- Specified by:
getSizein interfaceCostGraphDef.Node.OutputInfoOrBuilder- Returns:
- The size.
-
setSize
int64 size = 1;- Parameters:
value- The size to set.- Returns:
- This builder for chaining.
-
clearSize
int64 size = 1;- Returns:
- This builder for chaining.
-
getAliasInputPort
public long getAliasInputPort()If >= 0, the output is an alias of an input. Note that an alias input may itself be an alias. The algorithm will therefore need to follow those pointers.
int64 alias_input_port = 2;- Specified by:
getAliasInputPortin interfaceCostGraphDef.Node.OutputInfoOrBuilder- Returns:
- The aliasInputPort.
-
setAliasInputPort
If >= 0, the output is an alias of an input. Note that an alias input may itself be an alias. The algorithm will therefore need to follow those pointers.
int64 alias_input_port = 2;- Parameters:
value- The aliasInputPort to set.- Returns:
- This builder for chaining.
-
clearAliasInputPort
If >= 0, the output is an alias of an input. Note that an alias input may itself be an alias. The algorithm will therefore need to follow those pointers.
int64 alias_input_port = 2;- Returns:
- This builder for chaining.
-
hasShape
public boolean hasShape().tensorflow.TensorShapeProto shape = 3;- Specified by:
hasShapein interfaceCostGraphDef.Node.OutputInfoOrBuilder- Returns:
- Whether the shape field is set.
-
getShape
.tensorflow.TensorShapeProto shape = 3;- Specified by:
getShapein interfaceCostGraphDef.Node.OutputInfoOrBuilder- Returns:
- The shape.
-
setShape
.tensorflow.TensorShapeProto shape = 3; -
setShape
.tensorflow.TensorShapeProto shape = 3; -
mergeShape
.tensorflow.TensorShapeProto shape = 3; -
clearShape
.tensorflow.TensorShapeProto shape = 3; -
getShapeBuilder
.tensorflow.TensorShapeProto shape = 3; -
getShapeOrBuilder
.tensorflow.TensorShapeProto shape = 3;- Specified by:
getShapeOrBuilderin interfaceCostGraphDef.Node.OutputInfoOrBuilder
-
getDtypeValue
public int getDtypeValue().tensorflow.DataType dtype = 4;- Specified by:
getDtypeValuein interfaceCostGraphDef.Node.OutputInfoOrBuilder- Returns:
- The enum numeric value on the wire for dtype.
-
setDtypeValue
.tensorflow.DataType dtype = 4;- Parameters:
value- The enum numeric value on the wire for dtype to set.- Returns:
- This builder for chaining.
-
getDtype
.tensorflow.DataType dtype = 4;- Specified by:
getDtypein interfaceCostGraphDef.Node.OutputInfoOrBuilder- Returns:
- The dtype.
-
setDtype
.tensorflow.DataType dtype = 4;- Parameters:
value- The dtype to set.- Returns:
- This builder for chaining.
-
clearDtype
.tensorflow.DataType dtype = 4;- Returns:
- This builder for chaining.
-