All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.apphosting.base.protos.api.RemoteApiPb Maven / Gradle / Ivy

The newest version!
// 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; } } public interface TransactionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.ext.remote_api.TransactionRequest) com.google.protobuf.MessageOrBuilder { /** * repeated group Precondition = 1 { ... } */ java.util.List getPreconditionList(); /** * repeated group Precondition = 1 { ... } */ com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition getPrecondition(int index); /** * repeated group Precondition = 1 { ... } */ int getPreconditionCount(); /** * repeated group Precondition = 1 { ... } */ java.util.List getPreconditionOrBuilderList(); /** * repeated group Precondition = 1 { ... } */ com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.PreconditionOrBuilder getPreconditionOrBuilder( int index); /** * optional .apphosting_datastore_v3.PutRequest puts = 4; * @return Whether the puts field is set. */ boolean hasPuts(); /** * optional .apphosting_datastore_v3.PutRequest puts = 4; * @return The puts. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest getPuts(); /** * optional .apphosting_datastore_v3.PutRequest puts = 4; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequestOrBuilder getPutsOrBuilder(); /** * optional .apphosting_datastore_v3.DeleteRequest deletes = 5; * @return Whether the deletes field is set. */ boolean hasDeletes(); /** * optional .apphosting_datastore_v3.DeleteRequest deletes = 5; * @return The deletes. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest getDeletes(); /** * optional .apphosting_datastore_v3.DeleteRequest deletes = 5; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequestOrBuilder getDeletesOrBuilder(); /** * optional bool allow_multiple_eg = 6; * @return Whether the allowMultipleEg field is set. */ boolean hasAllowMultipleEg(); /** * optional bool allow_multiple_eg = 6; * @return The allowMultipleEg. */ boolean getAllowMultipleEg(); } /** * Protobuf type {@code java.apphosting.ext.remote_api.TransactionRequest} */ public static final class TransactionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.ext.remote_api.TransactionRequest) TransactionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use TransactionRequest.newBuilder() to construct. private TransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransactionRequest() { precondition_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionRequest(); } @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_TransactionRequest_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_TransactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.class, com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Builder.class); } public interface PreconditionOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.ext.remote_api.TransactionRequest.Precondition) com.google.protobuf.MessageOrBuilder { /** * required .storage_onestore_v3.Reference key = 2; * @return Whether the key field is set. */ boolean hasKey(); /** * required .storage_onestore_v3.Reference key = 2; * @return The key. */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey(); /** * required .storage_onestore_v3.Reference key = 2; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder(); /** *
       * No hash means the entity should not exist.
       * 
* * optional string hash = 3; * @return Whether the hash field is set. */ boolean hasHash(); /** *
       * No hash means the entity should not exist.
       * 
* * optional string hash = 3; * @return The hash. */ java.lang.String getHash(); /** *
       * No hash means the entity should not exist.
       * 
* * optional string hash = 3; * @return The bytes for hash. */ com.google.protobuf.ByteString getHashBytes(); } /** *
     * A list of entity keys that must exist and match the given hashes for the
     * transaction to succeed.
     * 
* * Protobuf type {@code java.apphosting.ext.remote_api.TransactionRequest.Precondition} */ public static final class Precondition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.ext.remote_api.TransactionRequest.Precondition) PreconditionOrBuilder { private static final long serialVersionUID = 0L; // Use Precondition.newBuilder() to construct. private Precondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Precondition() { hash_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Precondition(); } @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_TransactionRequest_Precondition_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_TransactionRequest_Precondition_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition.class, com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 2; private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference key_; /** * required .storage_onestore_v3.Reference key = 2; * @return Whether the key field is set. */ @java.lang.Override public boolean hasKey() { return ((bitField0_ & 0x00000001) != 0); } /** * required .storage_onestore_v3.Reference key = 2; * @return The key. */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey() { return key_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : key_; } /** * required .storage_onestore_v3.Reference key = 2; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder() { return key_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : key_; } public static final int HASH_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object hash_ = ""; /** *
       * No hash means the entity should not exist.
       * 
* * optional string hash = 3; * @return Whether the hash field is set. */ @java.lang.Override public boolean hasHash() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * No hash means the entity should not exist.
       * 
* * optional string hash = 3; * @return The hash. */ @java.lang.Override public java.lang.String getHash() { java.lang.Object ref = hash_; 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()) { hash_ = s; } return s; } } /** *
       * No hash means the entity should not exist.
       * 
* * optional string hash = 3; * @return The bytes for hash. */ @java.lang.Override public com.google.protobuf.ByteString getHashBytes() { java.lang.Object ref = hash_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hash_ = 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 (!hasKey()) { memoizedIsInitialized = 0; return false; } if (!getKey().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.writeMessage(2, getKey()); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, hash_); } 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 .computeMessageSize(2, getKey()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, hash_); } 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.TransactionRequest.Precondition)) { return super.equals(obj); } com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition other = (com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition) obj; if (hasKey() != other.hasKey()) return false; if (hasKey()) { if (!getKey() .equals(other.getKey())) return false; } if (hasHash() != other.hasHash()) return false; if (hasHash()) { if (!getHash() .equals(other.getHash())) 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 (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasHash()) { hash = (37 * hash) + HASH_FIELD_NUMBER; hash = (53 * hash) + getHash().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition 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.TransactionRequest.Precondition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition 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.TransactionRequest.Precondition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition 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.TransactionRequest.Precondition 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.TransactionRequest.Precondition 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.TransactionRequest.Precondition 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.TransactionRequest.Precondition 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.TransactionRequest.Precondition 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.TransactionRequest.Precondition 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.TransactionRequest.Precondition 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; } /** *
       * A list of entity keys that must exist and match the given hashes for the
       * transaction to succeed.
       * 
* * Protobuf type {@code java.apphosting.ext.remote_api.TransactionRequest.Precondition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.ext.remote_api.TransactionRequest.Precondition) com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.PreconditionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_TransactionRequest_Precondition_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_TransactionRequest_Precondition_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition.class, com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition.Builder.class); } // Construct using com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getKeyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } hash_ = ""; 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_TransactionRequest_Precondition_descriptor; } @java.lang.Override public com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition getDefaultInstanceForType() { return com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition build() { com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition buildPartial() { com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition result = new com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = keyBuilder_ == null ? key_ : keyBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.hash_ = hash_; 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.TransactionRequest.Precondition) { return mergeFrom((com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition other) { if (other == com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition.getDefaultInstance()) return this; if (other.hasKey()) { mergeKey(other.getKey()); } if (other.hasHash()) { hash_ = other.hash_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasKey()) { return false; } if (!getKey().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 18: { input.readMessage( getKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 18 case 26: { hash_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 26 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.storage.onestore.v3.proto2api.OnestoreEntity.Reference key_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> keyBuilder_; /** * required .storage_onestore_v3.Reference key = 2; * @return Whether the key field is set. */ public boolean hasKey() { return ((bitField0_ & 0x00000001) != 0); } /** * required .storage_onestore_v3.Reference key = 2; * @return The key. */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getKey() { if (keyBuilder_ == null) { return key_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** * required .storage_onestore_v3.Reference key = 2; */ public Builder setKey(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; } else { keyBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required .storage_onestore_v3.Reference key = 2; */ public Builder setKey( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); } else { keyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required .storage_onestore_v3.Reference key = 2; */ public Builder mergeKey(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (keyBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && key_ != null && key_ != com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()) { getKeyBuilder().mergeFrom(value); } else { key_ = value; } } else { keyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required .storage_onestore_v3.Reference key = 2; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } onChanged(); return this; } /** * required .storage_onestore_v3.Reference key = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder getKeyBuilder() { bitField0_ |= 0x00000001; onChanged(); return getKeyFieldBuilder().getBuilder(); } /** * required .storage_onestore_v3.Reference key = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : key_; } } /** * required .storage_onestore_v3.Reference key = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder>( getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private java.lang.Object hash_ = ""; /** *
         * No hash means the entity should not exist.
         * 
* * optional string hash = 3; * @return Whether the hash field is set. */ public boolean hasHash() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * No hash means the entity should not exist.
         * 
* * optional string hash = 3; * @return The hash. */ public java.lang.String getHash() { java.lang.Object ref = hash_; 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()) { hash_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * No hash means the entity should not exist.
         * 
* * optional string hash = 3; * @return The bytes for hash. */ public com.google.protobuf.ByteString getHashBytes() { java.lang.Object ref = hash_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * No hash means the entity should not exist.
         * 
* * optional string hash = 3; * @param value The hash to set. * @return This builder for chaining. */ public Builder setHash( java.lang.String value) { if (value == null) { throw new NullPointerException(); } hash_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * No hash means the entity should not exist.
         * 
* * optional string hash = 3; * @return This builder for chaining. */ public Builder clearHash() { hash_ = getDefaultInstance().getHash(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
         * No hash means the entity should not exist.
         * 
* * optional string hash = 3; * @param value The bytes for hash to set. * @return This builder for chaining. */ public Builder setHashBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } hash_ = 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.TransactionRequest.Precondition) } // @@protoc_insertion_point(class_scope:java.apphosting.ext.remote_api.TransactionRequest.Precondition) private static final com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition(); } public static com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Precondition 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.TransactionRequest.Precondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int PRECONDITION_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List precondition_; /** * repeated group Precondition = 1 { ... } */ @java.lang.Override public java.util.List getPreconditionList() { return precondition_; } /** * repeated group Precondition = 1 { ... } */ @java.lang.Override public java.util.List getPreconditionOrBuilderList() { return precondition_; } /** * repeated group Precondition = 1 { ... } */ @java.lang.Override public int getPreconditionCount() { return precondition_.size(); } /** * repeated group Precondition = 1 { ... } */ @java.lang.Override public com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition getPrecondition(int index) { return precondition_.get(index); } /** * repeated group Precondition = 1 { ... } */ @java.lang.Override public com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.PreconditionOrBuilder getPreconditionOrBuilder( int index) { return precondition_.get(index); } public static final int PUTS_FIELD_NUMBER = 4; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest puts_; /** * optional .apphosting_datastore_v3.PutRequest puts = 4; * @return Whether the puts field is set. */ @java.lang.Override public boolean hasPuts() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .apphosting_datastore_v3.PutRequest puts = 4; * @return The puts. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest getPuts() { return puts_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.getDefaultInstance() : puts_; } /** * optional .apphosting_datastore_v3.PutRequest puts = 4; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequestOrBuilder getPutsOrBuilder() { return puts_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.getDefaultInstance() : puts_; } public static final int DELETES_FIELD_NUMBER = 5; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest deletes_; /** * optional .apphosting_datastore_v3.DeleteRequest deletes = 5; * @return Whether the deletes field is set. */ @java.lang.Override public boolean hasDeletes() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .apphosting_datastore_v3.DeleteRequest deletes = 5; * @return The deletes. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest getDeletes() { return deletes_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest.getDefaultInstance() : deletes_; } /** * optional .apphosting_datastore_v3.DeleteRequest deletes = 5; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequestOrBuilder getDeletesOrBuilder() { return deletes_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest.getDefaultInstance() : deletes_; } public static final int ALLOW_MULTIPLE_EG_FIELD_NUMBER = 6; private boolean allowMultipleEg_ = false; /** * optional bool allow_multiple_eg = 6; * @return Whether the allowMultipleEg field is set. */ @java.lang.Override public boolean hasAllowMultipleEg() { return ((bitField0_ & 0x00000004) != 0); } /** * optional bool allow_multiple_eg = 6; * @return The allowMultipleEg. */ @java.lang.Override public boolean getAllowMultipleEg() { return allowMultipleEg_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getPreconditionCount(); i++) { if (!getPrecondition(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasPuts()) { if (!getPuts().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasDeletes()) { if (!getDeletes().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < precondition_.size(); i++) { output.writeGroup(1, precondition_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getPuts()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getDeletes()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(6, allowMultipleEg_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < precondition_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(1, precondition_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPuts()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getDeletes()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, allowMultipleEg_); } 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.TransactionRequest)) { return super.equals(obj); } com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest other = (com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest) obj; if (!getPreconditionList() .equals(other.getPreconditionList())) return false; if (hasPuts() != other.hasPuts()) return false; if (hasPuts()) { if (!getPuts() .equals(other.getPuts())) return false; } if (hasDeletes() != other.hasDeletes()) return false; if (hasDeletes()) { if (!getDeletes() .equals(other.getDeletes())) return false; } if (hasAllowMultipleEg() != other.hasAllowMultipleEg()) return false; if (hasAllowMultipleEg()) { if (getAllowMultipleEg() != other.getAllowMultipleEg()) 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 (getPreconditionCount() > 0) { hash = (37 * hash) + PRECONDITION_FIELD_NUMBER; hash = (53 * hash) + getPreconditionList().hashCode(); } if (hasPuts()) { hash = (37 * hash) + PUTS_FIELD_NUMBER; hash = (53 * hash) + getPuts().hashCode(); } if (hasDeletes()) { hash = (37 * hash) + DELETES_FIELD_NUMBER; hash = (53 * hash) + getDeletes().hashCode(); } if (hasAllowMultipleEg()) { hash = (37 * hash) + ALLOW_MULTIPLE_EG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAllowMultipleEg()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest 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.TransactionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest 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.TransactionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest 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.TransactionRequest 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.TransactionRequest 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.TransactionRequest 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.TransactionRequest 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.TransactionRequest 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.TransactionRequest 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.TransactionRequest 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.TransactionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.ext.remote_api.TransactionRequest) com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_TransactionRequest_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_TransactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.class, com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Builder.class); } // Construct using com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPreconditionFieldBuilder(); getPutsFieldBuilder(); getDeletesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (preconditionBuilder_ == null) { precondition_ = java.util.Collections.emptyList(); } else { precondition_ = null; preconditionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); puts_ = null; if (putsBuilder_ != null) { putsBuilder_.dispose(); putsBuilder_ = null; } deletes_ = null; if (deletesBuilder_ != null) { deletesBuilder_.dispose(); deletesBuilder_ = null; } allowMultipleEg_ = false; 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_TransactionRequest_descriptor; } @java.lang.Override public com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest getDefaultInstanceForType() { return com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest build() { com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest buildPartial() { com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest result = new com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest result) { if (preconditionBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { precondition_ = java.util.Collections.unmodifiableList(precondition_); bitField0_ = (bitField0_ & ~0x00000001); } result.precondition_ = precondition_; } else { result.precondition_ = preconditionBuilder_.build(); } } private void buildPartial0(com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.puts_ = putsBuilder_ == null ? puts_ : putsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.deletes_ = deletesBuilder_ == null ? deletes_ : deletesBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.allowMultipleEg_ = allowMultipleEg_; to_bitField0_ |= 0x00000004; } 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.TransactionRequest) { return mergeFrom((com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest other) { if (other == com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.getDefaultInstance()) return this; if (preconditionBuilder_ == null) { if (!other.precondition_.isEmpty()) { if (precondition_.isEmpty()) { precondition_ = other.precondition_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePreconditionIsMutable(); precondition_.addAll(other.precondition_); } onChanged(); } } else { if (!other.precondition_.isEmpty()) { if (preconditionBuilder_.isEmpty()) { preconditionBuilder_.dispose(); preconditionBuilder_ = null; precondition_ = other.precondition_; bitField0_ = (bitField0_ & ~0x00000001); preconditionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPreconditionFieldBuilder() : null; } else { preconditionBuilder_.addAllMessages(other.precondition_); } } } if (other.hasPuts()) { mergePuts(other.getPuts()); } if (other.hasDeletes()) { mergeDeletes(other.getDeletes()); } if (other.hasAllowMultipleEg()) { setAllowMultipleEg(other.getAllowMultipleEg()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getPreconditionCount(); i++) { if (!getPrecondition(i).isInitialized()) { return false; } } if (hasPuts()) { if (!getPuts().isInitialized()) { return false; } } if (hasDeletes()) { if (!getDeletes().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 11: { com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition m = input.readGroup(1, com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition.PARSER, extensionRegistry); if (preconditionBuilder_ == null) { ensurePreconditionIsMutable(); precondition_.add(m); } else { preconditionBuilder_.addMessage(m); } break; } // case 11 case 34: { input.readMessage( getPutsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 34 case 42: { input.readMessage( getDeletesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 42 case 48: { allowMultipleEg_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 48 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.util.List precondition_ = java.util.Collections.emptyList(); private void ensurePreconditionIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { precondition_ = new java.util.ArrayList(precondition_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition, com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition.Builder, com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.PreconditionOrBuilder> preconditionBuilder_; /** * repeated group Precondition = 1 { ... } */ public java.util.List getPreconditionList() { if (preconditionBuilder_ == null) { return java.util.Collections.unmodifiableList(precondition_); } else { return preconditionBuilder_.getMessageList(); } } /** * repeated group Precondition = 1 { ... } */ public int getPreconditionCount() { if (preconditionBuilder_ == null) { return precondition_.size(); } else { return preconditionBuilder_.getCount(); } } /** * repeated group Precondition = 1 { ... } */ public com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition getPrecondition(int index) { if (preconditionBuilder_ == null) { return precondition_.get(index); } else { return preconditionBuilder_.getMessage(index); } } /** * repeated group Precondition = 1 { ... } */ public Builder setPrecondition( int index, com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition value) { if (preconditionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePreconditionIsMutable(); precondition_.set(index, value); onChanged(); } else { preconditionBuilder_.setMessage(index, value); } return this; } /** * repeated group Precondition = 1 { ... } */ public Builder setPrecondition( int index, com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition.Builder builderForValue) { if (preconditionBuilder_ == null) { ensurePreconditionIsMutable(); precondition_.set(index, builderForValue.build()); onChanged(); } else { preconditionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated group Precondition = 1 { ... } */ public Builder addPrecondition(com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition value) { if (preconditionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePreconditionIsMutable(); precondition_.add(value); onChanged(); } else { preconditionBuilder_.addMessage(value); } return this; } /** * repeated group Precondition = 1 { ... } */ public Builder addPrecondition( int index, com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition value) { if (preconditionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePreconditionIsMutable(); precondition_.add(index, value); onChanged(); } else { preconditionBuilder_.addMessage(index, value); } return this; } /** * repeated group Precondition = 1 { ... } */ public Builder addPrecondition( com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition.Builder builderForValue) { if (preconditionBuilder_ == null) { ensurePreconditionIsMutable(); precondition_.add(builderForValue.build()); onChanged(); } else { preconditionBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated group Precondition = 1 { ... } */ public Builder addPrecondition( int index, com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition.Builder builderForValue) { if (preconditionBuilder_ == null) { ensurePreconditionIsMutable(); precondition_.add(index, builderForValue.build()); onChanged(); } else { preconditionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated group Precondition = 1 { ... } */ public Builder addAllPrecondition( java.lang.Iterable values) { if (preconditionBuilder_ == null) { ensurePreconditionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, precondition_); onChanged(); } else { preconditionBuilder_.addAllMessages(values); } return this; } /** * repeated group Precondition = 1 { ... } */ public Builder clearPrecondition() { if (preconditionBuilder_ == null) { precondition_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { preconditionBuilder_.clear(); } return this; } /** * repeated group Precondition = 1 { ... } */ public Builder removePrecondition(int index) { if (preconditionBuilder_ == null) { ensurePreconditionIsMutable(); precondition_.remove(index); onChanged(); } else { preconditionBuilder_.remove(index); } return this; } /** * repeated group Precondition = 1 { ... } */ public com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition.Builder getPreconditionBuilder( int index) { return getPreconditionFieldBuilder().getBuilder(index); } /** * repeated group Precondition = 1 { ... } */ public com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.PreconditionOrBuilder getPreconditionOrBuilder( int index) { if (preconditionBuilder_ == null) { return precondition_.get(index); } else { return preconditionBuilder_.getMessageOrBuilder(index); } } /** * repeated group Precondition = 1 { ... } */ public java.util.List getPreconditionOrBuilderList() { if (preconditionBuilder_ != null) { return preconditionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(precondition_); } } /** * repeated group Precondition = 1 { ... } */ public com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition.Builder addPreconditionBuilder() { return getPreconditionFieldBuilder().addBuilder( com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition.getDefaultInstance()); } /** * repeated group Precondition = 1 { ... } */ public com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition.Builder addPreconditionBuilder( int index) { return getPreconditionFieldBuilder().addBuilder( index, com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition.getDefaultInstance()); } /** * repeated group Precondition = 1 { ... } */ public java.util.List getPreconditionBuilderList() { return getPreconditionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition, com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition.Builder, com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.PreconditionOrBuilder> getPreconditionFieldBuilder() { if (preconditionBuilder_ == null) { preconditionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition, com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.Precondition.Builder, com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest.PreconditionOrBuilder>( precondition_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); precondition_ = null; } return preconditionBuilder_; } private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest puts_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequestOrBuilder> putsBuilder_; /** * optional .apphosting_datastore_v3.PutRequest puts = 4; * @return Whether the puts field is set. */ public boolean hasPuts() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .apphosting_datastore_v3.PutRequest puts = 4; * @return The puts. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest getPuts() { if (putsBuilder_ == null) { return puts_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.getDefaultInstance() : puts_; } else { return putsBuilder_.getMessage(); } } /** * optional .apphosting_datastore_v3.PutRequest puts = 4; */ public Builder setPuts(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest value) { if (putsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } puts_ = value; } else { putsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .apphosting_datastore_v3.PutRequest puts = 4; */ public Builder setPuts( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.Builder builderForValue) { if (putsBuilder_ == null) { puts_ = builderForValue.build(); } else { putsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .apphosting_datastore_v3.PutRequest puts = 4; */ public Builder mergePuts(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest value) { if (putsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && puts_ != null && puts_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.getDefaultInstance()) { getPutsBuilder().mergeFrom(value); } else { puts_ = value; } } else { putsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .apphosting_datastore_v3.PutRequest puts = 4; */ public Builder clearPuts() { bitField0_ = (bitField0_ & ~0x00000002); puts_ = null; if (putsBuilder_ != null) { putsBuilder_.dispose(); putsBuilder_ = null; } onChanged(); return this; } /** * optional .apphosting_datastore_v3.PutRequest puts = 4; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.Builder getPutsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPutsFieldBuilder().getBuilder(); } /** * optional .apphosting_datastore_v3.PutRequest puts = 4; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequestOrBuilder getPutsOrBuilder() { if (putsBuilder_ != null) { return putsBuilder_.getMessageOrBuilder(); } else { return puts_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.getDefaultInstance() : puts_; } } /** * optional .apphosting_datastore_v3.PutRequest puts = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequestOrBuilder> getPutsFieldBuilder() { if (putsBuilder_ == null) { putsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequest.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.PutRequestOrBuilder>( getPuts(), getParentForChildren(), isClean()); puts_ = null; } return putsBuilder_; } private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest deletes_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequestOrBuilder> deletesBuilder_; /** * optional .apphosting_datastore_v3.DeleteRequest deletes = 5; * @return Whether the deletes field is set. */ public boolean hasDeletes() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .apphosting_datastore_v3.DeleteRequest deletes = 5; * @return The deletes. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest getDeletes() { if (deletesBuilder_ == null) { return deletes_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest.getDefaultInstance() : deletes_; } else { return deletesBuilder_.getMessage(); } } /** * optional .apphosting_datastore_v3.DeleteRequest deletes = 5; */ public Builder setDeletes(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest value) { if (deletesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deletes_ = value; } else { deletesBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .apphosting_datastore_v3.DeleteRequest deletes = 5; */ public Builder setDeletes( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest.Builder builderForValue) { if (deletesBuilder_ == null) { deletes_ = builderForValue.build(); } else { deletesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .apphosting_datastore_v3.DeleteRequest deletes = 5; */ public Builder mergeDeletes(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest value) { if (deletesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && deletes_ != null && deletes_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest.getDefaultInstance()) { getDeletesBuilder().mergeFrom(value); } else { deletes_ = value; } } else { deletesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .apphosting_datastore_v3.DeleteRequest deletes = 5; */ public Builder clearDeletes() { bitField0_ = (bitField0_ & ~0x00000004); deletes_ = null; if (deletesBuilder_ != null) { deletesBuilder_.dispose(); deletesBuilder_ = null; } onChanged(); return this; } /** * optional .apphosting_datastore_v3.DeleteRequest deletes = 5; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest.Builder getDeletesBuilder() { bitField0_ |= 0x00000004; onChanged(); return getDeletesFieldBuilder().getBuilder(); } /** * optional .apphosting_datastore_v3.DeleteRequest deletes = 5; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequestOrBuilder getDeletesOrBuilder() { if (deletesBuilder_ != null) { return deletesBuilder_.getMessageOrBuilder(); } else { return deletes_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest.getDefaultInstance() : deletes_; } } /** * optional .apphosting_datastore_v3.DeleteRequest deletes = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequestOrBuilder> getDeletesFieldBuilder() { if (deletesBuilder_ == null) { deletesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequest.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.DeleteRequestOrBuilder>( getDeletes(), getParentForChildren(), isClean()); deletes_ = null; } return deletesBuilder_; } private boolean allowMultipleEg_ ; /** * optional bool allow_multiple_eg = 6; * @return Whether the allowMultipleEg field is set. */ @java.lang.Override public boolean hasAllowMultipleEg() { return ((bitField0_ & 0x00000008) != 0); } /** * optional bool allow_multiple_eg = 6; * @return The allowMultipleEg. */ @java.lang.Override public boolean getAllowMultipleEg() { return allowMultipleEg_; } /** * optional bool allow_multiple_eg = 6; * @param value The allowMultipleEg to set. * @return This builder for chaining. */ public Builder setAllowMultipleEg(boolean value) { allowMultipleEg_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional bool allow_multiple_eg = 6; * @return This builder for chaining. */ public Builder clearAllowMultipleEg() { bitField0_ = (bitField0_ & ~0x00000008); allowMultipleEg_ = false; 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.TransactionRequest) } // @@protoc_insertion_point(class_scope:java.apphosting.ext.remote_api.TransactionRequest) private static final com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest(); } public static com.google.apphosting.base.protos.api.RemoteApiPb.TransactionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransactionRequest 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.TransactionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionQueryResultOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.ext.remote_api.TransactionQueryResult) com.google.protobuf.MessageOrBuilder { /** * required .apphosting_datastore_v3.QueryResult result = 1; * @return Whether the result field is set. */ boolean hasResult(); /** * required .apphosting_datastore_v3.QueryResult result = 1; * @return The result. */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult getResult(); /** * required .apphosting_datastore_v3.QueryResult result = 1; */ com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResultOrBuilder getResultOrBuilder(); /** *
     * Return the __entity_group__ pseudo-kind for the transactional query's
     * entity group. If this has changed by commit time, the transaction
     * must be failed.
     * 
* * required .storage_onestore_v3.Reference entity_group_key = 2; * @return Whether the entityGroupKey field is set. */ boolean hasEntityGroupKey(); /** *
     * Return the __entity_group__ pseudo-kind for the transactional query's
     * entity group. If this has changed by commit time, the transaction
     * must be failed.
     * 
* * required .storage_onestore_v3.Reference entity_group_key = 2; * @return The entityGroupKey. */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getEntityGroupKey(); /** *
     * Return the __entity_group__ pseudo-kind for the transactional query's
     * entity group. If this has changed by commit time, the transaction
     * must be failed.
     * 
* * required .storage_onestore_v3.Reference entity_group_key = 2; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getEntityGroupKeyOrBuilder(); /** * optional .storage_onestore_v3.EntityProto entity_group = 3; * @return Whether the entityGroup field is set. */ boolean hasEntityGroup(); /** * optional .storage_onestore_v3.EntityProto entity_group = 3; * @return The entityGroup. */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto getEntityGroup(); /** * optional .storage_onestore_v3.EntityProto entity_group = 3; */ com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder getEntityGroupOrBuilder(); } /** * Protobuf type {@code java.apphosting.ext.remote_api.TransactionQueryResult} */ public static final class TransactionQueryResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.ext.remote_api.TransactionQueryResult) TransactionQueryResultOrBuilder { private static final long serialVersionUID = 0L; // Use TransactionQueryResult.newBuilder() to construct. private TransactionQueryResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransactionQueryResult() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionQueryResult(); } @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_TransactionQueryResult_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_TransactionQueryResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult.class, com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult.Builder.class); } private int bitField0_; public static final int RESULT_FIELD_NUMBER = 1; private com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult result_; /** * required .apphosting_datastore_v3.QueryResult result = 1; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return ((bitField0_ & 0x00000001) != 0); } /** * required .apphosting_datastore_v3.QueryResult result = 1; * @return The result. */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult getResult() { return result_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult.getDefaultInstance() : result_; } /** * required .apphosting_datastore_v3.QueryResult result = 1; */ @java.lang.Override public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResultOrBuilder getResultOrBuilder() { return result_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult.getDefaultInstance() : result_; } public static final int ENTITY_GROUP_KEY_FIELD_NUMBER = 2; private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference entityGroupKey_; /** *
     * Return the __entity_group__ pseudo-kind for the transactional query's
     * entity group. If this has changed by commit time, the transaction
     * must be failed.
     * 
* * required .storage_onestore_v3.Reference entity_group_key = 2; * @return Whether the entityGroupKey field is set. */ @java.lang.Override public boolean hasEntityGroupKey() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Return the __entity_group__ pseudo-kind for the transactional query's
     * entity group. If this has changed by commit time, the transaction
     * must be failed.
     * 
* * required .storage_onestore_v3.Reference entity_group_key = 2; * @return The entityGroupKey. */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getEntityGroupKey() { return entityGroupKey_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : entityGroupKey_; } /** *
     * Return the __entity_group__ pseudo-kind for the transactional query's
     * entity group. If this has changed by commit time, the transaction
     * must be failed.
     * 
* * required .storage_onestore_v3.Reference entity_group_key = 2; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getEntityGroupKeyOrBuilder() { return entityGroupKey_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : entityGroupKey_; } public static final int ENTITY_GROUP_FIELD_NUMBER = 3; private com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto entityGroup_; /** * optional .storage_onestore_v3.EntityProto entity_group = 3; * @return Whether the entityGroup field is set. */ @java.lang.Override public boolean hasEntityGroup() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .storage_onestore_v3.EntityProto entity_group = 3; * @return The entityGroup. */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto getEntityGroup() { return entityGroup_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.getDefaultInstance() : entityGroup_; } /** * optional .storage_onestore_v3.EntityProto entity_group = 3; */ @java.lang.Override public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder getEntityGroupOrBuilder() { return entityGroup_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.getDefaultInstance() : entityGroup_; } 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 (!hasResult()) { memoizedIsInitialized = 0; return false; } if (!hasEntityGroupKey()) { memoizedIsInitialized = 0; return false; } if (!getResult().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getEntityGroupKey().isInitialized()) { memoizedIsInitialized = 0; return false; } if (hasEntityGroup()) { if (!getEntityGroup().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.writeMessage(1, getResult()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getEntityGroupKey()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getEntityGroup()); } 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 .computeMessageSize(1, getResult()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEntityGroupKey()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getEntityGroup()); } 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.TransactionQueryResult)) { return super.equals(obj); } com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult other = (com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult) obj; if (hasResult() != other.hasResult()) return false; if (hasResult()) { if (!getResult() .equals(other.getResult())) return false; } if (hasEntityGroupKey() != other.hasEntityGroupKey()) return false; if (hasEntityGroupKey()) { if (!getEntityGroupKey() .equals(other.getEntityGroupKey())) return false; } if (hasEntityGroup() != other.hasEntityGroup()) return false; if (hasEntityGroup()) { if (!getEntityGroup() .equals(other.getEntityGroup())) 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 (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().hashCode(); } if (hasEntityGroupKey()) { hash = (37 * hash) + ENTITY_GROUP_KEY_FIELD_NUMBER; hash = (53 * hash) + getEntityGroupKey().hashCode(); } if (hasEntityGroup()) { hash = (37 * hash) + ENTITY_GROUP_FIELD_NUMBER; hash = (53 * hash) + getEntityGroup().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult 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.TransactionQueryResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult 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.TransactionQueryResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult 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.TransactionQueryResult 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.TransactionQueryResult 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.TransactionQueryResult 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.TransactionQueryResult 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.TransactionQueryResult 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.TransactionQueryResult 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.TransactionQueryResult 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.TransactionQueryResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.ext.remote_api.TransactionQueryResult) com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.base.protos.api.RemoteApiPb.internal_static_java_apphosting_ext_remote_api_TransactionQueryResult_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_TransactionQueryResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult.class, com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult.Builder.class); } // Construct using com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResultFieldBuilder(); getEntityGroupKeyFieldBuilder(); getEntityGroupFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } entityGroupKey_ = null; if (entityGroupKeyBuilder_ != null) { entityGroupKeyBuilder_.dispose(); entityGroupKeyBuilder_ = null; } entityGroup_ = null; if (entityGroupBuilder_ != null) { entityGroupBuilder_.dispose(); entityGroupBuilder_ = 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_TransactionQueryResult_descriptor; } @java.lang.Override public com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult getDefaultInstanceForType() { return com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult build() { com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult buildPartial() { com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult result = new com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.entityGroupKey_ = entityGroupKeyBuilder_ == null ? entityGroupKey_ : entityGroupKeyBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.entityGroup_ = entityGroupBuilder_ == null ? entityGroup_ : entityGroupBuilder_.build(); to_bitField0_ |= 0x00000004; } 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.TransactionQueryResult) { return mergeFrom((com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult other) { if (other == com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult.getDefaultInstance()) return this; if (other.hasResult()) { mergeResult(other.getResult()); } if (other.hasEntityGroupKey()) { mergeEntityGroupKey(other.getEntityGroupKey()); } if (other.hasEntityGroup()) { mergeEntityGroup(other.getEntityGroup()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasResult()) { return false; } if (!hasEntityGroupKey()) { return false; } if (!getResult().isInitialized()) { return false; } if (!getEntityGroupKey().isInitialized()) { return false; } if (hasEntityGroup()) { if (!getEntityGroup().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: { input.readMessage( getResultFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getEntityGroupKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getEntityGroupFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 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.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult result_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResultOrBuilder> resultBuilder_; /** * required .apphosting_datastore_v3.QueryResult result = 1; * @return Whether the result field is set. */ public boolean hasResult() { return ((bitField0_ & 0x00000001) != 0); } /** * required .apphosting_datastore_v3.QueryResult result = 1; * @return The result. */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult getResult() { if (resultBuilder_ == null) { return result_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** * required .apphosting_datastore_v3.QueryResult result = 1; */ public Builder setResult(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; } else { resultBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required .apphosting_datastore_v3.QueryResult result = 1; */ public Builder setResult( com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); } else { resultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required .apphosting_datastore_v3.QueryResult result = 1; */ public Builder mergeResult(com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult value) { if (resultBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && result_ != null && result_ != com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult.getDefaultInstance()) { getResultBuilder().mergeFrom(value); } else { result_ = value; } } else { resultBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required .apphosting_datastore_v3.QueryResult result = 1; */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000001); result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } onChanged(); return this; } /** * required .apphosting_datastore_v3.QueryResult result = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult.Builder getResultBuilder() { bitField0_ |= 0x00000001; onChanged(); return getResultFieldBuilder().getBuilder(); } /** * required .apphosting_datastore_v3.QueryResult result = 1; */ public com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResultOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult.getDefaultInstance() : result_; } } /** * required .apphosting_datastore_v3.QueryResult result = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResultOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResult.Builder, com.google.apphosting.datastore.proto2api.DatastoreV3Pb.QueryResultOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } private com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference entityGroupKey_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> entityGroupKeyBuilder_; /** *
       * Return the __entity_group__ pseudo-kind for the transactional query's
       * entity group. If this has changed by commit time, the transaction
       * must be failed.
       * 
* * required .storage_onestore_v3.Reference entity_group_key = 2; * @return Whether the entityGroupKey field is set. */ public boolean hasEntityGroupKey() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Return the __entity_group__ pseudo-kind for the transactional query's
       * entity group. If this has changed by commit time, the transaction
       * must be failed.
       * 
* * required .storage_onestore_v3.Reference entity_group_key = 2; * @return The entityGroupKey. */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference getEntityGroupKey() { if (entityGroupKeyBuilder_ == null) { return entityGroupKey_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : entityGroupKey_; } else { return entityGroupKeyBuilder_.getMessage(); } } /** *
       * Return the __entity_group__ pseudo-kind for the transactional query's
       * entity group. If this has changed by commit time, the transaction
       * must be failed.
       * 
* * required .storage_onestore_v3.Reference entity_group_key = 2; */ public Builder setEntityGroupKey(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (entityGroupKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } entityGroupKey_ = value; } else { entityGroupKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Return the __entity_group__ pseudo-kind for the transactional query's
       * entity group. If this has changed by commit time, the transaction
       * must be failed.
       * 
* * required .storage_onestore_v3.Reference entity_group_key = 2; */ public Builder setEntityGroupKey( com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder builderForValue) { if (entityGroupKeyBuilder_ == null) { entityGroupKey_ = builderForValue.build(); } else { entityGroupKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Return the __entity_group__ pseudo-kind for the transactional query's
       * entity group. If this has changed by commit time, the transaction
       * must be failed.
       * 
* * required .storage_onestore_v3.Reference entity_group_key = 2; */ public Builder mergeEntityGroupKey(com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference value) { if (entityGroupKeyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && entityGroupKey_ != null && entityGroupKey_ != com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance()) { getEntityGroupKeyBuilder().mergeFrom(value); } else { entityGroupKey_ = value; } } else { entityGroupKeyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Return the __entity_group__ pseudo-kind for the transactional query's
       * entity group. If this has changed by commit time, the transaction
       * must be failed.
       * 
* * required .storage_onestore_v3.Reference entity_group_key = 2; */ public Builder clearEntityGroupKey() { bitField0_ = (bitField0_ & ~0x00000002); entityGroupKey_ = null; if (entityGroupKeyBuilder_ != null) { entityGroupKeyBuilder_.dispose(); entityGroupKeyBuilder_ = null; } onChanged(); return this; } /** *
       * Return the __entity_group__ pseudo-kind for the transactional query's
       * entity group. If this has changed by commit time, the transaction
       * must be failed.
       * 
* * required .storage_onestore_v3.Reference entity_group_key = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder getEntityGroupKeyBuilder() { bitField0_ |= 0x00000002; onChanged(); return getEntityGroupKeyFieldBuilder().getBuilder(); } /** *
       * Return the __entity_group__ pseudo-kind for the transactional query's
       * entity group. If this has changed by commit time, the transaction
       * must be failed.
       * 
* * required .storage_onestore_v3.Reference entity_group_key = 2; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder getEntityGroupKeyOrBuilder() { if (entityGroupKeyBuilder_ != null) { return entityGroupKeyBuilder_.getMessageOrBuilder(); } else { return entityGroupKey_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.getDefaultInstance() : entityGroupKey_; } } /** *
       * Return the __entity_group__ pseudo-kind for the transactional query's
       * entity group. If this has changed by commit time, the transaction
       * must be failed.
       * 
* * required .storage_onestore_v3.Reference entity_group_key = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder> getEntityGroupKeyFieldBuilder() { if (entityGroupKeyBuilder_ == null) { entityGroupKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference, com.google.storage.onestore.v3.proto2api.OnestoreEntity.Reference.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.ReferenceOrBuilder>( getEntityGroupKey(), getParentForChildren(), isClean()); entityGroupKey_ = null; } return entityGroupKeyBuilder_; } private com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto entityGroup_; private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder> entityGroupBuilder_; /** * optional .storage_onestore_v3.EntityProto entity_group = 3; * @return Whether the entityGroup field is set. */ public boolean hasEntityGroup() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .storage_onestore_v3.EntityProto entity_group = 3; * @return The entityGroup. */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto getEntityGroup() { if (entityGroupBuilder_ == null) { return entityGroup_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.getDefaultInstance() : entityGroup_; } else { return entityGroupBuilder_.getMessage(); } } /** * optional .storage_onestore_v3.EntityProto entity_group = 3; */ public Builder setEntityGroup(com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto value) { if (entityGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } entityGroup_ = value; } else { entityGroupBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .storage_onestore_v3.EntityProto entity_group = 3; */ public Builder setEntityGroup( com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder builderForValue) { if (entityGroupBuilder_ == null) { entityGroup_ = builderForValue.build(); } else { entityGroupBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .storage_onestore_v3.EntityProto entity_group = 3; */ public Builder mergeEntityGroup(com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto value) { if (entityGroupBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && entityGroup_ != null && entityGroup_ != com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.getDefaultInstance()) { getEntityGroupBuilder().mergeFrom(value); } else { entityGroup_ = value; } } else { entityGroupBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .storage_onestore_v3.EntityProto entity_group = 3; */ public Builder clearEntityGroup() { bitField0_ = (bitField0_ & ~0x00000004); entityGroup_ = null; if (entityGroupBuilder_ != null) { entityGroupBuilder_.dispose(); entityGroupBuilder_ = null; } onChanged(); return this; } /** * optional .storage_onestore_v3.EntityProto entity_group = 3; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder getEntityGroupBuilder() { bitField0_ |= 0x00000004; onChanged(); return getEntityGroupFieldBuilder().getBuilder(); } /** * optional .storage_onestore_v3.EntityProto entity_group = 3; */ public com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder getEntityGroupOrBuilder() { if (entityGroupBuilder_ != null) { return entityGroupBuilder_.getMessageOrBuilder(); } else { return entityGroup_ == null ? com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.getDefaultInstance() : entityGroup_; } } /** * optional .storage_onestore_v3.EntityProto entity_group = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder> getEntityGroupFieldBuilder() { if (entityGroupBuilder_ == null) { entityGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProto.Builder, com.google.storage.onestore.v3.proto2api.OnestoreEntity.EntityProtoOrBuilder>( getEntityGroup(), getParentForChildren(), isClean()); entityGroup_ = null; } return entityGroupBuilder_; } @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.TransactionQueryResult) } // @@protoc_insertion_point(class_scope:java.apphosting.ext.remote_api.TransactionQueryResult) private static final com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult(); } public static com.google.apphosting.base.protos.api.RemoteApiPb.TransactionQueryResult getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransactionQueryResult 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.TransactionQueryResult 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; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_ext_remote_api_TransactionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_ext_remote_api_TransactionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_ext_remote_api_TransactionRequest_Precondition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_ext_remote_api_TransactionRequest_Precondition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_ext_remote_api_TransactionQueryResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_ext_remote_api_TransactionQueryResult_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\032\022datastore_v3.proto\032\014entity.p" + "roto\"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\nreques" + "t_id\030\005 \001(\t\022\025\n\rtrace_context\030\006 \001(\014\"0\n\020App" + "licationError\022\014\n\004code\030\001 \002(\005\022\016\n\006detail\030\002 " + "\002(\t\"\267\002\n\010RpcError\022\014\n\004code\030\001 \002(\005\022\016\n\006detail" + "\030\002 \001(\t\"\214\002\n\tErrorCode\022\013\n\007UNKNOWN\020\000\022\022\n\016CAL" + "L_NOT_FOUND\020\001\022\017\n\013PARSE_ERROR\020\002\022\026\n\022SECURI" + "TY_VIOLATION\020\003\022\016\n\nOVER_QUOTA\020\004\022\025\n\021REQUES" + "T_TOO_LARGE\020\005\022\027\n\023CAPABILITY_DISABLED\020\006\022\024" + "\n\020FEATURE_DISABLED\020\007\022\017\n\013BAD_REQUEST\020\010\022\026\n" + "\022RESPONSE_TOO_LARGE\020\t\022\r\n\tCANCELLED\020\n\022\020\n\014" + "REPLAY_ERROR\020\013\022\025\n\021DEADLINE_EXCEEDED\020\014\"\321\001" + "\n\010Response\022\020\n\010response\030\001 \001(\014\022\021\n\texceptio" + "n\030\002 \001(\014\022K\n\021application_error\030\003 \001(\01320.jav" + "a.apphosting.ext.remote_api.ApplicationE" + "rror\022\026\n\016java_exception\030\004 \001(\014\022;\n\trpc_erro" + "r\030\005 \001(\0132(.java.apphosting.ext.remote_api" + ".RpcError\"\275\002\n\022TransactionRequest\022U\n\014prec" + "ondition\030\001 \003(\n2?.java.apphosting.ext.rem" + "ote_api.TransactionRequest.Precondition\022" + "1\n\004puts\030\004 \001(\0132#.apphosting_datastore_v3." + "PutRequest\0227\n\007deletes\030\005 \001(\0132&.apphosting" + "_datastore_v3.DeleteRequest\022\031\n\021allow_mul" + "tiple_eg\030\006 \001(\010\032I\n\014Precondition\022+\n\003key\030\002 " + "\002(\0132\036.storage_onestore_v3.Reference\022\014\n\004h" + "ash\030\003 \001(\t\"\300\001\n\026TransactionQueryResult\0224\n\006" + "result\030\001 \002(\0132$.apphosting_datastore_v3.Q" + "ueryResult\0228\n\020entity_group_key\030\002 \002(\0132\036.s" + "torage_onestore_v3.Reference\0226\n\014entity_g" + "roup\030\003 \001(\0132 .storage_onestore_v3.EntityP" + "rotoB@\n%com.google.apphosting.base.proto" + "s.apiB\013RemoteApiPbZ\nremote_api" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.apphosting.datastore.proto2api.DatastoreV3Pb.getDescriptor(), com.google.storage.onestore.v3.proto2api.OnestoreEntity.getDescriptor(), }); 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", }); internal_static_java_apphosting_ext_remote_api_TransactionRequest_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_java_apphosting_ext_remote_api_TransactionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_ext_remote_api_TransactionRequest_descriptor, new java.lang.String[] { "Precondition", "Puts", "Deletes", "AllowMultipleEg", }); internal_static_java_apphosting_ext_remote_api_TransactionRequest_Precondition_descriptor = internal_static_java_apphosting_ext_remote_api_TransactionRequest_descriptor.getNestedTypes().get(0); internal_static_java_apphosting_ext_remote_api_TransactionRequest_Precondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_ext_remote_api_TransactionRequest_Precondition_descriptor, new java.lang.String[] { "Key", "Hash", }); internal_static_java_apphosting_ext_remote_api_TransactionQueryResult_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_java_apphosting_ext_remote_api_TransactionQueryResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_ext_remote_api_TransactionQueryResult_descriptor, new java.lang.String[] { "Result", "EntityGroupKey", "EntityGroup", }); com.google.apphosting.datastore.proto2api.DatastoreV3Pb.getDescriptor(); com.google.storage.onestore.v3.proto2api.OnestoreEntity.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy