class FieldViolation extends Message

A message type used to describe a single bad request field.

Generated from protobuf message google.rpc.BadRequest.FieldViolation

Methods

__construct(array $data = NULL)

Constructor.

string
getField()

A path leading to a field in the request body. The value will be a sequence of dot-separated identifiers that identify a protocol buffer field. E.g., "field_violations.field" would identify this field.

$this
setField(string $var)

A path leading to a field in the request body. The value will be a sequence of dot-separated identifiers that identify a protocol buffer field. E.g., "field_violations.field" would identify this field.

string
getDescription()

A description of why the request element is bad.

$this
setDescription(string $var)

A description of why the request element is bad.

Details

at line 47
__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type string $field
      A path leading to a field in the request body. The value will be a
      sequence of dot-separated identifiers that identify a protocol buffer
      field. E.g., "field_violations.field" would identify this field.
@type string $description
      A description of why the request element is bad.

}

at line 60
string getField()

A path leading to a field in the request body. The value will be a sequence of dot-separated identifiers that identify a protocol buffer field. E.g., "field_violations.field" would identify this field.

Generated from protobuf field string field = 1;

Return Value

string

at line 74
$this setField(string $var)

A path leading to a field in the request body. The value will be a sequence of dot-separated identifiers that identify a protocol buffer field. E.g., "field_violations.field" would identify this field.

Generated from protobuf field string field = 1;

Parameters

string $var

Return Value

$this

at line 88
string getDescription()

A description of why the request element is bad.

Generated from protobuf field string description = 2;

Return Value

string

at line 100
$this setDescription(string $var)

A description of why the request element is bad.

Generated from protobuf field string description = 2;

Parameters

string $var

Return Value

$this