Package flyteidl.core

Class Types.LiteralType.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Types.LiteralTypeOrBuilder, Cloneable
    Enclosing class:
    Types.LiteralType

    public static final class Types.LiteralType.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Types.LiteralType.Builder>
    implements Types.LiteralTypeOrBuilder
     Defines a strong type to allow type checking between interfaces.
     
    Protobuf type flyteidl.core.LiteralType
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
    • 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<Types.LiteralType.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

        public boolean hasSimple()
         A simple type that can be compared one-to-one with another.
         
        .flyteidl.core.SimpleType simple = 1;
        Specified by:
        hasSimple in interface Types.LiteralTypeOrBuilder
        Returns:
        Whether the simple field is set.
      • getSimpleValue

        public int getSimpleValue()
         A simple type that can be compared one-to-one with another.
         
        .flyteidl.core.SimpleType simple = 1;
        Specified by:
        getSimpleValue in interface Types.LiteralTypeOrBuilder
        Returns:
        The enum numeric value on the wire for simple.
      • setSimpleValue

        public Types.LiteralType.Builder setSimpleValue​(int value)
         A simple type that can be compared one-to-one with another.
         
        .flyteidl.core.SimpleType simple = 1;
        Parameters:
        value - The enum numeric value on the wire for simple to set.
        Returns:
        This builder for chaining.
      • setSimple

        public Types.LiteralType.Builder setSimple​(Types.SimpleType value)
         A simple type that can be compared one-to-one with another.
         
        .flyteidl.core.SimpleType simple = 1;
        Parameters:
        value - The simple to set.
        Returns:
        This builder for chaining.
      • clearSimple

        public Types.LiteralType.Builder clearSimple()
         A simple type that can be compared one-to-one with another.
         
        .flyteidl.core.SimpleType simple = 1;
        Returns:
        This builder for chaining.
      • hasSchema

        public boolean hasSchema()
         A complex type that requires matching of inner fields.
         
        .flyteidl.core.SchemaType schema = 2;
        Specified by:
        hasSchema in interface Types.LiteralTypeOrBuilder
        Returns:
        Whether the schema field is set.
      • clearSchema

        public Types.LiteralType.Builder clearSchema()
         A complex type that requires matching of inner fields.
         
        .flyteidl.core.SchemaType schema = 2;
      • getSchemaBuilder

        public Types.SchemaType.Builder getSchemaBuilder()
         A complex type that requires matching of inner fields.
         
        .flyteidl.core.SchemaType schema = 2;
      • hasCollectionType

        public boolean hasCollectionType()
         Defines the type of the value of a collection. Only homogeneous collections are allowed.
         
        .flyteidl.core.LiteralType collection_type = 3;
        Specified by:
        hasCollectionType in interface Types.LiteralTypeOrBuilder
        Returns:
        Whether the collectionType field is set.
      • getCollectionType

        public Types.LiteralType getCollectionType()
         Defines the type of the value of a collection. Only homogeneous collections are allowed.
         
        .flyteidl.core.LiteralType collection_type = 3;
        Specified by:
        getCollectionType in interface Types.LiteralTypeOrBuilder
        Returns:
        The collectionType.
      • setCollectionType

        public Types.LiteralType.Builder setCollectionType​(Types.LiteralType value)
         Defines the type of the value of a collection. Only homogeneous collections are allowed.
         
        .flyteidl.core.LiteralType collection_type = 3;
      • setCollectionType

        public Types.LiteralType.Builder setCollectionType​(Types.LiteralType.Builder builderForValue)
         Defines the type of the value of a collection. Only homogeneous collections are allowed.
         
        .flyteidl.core.LiteralType collection_type = 3;
      • mergeCollectionType

        public Types.LiteralType.Builder mergeCollectionType​(Types.LiteralType value)
         Defines the type of the value of a collection. Only homogeneous collections are allowed.
         
        .flyteidl.core.LiteralType collection_type = 3;
      • clearCollectionType

        public Types.LiteralType.Builder clearCollectionType()
         Defines the type of the value of a collection. Only homogeneous collections are allowed.
         
        .flyteidl.core.LiteralType collection_type = 3;
      • getCollectionTypeBuilder

        public Types.LiteralType.Builder getCollectionTypeBuilder()
         Defines the type of the value of a collection. Only homogeneous collections are allowed.
         
        .flyteidl.core.LiteralType collection_type = 3;
      • hasMapValueType

        public boolean hasMapValueType()
         Defines the type of the value of a map type. The type of the key is always a string.
         
        .flyteidl.core.LiteralType map_value_type = 4;
        Specified by:
        hasMapValueType in interface Types.LiteralTypeOrBuilder
        Returns:
        Whether the mapValueType field is set.
      • getMapValueType

        public Types.LiteralType getMapValueType()
         Defines the type of the value of a map type. The type of the key is always a string.
         
        .flyteidl.core.LiteralType map_value_type = 4;
        Specified by:
        getMapValueType in interface Types.LiteralTypeOrBuilder
        Returns:
        The mapValueType.
      • setMapValueType

        public Types.LiteralType.Builder setMapValueType​(Types.LiteralType value)
         Defines the type of the value of a map type. The type of the key is always a string.
         
        .flyteidl.core.LiteralType map_value_type = 4;
      • mergeMapValueType

        public Types.LiteralType.Builder mergeMapValueType​(Types.LiteralType value)
         Defines the type of the value of a map type. The type of the key is always a string.
         
        .flyteidl.core.LiteralType map_value_type = 4;
      • clearMapValueType

        public Types.LiteralType.Builder clearMapValueType()
         Defines the type of the value of a map type. The type of the key is always a string.
         
        .flyteidl.core.LiteralType map_value_type = 4;
      • getMapValueTypeBuilder

        public Types.LiteralType.Builder getMapValueTypeBuilder()
         Defines the type of the value of a map type. The type of the key is always a string.
         
        .flyteidl.core.LiteralType map_value_type = 4;
      • hasBlob

        public boolean hasBlob()
         A blob might have specialized implementation details depending on associated metadata.
         
        .flyteidl.core.BlobType blob = 5;
        Specified by:
        hasBlob in interface Types.LiteralTypeOrBuilder
        Returns:
        Whether the blob field is set.
      • getBlob

        public Types.BlobType getBlob()
         A blob might have specialized implementation details depending on associated metadata.
         
        .flyteidl.core.BlobType blob = 5;
        Specified by:
        getBlob in interface Types.LiteralTypeOrBuilder
        Returns:
        The blob.
      • setBlob

        public Types.LiteralType.Builder setBlob​(Types.BlobType value)
         A blob might have specialized implementation details depending on associated metadata.
         
        .flyteidl.core.BlobType blob = 5;
      • mergeBlob

        public Types.LiteralType.Builder mergeBlob​(Types.BlobType value)
         A blob might have specialized implementation details depending on associated metadata.
         
        .flyteidl.core.BlobType blob = 5;
      • clearBlob

        public Types.LiteralType.Builder clearBlob()
         A blob might have specialized implementation details depending on associated metadata.
         
        .flyteidl.core.BlobType blob = 5;
      • getBlobBuilder

        public Types.BlobType.Builder getBlobBuilder()
         A blob might have specialized implementation details depending on associated metadata.
         
        .flyteidl.core.BlobType blob = 5;
      • hasEnumType

        public boolean hasEnumType()
         Defines an enum with pre-defined string values.
         
        .flyteidl.core.EnumType enum_type = 7;
        Specified by:
        hasEnumType in interface Types.LiteralTypeOrBuilder
        Returns:
        Whether the enumType field is set.
      • clearEnumType

        public Types.LiteralType.Builder clearEnumType()
         Defines an enum with pre-defined string values.
         
        .flyteidl.core.EnumType enum_type = 7;
      • getEnumTypeBuilder

        public Types.EnumType.Builder getEnumTypeBuilder()
         Defines an enum with pre-defined string values.
         
        .flyteidl.core.EnumType enum_type = 7;
      • hasStructuredDatasetType

        public boolean hasStructuredDatasetType()
         Generalized schema support
         
        .flyteidl.core.StructuredDatasetType structured_dataset_type = 8;
        Specified by:
        hasStructuredDatasetType in interface Types.LiteralTypeOrBuilder
        Returns:
        Whether the structuredDatasetType field is set.
      • clearStructuredDatasetType

        public Types.LiteralType.Builder clearStructuredDatasetType()
         Generalized schema support
         
        .flyteidl.core.StructuredDatasetType structured_dataset_type = 8;
      • getStructuredDatasetTypeBuilder

        public Types.StructuredDatasetType.Builder getStructuredDatasetTypeBuilder()
         Generalized schema support
         
        .flyteidl.core.StructuredDatasetType structured_dataset_type = 8;
      • hasUnionType

        public boolean hasUnionType()
         Defines an union type with pre-defined LiteralTypes.
         
        .flyteidl.core.UnionType union_type = 10;
        Specified by:
        hasUnionType in interface Types.LiteralTypeOrBuilder
        Returns:
        Whether the unionType field is set.
      • clearUnionType

        public Types.LiteralType.Builder clearUnionType()
         Defines an union type with pre-defined LiteralTypes.
         
        .flyteidl.core.UnionType union_type = 10;
      • getUnionTypeBuilder

        public Types.UnionType.Builder getUnionTypeBuilder()
         Defines an union type with pre-defined LiteralTypes.
         
        .flyteidl.core.UnionType union_type = 10;
      • hasMetadata

        public boolean hasMetadata()
         This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
         consumers to identify special behavior or display extended information for the type.
         
        .google.protobuf.Struct metadata = 6;
        Specified by:
        hasMetadata in interface Types.LiteralTypeOrBuilder
        Returns:
        Whether the metadata field is set.
      • getMetadata

        public com.google.protobuf.Struct getMetadata()
         This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
         consumers to identify special behavior or display extended information for the type.
         
        .google.protobuf.Struct metadata = 6;
        Specified by:
        getMetadata in interface Types.LiteralTypeOrBuilder
        Returns:
        The metadata.
      • setMetadata

        public Types.LiteralType.Builder setMetadata​(com.google.protobuf.Struct value)
         This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
         consumers to identify special behavior or display extended information for the type.
         
        .google.protobuf.Struct metadata = 6;
      • setMetadata

        public Types.LiteralType.Builder setMetadata​(com.google.protobuf.Struct.Builder builderForValue)
         This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
         consumers to identify special behavior or display extended information for the type.
         
        .google.protobuf.Struct metadata = 6;
      • mergeMetadata

        public Types.LiteralType.Builder mergeMetadata​(com.google.protobuf.Struct value)
         This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
         consumers to identify special behavior or display extended information for the type.
         
        .google.protobuf.Struct metadata = 6;
      • clearMetadata

        public Types.LiteralType.Builder clearMetadata()
         This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
         consumers to identify special behavior or display extended information for the type.
         
        .google.protobuf.Struct metadata = 6;
      • getMetadataBuilder

        public com.google.protobuf.Struct.Builder getMetadataBuilder()
         This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
         consumers to identify special behavior or display extended information for the type.
         
        .google.protobuf.Struct metadata = 6;
      • getMetadataOrBuilder

        public com.google.protobuf.StructOrBuilder getMetadataOrBuilder()
         This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
         consumers to identify special behavior or display extended information for the type.
         
        .google.protobuf.Struct metadata = 6;
        Specified by:
        getMetadataOrBuilder in interface Types.LiteralTypeOrBuilder
      • getMetadataFieldBuilder

        private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.Struct,​com.google.protobuf.Struct.Builder,​com.google.protobuf.StructOrBuilder> getMetadataFieldBuilder()
         This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
         consumers to identify special behavior or display extended information for the type.
         
        .google.protobuf.Struct metadata = 6;
      • hasAnnotation

        public boolean hasAnnotation()
         This field contains arbitrary data that might have special semantic
         meaning for the client but does not effect internal flyte behavior.
         
        .flyteidl.core.TypeAnnotation annotation = 9;
        Specified by:
        hasAnnotation in interface Types.LiteralTypeOrBuilder
        Returns:
        Whether the annotation field is set.
      • getAnnotation

        public Types.TypeAnnotation getAnnotation()
         This field contains arbitrary data that might have special semantic
         meaning for the client but does not effect internal flyte behavior.
         
        .flyteidl.core.TypeAnnotation annotation = 9;
        Specified by:
        getAnnotation in interface Types.LiteralTypeOrBuilder
        Returns:
        The annotation.
      • setAnnotation

        public Types.LiteralType.Builder setAnnotation​(Types.TypeAnnotation value)
         This field contains arbitrary data that might have special semantic
         meaning for the client but does not effect internal flyte behavior.
         
        .flyteidl.core.TypeAnnotation annotation = 9;
      • setAnnotation

        public Types.LiteralType.Builder setAnnotation​(Types.TypeAnnotation.Builder builderForValue)
         This field contains arbitrary data that might have special semantic
         meaning for the client but does not effect internal flyte behavior.
         
        .flyteidl.core.TypeAnnotation annotation = 9;
      • mergeAnnotation

        public Types.LiteralType.Builder mergeAnnotation​(Types.TypeAnnotation value)
         This field contains arbitrary data that might have special semantic
         meaning for the client but does not effect internal flyte behavior.
         
        .flyteidl.core.TypeAnnotation annotation = 9;
      • clearAnnotation

        public Types.LiteralType.Builder clearAnnotation()
         This field contains arbitrary data that might have special semantic
         meaning for the client but does not effect internal flyte behavior.
         
        .flyteidl.core.TypeAnnotation annotation = 9;
      • getAnnotationBuilder

        public Types.TypeAnnotation.Builder getAnnotationBuilder()
         This field contains arbitrary data that might have special semantic
         meaning for the client but does not effect internal flyte behavior.
         
        .flyteidl.core.TypeAnnotation annotation = 9;
      • hasStructure

        public boolean hasStructure()
         Hints to improve type matching.
         
        .flyteidl.core.TypeStructure structure = 11;
        Specified by:
        hasStructure in interface Types.LiteralTypeOrBuilder
        Returns:
        Whether the structure field is set.
      • clearStructure

        public Types.LiteralType.Builder clearStructure()
         Hints to improve type matching.
         
        .flyteidl.core.TypeStructure structure = 11;
      • getStructureBuilder

        public Types.TypeStructure.Builder getStructureBuilder()
         Hints to improve type matching.
         
        .flyteidl.core.TypeStructure structure = 11;
      • setUnknownFields

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

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