Package flyteidl.core

Class Types.TypeAnnotation.Builder

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

    public static final class Types.TypeAnnotation.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Types.TypeAnnotation.Builder>
    implements Types.TypeAnnotationOrBuilder
     TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs.
     
    Protobuf type flyteidl.core.TypeAnnotation
    • Field Detail

      • bitField0_

        private int bitField0_
      • annotations_

        private com.google.protobuf.Struct annotations_
      • annotationsBuilder_

        private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.Struct,​com.google.protobuf.Struct.Builder,​com.google.protobuf.StructOrBuilder> annotationsBuilder_
    • 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.TypeAnnotation.Builder>
      • clear

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

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

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

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

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

        public Types.TypeAnnotation.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.TypeAnnotation.Builder>
      • clearField

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

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

        public Types.TypeAnnotation.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.TypeAnnotation.Builder>
      • addRepeatedField

        public Types.TypeAnnotation.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.TypeAnnotation.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.TypeAnnotation.Builder>
      • mergeFrom

        public Types.TypeAnnotation.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.TypeAnnotation.Builder>
        Throws:
        IOException
      • hasAnnotations

        public boolean hasAnnotations()
         A arbitrary JSON payload to describe a type.
         
        .google.protobuf.Struct annotations = 1;
        Specified by:
        hasAnnotations in interface Types.TypeAnnotationOrBuilder
        Returns:
        Whether the annotations field is set.
      • getAnnotations

        public com.google.protobuf.Struct getAnnotations()
         A arbitrary JSON payload to describe a type.
         
        .google.protobuf.Struct annotations = 1;
        Specified by:
        getAnnotations in interface Types.TypeAnnotationOrBuilder
        Returns:
        The annotations.
      • setAnnotations

        public Types.TypeAnnotation.Builder setAnnotations​(com.google.protobuf.Struct value)
         A arbitrary JSON payload to describe a type.
         
        .google.protobuf.Struct annotations = 1;
      • setAnnotations

        public Types.TypeAnnotation.Builder setAnnotations​(com.google.protobuf.Struct.Builder builderForValue)
         A arbitrary JSON payload to describe a type.
         
        .google.protobuf.Struct annotations = 1;
      • mergeAnnotations

        public Types.TypeAnnotation.Builder mergeAnnotations​(com.google.protobuf.Struct value)
         A arbitrary JSON payload to describe a type.
         
        .google.protobuf.Struct annotations = 1;
      • clearAnnotations

        public Types.TypeAnnotation.Builder clearAnnotations()
         A arbitrary JSON payload to describe a type.
         
        .google.protobuf.Struct annotations = 1;
      • getAnnotationsBuilder

        public com.google.protobuf.Struct.Builder getAnnotationsBuilder()
         A arbitrary JSON payload to describe a type.
         
        .google.protobuf.Struct annotations = 1;
      • getAnnotationsOrBuilder

        public com.google.protobuf.StructOrBuilder getAnnotationsOrBuilder()
         A arbitrary JSON payload to describe a type.
         
        .google.protobuf.Struct annotations = 1;
        Specified by:
        getAnnotationsOrBuilder in interface Types.TypeAnnotationOrBuilder
      • getAnnotationsFieldBuilder

        private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.Struct,​com.google.protobuf.Struct.Builder,​com.google.protobuf.StructOrBuilder> getAnnotationsFieldBuilder()
         A arbitrary JSON payload to describe a type.
         
        .google.protobuf.Struct annotations = 1;
      • setUnknownFields

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

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