Class CpModelProto
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.ortools.sat.CpModelProto
- All Implemented Interfaces:
CpModelProtoOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
@Generated
public final class CpModelProto
extends com.google.protobuf.GeneratedMessage
implements CpModelProtoOrBuilder
A constraint programming problem.Protobuf type
operations_research.sat.CpModelProto
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A constraint programming problem.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,
BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParent
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getAssumptions
(int index) A list of literals.int
A list of literals.A list of literals.getConstraints
(int index) repeated .operations_research.sat.ConstraintProto constraints = 3;
int
repeated .operations_research.sat.ConstraintProto constraints = 3;
repeated .operations_research.sat.ConstraintProto constraints = 3;
getConstraintsOrBuilder
(int index) repeated .operations_research.sat.ConstraintProto constraints = 3;
List
<? extends ConstraintProtoOrBuilder> repeated .operations_research.sat.ConstraintProto constraints = 3;
static CpModelProto
static final com.google.protobuf.Descriptors.Descriptor
Advanced usage.Advanced usage.getName()
For debug/logging only.com.google.protobuf.ByteString
For debug/logging only.The objective to minimize.The objective to minimize.com.google.protobuf.Parser
<CpModelProto> getSearchStrategy
(int index) Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.int
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.getSearchStrategyOrBuilder
(int index) Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.List
<? extends DecisionStrategyProtoOrBuilder> Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH.int
Solution hint.Solution hint.For now, this is not meant to be filled by a client writing a model, but by our preprocessing step.For now, this is not meant to be filled by a client writing a model, but by our preprocessing step.getVariables
(int index) The associated Protos should be referred by their index in these fields.int
The associated Protos should be referred by their index in these fields.The associated Protos should be referred by their index in these fields.getVariablesOrBuilder
(int index) The associated Protos should be referred by their index in these fields.List
<? extends IntegerVariableProtoOrBuilder> The associated Protos should be referred by their index in these fields.boolean
Advanced usage.int
hashCode()
boolean
The objective to minimize.boolean
Solution hint.boolean
For now, this is not meant to be filled by a client writing a model, but by our preprocessing step.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
static CpModelProto.Builder
static CpModelProto.Builder
newBuilder
(CpModelProto prototype) protected CpModelProto.Builder
newBuilderForType
(com.google.protobuf.AbstractMessage.BuilderParent parent) static CpModelProto
parseDelimitedFrom
(InputStream input) static CpModelProto
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CpModelProto
parseFrom
(byte[] data) static CpModelProto
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CpModelProto
parseFrom
(com.google.protobuf.ByteString data) static CpModelProto
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CpModelProto
parseFrom
(com.google.protobuf.CodedInputStream input) static CpModelProto
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CpModelProto
parseFrom
(InputStream input) static CpModelProto
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CpModelProto
parseFrom
(ByteBuffer data) static CpModelProto
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser
<CpModelProto> parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
VARIABLES_FIELD_NUMBER
public static final int VARIABLES_FIELD_NUMBER- See Also:
-
CONSTRAINTS_FIELD_NUMBER
public static final int CONSTRAINTS_FIELD_NUMBER- See Also:
-
OBJECTIVE_FIELD_NUMBER
public static final int OBJECTIVE_FIELD_NUMBER- See Also:
-
FLOATING_POINT_OBJECTIVE_FIELD_NUMBER
public static final int FLOATING_POINT_OBJECTIVE_FIELD_NUMBER- See Also:
-
SEARCH_STRATEGY_FIELD_NUMBER
public static final int SEARCH_STRATEGY_FIELD_NUMBER- See Also:
-
SOLUTION_HINT_FIELD_NUMBER
public static final int SOLUTION_HINT_FIELD_NUMBER- See Also:
-
ASSUMPTIONS_FIELD_NUMBER
public static final int ASSUMPTIONS_FIELD_NUMBER- See Also:
-
SYMMETRY_FIELD_NUMBER
public static final int SYMMETRY_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage
-
getName
For debug/logging only. Can be empty.
string name = 1;
- Specified by:
getName
in interfaceCpModelProtoOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()For debug/logging only. Can be empty.
string name = 1;
- Specified by:
getNameBytes
in interfaceCpModelProtoOrBuilder
- Returns:
- The bytes for name.
-
getVariablesList
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;
- Specified by:
getVariablesList
in interfaceCpModelProtoOrBuilder
-
getVariablesOrBuilderList
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;
- Specified by:
getVariablesOrBuilderList
in interfaceCpModelProtoOrBuilder
-
getVariablesCount
public int getVariablesCount()The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;
- Specified by:
getVariablesCount
in interfaceCpModelProtoOrBuilder
-
getVariables
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;
- Specified by:
getVariables
in interfaceCpModelProtoOrBuilder
-
getVariablesOrBuilder
The associated Protos should be referred by their index in these fields.
repeated .operations_research.sat.IntegerVariableProto variables = 2;
- Specified by:
getVariablesOrBuilder
in interfaceCpModelProtoOrBuilder
-
getConstraintsList
repeated .operations_research.sat.ConstraintProto constraints = 3;
- Specified by:
getConstraintsList
in interfaceCpModelProtoOrBuilder
-
getConstraintsOrBuilderList
repeated .operations_research.sat.ConstraintProto constraints = 3;
- Specified by:
getConstraintsOrBuilderList
in interfaceCpModelProtoOrBuilder
-
getConstraintsCount
public int getConstraintsCount()repeated .operations_research.sat.ConstraintProto constraints = 3;
- Specified by:
getConstraintsCount
in interfaceCpModelProtoOrBuilder
-
getConstraints
repeated .operations_research.sat.ConstraintProto constraints = 3;
- Specified by:
getConstraints
in interfaceCpModelProtoOrBuilder
-
getConstraintsOrBuilder
repeated .operations_research.sat.ConstraintProto constraints = 3;
- Specified by:
getConstraintsOrBuilder
in interfaceCpModelProtoOrBuilder
-
hasObjective
public boolean hasObjective()The objective to minimize. Can be empty for pure decision problems.
.operations_research.sat.CpObjectiveProto objective = 4;
- Specified by:
hasObjective
in interfaceCpModelProtoOrBuilder
- Returns:
- Whether the objective field is set.
-
getObjective
The objective to minimize. Can be empty for pure decision problems.
.operations_research.sat.CpObjectiveProto objective = 4;
- Specified by:
getObjective
in interfaceCpModelProtoOrBuilder
- Returns:
- The objective.
-
getObjectiveOrBuilder
The objective to minimize. Can be empty for pure decision problems.
.operations_research.sat.CpObjectiveProto objective = 4;
- Specified by:
getObjectiveOrBuilder
in interfaceCpModelProtoOrBuilder
-
hasFloatingPointObjective
public boolean hasFloatingPointObjective()Advanced usage. It is invalid to have both an objective and a floating point objective. The objective of the model, in floating point format. The solver will automatically scale this to integer during expansion and thus convert it to a normal CpObjectiveProto. See the mip* parameters to control how this is scaled. In most situation the precision will be good enough, but you can see the logs to see what are the precision guaranteed when this is converted to a fixed point representation. Note that even if the precision is bad, the returned objective_value and best_objective_bound will be computed correctly. So at the end of the solve you can check the gap if you only want precise optimal.
.operations_research.sat.FloatObjectiveProto floating_point_objective = 9;
- Specified by:
hasFloatingPointObjective
in interfaceCpModelProtoOrBuilder
- Returns:
- Whether the floatingPointObjective field is set.
-
getFloatingPointObjective
Advanced usage. It is invalid to have both an objective and a floating point objective. The objective of the model, in floating point format. The solver will automatically scale this to integer during expansion and thus convert it to a normal CpObjectiveProto. See the mip* parameters to control how this is scaled. In most situation the precision will be good enough, but you can see the logs to see what are the precision guaranteed when this is converted to a fixed point representation. Note that even if the precision is bad, the returned objective_value and best_objective_bound will be computed correctly. So at the end of the solve you can check the gap if you only want precise optimal.
.operations_research.sat.FloatObjectiveProto floating_point_objective = 9;
- Specified by:
getFloatingPointObjective
in interfaceCpModelProtoOrBuilder
- Returns:
- The floatingPointObjective.
-
getFloatingPointObjectiveOrBuilder
Advanced usage. It is invalid to have both an objective and a floating point objective. The objective of the model, in floating point format. The solver will automatically scale this to integer during expansion and thus convert it to a normal CpObjectiveProto. See the mip* parameters to control how this is scaled. In most situation the precision will be good enough, but you can see the logs to see what are the precision guaranteed when this is converted to a fixed point representation. Note that even if the precision is bad, the returned objective_value and best_objective_bound will be computed correctly. So at the end of the solve you can check the gap if you only want precise optimal.
.operations_research.sat.FloatObjectiveProto floating_point_objective = 9;
- Specified by:
getFloatingPointObjectiveOrBuilder
in interfaceCpModelProtoOrBuilder
-
getSearchStrategyList
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;
- Specified by:
getSearchStrategyList
in interfaceCpModelProtoOrBuilder
-
getSearchStrategyOrBuilderList
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;
- Specified by:
getSearchStrategyOrBuilderList
in interfaceCpModelProtoOrBuilder
-
getSearchStrategyCount
public int getSearchStrategyCount()Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;
- Specified by:
getSearchStrategyCount
in interfaceCpModelProtoOrBuilder
-
getSearchStrategy
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;
- Specified by:
getSearchStrategy
in interfaceCpModelProtoOrBuilder
-
getSearchStrategyOrBuilder
Defines the strategy that the solver should follow when the search_branching parameter is set to FIXED_SEARCH. Note that this strategy is also used as a heuristic when we are not in fixed search. Advanced Usage: if not all variables appears and the parameter "instantiate_all_variables" is set to false, then the solver will not try to instantiate the variables that do not appear. Thus, at the end of the search, not all variables may be fixed. Currently, we will set them to their lower bound in the solution.
repeated .operations_research.sat.DecisionStrategyProto search_strategy = 5;
- Specified by:
getSearchStrategyOrBuilder
in interfaceCpModelProtoOrBuilder
-
hasSolutionHint
public boolean hasSolutionHint()Solution hint. If a feasible or almost-feasible solution to the problem is already known, it may be helpful to pass it to the solver so that it can be used. The solver will try to use this information to create its initial feasible solution. Note that it may not always be faster to give a hint like this to the solver. There is also no guarantee that the solver will use this hint or try to return a solution "close" to this assignment in case of multiple optimal solutions.
.operations_research.sat.PartialVariableAssignment solution_hint = 6;
- Specified by:
hasSolutionHint
in interfaceCpModelProtoOrBuilder
- Returns:
- Whether the solutionHint field is set.
-
getSolutionHint
Solution hint. If a feasible or almost-feasible solution to the problem is already known, it may be helpful to pass it to the solver so that it can be used. The solver will try to use this information to create its initial feasible solution. Note that it may not always be faster to give a hint like this to the solver. There is also no guarantee that the solver will use this hint or try to return a solution "close" to this assignment in case of multiple optimal solutions.
.operations_research.sat.PartialVariableAssignment solution_hint = 6;
- Specified by:
getSolutionHint
in interfaceCpModelProtoOrBuilder
- Returns:
- The solutionHint.
-
getSolutionHintOrBuilder
Solution hint. If a feasible or almost-feasible solution to the problem is already known, it may be helpful to pass it to the solver so that it can be used. The solver will try to use this information to create its initial feasible solution. Note that it may not always be faster to give a hint like this to the solver. There is also no guarantee that the solver will use this hint or try to return a solution "close" to this assignment in case of multiple optimal solutions.
.operations_research.sat.PartialVariableAssignment solution_hint = 6;
- Specified by:
getSolutionHintOrBuilder
in interfaceCpModelProtoOrBuilder
-
getAssumptionsList
A list of literals. The model will be solved assuming all these literals are true. Compared to just fixing the domain of these literals, using this mechanism is slower but allows in case the model is INFEASIBLE to get a potentially small subset of them that can be used to explain the infeasibility. Think (IIS), except when you are only concerned by the provided assumptions. This is powerful as it allows to group a set of logically related constraint under only one enforcement literal which can potentially give you a good and interpretable explanation for infeasiblity. Such infeasibility explanation will be available in the sufficient_assumptions_for_infeasibility response field.
repeated int32 assumptions = 7;
- Specified by:
getAssumptionsList
in interfaceCpModelProtoOrBuilder
- Returns:
- A list containing the assumptions.
-
getAssumptionsCount
public int getAssumptionsCount()A list of literals. The model will be solved assuming all these literals are true. Compared to just fixing the domain of these literals, using this mechanism is slower but allows in case the model is INFEASIBLE to get a potentially small subset of them that can be used to explain the infeasibility. Think (IIS), except when you are only concerned by the provided assumptions. This is powerful as it allows to group a set of logically related constraint under only one enforcement literal which can potentially give you a good and interpretable explanation for infeasiblity. Such infeasibility explanation will be available in the sufficient_assumptions_for_infeasibility response field.
repeated int32 assumptions = 7;
- Specified by:
getAssumptionsCount
in interfaceCpModelProtoOrBuilder
- Returns:
- The count of assumptions.
-
getAssumptions
public int getAssumptions(int index) A list of literals. The model will be solved assuming all these literals are true. Compared to just fixing the domain of these literals, using this mechanism is slower but allows in case the model is INFEASIBLE to get a potentially small subset of them that can be used to explain the infeasibility. Think (IIS), except when you are only concerned by the provided assumptions. This is powerful as it allows to group a set of logically related constraint under only one enforcement literal which can potentially give you a good and interpretable explanation for infeasiblity. Such infeasibility explanation will be available in the sufficient_assumptions_for_infeasibility response field.
repeated int32 assumptions = 7;
- Specified by:
getAssumptions
in interfaceCpModelProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The assumptions at the given index.
-
hasSymmetry
public boolean hasSymmetry()For now, this is not meant to be filled by a client writing a model, but by our preprocessing step. Information about the symmetries of the feasible solution space. These usually leaves the objective invariant.
.operations_research.sat.SymmetryProto symmetry = 8;
- Specified by:
hasSymmetry
in interfaceCpModelProtoOrBuilder
- Returns:
- Whether the symmetry field is set.
-
getSymmetry
For now, this is not meant to be filled by a client writing a model, but by our preprocessing step. Information about the symmetries of the feasible solution space. These usually leaves the objective invariant.
.operations_research.sat.SymmetryProto symmetry = 8;
- Specified by:
getSymmetry
in interfaceCpModelProtoOrBuilder
- Returns:
- The symmetry.
-
getSymmetryOrBuilder
For now, this is not meant to be filled by a client writing a model, but by our preprocessing step. Information about the symmetries of the feasible solution space. These usually leaves the objective invariant.
.operations_research.sat.SymmetryProto symmetry = 8;
- Specified by:
getSymmetryOrBuilder
in interfaceCpModelProtoOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CpModelProto parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CpModelProto parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CpModelProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CpModelProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CpModelProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CpModelProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CpModelProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CpModelProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CpModelProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CpModelProto.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-