Class TensorRepresentation.SparseTensor.Builder

    • 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<TensorRepresentation.SparseTensor.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<TensorRepresentation.SparseTensor.Builder>
      • getDefaultInstanceForType

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

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

        public TensorRepresentation.SparseTensor buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public boolean hasDenseShape()
         The dense shape of the resulting SparseTensor (does not include the batch
         dimension).
         
        optional .tensorflow.metadata.v0.FixedShape dense_shape = 1;
        Specified by:
        hasDenseShape in interface TensorRepresentation.SparseTensorOrBuilder
        Returns:
        Whether the denseShape field is set.
      • clearDenseShape

        public TensorRepresentation.SparseTensor.Builder clearDenseShape()
         The dense shape of the resulting SparseTensor (does not include the batch
         dimension).
         
        optional .tensorflow.metadata.v0.FixedShape dense_shape = 1;
      • getDenseShapeBuilder

        public FixedShape.Builder getDenseShapeBuilder()
         The dense shape of the resulting SparseTensor (does not include the batch
         dimension).
         
        optional .tensorflow.metadata.v0.FixedShape dense_shape = 1;
      • getIndexColumnNamesList

        public com.google.protobuf.ProtocolStringList getIndexColumnNamesList()
         The columns constitute the coordinates of the values.
         indices_column[i][j] contains the coordinate of the i-th dimension of the
         j-th value.
         
        repeated string index_column_names = 2;
        Specified by:
        getIndexColumnNamesList in interface TensorRepresentation.SparseTensorOrBuilder
        Returns:
        A list containing the indexColumnNames.
      • getIndexColumnNamesCount

        public int getIndexColumnNamesCount()
         The columns constitute the coordinates of the values.
         indices_column[i][j] contains the coordinate of the i-th dimension of the
         j-th value.
         
        repeated string index_column_names = 2;
        Specified by:
        getIndexColumnNamesCount in interface TensorRepresentation.SparseTensorOrBuilder
        Returns:
        The count of indexColumnNames.
      • getIndexColumnNames

        public String getIndexColumnNames​(int index)
         The columns constitute the coordinates of the values.
         indices_column[i][j] contains the coordinate of the i-th dimension of the
         j-th value.
         
        repeated string index_column_names = 2;
        Specified by:
        getIndexColumnNames in interface TensorRepresentation.SparseTensorOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The indexColumnNames at the given index.
      • getIndexColumnNamesBytes

        public com.google.protobuf.ByteString getIndexColumnNamesBytes​(int index)
         The columns constitute the coordinates of the values.
         indices_column[i][j] contains the coordinate of the i-th dimension of the
         j-th value.
         
        repeated string index_column_names = 2;
        Specified by:
        getIndexColumnNamesBytes in interface TensorRepresentation.SparseTensorOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the indexColumnNames at the given index.
      • setIndexColumnNames

        public TensorRepresentation.SparseTensor.Builder setIndexColumnNames​(int index,
                                                                             String value)
         The columns constitute the coordinates of the values.
         indices_column[i][j] contains the coordinate of the i-th dimension of the
         j-th value.
         
        repeated string index_column_names = 2;
        Parameters:
        index - The index to set the value at.
        value - The indexColumnNames to set.
        Returns:
        This builder for chaining.
      • addIndexColumnNames

        public TensorRepresentation.SparseTensor.Builder addIndexColumnNames​(String value)
         The columns constitute the coordinates of the values.
         indices_column[i][j] contains the coordinate of the i-th dimension of the
         j-th value.
         
        repeated string index_column_names = 2;
        Parameters:
        value - The indexColumnNames to add.
        Returns:
        This builder for chaining.
      • addAllIndexColumnNames

        public TensorRepresentation.SparseTensor.Builder addAllIndexColumnNames​(Iterable<String> values)
         The columns constitute the coordinates of the values.
         indices_column[i][j] contains the coordinate of the i-th dimension of the
         j-th value.
         
        repeated string index_column_names = 2;
        Parameters:
        values - The indexColumnNames to add.
        Returns:
        This builder for chaining.
      • clearIndexColumnNames

        public TensorRepresentation.SparseTensor.Builder clearIndexColumnNames()
         The columns constitute the coordinates of the values.
         indices_column[i][j] contains the coordinate of the i-th dimension of the
         j-th value.
         
        repeated string index_column_names = 2;
        Returns:
        This builder for chaining.
      • addIndexColumnNamesBytes

        public TensorRepresentation.SparseTensor.Builder addIndexColumnNamesBytes​(com.google.protobuf.ByteString value)
         The columns constitute the coordinates of the values.
         indices_column[i][j] contains the coordinate of the i-th dimension of the
         j-th value.
         
        repeated string index_column_names = 2;
        Parameters:
        value - The bytes of the indexColumnNames to add.
        Returns:
        This builder for chaining.
      • setValueColumnName

        public TensorRepresentation.SparseTensor.Builder setValueColumnName​(String value)
         The column that contains the values.
         
        optional string value_column_name = 3;
        Parameters:
        value - The valueColumnName to set.
        Returns:
        This builder for chaining.
      • clearValueColumnName

        public TensorRepresentation.SparseTensor.Builder clearValueColumnName()
         The column that contains the values.
         
        optional string value_column_name = 3;
        Returns:
        This builder for chaining.
      • setValueColumnNameBytes

        public TensorRepresentation.SparseTensor.Builder setValueColumnNameBytes​(com.google.protobuf.ByteString value)
         The column that contains the values.
         
        optional string value_column_name = 3;
        Parameters:
        value - The bytes for valueColumnName to set.
        Returns:
        This builder for chaining.