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

ai.promoted.proto.delivery.DeliveryLog 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/execution.proto

package ai.promoted.proto.delivery;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private DeliveryLog(
      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 8: {

            platformId_ = input.readUInt64();
            break;
          }
          case 18: {
            ai.promoted.proto.delivery.Request.Builder subBuilder = null;
            if (request_ != null) {
              subBuilder = request_.toBuilder();
            }
            request_ = input.readMessage(ai.promoted.proto.delivery.Request.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(request_);
              request_ = subBuilder.buildPartial();
            }

            break;
          }
          case 26: {
            ai.promoted.proto.delivery.Response.Builder subBuilder = null;
            if (response_ != null) {
              subBuilder = response_.toBuilder();
            }
            response_ = input.readMessage(ai.promoted.proto.delivery.Response.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(response_);
              response_ = subBuilder.buildPartial();
            }

            break;
          }
          case 34: {
            ai.promoted.proto.delivery.DeliveryExecution.Builder subBuilder = null;
            if (execution_ != null) {
              subBuilder = execution_.toBuilder();
            }
            execution_ = input.readMessage(ai.promoted.proto.delivery.DeliveryExecution.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(execution_);
              execution_ = subBuilder.buildPartial();
            }

            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.DeliveryExecutionLog.internal_static_delivery_DeliveryLog_descriptor;
  }

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

  public static final int PLATFORM_ID_FIELD_NUMBER = 1;
  private long platformId_;
  /**
   * uint64 platform_id = 1 [json_name = "platformId"];
   * @return The platformId.
   */
  @java.lang.Override
  public long getPlatformId() {
    return platformId_;
  }

  public static final int REQUEST_FIELD_NUMBER = 2;
  private ai.promoted.proto.delivery.Request request_;
  /**
   * .delivery.Request request = 2 [json_name = "request"];
   * @return Whether the request field is set.
   */
  @java.lang.Override
  public boolean hasRequest() {
    return request_ != null;
  }
  /**
   * .delivery.Request request = 2 [json_name = "request"];
   * @return The request.
   */
  @java.lang.Override
  public ai.promoted.proto.delivery.Request getRequest() {
    return request_ == null ? ai.promoted.proto.delivery.Request.getDefaultInstance() : request_;
  }
  /**
   * .delivery.Request request = 2 [json_name = "request"];
   */
  @java.lang.Override
  public ai.promoted.proto.delivery.RequestOrBuilder getRequestOrBuilder() {
    return getRequest();
  }

  public static final int RESPONSE_FIELD_NUMBER = 3;
  private ai.promoted.proto.delivery.Response response_;
  /**
   * .delivery.Response response = 3 [json_name = "response"];
   * @return Whether the response field is set.
   */
  @java.lang.Override
  public boolean hasResponse() {
    return response_ != null;
  }
  /**
   * .delivery.Response response = 3 [json_name = "response"];
   * @return The response.
   */
  @java.lang.Override
  public ai.promoted.proto.delivery.Response getResponse() {
    return response_ == null ? ai.promoted.proto.delivery.Response.getDefaultInstance() : response_;
  }
  /**
   * .delivery.Response response = 3 [json_name = "response"];
   */
  @java.lang.Override
  public ai.promoted.proto.delivery.ResponseOrBuilder getResponseOrBuilder() {
    return getResponse();
  }

  public static final int EXECUTION_FIELD_NUMBER = 4;
  private ai.promoted.proto.delivery.DeliveryExecution execution_;
  /**
   * .delivery.DeliveryExecution execution = 4 [json_name = "execution"];
   * @return Whether the execution field is set.
   */
  @java.lang.Override
  public boolean hasExecution() {
    return execution_ != null;
  }
  /**
   * .delivery.DeliveryExecution execution = 4 [json_name = "execution"];
   * @return The execution.
   */
  @java.lang.Override
  public ai.promoted.proto.delivery.DeliveryExecution getExecution() {
    return execution_ == null ? ai.promoted.proto.delivery.DeliveryExecution.getDefaultInstance() : execution_;
  }
  /**
   * .delivery.DeliveryExecution execution = 4 [json_name = "execution"];
   */
  @java.lang.Override
  public ai.promoted.proto.delivery.DeliveryExecutionOrBuilder getExecutionOrBuilder() {
    return getExecution();
  }

  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 (platformId_ != 0L) {
      output.writeUInt64(1, platformId_);
    }
    if (request_ != null) {
      output.writeMessage(2, getRequest());
    }
    if (response_ != null) {
      output.writeMessage(3, getResponse());
    }
    if (execution_ != null) {
      output.writeMessage(4, getExecution());
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (platformId_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(1, platformId_);
    }
    if (request_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getRequest());
    }
    if (response_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getResponse());
    }
    if (execution_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getExecution());
    }
    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.DeliveryLog)) {
      return super.equals(obj);
    }
    ai.promoted.proto.delivery.DeliveryLog other = (ai.promoted.proto.delivery.DeliveryLog) obj;

    if (getPlatformId()
        != other.getPlatformId()) return false;
    if (hasRequest() != other.hasRequest()) return false;
    if (hasRequest()) {
      if (!getRequest()
          .equals(other.getRequest())) return false;
    }
    if (hasResponse() != other.hasResponse()) return false;
    if (hasResponse()) {
      if (!getResponse()
          .equals(other.getResponse())) return false;
    }
    if (hasExecution() != other.hasExecution()) return false;
    if (hasExecution()) {
      if (!getExecution()
          .equals(other.getExecution())) 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();
    hash = (37 * hash) + PLATFORM_ID_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getPlatformId());
    if (hasRequest()) {
      hash = (37 * hash) + REQUEST_FIELD_NUMBER;
      hash = (53 * hash) + getRequest().hashCode();
    }
    if (hasResponse()) {
      hash = (37 * hash) + RESPONSE_FIELD_NUMBER;
      hash = (53 * hash) + getResponse().hashCode();
    }
    if (hasExecution()) {
      hash = (37 * hash) + EXECUTION_FIELD_NUMBER;
      hash = (53 * hash) + getExecution().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using ai.promoted.proto.delivery.DeliveryLog.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();
      platformId_ = 0L;

      if (requestBuilder_ == null) {
        request_ = null;
      } else {
        request_ = null;
        requestBuilder_ = null;
      }
      if (responseBuilder_ == null) {
        response_ = null;
      } else {
        response_ = null;
        responseBuilder_ = null;
      }
      if (executionBuilder_ == null) {
        execution_ = null;
      } else {
        execution_ = null;
        executionBuilder_ = null;
      }
      return this;
    }

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

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

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

    @java.lang.Override
    public ai.promoted.proto.delivery.DeliveryLog buildPartial() {
      ai.promoted.proto.delivery.DeliveryLog result = new ai.promoted.proto.delivery.DeliveryLog(this);
      result.platformId_ = platformId_;
      if (requestBuilder_ == null) {
        result.request_ = request_;
      } else {
        result.request_ = requestBuilder_.build();
      }
      if (responseBuilder_ == null) {
        result.response_ = response_;
      } else {
        result.response_ = responseBuilder_.build();
      }
      if (executionBuilder_ == null) {
        result.execution_ = execution_;
      } else {
        result.execution_ = executionBuilder_.build();
      }
      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.DeliveryLog) {
        return mergeFrom((ai.promoted.proto.delivery.DeliveryLog)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(ai.promoted.proto.delivery.DeliveryLog other) {
      if (other == ai.promoted.proto.delivery.DeliveryLog.getDefaultInstance()) return this;
      if (other.getPlatformId() != 0L) {
        setPlatformId(other.getPlatformId());
      }
      if (other.hasRequest()) {
        mergeRequest(other.getRequest());
      }
      if (other.hasResponse()) {
        mergeResponse(other.getResponse());
      }
      if (other.hasExecution()) {
        mergeExecution(other.getExecution());
      }
      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.DeliveryLog parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (ai.promoted.proto.delivery.DeliveryLog) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private long platformId_ ;
    /**
     * uint64 platform_id = 1 [json_name = "platformId"];
     * @return The platformId.
     */
    @java.lang.Override
    public long getPlatformId() {
      return platformId_;
    }
    /**
     * uint64 platform_id = 1 [json_name = "platformId"];
     * @param value The platformId to set.
     * @return This builder for chaining.
     */
    public Builder setPlatformId(long value) {
      
      platformId_ = value;
      onChanged();
      return this;
    }
    /**
     * uint64 platform_id = 1 [json_name = "platformId"];
     * @return This builder for chaining.
     */
    public Builder clearPlatformId() {
      
      platformId_ = 0L;
      onChanged();
      return this;
    }

    private ai.promoted.proto.delivery.Request request_;
    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.delivery.Request, ai.promoted.proto.delivery.Request.Builder, ai.promoted.proto.delivery.RequestOrBuilder> requestBuilder_;
    /**
     * .delivery.Request request = 2 [json_name = "request"];
     * @return Whether the request field is set.
     */
    public boolean hasRequest() {
      return requestBuilder_ != null || request_ != null;
    }
    /**
     * .delivery.Request request = 2 [json_name = "request"];
     * @return The request.
     */
    public ai.promoted.proto.delivery.Request getRequest() {
      if (requestBuilder_ == null) {
        return request_ == null ? ai.promoted.proto.delivery.Request.getDefaultInstance() : request_;
      } else {
        return requestBuilder_.getMessage();
      }
    }
    /**
     * .delivery.Request request = 2 [json_name = "request"];
     */
    public Builder setRequest(ai.promoted.proto.delivery.Request value) {
      if (requestBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        request_ = value;
        onChanged();
      } else {
        requestBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .delivery.Request request = 2 [json_name = "request"];
     */
    public Builder setRequest(
        ai.promoted.proto.delivery.Request.Builder builderForValue) {
      if (requestBuilder_ == null) {
        request_ = builderForValue.build();
        onChanged();
      } else {
        requestBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .delivery.Request request = 2 [json_name = "request"];
     */
    public Builder mergeRequest(ai.promoted.proto.delivery.Request value) {
      if (requestBuilder_ == null) {
        if (request_ != null) {
          request_ =
            ai.promoted.proto.delivery.Request.newBuilder(request_).mergeFrom(value).buildPartial();
        } else {
          request_ = value;
        }
        onChanged();
      } else {
        requestBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .delivery.Request request = 2 [json_name = "request"];
     */
    public Builder clearRequest() {
      if (requestBuilder_ == null) {
        request_ = null;
        onChanged();
      } else {
        request_ = null;
        requestBuilder_ = null;
      }

      return this;
    }
    /**
     * .delivery.Request request = 2 [json_name = "request"];
     */
    public ai.promoted.proto.delivery.Request.Builder getRequestBuilder() {
      
      onChanged();
      return getRequestFieldBuilder().getBuilder();
    }
    /**
     * .delivery.Request request = 2 [json_name = "request"];
     */
    public ai.promoted.proto.delivery.RequestOrBuilder getRequestOrBuilder() {
      if (requestBuilder_ != null) {
        return requestBuilder_.getMessageOrBuilder();
      } else {
        return request_ == null ?
            ai.promoted.proto.delivery.Request.getDefaultInstance() : request_;
      }
    }
    /**
     * .delivery.Request request = 2 [json_name = "request"];
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.delivery.Request, ai.promoted.proto.delivery.Request.Builder, ai.promoted.proto.delivery.RequestOrBuilder> 
        getRequestFieldBuilder() {
      if (requestBuilder_ == null) {
        requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            ai.promoted.proto.delivery.Request, ai.promoted.proto.delivery.Request.Builder, ai.promoted.proto.delivery.RequestOrBuilder>(
                getRequest(),
                getParentForChildren(),
                isClean());
        request_ = null;
      }
      return requestBuilder_;
    }

    private ai.promoted.proto.delivery.Response response_;
    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.delivery.Response, ai.promoted.proto.delivery.Response.Builder, ai.promoted.proto.delivery.ResponseOrBuilder> responseBuilder_;
    /**
     * .delivery.Response response = 3 [json_name = "response"];
     * @return Whether the response field is set.
     */
    public boolean hasResponse() {
      return responseBuilder_ != null || response_ != null;
    }
    /**
     * .delivery.Response response = 3 [json_name = "response"];
     * @return The response.
     */
    public ai.promoted.proto.delivery.Response getResponse() {
      if (responseBuilder_ == null) {
        return response_ == null ? ai.promoted.proto.delivery.Response.getDefaultInstance() : response_;
      } else {
        return responseBuilder_.getMessage();
      }
    }
    /**
     * .delivery.Response response = 3 [json_name = "response"];
     */
    public Builder setResponse(ai.promoted.proto.delivery.Response value) {
      if (responseBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        response_ = value;
        onChanged();
      } else {
        responseBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .delivery.Response response = 3 [json_name = "response"];
     */
    public Builder setResponse(
        ai.promoted.proto.delivery.Response.Builder builderForValue) {
      if (responseBuilder_ == null) {
        response_ = builderForValue.build();
        onChanged();
      } else {
        responseBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .delivery.Response response = 3 [json_name = "response"];
     */
    public Builder mergeResponse(ai.promoted.proto.delivery.Response value) {
      if (responseBuilder_ == null) {
        if (response_ != null) {
          response_ =
            ai.promoted.proto.delivery.Response.newBuilder(response_).mergeFrom(value).buildPartial();
        } else {
          response_ = value;
        }
        onChanged();
      } else {
        responseBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .delivery.Response response = 3 [json_name = "response"];
     */
    public Builder clearResponse() {
      if (responseBuilder_ == null) {
        response_ = null;
        onChanged();
      } else {
        response_ = null;
        responseBuilder_ = null;
      }

      return this;
    }
    /**
     * .delivery.Response response = 3 [json_name = "response"];
     */
    public ai.promoted.proto.delivery.Response.Builder getResponseBuilder() {
      
      onChanged();
      return getResponseFieldBuilder().getBuilder();
    }
    /**
     * .delivery.Response response = 3 [json_name = "response"];
     */
    public ai.promoted.proto.delivery.ResponseOrBuilder getResponseOrBuilder() {
      if (responseBuilder_ != null) {
        return responseBuilder_.getMessageOrBuilder();
      } else {
        return response_ == null ?
            ai.promoted.proto.delivery.Response.getDefaultInstance() : response_;
      }
    }
    /**
     * .delivery.Response response = 3 [json_name = "response"];
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.delivery.Response, ai.promoted.proto.delivery.Response.Builder, ai.promoted.proto.delivery.ResponseOrBuilder> 
        getResponseFieldBuilder() {
      if (responseBuilder_ == null) {
        responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            ai.promoted.proto.delivery.Response, ai.promoted.proto.delivery.Response.Builder, ai.promoted.proto.delivery.ResponseOrBuilder>(
                getResponse(),
                getParentForChildren(),
                isClean());
        response_ = null;
      }
      return responseBuilder_;
    }

    private ai.promoted.proto.delivery.DeliveryExecution execution_;
    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.delivery.DeliveryExecution, ai.promoted.proto.delivery.DeliveryExecution.Builder, ai.promoted.proto.delivery.DeliveryExecutionOrBuilder> executionBuilder_;
    /**
     * .delivery.DeliveryExecution execution = 4 [json_name = "execution"];
     * @return Whether the execution field is set.
     */
    public boolean hasExecution() {
      return executionBuilder_ != null || execution_ != null;
    }
    /**
     * .delivery.DeliveryExecution execution = 4 [json_name = "execution"];
     * @return The execution.
     */
    public ai.promoted.proto.delivery.DeliveryExecution getExecution() {
      if (executionBuilder_ == null) {
        return execution_ == null ? ai.promoted.proto.delivery.DeliveryExecution.getDefaultInstance() : execution_;
      } else {
        return executionBuilder_.getMessage();
      }
    }
    /**
     * .delivery.DeliveryExecution execution = 4 [json_name = "execution"];
     */
    public Builder setExecution(ai.promoted.proto.delivery.DeliveryExecution value) {
      if (executionBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        execution_ = value;
        onChanged();
      } else {
        executionBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .delivery.DeliveryExecution execution = 4 [json_name = "execution"];
     */
    public Builder setExecution(
        ai.promoted.proto.delivery.DeliveryExecution.Builder builderForValue) {
      if (executionBuilder_ == null) {
        execution_ = builderForValue.build();
        onChanged();
      } else {
        executionBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .delivery.DeliveryExecution execution = 4 [json_name = "execution"];
     */
    public Builder mergeExecution(ai.promoted.proto.delivery.DeliveryExecution value) {
      if (executionBuilder_ == null) {
        if (execution_ != null) {
          execution_ =
            ai.promoted.proto.delivery.DeliveryExecution.newBuilder(execution_).mergeFrom(value).buildPartial();
        } else {
          execution_ = value;
        }
        onChanged();
      } else {
        executionBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .delivery.DeliveryExecution execution = 4 [json_name = "execution"];
     */
    public Builder clearExecution() {
      if (executionBuilder_ == null) {
        execution_ = null;
        onChanged();
      } else {
        execution_ = null;
        executionBuilder_ = null;
      }

      return this;
    }
    /**
     * .delivery.DeliveryExecution execution = 4 [json_name = "execution"];
     */
    public ai.promoted.proto.delivery.DeliveryExecution.Builder getExecutionBuilder() {
      
      onChanged();
      return getExecutionFieldBuilder().getBuilder();
    }
    /**
     * .delivery.DeliveryExecution execution = 4 [json_name = "execution"];
     */
    public ai.promoted.proto.delivery.DeliveryExecutionOrBuilder getExecutionOrBuilder() {
      if (executionBuilder_ != null) {
        return executionBuilder_.getMessageOrBuilder();
      } else {
        return execution_ == null ?
            ai.promoted.proto.delivery.DeliveryExecution.getDefaultInstance() : execution_;
      }
    }
    /**
     * .delivery.DeliveryExecution execution = 4 [json_name = "execution"];
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.delivery.DeliveryExecution, ai.promoted.proto.delivery.DeliveryExecution.Builder, ai.promoted.proto.delivery.DeliveryExecutionOrBuilder> 
        getExecutionFieldBuilder() {
      if (executionBuilder_ == null) {
        executionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            ai.promoted.proto.delivery.DeliveryExecution, ai.promoted.proto.delivery.DeliveryExecution.Builder, ai.promoted.proto.delivery.DeliveryExecutionOrBuilder>(
                getExecution(),
                getParentForChildren(),
                isClean());
        execution_ = null;
      }
      return executionBuilder_;
    }
    @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.DeliveryLog)
  }

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

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

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

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy