31 package com.google.protobuf;
33 import java.io.IOException;
121 this.delayedBytes =
bytes;
155 if (value1 ==
null && value2 ==
null) {
157 }
else if (value1 !=
null && value2 !=
null) {
158 return value1.equals(value2);
159 }
else if (value1 !=
null) {
204 this.delayedBytes = other.delayedBytes;
205 this.value = other.value;
206 this.memoizedBytes = other.memoizedBytes;
211 if (other.extensionRegistry !=
null) {
212 this.extensionRegistry = other.extensionRegistry;
235 this.delayedBytes =
null;
236 this.memoizedBytes =
null;
238 return originalValue;
261 if (this.extensionRegistry ==
null) {
270 if (this.delayedBytes !=
null && other.
delayedBytes !=
null) {
271 this.delayedBytes = this.delayedBytes.concat(other.
delayedBytes);
278 if (this.value ==
null && other.
value !=
null) {
281 }
else if (this.value !=
null && other.
value ==
null) {
305 if (this.extensionRegistry ==
null) {
314 if (this.delayedBytes !=
null) {
344 this.delayedBytes =
bytes;
347 this.memoizedBytes =
null;
361 }
else if (
value !=
null) {
362 return value.getSerializedSize();
378 synchronized (
this) {
392 void writeTo(Writer writer,
int fieldNumber)
throws IOException {
397 }
else if (
value !=
null) {
398 writer.writeMessage(fieldNumber,
value);
400 writer.writeBytes(fieldNumber, ByteString.EMPTY);
409 synchronized (
this) {
418 this.value = parsedValue;
421 this.value = defaultInstance;
427 this.value = defaultInstance;
435 throw new NullPointerException(
"found null ExtensionRegistry");
438 throw new NullPointerException(
"found null ByteString");