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

grpc.leaderboard._UpsertElementsRequest Maven / Gradle / Ivy

There is a newer version: 0.119.4
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: leaderboard.proto

package grpc.leaderboard;

/**
 * Protobuf type {@code leaderboard._UpsertElementsRequest}
 */
public final class _UpsertElementsRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:leaderboard._UpsertElementsRequest)
    _UpsertElementsRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use _UpsertElementsRequest.newBuilder() to construct.
  private _UpsertElementsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private _UpsertElementsRequest() {
    cacheName_ = "";
    leaderboard_ = "";
    elements_ = java.util.Collections.emptyList();
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return grpc.leaderboard.LeaderboardOuterClass.internal_static_leaderboard__UpsertElementsRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return grpc.leaderboard.LeaderboardOuterClass.internal_static_leaderboard__UpsertElementsRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            grpc.leaderboard._UpsertElementsRequest.class, grpc.leaderboard._UpsertElementsRequest.Builder.class);
  }

  public static final int CACHE_NAME_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object cacheName_ = "";
  /**
   * string cache_name = 1;
   * @return The cacheName.
   */
  @java.lang.Override
  public java.lang.String getCacheName() {
    java.lang.Object ref = cacheName_;
    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();
      cacheName_ = s;
      return s;
    }
  }
  /**
   * string cache_name = 1;
   * @return The bytes for cacheName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCacheNameBytes() {
    java.lang.Object ref = cacheName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      cacheName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LEADERBOARD_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private volatile java.lang.Object leaderboard_ = "";
  /**
   * string leaderboard = 2;
   * @return The leaderboard.
   */
  @java.lang.Override
  public java.lang.String getLeaderboard() {
    java.lang.Object ref = leaderboard_;
    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();
      leaderboard_ = s;
      return s;
    }
  }
  /**
   * string leaderboard = 2;
   * @return The bytes for leaderboard.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getLeaderboardBytes() {
    java.lang.Object ref = leaderboard_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      leaderboard_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ELEMENTS_FIELD_NUMBER = 3;
  @SuppressWarnings("serial")
  private java.util.List elements_;
  /**
   * 
   * You can have up to 8192 elements in this list.
   * 
* * repeated .leaderboard._Element elements = 3; */ @java.lang.Override public java.util.List getElementsList() { return elements_; } /** *
   * You can have up to 8192 elements in this list.
   * 
* * repeated .leaderboard._Element elements = 3; */ @java.lang.Override public java.util.List getElementsOrBuilderList() { return elements_; } /** *
   * You can have up to 8192 elements in this list.
   * 
* * repeated .leaderboard._Element elements = 3; */ @java.lang.Override public int getElementsCount() { return elements_.size(); } /** *
   * You can have up to 8192 elements in this list.
   * 
* * repeated .leaderboard._Element elements = 3; */ @java.lang.Override public grpc.leaderboard._Element getElements(int index) { return elements_.get(index); } /** *
   * You can have up to 8192 elements in this list.
   * 
* * repeated .leaderboard._Element elements = 3; */ @java.lang.Override public grpc.leaderboard._ElementOrBuilder getElementsOrBuilder( int index) { return elements_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cacheName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cacheName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(leaderboard_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, leaderboard_); } for (int i = 0; i < elements_.size(); i++) { output.writeMessage(3, elements_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cacheName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cacheName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(leaderboard_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, leaderboard_); } for (int i = 0; i < elements_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, elements_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof grpc.leaderboard._UpsertElementsRequest)) { return super.equals(obj); } grpc.leaderboard._UpsertElementsRequest other = (grpc.leaderboard._UpsertElementsRequest) obj; if (!getCacheName() .equals(other.getCacheName())) return false; if (!getLeaderboard() .equals(other.getLeaderboard())) return false; if (!getElementsList() .equals(other.getElementsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CACHE_NAME_FIELD_NUMBER; hash = (53 * hash) + getCacheName().hashCode(); hash = (37 * hash) + LEADERBOARD_FIELD_NUMBER; hash = (53 * hash) + getLeaderboard().hashCode(); if (getElementsCount() > 0) { hash = (37 * hash) + ELEMENTS_FIELD_NUMBER; hash = (53 * hash) + getElementsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.leaderboard._UpsertElementsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.leaderboard._UpsertElementsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.leaderboard._UpsertElementsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.leaderboard._UpsertElementsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.leaderboard._UpsertElementsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.leaderboard._UpsertElementsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.leaderboard._UpsertElementsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.leaderboard._UpsertElementsRequest 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 grpc.leaderboard._UpsertElementsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.leaderboard._UpsertElementsRequest 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 grpc.leaderboard._UpsertElementsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.leaderboard._UpsertElementsRequest 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(grpc.leaderboard._UpsertElementsRequest 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 leaderboard._UpsertElementsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:leaderboard._UpsertElementsRequest) grpc.leaderboard._UpsertElementsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.leaderboard.LeaderboardOuterClass.internal_static_leaderboard__UpsertElementsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.leaderboard.LeaderboardOuterClass.internal_static_leaderboard__UpsertElementsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.leaderboard._UpsertElementsRequest.class, grpc.leaderboard._UpsertElementsRequest.Builder.class); } // Construct using grpc.leaderboard._UpsertElementsRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; cacheName_ = ""; leaderboard_ = ""; if (elementsBuilder_ == null) { elements_ = java.util.Collections.emptyList(); } else { elements_ = null; elementsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.leaderboard.LeaderboardOuterClass.internal_static_leaderboard__UpsertElementsRequest_descriptor; } @java.lang.Override public grpc.leaderboard._UpsertElementsRequest getDefaultInstanceForType() { return grpc.leaderboard._UpsertElementsRequest.getDefaultInstance(); } @java.lang.Override public grpc.leaderboard._UpsertElementsRequest build() { grpc.leaderboard._UpsertElementsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.leaderboard._UpsertElementsRequest buildPartial() { grpc.leaderboard._UpsertElementsRequest result = new grpc.leaderboard._UpsertElementsRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(grpc.leaderboard._UpsertElementsRequest result) { if (elementsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { elements_ = java.util.Collections.unmodifiableList(elements_); bitField0_ = (bitField0_ & ~0x00000004); } result.elements_ = elements_; } else { result.elements_ = elementsBuilder_.build(); } } private void buildPartial0(grpc.leaderboard._UpsertElementsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.cacheName_ = cacheName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.leaderboard_ = leaderboard_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof grpc.leaderboard._UpsertElementsRequest) { return mergeFrom((grpc.leaderboard._UpsertElementsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.leaderboard._UpsertElementsRequest other) { if (other == grpc.leaderboard._UpsertElementsRequest.getDefaultInstance()) return this; if (!other.getCacheName().isEmpty()) { cacheName_ = other.cacheName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getLeaderboard().isEmpty()) { leaderboard_ = other.leaderboard_; bitField0_ |= 0x00000002; onChanged(); } if (elementsBuilder_ == null) { if (!other.elements_.isEmpty()) { if (elements_.isEmpty()) { elements_ = other.elements_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureElementsIsMutable(); elements_.addAll(other.elements_); } onChanged(); } } else { if (!other.elements_.isEmpty()) { if (elementsBuilder_.isEmpty()) { elementsBuilder_.dispose(); elementsBuilder_ = null; elements_ = other.elements_; bitField0_ = (bitField0_ & ~0x00000004); elementsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getElementsFieldBuilder() : null; } else { elementsBuilder_.addAllMessages(other.elements_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { cacheName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { leaderboard_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { grpc.leaderboard._Element m = input.readMessage( grpc.leaderboard._Element.parser(), extensionRegistry); if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.add(m); } else { elementsBuilder_.addMessage(m); } break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object cacheName_ = ""; /** * string cache_name = 1; * @return The cacheName. */ public java.lang.String getCacheName() { java.lang.Object ref = cacheName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cacheName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cache_name = 1; * @return The bytes for cacheName. */ public com.google.protobuf.ByteString getCacheNameBytes() { java.lang.Object ref = cacheName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cacheName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cache_name = 1; * @param value The cacheName to set. * @return This builder for chaining. */ public Builder setCacheName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cacheName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string cache_name = 1; * @return This builder for chaining. */ public Builder clearCacheName() { cacheName_ = getDefaultInstance().getCacheName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string cache_name = 1; * @param value The bytes for cacheName to set. * @return This builder for chaining. */ public Builder setCacheNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cacheName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object leaderboard_ = ""; /** * string leaderboard = 2; * @return The leaderboard. */ public java.lang.String getLeaderboard() { java.lang.Object ref = leaderboard_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); leaderboard_ = s; return s; } else { return (java.lang.String) ref; } } /** * string leaderboard = 2; * @return The bytes for leaderboard. */ public com.google.protobuf.ByteString getLeaderboardBytes() { java.lang.Object ref = leaderboard_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); leaderboard_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string leaderboard = 2; * @param value The leaderboard to set. * @return This builder for chaining. */ public Builder setLeaderboard( java.lang.String value) { if (value == null) { throw new NullPointerException(); } leaderboard_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string leaderboard = 2; * @return This builder for chaining. */ public Builder clearLeaderboard() { leaderboard_ = getDefaultInstance().getLeaderboard(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string leaderboard = 2; * @param value The bytes for leaderboard to set. * @return This builder for chaining. */ public Builder setLeaderboardBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); leaderboard_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.util.List elements_ = java.util.Collections.emptyList(); private void ensureElementsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { elements_ = new java.util.ArrayList(elements_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< grpc.leaderboard._Element, grpc.leaderboard._Element.Builder, grpc.leaderboard._ElementOrBuilder> elementsBuilder_; /** *
     * You can have up to 8192 elements in this list.
     * 
* * repeated .leaderboard._Element elements = 3; */ public java.util.List getElementsList() { if (elementsBuilder_ == null) { return java.util.Collections.unmodifiableList(elements_); } else { return elementsBuilder_.getMessageList(); } } /** *
     * You can have up to 8192 elements in this list.
     * 
* * repeated .leaderboard._Element elements = 3; */ public int getElementsCount() { if (elementsBuilder_ == null) { return elements_.size(); } else { return elementsBuilder_.getCount(); } } /** *
     * You can have up to 8192 elements in this list.
     * 
* * repeated .leaderboard._Element elements = 3; */ public grpc.leaderboard._Element getElements(int index) { if (elementsBuilder_ == null) { return elements_.get(index); } else { return elementsBuilder_.getMessage(index); } } /** *
     * You can have up to 8192 elements in this list.
     * 
* * repeated .leaderboard._Element elements = 3; */ public Builder setElements( int index, grpc.leaderboard._Element value) { if (elementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureElementsIsMutable(); elements_.set(index, value); onChanged(); } else { elementsBuilder_.setMessage(index, value); } return this; } /** *
     * You can have up to 8192 elements in this list.
     * 
* * repeated .leaderboard._Element elements = 3; */ public Builder setElements( int index, grpc.leaderboard._Element.Builder builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.set(index, builderForValue.build()); onChanged(); } else { elementsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * You can have up to 8192 elements in this list.
     * 
* * repeated .leaderboard._Element elements = 3; */ public Builder addElements(grpc.leaderboard._Element value) { if (elementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureElementsIsMutable(); elements_.add(value); onChanged(); } else { elementsBuilder_.addMessage(value); } return this; } /** *
     * You can have up to 8192 elements in this list.
     * 
* * repeated .leaderboard._Element elements = 3; */ public Builder addElements( int index, grpc.leaderboard._Element value) { if (elementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureElementsIsMutable(); elements_.add(index, value); onChanged(); } else { elementsBuilder_.addMessage(index, value); } return this; } /** *
     * You can have up to 8192 elements in this list.
     * 
* * repeated .leaderboard._Element elements = 3; */ public Builder addElements( grpc.leaderboard._Element.Builder builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.add(builderForValue.build()); onChanged(); } else { elementsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * You can have up to 8192 elements in this list.
     * 
* * repeated .leaderboard._Element elements = 3; */ public Builder addElements( int index, grpc.leaderboard._Element.Builder builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.add(index, builderForValue.build()); onChanged(); } else { elementsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * You can have up to 8192 elements in this list.
     * 
* * repeated .leaderboard._Element elements = 3; */ public Builder addAllElements( java.lang.Iterable values) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, elements_); onChanged(); } else { elementsBuilder_.addAllMessages(values); } return this; } /** *
     * You can have up to 8192 elements in this list.
     * 
* * repeated .leaderboard._Element elements = 3; */ public Builder clearElements() { if (elementsBuilder_ == null) { elements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { elementsBuilder_.clear(); } return this; } /** *
     * You can have up to 8192 elements in this list.
     * 
* * repeated .leaderboard._Element elements = 3; */ public Builder removeElements(int index) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.remove(index); onChanged(); } else { elementsBuilder_.remove(index); } return this; } /** *
     * You can have up to 8192 elements in this list.
     * 
* * repeated .leaderboard._Element elements = 3; */ public grpc.leaderboard._Element.Builder getElementsBuilder( int index) { return getElementsFieldBuilder().getBuilder(index); } /** *
     * You can have up to 8192 elements in this list.
     * 
* * repeated .leaderboard._Element elements = 3; */ public grpc.leaderboard._ElementOrBuilder getElementsOrBuilder( int index) { if (elementsBuilder_ == null) { return elements_.get(index); } else { return elementsBuilder_.getMessageOrBuilder(index); } } /** *
     * You can have up to 8192 elements in this list.
     * 
* * repeated .leaderboard._Element elements = 3; */ public java.util.List getElementsOrBuilderList() { if (elementsBuilder_ != null) { return elementsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(elements_); } } /** *
     * You can have up to 8192 elements in this list.
     * 
* * repeated .leaderboard._Element elements = 3; */ public grpc.leaderboard._Element.Builder addElementsBuilder() { return getElementsFieldBuilder().addBuilder( grpc.leaderboard._Element.getDefaultInstance()); } /** *
     * You can have up to 8192 elements in this list.
     * 
* * repeated .leaderboard._Element elements = 3; */ public grpc.leaderboard._Element.Builder addElementsBuilder( int index) { return getElementsFieldBuilder().addBuilder( index, grpc.leaderboard._Element.getDefaultInstance()); } /** *
     * You can have up to 8192 elements in this list.
     * 
* * repeated .leaderboard._Element elements = 3; */ public java.util.List getElementsBuilderList() { return getElementsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< grpc.leaderboard._Element, grpc.leaderboard._Element.Builder, grpc.leaderboard._ElementOrBuilder> getElementsFieldBuilder() { if (elementsBuilder_ == null) { elementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< grpc.leaderboard._Element, grpc.leaderboard._Element.Builder, grpc.leaderboard._ElementOrBuilder>( elements_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); elements_ = null; } return elementsBuilder_; } @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:leaderboard._UpsertElementsRequest) } // @@protoc_insertion_point(class_scope:leaderboard._UpsertElementsRequest) private static final grpc.leaderboard._UpsertElementsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.leaderboard._UpsertElementsRequest(); } public static grpc.leaderboard._UpsertElementsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_UpsertElementsRequest> PARSER = new com.google.protobuf.AbstractParser<_UpsertElementsRequest>() { @java.lang.Override public _UpsertElementsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<_UpsertElementsRequest> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_UpsertElementsRequest> getParserForType() { return PARSER; } @java.lang.Override public grpc.leaderboard._UpsertElementsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy