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

xyz.block.ftl.v1.GetDeploymentArtefactsRequest Maven / Gradle / Ivy

There is a newer version: 0.368.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: xyz/block/ftl/v1/ftl.proto

// Protobuf Java Version: 3.25.4
package xyz.block.ftl.v1;

/**
 * Protobuf type {@code xyz.block.ftl.v1.GetDeploymentArtefactsRequest}
 */
public final class GetDeploymentArtefactsRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:xyz.block.ftl.v1.GetDeploymentArtefactsRequest)
    GetDeploymentArtefactsRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use GetDeploymentArtefactsRequest.newBuilder() to construct.
  private GetDeploymentArtefactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private GetDeploymentArtefactsRequest() {
    deploymentKey_ = "";
    haveArtefacts_ = java.util.Collections.emptyList();
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_GetDeploymentArtefactsRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_GetDeploymentArtefactsRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            xyz.block.ftl.v1.GetDeploymentArtefactsRequest.class, xyz.block.ftl.v1.GetDeploymentArtefactsRequest.Builder.class);
  }

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

  public static final int HAVE_ARTEFACTS_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private java.util.List haveArtefacts_;
  /**
   * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
   */
  @java.lang.Override
  public java.util.List getHaveArtefactsList() {
    return haveArtefacts_;
  }
  /**
   * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
   */
  @java.lang.Override
  public java.util.List 
      getHaveArtefactsOrBuilderList() {
    return haveArtefacts_;
  }
  /**
   * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
   */
  @java.lang.Override
  public int getHaveArtefactsCount() {
    return haveArtefacts_.size();
  }
  /**
   * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
   */
  @java.lang.Override
  public xyz.block.ftl.v1.DeploymentArtefact getHaveArtefacts(int index) {
    return haveArtefacts_.get(index);
  }
  /**
   * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
   */
  @java.lang.Override
  public xyz.block.ftl.v1.DeploymentArtefactOrBuilder getHaveArtefactsOrBuilder(
      int index) {
    return haveArtefacts_.get(index);
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deploymentKey_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deploymentKey_);
    }
    for (int i = 0; i < haveArtefacts_.size(); i++) {
      output.writeMessage(2, haveArtefacts_.get(i));
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deploymentKey_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deploymentKey_);
    }
    for (int i = 0; i < haveArtefacts_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, haveArtefacts_.get(i));
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof xyz.block.ftl.v1.GetDeploymentArtefactsRequest)) {
      return super.equals(obj);
    }
    xyz.block.ftl.v1.GetDeploymentArtefactsRequest other = (xyz.block.ftl.v1.GetDeploymentArtefactsRequest) obj;

    if (!getDeploymentKey()
        .equals(other.getDeploymentKey())) return false;
    if (!getHaveArtefactsList()
        .equals(other.getHaveArtefactsList())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + DEPLOYMENT_KEY_FIELD_NUMBER;
    hash = (53 * hash) + getDeploymentKey().hashCode();
    if (getHaveArtefactsCount() > 0) {
      hash = (37 * hash) + HAVE_ARTEFACTS_FIELD_NUMBER;
      hash = (53 * hash) + getHaveArtefactsList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static xyz.block.ftl.v1.GetDeploymentArtefactsRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static xyz.block.ftl.v1.GetDeploymentArtefactsRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static xyz.block.ftl.v1.GetDeploymentArtefactsRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static xyz.block.ftl.v1.GetDeploymentArtefactsRequest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static xyz.block.ftl.v1.GetDeploymentArtefactsRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static xyz.block.ftl.v1.GetDeploymentArtefactsRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static xyz.block.ftl.v1.GetDeploymentArtefactsRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static xyz.block.ftl.v1.GetDeploymentArtefactsRequest 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 xyz.block.ftl.v1.GetDeploymentArtefactsRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static xyz.block.ftl.v1.GetDeploymentArtefactsRequest 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 xyz.block.ftl.v1.GetDeploymentArtefactsRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static xyz.block.ftl.v1.GetDeploymentArtefactsRequest 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(xyz.block.ftl.v1.GetDeploymentArtefactsRequest 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 xyz.block.ftl.v1.GetDeploymentArtefactsRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:xyz.block.ftl.v1.GetDeploymentArtefactsRequest)
      xyz.block.ftl.v1.GetDeploymentArtefactsRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_GetDeploymentArtefactsRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_GetDeploymentArtefactsRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              xyz.block.ftl.v1.GetDeploymentArtefactsRequest.class, xyz.block.ftl.v1.GetDeploymentArtefactsRequest.Builder.class);
    }

    // Construct using xyz.block.ftl.v1.GetDeploymentArtefactsRequest.newBuilder()
    private Builder() {

    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      deploymentKey_ = "";
      if (haveArtefactsBuilder_ == null) {
        haveArtefacts_ = java.util.Collections.emptyList();
      } else {
        haveArtefacts_ = null;
        haveArtefactsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_GetDeploymentArtefactsRequest_descriptor;
    }

    @java.lang.Override
    public xyz.block.ftl.v1.GetDeploymentArtefactsRequest getDefaultInstanceForType() {
      return xyz.block.ftl.v1.GetDeploymentArtefactsRequest.getDefaultInstance();
    }

    @java.lang.Override
    public xyz.block.ftl.v1.GetDeploymentArtefactsRequest build() {
      xyz.block.ftl.v1.GetDeploymentArtefactsRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public xyz.block.ftl.v1.GetDeploymentArtefactsRequest buildPartial() {
      xyz.block.ftl.v1.GetDeploymentArtefactsRequest result = new xyz.block.ftl.v1.GetDeploymentArtefactsRequest(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(xyz.block.ftl.v1.GetDeploymentArtefactsRequest result) {
      if (haveArtefactsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          haveArtefacts_ = java.util.Collections.unmodifiableList(haveArtefacts_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.haveArtefacts_ = haveArtefacts_;
      } else {
        result.haveArtefacts_ = haveArtefactsBuilder_.build();
      }
    }

    private void buildPartial0(xyz.block.ftl.v1.GetDeploymentArtefactsRequest result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.deploymentKey_ = deploymentKey_;
      }
    }

    @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 xyz.block.ftl.v1.GetDeploymentArtefactsRequest) {
        return mergeFrom((xyz.block.ftl.v1.GetDeploymentArtefactsRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(xyz.block.ftl.v1.GetDeploymentArtefactsRequest other) {
      if (other == xyz.block.ftl.v1.GetDeploymentArtefactsRequest.getDefaultInstance()) return this;
      if (!other.getDeploymentKey().isEmpty()) {
        deploymentKey_ = other.deploymentKey_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (haveArtefactsBuilder_ == null) {
        if (!other.haveArtefacts_.isEmpty()) {
          if (haveArtefacts_.isEmpty()) {
            haveArtefacts_ = other.haveArtefacts_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureHaveArtefactsIsMutable();
            haveArtefacts_.addAll(other.haveArtefacts_);
          }
          onChanged();
        }
      } else {
        if (!other.haveArtefacts_.isEmpty()) {
          if (haveArtefactsBuilder_.isEmpty()) {
            haveArtefactsBuilder_.dispose();
            haveArtefactsBuilder_ = null;
            haveArtefacts_ = other.haveArtefacts_;
            bitField0_ = (bitField0_ & ~0x00000002);
            haveArtefactsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getHaveArtefactsFieldBuilder() : null;
          } else {
            haveArtefactsBuilder_.addAllMessages(other.haveArtefacts_);
          }
        }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              deploymentKey_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              xyz.block.ftl.v1.DeploymentArtefact m =
                  input.readMessage(
                      xyz.block.ftl.v1.DeploymentArtefact.parser(),
                      extensionRegistry);
              if (haveArtefactsBuilder_ == null) {
                ensureHaveArtefactsIsMutable();
                haveArtefacts_.add(m);
              } else {
                haveArtefactsBuilder_.addMessage(m);
              }
              break;
            } // case 18
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private java.lang.Object deploymentKey_ = "";
    /**
     * string deployment_key = 1;
     * @return The deploymentKey.
     */
    public java.lang.String getDeploymentKey() {
      java.lang.Object ref = deploymentKey_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        deploymentKey_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string deployment_key = 1;
     * @return The bytes for deploymentKey.
     */
    public com.google.protobuf.ByteString
        getDeploymentKeyBytes() {
      java.lang.Object ref = deploymentKey_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        deploymentKey_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string deployment_key = 1;
     * @param value The deploymentKey to set.
     * @return This builder for chaining.
     */
    public Builder setDeploymentKey(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      deploymentKey_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * string deployment_key = 1;
     * @return This builder for chaining.
     */
    public Builder clearDeploymentKey() {
      deploymentKey_ = getDefaultInstance().getDeploymentKey();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * string deployment_key = 1;
     * @param value The bytes for deploymentKey to set.
     * @return This builder for chaining.
     */
    public Builder setDeploymentKeyBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      deploymentKey_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.util.List haveArtefacts_ =
      java.util.Collections.emptyList();
    private void ensureHaveArtefactsIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        haveArtefacts_ = new java.util.ArrayList(haveArtefacts_);
        bitField0_ |= 0x00000002;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        xyz.block.ftl.v1.DeploymentArtefact, xyz.block.ftl.v1.DeploymentArtefact.Builder, xyz.block.ftl.v1.DeploymentArtefactOrBuilder> haveArtefactsBuilder_;

    /**
     * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
     */
    public java.util.List getHaveArtefactsList() {
      if (haveArtefactsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(haveArtefacts_);
      } else {
        return haveArtefactsBuilder_.getMessageList();
      }
    }
    /**
     * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
     */
    public int getHaveArtefactsCount() {
      if (haveArtefactsBuilder_ == null) {
        return haveArtefacts_.size();
      } else {
        return haveArtefactsBuilder_.getCount();
      }
    }
    /**
     * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
     */
    public xyz.block.ftl.v1.DeploymentArtefact getHaveArtefacts(int index) {
      if (haveArtefactsBuilder_ == null) {
        return haveArtefacts_.get(index);
      } else {
        return haveArtefactsBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
     */
    public Builder setHaveArtefacts(
        int index, xyz.block.ftl.v1.DeploymentArtefact value) {
      if (haveArtefactsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureHaveArtefactsIsMutable();
        haveArtefacts_.set(index, value);
        onChanged();
      } else {
        haveArtefactsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
     */
    public Builder setHaveArtefacts(
        int index, xyz.block.ftl.v1.DeploymentArtefact.Builder builderForValue) {
      if (haveArtefactsBuilder_ == null) {
        ensureHaveArtefactsIsMutable();
        haveArtefacts_.set(index, builderForValue.build());
        onChanged();
      } else {
        haveArtefactsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
     */
    public Builder addHaveArtefacts(xyz.block.ftl.v1.DeploymentArtefact value) {
      if (haveArtefactsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureHaveArtefactsIsMutable();
        haveArtefacts_.add(value);
        onChanged();
      } else {
        haveArtefactsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
     */
    public Builder addHaveArtefacts(
        int index, xyz.block.ftl.v1.DeploymentArtefact value) {
      if (haveArtefactsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureHaveArtefactsIsMutable();
        haveArtefacts_.add(index, value);
        onChanged();
      } else {
        haveArtefactsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
     */
    public Builder addHaveArtefacts(
        xyz.block.ftl.v1.DeploymentArtefact.Builder builderForValue) {
      if (haveArtefactsBuilder_ == null) {
        ensureHaveArtefactsIsMutable();
        haveArtefacts_.add(builderForValue.build());
        onChanged();
      } else {
        haveArtefactsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
     */
    public Builder addHaveArtefacts(
        int index, xyz.block.ftl.v1.DeploymentArtefact.Builder builderForValue) {
      if (haveArtefactsBuilder_ == null) {
        ensureHaveArtefactsIsMutable();
        haveArtefacts_.add(index, builderForValue.build());
        onChanged();
      } else {
        haveArtefactsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
     */
    public Builder addAllHaveArtefacts(
        java.lang.Iterable values) {
      if (haveArtefactsBuilder_ == null) {
        ensureHaveArtefactsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, haveArtefacts_);
        onChanged();
      } else {
        haveArtefactsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
     */
    public Builder clearHaveArtefacts() {
      if (haveArtefactsBuilder_ == null) {
        haveArtefacts_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        haveArtefactsBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
     */
    public Builder removeHaveArtefacts(int index) {
      if (haveArtefactsBuilder_ == null) {
        ensureHaveArtefactsIsMutable();
        haveArtefacts_.remove(index);
        onChanged();
      } else {
        haveArtefactsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
     */
    public xyz.block.ftl.v1.DeploymentArtefact.Builder getHaveArtefactsBuilder(
        int index) {
      return getHaveArtefactsFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
     */
    public xyz.block.ftl.v1.DeploymentArtefactOrBuilder getHaveArtefactsOrBuilder(
        int index) {
      if (haveArtefactsBuilder_ == null) {
        return haveArtefacts_.get(index);  } else {
        return haveArtefactsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
     */
    public java.util.List 
         getHaveArtefactsOrBuilderList() {
      if (haveArtefactsBuilder_ != null) {
        return haveArtefactsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(haveArtefacts_);
      }
    }
    /**
     * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
     */
    public xyz.block.ftl.v1.DeploymentArtefact.Builder addHaveArtefactsBuilder() {
      return getHaveArtefactsFieldBuilder().addBuilder(
          xyz.block.ftl.v1.DeploymentArtefact.getDefaultInstance());
    }
    /**
     * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
     */
    public xyz.block.ftl.v1.DeploymentArtefact.Builder addHaveArtefactsBuilder(
        int index) {
      return getHaveArtefactsFieldBuilder().addBuilder(
          index, xyz.block.ftl.v1.DeploymentArtefact.getDefaultInstance());
    }
    /**
     * repeated .xyz.block.ftl.v1.DeploymentArtefact have_artefacts = 2;
     */
    public java.util.List 
         getHaveArtefactsBuilderList() {
      return getHaveArtefactsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        xyz.block.ftl.v1.DeploymentArtefact, xyz.block.ftl.v1.DeploymentArtefact.Builder, xyz.block.ftl.v1.DeploymentArtefactOrBuilder> 
        getHaveArtefactsFieldBuilder() {
      if (haveArtefactsBuilder_ == null) {
        haveArtefactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            xyz.block.ftl.v1.DeploymentArtefact, xyz.block.ftl.v1.DeploymentArtefact.Builder, xyz.block.ftl.v1.DeploymentArtefactOrBuilder>(
                haveArtefacts_,
                ((bitField0_ & 0x00000002) != 0),
                getParentForChildren(),
                isClean());
        haveArtefacts_ = null;
      }
      return haveArtefactsBuilder_;
    }
    @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:xyz.block.ftl.v1.GetDeploymentArtefactsRequest)
  }

  // @@protoc_insertion_point(class_scope:xyz.block.ftl.v1.GetDeploymentArtefactsRequest)
  private static final xyz.block.ftl.v1.GetDeploymentArtefactsRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new xyz.block.ftl.v1.GetDeploymentArtefactsRequest();
  }

  public static xyz.block.ftl.v1.GetDeploymentArtefactsRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public GetDeploymentArtefactsRequest parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

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

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

  @java.lang.Override
  public xyz.block.ftl.v1.GetDeploymentArtefactsRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy