All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.java.com.streamlayer.sports.common.Player Maven / Gradle / Ivy

There is a newer version: 5.133.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: streamlayer/sports/sports_common.proto

// Protobuf Java Version: 3.25.3
package com.streamlayer.sports.common;

/**
 * Protobuf type {@code streamlayer.sports.Player}
 */
public  final class Player extends
    com.google.protobuf.GeneratedMessageLite<
        Player, Player.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.sports.Player)
    PlayerOrBuilder {
  private Player() {
    customFields_ = "";
    firstName_ = "";
    lastName_ = "";
    displayName_ = "";
    birthDate_ = "";
    teams_ = emptyProtobufList();
  }
  private int bitField0_;
  public static final int ID_FIELD_NUMBER = 1;
  private long id_;
  /**
   * uint64 id = 1 [json_name = "id"];
   * @return The id.
   */
  @java.lang.Override
  public long getId() {
    return id_;
  }
  /**
   * uint64 id = 1 [json_name = "id"];
   * @param value The id to set.
   */
  private void setId(long value) {
    
    id_ = value;
  }
  /**
   * uint64 id = 1 [json_name = "id"];
   */
  private void clearId() {

    id_ = 0L;
  }

  public static final int CUSTOM_FIELDS_FIELD_NUMBER = 8;
  private java.lang.String customFields_;
  /**
   * string custom_fields = 8 [json_name = "customFields"];
   * @return The customFields.
   */
  @java.lang.Override
  public java.lang.String getCustomFields() {
    return customFields_;
  }
  /**
   * string custom_fields = 8 [json_name = "customFields"];
   * @return The bytes for customFields.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCustomFieldsBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(customFields_);
  }
  /**
   * string custom_fields = 8 [json_name = "customFields"];
   * @param value The customFields to set.
   */
  private void setCustomFields(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    customFields_ = value;
  }
  /**
   * string custom_fields = 8 [json_name = "customFields"];
   */
  private void clearCustomFields() {

    customFields_ = getDefaultInstance().getCustomFields();
  }
  /**
   * string custom_fields = 8 [json_name = "customFields"];
   * @param value The bytes for customFields to set.
   */
  private void setCustomFieldsBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    customFields_ = value.toStringUtf8();

  }

  public static final int FIRST_NAME_FIELD_NUMBER = 9;
  private java.lang.String firstName_;
  /**
   * string first_name = 9 [json_name = "firstName"];
   * @return The firstName.
   */
  @java.lang.Override
  public java.lang.String getFirstName() {
    return firstName_;
  }
  /**
   * string first_name = 9 [json_name = "firstName"];
   * @return The bytes for firstName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getFirstNameBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(firstName_);
  }
  /**
   * string first_name = 9 [json_name = "firstName"];
   * @param value The firstName to set.
   */
  private void setFirstName(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    firstName_ = value;
  }
  /**
   * string first_name = 9 [json_name = "firstName"];
   */
  private void clearFirstName() {

    firstName_ = getDefaultInstance().getFirstName();
  }
  /**
   * string first_name = 9 [json_name = "firstName"];
   * @param value The bytes for firstName to set.
   */
  private void setFirstNameBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    firstName_ = value.toStringUtf8();

  }

  public static final int LAST_NAME_FIELD_NUMBER = 10;
  private java.lang.String lastName_;
  /**
   * string last_name = 10 [json_name = "lastName"];
   * @return The lastName.
   */
  @java.lang.Override
  public java.lang.String getLastName() {
    return lastName_;
  }
  /**
   * string last_name = 10 [json_name = "lastName"];
   * @return The bytes for lastName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getLastNameBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(lastName_);
  }
  /**
   * string last_name = 10 [json_name = "lastName"];
   * @param value The lastName to set.
   */
  private void setLastName(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    lastName_ = value;
  }
  /**
   * string last_name = 10 [json_name = "lastName"];
   */
  private void clearLastName() {

    lastName_ = getDefaultInstance().getLastName();
  }
  /**
   * string last_name = 10 [json_name = "lastName"];
   * @param value The bytes for lastName to set.
   */
  private void setLastNameBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    lastName_ = value.toStringUtf8();

  }

  public static final int DISPLAY_NAME_FIELD_NUMBER = 14;
  private java.lang.String displayName_;
  /**
   * string display_name = 14 [json_name = "displayName"];
   * @return The displayName.
   */
  @java.lang.Override
  public java.lang.String getDisplayName() {
    return displayName_;
  }
  /**
   * string display_name = 14 [json_name = "displayName"];
   * @return The bytes for displayName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDisplayNameBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(displayName_);
  }
  /**
   * string display_name = 14 [json_name = "displayName"];
   * @param value The displayName to set.
   */
  private void setDisplayName(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    displayName_ = value;
  }
  /**
   * string display_name = 14 [json_name = "displayName"];
   */
  private void clearDisplayName() {

    displayName_ = getDefaultInstance().getDisplayName();
  }
  /**
   * string display_name = 14 [json_name = "displayName"];
   * @param value The bytes for displayName to set.
   */
  private void setDisplayNameBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    displayName_ = value.toStringUtf8();

  }

  public static final int BIRTH_DATE_FIELD_NUMBER = 11;
  private java.lang.String birthDate_;
  /**
   * string birth_date = 11 [json_name = "birthDate"];
   * @return The birthDate.
   */
  @java.lang.Override
  public java.lang.String getBirthDate() {
    return birthDate_;
  }
  /**
   * string birth_date = 11 [json_name = "birthDate"];
   * @return The bytes for birthDate.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getBirthDateBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(birthDate_);
  }
  /**
   * string birth_date = 11 [json_name = "birthDate"];
   * @param value The birthDate to set.
   */
  private void setBirthDate(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    birthDate_ = value;
  }
  /**
   * string birth_date = 11 [json_name = "birthDate"];
   */
  private void clearBirthDate() {

    birthDate_ = getDefaultInstance().getBirthDate();
  }
  /**
   * string birth_date = 11 [json_name = "birthDate"];
   * @param value The bytes for birthDate to set.
   */
  private void setBirthDateBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    birthDate_ = value.toStringUtf8();

  }

  public static final int NATIONALITY_FIELD_NUMBER = 12;
  private com.streamlayer.sports.common.Country nationality_;
  /**
   * .streamlayer.sports.Country nationality = 12 [json_name = "nationality"];
   */
  @java.lang.Override
  public boolean hasNationality() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .streamlayer.sports.Country nationality = 12 [json_name = "nationality"];
   */
  @java.lang.Override
  public com.streamlayer.sports.common.Country getNationality() {
    return nationality_ == null ? com.streamlayer.sports.common.Country.getDefaultInstance() : nationality_;
  }
  /**
   * .streamlayer.sports.Country nationality = 12 [json_name = "nationality"];
   */
  private void setNationality(com.streamlayer.sports.common.Country value) {
    value.getClass();
  nationality_ = value;
    bitField0_ |= 0x00000001;
    }
  /**
   * .streamlayer.sports.Country nationality = 12 [json_name = "nationality"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeNationality(com.streamlayer.sports.common.Country value) {
    value.getClass();
  if (nationality_ != null &&
        nationality_ != com.streamlayer.sports.common.Country.getDefaultInstance()) {
      nationality_ =
        com.streamlayer.sports.common.Country.newBuilder(nationality_).mergeFrom(value).buildPartial();
    } else {
      nationality_ = value;
    }
    bitField0_ |= 0x00000001;
  }
  /**
   * .streamlayer.sports.Country nationality = 12 [json_name = "nationality"];
   */
  private void clearNationality() {  nationality_ = null;
    bitField0_ = (bitField0_ & ~0x00000001);
  }

  public static final int ATTRIBUTES_FIELD_NUMBER = 13;
  private com.streamlayer.sports.common.PlayerAttributes attributes_;
  /**
   * .streamlayer.sports.PlayerAttributes attributes = 13 [json_name = "attributes"];
   */
  @java.lang.Override
  public boolean hasAttributes() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * .streamlayer.sports.PlayerAttributes attributes = 13 [json_name = "attributes"];
   */
  @java.lang.Override
  public com.streamlayer.sports.common.PlayerAttributes getAttributes() {
    return attributes_ == null ? com.streamlayer.sports.common.PlayerAttributes.getDefaultInstance() : attributes_;
  }
  /**
   * .streamlayer.sports.PlayerAttributes attributes = 13 [json_name = "attributes"];
   */
  private void setAttributes(com.streamlayer.sports.common.PlayerAttributes value) {
    value.getClass();
  attributes_ = value;
    bitField0_ |= 0x00000002;
    }
  /**
   * .streamlayer.sports.PlayerAttributes attributes = 13 [json_name = "attributes"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeAttributes(com.streamlayer.sports.common.PlayerAttributes value) {
    value.getClass();
  if (attributes_ != null &&
        attributes_ != com.streamlayer.sports.common.PlayerAttributes.getDefaultInstance()) {
      attributes_ =
        com.streamlayer.sports.common.PlayerAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial();
    } else {
      attributes_ = value;
    }
    bitField0_ |= 0x00000002;
  }
  /**
   * .streamlayer.sports.PlayerAttributes attributes = 13 [json_name = "attributes"];
   */
  private void clearAttributes() {  attributes_ = null;
    bitField0_ = (bitField0_ & ~0x00000002);
  }

  public static final int TEAMS_FIELD_NUMBER = 15;
  private com.google.protobuf.Internal.ProtobufList teams_;
  /**
   * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
   */
  @java.lang.Override
  public java.util.List getTeamsList() {
    return teams_;
  }
  /**
   * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
   */
  public java.util.List 
      getTeamsOrBuilderList() {
    return teams_;
  }
  /**
   * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
   */
  @java.lang.Override
  public int getTeamsCount() {
    return teams_.size();
  }
  /**
   * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
   */
  @java.lang.Override
  public com.streamlayer.sports.common.PlayerTeam getTeams(int index) {
    return teams_.get(index);
  }
  /**
   * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
   */
  public com.streamlayer.sports.common.PlayerTeamOrBuilder getTeamsOrBuilder(
      int index) {
    return teams_.get(index);
  }
  private void ensureTeamsIsMutable() {
    com.google.protobuf.Internal.ProtobufList tmp = teams_;
    if (!tmp.isModifiable()) {
      teams_ =
          com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
     }
  }

  /**
   * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
   */
  private void setTeams(
      int index, com.streamlayer.sports.common.PlayerTeam value) {
    value.getClass();
  ensureTeamsIsMutable();
    teams_.set(index, value);
  }
  /**
   * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
   */
  private void addTeams(com.streamlayer.sports.common.PlayerTeam value) {
    value.getClass();
  ensureTeamsIsMutable();
    teams_.add(value);
  }
  /**
   * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
   */
  private void addTeams(
      int index, com.streamlayer.sports.common.PlayerTeam value) {
    value.getClass();
  ensureTeamsIsMutable();
    teams_.add(index, value);
  }
  /**
   * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
   */
  private void addAllTeams(
      java.lang.Iterable values) {
    ensureTeamsIsMutable();
    com.google.protobuf.AbstractMessageLite.addAll(
        values, teams_);
  }
  /**
   * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
   */
  private void clearTeams() {
    teams_ = emptyProtobufList();
  }
  /**
   * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
   */
  private void removeTeams(int index) {
    ensureTeamsIsMutable();
    teams_.remove(index);
  }

  public static com.streamlayer.sports.common.Player parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.sports.common.Player parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.sports.common.Player parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.sports.common.Player parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.sports.common.Player parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.sports.common.Player parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.sports.common.Player parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.sports.common.Player parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input, extensionRegistry);
  }

  public static com.streamlayer.sports.common.Player parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input);
  }

  public static com.streamlayer.sports.common.Player parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
  }
  public static com.streamlayer.sports.common.Player parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.sports.common.Player parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input, extensionRegistry);
  }

  public static Builder newBuilder() {
    return (Builder) DEFAULT_INSTANCE.createBuilder();
  }
  public static Builder newBuilder(com.streamlayer.sports.common.Player prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

  /**
   * Protobuf type {@code streamlayer.sports.Player}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageLite.Builder<
        com.streamlayer.sports.common.Player, Builder> implements
      // @@protoc_insertion_point(builder_implements:streamlayer.sports.Player)
      com.streamlayer.sports.common.PlayerOrBuilder {
    // Construct using com.streamlayer.sports.common.Player.newBuilder()
    private Builder() {
      super(DEFAULT_INSTANCE);
    }


    /**
     * uint64 id = 1 [json_name = "id"];
     * @return The id.
     */
    @java.lang.Override
    public long getId() {
      return instance.getId();
    }
    /**
     * uint64 id = 1 [json_name = "id"];
     * @param value The id to set.
     * @return This builder for chaining.
     */
    public Builder setId(long value) {
      copyOnWrite();
      instance.setId(value);
      return this;
    }
    /**
     * uint64 id = 1 [json_name = "id"];
     * @return This builder for chaining.
     */
    public Builder clearId() {
      copyOnWrite();
      instance.clearId();
      return this;
    }

    /**
     * string custom_fields = 8 [json_name = "customFields"];
     * @return The customFields.
     */
    @java.lang.Override
    public java.lang.String getCustomFields() {
      return instance.getCustomFields();
    }
    /**
     * string custom_fields = 8 [json_name = "customFields"];
     * @return The bytes for customFields.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getCustomFieldsBytes() {
      return instance.getCustomFieldsBytes();
    }
    /**
     * string custom_fields = 8 [json_name = "customFields"];
     * @param value The customFields to set.
     * @return This builder for chaining.
     */
    public Builder setCustomFields(
        java.lang.String value) {
      copyOnWrite();
      instance.setCustomFields(value);
      return this;
    }
    /**
     * string custom_fields = 8 [json_name = "customFields"];
     * @return This builder for chaining.
     */
    public Builder clearCustomFields() {
      copyOnWrite();
      instance.clearCustomFields();
      return this;
    }
    /**
     * string custom_fields = 8 [json_name = "customFields"];
     * @param value The bytes for customFields to set.
     * @return This builder for chaining.
     */
    public Builder setCustomFieldsBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setCustomFieldsBytes(value);
      return this;
    }

    /**
     * string first_name = 9 [json_name = "firstName"];
     * @return The firstName.
     */
    @java.lang.Override
    public java.lang.String getFirstName() {
      return instance.getFirstName();
    }
    /**
     * string first_name = 9 [json_name = "firstName"];
     * @return The bytes for firstName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getFirstNameBytes() {
      return instance.getFirstNameBytes();
    }
    /**
     * string first_name = 9 [json_name = "firstName"];
     * @param value The firstName to set.
     * @return This builder for chaining.
     */
    public Builder setFirstName(
        java.lang.String value) {
      copyOnWrite();
      instance.setFirstName(value);
      return this;
    }
    /**
     * string first_name = 9 [json_name = "firstName"];
     * @return This builder for chaining.
     */
    public Builder clearFirstName() {
      copyOnWrite();
      instance.clearFirstName();
      return this;
    }
    /**
     * string first_name = 9 [json_name = "firstName"];
     * @param value The bytes for firstName to set.
     * @return This builder for chaining.
     */
    public Builder setFirstNameBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setFirstNameBytes(value);
      return this;
    }

    /**
     * string last_name = 10 [json_name = "lastName"];
     * @return The lastName.
     */
    @java.lang.Override
    public java.lang.String getLastName() {
      return instance.getLastName();
    }
    /**
     * string last_name = 10 [json_name = "lastName"];
     * @return The bytes for lastName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getLastNameBytes() {
      return instance.getLastNameBytes();
    }
    /**
     * string last_name = 10 [json_name = "lastName"];
     * @param value The lastName to set.
     * @return This builder for chaining.
     */
    public Builder setLastName(
        java.lang.String value) {
      copyOnWrite();
      instance.setLastName(value);
      return this;
    }
    /**
     * string last_name = 10 [json_name = "lastName"];
     * @return This builder for chaining.
     */
    public Builder clearLastName() {
      copyOnWrite();
      instance.clearLastName();
      return this;
    }
    /**
     * string last_name = 10 [json_name = "lastName"];
     * @param value The bytes for lastName to set.
     * @return This builder for chaining.
     */
    public Builder setLastNameBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setLastNameBytes(value);
      return this;
    }

    /**
     * string display_name = 14 [json_name = "displayName"];
     * @return The displayName.
     */
    @java.lang.Override
    public java.lang.String getDisplayName() {
      return instance.getDisplayName();
    }
    /**
     * string display_name = 14 [json_name = "displayName"];
     * @return The bytes for displayName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getDisplayNameBytes() {
      return instance.getDisplayNameBytes();
    }
    /**
     * string display_name = 14 [json_name = "displayName"];
     * @param value The displayName to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayName(
        java.lang.String value) {
      copyOnWrite();
      instance.setDisplayName(value);
      return this;
    }
    /**
     * string display_name = 14 [json_name = "displayName"];
     * @return This builder for chaining.
     */
    public Builder clearDisplayName() {
      copyOnWrite();
      instance.clearDisplayName();
      return this;
    }
    /**
     * string display_name = 14 [json_name = "displayName"];
     * @param value The bytes for displayName to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayNameBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setDisplayNameBytes(value);
      return this;
    }

    /**
     * string birth_date = 11 [json_name = "birthDate"];
     * @return The birthDate.
     */
    @java.lang.Override
    public java.lang.String getBirthDate() {
      return instance.getBirthDate();
    }
    /**
     * string birth_date = 11 [json_name = "birthDate"];
     * @return The bytes for birthDate.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getBirthDateBytes() {
      return instance.getBirthDateBytes();
    }
    /**
     * string birth_date = 11 [json_name = "birthDate"];
     * @param value The birthDate to set.
     * @return This builder for chaining.
     */
    public Builder setBirthDate(
        java.lang.String value) {
      copyOnWrite();
      instance.setBirthDate(value);
      return this;
    }
    /**
     * string birth_date = 11 [json_name = "birthDate"];
     * @return This builder for chaining.
     */
    public Builder clearBirthDate() {
      copyOnWrite();
      instance.clearBirthDate();
      return this;
    }
    /**
     * string birth_date = 11 [json_name = "birthDate"];
     * @param value The bytes for birthDate to set.
     * @return This builder for chaining.
     */
    public Builder setBirthDateBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setBirthDateBytes(value);
      return this;
    }

    /**
     * .streamlayer.sports.Country nationality = 12 [json_name = "nationality"];
     */
    @java.lang.Override
    public boolean hasNationality() {
      return instance.hasNationality();
    }
    /**
     * .streamlayer.sports.Country nationality = 12 [json_name = "nationality"];
     */
    @java.lang.Override
    public com.streamlayer.sports.common.Country getNationality() {
      return instance.getNationality();
    }
    /**
     * .streamlayer.sports.Country nationality = 12 [json_name = "nationality"];
     */
    public Builder setNationality(com.streamlayer.sports.common.Country value) {
      copyOnWrite();
      instance.setNationality(value);
      return this;
      }
    /**
     * .streamlayer.sports.Country nationality = 12 [json_name = "nationality"];
     */
    public Builder setNationality(
        com.streamlayer.sports.common.Country.Builder builderForValue) {
      copyOnWrite();
      instance.setNationality(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.sports.Country nationality = 12 [json_name = "nationality"];
     */
    public Builder mergeNationality(com.streamlayer.sports.common.Country value) {
      copyOnWrite();
      instance.mergeNationality(value);
      return this;
    }
    /**
     * .streamlayer.sports.Country nationality = 12 [json_name = "nationality"];
     */
    public Builder clearNationality() {  copyOnWrite();
      instance.clearNationality();
      return this;
    }

    /**
     * .streamlayer.sports.PlayerAttributes attributes = 13 [json_name = "attributes"];
     */
    @java.lang.Override
    public boolean hasAttributes() {
      return instance.hasAttributes();
    }
    /**
     * .streamlayer.sports.PlayerAttributes attributes = 13 [json_name = "attributes"];
     */
    @java.lang.Override
    public com.streamlayer.sports.common.PlayerAttributes getAttributes() {
      return instance.getAttributes();
    }
    /**
     * .streamlayer.sports.PlayerAttributes attributes = 13 [json_name = "attributes"];
     */
    public Builder setAttributes(com.streamlayer.sports.common.PlayerAttributes value) {
      copyOnWrite();
      instance.setAttributes(value);
      return this;
      }
    /**
     * .streamlayer.sports.PlayerAttributes attributes = 13 [json_name = "attributes"];
     */
    public Builder setAttributes(
        com.streamlayer.sports.common.PlayerAttributes.Builder builderForValue) {
      copyOnWrite();
      instance.setAttributes(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.sports.PlayerAttributes attributes = 13 [json_name = "attributes"];
     */
    public Builder mergeAttributes(com.streamlayer.sports.common.PlayerAttributes value) {
      copyOnWrite();
      instance.mergeAttributes(value);
      return this;
    }
    /**
     * .streamlayer.sports.PlayerAttributes attributes = 13 [json_name = "attributes"];
     */
    public Builder clearAttributes() {  copyOnWrite();
      instance.clearAttributes();
      return this;
    }

    /**
     * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
     */
    @java.lang.Override
    public java.util.List getTeamsList() {
      return java.util.Collections.unmodifiableList(
          instance.getTeamsList());
    }
    /**
     * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
     */
    @java.lang.Override
    public int getTeamsCount() {
      return instance.getTeamsCount();
    }/**
     * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
     */
    @java.lang.Override
    public com.streamlayer.sports.common.PlayerTeam getTeams(int index) {
      return instance.getTeams(index);
    }
    /**
     * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
     */
    public Builder setTeams(
        int index, com.streamlayer.sports.common.PlayerTeam value) {
      copyOnWrite();
      instance.setTeams(index, value);
      return this;
    }
    /**
     * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
     */
    public Builder setTeams(
        int index, com.streamlayer.sports.common.PlayerTeam.Builder builderForValue) {
      copyOnWrite();
      instance.setTeams(index,
          builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
     */
    public Builder addTeams(com.streamlayer.sports.common.PlayerTeam value) {
      copyOnWrite();
      instance.addTeams(value);
      return this;
    }
    /**
     * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
     */
    public Builder addTeams(
        int index, com.streamlayer.sports.common.PlayerTeam value) {
      copyOnWrite();
      instance.addTeams(index, value);
      return this;
    }
    /**
     * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
     */
    public Builder addTeams(
        com.streamlayer.sports.common.PlayerTeam.Builder builderForValue) {
      copyOnWrite();
      instance.addTeams(builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
     */
    public Builder addTeams(
        int index, com.streamlayer.sports.common.PlayerTeam.Builder builderForValue) {
      copyOnWrite();
      instance.addTeams(index,
          builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
     */
    public Builder addAllTeams(
        java.lang.Iterable values) {
      copyOnWrite();
      instance.addAllTeams(values);
      return this;
    }
    /**
     * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
     */
    public Builder clearTeams() {
      copyOnWrite();
      instance.clearTeams();
      return this;
    }
    /**
     * repeated .streamlayer.sports.PlayerTeam teams = 15 [json_name = "teams"];
     */
    public Builder removeTeams(int index) {
      copyOnWrite();
      instance.removeTeams(index);
      return this;
    }

    // @@protoc_insertion_point(builder_scope:streamlayer.sports.Player)
  }
  @java.lang.Override
  @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
  protected final java.lang.Object dynamicMethod(
      com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
      java.lang.Object arg0, java.lang.Object arg1) {
    switch (method) {
      case NEW_MUTABLE_INSTANCE: {
        return new com.streamlayer.sports.common.Player();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "bitField0_",
            "id_",
            "customFields_",
            "firstName_",
            "lastName_",
            "birthDate_",
            "nationality_",
            "attributes_",
            "displayName_",
            "teams_",
            com.streamlayer.sports.common.PlayerTeam.class,
          };
          java.lang.String info =
              "\u0000\t\u0000\u0001\u0001\u000f\t\u0000\u0001\u0000\u0001\u0003\b\u0208\t\u0208" +
              "\n\u0208\u000b\u0208\f\u1009\u0000\r\u1009\u0001\u000e\u0208\u000f\u001b";
          return newMessageInfo(DEFAULT_INSTANCE, info, objects);
      }
      // fall through
      case GET_DEFAULT_INSTANCE: {
        return DEFAULT_INSTANCE;
      }
      case GET_PARSER: {
        com.google.protobuf.Parser parser = PARSER;
        if (parser == null) {
          synchronized (com.streamlayer.sports.common.Player.class) {
            parser = PARSER;
            if (parser == null) {
              parser =
                  new DefaultInstanceBasedParser(
                      DEFAULT_INSTANCE);
              PARSER = parser;
            }
          }
        }
        return parser;
    }
    case GET_MEMOIZED_IS_INITIALIZED: {
      return (byte) 1;
    }
    case SET_MEMOIZED_IS_INITIALIZED: {
      return null;
    }
    }
    throw new UnsupportedOperationException();
  }


  // @@protoc_insertion_point(class_scope:streamlayer.sports.Player)
  private static final com.streamlayer.sports.common.Player DEFAULT_INSTANCE;
  static {
    Player defaultInstance = new Player();
    // New instances are implicitly immutable so no need to make
    // immutable.
    DEFAULT_INSTANCE = defaultInstance;
    com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
      Player.class, defaultInstance);
  }

  public static com.streamlayer.sports.common.Player getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static volatile com.google.protobuf.Parser PARSER;

  public static com.google.protobuf.Parser parser() {
    return DEFAULT_INSTANCE.getParserForType();
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy