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

main.java.com.streamlayer.inplay.Country 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/inplay/inplay.proto

// Protobuf Java Version: 3.25.3
package com.streamlayer.inplay;

/**
 * Protobuf type {@code streamlayer.inplay.Country}
 */
public  final class Country extends
    com.google.protobuf.GeneratedMessageLite<
        Country, Country.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.inplay.Country)
    CountryOrBuilder {
  private Country() {
    name_ = "";
    leagues_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
    alpha2_ = "";
    alpha3_ = "";
  }
  public static final int NAME_FIELD_NUMBER = 1;
  private java.lang.String name_;
  /**
   * string name = 1 [json_name = "name"];
   * @return The name.
   */
  @java.lang.Override
  public java.lang.String getName() {
    return name_;
  }
  /**
   * string name = 1 [json_name = "name"];
   * @return The bytes for name.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getNameBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(name_);
  }
  /**
   * string name = 1 [json_name = "name"];
   * @param value The name to set.
   */
  private void setName(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    name_ = value;
  }
  /**
   * string name = 1 [json_name = "name"];
   */
  private void clearName() {

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

  }

  public static final int LEAGUES_FIELD_NUMBER = 2;
  private com.google.protobuf.Internal.ProtobufList leagues_;
  /**
   * repeated string leagues = 2 [json_name = "leagues"];
   * @return A list containing the leagues.
   */
  @java.lang.Override
  public java.util.List getLeaguesList() {
    return leagues_;
  }
  /**
   * repeated string leagues = 2 [json_name = "leagues"];
   * @return The count of leagues.
   */
  @java.lang.Override
  public int getLeaguesCount() {
    return leagues_.size();
  }
  /**
   * repeated string leagues = 2 [json_name = "leagues"];
   * @param index The index of the element to return.
   * @return The leagues at the given index.
   */
  @java.lang.Override
  public java.lang.String getLeagues(int index) {
    return leagues_.get(index);
  }
  /**
   * repeated string leagues = 2 [json_name = "leagues"];
   * @param index The index of the value to return.
   * @return The bytes of the leagues at the given index.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getLeaguesBytes(int index) {
    return com.google.protobuf.ByteString.copyFromUtf8(
        leagues_.get(index));
  }
  private void ensureLeaguesIsMutable() {
    com.google.protobuf.Internal.ProtobufList tmp =
        leagues_;  if (!tmp.isModifiable()) {
      leagues_ =
          com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
     }
  }
  /**
   * repeated string leagues = 2 [json_name = "leagues"];
   * @param index The index to set the value at.
   * @param value The leagues to set.
   */
  private void setLeagues(
      int index, java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  ensureLeaguesIsMutable();
    leagues_.set(index, value);
  }
  /**
   * repeated string leagues = 2 [json_name = "leagues"];
   * @param value The leagues to add.
   */
  private void addLeagues(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  ensureLeaguesIsMutable();
    leagues_.add(value);
  }
  /**
   * repeated string leagues = 2 [json_name = "leagues"];
   * @param values The leagues to add.
   */
  private void addAllLeagues(
      java.lang.Iterable values) {
    ensureLeaguesIsMutable();
    com.google.protobuf.AbstractMessageLite.addAll(
        values, leagues_);
  }
  /**
   * repeated string leagues = 2 [json_name = "leagues"];
   */
  private void clearLeagues() {
    leagues_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
  }
  /**
   * repeated string leagues = 2 [json_name = "leagues"];
   * @param value The bytes of the leagues to add.
   */
  private void addLeaguesBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    ensureLeaguesIsMutable();
    leagues_.add(value.toStringUtf8());
  }

  public static final int ALPHA2_FIELD_NUMBER = 3;
  private java.lang.String alpha2_;
  /**
   * 
   * ISO 3166-1 alpha-2 country code
   * 
* * string alpha2 = 3 [json_name = "alpha2"]; * @return The alpha2. */ @java.lang.Override public java.lang.String getAlpha2() { return alpha2_; } /** *
   * ISO 3166-1 alpha-2 country code
   * 
* * string alpha2 = 3 [json_name = "alpha2"]; * @return The bytes for alpha2. */ @java.lang.Override public com.google.protobuf.ByteString getAlpha2Bytes() { return com.google.protobuf.ByteString.copyFromUtf8(alpha2_); } /** *
   * ISO 3166-1 alpha-2 country code
   * 
* * string alpha2 = 3 [json_name = "alpha2"]; * @param value The alpha2 to set. */ private void setAlpha2( java.lang.String value) { java.lang.Class valueClass = value.getClass(); alpha2_ = value; } /** *
   * ISO 3166-1 alpha-2 country code
   * 
* * string alpha2 = 3 [json_name = "alpha2"]; */ private void clearAlpha2() { alpha2_ = getDefaultInstance().getAlpha2(); } /** *
   * ISO 3166-1 alpha-2 country code
   * 
* * string alpha2 = 3 [json_name = "alpha2"]; * @param value The bytes for alpha2 to set. */ private void setAlpha2Bytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); alpha2_ = value.toStringUtf8(); } public static final int ALPHA3_FIELD_NUMBER = 4; private java.lang.String alpha3_; /** *
   * ISO 3166-1 alpha-3 country code
   * 
* * string alpha3 = 4 [json_name = "alpha3"]; * @return The alpha3. */ @java.lang.Override public java.lang.String getAlpha3() { return alpha3_; } /** *
   * ISO 3166-1 alpha-3 country code
   * 
* * string alpha3 = 4 [json_name = "alpha3"]; * @return The bytes for alpha3. */ @java.lang.Override public com.google.protobuf.ByteString getAlpha3Bytes() { return com.google.protobuf.ByteString.copyFromUtf8(alpha3_); } /** *
   * ISO 3166-1 alpha-3 country code
   * 
* * string alpha3 = 4 [json_name = "alpha3"]; * @param value The alpha3 to set. */ private void setAlpha3( java.lang.String value) { java.lang.Class valueClass = value.getClass(); alpha3_ = value; } /** *
   * ISO 3166-1 alpha-3 country code
   * 
* * string alpha3 = 4 [json_name = "alpha3"]; */ private void clearAlpha3() { alpha3_ = getDefaultInstance().getAlpha3(); } /** *
   * ISO 3166-1 alpha-3 country code
   * 
* * string alpha3 = 4 [json_name = "alpha3"]; * @param value The bytes for alpha3 to set. */ private void setAlpha3Bytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); alpha3_ = value.toStringUtf8(); } public static com.streamlayer.inplay.Country parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.streamlayer.inplay.Country 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.inplay.Country parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.streamlayer.inplay.Country 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.inplay.Country parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.streamlayer.inplay.Country 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.inplay.Country parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.streamlayer.inplay.Country 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.inplay.Country parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.streamlayer.inplay.Country parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.streamlayer.inplay.Country parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.streamlayer.inplay.Country 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.inplay.Country prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code streamlayer.inplay.Country} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.streamlayer.inplay.Country, Builder> implements // @@protoc_insertion_point(builder_implements:streamlayer.inplay.Country) com.streamlayer.inplay.CountryOrBuilder { // Construct using com.streamlayer.inplay.Country.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * string name = 1 [json_name = "name"]; * @return The name. */ @java.lang.Override public java.lang.String getName() { return instance.getName(); } /** * string name = 1 [json_name = "name"]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { return instance.getNameBytes(); } /** * string name = 1 [json_name = "name"]; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { copyOnWrite(); instance.setName(value); return this; } /** * string name = 1 [json_name = "name"]; * @return This builder for chaining. */ public Builder clearName() { copyOnWrite(); instance.clearName(); return this; } /** * string name = 1 [json_name = "name"]; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setNameBytes(value); return this; } /** * repeated string leagues = 2 [json_name = "leagues"]; * @return A list containing the leagues. */ @java.lang.Override public java.util.List getLeaguesList() { return java.util.Collections.unmodifiableList( instance.getLeaguesList()); } /** * repeated string leagues = 2 [json_name = "leagues"]; * @return The count of leagues. */ @java.lang.Override public int getLeaguesCount() { return instance.getLeaguesCount(); } /** * repeated string leagues = 2 [json_name = "leagues"]; * @param index The index of the element to return. * @return The leagues at the given index. */ @java.lang.Override public java.lang.String getLeagues(int index) { return instance.getLeagues(index); } /** * repeated string leagues = 2 [json_name = "leagues"]; * @param index The index of the value to return. * @return The bytes of the leagues at the given index. */ @java.lang.Override public com.google.protobuf.ByteString getLeaguesBytes(int index) { return instance.getLeaguesBytes(index); } /** * repeated string leagues = 2 [json_name = "leagues"]; * @param index The index to set the value at. * @param value The leagues to set. * @return This builder for chaining. */ public Builder setLeagues( int index, java.lang.String value) { copyOnWrite(); instance.setLeagues(index, value); return this; } /** * repeated string leagues = 2 [json_name = "leagues"]; * @param value The leagues to add. * @return This builder for chaining. */ public Builder addLeagues( java.lang.String value) { copyOnWrite(); instance.addLeagues(value); return this; } /** * repeated string leagues = 2 [json_name = "leagues"]; * @param values The leagues to add. * @return This builder for chaining. */ public Builder addAllLeagues( java.lang.Iterable values) { copyOnWrite(); instance.addAllLeagues(values); return this; } /** * repeated string leagues = 2 [json_name = "leagues"]; * @return This builder for chaining. */ public Builder clearLeagues() { copyOnWrite(); instance.clearLeagues(); return this; } /** * repeated string leagues = 2 [json_name = "leagues"]; * @param value The bytes of the leagues to add. * @return This builder for chaining. */ public Builder addLeaguesBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.addLeaguesBytes(value); return this; } /** *
     * ISO 3166-1 alpha-2 country code
     * 
* * string alpha2 = 3 [json_name = "alpha2"]; * @return The alpha2. */ @java.lang.Override public java.lang.String getAlpha2() { return instance.getAlpha2(); } /** *
     * ISO 3166-1 alpha-2 country code
     * 
* * string alpha2 = 3 [json_name = "alpha2"]; * @return The bytes for alpha2. */ @java.lang.Override public com.google.protobuf.ByteString getAlpha2Bytes() { return instance.getAlpha2Bytes(); } /** *
     * ISO 3166-1 alpha-2 country code
     * 
* * string alpha2 = 3 [json_name = "alpha2"]; * @param value The alpha2 to set. * @return This builder for chaining. */ public Builder setAlpha2( java.lang.String value) { copyOnWrite(); instance.setAlpha2(value); return this; } /** *
     * ISO 3166-1 alpha-2 country code
     * 
* * string alpha2 = 3 [json_name = "alpha2"]; * @return This builder for chaining. */ public Builder clearAlpha2() { copyOnWrite(); instance.clearAlpha2(); return this; } /** *
     * ISO 3166-1 alpha-2 country code
     * 
* * string alpha2 = 3 [json_name = "alpha2"]; * @param value The bytes for alpha2 to set. * @return This builder for chaining. */ public Builder setAlpha2Bytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setAlpha2Bytes(value); return this; } /** *
     * ISO 3166-1 alpha-3 country code
     * 
* * string alpha3 = 4 [json_name = "alpha3"]; * @return The alpha3. */ @java.lang.Override public java.lang.String getAlpha3() { return instance.getAlpha3(); } /** *
     * ISO 3166-1 alpha-3 country code
     * 
* * string alpha3 = 4 [json_name = "alpha3"]; * @return The bytes for alpha3. */ @java.lang.Override public com.google.protobuf.ByteString getAlpha3Bytes() { return instance.getAlpha3Bytes(); } /** *
     * ISO 3166-1 alpha-3 country code
     * 
* * string alpha3 = 4 [json_name = "alpha3"]; * @param value The alpha3 to set. * @return This builder for chaining. */ public Builder setAlpha3( java.lang.String value) { copyOnWrite(); instance.setAlpha3(value); return this; } /** *
     * ISO 3166-1 alpha-3 country code
     * 
* * string alpha3 = 4 [json_name = "alpha3"]; * @return This builder for chaining. */ public Builder clearAlpha3() { copyOnWrite(); instance.clearAlpha3(); return this; } /** *
     * ISO 3166-1 alpha-3 country code
     * 
* * string alpha3 = 4 [json_name = "alpha3"]; * @param value The bytes for alpha3 to set. * @return This builder for chaining. */ public Builder setAlpha3Bytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setAlpha3Bytes(value); return this; } // @@protoc_insertion_point(builder_scope:streamlayer.inplay.Country) } @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.inplay.Country(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "name_", "leagues_", "alpha2_", "alpha3_", }; java.lang.String info = "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0001\u0000\u0001\u0208\u0002\u021a" + "\u0003\u0208\u0004\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.inplay.Country.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.inplay.Country) private static final com.streamlayer.inplay.Country DEFAULT_INSTANCE; static { Country defaultInstance = new Country(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( Country.class, defaultInstance); } public static com.streamlayer.inplay.Country 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