Package ai.onnx.proto
Class OnnxMl.TensorShapeProto.Dimension.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
ai.onnx.proto.OnnxMl.TensorShapeProto.Dimension.Builder
- All Implemented Interfaces:
OnnxMl.TensorShapeProto.DimensionOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- OnnxMl.TensorShapeProto.Dimension
public static final class OnnxMl.TensorShapeProto.Dimension.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
implements OnnxMl.TensorShapeProto.DimensionOrBuilder
Protobuf type
onnx.TensorShapeProto.Dimension
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Standard denotation can optionally be used to denote tensor dimensions with standard semantic descriptions to ensure that operations are applied to the correct axis of a tensor.namespace Shapeint64 dim_value = 1;
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()
Standard denotation can optionally be used to denote tensor dimensions with standard semantic descriptions to ensure that operations are applied to the correct axis of a tensor.com.google.protobuf.ByteString
Standard denotation can optionally be used to denote tensor dimensions with standard semantic descriptions to ensure that operations are applied to the correct axis of a tensor.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
namespace Shapecom.google.protobuf.ByteString
namespace Shapelong
int64 dim_value = 1;
boolean
Standard denotation can optionally be used to denote tensor dimensions with standard semantic descriptions to ensure that operations are applied to the correct axis of a tensor.boolean
namespace Shapeboolean
int64 dim_value = 1;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setDenotation
(String value) Standard denotation can optionally be used to denote tensor dimensions with standard semantic descriptions to ensure that operations are applied to the correct axis of a tensor.setDenotationBytes
(com.google.protobuf.ByteString value) Standard denotation can optionally be used to denote tensor dimensions with standard semantic descriptions to ensure that operations are applied to the correct axis of a tensor.setDimParam
(String value) namespace ShapesetDimParamBytes
(com.google.protobuf.ByteString value) namespace ShapesetDimValue
(long value) int64 dim_value = 1;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
setField
public OnnxMl.TensorShapeProto.Dimension.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
clearField
public OnnxMl.TensorShapeProto.Dimension.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
clearOneof
public OnnxMl.TensorShapeProto.Dimension.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
setRepeatedField
public OnnxMl.TensorShapeProto.Dimension.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
addRepeatedField
public OnnxMl.TensorShapeProto.Dimension.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
mergeFrom
public OnnxMl.TensorShapeProto.Dimension.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
- Throws:
IOException
-
getValueCase
- Specified by:
getValueCase
in interfaceOnnxMl.TensorShapeProto.DimensionOrBuilder
-
clearValue
-
hasDimValue
public boolean hasDimValue()int64 dim_value = 1;
- Specified by:
hasDimValue
in interfaceOnnxMl.TensorShapeProto.DimensionOrBuilder
- Returns:
- Whether the dimValue field is set.
-
getDimValue
public long getDimValue()int64 dim_value = 1;
- Specified by:
getDimValue
in interfaceOnnxMl.TensorShapeProto.DimensionOrBuilder
- Returns:
- The dimValue.
-
setDimValue
int64 dim_value = 1;
- Parameters:
value
- The dimValue to set.- Returns:
- This builder for chaining.
-
clearDimValue
int64 dim_value = 1;
- Returns:
- This builder for chaining.
-
hasDimParam
public boolean hasDimParam()namespace Shape
string dim_param = 2;
- Specified by:
hasDimParam
in interfaceOnnxMl.TensorShapeProto.DimensionOrBuilder
- Returns:
- Whether the dimParam field is set.
-
getDimParam
namespace Shape
string dim_param = 2;
- Specified by:
getDimParam
in interfaceOnnxMl.TensorShapeProto.DimensionOrBuilder
- Returns:
- The dimParam.
-
getDimParamBytes
public com.google.protobuf.ByteString getDimParamBytes()namespace Shape
string dim_param = 2;
- Specified by:
getDimParamBytes
in interfaceOnnxMl.TensorShapeProto.DimensionOrBuilder
- Returns:
- The bytes for dimParam.
-
setDimParam
namespace Shape
string dim_param = 2;
- Parameters:
value
- The dimParam to set.- Returns:
- This builder for chaining.
-
clearDimParam
namespace Shape
string dim_param = 2;
- Returns:
- This builder for chaining.
-
setDimParamBytes
public OnnxMl.TensorShapeProto.Dimension.Builder setDimParamBytes(com.google.protobuf.ByteString value) namespace Shape
string dim_param = 2;
- Parameters:
value
- The bytes for dimParam to set.- Returns:
- This builder for chaining.
-
hasDenotation
public boolean hasDenotation()Standard denotation can optionally be used to denote tensor dimensions with standard semantic descriptions to ensure that operations are applied to the correct axis of a tensor. Refer to https://github.com/onnx/onnx/blob/master/docs/DimensionDenotation.md#denotation-definition for pre-defined dimension denotations.
optional string denotation = 3;
- Specified by:
hasDenotation
in interfaceOnnxMl.TensorShapeProto.DimensionOrBuilder
- Returns:
- Whether the denotation field is set.
-
getDenotation
Standard denotation can optionally be used to denote tensor dimensions with standard semantic descriptions to ensure that operations are applied to the correct axis of a tensor. Refer to https://github.com/onnx/onnx/blob/master/docs/DimensionDenotation.md#denotation-definition for pre-defined dimension denotations.
optional string denotation = 3;
- Specified by:
getDenotation
in interfaceOnnxMl.TensorShapeProto.DimensionOrBuilder
- Returns:
- The denotation.
-
getDenotationBytes
public com.google.protobuf.ByteString getDenotationBytes()Standard denotation can optionally be used to denote tensor dimensions with standard semantic descriptions to ensure that operations are applied to the correct axis of a tensor. Refer to https://github.com/onnx/onnx/blob/master/docs/DimensionDenotation.md#denotation-definition for pre-defined dimension denotations.
optional string denotation = 3;
- Specified by:
getDenotationBytes
in interfaceOnnxMl.TensorShapeProto.DimensionOrBuilder
- Returns:
- The bytes for denotation.
-
setDenotation
Standard denotation can optionally be used to denote tensor dimensions with standard semantic descriptions to ensure that operations are applied to the correct axis of a tensor. Refer to https://github.com/onnx/onnx/blob/master/docs/DimensionDenotation.md#denotation-definition for pre-defined dimension denotations.
optional string denotation = 3;
- Parameters:
value
- The denotation to set.- Returns:
- This builder for chaining.
-
clearDenotation
Standard denotation can optionally be used to denote tensor dimensions with standard semantic descriptions to ensure that operations are applied to the correct axis of a tensor. Refer to https://github.com/onnx/onnx/blob/master/docs/DimensionDenotation.md#denotation-definition for pre-defined dimension denotations.
optional string denotation = 3;
- Returns:
- This builder for chaining.
-
setDenotationBytes
public OnnxMl.TensorShapeProto.Dimension.Builder setDenotationBytes(com.google.protobuf.ByteString value) Standard denotation can optionally be used to denote tensor dimensions with standard semantic descriptions to ensure that operations are applied to the correct axis of a tensor. Refer to https://github.com/onnx/onnx/blob/master/docs/DimensionDenotation.md#denotation-definition for pre-defined dimension denotations.
optional string denotation = 3;
- Parameters:
value
- The bytes for denotation to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final OnnxMl.TensorShapeProto.Dimension.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
mergeUnknownFields
public final OnnxMl.TensorShapeProto.Dimension.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-