ortools.math_opt.rpc_pb2

@generated by mypy-protobuf. Do not edit manually! isort:skip_file Copyright 2010-2025 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

 1# -*- coding: utf-8 -*-
 2# Generated by the protocol buffer compiler.  DO NOT EDIT!
 3# NO CHECKED-IN PROTOBUF GENCODE
 4# source: ortools/math_opt/rpc.proto
 5# Protobuf Python Version: 6.33.1
 6"""Generated protocol buffer code."""
 7from google.protobuf import descriptor as _descriptor
 8from google.protobuf import descriptor_pool as _descriptor_pool
 9from google.protobuf import runtime_version as _runtime_version
10from google.protobuf import symbol_database as _symbol_database
11from google.protobuf.internal import builder as _builder
12_runtime_version.ValidateProtobufRuntimeVersion(
13    _runtime_version.Domain.PUBLIC,
14    6,
15    33,
16    1,
17    '',
18    'ortools/math_opt/rpc.proto'
19)
20# @@protoc_insertion_point(imports)
21
22_sym_db = _symbol_database.Default()
23
24
25from ortools.math_opt import callback_pb2 as ortools_dot_math__opt_dot_callback__pb2
26from ortools.math_opt import infeasible_subsystem_pb2 as ortools_dot_math__opt_dot_infeasible__subsystem__pb2
27from ortools.math_opt import model_pb2 as ortools_dot_math__opt_dot_model__pb2
28from ortools.math_opt import model_parameters_pb2 as ortools_dot_math__opt_dot_model__parameters__pb2
29from ortools.math_opt import model_update_pb2 as ortools_dot_math__opt_dot_model__update__pb2
30from ortools.math_opt import parameters_pb2 as ortools_dot_math__opt_dot_parameters__pb2
31from ortools.math_opt import result_pb2 as ortools_dot_math__opt_dot_result__pb2
32
33
34DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1aortools/math_opt/rpc.proto\x12\x1coperations_research.math_opt\x1a\x1fortools/math_opt/callback.proto\x1a+ortools/math_opt/infeasible_subsystem.proto\x1a\x1cortools/math_opt/model.proto\x1a\'ortools/math_opt/model_parameters.proto\x1a#ortools/math_opt/model_update.proto\x1a!ortools/math_opt/parameters.proto\x1a\x1dortools/math_opt/result.proto\"J\n\x14SolverResourcesProto\x12\x10\n\x03\x63pu\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12\x10\n\x03ram\x18\x02 \x01(\x01H\x01\x88\x01\x01\x42\x06\n\x04_cpuB\x06\n\x04_ram\"\xb8\x03\n\x0cSolveRequest\x12\x42\n\x0bsolver_type\x18\x01 \x01(\x0e\x32-.operations_research.math_opt.SolverTypeProto\x12\x37\n\x05model\x18\x02 \x01(\x0b\x32(.operations_research.math_opt.ModelProto\x12\x45\n\tresources\x18\x06 \x01(\x0b\x32\x32.operations_research.math_opt.SolverResourcesProto\x12I\n\x0binitializer\x18\x03 \x01(\x0b\x32\x34.operations_research.math_opt.SolverInitializerProto\x12\x46\n\nparameters\x18\x04 \x01(\x0b\x32\x32.operations_research.math_opt.SolveParametersProto\x12Q\n\x10model_parameters\x18\x05 \x01(\x0b\x32\x37.operations_research.math_opt.ModelSolveParametersProto\"\xad\x01\n\rSolveResponse\x12@\n\x06result\x18\x01 \x01(\x0b\x32..operations_research.math_opt.SolveResultProtoH\x00\x12;\n\x06status\x18\x03 \x01(\x0b\x32).operations_research.math_opt.StatusProtoH\x00\x12\x10\n\x08messages\x18\x02 \x03(\tB\x0b\n\tstatus_or\",\n\x0bStatusProto\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07message\x18\x02 \x01(\tB\x1e\n\x1a\x63om.google.ortools.mathoptP\x01\x62\x06proto3')
35
36_globals = globals()
37_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
38_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ortools.math_opt.rpc_pb2', _globals)
39if not _descriptor._USE_C_DESCRIPTORS:
40  _globals['DESCRIPTOR']._loaded_options = None
41  _globals['DESCRIPTOR']._serialized_options = b'\n\032com.google.ortools.mathoptP\001'
42  _globals['_SOLVERRESOURCESPROTO']._serialized_start=312
43  _globals['_SOLVERRESOURCESPROTO']._serialized_end=386
44  _globals['_SOLVEREQUEST']._serialized_start=389
45  _globals['_SOLVEREQUEST']._serialized_end=829
46  _globals['_SOLVERESPONSE']._serialized_start=832
47  _globals['_SOLVERESPONSE']._serialized_end=1005
48  _globals['_STATUSPROTO']._serialized_start=1007
49  _globals['_STATUSPROTO']._serialized_end=1051
50# @@protoc_insertion_point(module_scope)
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = <google._upb._message.FileDescriptor object>
class SolverResourcesProto(google._upb._message.Message, google.protobuf.message.Message):

This message is used to specify some hints on the resources a remote solve is expected to use. These parameters are hints and may be ignored by the remote server (in particular in case of solve in a local subprocess, for example).

When using SolveService.Solve and SolveService.ComputeInfeasibleSubsystem, these hints are mostly optional as some defaults will be computed based on the other parameters.

When using SolveService.StreamSolve these hints are used to dimension the resources available during the execution of every action; thus it is recommended to set them.

DESCRIPTOR: google.protobuf.descriptor.Descriptor = <google._upb._message.Descriptor object>
class SolveRequest(google._upb._message.Message, google.protobuf.message.Message):

Request for a unary remote solve in MathOpt.

DESCRIPTOR: google.protobuf.descriptor.Descriptor = <google._upb._message.Descriptor object>
class SolveResponse(google._upb._message.Message, google.protobuf.message.Message):

Response for a unary remote solve in MathOpt.

DESCRIPTOR: google.protobuf.descriptor.Descriptor = <google._upb._message.Descriptor object>
class StatusProto(google._upb._message.Message, google.protobuf.message.Message):

The streamed version of absl::Status.

DESCRIPTOR: google.protobuf.descriptor.Descriptor = <google._upb._message.Descriptor object>