PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
← All changes | includes/sdk/google/google/protobuf/src/Google/Protobuf/Timestamp.php +36 -31 1.2.13 → 1.4.2 View file →
@@ -1,13 +1,14 @@
1 1 <?php
2 2
3 3 # Generated by the protocol buffer compiler. DO NOT EDIT!
4 +# NO CHECKED-IN PROTOBUF GENCODE
4 5 # source: google/protobuf/timestamp.proto
5 -namespace Dudlewebs\WPMCS\Google\Protobuf;
6 +namespace Dudlewebs\WPMCS\GCP\Google\Protobuf;
6 7
7 -use Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType;
8 -use Dudlewebs\WPMCS\Google\Protobuf\Internal\RepeatedField;
9 -use Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBUtil;
8 +use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType;
9 +use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBUtil;
10 +use Dudlewebs\WPMCS\GCP\Google\Protobuf\RepeatedField;
10 11 /**
11 12 * A Timestamp represents a point in time independent of any time zone or local
12 13 * calendar, encoded as a count of seconds and fractions of seconds at
13 14 * nanosecond resolution. The count is relative to an epoch at UTC midnight on
@@ -71,27 +72,28 @@
71 72 * to this format using
72 73 * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
73 74 * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
74 75 * the Joda Time's [`ISODateTimeFormat.dateTime()`](
75 - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
76 + * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
76 77 * ) to obtain a formatter capable of generating timestamps in this format.
77 78 *
78 79 * Generated from protobuf message <code>google.protobuf.Timestamp</code>
79 80 */
80 -class Timestamp extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\TimestampBase
81 +class Timestamp extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\TimestampBase
81 82 {
82 83 /**
83 - * Represents seconds of UTC time since Unix epoch
84 - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
85 - * 9999-12-31T23:59:59Z inclusive.
84 + * Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
85 + * be between -315576000000 and 315576000000 inclusive (which corresponds to
86 + * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
86 87 *
87 88 * Generated from protobuf field <code>int64 seconds = 1;</code>
88 89 */
89 90 protected $seconds = 0;
90 91 /**
91 - * Non-negative fractions of a second at nanosecond resolution. Negative
92 - * second values with fractions must still have non-negative nanos values
93 - * that count forward in time. Must be from 0 to 999,999,999
92 + * Non-negative fractions of a second at nanosecond resolution. This field is
93 + * the nanosecond portion of the duration, not an alternative to seconds.
94 + * Negative second values with fractions must still have non-negative nanos
95 + * values that count forward in time. Must be between 0 and 999,999,999
94 96 * inclusive.
95 97 *
96 98 * Generated from protobuf field <code>int32 nanos = 2;</code>
97 99 */
@@ -102,27 +104,28 @@
102 104 * @param array $data {
103 105 * Optional. Data for populating the Message object.
104 106 *
105 107 * @type int|string $seconds
106 - * Represents seconds of UTC time since Unix epoch
107 - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
108 - * 9999-12-31T23:59:59Z inclusive.
108 + * Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
109 + * be between -315576000000 and 315576000000 inclusive (which corresponds to
110 + * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
109 111 * @type int $nanos
110 - * Non-negative fractions of a second at nanosecond resolution. Negative
111 - * second values with fractions must still have non-negative nanos values
112 - * that count forward in time. Must be from 0 to 999,999,999
112 + * Non-negative fractions of a second at nanosecond resolution. This field is
113 + * the nanosecond portion of the duration, not an alternative to seconds.
114 + * Negative second values with fractions must still have non-negative nanos
115 + * values that count forward in time. Must be between 0 and 999,999,999
113 116 * inclusive.
114 117 * }
115 118 */
116 119 public function __construct($data = NULL)
117 120 {
118 - \Dudlewebs\WPMCS\GPBMetadata\Google\Protobuf\Timestamp::initOnce();
121 + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Protobuf\Timestamp::initOnce();
119 122 parent::__construct($data);
120 123 }
121 124 /**
122 - * Represents seconds of UTC time since Unix epoch
123 - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
124 - * 9999-12-31T23:59:59Z inclusive.
125 + * Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
126 + * be between -315576000000 and 315576000000 inclusive (which corresponds to
127 + * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
125 128 *
126 129 * Generated from protobuf field <code>int64 seconds = 1;</code>
127 130 * @return int|string
128 131 */
@@ -130,11 +133,11 @@
130 133 {
131 134 return $this->seconds;
132 135 }
133 136 /**
134 - * Represents seconds of UTC time since Unix epoch
135 - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
136 - * 9999-12-31T23:59:59Z inclusive.
137 + * Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
138 + * be between -315576000000 and 315576000000 inclusive (which corresponds to
139 + * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
137 140 *
138 141 * Generated from protobuf field <code>int64 seconds = 1;</code>
139 142 * @param int|string $var
140 143 * @return $this
@@ -145,11 +148,12 @@
145 148 $this->seconds = $var;
146 149 return $this;
147 150 }
148 151 /**
149 - * Non-negative fractions of a second at nanosecond resolution. Negative
150 - * second values with fractions must still have non-negative nanos values
151 - * that count forward in time. Must be from 0 to 999,999,999
152 + * Non-negative fractions of a second at nanosecond resolution. This field is
153 + * the nanosecond portion of the duration, not an alternative to seconds.
154 + * Negative second values with fractions must still have non-negative nanos
155 + * values that count forward in time. Must be between 0 and 999,999,999
152 156 * inclusive.
153 157 *
154 158 * Generated from protobuf field <code>int32 nanos = 2;</code>
155 159 * @return int
@@ -158,11 +162,12 @@
158 162 {
159 163 return $this->nanos;
160 164 }
161 165 /**
162 - * Non-negative fractions of a second at nanosecond resolution. Negative
163 - * second values with fractions must still have non-negative nanos values
164 - * that count forward in time. Must be from 0 to 999,999,999
166 + * Non-negative fractions of a second at nanosecond resolution. This field is
167 + * the nanosecond portion of the duration, not an alternative to seconds.
168 + * Negative second values with fractions must still have non-negative nanos
169 + * values that count forward in time. Must be between 0 and 999,999,999
165 170 * inclusive.
166 171 *
167 172 * Generated from protobuf field <code>int32 nanos = 2;</code>
168 173 * @param int $var