Class OpPerformanceData.OpInfo.TensorProperties.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<OpPerformanceData.OpInfo.TensorProperties.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<OpPerformanceData.OpInfo.TensorProperties.Builder>
org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, OpPerformanceData.OpInfo.TensorPropertiesOrBuilder
- Enclosing class:
OpPerformanceData.OpInfo.TensorProperties
public static final class OpPerformanceData.OpInfo.TensorProperties.Builder
extends GeneratedMessageV3.Builder<OpPerformanceData.OpInfo.TensorProperties.Builder>
implements OpPerformanceData.OpInfo.TensorPropertiesOrBuilder
Input data types, shapes and values if known.Protobuf type
tensorflow.OpInfo.TensorProperties-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear().tensorflow.DataType dtype = 1;.tensorflow.TensorShapeProto shape = 2;.tensorflow.TensorProto value = 3;clone()static final Descriptors.DescriptorgetDtype().tensorflow.DataType dtype = 1;int.tensorflow.DataType dtype = 1;getShape().tensorflow.TensorShapeProto shape = 2;.tensorflow.TensorShapeProto shape = 2;.tensorflow.TensorShapeProto shape = 2;getValue().tensorflow.TensorProto value = 3;.tensorflow.TensorProto value = 3;.tensorflow.TensorProto value = 3;booleanhasShape().tensorflow.TensorShapeProto shape = 2;booleanhasValue().tensorflow.TensorProto value = 3;protected GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeShape(TensorShapeProto value) .tensorflow.TensorShapeProto shape = 2;mergeUnknownFields(UnknownFieldSet unknownFields) mergeValue(TensorProto value) .tensorflow.TensorProto value = 3;.tensorflow.DataType dtype = 1;setDtypeValue(int value) .tensorflow.DataType dtype = 1;setField(Descriptors.FieldDescriptor field, Object value) setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) setShape(TensorShapeProto value) .tensorflow.TensorShapeProto shape = 2;setShape(TensorShapeProto.Builder builderForValue) .tensorflow.TensorShapeProto shape = 2;setUnknownFields(UnknownFieldSet unknownFields) setValue(TensorProto value) .tensorflow.TensorProto value = 3;setValue(TensorProto.Builder builderForValue) .tensorflow.TensorProto value = 3;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<OpPerformanceData.OpInfo.TensorProperties.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.TensorProperties.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.TensorProperties.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.TensorProperties.Builder>
-
setField
public OpPerformanceData.OpInfo.TensorProperties.Builder setField(Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.TensorProperties.Builder>
-
clearField
public OpPerformanceData.OpInfo.TensorProperties.Builder clearField(Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.TensorProperties.Builder>
-
clearOneof
public OpPerformanceData.OpInfo.TensorProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.TensorProperties.Builder>
-
setRepeatedField
public OpPerformanceData.OpInfo.TensorProperties.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.TensorProperties.Builder>
-
addRepeatedField
public OpPerformanceData.OpInfo.TensorProperties.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.TensorProperties.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<OpPerformanceData.OpInfo.TensorProperties.Builder>
-
mergeFrom
public OpPerformanceData.OpInfo.TensorProperties.Builder mergeFrom(OpPerformanceData.OpInfo.TensorProperties other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.TensorProperties.Builder>
-
mergeFrom
public OpPerformanceData.OpInfo.TensorProperties.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<OpPerformanceData.OpInfo.TensorProperties.Builder>- Throws:
IOException
-
getDtypeValue
public int getDtypeValue().tensorflow.DataType dtype = 1;- Specified by:
getDtypeValuein interfaceOpPerformanceData.OpInfo.TensorPropertiesOrBuilder- Returns:
- The enum numeric value on the wire for dtype.
-
setDtypeValue
.tensorflow.DataType dtype = 1;- Parameters:
value- The enum numeric value on the wire for dtype to set.- Returns:
- This builder for chaining.
-
getDtype
.tensorflow.DataType dtype = 1;- Specified by:
getDtypein interfaceOpPerformanceData.OpInfo.TensorPropertiesOrBuilder- Returns:
- The dtype.
-
setDtype
.tensorflow.DataType dtype = 1;- Parameters:
value- The dtype to set.- Returns:
- This builder for chaining.
-
clearDtype
.tensorflow.DataType dtype = 1;- Returns:
- This builder for chaining.
-
hasShape
public boolean hasShape().tensorflow.TensorShapeProto shape = 2;- Specified by:
hasShapein interfaceOpPerformanceData.OpInfo.TensorPropertiesOrBuilder- Returns:
- Whether the shape field is set.
-
getShape
.tensorflow.TensorShapeProto shape = 2;- Specified by:
getShapein interfaceOpPerformanceData.OpInfo.TensorPropertiesOrBuilder- Returns:
- The shape.
-
setShape
.tensorflow.TensorShapeProto shape = 2; -
setShape
public OpPerformanceData.OpInfo.TensorProperties.Builder setShape(TensorShapeProto.Builder builderForValue) .tensorflow.TensorShapeProto shape = 2; -
mergeShape
.tensorflow.TensorShapeProto shape = 2; -
clearShape
.tensorflow.TensorShapeProto shape = 2; -
getShapeBuilder
.tensorflow.TensorShapeProto shape = 2; -
getShapeOrBuilder
.tensorflow.TensorShapeProto shape = 2;- Specified by:
getShapeOrBuilderin interfaceOpPerformanceData.OpInfo.TensorPropertiesOrBuilder
-
hasValue
public boolean hasValue().tensorflow.TensorProto value = 3;- Specified by:
hasValuein interfaceOpPerformanceData.OpInfo.TensorPropertiesOrBuilder- Returns:
- Whether the value field is set.
-
getValue
.tensorflow.TensorProto value = 3;- Specified by:
getValuein interfaceOpPerformanceData.OpInfo.TensorPropertiesOrBuilder- Returns:
- The value.
-
setValue
.tensorflow.TensorProto value = 3; -
setValue
public OpPerformanceData.OpInfo.TensorProperties.Builder setValue(TensorProto.Builder builderForValue) .tensorflow.TensorProto value = 3; -
mergeValue
.tensorflow.TensorProto value = 3; -
clearValue
.tensorflow.TensorProto value = 3; -
getValueBuilder
.tensorflow.TensorProto value = 3; -
getValueOrBuilder
.tensorflow.TensorProto value = 3;- Specified by:
getValueOrBuilderin interfaceOpPerformanceData.OpInfo.TensorPropertiesOrBuilder
-
setUnknownFields
public final OpPerformanceData.OpInfo.TensorProperties.Builder setUnknownFields(UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.TensorProperties.Builder>
-
mergeUnknownFields
public final OpPerformanceData.OpInfo.TensorProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<OpPerformanceData.OpInfo.TensorProperties.Builder>
-