Class OpPerformanceData.OpInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<OpPerformanceData.OpInfo.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<OpPerformanceData.OpInfo.Builder>
org.tensorflow.proto.OpPerformanceData.OpInfo.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, OpPerformanceData.OpInfoOrBuilder
- Enclosing class:
OpPerformanceData.OpInfo
public static final class OpPerformanceData.OpInfo.Builder
extends GeneratedMessageV3.Builder<OpPerformanceData.OpInfo.Builder>
implements OpPerformanceData.OpInfoOrBuilder
Description of an operation as well as the parameters expected to impact its performance.Protobuf type
tensorflow.OpInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllInputs(Iterable<? extends OpPerformanceData.OpInfo.TensorProperties> values) repeated .tensorflow.OpInfo.TensorProperties inputs = 3;addAllOutputs(Iterable<? extends OpPerformanceData.OpInfo.TensorProperties> values) Optional description of the op outputsaddInputs(int index, OpPerformanceData.OpInfo.TensorProperties value) repeated .tensorflow.OpInfo.TensorProperties inputs = 3;addInputs(int index, OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) repeated .tensorflow.OpInfo.TensorProperties inputs = 3;repeated .tensorflow.OpInfo.TensorProperties inputs = 3;addInputs(OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) repeated .tensorflow.OpInfo.TensorProperties inputs = 3;repeated .tensorflow.OpInfo.TensorProperties inputs = 3;addInputsBuilder(int index) repeated .tensorflow.OpInfo.TensorProperties inputs = 3;addOutputs(int index, OpPerformanceData.OpInfo.TensorProperties value) Optional description of the op outputsaddOutputs(int index, OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) Optional description of the op outputsOptional description of the op outputsaddOutputs(OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) Optional description of the op outputsOptional description of the op outputsaddOutputsBuilder(int index) Optional description of the op outputsaddRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear()Device on which the operation is run.repeated .tensorflow.OpInfo.TensorProperties inputs = 3;clearOp()The operation name.Optional description of the op outputsInformation about the session configs.clone()booleancontainsAttr(String key) Custom parameters impacting the behavior of the op.getAttr()Deprecated.intCustom parameters impacting the behavior of the op.Custom parameters impacting the behavior of the op.getAttrOrDefault(String key, AttrValue defaultValue) Custom parameters impacting the behavior of the op.getAttrOrThrow(String key) Custom parameters impacting the behavior of the op.static final Descriptors.DescriptorDevice on which the operation is run.Device on which the operation is run.Device on which the operation is run.getInputs(int index) repeated .tensorflow.OpInfo.TensorProperties inputs = 3;getInputsBuilder(int index) repeated .tensorflow.OpInfo.TensorProperties inputs = 3;repeated .tensorflow.OpInfo.TensorProperties inputs = 3;intrepeated .tensorflow.OpInfo.TensorProperties inputs = 3;repeated .tensorflow.OpInfo.TensorProperties inputs = 3;getInputsOrBuilder(int index) repeated .tensorflow.OpInfo.TensorProperties inputs = 3;repeated .tensorflow.OpInfo.TensorProperties inputs = 3;Deprecated.getOp()The operation name.The operation name.getOutputs(int index) Optional description of the op outputsgetOutputsBuilder(int index) Optional description of the op outputsOptional description of the op outputsintOptional description of the op outputsOptional description of the op outputsgetOutputsOrBuilder(int index) Optional description of the op outputsOptional description of the op outputsInformation about the session configs.Information about the session configs.Information about the session configs.booleanDevice on which the operation is run.booleanInformation about the session configs.protected GeneratedMessageV3.FieldAccessorTableprotected MapFieldinternalGetMapField(int number) protected MapFieldinternalGetMutableMapField(int number) final booleanDevice on which the operation is run.mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) Information about the session configs.mergeUnknownFields(UnknownFieldSet unknownFields) putAllAttr(Map<String, AttrValue> values) Custom parameters impacting the behavior of the op.Custom parameters impacting the behavior of the op.removeAttr(String key) Custom parameters impacting the behavior of the op.removeInputs(int index) repeated .tensorflow.OpInfo.TensorProperties inputs = 3;removeOutputs(int index) Optional description of the op outputsDevice on which the operation is run.setDevice(DevicePropertiesProtos.DeviceProperties.Builder builderForValue) Device on which the operation is run.setField(Descriptors.FieldDescriptor field, Object value) setInputs(int index, OpPerformanceData.OpInfo.TensorProperties value) repeated .tensorflow.OpInfo.TensorProperties inputs = 3;setInputs(int index, OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) repeated .tensorflow.OpInfo.TensorProperties inputs = 3;The operation name.setOpBytes(ByteString value) The operation name.setOutputs(int index, OpPerformanceData.OpInfo.TensorProperties value) Optional description of the op outputssetOutputs(int index, OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) Optional description of the op outputssetRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) Information about the session configs.setSessionInfo(OpPerformanceData.SessionInfo.Builder builderForValue) Information about the session configs.setUnknownFields(UnknownFieldSet unknownFields) Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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
-
internalGetMapField
- Overrides:
internalGetMapFieldin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.Builder>
-
internalGetMutableMapField
- Overrides:
internalGetMutableMapFieldin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.Builder>
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.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<OpPerformanceData.OpInfo.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.Builder>
-
setRepeatedField
public OpPerformanceData.OpInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.Builder>
-
addRepeatedField
public OpPerformanceData.OpInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<OpPerformanceData.OpInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.Builder>
-
mergeFrom
public OpPerformanceData.OpInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<OpPerformanceData.OpInfo.Builder>- Throws:
IOException
-
getOp
The operation name. There may be custom parameters in attrs.
string op = 1;- Specified by:
getOpin interfaceOpPerformanceData.OpInfoOrBuilder- Returns:
- The op.
-
getOpBytes
The operation name. There may be custom parameters in attrs.
string op = 1;- Specified by:
getOpBytesin interfaceOpPerformanceData.OpInfoOrBuilder- Returns:
- The bytes for op.
-
setOp
The operation name. There may be custom parameters in attrs.
string op = 1;- Parameters:
value- The op to set.- Returns:
- This builder for chaining.
-
clearOp
The operation name. There may be custom parameters in attrs.
string op = 1;- Returns:
- This builder for chaining.
-
setOpBytes
The operation name. There may be custom parameters in attrs.
string op = 1;- Parameters:
value- The bytes for op to set.- Returns:
- This builder for chaining.
-
getAttrCount
public int getAttrCount()Description copied from interface:OpPerformanceData.OpInfoOrBuilderCustom parameters impacting the behavior of the op.
map<string, .tensorflow.AttrValue> attr = 2;- Specified by:
getAttrCountin interfaceOpPerformanceData.OpInfoOrBuilder
-
containsAttr
Custom parameters impacting the behavior of the op.
map<string, .tensorflow.AttrValue> attr = 2;- Specified by:
containsAttrin interfaceOpPerformanceData.OpInfoOrBuilder
-
getAttr
Deprecated.UsegetAttrMap()instead.- Specified by:
getAttrin interfaceOpPerformanceData.OpInfoOrBuilder
-
getAttrMap
Custom parameters impacting the behavior of the op.
map<string, .tensorflow.AttrValue> attr = 2;- Specified by:
getAttrMapin interfaceOpPerformanceData.OpInfoOrBuilder
-
getAttrOrDefault
Custom parameters impacting the behavior of the op.
map<string, .tensorflow.AttrValue> attr = 2;- Specified by:
getAttrOrDefaultin interfaceOpPerformanceData.OpInfoOrBuilder
-
getAttrOrThrow
Custom parameters impacting the behavior of the op.
map<string, .tensorflow.AttrValue> attr = 2;- Specified by:
getAttrOrThrowin interfaceOpPerformanceData.OpInfoOrBuilder
-
clearAttr
-
removeAttr
Custom parameters impacting the behavior of the op.
map<string, .tensorflow.AttrValue> attr = 2; -
getMutableAttr
Deprecated.Use alternate mutation accessors instead. -
putAttr
Custom parameters impacting the behavior of the op.
map<string, .tensorflow.AttrValue> attr = 2; -
putAllAttr
Custom parameters impacting the behavior of the op.
map<string, .tensorflow.AttrValue> attr = 2; -
getInputsList
repeated .tensorflow.OpInfo.TensorProperties inputs = 3;- Specified by:
getInputsListin interfaceOpPerformanceData.OpInfoOrBuilder
-
getInputsCount
public int getInputsCount()repeated .tensorflow.OpInfo.TensorProperties inputs = 3;- Specified by:
getInputsCountin interfaceOpPerformanceData.OpInfoOrBuilder
-
getInputs
repeated .tensorflow.OpInfo.TensorProperties inputs = 3;- Specified by:
getInputsin interfaceOpPerformanceData.OpInfoOrBuilder
-
setInputs
public OpPerformanceData.OpInfo.Builder setInputs(int index, OpPerformanceData.OpInfo.TensorProperties value) repeated .tensorflow.OpInfo.TensorProperties inputs = 3; -
setInputs
public OpPerformanceData.OpInfo.Builder setInputs(int index, OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) repeated .tensorflow.OpInfo.TensorProperties inputs = 3; -
addInputs
repeated .tensorflow.OpInfo.TensorProperties inputs = 3; -
addInputs
public OpPerformanceData.OpInfo.Builder addInputs(int index, OpPerformanceData.OpInfo.TensorProperties value) repeated .tensorflow.OpInfo.TensorProperties inputs = 3; -
addInputs
public OpPerformanceData.OpInfo.Builder addInputs(OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) repeated .tensorflow.OpInfo.TensorProperties inputs = 3; -
addInputs
public OpPerformanceData.OpInfo.Builder addInputs(int index, OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) repeated .tensorflow.OpInfo.TensorProperties inputs = 3; -
addAllInputs
public OpPerformanceData.OpInfo.Builder addAllInputs(Iterable<? extends OpPerformanceData.OpInfo.TensorProperties> values) repeated .tensorflow.OpInfo.TensorProperties inputs = 3; -
clearInputs
repeated .tensorflow.OpInfo.TensorProperties inputs = 3; -
removeInputs
repeated .tensorflow.OpInfo.TensorProperties inputs = 3; -
getInputsBuilder
repeated .tensorflow.OpInfo.TensorProperties inputs = 3; -
getInputsOrBuilder
repeated .tensorflow.OpInfo.TensorProperties inputs = 3;- Specified by:
getInputsOrBuilderin interfaceOpPerformanceData.OpInfoOrBuilder
-
getInputsOrBuilderList
repeated .tensorflow.OpInfo.TensorProperties inputs = 3;- Specified by:
getInputsOrBuilderListin interfaceOpPerformanceData.OpInfoOrBuilder
-
addInputsBuilder
repeated .tensorflow.OpInfo.TensorProperties inputs = 3; -
addInputsBuilder
repeated .tensorflow.OpInfo.TensorProperties inputs = 3; -
getInputsBuilderList
repeated .tensorflow.OpInfo.TensorProperties inputs = 3; -
getOutputsList
Optional description of the op outputs
repeated .tensorflow.OpInfo.TensorProperties outputs = 5;- Specified by:
getOutputsListin interfaceOpPerformanceData.OpInfoOrBuilder
-
getOutputsCount
public int getOutputsCount()Optional description of the op outputs
repeated .tensorflow.OpInfo.TensorProperties outputs = 5;- Specified by:
getOutputsCountin interfaceOpPerformanceData.OpInfoOrBuilder
-
getOutputs
Optional description of the op outputs
repeated .tensorflow.OpInfo.TensorProperties outputs = 5;- Specified by:
getOutputsin interfaceOpPerformanceData.OpInfoOrBuilder
-
setOutputs
public OpPerformanceData.OpInfo.Builder setOutputs(int index, OpPerformanceData.OpInfo.TensorProperties value) Optional description of the op outputs
repeated .tensorflow.OpInfo.TensorProperties outputs = 5; -
setOutputs
public OpPerformanceData.OpInfo.Builder setOutputs(int index, OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) Optional description of the op outputs
repeated .tensorflow.OpInfo.TensorProperties outputs = 5; -
addOutputs
Optional description of the op outputs
repeated .tensorflow.OpInfo.TensorProperties outputs = 5; -
addOutputs
public OpPerformanceData.OpInfo.Builder addOutputs(int index, OpPerformanceData.OpInfo.TensorProperties value) Optional description of the op outputs
repeated .tensorflow.OpInfo.TensorProperties outputs = 5; -
addOutputs
public OpPerformanceData.OpInfo.Builder addOutputs(OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) Optional description of the op outputs
repeated .tensorflow.OpInfo.TensorProperties outputs = 5; -
addOutputs
public OpPerformanceData.OpInfo.Builder addOutputs(int index, OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) Optional description of the op outputs
repeated .tensorflow.OpInfo.TensorProperties outputs = 5; -
addAllOutputs
public OpPerformanceData.OpInfo.Builder addAllOutputs(Iterable<? extends OpPerformanceData.OpInfo.TensorProperties> values) Optional description of the op outputs
repeated .tensorflow.OpInfo.TensorProperties outputs = 5; -
clearOutputs
Optional description of the op outputs
repeated .tensorflow.OpInfo.TensorProperties outputs = 5; -
removeOutputs
Optional description of the op outputs
repeated .tensorflow.OpInfo.TensorProperties outputs = 5; -
getOutputsBuilder
Optional description of the op outputs
repeated .tensorflow.OpInfo.TensorProperties outputs = 5; -
getOutputsOrBuilder
Optional description of the op outputs
repeated .tensorflow.OpInfo.TensorProperties outputs = 5;- Specified by:
getOutputsOrBuilderin interfaceOpPerformanceData.OpInfoOrBuilder
-
getOutputsOrBuilderList
Optional description of the op outputs
repeated .tensorflow.OpInfo.TensorProperties outputs = 5;- Specified by:
getOutputsOrBuilderListin interfaceOpPerformanceData.OpInfoOrBuilder
-
addOutputsBuilder
Optional description of the op outputs
repeated .tensorflow.OpInfo.TensorProperties outputs = 5; -
addOutputsBuilder
Optional description of the op outputs
repeated .tensorflow.OpInfo.TensorProperties outputs = 5; -
getOutputsBuilderList
Optional description of the op outputs
repeated .tensorflow.OpInfo.TensorProperties outputs = 5; -
hasDevice
public boolean hasDevice()Device on which the operation is run.
.tensorflow.DeviceProperties device = 4;- Specified by:
hasDevicein interfaceOpPerformanceData.OpInfoOrBuilder- Returns:
- Whether the device field is set.
-
getDevice
Device on which the operation is run.
.tensorflow.DeviceProperties device = 4;- Specified by:
getDevicein interfaceOpPerformanceData.OpInfoOrBuilder- Returns:
- The device.
-
setDevice
Device on which the operation is run.
.tensorflow.DeviceProperties device = 4; -
setDevice
public OpPerformanceData.OpInfo.Builder setDevice(DevicePropertiesProtos.DeviceProperties.Builder builderForValue) Device on which the operation is run.
.tensorflow.DeviceProperties device = 4; -
mergeDevice
Device on which the operation is run.
.tensorflow.DeviceProperties device = 4; -
clearDevice
Device on which the operation is run.
.tensorflow.DeviceProperties device = 4; -
getDeviceBuilder
Device on which the operation is run.
.tensorflow.DeviceProperties device = 4; -
getDeviceOrBuilder
Device on which the operation is run.
.tensorflow.DeviceProperties device = 4;- Specified by:
getDeviceOrBuilderin interfaceOpPerformanceData.OpInfoOrBuilder
-
hasSessionInfo
public boolean hasSessionInfo()Information about the session configs.
.tensorflow.SessionInfo session_info = 6;- Specified by:
hasSessionInfoin interfaceOpPerformanceData.OpInfoOrBuilder- Returns:
- Whether the sessionInfo field is set.
-
getSessionInfo
Information about the session configs.
.tensorflow.SessionInfo session_info = 6;- Specified by:
getSessionInfoin interfaceOpPerformanceData.OpInfoOrBuilder- Returns:
- The sessionInfo.
-
setSessionInfo
Information about the session configs.
.tensorflow.SessionInfo session_info = 6; -
setSessionInfo
public OpPerformanceData.OpInfo.Builder setSessionInfo(OpPerformanceData.SessionInfo.Builder builderForValue) Information about the session configs.
.tensorflow.SessionInfo session_info = 6; -
mergeSessionInfo
Information about the session configs.
.tensorflow.SessionInfo session_info = 6; -
clearSessionInfo
Information about the session configs.
.tensorflow.SessionInfo session_info = 6; -
getSessionInfoBuilder
Information about the session configs.
.tensorflow.SessionInfo session_info = 6; -
getSessionInfoOrBuilder
Information about the session configs.
.tensorflow.SessionInfo session_info = 6;- Specified by:
getSessionInfoOrBuilderin interfaceOpPerformanceData.OpInfoOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.Builder>
-