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

main.java.com.streamlayer.sports.common.Venue 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.Venue}
 */
public  final class Venue extends
    com.google.protobuf.GeneratedMessageLite<
        Venue, Venue.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.sports.Venue)
    VenueOrBuilder {
  private Venue() {
    city_ = "";
    country_ = "";
    stadium_ = "";
  }
  public static final int CITY_FIELD_NUMBER = 1;
  private java.lang.String city_;
  /**
   * string city = 1 [json_name = "city"];
   * @return The city.
   */
  @java.lang.Override
  public java.lang.String getCity() {
    return city_;
  }
  /**
   * string city = 1 [json_name = "city"];
   * @return The bytes for city.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCityBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(city_);
  }
  /**
   * string city = 1 [json_name = "city"];
   * @param value The city to set.
   */
  private void setCity(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    city_ = value;
  }
  /**
   * string city = 1 [json_name = "city"];
   */
  private void clearCity() {

    city_ = getDefaultInstance().getCity();
  }
  /**
   * string city = 1 [json_name = "city"];
   * @param value The bytes for city to set.
   */
  private void setCityBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    city_ = value.toStringUtf8();

  }

  public static final int COUNTRY_FIELD_NUMBER = 2;
  private java.lang.String country_;
  /**
   * string country = 2 [json_name = "country"];
   * @return The country.
   */
  @java.lang.Override
  public java.lang.String getCountry() {
    return country_;
  }
  /**
   * string country = 2 [json_name = "country"];
   * @return The bytes for country.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCountryBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(country_);
  }
  /**
   * string country = 2 [json_name = "country"];
   * @param value The country to set.
   */
  private void setCountry(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    country_ = value;
  }
  /**
   * string country = 2 [json_name = "country"];
   */
  private void clearCountry() {

    country_ = getDefaultInstance().getCountry();
  }
  /**
   * string country = 2 [json_name = "country"];
   * @param value The bytes for country to set.
   */
  private void setCountryBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    country_ = value.toStringUtf8();

  }

  public static final int STADIUM_FIELD_NUMBER = 3;
  private java.lang.String stadium_;
  /**
   * string stadium = 3 [json_name = "stadium"];
   * @return The stadium.
   */
  @java.lang.Override
  public java.lang.String getStadium() {
    return stadium_;
  }
  /**
   * string stadium = 3 [json_name = "stadium"];
   * @return The bytes for stadium.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getStadiumBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(stadium_);
  }
  /**
   * string stadium = 3 [json_name = "stadium"];
   * @param value The stadium to set.
   */
  private void setStadium(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    stadium_ = value;
  }
  /**
   * string stadium = 3 [json_name = "stadium"];
   */
  private void clearStadium() {

    stadium_ = getDefaultInstance().getStadium();
  }
  /**
   * string stadium = 3 [json_name = "stadium"];
   * @param value The bytes for stadium to set.
   */
  private void setStadiumBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    stadium_ = value.toStringUtf8();

  }

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

  public static com.streamlayer.sports.common.Venue 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.Venue 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.Venue 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.Venue prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

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


    /**
     * string city = 1 [json_name = "city"];
     * @return The city.
     */
    @java.lang.Override
    public java.lang.String getCity() {
      return instance.getCity();
    }
    /**
     * string city = 1 [json_name = "city"];
     * @return The bytes for city.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getCityBytes() {
      return instance.getCityBytes();
    }
    /**
     * string city = 1 [json_name = "city"];
     * @param value The city to set.
     * @return This builder for chaining.
     */
    public Builder setCity(
        java.lang.String value) {
      copyOnWrite();
      instance.setCity(value);
      return this;
    }
    /**
     * string city = 1 [json_name = "city"];
     * @return This builder for chaining.
     */
    public Builder clearCity() {
      copyOnWrite();
      instance.clearCity();
      return this;
    }
    /**
     * string city = 1 [json_name = "city"];
     * @param value The bytes for city to set.
     * @return This builder for chaining.
     */
    public Builder setCityBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setCityBytes(value);
      return this;
    }

    /**
     * string country = 2 [json_name = "country"];
     * @return The country.
     */
    @java.lang.Override
    public java.lang.String getCountry() {
      return instance.getCountry();
    }
    /**
     * string country = 2 [json_name = "country"];
     * @return The bytes for country.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getCountryBytes() {
      return instance.getCountryBytes();
    }
    /**
     * string country = 2 [json_name = "country"];
     * @param value The country to set.
     * @return This builder for chaining.
     */
    public Builder setCountry(
        java.lang.String value) {
      copyOnWrite();
      instance.setCountry(value);
      return this;
    }
    /**
     * string country = 2 [json_name = "country"];
     * @return This builder for chaining.
     */
    public Builder clearCountry() {
      copyOnWrite();
      instance.clearCountry();
      return this;
    }
    /**
     * string country = 2 [json_name = "country"];
     * @param value The bytes for country to set.
     * @return This builder for chaining.
     */
    public Builder setCountryBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setCountryBytes(value);
      return this;
    }

    /**
     * string stadium = 3 [json_name = "stadium"];
     * @return The stadium.
     */
    @java.lang.Override
    public java.lang.String getStadium() {
      return instance.getStadium();
    }
    /**
     * string stadium = 3 [json_name = "stadium"];
     * @return The bytes for stadium.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getStadiumBytes() {
      return instance.getStadiumBytes();
    }
    /**
     * string stadium = 3 [json_name = "stadium"];
     * @param value The stadium to set.
     * @return This builder for chaining.
     */
    public Builder setStadium(
        java.lang.String value) {
      copyOnWrite();
      instance.setStadium(value);
      return this;
    }
    /**
     * string stadium = 3 [json_name = "stadium"];
     * @return This builder for chaining.
     */
    public Builder clearStadium() {
      copyOnWrite();
      instance.clearStadium();
      return this;
    }
    /**
     * string stadium = 3 [json_name = "stadium"];
     * @param value The bytes for stadium to set.
     * @return This builder for chaining.
     */
    public Builder setStadiumBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setStadiumBytes(value);
      return this;
    }

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

  public static com.streamlayer.sports.common.Venue 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