Package onnx
Class OnnxMl.TensorShapeProto.Dimension.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
- onnx.OnnxMl.TensorShapeProto.Dimension.Builder
-
- All Implemented Interfaces:
Cloneable
,OnnxMl.TensorShapeProto.DimensionOrBuilder
,org.nd4j.shade.protobuf.Message.Builder
,org.nd4j.shade.protobuf.MessageLite.Builder
,org.nd4j.shade.protobuf.MessageLiteOrBuilder
,org.nd4j.shade.protobuf.MessageOrBuilder
- Enclosing class:
- OnnxMl.TensorShapeProto.Dimension
public static final class OnnxMl.TensorShapeProto.Dimension.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder> implements OnnxMl.TensorShapeProto.DimensionOrBuilder
Protobuf typeonnx.TensorShapeProto.Dimension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OnnxMl.TensorShapeProto.Dimension.Builder
addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
OnnxMl.TensorShapeProto.Dimension
build()
OnnxMl.TensorShapeProto.Dimension
buildPartial()
OnnxMl.TensorShapeProto.Dimension.Builder
clear()
OnnxMl.TensorShapeProto.Dimension.Builder
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.OnnxMl.TensorShapeProto.Dimension.Builder
clearDimParam()
namespace ShapeOnnxMl.TensorShapeProto.Dimension.Builder
clearDimValue()
int64 dim_value = 1;
OnnxMl.TensorShapeProto.Dimension.Builder
clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
OnnxMl.TensorShapeProto.Dimension.Builder
clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
OnnxMl.TensorShapeProto.Dimension.Builder
clearValue()
OnnxMl.TensorShapeProto.Dimension.Builder
clone()
OnnxMl.TensorShapeProto.Dimension
getDefaultInstanceForType()
String
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.org.nd4j.shade.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.static org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor()
org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDimParam()
namespace Shapeorg.nd4j.shade.protobuf.ByteString
getDimParamBytes()
namespace Shapelong
getDimValue()
int64 dim_value = 1;
OnnxMl.TensorShapeProto.Dimension.ValueCase
getValueCase()
boolean
hasDimParam()
namespace Shapeboolean
hasDimValue()
int64 dim_value = 1;
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
OnnxMl.TensorShapeProto.Dimension.Builder
mergeFrom(OnnxMl.TensorShapeProto.Dimension other)
OnnxMl.TensorShapeProto.Dimension.Builder
mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
OnnxMl.TensorShapeProto.Dimension.Builder
mergeFrom(org.nd4j.shade.protobuf.Message other)
OnnxMl.TensorShapeProto.Dimension.Builder
mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
OnnxMl.TensorShapeProto.Dimension.Builder
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.OnnxMl.TensorShapeProto.Dimension.Builder
setDenotationBytes(org.nd4j.shade.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.OnnxMl.TensorShapeProto.Dimension.Builder
setDimParam(String value)
namespace ShapeOnnxMl.TensorShapeProto.Dimension.Builder
setDimParamBytes(org.nd4j.shade.protobuf.ByteString value)
namespace ShapeOnnxMl.TensorShapeProto.Dimension.Builder
setDimValue(long value)
int64 dim_value = 1;
OnnxMl.TensorShapeProto.Dimension.Builder
setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
OnnxMl.TensorShapeProto.Dimension.Builder
setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
OnnxMl.TensorShapeProto.Dimension.Builder
setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
clear
public OnnxMl.TensorShapeProto.Dimension.Builder clear()
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clear
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
getDefaultInstanceForType
public OnnxMl.TensorShapeProto.Dimension getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public OnnxMl.TensorShapeProto.Dimension build()
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public OnnxMl.TensorShapeProto.Dimension buildPartial()
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public OnnxMl.TensorShapeProto.Dimension.Builder clone()
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clone
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
setField
public OnnxMl.TensorShapeProto.Dimension.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
clearField
public OnnxMl.TensorShapeProto.Dimension.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
clearOneof
public OnnxMl.TensorShapeProto.Dimension.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearOneof
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
setRepeatedField
public OnnxMl.TensorShapeProto.Dimension.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
addRepeatedField
public OnnxMl.TensorShapeProto.Dimension.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
mergeFrom
public OnnxMl.TensorShapeProto.Dimension.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeFrom
in classorg.nd4j.shade.protobuf.AbstractMessage.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
mergeFrom
public OnnxMl.TensorShapeProto.Dimension.Builder mergeFrom(OnnxMl.TensorShapeProto.Dimension other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
mergeFrom
public OnnxMl.TensorShapeProto.Dimension.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classorg.nd4j.shade.protobuf.AbstractMessage.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
- Throws:
IOException
-
getValueCase
public OnnxMl.TensorShapeProto.Dimension.ValueCase getValueCase()
- Specified by:
getValueCase
in interfaceOnnxMl.TensorShapeProto.DimensionOrBuilder
-
clearValue
public OnnxMl.TensorShapeProto.Dimension.Builder 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
public OnnxMl.TensorShapeProto.Dimension.Builder setDimValue(long value)
int64 dim_value = 1;
- Parameters:
value
- The dimValue to set.- Returns:
- This builder for chaining.
-
clearDimValue
public OnnxMl.TensorShapeProto.Dimension.Builder 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
public String getDimParam()
namespace Shape
string dim_param = 2;
- Specified by:
getDimParam
in interfaceOnnxMl.TensorShapeProto.DimensionOrBuilder
- Returns:
- The dimParam.
-
getDimParamBytes
public org.nd4j.shade.protobuf.ByteString getDimParamBytes()
namespace Shape
string dim_param = 2;
- Specified by:
getDimParamBytes
in interfaceOnnxMl.TensorShapeProto.DimensionOrBuilder
- Returns:
- The bytes for dimParam.
-
setDimParam
public OnnxMl.TensorShapeProto.Dimension.Builder setDimParam(String value)
namespace Shape
string dim_param = 2;
- Parameters:
value
- The dimParam to set.- Returns:
- This builder for chaining.
-
clearDimParam
public OnnxMl.TensorShapeProto.Dimension.Builder clearDimParam()
namespace Shape
string dim_param = 2;
- Returns:
- This builder for chaining.
-
setDimParamBytes
public OnnxMl.TensorShapeProto.Dimension.Builder setDimParamBytes(org.nd4j.shade.protobuf.ByteString value)
namespace Shape
string dim_param = 2;
- Parameters:
value
- The bytes for dimParam to set.- Returns:
- This builder for chaining.
-
getDenotation
public String 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/main/docs/DimensionDenotation.md#denotation-definition for pre-defined dimension denotations.
string denotation = 3;
- Specified by:
getDenotation
in interfaceOnnxMl.TensorShapeProto.DimensionOrBuilder
- Returns:
- The denotation.
-
getDenotationBytes
public org.nd4j.shade.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/main/docs/DimensionDenotation.md#denotation-definition for pre-defined dimension denotations.
string denotation = 3;
- Specified by:
getDenotationBytes
in interfaceOnnxMl.TensorShapeProto.DimensionOrBuilder
- Returns:
- The bytes for denotation.
-
setDenotation
public OnnxMl.TensorShapeProto.Dimension.Builder 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. Refer to https://github.com/onnx/onnx/blob/main/docs/DimensionDenotation.md#denotation-definition for pre-defined dimension denotations.
string denotation = 3;
- Parameters:
value
- The denotation to set.- Returns:
- This builder for chaining.
-
clearDenotation
public OnnxMl.TensorShapeProto.Dimension.Builder 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/main/docs/DimensionDenotation.md#denotation-definition for pre-defined dimension denotations.
string denotation = 3;
- Returns:
- This builder for chaining.
-
setDenotationBytes
public OnnxMl.TensorShapeProto.Dimension.Builder setDenotationBytes(org.nd4j.shade.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/main/docs/DimensionDenotation.md#denotation-definition for pre-defined dimension denotations.
string denotation = 3;
- Parameters:
value
- The bytes for denotation to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final OnnxMl.TensorShapeProto.Dimension.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
mergeUnknownFields
public final OnnxMl.TensorShapeProto.Dimension.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<OnnxMl.TensorShapeProto.Dimension.Builder>
-
-