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

ai.promoted.proto.delivery.Response 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.Response}
 */
public final class Response extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:delivery.Response)
    ResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Response.newBuilder() to construct.
  private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private Response() {
    insertion_ = java.util.Collections.emptyList();
    introspectionData_ = "";
    requestId_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private Response(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    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 18: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              insertion_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            insertion_.add(
                input.readMessage(ai.promoted.proto.delivery.Insertion.parser(), extensionRegistry));
            break;
          }
          case 26: {
            ai.promoted.proto.delivery.PagingInfo.Builder subBuilder = null;
            if (pagingInfo_ != null) {
              subBuilder = pagingInfo_.toBuilder();
            }
            pagingInfo_ = input.readMessage(ai.promoted.proto.delivery.PagingInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(pagingInfo_);
              pagingInfo_ = subBuilder.buildPartial();
            }

            break;
          }
          case 34: {
            java.lang.String s = input.readStringRequireUtf8();
            bitField0_ |= 0x00000001;
            introspectionData_ = s;
            break;
          }
          case 42: {
            java.lang.String s = input.readStringRequireUtf8();

            requestId_ = s;
            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 {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        insertion_ = java.util.Collections.unmodifiableList(insertion_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return ai.promoted.proto.delivery.Delivery.internal_static_delivery_Response_descriptor;
  }

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

  private int bitField0_;
  public static final int INSERTION_FIELD_NUMBER = 2;
  private java.util.List insertion_;
  /**
   * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
   */
  @java.lang.Override
  public java.util.List getInsertionList() {
    return insertion_;
  }
  /**
   * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
   */
  @java.lang.Override
  public java.util.List 
      getInsertionOrBuilderList() {
    return insertion_;
  }
  /**
   * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
   */
  @java.lang.Override
  public int getInsertionCount() {
    return insertion_.size();
  }
  /**
   * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
   */
  @java.lang.Override
  public ai.promoted.proto.delivery.Insertion getInsertion(int index) {
    return insertion_.get(index);
  }
  /**
   * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
   */
  @java.lang.Override
  public ai.promoted.proto.delivery.InsertionOrBuilder getInsertionOrBuilder(
      int index) {
    return insertion_.get(index);
  }

  public static final int PAGING_INFO_FIELD_NUMBER = 3;
  private ai.promoted.proto.delivery.PagingInfo pagingInfo_;
  /**
   * .delivery.PagingInfo paging_info = 3 [json_name = "pagingInfo"];
   * @return Whether the pagingInfo field is set.
   */
  @java.lang.Override
  public boolean hasPagingInfo() {
    return pagingInfo_ != null;
  }
  /**
   * .delivery.PagingInfo paging_info = 3 [json_name = "pagingInfo"];
   * @return The pagingInfo.
   */
  @java.lang.Override
  public ai.promoted.proto.delivery.PagingInfo getPagingInfo() {
    return pagingInfo_ == null ? ai.promoted.proto.delivery.PagingInfo.getDefaultInstance() : pagingInfo_;
  }
  /**
   * .delivery.PagingInfo paging_info = 3 [json_name = "pagingInfo"];
   */
  @java.lang.Override
  public ai.promoted.proto.delivery.PagingInfoOrBuilder getPagingInfoOrBuilder() {
    return getPagingInfo();
  }

  public static final int INTROSPECTION_DATA_FIELD_NUMBER = 4;
  private volatile java.lang.Object introspectionData_;
  /**
   * string introspection_data = 4 [json_name = "introspectionData"];
   * @return Whether the introspectionData field is set.
   */
  @java.lang.Override
  public boolean hasIntrospectionData() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * string introspection_data = 4 [json_name = "introspectionData"];
   * @return The introspectionData.
   */
  @java.lang.Override
  public java.lang.String getIntrospectionData() {
    java.lang.Object ref = introspectionData_;
    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();
      introspectionData_ = s;
      return s;
    }
  }
  /**
   * string introspection_data = 4 [json_name = "introspectionData"];
   * @return The bytes for introspectionData.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getIntrospectionDataBytes() {
    java.lang.Object ref = introspectionData_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      introspectionData_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REQUEST_ID_FIELD_NUMBER = 5;
  private volatile java.lang.Object requestId_;
  /**
   * string request_id = 5 [json_name = "requestId"];
   * @return The requestId.
   */
  @java.lang.Override
  public java.lang.String getRequestId() {
    java.lang.Object ref = requestId_;
    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();
      requestId_ = s;
      return s;
    }
  }
  /**
   * string request_id = 5 [json_name = "requestId"];
   * @return The bytes for requestId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getRequestIdBytes() {
    java.lang.Object ref = requestId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      requestId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  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 {
    for (int i = 0; i < insertion_.size(); i++) {
      output.writeMessage(2, insertion_.get(i));
    }
    if (pagingInfo_ != null) {
      output.writeMessage(3, getPagingInfo());
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, introspectionData_);
    }
    if (!getRequestIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    for (int i = 0; i < insertion_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, insertion_.get(i));
    }
    if (pagingInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getPagingInfo());
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, introspectionData_);
    }
    if (!getRequestIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_);
    }
    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.Response)) {
      return super.equals(obj);
    }
    ai.promoted.proto.delivery.Response other = (ai.promoted.proto.delivery.Response) obj;

    if (!getInsertionList()
        .equals(other.getInsertionList())) return false;
    if (hasPagingInfo() != other.hasPagingInfo()) return false;
    if (hasPagingInfo()) {
      if (!getPagingInfo()
          .equals(other.getPagingInfo())) return false;
    }
    if (hasIntrospectionData() != other.hasIntrospectionData()) return false;
    if (hasIntrospectionData()) {
      if (!getIntrospectionData()
          .equals(other.getIntrospectionData())) return false;
    }
    if (!getRequestId()
        .equals(other.getRequestId())) return false;
    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();
    if (getInsertionCount() > 0) {
      hash = (37 * hash) + INSERTION_FIELD_NUMBER;
      hash = (53 * hash) + getInsertionList().hashCode();
    }
    if (hasPagingInfo()) {
      hash = (37 * hash) + PAGING_INFO_FIELD_NUMBER;
      hash = (53 * hash) + getPagingInfo().hashCode();
    }
    if (hasIntrospectionData()) {
      hash = (37 * hash) + INTROSPECTION_DATA_FIELD_NUMBER;
      hash = (53 * hash) + getIntrospectionData().hashCode();
    }
    hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER;
    hash = (53 * hash) + getRequestId().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getInsertionFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (insertionBuilder_ == null) {
        insertion_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        insertionBuilder_.clear();
      }
      if (pagingInfoBuilder_ == null) {
        pagingInfo_ = null;
      } else {
        pagingInfo_ = null;
        pagingInfoBuilder_ = null;
      }
      introspectionData_ = "";
      bitField0_ = (bitField0_ & ~0x00000002);
      requestId_ = "";

      return this;
    }

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

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

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

    @java.lang.Override
    public ai.promoted.proto.delivery.Response buildPartial() {
      ai.promoted.proto.delivery.Response result = new ai.promoted.proto.delivery.Response(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (insertionBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          insertion_ = java.util.Collections.unmodifiableList(insertion_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.insertion_ = insertion_;
      } else {
        result.insertion_ = insertionBuilder_.build();
      }
      if (pagingInfoBuilder_ == null) {
        result.pagingInfo_ = pagingInfo_;
      } else {
        result.pagingInfo_ = pagingInfoBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        to_bitField0_ |= 0x00000001;
      }
      result.introspectionData_ = introspectionData_;
      result.requestId_ = requestId_;
      result.bitField0_ = to_bitField0_;
      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.Response) {
        return mergeFrom((ai.promoted.proto.delivery.Response)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(ai.promoted.proto.delivery.Response other) {
      if (other == ai.promoted.proto.delivery.Response.getDefaultInstance()) return this;
      if (insertionBuilder_ == null) {
        if (!other.insertion_.isEmpty()) {
          if (insertion_.isEmpty()) {
            insertion_ = other.insertion_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureInsertionIsMutable();
            insertion_.addAll(other.insertion_);
          }
          onChanged();
        }
      } else {
        if (!other.insertion_.isEmpty()) {
          if (insertionBuilder_.isEmpty()) {
            insertionBuilder_.dispose();
            insertionBuilder_ = null;
            insertion_ = other.insertion_;
            bitField0_ = (bitField0_ & ~0x00000001);
            insertionBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getInsertionFieldBuilder() : null;
          } else {
            insertionBuilder_.addAllMessages(other.insertion_);
          }
        }
      }
      if (other.hasPagingInfo()) {
        mergePagingInfo(other.getPagingInfo());
      }
      if (other.hasIntrospectionData()) {
        bitField0_ |= 0x00000002;
        introspectionData_ = other.introspectionData_;
        onChanged();
      }
      if (!other.getRequestId().isEmpty()) {
        requestId_ = other.requestId_;
        onChanged();
      }
      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.Response parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (ai.promoted.proto.delivery.Response) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.util.List insertion_ =
      java.util.Collections.emptyList();
    private void ensureInsertionIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        insertion_ = new java.util.ArrayList(insertion_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        ai.promoted.proto.delivery.Insertion, ai.promoted.proto.delivery.Insertion.Builder, ai.promoted.proto.delivery.InsertionOrBuilder> insertionBuilder_;

    /**
     * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
     */
    public java.util.List getInsertionList() {
      if (insertionBuilder_ == null) {
        return java.util.Collections.unmodifiableList(insertion_);
      } else {
        return insertionBuilder_.getMessageList();
      }
    }
    /**
     * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
     */
    public int getInsertionCount() {
      if (insertionBuilder_ == null) {
        return insertion_.size();
      } else {
        return insertionBuilder_.getCount();
      }
    }
    /**
     * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
     */
    public ai.promoted.proto.delivery.Insertion getInsertion(int index) {
      if (insertionBuilder_ == null) {
        return insertion_.get(index);
      } else {
        return insertionBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
     */
    public Builder setInsertion(
        int index, ai.promoted.proto.delivery.Insertion value) {
      if (insertionBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInsertionIsMutable();
        insertion_.set(index, value);
        onChanged();
      } else {
        insertionBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
     */
    public Builder setInsertion(
        int index, ai.promoted.proto.delivery.Insertion.Builder builderForValue) {
      if (insertionBuilder_ == null) {
        ensureInsertionIsMutable();
        insertion_.set(index, builderForValue.build());
        onChanged();
      } else {
        insertionBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
     */
    public Builder addInsertion(ai.promoted.proto.delivery.Insertion value) {
      if (insertionBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInsertionIsMutable();
        insertion_.add(value);
        onChanged();
      } else {
        insertionBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
     */
    public Builder addInsertion(
        int index, ai.promoted.proto.delivery.Insertion value) {
      if (insertionBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInsertionIsMutable();
        insertion_.add(index, value);
        onChanged();
      } else {
        insertionBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
     */
    public Builder addInsertion(
        ai.promoted.proto.delivery.Insertion.Builder builderForValue) {
      if (insertionBuilder_ == null) {
        ensureInsertionIsMutable();
        insertion_.add(builderForValue.build());
        onChanged();
      } else {
        insertionBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
     */
    public Builder addInsertion(
        int index, ai.promoted.proto.delivery.Insertion.Builder builderForValue) {
      if (insertionBuilder_ == null) {
        ensureInsertionIsMutable();
        insertion_.add(index, builderForValue.build());
        onChanged();
      } else {
        insertionBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
     */
    public Builder addAllInsertion(
        java.lang.Iterable values) {
      if (insertionBuilder_ == null) {
        ensureInsertionIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, insertion_);
        onChanged();
      } else {
        insertionBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
     */
    public Builder clearInsertion() {
      if (insertionBuilder_ == null) {
        insertion_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        insertionBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
     */
    public Builder removeInsertion(int index) {
      if (insertionBuilder_ == null) {
        ensureInsertionIsMutable();
        insertion_.remove(index);
        onChanged();
      } else {
        insertionBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
     */
    public ai.promoted.proto.delivery.Insertion.Builder getInsertionBuilder(
        int index) {
      return getInsertionFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
     */
    public ai.promoted.proto.delivery.InsertionOrBuilder getInsertionOrBuilder(
        int index) {
      if (insertionBuilder_ == null) {
        return insertion_.get(index);  } else {
        return insertionBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
     */
    public java.util.List 
         getInsertionOrBuilderList() {
      if (insertionBuilder_ != null) {
        return insertionBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(insertion_);
      }
    }
    /**
     * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
     */
    public ai.promoted.proto.delivery.Insertion.Builder addInsertionBuilder() {
      return getInsertionFieldBuilder().addBuilder(
          ai.promoted.proto.delivery.Insertion.getDefaultInstance());
    }
    /**
     * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
     */
    public ai.promoted.proto.delivery.Insertion.Builder addInsertionBuilder(
        int index) {
      return getInsertionFieldBuilder().addBuilder(
          index, ai.promoted.proto.delivery.Insertion.getDefaultInstance());
    }
    /**
     * repeated .delivery.Insertion insertion = 2 [json_name = "insertion"];
     */
    public java.util.List 
         getInsertionBuilderList() {
      return getInsertionFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        ai.promoted.proto.delivery.Insertion, ai.promoted.proto.delivery.Insertion.Builder, ai.promoted.proto.delivery.InsertionOrBuilder> 
        getInsertionFieldBuilder() {
      if (insertionBuilder_ == null) {
        insertionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            ai.promoted.proto.delivery.Insertion, ai.promoted.proto.delivery.Insertion.Builder, ai.promoted.proto.delivery.InsertionOrBuilder>(
                insertion_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        insertion_ = null;
      }
      return insertionBuilder_;
    }

    private ai.promoted.proto.delivery.PagingInfo pagingInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.delivery.PagingInfo, ai.promoted.proto.delivery.PagingInfo.Builder, ai.promoted.proto.delivery.PagingInfoOrBuilder> pagingInfoBuilder_;
    /**
     * .delivery.PagingInfo paging_info = 3 [json_name = "pagingInfo"];
     * @return Whether the pagingInfo field is set.
     */
    public boolean hasPagingInfo() {
      return pagingInfoBuilder_ != null || pagingInfo_ != null;
    }
    /**
     * .delivery.PagingInfo paging_info = 3 [json_name = "pagingInfo"];
     * @return The pagingInfo.
     */
    public ai.promoted.proto.delivery.PagingInfo getPagingInfo() {
      if (pagingInfoBuilder_ == null) {
        return pagingInfo_ == null ? ai.promoted.proto.delivery.PagingInfo.getDefaultInstance() : pagingInfo_;
      } else {
        return pagingInfoBuilder_.getMessage();
      }
    }
    /**
     * .delivery.PagingInfo paging_info = 3 [json_name = "pagingInfo"];
     */
    public Builder setPagingInfo(ai.promoted.proto.delivery.PagingInfo value) {
      if (pagingInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        pagingInfo_ = value;
        onChanged();
      } else {
        pagingInfoBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .delivery.PagingInfo paging_info = 3 [json_name = "pagingInfo"];
     */
    public Builder setPagingInfo(
        ai.promoted.proto.delivery.PagingInfo.Builder builderForValue) {
      if (pagingInfoBuilder_ == null) {
        pagingInfo_ = builderForValue.build();
        onChanged();
      } else {
        pagingInfoBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .delivery.PagingInfo paging_info = 3 [json_name = "pagingInfo"];
     */
    public Builder mergePagingInfo(ai.promoted.proto.delivery.PagingInfo value) {
      if (pagingInfoBuilder_ == null) {
        if (pagingInfo_ != null) {
          pagingInfo_ =
            ai.promoted.proto.delivery.PagingInfo.newBuilder(pagingInfo_).mergeFrom(value).buildPartial();
        } else {
          pagingInfo_ = value;
        }
        onChanged();
      } else {
        pagingInfoBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .delivery.PagingInfo paging_info = 3 [json_name = "pagingInfo"];
     */
    public Builder clearPagingInfo() {
      if (pagingInfoBuilder_ == null) {
        pagingInfo_ = null;
        onChanged();
      } else {
        pagingInfo_ = null;
        pagingInfoBuilder_ = null;
      }

      return this;
    }
    /**
     * .delivery.PagingInfo paging_info = 3 [json_name = "pagingInfo"];
     */
    public ai.promoted.proto.delivery.PagingInfo.Builder getPagingInfoBuilder() {
      
      onChanged();
      return getPagingInfoFieldBuilder().getBuilder();
    }
    /**
     * .delivery.PagingInfo paging_info = 3 [json_name = "pagingInfo"];
     */
    public ai.promoted.proto.delivery.PagingInfoOrBuilder getPagingInfoOrBuilder() {
      if (pagingInfoBuilder_ != null) {
        return pagingInfoBuilder_.getMessageOrBuilder();
      } else {
        return pagingInfo_ == null ?
            ai.promoted.proto.delivery.PagingInfo.getDefaultInstance() : pagingInfo_;
      }
    }
    /**
     * .delivery.PagingInfo paging_info = 3 [json_name = "pagingInfo"];
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.delivery.PagingInfo, ai.promoted.proto.delivery.PagingInfo.Builder, ai.promoted.proto.delivery.PagingInfoOrBuilder> 
        getPagingInfoFieldBuilder() {
      if (pagingInfoBuilder_ == null) {
        pagingInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            ai.promoted.proto.delivery.PagingInfo, ai.promoted.proto.delivery.PagingInfo.Builder, ai.promoted.proto.delivery.PagingInfoOrBuilder>(
                getPagingInfo(),
                getParentForChildren(),
                isClean());
        pagingInfo_ = null;
      }
      return pagingInfoBuilder_;
    }

    private java.lang.Object introspectionData_ = "";
    /**
     * string introspection_data = 4 [json_name = "introspectionData"];
     * @return Whether the introspectionData field is set.
     */
    public boolean hasIntrospectionData() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * string introspection_data = 4 [json_name = "introspectionData"];
     * @return The introspectionData.
     */
    public java.lang.String getIntrospectionData() {
      java.lang.Object ref = introspectionData_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        introspectionData_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string introspection_data = 4 [json_name = "introspectionData"];
     * @return The bytes for introspectionData.
     */
    public com.google.protobuf.ByteString
        getIntrospectionDataBytes() {
      java.lang.Object ref = introspectionData_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        introspectionData_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string introspection_data = 4 [json_name = "introspectionData"];
     * @param value The introspectionData to set.
     * @return This builder for chaining.
     */
    public Builder setIntrospectionData(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
      introspectionData_ = value;
      onChanged();
      return this;
    }
    /**
     * string introspection_data = 4 [json_name = "introspectionData"];
     * @return This builder for chaining.
     */
    public Builder clearIntrospectionData() {
      bitField0_ = (bitField0_ & ~0x00000002);
      introspectionData_ = getDefaultInstance().getIntrospectionData();
      onChanged();
      return this;
    }
    /**
     * string introspection_data = 4 [json_name = "introspectionData"];
     * @param value The bytes for introspectionData to set.
     * @return This builder for chaining.
     */
    public Builder setIntrospectionDataBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      bitField0_ |= 0x00000002;
      introspectionData_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object requestId_ = "";
    /**
     * string request_id = 5 [json_name = "requestId"];
     * @return The requestId.
     */
    public java.lang.String getRequestId() {
      java.lang.Object ref = requestId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        requestId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string request_id = 5 [json_name = "requestId"];
     * @return The bytes for requestId.
     */
    public com.google.protobuf.ByteString
        getRequestIdBytes() {
      java.lang.Object ref = requestId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        requestId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string request_id = 5 [json_name = "requestId"];
     * @param value The requestId to set.
     * @return This builder for chaining.
     */
    public Builder setRequestId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      requestId_ = value;
      onChanged();
      return this;
    }
    /**
     * string request_id = 5 [json_name = "requestId"];
     * @return This builder for chaining.
     */
    public Builder clearRequestId() {
      
      requestId_ = getDefaultInstance().getRequestId();
      onChanged();
      return this;
    }
    /**
     * string request_id = 5 [json_name = "requestId"];
     * @param value The bytes for requestId to set.
     * @return This builder for chaining.
     */
    public Builder setRequestIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      requestId_ = value;
      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.Response)
  }

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

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

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public Response parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new Response(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.Response getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy