Class FixedShape.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, FixedShapeOrBuilder
    Enclosing class:
    FixedShape

    public static final class FixedShape.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<FixedShape.Builder>
    implements FixedShapeOrBuilder
     Specifies a fixed shape for the feature's values. The immediate implication
     is that each feature has a fixed number of values. Moreover, these values
     can be parsed in a multi-dimensional tensor using the specified axis sizes.
     The FixedShape defines a lexicographical ordering of the data. For instance,
     if there is a FixedShape {
       dim {size:3} dim {size:2}
     }
     then tensor[0][0]=field[0]
     then tensor[0][1]=field[1]
     then tensor[1][0]=field[2]
     then tensor[1][1]=field[3]
     then tensor[2][0]=field[4]
     then tensor[2][1]=field[5]
     The FixedShape message is identical with the TensorFlow TensorShape proto
     message.
     
    Protobuf type tensorflow.metadata.v0.FixedShape
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<FixedShape.Builder>
      • clear

        public FixedShape.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<FixedShape.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<FixedShape.Builder>
      • getDefaultInstanceForType

        public FixedShape getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public FixedShape build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public FixedShape buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public FixedShape.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<FixedShape.Builder>
      • setField

        public FixedShape.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<FixedShape.Builder>
      • clearField

        public FixedShape.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<FixedShape.Builder>
      • clearOneof

        public FixedShape.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FixedShape.Builder>
      • setRepeatedField

        public FixedShape.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   int index,
                                                   Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FixedShape.Builder>
      • addRepeatedField

        public FixedShape.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FixedShape.Builder>
      • mergeFrom

        public FixedShape.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FixedShape.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<FixedShape.Builder>
      • mergeFrom

        public FixedShape.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FixedShape.Builder>
        Throws:
        IOException
      • getDimList

        public List<FixedShape.Dim> getDimList()
         The dimensions that define the shape. The total number of values in each
         example is the product of sizes of each dimension.
         
        repeated .tensorflow.metadata.v0.FixedShape.Dim dim = 2;
        Specified by:
        getDimList in interface FixedShapeOrBuilder
      • getDimCount

        public int getDimCount()
         The dimensions that define the shape. The total number of values in each
         example is the product of sizes of each dimension.
         
        repeated .tensorflow.metadata.v0.FixedShape.Dim dim = 2;
        Specified by:
        getDimCount in interface FixedShapeOrBuilder
      • getDim

        public FixedShape.Dim getDim​(int index)
         The dimensions that define the shape. The total number of values in each
         example is the product of sizes of each dimension.
         
        repeated .tensorflow.metadata.v0.FixedShape.Dim dim = 2;
        Specified by:
        getDim in interface FixedShapeOrBuilder
      • setDim

        public FixedShape.Builder setDim​(int index,
                                         FixedShape.Dim value)
         The dimensions that define the shape. The total number of values in each
         example is the product of sizes of each dimension.
         
        repeated .tensorflow.metadata.v0.FixedShape.Dim dim = 2;
      • setDim

        public FixedShape.Builder setDim​(int index,
                                         FixedShape.Dim.Builder builderForValue)
         The dimensions that define the shape. The total number of values in each
         example is the product of sizes of each dimension.
         
        repeated .tensorflow.metadata.v0.FixedShape.Dim dim = 2;
      • addDim

        public FixedShape.Builder addDim​(FixedShape.Dim value)
         The dimensions that define the shape. The total number of values in each
         example is the product of sizes of each dimension.
         
        repeated .tensorflow.metadata.v0.FixedShape.Dim dim = 2;
      • addDim

        public FixedShape.Builder addDim​(int index,
                                         FixedShape.Dim value)
         The dimensions that define the shape. The total number of values in each
         example is the product of sizes of each dimension.
         
        repeated .tensorflow.metadata.v0.FixedShape.Dim dim = 2;
      • addDim

        public FixedShape.Builder addDim​(FixedShape.Dim.Builder builderForValue)
         The dimensions that define the shape. The total number of values in each
         example is the product of sizes of each dimension.
         
        repeated .tensorflow.metadata.v0.FixedShape.Dim dim = 2;
      • addDim

        public FixedShape.Builder addDim​(int index,
                                         FixedShape.Dim.Builder builderForValue)
         The dimensions that define the shape. The total number of values in each
         example is the product of sizes of each dimension.
         
        repeated .tensorflow.metadata.v0.FixedShape.Dim dim = 2;
      • addAllDim

        public FixedShape.Builder addAllDim​(Iterable<? extends FixedShape.Dim> values)
         The dimensions that define the shape. The total number of values in each
         example is the product of sizes of each dimension.
         
        repeated .tensorflow.metadata.v0.FixedShape.Dim dim = 2;
      • clearDim

        public FixedShape.Builder clearDim()
         The dimensions that define the shape. The total number of values in each
         example is the product of sizes of each dimension.
         
        repeated .tensorflow.metadata.v0.FixedShape.Dim dim = 2;
      • removeDim

        public FixedShape.Builder removeDim​(int index)
         The dimensions that define the shape. The total number of values in each
         example is the product of sizes of each dimension.
         
        repeated .tensorflow.metadata.v0.FixedShape.Dim dim = 2;
      • getDimBuilder

        public FixedShape.Dim.Builder getDimBuilder​(int index)
         The dimensions that define the shape. The total number of values in each
         example is the product of sizes of each dimension.
         
        repeated .tensorflow.metadata.v0.FixedShape.Dim dim = 2;
      • getDimOrBuilder

        public FixedShape.DimOrBuilder getDimOrBuilder​(int index)
         The dimensions that define the shape. The total number of values in each
         example is the product of sizes of each dimension.
         
        repeated .tensorflow.metadata.v0.FixedShape.Dim dim = 2;
        Specified by:
        getDimOrBuilder in interface FixedShapeOrBuilder
      • getDimOrBuilderList

        public List<? extends FixedShape.DimOrBuilder> getDimOrBuilderList()
         The dimensions that define the shape. The total number of values in each
         example is the product of sizes of each dimension.
         
        repeated .tensorflow.metadata.v0.FixedShape.Dim dim = 2;
        Specified by:
        getDimOrBuilderList in interface FixedShapeOrBuilder
      • addDimBuilder

        public FixedShape.Dim.Builder addDimBuilder()
         The dimensions that define the shape. The total number of values in each
         example is the product of sizes of each dimension.
         
        repeated .tensorflow.metadata.v0.FixedShape.Dim dim = 2;
      • addDimBuilder

        public FixedShape.Dim.Builder addDimBuilder​(int index)
         The dimensions that define the shape. The total number of values in each
         example is the product of sizes of each dimension.
         
        repeated .tensorflow.metadata.v0.FixedShape.Dim dim = 2;
      • getDimBuilderList

        public List<FixedShape.Dim.Builder> getDimBuilderList()
         The dimensions that define the shape. The total number of values in each
         example is the product of sizes of each dimension.
         
        repeated .tensorflow.metadata.v0.FixedShape.Dim dim = 2;
      • setUnknownFields

        public final FixedShape.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FixedShape.Builder>
      • mergeUnknownFields

        public final FixedShape.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FixedShape.Builder>