Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* 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.
*
* 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.
*