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

io.ray.serve.generated.DeploymentRouteList Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: src/ray/protobuf/serve.proto

package io.ray.serve.generated;

/**
 * Protobuf type {@code ray.serve.DeploymentRouteList}
 */
public final class DeploymentRouteList extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:ray.serve.DeploymentRouteList)
    DeploymentRouteListOrBuilder {
private static final long serialVersionUID = 0L;
  // Use DeploymentRouteList.newBuilder() to construct.
  private DeploymentRouteList(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private DeploymentRouteList() {
    deploymentRoutes_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private DeploymentRouteList(
      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 10: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              deploymentRoutes_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            deploymentRoutes_.add(
                input.readMessage(io.ray.serve.generated.DeploymentRoute.parser(), extensionRegistry));
            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)) {
        deploymentRoutes_ = java.util.Collections.unmodifiableList(deploymentRoutes_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_DeploymentRouteList_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_DeploymentRouteList_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.ray.serve.generated.DeploymentRouteList.class, io.ray.serve.generated.DeploymentRouteList.Builder.class);
  }

  public static final int DEPLOYMENT_ROUTES_FIELD_NUMBER = 1;
  private java.util.List deploymentRoutes_;
  /**
   * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
   */
  @java.lang.Override
  public java.util.List getDeploymentRoutesList() {
    return deploymentRoutes_;
  }
  /**
   * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
   */
  @java.lang.Override
  public java.util.List 
      getDeploymentRoutesOrBuilderList() {
    return deploymentRoutes_;
  }
  /**
   * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
   */
  @java.lang.Override
  public int getDeploymentRoutesCount() {
    return deploymentRoutes_.size();
  }
  /**
   * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
   */
  @java.lang.Override
  public io.ray.serve.generated.DeploymentRoute getDeploymentRoutes(int index) {
    return deploymentRoutes_.get(index);
  }
  /**
   * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
   */
  @java.lang.Override
  public io.ray.serve.generated.DeploymentRouteOrBuilder getDeploymentRoutesOrBuilder(
      int index) {
    return deploymentRoutes_.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 {
    for (int i = 0; i < deploymentRoutes_.size(); i++) {
      output.writeMessage(1, deploymentRoutes_.get(i));
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    for (int i = 0; i < deploymentRoutes_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, deploymentRoutes_.get(i));
    }
    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 io.ray.serve.generated.DeploymentRouteList)) {
      return super.equals(obj);
    }
    io.ray.serve.generated.DeploymentRouteList other = (io.ray.serve.generated.DeploymentRouteList) obj;

    if (!getDeploymentRoutesList()
        .equals(other.getDeploymentRoutesList())) 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 (getDeploymentRoutesCount() > 0) {
      hash = (37 * hash) + DEPLOYMENT_ROUTES_FIELD_NUMBER;
      hash = (53 * hash) + getDeploymentRoutesList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.ray.serve.generated.DeploymentRouteList parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.ray.serve.generated.DeploymentRouteList parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.ray.serve.generated.DeploymentRouteList parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.ray.serve.generated.DeploymentRouteList parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.ray.serve.generated.DeploymentRouteList parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.ray.serve.generated.DeploymentRouteList parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.ray.serve.generated.DeploymentRouteList parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.ray.serve.generated.DeploymentRouteList 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 io.ray.serve.generated.DeploymentRouteList parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.ray.serve.generated.DeploymentRouteList 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 io.ray.serve.generated.DeploymentRouteList parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.ray.serve.generated.DeploymentRouteList 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(io.ray.serve.generated.DeploymentRouteList 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 ray.serve.DeploymentRouteList}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:ray.serve.DeploymentRouteList)
      io.ray.serve.generated.DeploymentRouteListOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_DeploymentRouteList_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_DeploymentRouteList_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.ray.serve.generated.DeploymentRouteList.class, io.ray.serve.generated.DeploymentRouteList.Builder.class);
    }

    // Construct using io.ray.serve.generated.DeploymentRouteList.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getDeploymentRoutesFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (deploymentRoutesBuilder_ == null) {
        deploymentRoutes_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        deploymentRoutesBuilder_.clear();
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_DeploymentRouteList_descriptor;
    }

    @java.lang.Override
    public io.ray.serve.generated.DeploymentRouteList getDefaultInstanceForType() {
      return io.ray.serve.generated.DeploymentRouteList.getDefaultInstance();
    }

    @java.lang.Override
    public io.ray.serve.generated.DeploymentRouteList build() {
      io.ray.serve.generated.DeploymentRouteList result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public io.ray.serve.generated.DeploymentRouteList buildPartial() {
      io.ray.serve.generated.DeploymentRouteList result = new io.ray.serve.generated.DeploymentRouteList(this);
      int from_bitField0_ = bitField0_;
      if (deploymentRoutesBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          deploymentRoutes_ = java.util.Collections.unmodifiableList(deploymentRoutes_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.deploymentRoutes_ = deploymentRoutes_;
      } else {
        result.deploymentRoutes_ = deploymentRoutesBuilder_.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 io.ray.serve.generated.DeploymentRouteList) {
        return mergeFrom((io.ray.serve.generated.DeploymentRouteList)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.ray.serve.generated.DeploymentRouteList other) {
      if (other == io.ray.serve.generated.DeploymentRouteList.getDefaultInstance()) return this;
      if (deploymentRoutesBuilder_ == null) {
        if (!other.deploymentRoutes_.isEmpty()) {
          if (deploymentRoutes_.isEmpty()) {
            deploymentRoutes_ = other.deploymentRoutes_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureDeploymentRoutesIsMutable();
            deploymentRoutes_.addAll(other.deploymentRoutes_);
          }
          onChanged();
        }
      } else {
        if (!other.deploymentRoutes_.isEmpty()) {
          if (deploymentRoutesBuilder_.isEmpty()) {
            deploymentRoutesBuilder_.dispose();
            deploymentRoutesBuilder_ = null;
            deploymentRoutes_ = other.deploymentRoutes_;
            bitField0_ = (bitField0_ & ~0x00000001);
            deploymentRoutesBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getDeploymentRoutesFieldBuilder() : null;
          } else {
            deploymentRoutesBuilder_.addAllMessages(other.deploymentRoutes_);
          }
        }
      }
      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 {
      io.ray.serve.generated.DeploymentRouteList parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.ray.serve.generated.DeploymentRouteList) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

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

    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.ray.serve.generated.DeploymentRoute, io.ray.serve.generated.DeploymentRoute.Builder, io.ray.serve.generated.DeploymentRouteOrBuilder> deploymentRoutesBuilder_;

    /**
     * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
     */
    public java.util.List getDeploymentRoutesList() {
      if (deploymentRoutesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(deploymentRoutes_);
      } else {
        return deploymentRoutesBuilder_.getMessageList();
      }
    }
    /**
     * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
     */
    public int getDeploymentRoutesCount() {
      if (deploymentRoutesBuilder_ == null) {
        return deploymentRoutes_.size();
      } else {
        return deploymentRoutesBuilder_.getCount();
      }
    }
    /**
     * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
     */
    public io.ray.serve.generated.DeploymentRoute getDeploymentRoutes(int index) {
      if (deploymentRoutesBuilder_ == null) {
        return deploymentRoutes_.get(index);
      } else {
        return deploymentRoutesBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
     */
    public Builder setDeploymentRoutes(
        int index, io.ray.serve.generated.DeploymentRoute value) {
      if (deploymentRoutesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDeploymentRoutesIsMutable();
        deploymentRoutes_.set(index, value);
        onChanged();
      } else {
        deploymentRoutesBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
     */
    public Builder setDeploymentRoutes(
        int index, io.ray.serve.generated.DeploymentRoute.Builder builderForValue) {
      if (deploymentRoutesBuilder_ == null) {
        ensureDeploymentRoutesIsMutable();
        deploymentRoutes_.set(index, builderForValue.build());
        onChanged();
      } else {
        deploymentRoutesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
     */
    public Builder addDeploymentRoutes(io.ray.serve.generated.DeploymentRoute value) {
      if (deploymentRoutesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDeploymentRoutesIsMutable();
        deploymentRoutes_.add(value);
        onChanged();
      } else {
        deploymentRoutesBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
     */
    public Builder addDeploymentRoutes(
        int index, io.ray.serve.generated.DeploymentRoute value) {
      if (deploymentRoutesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDeploymentRoutesIsMutable();
        deploymentRoutes_.add(index, value);
        onChanged();
      } else {
        deploymentRoutesBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
     */
    public Builder addDeploymentRoutes(
        io.ray.serve.generated.DeploymentRoute.Builder builderForValue) {
      if (deploymentRoutesBuilder_ == null) {
        ensureDeploymentRoutesIsMutable();
        deploymentRoutes_.add(builderForValue.build());
        onChanged();
      } else {
        deploymentRoutesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
     */
    public Builder addDeploymentRoutes(
        int index, io.ray.serve.generated.DeploymentRoute.Builder builderForValue) {
      if (deploymentRoutesBuilder_ == null) {
        ensureDeploymentRoutesIsMutable();
        deploymentRoutes_.add(index, builderForValue.build());
        onChanged();
      } else {
        deploymentRoutesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
     */
    public Builder addAllDeploymentRoutes(
        java.lang.Iterable values) {
      if (deploymentRoutesBuilder_ == null) {
        ensureDeploymentRoutesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, deploymentRoutes_);
        onChanged();
      } else {
        deploymentRoutesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
     */
    public Builder clearDeploymentRoutes() {
      if (deploymentRoutesBuilder_ == null) {
        deploymentRoutes_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        deploymentRoutesBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
     */
    public Builder removeDeploymentRoutes(int index) {
      if (deploymentRoutesBuilder_ == null) {
        ensureDeploymentRoutesIsMutable();
        deploymentRoutes_.remove(index);
        onChanged();
      } else {
        deploymentRoutesBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
     */
    public io.ray.serve.generated.DeploymentRoute.Builder getDeploymentRoutesBuilder(
        int index) {
      return getDeploymentRoutesFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
     */
    public io.ray.serve.generated.DeploymentRouteOrBuilder getDeploymentRoutesOrBuilder(
        int index) {
      if (deploymentRoutesBuilder_ == null) {
        return deploymentRoutes_.get(index);  } else {
        return deploymentRoutesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
     */
    public java.util.List 
         getDeploymentRoutesOrBuilderList() {
      if (deploymentRoutesBuilder_ != null) {
        return deploymentRoutesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(deploymentRoutes_);
      }
    }
    /**
     * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
     */
    public io.ray.serve.generated.DeploymentRoute.Builder addDeploymentRoutesBuilder() {
      return getDeploymentRoutesFieldBuilder().addBuilder(
          io.ray.serve.generated.DeploymentRoute.getDefaultInstance());
    }
    /**
     * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
     */
    public io.ray.serve.generated.DeploymentRoute.Builder addDeploymentRoutesBuilder(
        int index) {
      return getDeploymentRoutesFieldBuilder().addBuilder(
          index, io.ray.serve.generated.DeploymentRoute.getDefaultInstance());
    }
    /**
     * repeated .ray.serve.DeploymentRoute deployment_routes = 1 [json_name = "deploymentRoutes"];
     */
    public java.util.List 
         getDeploymentRoutesBuilderList() {
      return getDeploymentRoutesFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.ray.serve.generated.DeploymentRoute, io.ray.serve.generated.DeploymentRoute.Builder, io.ray.serve.generated.DeploymentRouteOrBuilder> 
        getDeploymentRoutesFieldBuilder() {
      if (deploymentRoutesBuilder_ == null) {
        deploymentRoutesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            io.ray.serve.generated.DeploymentRoute, io.ray.serve.generated.DeploymentRoute.Builder, io.ray.serve.generated.DeploymentRouteOrBuilder>(
                deploymentRoutes_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        deploymentRoutes_ = null;
      }
      return deploymentRoutesBuilder_;
    }
    @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:ray.serve.DeploymentRouteList)
  }

  // @@protoc_insertion_point(class_scope:ray.serve.DeploymentRouteList)
  private static final io.ray.serve.generated.DeploymentRouteList DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.ray.serve.generated.DeploymentRouteList();
  }

  public static io.ray.serve.generated.DeploymentRouteList getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy