A message type used to describe a single precondition failure.
Generated from protobuf message google.rpc.PreconditionFailure.Violation
| Methods |
| public __construct( $data = NULL) Constructor.
|
| public getDescription() A description of how the precondition failed. Developers can use this description to understand how to fix the failure. For example: "Terms of service not accepted". Generated from protobuf field string description = 3;
|
| public getSubject() The subject, relative to the type, that failed. For example, "google.com/cloud" relative to the "TOS" type would indicate which terms of service is being referenced. Generated from protobuf field string subject = 2;
|
| public getType() The type of PreconditionFailure. We recommend using a service-specific enum type to define the supported precondition violation subjects. For example, "TOS" for "Terms of Service violation". Generated from protobuf field string type = 1;
|
| public setDescription( $var) A description of how the precondition failed. Developers can use this description to understand how to fix the failure. For example: "Terms of service not accepted". Generated from protobuf field string description = 3;
|
| public setSubject( $var) The subject, relative to the type, that failed. For example, "google.com/cloud" relative to the "TOS" type would indicate which terms of service is being referenced. Generated from protobuf field string subject = 2;
|
| public setType( $var) The type of PreconditionFailure. We recommend using a service-specific enum type to define the supported precondition violation subjects. For example, "TOS" for "Terms of Service violation". Generated from protobuf field string type = 1;
|
| Properties |
| protected $description = '' A description of how the precondition failed. Developers can use this description to understand how to fix the failure. For example: "Terms of service not accepted". Generated from protobuf field string description = 3; |
| protected $subject = '' The subject, relative to the type, that failed. For example, "google.com/cloud" relative to the "TOS" type would indicate which terms of service is being referenced. Generated from protobuf field string subject = 2; |
| protected $type = '' The type of PreconditionFailure. We recommend using a service-specific enum type to define the supported precondition violation subjects. For example, "TOS" for "Terms of Service violation". Generated from protobuf field string type = 1; |
| Methods |