Violation

com.google.rpc.error_details.PreconditionFailure$.Violation
See theViolation companion object
final case class Violation(`type`: String, subject: String, description: String, unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[Violation]

A message type used to describe a single precondition failure.

Attributes

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".

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.

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".

Companion:
object
Source:
PreconditionFailure.scala
Graph
Supertypes
trait Updatable[Violation]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def getField(`__field`: FieldDescriptor): PValue

Attributes

Source:
PreconditionFailure.scala
def getFieldByNumber(`__fieldNumber`: Int): Any

Attributes

Source:
PreconditionFailure.scala
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
Source:
PreconditionFailure.scala

Returns a human-readable ASCII format representation of this message.

Returns a human-readable ASCII format representation of this message.

The original message can be decoded from this format by using fromAscii on the companion object.

Attributes

Returns:

human-readable representation of this message.

Source:
PreconditionFailure.scala

Attributes

Source:
PreconditionFailure.scala
def withUnknownFields(`__v`: UnknownFieldSet): Violation

Attributes

Source:
PreconditionFailure.scala
def writeTo(`_output__`: CodedOutputStream): Unit

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Source:
PreconditionFailure.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
final def toByteArray: Array[Byte]

Serializes the message and returns a byte array containing its raw bytes

Serializes the message and returns a byte array containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source:
GeneratedMessageCompanion.scala
final def toByteString: ByteString

Serializes the message and returns a ByteString containing its raw bytes

Serializes the message and returns a ByteString containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source:
GeneratedMessageCompanion.scala
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
Source:
GeneratedMessageCompanion.scala
def update(ms: Lens[Violation, Violation] => () => Violation*): A

Attributes

Inherited from:
Updatable
Source:
Lenses.scala
final def writeDelimitedTo(output: OutputStream): Unit

Attributes

Inherited from:
GeneratedMessage
Source:
GeneratedMessageCompanion.scala
final def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Attributes

Inherited from:
GeneratedMessage
Source:
GeneratedMessageCompanion.scala