Class OpDef.ArgDef.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, OpDef.ArgDefOrBuilder
    Enclosing class:
    OpDef.ArgDef

    public static final class OpDef.ArgDef.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<OpDef.ArgDef.Builder>
    implements OpDef.ArgDefOrBuilder
     For describing inputs and outputs.
     
    Protobuf type org.platanios.tensorflow.proto.OpDef.ArgDef
    • 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<OpDef.ArgDef.Builder>
      • clear

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

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

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

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

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

        public OpDef.ArgDef.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<OpDef.ArgDef.Builder>
      • clearField

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

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

        public OpDef.ArgDef.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<OpDef.ArgDef.Builder>
      • addRepeatedField

        public OpDef.ArgDef.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<OpDef.ArgDef.Builder>
      • mergeFrom

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

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

        public OpDef.ArgDef.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<OpDef.ArgDef.Builder>
        Throws:
        java.io.IOException
      • getName

        public java.lang.String getName()
         Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
         
        string name = 1;
        Specified by:
        getName in interface OpDef.ArgDefOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
         
        string name = 1;
        Specified by:
        getNameBytes in interface OpDef.ArgDefOrBuilder
        Returns:
        The bytes for name.
      • setName

        public OpDef.ArgDef.Builder setName​(java.lang.String value)
         Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public OpDef.ArgDef.Builder clearName()
         Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public OpDef.ArgDef.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDescription

        public java.lang.String getDescription()
         Human readable description.
         
        string description = 2;
        Specified by:
        getDescription in interface OpDef.ArgDefOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Human readable description.
         
        string description = 2;
        Specified by:
        getDescriptionBytes in interface OpDef.ArgDefOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public OpDef.ArgDef.Builder setDescription​(java.lang.String value)
         Human readable description.
         
        string description = 2;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public OpDef.ArgDef.Builder clearDescription()
         Human readable description.
         
        string description = 2;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public OpDef.ArgDef.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Human readable description.
         
        string description = 2;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • getTypeValue

        public int getTypeValue()
         Describes the type of one or more tensors that are accepted/produced
         by this input/output arg.  The only legal combinations are:
         * For a single tensor: either the "type" field is set or the
           "type_attr" field is set to the name of an attr with type "type".
         * For a sequence of tensors with the same type: the "number_attr"
           field will be set to the name of an attr with type "int", and
           either the "type" or "type_attr" field will be set as for
           single tensors.
         * For a sequence of tensors, the "type_list_attr" field will be set
           to the name of an attr with type "list(type)".
         
        .org.platanios.tensorflow.proto.DataType type = 3;
        Specified by:
        getTypeValue in interface OpDef.ArgDefOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public OpDef.ArgDef.Builder setTypeValue​(int value)
         Describes the type of one or more tensors that are accepted/produced
         by this input/output arg.  The only legal combinations are:
         * For a single tensor: either the "type" field is set or the
           "type_attr" field is set to the name of an attr with type "type".
         * For a sequence of tensors with the same type: the "number_attr"
           field will be set to the name of an attr with type "int", and
           either the "type" or "type_attr" field will be set as for
           single tensors.
         * For a sequence of tensors, the "type_list_attr" field will be set
           to the name of an attr with type "list(type)".
         
        .org.platanios.tensorflow.proto.DataType type = 3;
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • getType

        public DataType getType()
         Describes the type of one or more tensors that are accepted/produced
         by this input/output arg.  The only legal combinations are:
         * For a single tensor: either the "type" field is set or the
           "type_attr" field is set to the name of an attr with type "type".
         * For a sequence of tensors with the same type: the "number_attr"
           field will be set to the name of an attr with type "int", and
           either the "type" or "type_attr" field will be set as for
           single tensors.
         * For a sequence of tensors, the "type_list_attr" field will be set
           to the name of an attr with type "list(type)".
         
        .org.platanios.tensorflow.proto.DataType type = 3;
        Specified by:
        getType in interface OpDef.ArgDefOrBuilder
        Returns:
        The type.
      • setType

        public OpDef.ArgDef.Builder setType​(DataType value)
         Describes the type of one or more tensors that are accepted/produced
         by this input/output arg.  The only legal combinations are:
         * For a single tensor: either the "type" field is set or the
           "type_attr" field is set to the name of an attr with type "type".
         * For a sequence of tensors with the same type: the "number_attr"
           field will be set to the name of an attr with type "int", and
           either the "type" or "type_attr" field will be set as for
           single tensors.
         * For a sequence of tensors, the "type_list_attr" field will be set
           to the name of an attr with type "list(type)".
         
        .org.platanios.tensorflow.proto.DataType type = 3;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public OpDef.ArgDef.Builder clearType()
         Describes the type of one or more tensors that are accepted/produced
         by this input/output arg.  The only legal combinations are:
         * For a single tensor: either the "type" field is set or the
           "type_attr" field is set to the name of an attr with type "type".
         * For a sequence of tensors with the same type: the "number_attr"
           field will be set to the name of an attr with type "int", and
           either the "type" or "type_attr" field will be set as for
           single tensors.
         * For a sequence of tensors, the "type_list_attr" field will be set
           to the name of an attr with type "list(type)".
         
        .org.platanios.tensorflow.proto.DataType type = 3;
        Returns:
        This builder for chaining.
      • getTypeAttr

        public java.lang.String getTypeAttr()
         if specified, attr must have type "type"
         
        string type_attr = 4;
        Specified by:
        getTypeAttr in interface OpDef.ArgDefOrBuilder
        Returns:
        The typeAttr.
      • getTypeAttrBytes

        public com.google.protobuf.ByteString getTypeAttrBytes()
         if specified, attr must have type "type"
         
        string type_attr = 4;
        Specified by:
        getTypeAttrBytes in interface OpDef.ArgDefOrBuilder
        Returns:
        The bytes for typeAttr.
      • setTypeAttr

        public OpDef.ArgDef.Builder setTypeAttr​(java.lang.String value)
         if specified, attr must have type "type"
         
        string type_attr = 4;
        Parameters:
        value - The typeAttr to set.
        Returns:
        This builder for chaining.
      • clearTypeAttr

        public OpDef.ArgDef.Builder clearTypeAttr()
         if specified, attr must have type "type"
         
        string type_attr = 4;
        Returns:
        This builder for chaining.
      • setTypeAttrBytes

        public OpDef.ArgDef.Builder setTypeAttrBytes​(com.google.protobuf.ByteString value)
         if specified, attr must have type "type"
         
        string type_attr = 4;
        Parameters:
        value - The bytes for typeAttr to set.
        Returns:
        This builder for chaining.
      • getNumberAttr

        public java.lang.String getNumberAttr()
         if specified, attr must have type "int"
         
        string number_attr = 5;
        Specified by:
        getNumberAttr in interface OpDef.ArgDefOrBuilder
        Returns:
        The numberAttr.
      • getNumberAttrBytes

        public com.google.protobuf.ByteString getNumberAttrBytes()
         if specified, attr must have type "int"
         
        string number_attr = 5;
        Specified by:
        getNumberAttrBytes in interface OpDef.ArgDefOrBuilder
        Returns:
        The bytes for numberAttr.
      • setNumberAttr

        public OpDef.ArgDef.Builder setNumberAttr​(java.lang.String value)
         if specified, attr must have type "int"
         
        string number_attr = 5;
        Parameters:
        value - The numberAttr to set.
        Returns:
        This builder for chaining.
      • clearNumberAttr

        public OpDef.ArgDef.Builder clearNumberAttr()
         if specified, attr must have type "int"
         
        string number_attr = 5;
        Returns:
        This builder for chaining.
      • setNumberAttrBytes

        public OpDef.ArgDef.Builder setNumberAttrBytes​(com.google.protobuf.ByteString value)
         if specified, attr must have type "int"
         
        string number_attr = 5;
        Parameters:
        value - The bytes for numberAttr to set.
        Returns:
        This builder for chaining.
      • getTypeListAttr

        public java.lang.String getTypeListAttr()
         If specified, attr must have type "list(type)", and none of
         type, type_attr, and number_attr may be specified.
         
        string type_list_attr = 6;
        Specified by:
        getTypeListAttr in interface OpDef.ArgDefOrBuilder
        Returns:
        The typeListAttr.
      • getTypeListAttrBytes

        public com.google.protobuf.ByteString getTypeListAttrBytes()
         If specified, attr must have type "list(type)", and none of
         type, type_attr, and number_attr may be specified.
         
        string type_list_attr = 6;
        Specified by:
        getTypeListAttrBytes in interface OpDef.ArgDefOrBuilder
        Returns:
        The bytes for typeListAttr.
      • setTypeListAttr

        public OpDef.ArgDef.Builder setTypeListAttr​(java.lang.String value)
         If specified, attr must have type "list(type)", and none of
         type, type_attr, and number_attr may be specified.
         
        string type_list_attr = 6;
        Parameters:
        value - The typeListAttr to set.
        Returns:
        This builder for chaining.
      • clearTypeListAttr

        public OpDef.ArgDef.Builder clearTypeListAttr()
         If specified, attr must have type "list(type)", and none of
         type, type_attr, and number_attr may be specified.
         
        string type_list_attr = 6;
        Returns:
        This builder for chaining.
      • setTypeListAttrBytes

        public OpDef.ArgDef.Builder setTypeListAttrBytes​(com.google.protobuf.ByteString value)
         If specified, attr must have type "list(type)", and none of
         type, type_attr, and number_attr may be specified.
         
        string type_list_attr = 6;
        Parameters:
        value - The bytes for typeListAttr to set.
        Returns:
        This builder for chaining.
      • getIsRef

        public boolean getIsRef()
         For inputs: if true, the inputs are required to be refs.
           By default, inputs can be either refs or non-refs.
         For outputs: if true, outputs are refs, otherwise they are not.
         
        bool is_ref = 16;
        Specified by:
        getIsRef in interface OpDef.ArgDefOrBuilder
        Returns:
        The isRef.
      • setIsRef

        public OpDef.ArgDef.Builder setIsRef​(boolean value)
         For inputs: if true, the inputs are required to be refs.
           By default, inputs can be either refs or non-refs.
         For outputs: if true, outputs are refs, otherwise they are not.
         
        bool is_ref = 16;
        Parameters:
        value - The isRef to set.
        Returns:
        This builder for chaining.
      • clearIsRef

        public OpDef.ArgDef.Builder clearIsRef()
         For inputs: if true, the inputs are required to be refs.
           By default, inputs can be either refs or non-refs.
         For outputs: if true, outputs are refs, otherwise they are not.
         
        bool is_ref = 16;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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