// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: Actor.proto

package it.ewlab.actor;

public final class ActorOuterClass {
  private ActorOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface ActorOrBuilder extends
      // @@protoc_insertion_point(interface_extends:it.ewlab.actor.Actor)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>required string name = 1;</code>
     * @return Whether the name field is set.
     */
    boolean hasName();
    /**
     * <code>required string name = 1;</code>
     * @return The name.
     */
    java.lang.String getName();
    /**
     * <code>required string name = 1;</code>
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString
        getNameBytes();

    /**
     * <code>required string surname = 2;</code>
     * @return Whether the surname field is set.
     */
    boolean hasSurname();
    /**
     * <code>required string surname = 2;</code>
     * @return The surname.
     */
    java.lang.String getSurname();
    /**
     * <code>required string surname = 2;</code>
     * @return The bytes for surname.
     */
    com.google.protobuf.ByteString
        getSurnameBytes();

    /**
     * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
     */
    java.util.List<it.ewlab.actor.ActorOuterClass.Actor.Movie> 
        getMovieList();
    /**
     * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
     */
    it.ewlab.actor.ActorOuterClass.Actor.Movie getMovie(int index);
    /**
     * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
     */
    int getMovieCount();
    /**
     * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
     */
    java.util.List<? extends it.ewlab.actor.ActorOuterClass.Actor.MovieOrBuilder> 
        getMovieOrBuilderList();
    /**
     * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
     */
    it.ewlab.actor.ActorOuterClass.Actor.MovieOrBuilder getMovieOrBuilder(
        int index);

    /**
     * <code>optional .it.ewlab.actor.Actor.Sex sex = 4;</code>
     * @return Whether the sex field is set.
     */
    boolean hasSex();
    /**
     * <code>optional .it.ewlab.actor.Actor.Sex sex = 4;</code>
     * @return The sex.
     */
    it.ewlab.actor.ActorOuterClass.Actor.Sex getSex();
  }
  /**
   * Protobuf type {@code it.ewlab.actor.Actor}
   */
  public  static final class Actor extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:it.ewlab.actor.Actor)
      ActorOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Actor.newBuilder() to construct.
    private Actor(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Actor() {
      name_ = "";
      surname_ = "";
      movie_ = java.util.Collections.emptyList();
      sex_ = 0;
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new Actor();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Actor(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              com.google.protobuf.ByteString bs = input.readBytes();
              bitField0_ |= 0x00000001;
              name_ = bs;
              break;
            }
            case 18: {
              com.google.protobuf.ByteString bs = input.readBytes();
              bitField0_ |= 0x00000002;
              surname_ = bs;
              break;
            }
            case 26: {
              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                movie_ = new java.util.ArrayList<it.ewlab.actor.ActorOuterClass.Actor.Movie>();
                mutable_bitField0_ |= 0x00000004;
              }
              movie_.add(
                  input.readMessage(it.ewlab.actor.ActorOuterClass.Actor.Movie.PARSER, extensionRegistry));
              break;
            }
            case 32: {
              int rawValue = input.readEnum();
                @SuppressWarnings("deprecation")
              it.ewlab.actor.ActorOuterClass.Actor.Sex value = it.ewlab.actor.ActorOuterClass.Actor.Sex.valueOf(rawValue);
              if (value == null) {
                unknownFields.mergeVarintField(4, rawValue);
              } else {
                bitField0_ |= 0x00000004;
                sex_ = rawValue;
              }
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000004) != 0)) {
          movie_ = java.util.Collections.unmodifiableList(movie_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return it.ewlab.actor.ActorOuterClass.internal_static_it_ewlab_actor_Actor_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return it.ewlab.actor.ActorOuterClass.internal_static_it_ewlab_actor_Actor_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              it.ewlab.actor.ActorOuterClass.Actor.class, it.ewlab.actor.ActorOuterClass.Actor.Builder.class);
    }

    /**
     * Protobuf enum {@code it.ewlab.actor.Actor.Sex}
     */
    public enum Sex
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * <code>MALE = 0;</code>
       */
      MALE(0),
      /**
       * <code>FEMALE = 1;</code>
       */
      FEMALE(1),
      ;

      /**
       * <code>MALE = 0;</code>
       */
      public static final int MALE_VALUE = 0;
      /**
       * <code>FEMALE = 1;</code>
       */
      public static final int FEMALE_VALUE = 1;


      public final int getNumber() {
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static Sex valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static Sex forNumber(int value) {
        switch (value) {
          case 0: return MALE;
          case 1: return FEMALE;
          default: return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap<Sex>
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          Sex> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<Sex>() {
              public Sex findValueByNumber(int number) {
                return Sex.forNumber(number);
              }
            };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return it.ewlab.actor.ActorOuterClass.Actor.getDescriptor().getEnumTypes().get(0);
      }

      private static final Sex[] VALUES = values();

      public static Sex valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private Sex(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:it.ewlab.actor.Actor.Sex)
    }

    public interface MovieOrBuilder extends
        // @@protoc_insertion_point(interface_extends:it.ewlab.actor.Actor.Movie)
        com.google.protobuf.MessageOrBuilder {

      /**
       * <code>required string title = 1;</code>
       * @return Whether the title field is set.
       */
      boolean hasTitle();
      /**
       * <code>required string title = 1;</code>
       * @return The title.
       */
      java.lang.String getTitle();
      /**
       * <code>required string title = 1;</code>
       * @return The bytes for title.
       */
      com.google.protobuf.ByteString
          getTitleBytes();

      /**
       * <code>required int32 year = 2;</code>
       * @return Whether the year field is set.
       */
      boolean hasYear();
      /**
       * <code>required int32 year = 2;</code>
       * @return The year.
       */
      int getYear();
    }
    /**
     * Protobuf type {@code it.ewlab.actor.Actor.Movie}
     */
    public  static final class Movie extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:it.ewlab.actor.Actor.Movie)
        MovieOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use Movie.newBuilder() to construct.
      private Movie(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }
      private Movie() {
        title_ = "";
      }

      @java.lang.Override
      @SuppressWarnings({"unused"})
      protected java.lang.Object newInstance(
          UnusedPrivateParameter unused) {
        return new Movie();
      }

      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private Movie(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        this();
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        int mutable_bitField0_ = 0;
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder();
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                com.google.protobuf.ByteString bs = input.readBytes();
                bitField0_ |= 0x00000001;
                title_ = bs;
                break;
              }
              case 16: {
                bitField0_ |= 0x00000002;
                year_ = input.readInt32();
                break;
              }
              default: {
                if (!parseUnknownField(
                    input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                break;
              }
            }
          }
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(
              e).setUnfinishedMessage(this);
        } finally {
          this.unknownFields = unknownFields.build();
          makeExtensionsImmutable();
        }
      }
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return it.ewlab.actor.ActorOuterClass.internal_static_it_ewlab_actor_Actor_Movie_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return it.ewlab.actor.ActorOuterClass.internal_static_it_ewlab_actor_Actor_Movie_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                it.ewlab.actor.ActorOuterClass.Actor.Movie.class, it.ewlab.actor.ActorOuterClass.Actor.Movie.Builder.class);
      }

      private int bitField0_;
      public static final int TITLE_FIELD_NUMBER = 1;
      private volatile java.lang.Object title_;
      /**
       * <code>required string title = 1;</code>
       * @return Whether the title field is set.
       */
      public boolean hasTitle() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>required string title = 1;</code>
       * @return The title.
       */
      public java.lang.String getTitle() {
        java.lang.Object ref = title_;
        if (ref instanceof java.lang.String) {
          return (java.lang.String) ref;
        } else {
          com.google.protobuf.ByteString bs = 
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          if (bs.isValidUtf8()) {
            title_ = s;
          }
          return s;
        }
      }
      /**
       * <code>required string title = 1;</code>
       * @return The bytes for title.
       */
      public com.google.protobuf.ByteString
          getTitleBytes() {
        java.lang.Object ref = title_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          title_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      public static final int YEAR_FIELD_NUMBER = 2;
      private int year_;
      /**
       * <code>required int32 year = 2;</code>
       * @return Whether the year field is set.
       */
      public boolean hasYear() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>required int32 year = 2;</code>
       * @return The year.
       */
      public int getYear() {
        return year_;
      }

      private byte memoizedIsInitialized = -1;
      @java.lang.Override
      public final boolean isInitialized() {
        byte isInitialized = memoizedIsInitialized;
        if (isInitialized == 1) return true;
        if (isInitialized == 0) return false;

        if (!hasTitle()) {
          memoizedIsInitialized = 0;
          return false;
        }
        if (!hasYear()) {
          memoizedIsInitialized = 0;
          return false;
        }
        memoizedIsInitialized = 1;
        return true;
      }

      @java.lang.Override
      public void writeTo(com.google.protobuf.CodedOutputStream output)
                          throws java.io.IOException {
        if (((bitField0_ & 0x00000001) != 0)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
        }
        if (((bitField0_ & 0x00000002) != 0)) {
          output.writeInt32(2, year_);
        }
        unknownFields.writeTo(output);
      }

      @java.lang.Override
      public int getSerializedSize() {
        int size = memoizedSize;
        if (size != -1) return size;

        size = 0;
        if (((bitField0_ & 0x00000001) != 0)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
        }
        if (((bitField0_ & 0x00000002) != 0)) {
          size += com.google.protobuf.CodedOutputStream
            .computeInt32Size(2, year_);
        }
        size += unknownFields.getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof it.ewlab.actor.ActorOuterClass.Actor.Movie)) {
          return super.equals(obj);
        }
        it.ewlab.actor.ActorOuterClass.Actor.Movie other = (it.ewlab.actor.ActorOuterClass.Actor.Movie) obj;

        if (hasTitle() != other.hasTitle()) return false;
        if (hasTitle()) {
          if (!getTitle()
              .equals(other.getTitle())) return false;
        }
        if (hasYear() != other.hasYear()) return false;
        if (hasYear()) {
          if (getYear()
              != other.getYear()) return false;
        }
        if (!unknownFields.equals(other.unknownFields)) return false;
        return true;
      }

      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        if (hasTitle()) {
          hash = (37 * hash) + TITLE_FIELD_NUMBER;
          hash = (53 * hash) + getTitle().hashCode();
        }
        if (hasYear()) {
          hash = (37 * hash) + YEAR_FIELD_NUMBER;
          hash = (53 * hash) + getYear();
        }
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static it.ewlab.actor.ActorOuterClass.Actor.Movie parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static it.ewlab.actor.ActorOuterClass.Actor.Movie parseFrom(
          java.nio.ByteBuffer data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static it.ewlab.actor.ActorOuterClass.Actor.Movie parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static it.ewlab.actor.ActorOuterClass.Actor.Movie parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static it.ewlab.actor.ActorOuterClass.Actor.Movie parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static it.ewlab.actor.ActorOuterClass.Actor.Movie parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static it.ewlab.actor.ActorOuterClass.Actor.Movie parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static it.ewlab.actor.ActorOuterClass.Actor.Movie parseFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input, extensionRegistry);
      }
      public static it.ewlab.actor.ActorOuterClass.Actor.Movie parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static it.ewlab.actor.ActorOuterClass.Actor.Movie parseDelimitedFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
      }
      public static it.ewlab.actor.ActorOuterClass.Actor.Movie parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static it.ewlab.actor.ActorOuterClass.Actor.Movie parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input, extensionRegistry);
      }

      @java.lang.Override
      public Builder newBuilderForType() { return newBuilder(); }
      public static Builder newBuilder() {
        return DEFAULT_INSTANCE.toBuilder();
      }
      public static Builder newBuilder(it.ewlab.actor.ActorOuterClass.Actor.Movie prototype) {
        return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
      }
      @java.lang.Override
      public Builder toBuilder() {
        return this == DEFAULT_INSTANCE
            ? new Builder() : new Builder().mergeFrom(this);
      }

      @java.lang.Override
      protected Builder newBuilderForType(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        Builder builder = new Builder(parent);
        return builder;
      }
      /**
       * Protobuf type {@code it.ewlab.actor.Actor.Movie}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
          // @@protoc_insertion_point(builder_implements:it.ewlab.actor.Actor.Movie)
          it.ewlab.actor.ActorOuterClass.Actor.MovieOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return it.ewlab.actor.ActorOuterClass.internal_static_it_ewlab_actor_Actor_Movie_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return it.ewlab.actor.ActorOuterClass.internal_static_it_ewlab_actor_Actor_Movie_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  it.ewlab.actor.ActorOuterClass.Actor.Movie.class, it.ewlab.actor.ActorOuterClass.Actor.Movie.Builder.class);
        }

        // Construct using it.ewlab.actor.ActorOuterClass.Actor.Movie.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }

        private Builder(
            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessageV3
                  .alwaysUseFieldBuilders) {
          }
        }
        @java.lang.Override
        public Builder clear() {
          super.clear();
          title_ = "";
          bitField0_ = (bitField0_ & ~0x00000001);
          year_ = 0;
          bitField0_ = (bitField0_ & ~0x00000002);
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return it.ewlab.actor.ActorOuterClass.internal_static_it_ewlab_actor_Actor_Movie_descriptor;
        }

        @java.lang.Override
        public it.ewlab.actor.ActorOuterClass.Actor.Movie getDefaultInstanceForType() {
          return it.ewlab.actor.ActorOuterClass.Actor.Movie.getDefaultInstance();
        }

        @java.lang.Override
        public it.ewlab.actor.ActorOuterClass.Actor.Movie build() {
          it.ewlab.actor.ActorOuterClass.Actor.Movie result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public it.ewlab.actor.ActorOuterClass.Actor.Movie buildPartial() {
          it.ewlab.actor.ActorOuterClass.Actor.Movie result = new it.ewlab.actor.ActorOuterClass.Actor.Movie(this);
          int from_bitField0_ = bitField0_;
          int to_bitField0_ = 0;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            to_bitField0_ |= 0x00000001;
          }
          result.title_ = title_;
          if (((from_bitField0_ & 0x00000002) != 0)) {
            result.year_ = year_;
            to_bitField0_ |= 0x00000002;
          }
          result.bitField0_ = to_bitField0_;
          onBuilt();
          return result;
        }

        @java.lang.Override
        public Builder clone() {
          return super.clone();
        }
        @java.lang.Override
        public Builder setField(
            com.google.protobuf.Descriptors.FieldDescriptor field,
            java.lang.Object value) {
          return super.setField(field, value);
        }
        @java.lang.Override
        public Builder clearField(
            com.google.protobuf.Descriptors.FieldDescriptor field) {
          return super.clearField(field);
        }
        @java.lang.Override
        public Builder clearOneof(
            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
          return super.clearOneof(oneof);
        }
        @java.lang.Override
        public Builder setRepeatedField(
            com.google.protobuf.Descriptors.FieldDescriptor field,
            int index, java.lang.Object value) {
          return super.setRepeatedField(field, index, value);
        }
        @java.lang.Override
        public Builder addRepeatedField(
            com.google.protobuf.Descriptors.FieldDescriptor field,
            java.lang.Object value) {
          return super.addRepeatedField(field, value);
        }
        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof it.ewlab.actor.ActorOuterClass.Actor.Movie) {
            return mergeFrom((it.ewlab.actor.ActorOuterClass.Actor.Movie)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(it.ewlab.actor.ActorOuterClass.Actor.Movie other) {
          if (other == it.ewlab.actor.ActorOuterClass.Actor.Movie.getDefaultInstance()) return this;
          if (other.hasTitle()) {
            bitField0_ |= 0x00000001;
            title_ = other.title_;
            onChanged();
          }
          if (other.hasYear()) {
            setYear(other.getYear());
          }
          this.mergeUnknownFields(other.unknownFields);
          onChanged();
          return this;
        }

        @java.lang.Override
        public final boolean isInitialized() {
          if (!hasTitle()) {
            return false;
          }
          if (!hasYear()) {
            return false;
          }
          return true;
        }

        @java.lang.Override
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          it.ewlab.actor.ActorOuterClass.Actor.Movie parsedMessage = null;
          try {
            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            parsedMessage = (it.ewlab.actor.ActorOuterClass.Actor.Movie) e.getUnfinishedMessage();
            throw e.unwrapIOException();
          } finally {
            if (parsedMessage != null) {
              mergeFrom(parsedMessage);
            }
          }
          return this;
        }
        private int bitField0_;

        private java.lang.Object title_ = "";
        /**
         * <code>required string title = 1;</code>
         * @return Whether the title field is set.
         */
        public boolean hasTitle() {
          return ((bitField0_ & 0x00000001) != 0);
        }
        /**
         * <code>required string title = 1;</code>
         * @return The title.
         */
        public java.lang.String getTitle() {
          java.lang.Object ref = title_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs =
                (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            if (bs.isValidUtf8()) {
              title_ = s;
            }
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         * <code>required string title = 1;</code>
         * @return The bytes for title.
         */
        public com.google.protobuf.ByteString
            getTitleBytes() {
          java.lang.Object ref = title_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b = 
                com.google.protobuf.ByteString.copyFromUtf8(
                    (java.lang.String) ref);
            title_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         * <code>required string title = 1;</code>
         * @param value The title to set.
         * @return This builder for chaining.
         */
        public Builder setTitle(
            java.lang.String value) {
          if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
          title_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>required string title = 1;</code>
         * @return This builder for chaining.
         */
        public Builder clearTitle() {
          bitField0_ = (bitField0_ & ~0x00000001);
          title_ = getDefaultInstance().getTitle();
          onChanged();
          return this;
        }
        /**
         * <code>required string title = 1;</code>
         * @param value The bytes for title to set.
         * @return This builder for chaining.
         */
        public Builder setTitleBytes(
            com.google.protobuf.ByteString value) {
          if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
          title_ = value;
          onChanged();
          return this;
        }

        private int year_ ;
        /**
         * <code>required int32 year = 2;</code>
         * @return Whether the year field is set.
         */
        public boolean hasYear() {
          return ((bitField0_ & 0x00000002) != 0);
        }
        /**
         * <code>required int32 year = 2;</code>
         * @return The year.
         */
        public int getYear() {
          return year_;
        }
        /**
         * <code>required int32 year = 2;</code>
         * @param value The year to set.
         * @return This builder for chaining.
         */
        public Builder setYear(int value) {
          bitField0_ |= 0x00000002;
          year_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>required int32 year = 2;</code>
         * @return This builder for chaining.
         */
        public Builder clearYear() {
          bitField0_ = (bitField0_ & ~0x00000002);
          year_ = 0;
          onChanged();
          return this;
        }
        @java.lang.Override
        public final Builder setUnknownFields(
            final com.google.protobuf.UnknownFieldSet unknownFields) {
          return super.setUnknownFields(unknownFields);
        }

        @java.lang.Override
        public final Builder mergeUnknownFields(
            final com.google.protobuf.UnknownFieldSet unknownFields) {
          return super.mergeUnknownFields(unknownFields);
        }


        // @@protoc_insertion_point(builder_scope:it.ewlab.actor.Actor.Movie)
      }

      // @@protoc_insertion_point(class_scope:it.ewlab.actor.Actor.Movie)
      private static final it.ewlab.actor.ActorOuterClass.Actor.Movie DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new it.ewlab.actor.ActorOuterClass.Actor.Movie();
      }

      public static it.ewlab.actor.ActorOuterClass.Actor.Movie getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

      @java.lang.Deprecated public static final com.google.protobuf.Parser<Movie>
          PARSER = new com.google.protobuf.AbstractParser<Movie>() {
        @java.lang.Override
        public Movie parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new Movie(input, extensionRegistry);
        }
      };

      public static com.google.protobuf.Parser<Movie> parser() {
        return PARSER;
      }

      @java.lang.Override
      public com.google.protobuf.Parser<Movie> getParserForType() {
        return PARSER;
      }

      @java.lang.Override
      public it.ewlab.actor.ActorOuterClass.Actor.Movie getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }

    }

    private int bitField0_;
    public static final int NAME_FIELD_NUMBER = 1;
    private volatile java.lang.Object name_;
    /**
     * <code>required string name = 1;</code>
     * @return Whether the name field is set.
     */
    public boolean hasName() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>required string name = 1;</code>
     * @return The name.
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          name_ = s;
        }
        return s;
      }
    }
    /**
     * <code>required string name = 1;</code>
     * @return The bytes for name.
     */
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int SURNAME_FIELD_NUMBER = 2;
    private volatile java.lang.Object surname_;
    /**
     * <code>required string surname = 2;</code>
     * @return Whether the surname field is set.
     */
    public boolean hasSurname() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>required string surname = 2;</code>
     * @return The surname.
     */
    public java.lang.String getSurname() {
      java.lang.Object ref = surname_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          surname_ = s;
        }
        return s;
      }
    }
    /**
     * <code>required string surname = 2;</code>
     * @return The bytes for surname.
     */
    public com.google.protobuf.ByteString
        getSurnameBytes() {
      java.lang.Object ref = surname_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        surname_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int MOVIE_FIELD_NUMBER = 3;
    private java.util.List<it.ewlab.actor.ActorOuterClass.Actor.Movie> movie_;
    /**
     * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
     */
    public java.util.List<it.ewlab.actor.ActorOuterClass.Actor.Movie> getMovieList() {
      return movie_;
    }
    /**
     * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
     */
    public java.util.List<? extends it.ewlab.actor.ActorOuterClass.Actor.MovieOrBuilder> 
        getMovieOrBuilderList() {
      return movie_;
    }
    /**
     * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
     */
    public int getMovieCount() {
      return movie_.size();
    }
    /**
     * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
     */
    public it.ewlab.actor.ActorOuterClass.Actor.Movie getMovie(int index) {
      return movie_.get(index);
    }
    /**
     * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
     */
    public it.ewlab.actor.ActorOuterClass.Actor.MovieOrBuilder getMovieOrBuilder(
        int index) {
      return movie_.get(index);
    }

    public static final int SEX_FIELD_NUMBER = 4;
    private int sex_;
    /**
     * <code>optional .it.ewlab.actor.Actor.Sex sex = 4;</code>
     * @return Whether the sex field is set.
     */
    public boolean hasSex() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <code>optional .it.ewlab.actor.Actor.Sex sex = 4;</code>
     * @return The sex.
     */
    public it.ewlab.actor.ActorOuterClass.Actor.Sex getSex() {
      @SuppressWarnings("deprecation")
      it.ewlab.actor.ActorOuterClass.Actor.Sex result = it.ewlab.actor.ActorOuterClass.Actor.Sex.valueOf(sex_);
      return result == null ? it.ewlab.actor.ActorOuterClass.Actor.Sex.MALE : result;
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      if (!hasName()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSurname()) {
        memoizedIsInitialized = 0;
        return false;
      }
      for (int i = 0; i < getMovieCount(); i++) {
        if (!getMovie(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, surname_);
      }
      for (int i = 0; i < movie_.size(); i++) {
        output.writeMessage(3, movie_.get(i));
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        output.writeEnum(4, sex_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, surname_);
      }
      for (int i = 0; i < movie_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, movie_.get(i));
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(4, sex_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof it.ewlab.actor.ActorOuterClass.Actor)) {
        return super.equals(obj);
      }
      it.ewlab.actor.ActorOuterClass.Actor other = (it.ewlab.actor.ActorOuterClass.Actor) obj;

      if (hasName() != other.hasName()) return false;
      if (hasName()) {
        if (!getName()
            .equals(other.getName())) return false;
      }
      if (hasSurname() != other.hasSurname()) return false;
      if (hasSurname()) {
        if (!getSurname()
            .equals(other.getSurname())) return false;
      }
      if (!getMovieList()
          .equals(other.getMovieList())) return false;
      if (hasSex() != other.hasSex()) return false;
      if (hasSex()) {
        if (sex_ != other.sex_) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasName()) {
        hash = (37 * hash) + NAME_FIELD_NUMBER;
        hash = (53 * hash) + getName().hashCode();
      }
      if (hasSurname()) {
        hash = (37 * hash) + SURNAME_FIELD_NUMBER;
        hash = (53 * hash) + getSurname().hashCode();
      }
      if (getMovieCount() > 0) {
        hash = (37 * hash) + MOVIE_FIELD_NUMBER;
        hash = (53 * hash) + getMovieList().hashCode();
      }
      if (hasSex()) {
        hash = (37 * hash) + SEX_FIELD_NUMBER;
        hash = (53 * hash) + sex_;
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static it.ewlab.actor.ActorOuterClass.Actor parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static it.ewlab.actor.ActorOuterClass.Actor parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static it.ewlab.actor.ActorOuterClass.Actor parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static it.ewlab.actor.ActorOuterClass.Actor parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static it.ewlab.actor.ActorOuterClass.Actor parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static it.ewlab.actor.ActorOuterClass.Actor parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static it.ewlab.actor.ActorOuterClass.Actor parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static it.ewlab.actor.ActorOuterClass.Actor parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static it.ewlab.actor.ActorOuterClass.Actor parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static it.ewlab.actor.ActorOuterClass.Actor parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static it.ewlab.actor.ActorOuterClass.Actor parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static it.ewlab.actor.ActorOuterClass.Actor parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(it.ewlab.actor.ActorOuterClass.Actor prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code it.ewlab.actor.Actor}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:it.ewlab.actor.Actor)
        it.ewlab.actor.ActorOuterClass.ActorOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return it.ewlab.actor.ActorOuterClass.internal_static_it_ewlab_actor_Actor_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return it.ewlab.actor.ActorOuterClass.internal_static_it_ewlab_actor_Actor_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                it.ewlab.actor.ActorOuterClass.Actor.class, it.ewlab.actor.ActorOuterClass.Actor.Builder.class);
      }

      // Construct using it.ewlab.actor.ActorOuterClass.Actor.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getMovieFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        name_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        surname_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        if (movieBuilder_ == null) {
          movie_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          movieBuilder_.clear();
        }
        sex_ = 0;
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return it.ewlab.actor.ActorOuterClass.internal_static_it_ewlab_actor_Actor_descriptor;
      }

      @java.lang.Override
      public it.ewlab.actor.ActorOuterClass.Actor getDefaultInstanceForType() {
        return it.ewlab.actor.ActorOuterClass.Actor.getDefaultInstance();
      }

      @java.lang.Override
      public it.ewlab.actor.ActorOuterClass.Actor build() {
        it.ewlab.actor.ActorOuterClass.Actor result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public it.ewlab.actor.ActorOuterClass.Actor buildPartial() {
        it.ewlab.actor.ActorOuterClass.Actor result = new it.ewlab.actor.ActorOuterClass.Actor(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          to_bitField0_ |= 0x00000001;
        }
        result.name_ = name_;
        if (((from_bitField0_ & 0x00000002) != 0)) {
          to_bitField0_ |= 0x00000002;
        }
        result.surname_ = surname_;
        if (movieBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0)) {
            movie_ = java.util.Collections.unmodifiableList(movie_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          result.movie_ = movie_;
        } else {
          result.movie_ = movieBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          to_bitField0_ |= 0x00000004;
        }
        result.sex_ = sex_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof it.ewlab.actor.ActorOuterClass.Actor) {
          return mergeFrom((it.ewlab.actor.ActorOuterClass.Actor)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(it.ewlab.actor.ActorOuterClass.Actor other) {
        if (other == it.ewlab.actor.ActorOuterClass.Actor.getDefaultInstance()) return this;
        if (other.hasName()) {
          bitField0_ |= 0x00000001;
          name_ = other.name_;
          onChanged();
        }
        if (other.hasSurname()) {
          bitField0_ |= 0x00000002;
          surname_ = other.surname_;
          onChanged();
        }
        if (movieBuilder_ == null) {
          if (!other.movie_.isEmpty()) {
            if (movie_.isEmpty()) {
              movie_ = other.movie_;
              bitField0_ = (bitField0_ & ~0x00000004);
            } else {
              ensureMovieIsMutable();
              movie_.addAll(other.movie_);
            }
            onChanged();
          }
        } else {
          if (!other.movie_.isEmpty()) {
            if (movieBuilder_.isEmpty()) {
              movieBuilder_.dispose();
              movieBuilder_ = null;
              movie_ = other.movie_;
              bitField0_ = (bitField0_ & ~0x00000004);
              movieBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getMovieFieldBuilder() : null;
            } else {
              movieBuilder_.addAllMessages(other.movie_);
            }
          }
        }
        if (other.hasSex()) {
          setSex(other.getSex());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        if (!hasName()) {
          return false;
        }
        if (!hasSurname()) {
          return false;
        }
        for (int i = 0; i < getMovieCount(); i++) {
          if (!getMovie(i).isInitialized()) {
            return false;
          }
        }
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        it.ewlab.actor.ActorOuterClass.Actor parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (it.ewlab.actor.ActorOuterClass.Actor) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.lang.Object name_ = "";
      /**
       * <code>required string name = 1;</code>
       * @return Whether the name field is set.
       */
      public boolean hasName() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>required string name = 1;</code>
       * @return The name.
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          if (bs.isValidUtf8()) {
            name_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>required string name = 1;</code>
       * @return The bytes for name.
       */
      public com.google.protobuf.ByteString
          getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>required string name = 1;</code>
       * @param value The name to set.
       * @return This builder for chaining.
       */
      public Builder setName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        name_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required string name = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearName() {
        bitField0_ = (bitField0_ & ~0x00000001);
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       * <code>required string name = 1;</code>
       * @param value The bytes for name to set.
       * @return This builder for chaining.
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        name_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object surname_ = "";
      /**
       * <code>required string surname = 2;</code>
       * @return Whether the surname field is set.
       */
      public boolean hasSurname() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>required string surname = 2;</code>
       * @return The surname.
       */
      public java.lang.String getSurname() {
        java.lang.Object ref = surname_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          if (bs.isValidUtf8()) {
            surname_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>required string surname = 2;</code>
       * @return The bytes for surname.
       */
      public com.google.protobuf.ByteString
          getSurnameBytes() {
        java.lang.Object ref = surname_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          surname_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>required string surname = 2;</code>
       * @param value The surname to set.
       * @return This builder for chaining.
       */
      public Builder setSurname(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        surname_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required string surname = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearSurname() {
        bitField0_ = (bitField0_ & ~0x00000002);
        surname_ = getDefaultInstance().getSurname();
        onChanged();
        return this;
      }
      /**
       * <code>required string surname = 2;</code>
       * @param value The bytes for surname to set.
       * @return This builder for chaining.
       */
      public Builder setSurnameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        surname_ = value;
        onChanged();
        return this;
      }

      private java.util.List<it.ewlab.actor.ActorOuterClass.Actor.Movie> movie_ =
        java.util.Collections.emptyList();
      private void ensureMovieIsMutable() {
        if (!((bitField0_ & 0x00000004) != 0)) {
          movie_ = new java.util.ArrayList<it.ewlab.actor.ActorOuterClass.Actor.Movie>(movie_);
          bitField0_ |= 0x00000004;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          it.ewlab.actor.ActorOuterClass.Actor.Movie, it.ewlab.actor.ActorOuterClass.Actor.Movie.Builder, it.ewlab.actor.ActorOuterClass.Actor.MovieOrBuilder> movieBuilder_;

      /**
       * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
       */
      public java.util.List<it.ewlab.actor.ActorOuterClass.Actor.Movie> getMovieList() {
        if (movieBuilder_ == null) {
          return java.util.Collections.unmodifiableList(movie_);
        } else {
          return movieBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
       */
      public int getMovieCount() {
        if (movieBuilder_ == null) {
          return movie_.size();
        } else {
          return movieBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
       */
      public it.ewlab.actor.ActorOuterClass.Actor.Movie getMovie(int index) {
        if (movieBuilder_ == null) {
          return movie_.get(index);
        } else {
          return movieBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
       */
      public Builder setMovie(
          int index, it.ewlab.actor.ActorOuterClass.Actor.Movie value) {
        if (movieBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMovieIsMutable();
          movie_.set(index, value);
          onChanged();
        } else {
          movieBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
       */
      public Builder setMovie(
          int index, it.ewlab.actor.ActorOuterClass.Actor.Movie.Builder builderForValue) {
        if (movieBuilder_ == null) {
          ensureMovieIsMutable();
          movie_.set(index, builderForValue.build());
          onChanged();
        } else {
          movieBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
       */
      public Builder addMovie(it.ewlab.actor.ActorOuterClass.Actor.Movie value) {
        if (movieBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMovieIsMutable();
          movie_.add(value);
          onChanged();
        } else {
          movieBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
       */
      public Builder addMovie(
          int index, it.ewlab.actor.ActorOuterClass.Actor.Movie value) {
        if (movieBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMovieIsMutable();
          movie_.add(index, value);
          onChanged();
        } else {
          movieBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
       */
      public Builder addMovie(
          it.ewlab.actor.ActorOuterClass.Actor.Movie.Builder builderForValue) {
        if (movieBuilder_ == null) {
          ensureMovieIsMutable();
          movie_.add(builderForValue.build());
          onChanged();
        } else {
          movieBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
       */
      public Builder addMovie(
          int index, it.ewlab.actor.ActorOuterClass.Actor.Movie.Builder builderForValue) {
        if (movieBuilder_ == null) {
          ensureMovieIsMutable();
          movie_.add(index, builderForValue.build());
          onChanged();
        } else {
          movieBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
       */
      public Builder addAllMovie(
          java.lang.Iterable<? extends it.ewlab.actor.ActorOuterClass.Actor.Movie> values) {
        if (movieBuilder_ == null) {
          ensureMovieIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, movie_);
          onChanged();
        } else {
          movieBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
       */
      public Builder clearMovie() {
        if (movieBuilder_ == null) {
          movie_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
        } else {
          movieBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
       */
      public Builder removeMovie(int index) {
        if (movieBuilder_ == null) {
          ensureMovieIsMutable();
          movie_.remove(index);
          onChanged();
        } else {
          movieBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
       */
      public it.ewlab.actor.ActorOuterClass.Actor.Movie.Builder getMovieBuilder(
          int index) {
        return getMovieFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
       */
      public it.ewlab.actor.ActorOuterClass.Actor.MovieOrBuilder getMovieOrBuilder(
          int index) {
        if (movieBuilder_ == null) {
          return movie_.get(index);  } else {
          return movieBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
       */
      public java.util.List<? extends it.ewlab.actor.ActorOuterClass.Actor.MovieOrBuilder> 
           getMovieOrBuilderList() {
        if (movieBuilder_ != null) {
          return movieBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(movie_);
        }
      }
      /**
       * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
       */
      public it.ewlab.actor.ActorOuterClass.Actor.Movie.Builder addMovieBuilder() {
        return getMovieFieldBuilder().addBuilder(
            it.ewlab.actor.ActorOuterClass.Actor.Movie.getDefaultInstance());
      }
      /**
       * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
       */
      public it.ewlab.actor.ActorOuterClass.Actor.Movie.Builder addMovieBuilder(
          int index) {
        return getMovieFieldBuilder().addBuilder(
            index, it.ewlab.actor.ActorOuterClass.Actor.Movie.getDefaultInstance());
      }
      /**
       * <code>repeated .it.ewlab.actor.Actor.Movie movie = 3;</code>
       */
      public java.util.List<it.ewlab.actor.ActorOuterClass.Actor.Movie.Builder> 
           getMovieBuilderList() {
        return getMovieFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          it.ewlab.actor.ActorOuterClass.Actor.Movie, it.ewlab.actor.ActorOuterClass.Actor.Movie.Builder, it.ewlab.actor.ActorOuterClass.Actor.MovieOrBuilder> 
          getMovieFieldBuilder() {
        if (movieBuilder_ == null) {
          movieBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              it.ewlab.actor.ActorOuterClass.Actor.Movie, it.ewlab.actor.ActorOuterClass.Actor.Movie.Builder, it.ewlab.actor.ActorOuterClass.Actor.MovieOrBuilder>(
                  movie_,
                  ((bitField0_ & 0x00000004) != 0),
                  getParentForChildren(),
                  isClean());
          movie_ = null;
        }
        return movieBuilder_;
      }

      private int sex_ = 0;
      /**
       * <code>optional .it.ewlab.actor.Actor.Sex sex = 4;</code>
       * @return Whether the sex field is set.
       */
      public boolean hasSex() {
        return ((bitField0_ & 0x00000008) != 0);
      }
      /**
       * <code>optional .it.ewlab.actor.Actor.Sex sex = 4;</code>
       * @return The sex.
       */
      public it.ewlab.actor.ActorOuterClass.Actor.Sex getSex() {
        @SuppressWarnings("deprecation")
        it.ewlab.actor.ActorOuterClass.Actor.Sex result = it.ewlab.actor.ActorOuterClass.Actor.Sex.valueOf(sex_);
        return result == null ? it.ewlab.actor.ActorOuterClass.Actor.Sex.MALE : result;
      }
      /**
       * <code>optional .it.ewlab.actor.Actor.Sex sex = 4;</code>
       * @param value The sex to set.
       * @return This builder for chaining.
       */
      public Builder setSex(it.ewlab.actor.ActorOuterClass.Actor.Sex value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000008;
        sex_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <code>optional .it.ewlab.actor.Actor.Sex sex = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearSex() {
        bitField0_ = (bitField0_ & ~0x00000008);
        sex_ = 0;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:it.ewlab.actor.Actor)
    }

    // @@protoc_insertion_point(class_scope:it.ewlab.actor.Actor)
    private static final it.ewlab.actor.ActorOuterClass.Actor DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new it.ewlab.actor.ActorOuterClass.Actor();
    }

    public static it.ewlab.actor.ActorOuterClass.Actor getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser<Actor>
        PARSER = new com.google.protobuf.AbstractParser<Actor>() {
      @java.lang.Override
      public Actor parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Actor(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<Actor> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<Actor> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public it.ewlab.actor.ActorOuterClass.Actor getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_it_ewlab_actor_Actor_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_it_ewlab_actor_Actor_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_it_ewlab_actor_Actor_Movie_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_it_ewlab_actor_Actor_Movie_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\013Actor.proto\022\016it.ewlab.actor\"\275\001\n\005Actor\022" +
      "\014\n\004name\030\001 \002(\t\022\017\n\007surname\030\002 \002(\t\022*\n\005movie\030" +
      "\003 \003(\0132\033.it.ewlab.actor.Actor.Movie\022&\n\003se" +
      "x\030\004 \001(\0162\031.it.ewlab.actor.Actor.Sex\032$\n\005Mo" +
      "vie\022\r\n\005title\030\001 \002(\t\022\014\n\004year\030\002 \002(\005\"\033\n\003Sex\022" +
      "\010\n\004MALE\020\000\022\n\n\006FEMALE\020\001"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_it_ewlab_actor_Actor_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_it_ewlab_actor_Actor_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_it_ewlab_actor_Actor_descriptor,
        new java.lang.String[] { "Name", "Surname", "Movie", "Sex", });
    internal_static_it_ewlab_actor_Actor_Movie_descriptor =
      internal_static_it_ewlab_actor_Actor_descriptor.getNestedTypes().get(0);
    internal_static_it_ewlab_actor_Actor_Movie_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_it_ewlab_actor_Actor_Movie_descriptor,
        new java.lang.String[] { "Title", "Year", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
