com.google.apphosting.base.protos.api.RemoteApiPb Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: remote_api.proto
package com.google.apphosting.base.protos.api;
public final class RemoteApiPb {
private RemoteApiPb() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.ext.remote_api.Request)
com.google.protobuf.MessageOrBuilder {
/**
* required string service_name = 2;
* @return Whether the serviceName field is set.
*/
boolean hasServiceName();
/**
* required string service_name = 2;
* @return The serviceName.
*/
java.lang.String getServiceName();
/**
* required string service_name = 2;
* @return The bytes for serviceName.
*/
com.google.protobuf.ByteString
getServiceNameBytes();
/**
* required string method = 3;
* @return Whether the method field is set.
*/
boolean hasMethod();
/**
* required string method = 3;
* @return The method.
*/
java.lang.String getMethod();
/**
* required string method = 3;
* @return The bytes for method.
*/
com.google.protobuf.ByteString
getMethodBytes();
/**
*
* Contains the serialized service-specific protobuf
*
*
* required bytes request = 4;
* @return Whether the request field is set.
*/
boolean hasRequest();
/**
*
* Contains the serialized service-specific protobuf
*
*
* required bytes request = 4;
* @return The request.
*/
com.google.protobuf.ByteString getRequest();
/**
* optional string request_id = 5;
* @return Whether the requestId field is set.
*/
boolean hasRequestId();
/**
* optional string request_id = 5;
* @return The requestId.
*/
java.lang.String getRequestId();
/**
* optional string request_id = 5;
* @return The bytes for requestId.
*/
com.google.protobuf.ByteString
getRequestIdBytes();
/**
*
* Contains the serialized trace context protobuf
*
*
* optional bytes trace_context = 6;
* @return Whether the traceContext field is set.
*/
boolean hasTraceContext();
/**
*
* Contains the serialized trace context protobuf
*
*
* optional bytes trace_context = 6;
* @return The traceContext.
*/
com.google.protobuf.ByteString getTraceContext();
}
/**
* Protobuf type {@code java.apphosting.ext.remote_api.Request}
*/
public static final class Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.ext.remote_api.Request)
RequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use Request.newBuilder() to construct.
private Request(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Request() {
serviceName_ = "";
method_ = "";
request_ = com.google.protobuf.ByteString.EMPTY;
requestId_ = "";
traceContext_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Request();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_Request_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.api.RemoteApiPb.Request.class, com.google.apphosting.base.protos.api.RemoteApiPb.Request.Builder.class);
}
private int bitField0_;
public static final int SERVICE_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object serviceName_ = "";
/**
* required string service_name = 2;
* @return Whether the serviceName field is set.
*/
@java.lang.Override
public boolean hasServiceName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string service_name = 2;
* @return The serviceName.
*/
@java.lang.Override
public java.lang.String getServiceName() {
java.lang.Object ref = serviceName_;
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()) {
serviceName_ = s;
}
return s;
}
}
/**
* required string service_name = 2;
* @return The bytes for serviceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int METHOD_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object method_ = "";
/**
* required string method = 3;
* @return Whether the method field is set.
*/
@java.lang.Override
public boolean hasMethod() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string method = 3;
* @return The method.
*/
@java.lang.Override
public java.lang.String getMethod() {
java.lang.Object ref = method_;
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()) {
method_ = s;
}
return s;
}
}
/**
* required string method = 3;
* @return The bytes for method.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMethodBytes() {
java.lang.Object ref = method_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
method_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REQUEST_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString request_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Contains the serialized service-specific protobuf
*
*
* required bytes request = 4;
* @return Whether the request field is set.
*/
@java.lang.Override
public boolean hasRequest() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Contains the serialized service-specific protobuf
*
*
* required bytes request = 4;
* @return The request.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRequest() {
return request_;
}
public static final int REQUEST_ID_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object requestId_ = "";
/**
* optional string request_id = 5;
* @return Whether the requestId field is set.
*/
@java.lang.Override
public boolean hasRequestId() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string request_id = 5;
* @return The requestId.
*/
@java.lang.Override
public java.lang.String getRequestId() {
java.lang.Object ref = requestId_;
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()) {
requestId_ = s;
}
return s;
}
}
/**
* optional string request_id = 5;
* @return The bytes for requestId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRequestIdBytes() {
java.lang.Object ref = requestId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
requestId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRACE_CONTEXT_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString traceContext_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Contains the serialized trace context protobuf
*
*
* optional bytes trace_context = 6;
* @return Whether the traceContext field is set.
*/
@java.lang.Override
public boolean hasTraceContext() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Contains the serialized trace context protobuf
*
*
* optional bytes trace_context = 6;
* @return The traceContext.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTraceContext() {
return traceContext_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasServiceName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasMethod()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasRequest()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, method_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBytes(4, request_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBytes(6, traceContext_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, method_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, request_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, traceContext_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.apphosting.base.protos.api.RemoteApiPb.Request)) {
return super.equals(obj);
}
com.google.apphosting.base.protos.api.RemoteApiPb.Request other = (com.google.apphosting.base.protos.api.RemoteApiPb.Request) obj;
if (hasServiceName() != other.hasServiceName()) return false;
if (hasServiceName()) {
if (!getServiceName()
.equals(other.getServiceName())) return false;
}
if (hasMethod() != other.hasMethod()) return false;
if (hasMethod()) {
if (!getMethod()
.equals(other.getMethod())) return false;
}
if (hasRequest() != other.hasRequest()) return false;
if (hasRequest()) {
if (!getRequest()
.equals(other.getRequest())) return false;
}
if (hasRequestId() != other.hasRequestId()) return false;
if (hasRequestId()) {
if (!getRequestId()
.equals(other.getRequestId())) return false;
}
if (hasTraceContext() != other.hasTraceContext()) return false;
if (hasTraceContext()) {
if (!getTraceContext()
.equals(other.getTraceContext())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasServiceName()) {
hash = (37 * hash) + SERVICE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getServiceName().hashCode();
}
if (hasMethod()) {
hash = (37 * hash) + METHOD_FIELD_NUMBER;
hash = (53 * hash) + getMethod().hashCode();
}
if (hasRequest()) {
hash = (37 * hash) + REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getRequest().hashCode();
}
if (hasRequestId()) {
hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER;
hash = (53 * hash) + getRequestId().hashCode();
}
if (hasTraceContext()) {
hash = (37 * hash) + TRACE_CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getTraceContext().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Request parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Request parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Request parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Request parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Request parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Request parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Request parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.apphosting.base.protos.api.RemoteApiPb.Request prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.ext.remote_api.Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.ext.remote_api.Request)
com.google.apphosting.base.protos.api.RemoteApiPb.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_Request_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.api.RemoteApiPb.Request.class, com.google.apphosting.base.protos.api.RemoteApiPb.Request.Builder.class);
}
// Construct using com.google.apphosting.base.protos.api.RemoteApiPb.Request.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
serviceName_ = "";
method_ = "";
request_ = com.google.protobuf.ByteString.EMPTY;
requestId_ = "";
traceContext_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_Request_descriptor;
}
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.Request getDefaultInstanceForType() {
return com.google.apphosting.base.protos.api.RemoteApiPb.Request.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.Request build() {
com.google.apphosting.base.protos.api.RemoteApiPb.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.Request buildPartial() {
com.google.apphosting.base.protos.api.RemoteApiPb.Request result = new com.google.apphosting.base.protos.api.RemoteApiPb.Request(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.base.protos.api.RemoteApiPb.Request result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.serviceName_ = serviceName_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.method_ = method_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.request_ = request_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.requestId_ = requestId_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.traceContext_ = traceContext_;
to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apphosting.base.protos.api.RemoteApiPb.Request) {
return mergeFrom((com.google.apphosting.base.protos.api.RemoteApiPb.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.base.protos.api.RemoteApiPb.Request other) {
if (other == com.google.apphosting.base.protos.api.RemoteApiPb.Request.getDefaultInstance()) return this;
if (other.hasServiceName()) {
serviceName_ = other.serviceName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasMethod()) {
method_ = other.method_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasRequest()) {
setRequest(other.getRequest());
}
if (other.hasRequestId()) {
requestId_ = other.requestId_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasTraceContext()) {
setTraceContext(other.getTraceContext());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasServiceName()) {
return false;
}
if (!hasMethod()) {
return false;
}
if (!hasRequest()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 18: {
serviceName_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 18
case 26: {
method_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 26
case 34: {
request_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 34
case 42: {
requestId_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 42
case 50: {
traceContext_ = input.readBytes();
bitField0_ |= 0x00000010;
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object serviceName_ = "";
/**
* required string service_name = 2;
* @return Whether the serviceName field is set.
*/
public boolean hasServiceName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string service_name = 2;
* @return The serviceName.
*/
public java.lang.String getServiceName() {
java.lang.Object ref = serviceName_;
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()) {
serviceName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string service_name = 2;
* @return The bytes for serviceName.
*/
public com.google.protobuf.ByteString
getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string service_name = 2;
* @param value The serviceName to set.
* @return This builder for chaining.
*/
public Builder setServiceName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
serviceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required string service_name = 2;
* @return This builder for chaining.
*/
public Builder clearServiceName() {
serviceName_ = getDefaultInstance().getServiceName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* required string service_name = 2;
* @param value The bytes for serviceName to set.
* @return This builder for chaining.
*/
public Builder setServiceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
serviceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object method_ = "";
/**
* required string method = 3;
* @return Whether the method field is set.
*/
public boolean hasMethod() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string method = 3;
* @return The method.
*/
public java.lang.String getMethod() {
java.lang.Object ref = method_;
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()) {
method_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string method = 3;
* @return The bytes for method.
*/
public com.google.protobuf.ByteString
getMethodBytes() {
java.lang.Object ref = method_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
method_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string method = 3;
* @param value The method to set.
* @return This builder for chaining.
*/
public Builder setMethod(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
method_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required string method = 3;
* @return This builder for chaining.
*/
public Builder clearMethod() {
method_ = getDefaultInstance().getMethod();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* required string method = 3;
* @param value The bytes for method to set.
* @return This builder for chaining.
*/
public Builder setMethodBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
method_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.ByteString request_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Contains the serialized service-specific protobuf
*
*
* required bytes request = 4;
* @return Whether the request field is set.
*/
@java.lang.Override
public boolean hasRequest() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Contains the serialized service-specific protobuf
*
*
* required bytes request = 4;
* @return The request.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRequest() {
return request_;
}
/**
*
* Contains the serialized service-specific protobuf
*
*
* required bytes request = 4;
* @param value The request to set.
* @return This builder for chaining.
*/
public Builder setRequest(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
request_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Contains the serialized service-specific protobuf
*
*
* required bytes request = 4;
* @return This builder for chaining.
*/
public Builder clearRequest() {
bitField0_ = (bitField0_ & ~0x00000004);
request_ = getDefaultInstance().getRequest();
onChanged();
return this;
}
private java.lang.Object requestId_ = "";
/**
* optional string request_id = 5;
* @return Whether the requestId field is set.
*/
public boolean hasRequestId() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string request_id = 5;
* @return The requestId.
*/
public java.lang.String getRequestId() {
java.lang.Object ref = requestId_;
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()) {
requestId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string request_id = 5;
* @return The bytes for requestId.
*/
public com.google.protobuf.ByteString
getRequestIdBytes() {
java.lang.Object ref = requestId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
requestId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string request_id = 5;
* @param value The requestId to set.
* @return This builder for chaining.
*/
public Builder setRequestId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
requestId_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional string request_id = 5;
* @return This builder for chaining.
*/
public Builder clearRequestId() {
requestId_ = getDefaultInstance().getRequestId();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* optional string request_id = 5;
* @param value The bytes for requestId to set.
* @return This builder for chaining.
*/
public Builder setRequestIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
requestId_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private com.google.protobuf.ByteString traceContext_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Contains the serialized trace context protobuf
*
*
* optional bytes trace_context = 6;
* @return Whether the traceContext field is set.
*/
@java.lang.Override
public boolean hasTraceContext() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Contains the serialized trace context protobuf
*
*
* optional bytes trace_context = 6;
* @return The traceContext.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTraceContext() {
return traceContext_;
}
/**
*
* Contains the serialized trace context protobuf
*
*
* optional bytes trace_context = 6;
* @param value The traceContext to set.
* @return This builder for chaining.
*/
public Builder setTraceContext(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
traceContext_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Contains the serialized trace context protobuf
*
*
* optional bytes trace_context = 6;
* @return This builder for chaining.
*/
public Builder clearTraceContext() {
bitField0_ = (bitField0_ & ~0x00000010);
traceContext_ = getDefaultInstance().getTraceContext();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.ext.remote_api.Request)
}
// @@protoc_insertion_point(class_scope:java.apphosting.ext.remote_api.Request)
private static final com.google.apphosting.base.protos.api.RemoteApiPb.Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.base.protos.api.RemoteApiPb.Request();
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Request getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Request parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ApplicationErrorOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.ext.remote_api.ApplicationError)
com.google.protobuf.MessageOrBuilder {
/**
* required int32 code = 1;
* @return Whether the code field is set.
*/
boolean hasCode();
/**
* required int32 code = 1;
* @return The code.
*/
int getCode();
/**
* required string detail = 2;
* @return Whether the detail field is set.
*/
boolean hasDetail();
/**
* required string detail = 2;
* @return The detail.
*/
java.lang.String getDetail();
/**
* required string detail = 2;
* @return The bytes for detail.
*/
com.google.protobuf.ByteString
getDetailBytes();
}
/**
* Protobuf type {@code java.apphosting.ext.remote_api.ApplicationError}
*/
public static final class ApplicationError extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.ext.remote_api.ApplicationError)
ApplicationErrorOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApplicationError.newBuilder() to construct.
private ApplicationError(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ApplicationError() {
detail_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ApplicationError();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_ApplicationError_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_ApplicationError_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError.class, com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError.Builder.class);
}
private int bitField0_;
public static final int CODE_FIELD_NUMBER = 1;
private int code_ = 0;
/**
* required int32 code = 1;
* @return Whether the code field is set.
*/
@java.lang.Override
public boolean hasCode() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required int32 code = 1;
* @return The code.
*/
@java.lang.Override
public int getCode() {
return code_;
}
public static final int DETAIL_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object detail_ = "";
/**
* required string detail = 2;
* @return Whether the detail field is set.
*/
@java.lang.Override
public boolean hasDetail() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string detail = 2;
* @return The detail.
*/
@java.lang.Override
public java.lang.String getDetail() {
java.lang.Object ref = detail_;
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()) {
detail_ = s;
}
return s;
}
}
/**
* required string detail = 2;
* @return The bytes for detail.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDetailBytes() {
java.lang.Object ref = detail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasCode()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasDetail()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(1, code_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, detail_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, code_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, detail_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError)) {
return super.equals(obj);
}
com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError other = (com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError) obj;
if (hasCode() != other.hasCode()) return false;
if (hasCode()) {
if (getCode()
!= other.getCode()) return false;
}
if (hasDetail() != other.hasDetail()) return false;
if (hasDetail()) {
if (!getDetail()
.equals(other.getDetail())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCode()) {
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode();
}
if (hasDetail()) {
hash = (37 * hash) + DETAIL_FIELD_NUMBER;
hash = (53 * hash) + getDetail().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.ext.remote_api.ApplicationError}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.ext.remote_api.ApplicationError)
com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationErrorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_ApplicationError_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_ApplicationError_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError.class, com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError.Builder.class);
}
// Construct using com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
code_ = 0;
detail_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_ApplicationError_descriptor;
}
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError getDefaultInstanceForType() {
return com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError build() {
com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError buildPartial() {
com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError result = new com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.code_ = code_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.detail_ = detail_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError) {
return mergeFrom((com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError other) {
if (other == com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError.getDefaultInstance()) return this;
if (other.hasCode()) {
setCode(other.getCode());
}
if (other.hasDetail()) {
detail_ = other.detail_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasCode()) {
return false;
}
if (!hasDetail()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
code_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
detail_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int code_ ;
/**
* required int32 code = 1;
* @return Whether the code field is set.
*/
@java.lang.Override
public boolean hasCode() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required int32 code = 1;
* @return The code.
*/
@java.lang.Override
public int getCode() {
return code_;
}
/**
* required int32 code = 1;
* @param value The code to set.
* @return This builder for chaining.
*/
public Builder setCode(int value) {
code_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required int32 code = 1;
* @return This builder for chaining.
*/
public Builder clearCode() {
bitField0_ = (bitField0_ & ~0x00000001);
code_ = 0;
onChanged();
return this;
}
private java.lang.Object detail_ = "";
/**
* required string detail = 2;
* @return Whether the detail field is set.
*/
public boolean hasDetail() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string detail = 2;
* @return The detail.
*/
public java.lang.String getDetail() {
java.lang.Object ref = detail_;
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()) {
detail_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string detail = 2;
* @return The bytes for detail.
*/
public com.google.protobuf.ByteString
getDetailBytes() {
java.lang.Object ref = detail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string detail = 2;
* @param value The detail to set.
* @return This builder for chaining.
*/
public Builder setDetail(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
detail_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required string detail = 2;
* @return This builder for chaining.
*/
public Builder clearDetail() {
detail_ = getDefaultInstance().getDetail();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* required string detail = 2;
* @param value The bytes for detail to set.
* @return This builder for chaining.
*/
public Builder setDetailBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
detail_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.ext.remote_api.ApplicationError)
}
// @@protoc_insertion_point(class_scope:java.apphosting.ext.remote_api.ApplicationError)
private static final com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError();
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ApplicationError parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RpcErrorOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.ext.remote_api.RpcError)
com.google.protobuf.MessageOrBuilder {
/**
*
* Should contain an ErrorCode
*
*
* required int32 code = 1;
* @return Whether the code field is set.
*/
boolean hasCode();
/**
*
* Should contain an ErrorCode
*
*
* required int32 code = 1;
* @return The code.
*/
int getCode();
/**
* optional string detail = 2;
* @return Whether the detail field is set.
*/
boolean hasDetail();
/**
* optional string detail = 2;
* @return The detail.
*/
java.lang.String getDetail();
/**
* optional string detail = 2;
* @return The bytes for detail.
*/
com.google.protobuf.ByteString
getDetailBytes();
}
/**
*
* Transport-level RPC errors adapted from runtime.proto
*
*
* Protobuf type {@code java.apphosting.ext.remote_api.RpcError}
*/
public static final class RpcError extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.ext.remote_api.RpcError)
RpcErrorOrBuilder {
private static final long serialVersionUID = 0L;
// Use RpcError.newBuilder() to construct.
private RpcError(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RpcError() {
detail_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RpcError();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_RpcError_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_RpcError_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.api.RemoteApiPb.RpcError.class, com.google.apphosting.base.protos.api.RemoteApiPb.RpcError.Builder.class);
}
/**
* Protobuf enum {@code java.apphosting.ext.remote_api.RpcError.ErrorCode}
*/
public enum ErrorCode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
* CALL_NOT_FOUND = 1;
*/
CALL_NOT_FOUND(1),
/**
* PARSE_ERROR = 2;
*/
PARSE_ERROR(2),
/**
* SECURITY_VIOLATION = 3;
*/
SECURITY_VIOLATION(3),
/**
* OVER_QUOTA = 4;
*/
OVER_QUOTA(4),
/**
* REQUEST_TOO_LARGE = 5;
*/
REQUEST_TOO_LARGE(5),
/**
* CAPABILITY_DISABLED = 6;
*/
CAPABILITY_DISABLED(6),
/**
* FEATURE_DISABLED = 7;
*/
FEATURE_DISABLED(7),
/**
* BAD_REQUEST = 8;
*/
BAD_REQUEST(8),
/**
* RESPONSE_TOO_LARGE = 9;
*/
RESPONSE_TOO_LARGE(9),
/**
* CANCELLED = 10;
*/
CANCELLED(10),
/**
* REPLAY_ERROR = 11;
*/
REPLAY_ERROR(11),
/**
* DEADLINE_EXCEEDED = 12;
*/
DEADLINE_EXCEEDED(12),
;
/**
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
* CALL_NOT_FOUND = 1;
*/
public static final int CALL_NOT_FOUND_VALUE = 1;
/**
* PARSE_ERROR = 2;
*/
public static final int PARSE_ERROR_VALUE = 2;
/**
* SECURITY_VIOLATION = 3;
*/
public static final int SECURITY_VIOLATION_VALUE = 3;
/**
* OVER_QUOTA = 4;
*/
public static final int OVER_QUOTA_VALUE = 4;
/**
* REQUEST_TOO_LARGE = 5;
*/
public static final int REQUEST_TOO_LARGE_VALUE = 5;
/**
* CAPABILITY_DISABLED = 6;
*/
public static final int CAPABILITY_DISABLED_VALUE = 6;
/**
* FEATURE_DISABLED = 7;
*/
public static final int FEATURE_DISABLED_VALUE = 7;
/**
* BAD_REQUEST = 8;
*/
public static final int BAD_REQUEST_VALUE = 8;
/**
* RESPONSE_TOO_LARGE = 9;
*/
public static final int RESPONSE_TOO_LARGE_VALUE = 9;
/**
* CANCELLED = 10;
*/
public static final int CANCELLED_VALUE = 10;
/**
* REPLAY_ERROR = 11;
*/
public static final int REPLAY_ERROR_VALUE = 11;
/**
* DEADLINE_EXCEEDED = 12;
*/
public static final int DEADLINE_EXCEEDED_VALUE = 12;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ErrorCode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ErrorCode forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return CALL_NOT_FOUND;
case 2: return PARSE_ERROR;
case 3: return SECURITY_VIOLATION;
case 4: return OVER_QUOTA;
case 5: return REQUEST_TOO_LARGE;
case 6: return CAPABILITY_DISABLED;
case 7: return FEATURE_DISABLED;
case 8: return BAD_REQUEST;
case 9: return RESPONSE_TOO_LARGE;
case 10: return CANCELLED;
case 11: return REPLAY_ERROR;
case 12: return DEADLINE_EXCEEDED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ErrorCode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ErrorCode findValueByNumber(int number) {
return ErrorCode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.apphosting.base.protos.api.RemoteApiPb.RpcError.getDescriptor().getEnumTypes().get(0);
}
private static final ErrorCode[] VALUES = values();
public static ErrorCode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private ErrorCode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:java.apphosting.ext.remote_api.RpcError.ErrorCode)
}
private int bitField0_;
public static final int CODE_FIELD_NUMBER = 1;
private int code_ = 0;
/**
*
* Should contain an ErrorCode
*
*
* required int32 code = 1;
* @return Whether the code field is set.
*/
@java.lang.Override
public boolean hasCode() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Should contain an ErrorCode
*
*
* required int32 code = 1;
* @return The code.
*/
@java.lang.Override
public int getCode() {
return code_;
}
public static final int DETAIL_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object detail_ = "";
/**
* optional string detail = 2;
* @return Whether the detail field is set.
*/
@java.lang.Override
public boolean hasDetail() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string detail = 2;
* @return The detail.
*/
@java.lang.Override
public java.lang.String getDetail() {
java.lang.Object ref = detail_;
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()) {
detail_ = s;
}
return s;
}
}
/**
* optional string detail = 2;
* @return The bytes for detail.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDetailBytes() {
java.lang.Object ref = detail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasCode()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(1, code_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, detail_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, code_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, detail_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.apphosting.base.protos.api.RemoteApiPb.RpcError)) {
return super.equals(obj);
}
com.google.apphosting.base.protos.api.RemoteApiPb.RpcError other = (com.google.apphosting.base.protos.api.RemoteApiPb.RpcError) obj;
if (hasCode() != other.hasCode()) return false;
if (hasCode()) {
if (getCode()
!= other.getCode()) return false;
}
if (hasDetail() != other.hasDetail()) return false;
if (hasDetail()) {
if (!getDetail()
.equals(other.getDetail())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCode()) {
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode();
}
if (hasDetail()) {
hash = (37 * hash) + DETAIL_FIELD_NUMBER;
hash = (53 * hash) + getDetail().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.RpcError parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.RpcError parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.RpcError parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.RpcError parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.RpcError parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.RpcError parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.RpcError parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.RpcError parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.RpcError parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.RpcError parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.RpcError parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.RpcError parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.apphosting.base.protos.api.RemoteApiPb.RpcError prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Transport-level RPC errors adapted from runtime.proto
*
*
* Protobuf type {@code java.apphosting.ext.remote_api.RpcError}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.ext.remote_api.RpcError)
com.google.apphosting.base.protos.api.RemoteApiPb.RpcErrorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_RpcError_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_RpcError_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.api.RemoteApiPb.RpcError.class, com.google.apphosting.base.protos.api.RemoteApiPb.RpcError.Builder.class);
}
// Construct using com.google.apphosting.base.protos.api.RemoteApiPb.RpcError.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
code_ = 0;
detail_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_RpcError_descriptor;
}
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.RpcError getDefaultInstanceForType() {
return com.google.apphosting.base.protos.api.RemoteApiPb.RpcError.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.RpcError build() {
com.google.apphosting.base.protos.api.RemoteApiPb.RpcError result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.RpcError buildPartial() {
com.google.apphosting.base.protos.api.RemoteApiPb.RpcError result = new com.google.apphosting.base.protos.api.RemoteApiPb.RpcError(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.base.protos.api.RemoteApiPb.RpcError result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.code_ = code_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.detail_ = detail_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apphosting.base.protos.api.RemoteApiPb.RpcError) {
return mergeFrom((com.google.apphosting.base.protos.api.RemoteApiPb.RpcError)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.base.protos.api.RemoteApiPb.RpcError other) {
if (other == com.google.apphosting.base.protos.api.RemoteApiPb.RpcError.getDefaultInstance()) return this;
if (other.hasCode()) {
setCode(other.getCode());
}
if (other.hasDetail()) {
detail_ = other.detail_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasCode()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
code_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
detail_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int code_ ;
/**
*
* Should contain an ErrorCode
*
*
* required int32 code = 1;
* @return Whether the code field is set.
*/
@java.lang.Override
public boolean hasCode() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Should contain an ErrorCode
*
*
* required int32 code = 1;
* @return The code.
*/
@java.lang.Override
public int getCode() {
return code_;
}
/**
*
* Should contain an ErrorCode
*
*
* required int32 code = 1;
* @param value The code to set.
* @return This builder for chaining.
*/
public Builder setCode(int value) {
code_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Should contain an ErrorCode
*
*
* required int32 code = 1;
* @return This builder for chaining.
*/
public Builder clearCode() {
bitField0_ = (bitField0_ & ~0x00000001);
code_ = 0;
onChanged();
return this;
}
private java.lang.Object detail_ = "";
/**
* optional string detail = 2;
* @return Whether the detail field is set.
*/
public boolean hasDetail() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string detail = 2;
* @return The detail.
*/
public java.lang.String getDetail() {
java.lang.Object ref = detail_;
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()) {
detail_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string detail = 2;
* @return The bytes for detail.
*/
public com.google.protobuf.ByteString
getDetailBytes() {
java.lang.Object ref = detail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string detail = 2;
* @param value The detail to set.
* @return This builder for chaining.
*/
public Builder setDetail(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
detail_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional string detail = 2;
* @return This builder for chaining.
*/
public Builder clearDetail() {
detail_ = getDefaultInstance().getDetail();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* optional string detail = 2;
* @param value The bytes for detail to set.
* @return This builder for chaining.
*/
public Builder setDetailBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
detail_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.ext.remote_api.RpcError)
}
// @@protoc_insertion_point(class_scope:java.apphosting.ext.remote_api.RpcError)
private static final com.google.apphosting.base.protos.api.RemoteApiPb.RpcError DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.base.protos.api.RemoteApiPb.RpcError();
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.RpcError getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RpcError parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.RpcError getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.ext.remote_api.Response)
com.google.protobuf.MessageOrBuilder {
/**
*
* Exactly one of the fields 'response', 'exception', 'java_exception' and
* 'rpc_error' should be set. If 'exception' or 'java_exception' is set,
* 'application_error' will also be set if the exception was generated due to
* RPC::ApplicationError being set.
* The remote access feature described above (1) and the devappserver (2)
* use 'exception' and 'java_exception' to specify error responses.
* 'exception' is a pickled python exception object. 'java_exception' is a
* serialized java exception object. Remote access (1) also uses
* 'application_error' for datastore errors.
* For VM runtimes (3), transport-layer errors are passed in 'rpc_error' and
* application-layer errors in 'application_error'. The 'exception' and
* 'java_exception' fields are unused in this context.
* For cross-language maintainability, it is probably best to avoid
* using 'exception' and 'java_exception' in new code.
*
*
* optional bytes response = 1;
* @return Whether the response field is set.
*/
boolean hasResponse();
/**
*
* Exactly one of the fields 'response', 'exception', 'java_exception' and
* 'rpc_error' should be set. If 'exception' or 'java_exception' is set,
* 'application_error' will also be set if the exception was generated due to
* RPC::ApplicationError being set.
* The remote access feature described above (1) and the devappserver (2)
* use 'exception' and 'java_exception' to specify error responses.
* 'exception' is a pickled python exception object. 'java_exception' is a
* serialized java exception object. Remote access (1) also uses
* 'application_error' for datastore errors.
* For VM runtimes (3), transport-layer errors are passed in 'rpc_error' and
* application-layer errors in 'application_error'. The 'exception' and
* 'java_exception' fields are unused in this context.
* For cross-language maintainability, it is probably best to avoid
* using 'exception' and 'java_exception' in new code.
*
*
* optional bytes response = 1;
* @return The response.
*/
com.google.protobuf.ByteString getResponse();
/**
* optional bytes exception = 2;
* @return Whether the exception field is set.
*/
boolean hasException();
/**
* optional bytes exception = 2;
* @return The exception.
*/
com.google.protobuf.ByteString getException();
/**
* optional .java.apphosting.ext.remote_api.ApplicationError application_error = 3;
* @return Whether the applicationError field is set.
*/
boolean hasApplicationError();
/**
* optional .java.apphosting.ext.remote_api.ApplicationError application_error = 3;
* @return The applicationError.
*/
com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError getApplicationError();
/**
* optional .java.apphosting.ext.remote_api.ApplicationError application_error = 3;
*/
com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationErrorOrBuilder getApplicationErrorOrBuilder();
/**
* optional bytes java_exception = 4;
* @return Whether the javaException field is set.
*/
boolean hasJavaException();
/**
* optional bytes java_exception = 4;
* @return The javaException.
*/
com.google.protobuf.ByteString getJavaException();
/**
* optional .java.apphosting.ext.remote_api.RpcError rpc_error = 5;
* @return Whether the rpcError field is set.
*/
boolean hasRpcError();
/**
* optional .java.apphosting.ext.remote_api.RpcError rpc_error = 5;
* @return The rpcError.
*/
com.google.apphosting.base.protos.api.RemoteApiPb.RpcError getRpcError();
/**
* optional .java.apphosting.ext.remote_api.RpcError rpc_error = 5;
*/
com.google.apphosting.base.protos.api.RemoteApiPb.RpcErrorOrBuilder getRpcErrorOrBuilder();
}
/**
* Protobuf type {@code java.apphosting.ext.remote_api.Response}
*/
public static final class Response extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.ext.remote_api.Response)
ResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use Response.newBuilder() to construct.
private Response(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Response() {
response_ = com.google.protobuf.ByteString.EMPTY;
exception_ = com.google.protobuf.ByteString.EMPTY;
javaException_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Response();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_Response_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.api.RemoteApiPb.Response.class, com.google.apphosting.base.protos.api.RemoteApiPb.Response.Builder.class);
}
private int bitField0_;
public static final int RESPONSE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString response_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Exactly one of the fields 'response', 'exception', 'java_exception' and
* 'rpc_error' should be set. If 'exception' or 'java_exception' is set,
* 'application_error' will also be set if the exception was generated due to
* RPC::ApplicationError being set.
* The remote access feature described above (1) and the devappserver (2)
* use 'exception' and 'java_exception' to specify error responses.
* 'exception' is a pickled python exception object. 'java_exception' is a
* serialized java exception object. Remote access (1) also uses
* 'application_error' for datastore errors.
* For VM runtimes (3), transport-layer errors are passed in 'rpc_error' and
* application-layer errors in 'application_error'. The 'exception' and
* 'java_exception' fields are unused in this context.
* For cross-language maintainability, it is probably best to avoid
* using 'exception' and 'java_exception' in new code.
*
*
* optional bytes response = 1;
* @return Whether the response field is set.
*/
@java.lang.Override
public boolean hasResponse() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Exactly one of the fields 'response', 'exception', 'java_exception' and
* 'rpc_error' should be set. If 'exception' or 'java_exception' is set,
* 'application_error' will also be set if the exception was generated due to
* RPC::ApplicationError being set.
* The remote access feature described above (1) and the devappserver (2)
* use 'exception' and 'java_exception' to specify error responses.
* 'exception' is a pickled python exception object. 'java_exception' is a
* serialized java exception object. Remote access (1) also uses
* 'application_error' for datastore errors.
* For VM runtimes (3), transport-layer errors are passed in 'rpc_error' and
* application-layer errors in 'application_error'. The 'exception' and
* 'java_exception' fields are unused in this context.
* For cross-language maintainability, it is probably best to avoid
* using 'exception' and 'java_exception' in new code.
*
*
* optional bytes response = 1;
* @return The response.
*/
@java.lang.Override
public com.google.protobuf.ByteString getResponse() {
return response_;
}
public static final int EXCEPTION_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString exception_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes exception = 2;
* @return Whether the exception field is set.
*/
@java.lang.Override
public boolean hasException() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bytes exception = 2;
* @return The exception.
*/
@java.lang.Override
public com.google.protobuf.ByteString getException() {
return exception_;
}
public static final int APPLICATION_ERROR_FIELD_NUMBER = 3;
private com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError applicationError_;
/**
* optional .java.apphosting.ext.remote_api.ApplicationError application_error = 3;
* @return Whether the applicationError field is set.
*/
@java.lang.Override
public boolean hasApplicationError() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .java.apphosting.ext.remote_api.ApplicationError application_error = 3;
* @return The applicationError.
*/
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError getApplicationError() {
return applicationError_ == null ? com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError.getDefaultInstance() : applicationError_;
}
/**
* optional .java.apphosting.ext.remote_api.ApplicationError application_error = 3;
*/
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationErrorOrBuilder getApplicationErrorOrBuilder() {
return applicationError_ == null ? com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError.getDefaultInstance() : applicationError_;
}
public static final int JAVA_EXCEPTION_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString javaException_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes java_exception = 4;
* @return Whether the javaException field is set.
*/
@java.lang.Override
public boolean hasJavaException() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bytes java_exception = 4;
* @return The javaException.
*/
@java.lang.Override
public com.google.protobuf.ByteString getJavaException() {
return javaException_;
}
public static final int RPC_ERROR_FIELD_NUMBER = 5;
private com.google.apphosting.base.protos.api.RemoteApiPb.RpcError rpcError_;
/**
* optional .java.apphosting.ext.remote_api.RpcError rpc_error = 5;
* @return Whether the rpcError field is set.
*/
@java.lang.Override
public boolean hasRpcError() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .java.apphosting.ext.remote_api.RpcError rpc_error = 5;
* @return The rpcError.
*/
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.RpcError getRpcError() {
return rpcError_ == null ? com.google.apphosting.base.protos.api.RemoteApiPb.RpcError.getDefaultInstance() : rpcError_;
}
/**
* optional .java.apphosting.ext.remote_api.RpcError rpc_error = 5;
*/
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.RpcErrorOrBuilder getRpcErrorOrBuilder() {
return rpcError_ == null ? com.google.apphosting.base.protos.api.RemoteApiPb.RpcError.getDefaultInstance() : rpcError_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasApplicationError()) {
if (!getApplicationError().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasRpcError()) {
if (!getRpcError().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBytes(1, response_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBytes(2, exception_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getApplicationError());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBytes(4, javaException_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getRpcError());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, response_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, exception_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getApplicationError());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, javaException_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getRpcError());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.apphosting.base.protos.api.RemoteApiPb.Response)) {
return super.equals(obj);
}
com.google.apphosting.base.protos.api.RemoteApiPb.Response other = (com.google.apphosting.base.protos.api.RemoteApiPb.Response) obj;
if (hasResponse() != other.hasResponse()) return false;
if (hasResponse()) {
if (!getResponse()
.equals(other.getResponse())) return false;
}
if (hasException() != other.hasException()) return false;
if (hasException()) {
if (!getException()
.equals(other.getException())) return false;
}
if (hasApplicationError() != other.hasApplicationError()) return false;
if (hasApplicationError()) {
if (!getApplicationError()
.equals(other.getApplicationError())) return false;
}
if (hasJavaException() != other.hasJavaException()) return false;
if (hasJavaException()) {
if (!getJavaException()
.equals(other.getJavaException())) return false;
}
if (hasRpcError() != other.hasRpcError()) return false;
if (hasRpcError()) {
if (!getRpcError()
.equals(other.getRpcError())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasResponse()) {
hash = (37 * hash) + RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getResponse().hashCode();
}
if (hasException()) {
hash = (37 * hash) + EXCEPTION_FIELD_NUMBER;
hash = (53 * hash) + getException().hashCode();
}
if (hasApplicationError()) {
hash = (37 * hash) + APPLICATION_ERROR_FIELD_NUMBER;
hash = (53 * hash) + getApplicationError().hashCode();
}
if (hasJavaException()) {
hash = (37 * hash) + JAVA_EXCEPTION_FIELD_NUMBER;
hash = (53 * hash) + getJavaException().hashCode();
}
if (hasRpcError()) {
hash = (37 * hash) + RPC_ERROR_FIELD_NUMBER;
hash = (53 * hash) + getRpcError().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Response parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Response parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Response parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Response parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Response parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Response parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Response parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Response parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Response parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Response parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.apphosting.base.protos.api.RemoteApiPb.Response prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.ext.remote_api.Response}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.ext.remote_api.Response)
com.google.apphosting.base.protos.api.RemoteApiPb.ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_Response_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.api.RemoteApiPb.Response.class, com.google.apphosting.base.protos.api.RemoteApiPb.Response.Builder.class);
}
// Construct using com.google.apphosting.base.protos.api.RemoteApiPb.Response.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getApplicationErrorFieldBuilder();
getRpcErrorFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
response_ = com.google.protobuf.ByteString.EMPTY;
exception_ = com.google.protobuf.ByteString.EMPTY;
applicationError_ = null;
if (applicationErrorBuilder_ != null) {
applicationErrorBuilder_.dispose();
applicationErrorBuilder_ = null;
}
javaException_ = com.google.protobuf.ByteString.EMPTY;
rpcError_ = null;
if (rpcErrorBuilder_ != null) {
rpcErrorBuilder_.dispose();
rpcErrorBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_Response_descriptor;
}
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.Response getDefaultInstanceForType() {
return com.google.apphosting.base.protos.api.RemoteApiPb.Response.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.Response build() {
com.google.apphosting.base.protos.api.RemoteApiPb.Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.Response buildPartial() {
com.google.apphosting.base.protos.api.RemoteApiPb.Response result = new com.google.apphosting.base.protos.api.RemoteApiPb.Response(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.base.protos.api.RemoteApiPb.Response result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.response_ = response_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.exception_ = exception_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.applicationError_ = applicationErrorBuilder_ == null
? applicationError_
: applicationErrorBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.javaException_ = javaException_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.rpcError_ = rpcErrorBuilder_ == null
? rpcError_
: rpcErrorBuilder_.build();
to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apphosting.base.protos.api.RemoteApiPb.Response) {
return mergeFrom((com.google.apphosting.base.protos.api.RemoteApiPb.Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.base.protos.api.RemoteApiPb.Response other) {
if (other == com.google.apphosting.base.protos.api.RemoteApiPb.Response.getDefaultInstance()) return this;
if (other.hasResponse()) {
setResponse(other.getResponse());
}
if (other.hasException()) {
setException(other.getException());
}
if (other.hasApplicationError()) {
mergeApplicationError(other.getApplicationError());
}
if (other.hasJavaException()) {
setJavaException(other.getJavaException());
}
if (other.hasRpcError()) {
mergeRpcError(other.getRpcError());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasApplicationError()) {
if (!getApplicationError().isInitialized()) {
return false;
}
}
if (hasRpcError()) {
if (!getRpcError().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
response_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
exception_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getApplicationErrorFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
javaException_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getRpcErrorFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString response_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Exactly one of the fields 'response', 'exception', 'java_exception' and
* 'rpc_error' should be set. If 'exception' or 'java_exception' is set,
* 'application_error' will also be set if the exception was generated due to
* RPC::ApplicationError being set.
* The remote access feature described above (1) and the devappserver (2)
* use 'exception' and 'java_exception' to specify error responses.
* 'exception' is a pickled python exception object. 'java_exception' is a
* serialized java exception object. Remote access (1) also uses
* 'application_error' for datastore errors.
* For VM runtimes (3), transport-layer errors are passed in 'rpc_error' and
* application-layer errors in 'application_error'. The 'exception' and
* 'java_exception' fields are unused in this context.
* For cross-language maintainability, it is probably best to avoid
* using 'exception' and 'java_exception' in new code.
*
*
* optional bytes response = 1;
* @return Whether the response field is set.
*/
@java.lang.Override
public boolean hasResponse() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Exactly one of the fields 'response', 'exception', 'java_exception' and
* 'rpc_error' should be set. If 'exception' or 'java_exception' is set,
* 'application_error' will also be set if the exception was generated due to
* RPC::ApplicationError being set.
* The remote access feature described above (1) and the devappserver (2)
* use 'exception' and 'java_exception' to specify error responses.
* 'exception' is a pickled python exception object. 'java_exception' is a
* serialized java exception object. Remote access (1) also uses
* 'application_error' for datastore errors.
* For VM runtimes (3), transport-layer errors are passed in 'rpc_error' and
* application-layer errors in 'application_error'. The 'exception' and
* 'java_exception' fields are unused in this context.
* For cross-language maintainability, it is probably best to avoid
* using 'exception' and 'java_exception' in new code.
*
*
* optional bytes response = 1;
* @return The response.
*/
@java.lang.Override
public com.google.protobuf.ByteString getResponse() {
return response_;
}
/**
*
* Exactly one of the fields 'response', 'exception', 'java_exception' and
* 'rpc_error' should be set. If 'exception' or 'java_exception' is set,
* 'application_error' will also be set if the exception was generated due to
* RPC::ApplicationError being set.
* The remote access feature described above (1) and the devappserver (2)
* use 'exception' and 'java_exception' to specify error responses.
* 'exception' is a pickled python exception object. 'java_exception' is a
* serialized java exception object. Remote access (1) also uses
* 'application_error' for datastore errors.
* For VM runtimes (3), transport-layer errors are passed in 'rpc_error' and
* application-layer errors in 'application_error'. The 'exception' and
* 'java_exception' fields are unused in this context.
* For cross-language maintainability, it is probably best to avoid
* using 'exception' and 'java_exception' in new code.
*
*
* optional bytes response = 1;
* @param value The response to set.
* @return This builder for chaining.
*/
public Builder setResponse(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
response_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Exactly one of the fields 'response', 'exception', 'java_exception' and
* 'rpc_error' should be set. If 'exception' or 'java_exception' is set,
* 'application_error' will also be set if the exception was generated due to
* RPC::ApplicationError being set.
* The remote access feature described above (1) and the devappserver (2)
* use 'exception' and 'java_exception' to specify error responses.
* 'exception' is a pickled python exception object. 'java_exception' is a
* serialized java exception object. Remote access (1) also uses
* 'application_error' for datastore errors.
* For VM runtimes (3), transport-layer errors are passed in 'rpc_error' and
* application-layer errors in 'application_error'. The 'exception' and
* 'java_exception' fields are unused in this context.
* For cross-language maintainability, it is probably best to avoid
* using 'exception' and 'java_exception' in new code.
*
*
* optional bytes response = 1;
* @return This builder for chaining.
*/
public Builder clearResponse() {
bitField0_ = (bitField0_ & ~0x00000001);
response_ = getDefaultInstance().getResponse();
onChanged();
return this;
}
private com.google.protobuf.ByteString exception_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes exception = 2;
* @return Whether the exception field is set.
*/
@java.lang.Override
public boolean hasException() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bytes exception = 2;
* @return The exception.
*/
@java.lang.Override
public com.google.protobuf.ByteString getException() {
return exception_;
}
/**
* optional bytes exception = 2;
* @param value The exception to set.
* @return This builder for chaining.
*/
public Builder setException(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
exception_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional bytes exception = 2;
* @return This builder for chaining.
*/
public Builder clearException() {
bitField0_ = (bitField0_ & ~0x00000002);
exception_ = getDefaultInstance().getException();
onChanged();
return this;
}
private com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError applicationError_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError, com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError.Builder, com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationErrorOrBuilder> applicationErrorBuilder_;
/**
* optional .java.apphosting.ext.remote_api.ApplicationError application_error = 3;
* @return Whether the applicationError field is set.
*/
public boolean hasApplicationError() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .java.apphosting.ext.remote_api.ApplicationError application_error = 3;
* @return The applicationError.
*/
public com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError getApplicationError() {
if (applicationErrorBuilder_ == null) {
return applicationError_ == null ? com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError.getDefaultInstance() : applicationError_;
} else {
return applicationErrorBuilder_.getMessage();
}
}
/**
* optional .java.apphosting.ext.remote_api.ApplicationError application_error = 3;
*/
public Builder setApplicationError(com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError value) {
if (applicationErrorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applicationError_ = value;
} else {
applicationErrorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional .java.apphosting.ext.remote_api.ApplicationError application_error = 3;
*/
public Builder setApplicationError(
com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError.Builder builderForValue) {
if (applicationErrorBuilder_ == null) {
applicationError_ = builderForValue.build();
} else {
applicationErrorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional .java.apphosting.ext.remote_api.ApplicationError application_error = 3;
*/
public Builder mergeApplicationError(com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError value) {
if (applicationErrorBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
applicationError_ != null &&
applicationError_ != com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError.getDefaultInstance()) {
getApplicationErrorBuilder().mergeFrom(value);
} else {
applicationError_ = value;
}
} else {
applicationErrorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional .java.apphosting.ext.remote_api.ApplicationError application_error = 3;
*/
public Builder clearApplicationError() {
bitField0_ = (bitField0_ & ~0x00000004);
applicationError_ = null;
if (applicationErrorBuilder_ != null) {
applicationErrorBuilder_.dispose();
applicationErrorBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .java.apphosting.ext.remote_api.ApplicationError application_error = 3;
*/
public com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError.Builder getApplicationErrorBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getApplicationErrorFieldBuilder().getBuilder();
}
/**
* optional .java.apphosting.ext.remote_api.ApplicationError application_error = 3;
*/
public com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationErrorOrBuilder getApplicationErrorOrBuilder() {
if (applicationErrorBuilder_ != null) {
return applicationErrorBuilder_.getMessageOrBuilder();
} else {
return applicationError_ == null ?
com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError.getDefaultInstance() : applicationError_;
}
}
/**
* optional .java.apphosting.ext.remote_api.ApplicationError application_error = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError, com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError.Builder, com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationErrorOrBuilder>
getApplicationErrorFieldBuilder() {
if (applicationErrorBuilder_ == null) {
applicationErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError, com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationError.Builder, com.google.apphosting.base.protos.api.RemoteApiPb.ApplicationErrorOrBuilder>(
getApplicationError(),
getParentForChildren(),
isClean());
applicationError_ = null;
}
return applicationErrorBuilder_;
}
private com.google.protobuf.ByteString javaException_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes java_exception = 4;
* @return Whether the javaException field is set.
*/
@java.lang.Override
public boolean hasJavaException() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bytes java_exception = 4;
* @return The javaException.
*/
@java.lang.Override
public com.google.protobuf.ByteString getJavaException() {
return javaException_;
}
/**
* optional bytes java_exception = 4;
* @param value The javaException to set.
* @return This builder for chaining.
*/
public Builder setJavaException(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
javaException_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional bytes java_exception = 4;
* @return This builder for chaining.
*/
public Builder clearJavaException() {
bitField0_ = (bitField0_ & ~0x00000008);
javaException_ = getDefaultInstance().getJavaException();
onChanged();
return this;
}
private com.google.apphosting.base.protos.api.RemoteApiPb.RpcError rpcError_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.api.RemoteApiPb.RpcError, com.google.apphosting.base.protos.api.RemoteApiPb.RpcError.Builder, com.google.apphosting.base.protos.api.RemoteApiPb.RpcErrorOrBuilder> rpcErrorBuilder_;
/**
* optional .java.apphosting.ext.remote_api.RpcError rpc_error = 5;
* @return Whether the rpcError field is set.
*/
public boolean hasRpcError() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .java.apphosting.ext.remote_api.RpcError rpc_error = 5;
* @return The rpcError.
*/
public com.google.apphosting.base.protos.api.RemoteApiPb.RpcError getRpcError() {
if (rpcErrorBuilder_ == null) {
return rpcError_ == null ? com.google.apphosting.base.protos.api.RemoteApiPb.RpcError.getDefaultInstance() : rpcError_;
} else {
return rpcErrorBuilder_.getMessage();
}
}
/**
* optional .java.apphosting.ext.remote_api.RpcError rpc_error = 5;
*/
public Builder setRpcError(com.google.apphosting.base.protos.api.RemoteApiPb.RpcError value) {
if (rpcErrorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rpcError_ = value;
} else {
rpcErrorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional .java.apphosting.ext.remote_api.RpcError rpc_error = 5;
*/
public Builder setRpcError(
com.google.apphosting.base.protos.api.RemoteApiPb.RpcError.Builder builderForValue) {
if (rpcErrorBuilder_ == null) {
rpcError_ = builderForValue.build();
} else {
rpcErrorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional .java.apphosting.ext.remote_api.RpcError rpc_error = 5;
*/
public Builder mergeRpcError(com.google.apphosting.base.protos.api.RemoteApiPb.RpcError value) {
if (rpcErrorBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
rpcError_ != null &&
rpcError_ != com.google.apphosting.base.protos.api.RemoteApiPb.RpcError.getDefaultInstance()) {
getRpcErrorBuilder().mergeFrom(value);
} else {
rpcError_ = value;
}
} else {
rpcErrorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional .java.apphosting.ext.remote_api.RpcError rpc_error = 5;
*/
public Builder clearRpcError() {
bitField0_ = (bitField0_ & ~0x00000010);
rpcError_ = null;
if (rpcErrorBuilder_ != null) {
rpcErrorBuilder_.dispose();
rpcErrorBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .java.apphosting.ext.remote_api.RpcError rpc_error = 5;
*/
public com.google.apphosting.base.protos.api.RemoteApiPb.RpcError.Builder getRpcErrorBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getRpcErrorFieldBuilder().getBuilder();
}
/**
* optional .java.apphosting.ext.remote_api.RpcError rpc_error = 5;
*/
public com.google.apphosting.base.protos.api.RemoteApiPb.RpcErrorOrBuilder getRpcErrorOrBuilder() {
if (rpcErrorBuilder_ != null) {
return rpcErrorBuilder_.getMessageOrBuilder();
} else {
return rpcError_ == null ?
com.google.apphosting.base.protos.api.RemoteApiPb.RpcError.getDefaultInstance() : rpcError_;
}
}
/**
* optional .java.apphosting.ext.remote_api.RpcError rpc_error = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.api.RemoteApiPb.RpcError, com.google.apphosting.base.protos.api.RemoteApiPb.RpcError.Builder, com.google.apphosting.base.protos.api.RemoteApiPb.RpcErrorOrBuilder>
getRpcErrorFieldBuilder() {
if (rpcErrorBuilder_ == null) {
rpcErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.api.RemoteApiPb.RpcError, com.google.apphosting.base.protos.api.RemoteApiPb.RpcError.Builder, com.google.apphosting.base.protos.api.RemoteApiPb.RpcErrorOrBuilder>(
getRpcError(),
getParentForChildren(),
isClean());
rpcError_ = null;
}
return rpcErrorBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.ext.remote_api.Response)
}
// @@protoc_insertion_point(class_scope:java.apphosting.ext.remote_api.Response)
private static final com.google.apphosting.base.protos.api.RemoteApiPb.Response DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.base.protos.api.RemoteApiPb.Response();
}
public static com.google.apphosting.base.protos.api.RemoteApiPb.Response getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Response parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apphosting.base.protos.api.RemoteApiPb.Response getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_ext_remote_api_Request_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_ext_remote_api_Request_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_ext_remote_api_ApplicationError_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_ext_remote_api_ApplicationError_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_ext_remote_api_RpcError_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_ext_remote_api_RpcError_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_ext_remote_api_Response_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_ext_remote_api_Response_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\020remote_api.proto\022\036java.apphosting.ext." +
"remote_api\"k\n\007Request\022\024\n\014service_name\030\002 " +
"\002(\t\022\016\n\006method\030\003 \002(\t\022\017\n\007request\030\004 \002(\014\022\022\n\n" +
"request_id\030\005 \001(\t\022\025\n\rtrace_context\030\006 \001(\014\"" +
"0\n\020ApplicationError\022\014\n\004code\030\001 \002(\005\022\016\n\006det" +
"ail\030\002 \002(\t\"\267\002\n\010RpcError\022\014\n\004code\030\001 \002(\005\022\016\n\006" +
"detail\030\002 \001(\t\"\214\002\n\tErrorCode\022\013\n\007UNKNOWN\020\000\022" +
"\022\n\016CALL_NOT_FOUND\020\001\022\017\n\013PARSE_ERROR\020\002\022\026\n\022" +
"SECURITY_VIOLATION\020\003\022\016\n\nOVER_QUOTA\020\004\022\025\n\021" +
"REQUEST_TOO_LARGE\020\005\022\027\n\023CAPABILITY_DISABL" +
"ED\020\006\022\024\n\020FEATURE_DISABLED\020\007\022\017\n\013BAD_REQUES" +
"T\020\010\022\026\n\022RESPONSE_TOO_LARGE\020\t\022\r\n\tCANCELLED" +
"\020\n\022\020\n\014REPLAY_ERROR\020\013\022\025\n\021DEADLINE_EXCEEDE" +
"D\020\014\"\321\001\n\010Response\022\020\n\010response\030\001 \001(\014\022\021\n\tex" +
"ception\030\002 \001(\014\022K\n\021application_error\030\003 \001(\013" +
"20.java.apphosting.ext.remote_api.Applic" +
"ationError\022\026\n\016java_exception\030\004 \001(\014\022;\n\trp" +
"c_error\030\005 \001(\0132(.java.apphosting.ext.remo" +
"te_api.RpcErrorB@\n%com.google.apphosting" +
".base.protos.apiB\013RemoteApiPbZ\nremote_ap" +
"i"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_java_apphosting_ext_remote_api_Request_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_java_apphosting_ext_remote_api_Request_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_ext_remote_api_Request_descriptor,
new java.lang.String[] { "ServiceName", "Method", "Request", "RequestId", "TraceContext", });
internal_static_java_apphosting_ext_remote_api_ApplicationError_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_java_apphosting_ext_remote_api_ApplicationError_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_ext_remote_api_ApplicationError_descriptor,
new java.lang.String[] { "Code", "Detail", });
internal_static_java_apphosting_ext_remote_api_RpcError_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_java_apphosting_ext_remote_api_RpcError_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_ext_remote_api_RpcError_descriptor,
new java.lang.String[] { "Code", "Detail", });
internal_static_java_apphosting_ext_remote_api_Response_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_java_apphosting_ext_remote_api_Response_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_ext_remote_api_Response_descriptor,
new java.lang.String[] { "Response", "Exception", "ApplicationError", "JavaException", "RpcError", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy