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

main.java.com.streamlayer.sports.soccer.SoccerMatchPlayer 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/soccer/soccer.proto

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

/**
 * Protobuf type {@code streamlayer.sports.soccer.SoccerMatchPlayer}
 */
public  final class SoccerMatchPlayer extends
    com.google.protobuf.GeneratedMessageLite<
        SoccerMatchPlayer, SoccerMatchPlayer.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.sports.soccer.SoccerMatchPlayer)
    SoccerMatchPlayerOrBuilder {
  private SoccerMatchPlayer() {
    firstName_ = "";
    lastName_ = "";
    displayName_ = "";
    photo_ = "";
    position_ = "";
  }
  public static final int FIRST_NAME_FIELD_NUMBER = 1;
  private java.lang.String firstName_;
  /**
   * string first_name = 1 [json_name = "firstName"];
   * @return The firstName.
   */
  @java.lang.Override
  public java.lang.String getFirstName() {
    return firstName_;
  }
  /**
   * string first_name = 1 [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 = 1 [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 = 1 [json_name = "firstName"];
   */
  private void clearFirstName() {

    firstName_ = getDefaultInstance().getFirstName();
  }
  /**
   * string first_name = 1 [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 = 2;
  private java.lang.String lastName_;
  /**
   * string last_name = 2 [json_name = "lastName"];
   * @return The lastName.
   */
  @java.lang.Override
  public java.lang.String getLastName() {
    return lastName_;
  }
  /**
   * string last_name = 2 [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 = 2 [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 = 2 [json_name = "lastName"];
   */
  private void clearLastName() {

    lastName_ = getDefaultInstance().getLastName();
  }
  /**
   * string last_name = 2 [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 = 3;
  private java.lang.String displayName_;
  /**
   * string display_name = 3 [json_name = "displayName"];
   * @return The displayName.
   */
  @java.lang.Override
  public java.lang.String getDisplayName() {
    return displayName_;
  }
  /**
   * string display_name = 3 [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 = 3 [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 = 3 [json_name = "displayName"];
   */
  private void clearDisplayName() {

    displayName_ = getDefaultInstance().getDisplayName();
  }
  /**
   * string display_name = 3 [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 PHOTO_FIELD_NUMBER = 4;
  private java.lang.String photo_;
  /**
   * string photo = 4 [json_name = "photo"];
   * @return The photo.
   */
  @java.lang.Override
  public java.lang.String getPhoto() {
    return photo_;
  }
  /**
   * string photo = 4 [json_name = "photo"];
   * @return The bytes for photo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPhotoBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(photo_);
  }
  /**
   * string photo = 4 [json_name = "photo"];
   * @param value The photo to set.
   */
  private void setPhoto(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    photo_ = value;
  }
  /**
   * string photo = 4 [json_name = "photo"];
   */
  private void clearPhoto() {

    photo_ = getDefaultInstance().getPhoto();
  }
  /**
   * string photo = 4 [json_name = "photo"];
   * @param value The bytes for photo to set.
   */
  private void setPhotoBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    photo_ = value.toStringUtf8();

  }

  public static final int POSITION_FIELD_NUMBER = 5;
  private java.lang.String position_;
  /**
   * string position = 5 [json_name = "position"];
   * @return The position.
   */
  @java.lang.Override
  public java.lang.String getPosition() {
    return position_;
  }
  /**
   * string position = 5 [json_name = "position"];
   * @return The bytes for position.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPositionBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(position_);
  }
  /**
   * string position = 5 [json_name = "position"];
   * @param value The position to set.
   */
  private void setPosition(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    position_ = value;
  }
  /**
   * string position = 5 [json_name = "position"];
   */
  private void clearPosition() {

    position_ = getDefaultInstance().getPosition();
  }
  /**
   * string position = 5 [json_name = "position"];
   * @param value The bytes for position to set.
   */
  private void setPositionBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    position_ = value.toStringUtf8();

  }

  public static final int JERSEY_FIELD_NUMBER = 6;
  private int jersey_;
  /**
   * int32 jersey = 6 [json_name = "jersey"];
   * @return The jersey.
   */
  @java.lang.Override
  public int getJersey() {
    return jersey_;
  }
  /**
   * int32 jersey = 6 [json_name = "jersey"];
   * @param value The jersey to set.
   */
  private void setJersey(int value) {
    
    jersey_ = value;
  }
  /**
   * int32 jersey = 6 [json_name = "jersey"];
   */
  private void clearJersey() {

    jersey_ = 0;
  }

  public static com.streamlayer.sports.soccer.SoccerMatchPlayer parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.sports.soccer.SoccerMatchPlayer 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.soccer.SoccerMatchPlayer 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.soccer.SoccerMatchPlayer 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.soccer.SoccerMatchPlayer parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.sports.soccer.SoccerMatchPlayer 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.soccer.SoccerMatchPlayer parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.sports.soccer.SoccerMatchPlayer 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.soccer.SoccerMatchPlayer parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input);
  }

  public static com.streamlayer.sports.soccer.SoccerMatchPlayer 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.soccer.SoccerMatchPlayer parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.sports.soccer.SoccerMatchPlayer 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.soccer.SoccerMatchPlayer prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

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


    /**
     * string first_name = 1 [json_name = "firstName"];
     * @return The firstName.
     */
    @java.lang.Override
    public java.lang.String getFirstName() {
      return instance.getFirstName();
    }
    /**
     * string first_name = 1 [json_name = "firstName"];
     * @return The bytes for firstName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getFirstNameBytes() {
      return instance.getFirstNameBytes();
    }
    /**
     * string first_name = 1 [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 = 1 [json_name = "firstName"];
     * @return This builder for chaining.
     */
    public Builder clearFirstName() {
      copyOnWrite();
      instance.clearFirstName();
      return this;
    }
    /**
     * string first_name = 1 [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 = 2 [json_name = "lastName"];
     * @return The lastName.
     */
    @java.lang.Override
    public java.lang.String getLastName() {
      return instance.getLastName();
    }
    /**
     * string last_name = 2 [json_name = "lastName"];
     * @return The bytes for lastName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getLastNameBytes() {
      return instance.getLastNameBytes();
    }
    /**
     * string last_name = 2 [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 = 2 [json_name = "lastName"];
     * @return This builder for chaining.
     */
    public Builder clearLastName() {
      copyOnWrite();
      instance.clearLastName();
      return this;
    }
    /**
     * string last_name = 2 [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 = 3 [json_name = "displayName"];
     * @return The displayName.
     */
    @java.lang.Override
    public java.lang.String getDisplayName() {
      return instance.getDisplayName();
    }
    /**
     * string display_name = 3 [json_name = "displayName"];
     * @return The bytes for displayName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getDisplayNameBytes() {
      return instance.getDisplayNameBytes();
    }
    /**
     * string display_name = 3 [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 = 3 [json_name = "displayName"];
     * @return This builder for chaining.
     */
    public Builder clearDisplayName() {
      copyOnWrite();
      instance.clearDisplayName();
      return this;
    }
    /**
     * string display_name = 3 [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 photo = 4 [json_name = "photo"];
     * @return The photo.
     */
    @java.lang.Override
    public java.lang.String getPhoto() {
      return instance.getPhoto();
    }
    /**
     * string photo = 4 [json_name = "photo"];
     * @return The bytes for photo.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getPhotoBytes() {
      return instance.getPhotoBytes();
    }
    /**
     * string photo = 4 [json_name = "photo"];
     * @param value The photo to set.
     * @return This builder for chaining.
     */
    public Builder setPhoto(
        java.lang.String value) {
      copyOnWrite();
      instance.setPhoto(value);
      return this;
    }
    /**
     * string photo = 4 [json_name = "photo"];
     * @return This builder for chaining.
     */
    public Builder clearPhoto() {
      copyOnWrite();
      instance.clearPhoto();
      return this;
    }
    /**
     * string photo = 4 [json_name = "photo"];
     * @param value The bytes for photo to set.
     * @return This builder for chaining.
     */
    public Builder setPhotoBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setPhotoBytes(value);
      return this;
    }

    /**
     * string position = 5 [json_name = "position"];
     * @return The position.
     */
    @java.lang.Override
    public java.lang.String getPosition() {
      return instance.getPosition();
    }
    /**
     * string position = 5 [json_name = "position"];
     * @return The bytes for position.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getPositionBytes() {
      return instance.getPositionBytes();
    }
    /**
     * string position = 5 [json_name = "position"];
     * @param value The position to set.
     * @return This builder for chaining.
     */
    public Builder setPosition(
        java.lang.String value) {
      copyOnWrite();
      instance.setPosition(value);
      return this;
    }
    /**
     * string position = 5 [json_name = "position"];
     * @return This builder for chaining.
     */
    public Builder clearPosition() {
      copyOnWrite();
      instance.clearPosition();
      return this;
    }
    /**
     * string position = 5 [json_name = "position"];
     * @param value The bytes for position to set.
     * @return This builder for chaining.
     */
    public Builder setPositionBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setPositionBytes(value);
      return this;
    }

    /**
     * int32 jersey = 6 [json_name = "jersey"];
     * @return The jersey.
     */
    @java.lang.Override
    public int getJersey() {
      return instance.getJersey();
    }
    /**
     * int32 jersey = 6 [json_name = "jersey"];
     * @param value The jersey to set.
     * @return This builder for chaining.
     */
    public Builder setJersey(int value) {
      copyOnWrite();
      instance.setJersey(value);
      return this;
    }
    /**
     * int32 jersey = 6 [json_name = "jersey"];
     * @return This builder for chaining.
     */
    public Builder clearJersey() {
      copyOnWrite();
      instance.clearJersey();
      return this;
    }

    // @@protoc_insertion_point(builder_scope:streamlayer.sports.soccer.SoccerMatchPlayer)
  }
  @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.soccer.SoccerMatchPlayer();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "firstName_",
            "lastName_",
            "displayName_",
            "photo_",
            "position_",
            "jersey_",
          };
          java.lang.String info =
              "\u0000\u0006\u0000\u0000\u0001\u0006\u0006\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
              "\u0003\u0208\u0004\u0208\u0005\u0208\u0006\u0004";
          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.soccer.SoccerMatchPlayer.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.soccer.SoccerMatchPlayer)
  private static final com.streamlayer.sports.soccer.SoccerMatchPlayer DEFAULT_INSTANCE;
  static {
    SoccerMatchPlayer defaultInstance = new SoccerMatchPlayer();
    // New instances are implicitly immutable so no need to make
    // immutable.
    DEFAULT_INSTANCE = defaultInstance;
    com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
      SoccerMatchPlayer.class, defaultInstance);
  }

  public static com.streamlayer.sports.soccer.SoccerMatchPlayer 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