com.googlecode.mobilityrpc.protocol.protobuf.MessagePing Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message_ping.proto
package com.googlecode.mobilityrpc.protocol.protobuf;
public final class MessagePing {
private MessagePing() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface PingOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.googlecode.mobilityrpc.protocol.protobuf.Ping)
com.google.protobuf.MessageOrBuilder {
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.UUID request_id = 1;
*
*
* A UUID generated by the client when it generates a Ping request,
* which will be echoed back in a Pong response
*
*/
boolean hasRequestId();
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.UUID request_id = 1;
*
*
* A UUID generated by the client when it generates a Ping request,
* which will be echoed back in a Pong response
*
*/
com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID getRequestId();
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.UUID request_id = 1;
*
*
* A UUID generated by the client when it generates a Ping request,
* which will be echoed back in a Pong response
*
*/
com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUIDOrBuilder getRequestIdOrBuilder();
/**
* required string message = 2;
*
*
* An arbitrary string which can be sent for debugging purposes
*
*/
boolean hasMessage();
/**
* required string message = 2;
*
*
* An arbitrary string which can be sent for debugging purposes
*
*/
java.lang.String getMessage();
/**
* required string message = 2;
*
*
* An arbitrary string which can be sent for debugging purposes
*
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
* Protobuf type {@code com.googlecode.mobilityrpc.protocol.protobuf.Ping}
*
*
* A message which can be sent at any time by the client
* to validate that a connection is still up
*
*/
public static final class Ping extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:com.googlecode.mobilityrpc.protocol.protobuf.Ping)
PingOrBuilder {
// Use Ping.newBuilder() to construct.
private Ping(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Ping() {
message_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Ping(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = requestId_.toBuilder();
}
requestId_ = input.readMessage(com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(requestId_);
requestId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
message_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_Ping_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_Ping_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping.class, com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping.Builder.class);
}
private int bitField0_;
public static final int REQUEST_ID_FIELD_NUMBER = 1;
private com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID requestId_;
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.UUID request_id = 1;
*
*
* A UUID generated by the client when it generates a Ping request,
* which will be echoed back in a Pong response
*
*/
public boolean hasRequestId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.UUID request_id = 1;
*
*
* A UUID generated by the client when it generates a Ping request,
* which will be echoed back in a Pong response
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID getRequestId() {
return requestId_ == null ? com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.getDefaultInstance() : requestId_;
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.UUID request_id = 1;
*
*
* A UUID generated by the client when it generates a Ping request,
* which will be echoed back in a Pong response
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUIDOrBuilder getRequestIdOrBuilder() {
return requestId_ == null ? com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.getDefaultInstance() : requestId_;
}
public static final int MESSAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object message_;
/**
* required string message = 2;
*
*
* An arbitrary string which can be sent for debugging purposes
*
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string message = 2;
*
*
* An arbitrary string which can be sent for debugging purposes
*
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
message_ = s;
}
return s;
}
}
/**
* required string message = 2;
*
*
* An arbitrary string which can be sent for debugging purposes
*
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasRequestId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasMessage()) {
memoizedIsInitialized = 0;
return false;
}
if (!getRequestId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getRequestId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, message_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRequestId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, message_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.googlecode.mobilityrpc.protocol.protobuf.Ping}
*
*
* A message which can be sent at any time by the client
* to validate that a connection is still up
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:com.googlecode.mobilityrpc.protocol.protobuf.Ping)
com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.PingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_Ping_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_Ping_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping.class, com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping.Builder.class);
}
// Construct using com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getRequestIdFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (requestIdBuilder_ == null) {
requestId_ = null;
} else {
requestIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
message_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.internal_static_com_googlecode_mobilityrpc_protocol_protobuf_Ping_descriptor;
}
public com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping getDefaultInstanceForType() {
return com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping.getDefaultInstance();
}
public com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping build() {
com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping buildPartial() {
com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping result = new com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (requestIdBuilder_ == null) {
result.requestId_ = requestId_;
} else {
result.requestId_ = requestIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.message_ = message_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping) {
return mergeFrom((com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping other) {
if (other == com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping.getDefaultInstance()) return this;
if (other.hasRequestId()) {
mergeRequestId(other.getRequestId());
}
if (other.hasMessage()) {
bitField0_ |= 0x00000002;
message_ = other.message_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasRequestId()) {
return false;
}
if (!hasMessage()) {
return false;
}
if (!getRequestId().isInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID requestId_ = null;
private com.google.protobuf.SingleFieldBuilder<
com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID, com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.Builder, com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUIDOrBuilder> requestIdBuilder_;
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.UUID request_id = 1;
*
*
* A UUID generated by the client when it generates a Ping request,
* which will be echoed back in a Pong response
*
*/
public boolean hasRequestId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.UUID request_id = 1;
*
*
* A UUID generated by the client when it generates a Ping request,
* which will be echoed back in a Pong response
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID getRequestId() {
if (requestIdBuilder_ == null) {
return requestId_ == null ? com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.getDefaultInstance() : requestId_;
} else {
return requestIdBuilder_.getMessage();
}
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.UUID request_id = 1;
*
*
* A UUID generated by the client when it generates a Ping request,
* which will be echoed back in a Pong response
*
*/
public Builder setRequestId(com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID value) {
if (requestIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
requestId_ = value;
onChanged();
} else {
requestIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.UUID request_id = 1;
*
*
* A UUID generated by the client when it generates a Ping request,
* which will be echoed back in a Pong response
*
*/
public Builder setRequestId(
com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.Builder builderForValue) {
if (requestIdBuilder_ == null) {
requestId_ = builderForValue.build();
onChanged();
} else {
requestIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.UUID request_id = 1;
*
*
* A UUID generated by the client when it generates a Ping request,
* which will be echoed back in a Pong response
*
*/
public Builder mergeRequestId(com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID value) {
if (requestIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
requestId_ != null &&
requestId_ != com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.getDefaultInstance()) {
requestId_ =
com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.newBuilder(requestId_).mergeFrom(value).buildPartial();
} else {
requestId_ = value;
}
onChanged();
} else {
requestIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.UUID request_id = 1;
*
*
* A UUID generated by the client when it generates a Ping request,
* which will be echoed back in a Pong response
*
*/
public Builder clearRequestId() {
if (requestIdBuilder_ == null) {
requestId_ = null;
onChanged();
} else {
requestIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.UUID request_id = 1;
*
*
* A UUID generated by the client when it generates a Ping request,
* which will be echoed back in a Pong response
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.Builder getRequestIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getRequestIdFieldBuilder().getBuilder();
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.UUID request_id = 1;
*
*
* A UUID generated by the client when it generates a Ping request,
* which will be echoed back in a Pong response
*
*/
public com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUIDOrBuilder getRequestIdOrBuilder() {
if (requestIdBuilder_ != null) {
return requestIdBuilder_.getMessageOrBuilder();
} else {
return requestId_ == null ?
com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.getDefaultInstance() : requestId_;
}
}
/**
* required .com.googlecode.mobilityrpc.protocol.protobuf.UUID request_id = 1;
*
*
* A UUID generated by the client when it generates a Ping request,
* which will be echoed back in a Pong response
*
*/
private com.google.protobuf.SingleFieldBuilder<
com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID, com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.Builder, com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUIDOrBuilder>
getRequestIdFieldBuilder() {
if (requestIdBuilder_ == null) {
requestIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID, com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUID.Builder, com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.UUIDOrBuilder>(
getRequestId(),
getParentForChildren(),
isClean());
requestId_ = null;
}
return requestIdBuilder_;
}
private java.lang.Object message_ = "";
/**
* required string message = 2;
*
*
* An arbitrary string which can be sent for debugging purposes
*
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string message = 2;
*
*
* An arbitrary string which can be sent for debugging purposes
*
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
message_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string message = 2;
*
*
* An arbitrary string which can be sent for debugging purposes
*
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string message = 2;
*
*
* An arbitrary string which can be sent for debugging purposes
*
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
message_ = value;
onChanged();
return this;
}
/**
* required string message = 2;
*
*
* An arbitrary string which can be sent for debugging purposes
*
*/
public Builder clearMessage() {
bitField0_ = (bitField0_ & ~0x00000002);
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* required string message = 2;
*
*
* An arbitrary string which can be sent for debugging purposes
*
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
message_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.googlecode.mobilityrpc.protocol.protobuf.Ping)
}
// @@protoc_insertion_point(class_scope:com.googlecode.mobilityrpc.protocol.protobuf.Ping)
private static final com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping();
}
public static com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Ping parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Ping(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.googlecode.mobilityrpc.protocol.protobuf.MessagePing.Ping getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_Ping_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_Ping_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\022message_ping.proto\022,com.googlecode.mob" +
"ilityrpc.protocol.protobuf\032\024component_uu" +
"id.proto\"_\n\004Ping\022F\n\nrequest_id\030\001 \002(\01322.c" +
"om.googlecode.mobilityrpc.protocol.proto" +
"buf.UUID\022\017\n\007message\030\002 \002(\t"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.getDescriptor(),
}, assigner);
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_Ping_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_Ping_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_googlecode_mobilityrpc_protocol_protobuf_Ping_descriptor,
new java.lang.String[] { "RequestId", "Message", });
com.googlecode.mobilityrpc.protocol.protobuf.ComponentUuid.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy