class_docstr: Internal datastructure wrapping config options for a deployment's replicas.
  
  Provides five main properties (see property docstrings for more info):
      deployment_def: the code, or a reference to the code, that this
          replica should run.
      init_args: the deployment_def's init_args.
      init_kwargs: the deployment_def's init_kwargs.
      ray_actor_options: the Ray actor options to pass into the replica's
          actor.
      resource_dict: contains info on this replica's actor's resource needs.
  
  Offers a serialized equivalent (e.g. serialized_deployment_def) for
  deployment_def, init_args, and init_kwargs. Deserializes these properties
  when they're first accessed, if they were not passed in directly through
  create().
  
  Use the classmethod create() to make a ReplicaConfig with the deserialized
  properties.
  
  Note: overwriting or setting any property after the ReplicaConfig has been
  constructed is currently undefined behavior. The config's fields should not
  be modified externally after it is created.
class_docstr_tok: ["Internal","datastructure","wrapping","config","options","for","a","deployment","'s","replicas",".","Provides","five","main","properties","(","see","property","docstrings","for","more","info",")",":","deployment_def",":","the","code",",","or","a","reference","to","the","code",",","that","this","replica","should","run",".","init_args",":","the","deployment_def","'s","init_args",".","init_kwargs",":","the","deployment_def","'s","init_kwargs",".","ray_actor_options",":","the","Ray","actor","options","to","pass","into","the","replica's","actor",".","resource_dict",":","contains","info","on","this","replica","'s","actor","'s","resource","needs",".","Offers","a","serialized","equivalent","(","e.g",".","serialized_deployment_def",")","for","deployment_def",",","init_args",",","and","init_kwargs",".","Deserializes","these","properties","when","they","'re","first","accessed",",","if","they","were","not","passed","in","directly","through","create","(",")",".","Use","the","classmethod","create","(",")","to","make","a","ReplicaConfig","with","the","deserialized","properties",".","Note",":","overwriting","or","setting","any","property","after","the","ReplicaConfig","has","been","constructed","is","currently","undefined","behavior",".","The","config","'s","fields","should","not","be","modified","externally","after","it","is","created","."]
code: def to_proto_bytes(self):
      return self.to_proto().SerializeToString()
  
imports: import inspect
  import json
  from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union
  from google.protobuf.descriptor import FieldDescriptor
  from google.protobuf.message import Message
  from ray import cloudpickle
  from ray._private import ray_option_utils
  from ray._private.pydantic_compat import BaseModel, Field, NonNegativeFloat, NonNegativeInt, PositiveFloat, validator
  from ray._private.serialization import pickle_dumps
  from ray._private.utils import resources_from_ray_options
  from ray.serve._private.constants import DEFAULT_GRACEFUL_SHUTDOWN_TIMEOUT_S, DEFAULT_GRACEFUL_SHUTDOWN_WAIT_LOOP_S, DEFAULT_HEALTH_CHECK_PERIOD_S, DEFAULT_HEALTH_CHECK_TIMEOUT_S, DEFAULT_MAX_CONCURRENT_QUERIES, MAX_REPLICAS_PER_NODE_MAX_VALUE
  from ray.serve._private.utils import DEFAULT, DeploymentOptionUpdateType
  from ray.serve.config import AutoscalingConfig
  from ray.serve.generated.serve_pb2 import AutoscalingConfig
  from ray.serve.generated.serve_pb2 import DeploymentConfig
  from ray.serve.generated.serve_pb2 import DeploymentLanguage
  from ray.serve.generated.serve_pb2 import EncodingType
  from ray.serve.generated.serve_pb2 import LoggingConfig
  from ray.serve.generated.serve_pb2 import ReplicaConfig
  from ray.util.placement_group import VALID_PLACEMENT_GROUP_STRATEGIES
label_desc: Use image node_id 15 for calling the ReplicaConfig obj's underlying member method code with example usage: obj.to_proto_bytes() and returns: self