Network Connectivity V1 API - Class Google::Rpc::PreconditionFailure::Violation (v1.10.1)

Reference documentation and code samples for the Network Connectivity V1 API class Google::Rpc::PreconditionFailure::Violation.

A message type used to describe a single precondition failure.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#description

defdescription()->::String
Returns
  • (::String) — 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".

#description=

defdescription=(value)->::String
Parameter
  • value (::String) — 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".

Returns
  • (::String) — 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".

#subject

defsubject()->::String
Returns
  • (::String) — 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.

#subject=

defsubject=(value)->::String
Parameter
  • value (::String) — 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.
Returns
  • (::String) — 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.

#type

deftype()->::String
Returns
  • (::String) — 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".

#type=

deftype=(value)->::String
Parameter
  • value (::String) — 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".
Returns
  • (::String) — 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".

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.