proto library Client - Class GeneratedCodeInfo (v5.36.2)

Reference documentation and code samples for the proto library Client class GeneratedCodeInfo.

Describes the relationship between generated code and its original source file. A GeneratedCodeInfo message is associated with only one generated source file, but may contain references to different source .proto files.

Generated from protobuf message google.protobuf.GeneratedCodeInfo

Namespace

Google \ Protobuf \ Internal

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ annotation array<GeneratedCodeInfo\Annotation>

An Annotation connects some span of text in generated code to an element of its generating .proto file.

getAnnotation

An Annotation connects some span of text in generated code to an element of its generating .proto file.

Returns
Type Description
Google\Protobuf\RepeatedField<GeneratedCodeInfo\Annotation>

setAnnotation

An Annotation connects some span of text in generated code to an element of its generating .proto file.

Parameter
Name Description
var array<GeneratedCodeInfo\Annotation>
Returns
Type Description
$this