Class SaveSliceInfoDef.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable, SaveSliceInfoDefOrBuilder
    Enclosing class:
    SaveSliceInfoDef

    public static final class SaveSliceInfoDef.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SaveSliceInfoDef.Builder>
    implements SaveSliceInfoDefOrBuilder
    Protobuf type org.platanios.tensorflow.proto.SaveSliceInfoDef
    • 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<SaveSliceInfoDef.Builder>
      • clear

        public SaveSliceInfoDef.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<SaveSliceInfoDef.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<SaveSliceInfoDef.Builder>
      • getDefaultInstanceForType

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

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

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

        public SaveSliceInfoDef.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<SaveSliceInfoDef.Builder>
      • setField

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

        public SaveSliceInfoDef.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<SaveSliceInfoDef.Builder>
      • clearOneof

        public SaveSliceInfoDef.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<SaveSliceInfoDef.Builder>
      • setRepeatedField

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

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

        public SaveSliceInfoDef.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<SaveSliceInfoDef.Builder>
      • isInitialized

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

        public SaveSliceInfoDef.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws java.io.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<SaveSliceInfoDef.Builder>
        Throws:
        java.io.IOException
      • getFullName

        public java.lang.String getFullName()
         Name of the full variable of which this is a slice.
         
        string full_name = 1;
        Specified by:
        getFullName in interface SaveSliceInfoDefOrBuilder
        Returns:
        The fullName.
      • getFullNameBytes

        public com.google.protobuf.ByteString getFullNameBytes()
         Name of the full variable of which this is a slice.
         
        string full_name = 1;
        Specified by:
        getFullNameBytes in interface SaveSliceInfoDefOrBuilder
        Returns:
        The bytes for fullName.
      • setFullName

        public SaveSliceInfoDef.Builder setFullName​(java.lang.String value)
         Name of the full variable of which this is a slice.
         
        string full_name = 1;
        Parameters:
        value - The fullName to set.
        Returns:
        This builder for chaining.
      • clearFullName

        public SaveSliceInfoDef.Builder clearFullName()
         Name of the full variable of which this is a slice.
         
        string full_name = 1;
        Returns:
        This builder for chaining.
      • setFullNameBytes

        public SaveSliceInfoDef.Builder setFullNameBytes​(com.google.protobuf.ByteString value)
         Name of the full variable of which this is a slice.
         
        string full_name = 1;
        Parameters:
        value - The bytes for fullName to set.
        Returns:
        This builder for chaining.
      • getFullShapeList

        public java.util.List<java.lang.Long> getFullShapeList()
         Shape of the full variable.
         
        repeated int64 full_shape = 2;
        Specified by:
        getFullShapeList in interface SaveSliceInfoDefOrBuilder
        Returns:
        A list containing the fullShape.
      • getFullShapeCount

        public int getFullShapeCount()
         Shape of the full variable.
         
        repeated int64 full_shape = 2;
        Specified by:
        getFullShapeCount in interface SaveSliceInfoDefOrBuilder
        Returns:
        The count of fullShape.
      • getFullShape

        public long getFullShape​(int index)
         Shape of the full variable.
         
        repeated int64 full_shape = 2;
        Specified by:
        getFullShape in interface SaveSliceInfoDefOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The fullShape at the given index.
      • setFullShape

        public SaveSliceInfoDef.Builder setFullShape​(int index,
                                                     long value)
         Shape of the full variable.
         
        repeated int64 full_shape = 2;
        Parameters:
        index - The index to set the value at.
        value - The fullShape to set.
        Returns:
        This builder for chaining.
      • addFullShape

        public SaveSliceInfoDef.Builder addFullShape​(long value)
         Shape of the full variable.
         
        repeated int64 full_shape = 2;
        Parameters:
        value - The fullShape to add.
        Returns:
        This builder for chaining.
      • addAllFullShape

        public SaveSliceInfoDef.Builder addAllFullShape​(java.lang.Iterable<? extends java.lang.Long> values)
         Shape of the full variable.
         
        repeated int64 full_shape = 2;
        Parameters:
        values - The fullShape to add.
        Returns:
        This builder for chaining.
      • clearFullShape

        public SaveSliceInfoDef.Builder clearFullShape()
         Shape of the full variable.
         
        repeated int64 full_shape = 2;
        Returns:
        This builder for chaining.
      • getVarOffsetList

        public java.util.List<java.lang.Long> getVarOffsetList()
         Offset of this variable into the full variable.
         
        repeated int64 var_offset = 3;
        Specified by:
        getVarOffsetList in interface SaveSliceInfoDefOrBuilder
        Returns:
        A list containing the varOffset.
      • getVarOffsetCount

        public int getVarOffsetCount()
         Offset of this variable into the full variable.
         
        repeated int64 var_offset = 3;
        Specified by:
        getVarOffsetCount in interface SaveSliceInfoDefOrBuilder
        Returns:
        The count of varOffset.
      • getVarOffset

        public long getVarOffset​(int index)
         Offset of this variable into the full variable.
         
        repeated int64 var_offset = 3;
        Specified by:
        getVarOffset in interface SaveSliceInfoDefOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The varOffset at the given index.
      • setVarOffset

        public SaveSliceInfoDef.Builder setVarOffset​(int index,
                                                     long value)
         Offset of this variable into the full variable.
         
        repeated int64 var_offset = 3;
        Parameters:
        index - The index to set the value at.
        value - The varOffset to set.
        Returns:
        This builder for chaining.
      • addVarOffset

        public SaveSliceInfoDef.Builder addVarOffset​(long value)
         Offset of this variable into the full variable.
         
        repeated int64 var_offset = 3;
        Parameters:
        value - The varOffset to add.
        Returns:
        This builder for chaining.
      • addAllVarOffset

        public SaveSliceInfoDef.Builder addAllVarOffset​(java.lang.Iterable<? extends java.lang.Long> values)
         Offset of this variable into the full variable.
         
        repeated int64 var_offset = 3;
        Parameters:
        values - The varOffset to add.
        Returns:
        This builder for chaining.
      • clearVarOffset

        public SaveSliceInfoDef.Builder clearVarOffset()
         Offset of this variable into the full variable.
         
        repeated int64 var_offset = 3;
        Returns:
        This builder for chaining.
      • getVarShapeList

        public java.util.List<java.lang.Long> getVarShapeList()
         Shape of this variable.
         
        repeated int64 var_shape = 4;
        Specified by:
        getVarShapeList in interface SaveSliceInfoDefOrBuilder
        Returns:
        A list containing the varShape.
      • getVarShapeCount

        public int getVarShapeCount()
         Shape of this variable.
         
        repeated int64 var_shape = 4;
        Specified by:
        getVarShapeCount in interface SaveSliceInfoDefOrBuilder
        Returns:
        The count of varShape.
      • getVarShape

        public long getVarShape​(int index)
         Shape of this variable.
         
        repeated int64 var_shape = 4;
        Specified by:
        getVarShape in interface SaveSliceInfoDefOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The varShape at the given index.
      • setVarShape

        public SaveSliceInfoDef.Builder setVarShape​(int index,
                                                    long value)
         Shape of this variable.
         
        repeated int64 var_shape = 4;
        Parameters:
        index - The index to set the value at.
        value - The varShape to set.
        Returns:
        This builder for chaining.
      • addVarShape

        public SaveSliceInfoDef.Builder addVarShape​(long value)
         Shape of this variable.
         
        repeated int64 var_shape = 4;
        Parameters:
        value - The varShape to add.
        Returns:
        This builder for chaining.
      • addAllVarShape

        public SaveSliceInfoDef.Builder addAllVarShape​(java.lang.Iterable<? extends java.lang.Long> values)
         Shape of this variable.
         
        repeated int64 var_shape = 4;
        Parameters:
        values - The varShape to add.
        Returns:
        This builder for chaining.
      • clearVarShape

        public SaveSliceInfoDef.Builder clearVarShape()
         Shape of this variable.
         
        repeated int64 var_shape = 4;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final SaveSliceInfoDef.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<SaveSliceInfoDef.Builder>
      • mergeUnknownFields

        public final SaveSliceInfoDef.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<SaveSliceInfoDef.Builder>