Reference documentation and code samples for the proto library Client class SourceContext.
SourceContext represents information about the source of a
protobuf element, like the file in which it is defined.
Generated from protobuf message google.protobuf.SourceContext
Namespace
Google \ ProtobufMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ file_name |
string
The path-qualified name of the .proto file that contained the associated protobuf element. For example: |
getFileName
The path-qualified name of the .proto file that contained the associated
protobuf element. For example: "google/protobuf/source_context.proto".
| Returns | |
|---|---|
| Type | Description |
string |
|
setFileName
The path-qualified name of the .proto file that contained the associated
protobuf element. For example: "google/protobuf/source_context.proto".
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|