Class Migrate.FieldMigrateAnnotation.Builder

    • 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<Migrate.FieldMigrateAnnotation.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<Migrate.FieldMigrateAnnotation.Builder>
      • getDefaultInstanceForType

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

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

        public Migrate.FieldMigrateAnnotation buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public Migrate.FieldMigrateAnnotation.Builder setRenameBytes​(com.google.protobuf.ByteString value)
         Rename the field in next version.
         
        string rename = 1;
        Parameters:
        value - The bytes for rename to set.
        Returns:
        This builder for chaining.
      • getOneofPromotion

        public String getOneofPromotion()
         Add the field to a named oneof in next version. If this already exists, the
         field will join its siblings under the oneof, otherwise a new oneof will be
         created with the given name.
         
        string oneof_promotion = 2;
        Specified by:
        getOneofPromotion in interface Migrate.FieldMigrateAnnotationOrBuilder
        Returns:
        The oneofPromotion.
      • getOneofPromotionBytes

        public com.google.protobuf.ByteString getOneofPromotionBytes()
         Add the field to a named oneof in next version. If this already exists, the
         field will join its siblings under the oneof, otherwise a new oneof will be
         created with the given name.
         
        string oneof_promotion = 2;
        Specified by:
        getOneofPromotionBytes in interface Migrate.FieldMigrateAnnotationOrBuilder
        Returns:
        The bytes for oneofPromotion.
      • setOneofPromotion

        public Migrate.FieldMigrateAnnotation.Builder setOneofPromotion​(String value)
         Add the field to a named oneof in next version. If this already exists, the
         field will join its siblings under the oneof, otherwise a new oneof will be
         created with the given name.
         
        string oneof_promotion = 2;
        Parameters:
        value - The oneofPromotion to set.
        Returns:
        This builder for chaining.
      • clearOneofPromotion

        public Migrate.FieldMigrateAnnotation.Builder clearOneofPromotion()
         Add the field to a named oneof in next version. If this already exists, the
         field will join its siblings under the oneof, otherwise a new oneof will be
         created with the given name.
         
        string oneof_promotion = 2;
        Returns:
        This builder for chaining.
      • setOneofPromotionBytes

        public Migrate.FieldMigrateAnnotation.Builder setOneofPromotionBytes​(com.google.protobuf.ByteString value)
         Add the field to a named oneof in next version. If this already exists, the
         field will join its siblings under the oneof, otherwise a new oneof will be
         created with the given name.
         
        string oneof_promotion = 2;
        Parameters:
        value - The bytes for oneofPromotion to set.
        Returns:
        This builder for chaining.