aboutsummaryrefslogtreecommitdiff
path: root/php/src/Google/Protobuf/Internal/GeneratedCodeInfo_Annotation.php
diff options
context:
space:
mode:
authorBo Yang <paulyang1211@gmail.com>2018-01-23 15:46:06 -0800
committerBo Yang <paulyang1211@gmail.com>2018-01-23 15:46:06 -0800
commit99002ae47a3f88f64ff44dbd80452360e0e5fbc4 (patch)
treec711557f45024c07f22148bd7f8dc31d61081271 /php/src/Google/Protobuf/Internal/GeneratedCodeInfo_Annotation.php
parenta721bf6d294915b412e4ba6b5d92a9b84c6bfef9 (diff)
downloadprotobuf-99002ae47a3f88f64ff44dbd80452360e0e5fbc4.tar.gz
protobuf-99002ae47a3f88f64ff44dbd80452360e0e5fbc4.tar.bz2
protobuf-99002ae47a3f88f64ff44dbd80452360e0e5fbc4.zip
Initialize python-wheel branch
Diffstat (limited to 'php/src/Google/Protobuf/Internal/GeneratedCodeInfo_Annotation.php')
-rw-r--r--php/src/Google/Protobuf/Internal/GeneratedCodeInfo_Annotation.php193
1 files changed, 0 insertions, 193 deletions
diff --git a/php/src/Google/Protobuf/Internal/GeneratedCodeInfo_Annotation.php b/php/src/Google/Protobuf/Internal/GeneratedCodeInfo_Annotation.php
deleted file mode 100644
index 22ac2337..00000000
--- a/php/src/Google/Protobuf/Internal/GeneratedCodeInfo_Annotation.php
+++ /dev/null
@@ -1,193 +0,0 @@
-<?php
-# Generated by the protocol buffer compiler. DO NOT EDIT!
-# source: google/protobuf/descriptor.proto
-
-namespace Google\Protobuf\Internal;
-
-use Google\Protobuf\Internal\GPBType;
-use Google\Protobuf\Internal\GPBWire;
-use Google\Protobuf\Internal\RepeatedField;
-use Google\Protobuf\Internal\InputStream;
-use Google\Protobuf\Internal\GPBUtil;
-
-/**
- * Generated from protobuf message <code>google.protobuf.GeneratedCodeInfo.Annotation</code>
- */
-class GeneratedCodeInfo_Annotation extends \Google\Protobuf\Internal\Message
-{
- /**
- * Identifies the element in the original source .proto file. This field
- * is formatted the same as SourceCodeInfo.Location.path.
- *
- * Generated from protobuf field <code>repeated int32 path = 1 [packed = true];</code>
- */
- private $path;
- private $has_path = false;
- /**
- * Identifies the filesystem path to the original source .proto.
- *
- * Generated from protobuf field <code>optional string source_file = 2;</code>
- */
- private $source_file = '';
- private $has_source_file = false;
- /**
- * Identifies the starting offset in bytes in the generated code
- * that relates to the identified object.
- *
- * Generated from protobuf field <code>optional int32 begin = 3;</code>
- */
- private $begin = 0;
- private $has_begin = false;
- /**
- * Identifies the ending offset in bytes in the generated code that
- * relates to the identified offset. The end offset should be one past
- * the last relevant byte (so the length of the text = end - begin).
- *
- * Generated from protobuf field <code>optional int32 end = 4;</code>
- */
- private $end = 0;
- private $has_end = false;
-
- public function __construct() {
- \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
- parent::__construct();
- }
-
- /**
- * Identifies the element in the original source .proto file. This field
- * is formatted the same as SourceCodeInfo.Location.path.
- *
- * Generated from protobuf field <code>repeated int32 path = 1 [packed = true];</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getPath()
- {
- return $this->path;
- }
-
- /**
- * Identifies the element in the original source .proto file. This field
- * is formatted the same as SourceCodeInfo.Location.path.
- *
- * Generated from protobuf field <code>repeated int32 path = 1 [packed = true];</code>
- * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setPath($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
- $this->path = $arr;
- $this->has_path = true;
-
- return $this;
- }
-
- public function hasPath()
- {
- return $this->has_path;
- }
-
- /**
- * Identifies the filesystem path to the original source .proto.
- *
- * Generated from protobuf field <code>optional string source_file = 2;</code>
- * @return string
- */
- public function getSourceFile()
- {
- return $this->source_file;
- }
-
- /**
- * Identifies the filesystem path to the original source .proto.
- *
- * Generated from protobuf field <code>optional string source_file = 2;</code>
- * @param string $var
- * @return $this
- */
- public function setSourceFile($var)
- {
- GPBUtil::checkString($var, True);
- $this->source_file = $var;
- $this->has_source_file = true;
-
- return $this;
- }
-
- public function hasSourceFile()
- {
- return $this->has_source_file;
- }
-
- /**
- * Identifies the starting offset in bytes in the generated code
- * that relates to the identified object.
- *
- * Generated from protobuf field <code>optional int32 begin = 3;</code>
- * @return int
- */
- public function getBegin()
- {
- return $this->begin;
- }
-
- /**
- * Identifies the starting offset in bytes in the generated code
- * that relates to the identified object.
- *
- * Generated from protobuf field <code>optional int32 begin = 3;</code>
- * @param int $var
- * @return $this
- */
- public function setBegin($var)
- {
- GPBUtil::checkInt32($var);
- $this->begin = $var;
- $this->has_begin = true;
-
- return $this;
- }
-
- public function hasBegin()
- {
- return $this->has_begin;
- }
-
- /**
- * Identifies the ending offset in bytes in the generated code that
- * relates to the identified offset. The end offset should be one past
- * the last relevant byte (so the length of the text = end - begin).
- *
- * Generated from protobuf field <code>optional int32 end = 4;</code>
- * @return int
- */
- public function getEnd()
- {
- return $this->end;
- }
-
- /**
- * Identifies the ending offset in bytes in the generated code that
- * relates to the identified offset. The end offset should be one past
- * the last relevant byte (so the length of the text = end - begin).
- *
- * Generated from protobuf field <code>optional int32 end = 4;</code>
- * @param int $var
- * @return $this
- */
- public function setEnd($var)
- {
- GPBUtil::checkInt32($var);
- $this->end = $var;
- $this->has_end = true;
-
- return $this;
- }
-
- public function hasEnd()
- {
- return $this->has_end;
- }
-
-}
-