Class IteratorStateMetadata.Builder

  • All Implemented Interfaces:
    Cloneable, org.nd4j.shade.protobuf.Message.Builder, org.nd4j.shade.protobuf.MessageLite.Builder, org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder, IteratorStateMetadataOrBuilder
    Enclosing class:
    IteratorStateMetadata

    public static final class IteratorStateMetadata.Builder
    extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<IteratorStateMetadata.Builder>
    implements IteratorStateMetadataOrBuilder
     Protocol buffer representing the metadata for an iterator's state stored
     as a Variant tensor.
     
    Protobuf type tensorflow.IteratorStateMetadata
    • 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 class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<IteratorStateMetadata.Builder>
      • clear

        public IteratorStateMetadata.Builder clear()
        Specified by:
        clear in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clear in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clear in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<IteratorStateMetadata.Builder>
      • getDescriptorForType

        public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<IteratorStateMetadata.Builder>
      • getDefaultInstanceForType

        public IteratorStateMetadata getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
      • build

        public IteratorStateMetadata build()
        Specified by:
        build in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        build in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • buildPartial

        public IteratorStateMetadata buildPartial()
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • clone

        public IteratorStateMetadata.Builder clone()
        Specified by:
        clone in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clone in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clone in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<IteratorStateMetadata.Builder>
      • setField

        public IteratorStateMetadata.Builder setField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                      Object value)
        Specified by:
        setField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<IteratorStateMetadata.Builder>
      • clearField

        public IteratorStateMetadata.Builder clearField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<IteratorStateMetadata.Builder>
      • clearOneof

        public IteratorStateMetadata.Builder clearOneof​(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearOneof in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<IteratorStateMetadata.Builder>
      • setRepeatedField

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

        public IteratorStateMetadata.Builder addRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<IteratorStateMetadata.Builder>
      • mergeFrom

        public IteratorStateMetadata.Builder mergeFrom​(org.nd4j.shade.protobuf.Message other)
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<IteratorStateMetadata.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<IteratorStateMetadata.Builder>
      • mergeFrom

        public IteratorStateMetadata.Builder mergeFrom​(org.nd4j.shade.protobuf.CodedInputStream input,
                                                       org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws IOException
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<IteratorStateMetadata.Builder>
        Throws:
        IOException
      • getVersionBytes

        public org.nd4j.shade.protobuf.ByteString getVersionBytes()
         A user-specified version string.
         
        string version = 1;
        Specified by:
        getVersionBytes in interface IteratorStateMetadataOrBuilder
        Returns:
        The bytes for version.
      • setVersion

        public IteratorStateMetadata.Builder setVersion​(String value)
         A user-specified version string.
         
        string version = 1;
        Parameters:
        value - The version to set.
        Returns:
        This builder for chaining.
      • clearVersion

        public IteratorStateMetadata.Builder clearVersion()
         A user-specified version string.
         
        string version = 1;
        Returns:
        This builder for chaining.
      • setVersionBytes

        public IteratorStateMetadata.Builder setVersionBytes​(org.nd4j.shade.protobuf.ByteString value)
         A user-specified version string.
         
        string version = 1;
        Parameters:
        value - The bytes for version to set.
        Returns:
        This builder for chaining.
      • getKeysList

        public org.nd4j.shade.protobuf.ProtocolStringList getKeysList()
         Keys for tensors in the VariantTensorDataProto.
         
        repeated string keys = 2;
        Specified by:
        getKeysList in interface IteratorStateMetadataOrBuilder
        Returns:
        A list containing the keys.
      • getKeysCount

        public int getKeysCount()
         Keys for tensors in the VariantTensorDataProto.
         
        repeated string keys = 2;
        Specified by:
        getKeysCount in interface IteratorStateMetadataOrBuilder
        Returns:
        The count of keys.
      • getKeys

        public String getKeys​(int index)
         Keys for tensors in the VariantTensorDataProto.
         
        repeated string keys = 2;
        Specified by:
        getKeys in interface IteratorStateMetadataOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The keys at the given index.
      • getKeysBytes

        public org.nd4j.shade.protobuf.ByteString getKeysBytes​(int index)
         Keys for tensors in the VariantTensorDataProto.
         
        repeated string keys = 2;
        Specified by:
        getKeysBytes in interface IteratorStateMetadataOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the keys at the given index.
      • setKeys

        public IteratorStateMetadata.Builder setKeys​(int index,
                                                     String value)
         Keys for tensors in the VariantTensorDataProto.
         
        repeated string keys = 2;
        Parameters:
        index - The index to set the value at.
        value - The keys to set.
        Returns:
        This builder for chaining.
      • addKeys

        public IteratorStateMetadata.Builder addKeys​(String value)
         Keys for tensors in the VariantTensorDataProto.
         
        repeated string keys = 2;
        Parameters:
        value - The keys to add.
        Returns:
        This builder for chaining.
      • addAllKeys

        public IteratorStateMetadata.Builder addAllKeys​(Iterable<String> values)
         Keys for tensors in the VariantTensorDataProto.
         
        repeated string keys = 2;
        Parameters:
        values - The keys to add.
        Returns:
        This builder for chaining.
      • clearKeys

        public IteratorStateMetadata.Builder clearKeys()
         Keys for tensors in the VariantTensorDataProto.
         
        repeated string keys = 2;
        Returns:
        This builder for chaining.
      • addKeysBytes

        public IteratorStateMetadata.Builder addKeysBytes​(org.nd4j.shade.protobuf.ByteString value)
         Keys for tensors in the VariantTensorDataProto.
         
        repeated string keys = 2;
        Parameters:
        value - The bytes of the keys to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final IteratorStateMetadata.Builder setUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<IteratorStateMetadata.Builder>
      • mergeUnknownFields

        public final IteratorStateMetadata.Builder mergeUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<IteratorStateMetadata.Builder>