Class Struct.TypeSpecProto.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, Struct.TypeSpecProtoOrBuilder
    Enclosing class:
    Struct.TypeSpecProto

    public static final class Struct.TypeSpecProto.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Struct.TypeSpecProto.Builder>
    implements Struct.TypeSpecProtoOrBuilder
     Represents a tf.TypeSpec
     
    Protobuf type org.platanios.tensorflow.proto.TypeSpecProto
    • 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<Struct.TypeSpecProto.Builder>
      • clear

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

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

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

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

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

        public Struct.TypeSpecProto.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<Struct.TypeSpecProto.Builder>
      • clearField

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

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

        public Struct.TypeSpecProto.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<Struct.TypeSpecProto.Builder>
      • addRepeatedField

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

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

        public Struct.TypeSpecProto.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<Struct.TypeSpecProto.Builder>
        Throws:
        java.io.IOException
      • getTypeSpecClassValue

        public int getTypeSpecClassValue()
        .org.platanios.tensorflow.proto.TypeSpecProto.TypeSpecClass type_spec_class = 1;
        Specified by:
        getTypeSpecClassValue in interface Struct.TypeSpecProtoOrBuilder
        Returns:
        The enum numeric value on the wire for typeSpecClass.
      • setTypeSpecClassValue

        public Struct.TypeSpecProto.Builder setTypeSpecClassValue​(int value)
        .org.platanios.tensorflow.proto.TypeSpecProto.TypeSpecClass type_spec_class = 1;
        Parameters:
        value - The enum numeric value on the wire for typeSpecClass to set.
        Returns:
        This builder for chaining.
      • clearTypeSpecClass

        public Struct.TypeSpecProto.Builder clearTypeSpecClass()
        .org.platanios.tensorflow.proto.TypeSpecProto.TypeSpecClass type_spec_class = 1;
        Returns:
        This builder for chaining.
      • hasTypeState

        public boolean hasTypeState()
         The value returned by TypeSpec._serialize().
         
        .org.platanios.tensorflow.proto.StructuredValue type_state = 2;
        Specified by:
        hasTypeState in interface Struct.TypeSpecProtoOrBuilder
        Returns:
        Whether the typeState field is set.
      • clearTypeState

        public Struct.TypeSpecProto.Builder clearTypeState()
         The value returned by TypeSpec._serialize().
         
        .org.platanios.tensorflow.proto.StructuredValue type_state = 2;
      • getTypeStateBuilder

        public Struct.StructuredValue.Builder getTypeStateBuilder()
         The value returned by TypeSpec._serialize().
         
        .org.platanios.tensorflow.proto.StructuredValue type_state = 2;
      • getTypeSpecClassName

        public java.lang.String getTypeSpecClassName()
         This is currently redundant with the type_spec_class enum, and is only
         used for error reporting.  In particular, if you use an older binary to
         load a newer model, and the model uses a TypeSpecClass that the older
         binary doesn't support, then this lets us display a useful error message.
         
        string type_spec_class_name = 3;
        Specified by:
        getTypeSpecClassName in interface Struct.TypeSpecProtoOrBuilder
        Returns:
        The typeSpecClassName.
      • getTypeSpecClassNameBytes

        public com.google.protobuf.ByteString getTypeSpecClassNameBytes()
         This is currently redundant with the type_spec_class enum, and is only
         used for error reporting.  In particular, if you use an older binary to
         load a newer model, and the model uses a TypeSpecClass that the older
         binary doesn't support, then this lets us display a useful error message.
         
        string type_spec_class_name = 3;
        Specified by:
        getTypeSpecClassNameBytes in interface Struct.TypeSpecProtoOrBuilder
        Returns:
        The bytes for typeSpecClassName.
      • setTypeSpecClassName

        public Struct.TypeSpecProto.Builder setTypeSpecClassName​(java.lang.String value)
         This is currently redundant with the type_spec_class enum, and is only
         used for error reporting.  In particular, if you use an older binary to
         load a newer model, and the model uses a TypeSpecClass that the older
         binary doesn't support, then this lets us display a useful error message.
         
        string type_spec_class_name = 3;
        Parameters:
        value - The typeSpecClassName to set.
        Returns:
        This builder for chaining.
      • clearTypeSpecClassName

        public Struct.TypeSpecProto.Builder clearTypeSpecClassName()
         This is currently redundant with the type_spec_class enum, and is only
         used for error reporting.  In particular, if you use an older binary to
         load a newer model, and the model uses a TypeSpecClass that the older
         binary doesn't support, then this lets us display a useful error message.
         
        string type_spec_class_name = 3;
        Returns:
        This builder for chaining.
      • setTypeSpecClassNameBytes

        public Struct.TypeSpecProto.Builder setTypeSpecClassNameBytes​(com.google.protobuf.ByteString value)
         This is currently redundant with the type_spec_class enum, and is only
         used for error reporting.  In particular, if you use an older binary to
         load a newer model, and the model uses a TypeSpecClass that the older
         binary doesn't support, then this lets us display a useful error message.
         
        string type_spec_class_name = 3;
        Parameters:
        value - The bytes for typeSpecClassName to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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