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

ai.promoted.proto.delivery.Paging Maven / Gradle / Ivy

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

package ai.promoted.proto.delivery;

/**
 * Protobuf type {@code delivery.Paging}
 */
public final class Paging extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:delivery.Paging)
    PagingOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Paging.newBuilder() to construct.
  private Paging(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private Paging() {
    pagingId_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private Paging(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

            pagingId_ = s;
            break;
          }
          case 16: {

            size_ = input.readInt32();
            break;
          }
          case 26: {
            java.lang.String s = input.readStringRequireUtf8();
            startingCase_ = 3;
            starting_ = s;
            break;
          }
          case 32: {
            startingCase_ = 4;
            starting_ = input.readInt32();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return ai.promoted.proto.delivery.Delivery.internal_static_delivery_Paging_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return ai.promoted.proto.delivery.Delivery.internal_static_delivery_Paging_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            ai.promoted.proto.delivery.Paging.class, ai.promoted.proto.delivery.Paging.Builder.class);
  }

  private int startingCase_ = 0;
  private java.lang.Object starting_;
  public enum StartingCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    CURSOR(3),
    OFFSET(4),
    STARTING_NOT_SET(0);
    private final int value;
    private StartingCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static StartingCase valueOf(int value) {
      return forNumber(value);
    }

    public static StartingCase forNumber(int value) {
      switch (value) {
        case 3: return CURSOR;
        case 4: return OFFSET;
        case 0: return STARTING_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public StartingCase
  getStartingCase() {
    return StartingCase.forNumber(
        startingCase_);
  }

  public static final int PAGING_ID_FIELD_NUMBER = 1;
  private volatile java.lang.Object pagingId_;
  /**
   * string paging_id = 1 [json_name = "pagingId"];
   * @return The pagingId.
   */
  @java.lang.Override
  public java.lang.String getPagingId() {
    java.lang.Object ref = pagingId_;
    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();
      pagingId_ = s;
      return s;
    }
  }
  /**
   * string paging_id = 1 [json_name = "pagingId"];
   * @return The bytes for pagingId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPagingIdBytes() {
    java.lang.Object ref = pagingId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      pagingId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SIZE_FIELD_NUMBER = 2;
  private int size_;
  /**
   * int32 size = 2 [json_name = "size"];
   * @return The size.
   */
  @java.lang.Override
  public int getSize() {
    return size_;
  }

  public static final int CURSOR_FIELD_NUMBER = 3;
  /**
   * string cursor = 3 [json_name = "cursor"];
   * @return Whether the cursor field is set.
   */
  public boolean hasCursor() {
    return startingCase_ == 3;
  }
  /**
   * string cursor = 3 [json_name = "cursor"];
   * @return The cursor.
   */
  public java.lang.String getCursor() {
    java.lang.Object ref = "";
    if (startingCase_ == 3) {
      ref = starting_;
    }
    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();
      if (startingCase_ == 3) {
        starting_ = s;
      }
      return s;
    }
  }
  /**
   * string cursor = 3 [json_name = "cursor"];
   * @return The bytes for cursor.
   */
  public com.google.protobuf.ByteString
      getCursorBytes() {
    java.lang.Object ref = "";
    if (startingCase_ == 3) {
      ref = starting_;
    }
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      if (startingCase_ == 3) {
        starting_ = b;
      }
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int OFFSET_FIELD_NUMBER = 4;
  /**
   * int32 offset = 4 [json_name = "offset"];
   * @return Whether the offset field is set.
   */
  @java.lang.Override
  public boolean hasOffset() {
    return startingCase_ == 4;
  }
  /**
   * int32 offset = 4 [json_name = "offset"];
   * @return The offset.
   */
  @java.lang.Override
  public int getOffset() {
    if (startingCase_ == 4) {
      return (java.lang.Integer) starting_;
    }
    return 0;
  }

  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 (!getPagingIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pagingId_);
    }
    if (size_ != 0) {
      output.writeInt32(2, size_);
    }
    if (startingCase_ == 3) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, starting_);
    }
    if (startingCase_ == 4) {
      output.writeInt32(
          4, (int)((java.lang.Integer) starting_));
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!getPagingIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pagingId_);
    }
    if (size_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, size_);
    }
    if (startingCase_ == 3) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, starting_);
    }
    if (startingCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(
            4, (int)((java.lang.Integer) starting_));
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof ai.promoted.proto.delivery.Paging)) {
      return super.equals(obj);
    }
    ai.promoted.proto.delivery.Paging other = (ai.promoted.proto.delivery.Paging) obj;

    if (!getPagingId()
        .equals(other.getPagingId())) return false;
    if (getSize()
        != other.getSize()) return false;
    if (!getStartingCase().equals(other.getStartingCase())) return false;
    switch (startingCase_) {
      case 3:
        if (!getCursor()
            .equals(other.getCursor())) return false;
        break;
      case 4:
        if (getOffset()
            != other.getOffset()) return false;
        break;
      case 0:
      default:
    }
    if (!unknownFields.equals(other.unknownFields)) 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) + PAGING_ID_FIELD_NUMBER;
    hash = (53 * hash) + getPagingId().hashCode();
    hash = (37 * hash) + SIZE_FIELD_NUMBER;
    hash = (53 * hash) + getSize();
    switch (startingCase_) {
      case 3:
        hash = (37 * hash) + CURSOR_FIELD_NUMBER;
        hash = (53 * hash) + getCursor().hashCode();
        break;
      case 4:
        hash = (37 * hash) + OFFSET_FIELD_NUMBER;
        hash = (53 * hash) + getOffset();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static ai.promoted.proto.delivery.Paging parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static ai.promoted.proto.delivery.Paging parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static ai.promoted.proto.delivery.Paging parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static ai.promoted.proto.delivery.Paging parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static ai.promoted.proto.delivery.Paging parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static ai.promoted.proto.delivery.Paging parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static ai.promoted.proto.delivery.Paging parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static ai.promoted.proto.delivery.Paging 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 ai.promoted.proto.delivery.Paging parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static ai.promoted.proto.delivery.Paging 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 ai.promoted.proto.delivery.Paging parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static ai.promoted.proto.delivery.Paging 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(ai.promoted.proto.delivery.Paging 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 delivery.Paging}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:delivery.Paging)
      ai.promoted.proto.delivery.PagingOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return ai.promoted.proto.delivery.Delivery.internal_static_delivery_Paging_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return ai.promoted.proto.delivery.Delivery.internal_static_delivery_Paging_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              ai.promoted.proto.delivery.Paging.class, ai.promoted.proto.delivery.Paging.Builder.class);
    }

    // Construct using ai.promoted.proto.delivery.Paging.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      pagingId_ = "";

      size_ = 0;

      startingCase_ = 0;
      starting_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return ai.promoted.proto.delivery.Delivery.internal_static_delivery_Paging_descriptor;
    }

    @java.lang.Override
    public ai.promoted.proto.delivery.Paging getDefaultInstanceForType() {
      return ai.promoted.proto.delivery.Paging.getDefaultInstance();
    }

    @java.lang.Override
    public ai.promoted.proto.delivery.Paging build() {
      ai.promoted.proto.delivery.Paging result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public ai.promoted.proto.delivery.Paging buildPartial() {
      ai.promoted.proto.delivery.Paging result = new ai.promoted.proto.delivery.Paging(this);
      result.pagingId_ = pagingId_;
      result.size_ = size_;
      if (startingCase_ == 3) {
        result.starting_ = starting_;
      }
      if (startingCase_ == 4) {
        result.starting_ = starting_;
      }
      result.startingCase_ = startingCase_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof ai.promoted.proto.delivery.Paging) {
        return mergeFrom((ai.promoted.proto.delivery.Paging)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(ai.promoted.proto.delivery.Paging other) {
      if (other == ai.promoted.proto.delivery.Paging.getDefaultInstance()) return this;
      if (!other.getPagingId().isEmpty()) {
        pagingId_ = other.pagingId_;
        onChanged();
      }
      if (other.getSize() != 0) {
        setSize(other.getSize());
      }
      switch (other.getStartingCase()) {
        case CURSOR: {
          startingCase_ = 3;
          starting_ = other.starting_;
          onChanged();
          break;
        }
        case OFFSET: {
          setOffset(other.getOffset());
          break;
        }
        case STARTING_NOT_SET: {
          break;
        }
      }
      this.mergeUnknownFields(other.unknownFields);
      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 {
      ai.promoted.proto.delivery.Paging parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (ai.promoted.proto.delivery.Paging) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int startingCase_ = 0;
    private java.lang.Object starting_;
    public StartingCase
        getStartingCase() {
      return StartingCase.forNumber(
          startingCase_);
    }

    public Builder clearStarting() {
      startingCase_ = 0;
      starting_ = null;
      onChanged();
      return this;
    }


    private java.lang.Object pagingId_ = "";
    /**
     * string paging_id = 1 [json_name = "pagingId"];
     * @return The pagingId.
     */
    public java.lang.String getPagingId() {
      java.lang.Object ref = pagingId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        pagingId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string paging_id = 1 [json_name = "pagingId"];
     * @return The bytes for pagingId.
     */
    public com.google.protobuf.ByteString
        getPagingIdBytes() {
      java.lang.Object ref = pagingId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        pagingId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string paging_id = 1 [json_name = "pagingId"];
     * @param value The pagingId to set.
     * @return This builder for chaining.
     */
    public Builder setPagingId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      pagingId_ = value;
      onChanged();
      return this;
    }
    /**
     * string paging_id = 1 [json_name = "pagingId"];
     * @return This builder for chaining.
     */
    public Builder clearPagingId() {
      
      pagingId_ = getDefaultInstance().getPagingId();
      onChanged();
      return this;
    }
    /**
     * string paging_id = 1 [json_name = "pagingId"];
     * @param value The bytes for pagingId to set.
     * @return This builder for chaining.
     */
    public Builder setPagingIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      pagingId_ = value;
      onChanged();
      return this;
    }

    private int size_ ;
    /**
     * int32 size = 2 [json_name = "size"];
     * @return The size.
     */
    @java.lang.Override
    public int getSize() {
      return size_;
    }
    /**
     * int32 size = 2 [json_name = "size"];
     * @param value The size to set.
     * @return This builder for chaining.
     */
    public Builder setSize(int value) {
      
      size_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 size = 2 [json_name = "size"];
     * @return This builder for chaining.
     */
    public Builder clearSize() {
      
      size_ = 0;
      onChanged();
      return this;
    }

    /**
     * string cursor = 3 [json_name = "cursor"];
     * @return Whether the cursor field is set.
     */
    @java.lang.Override
    public boolean hasCursor() {
      return startingCase_ == 3;
    }
    /**
     * string cursor = 3 [json_name = "cursor"];
     * @return The cursor.
     */
    @java.lang.Override
    public java.lang.String getCursor() {
      java.lang.Object ref = "";
      if (startingCase_ == 3) {
        ref = starting_;
      }
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (startingCase_ == 3) {
          starting_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string cursor = 3 [json_name = "cursor"];
     * @return The bytes for cursor.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getCursorBytes() {
      java.lang.Object ref = "";
      if (startingCase_ == 3) {
        ref = starting_;
      }
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        if (startingCase_ == 3) {
          starting_ = b;
        }
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string cursor = 3 [json_name = "cursor"];
     * @param value The cursor to set.
     * @return This builder for chaining.
     */
    public Builder setCursor(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  startingCase_ = 3;
      starting_ = value;
      onChanged();
      return this;
    }
    /**
     * string cursor = 3 [json_name = "cursor"];
     * @return This builder for chaining.
     */
    public Builder clearCursor() {
      if (startingCase_ == 3) {
        startingCase_ = 0;
        starting_ = null;
        onChanged();
      }
      return this;
    }
    /**
     * string cursor = 3 [json_name = "cursor"];
     * @param value The bytes for cursor to set.
     * @return This builder for chaining.
     */
    public Builder setCursorBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      startingCase_ = 3;
      starting_ = value;
      onChanged();
      return this;
    }

    /**
     * int32 offset = 4 [json_name = "offset"];
     * @return Whether the offset field is set.
     */
    public boolean hasOffset() {
      return startingCase_ == 4;
    }
    /**
     * int32 offset = 4 [json_name = "offset"];
     * @return The offset.
     */
    public int getOffset() {
      if (startingCase_ == 4) {
        return (java.lang.Integer) starting_;
      }
      return 0;
    }
    /**
     * int32 offset = 4 [json_name = "offset"];
     * @param value The offset to set.
     * @return This builder for chaining.
     */
    public Builder setOffset(int value) {
      startingCase_ = 4;
      starting_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 offset = 4 [json_name = "offset"];
     * @return This builder for chaining.
     */
    public Builder clearOffset() {
      if (startingCase_ == 4) {
        startingCase_ = 0;
        starting_ = null;
        onChanged();
      }
      return this;
    }
    @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:delivery.Paging)
  }

  // @@protoc_insertion_point(class_scope:delivery.Paging)
  private static final ai.promoted.proto.delivery.Paging DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new ai.promoted.proto.delivery.Paging();
  }

  public static ai.promoted.proto.delivery.Paging getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public Paging parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new Paging(input, extensionRegistry);
    }
  };

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

  @java.lang.Override
  public com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public ai.promoted.proto.delivery.Paging getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy