com.google.apphosting.base.protos.Status Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: status.proto
package com.google.apphosting.base.protos;
public final class Status {
private Status() {}
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 StatusProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:util.StatusProto)
com.google.protobuf.MessageOrBuilder {
/**
*
* Numeric code drawn from the space specified below. Often, this is the
* canonical error space, and code is drawn from codes.proto
*
*
* optional int32 code = 1;
* @return Whether the code field is set.
*/
boolean hasCode();
/**
*
* Numeric code drawn from the space specified below. Often, this is the
* canonical error space, and code is drawn from codes.proto
*
*
* optional int32 code = 1;
* @return The code.
*/
int getCode();
/**
*
* The following are usually only present when code != 0
*
*
* optional string space = 2;
* @return Whether the space field is set.
*/
boolean hasSpace();
/**
*
* The following are usually only present when code != 0
*
*
* optional string space = 2;
* @return The space.
*/
java.lang.String getSpace();
/**
*
* The following are usually only present when code != 0
*
*
* optional string space = 2;
* @return The bytes for space.
*/
com.google.protobuf.ByteString
getSpaceBytes();
/**
*
* Detail message
*
*
* optional string message = 3;
* @return Whether the message field is set.
*/
boolean hasMessage();
/**
*
* Detail message
*
*
* optional string message = 3;
* @return The message.
*/
java.lang.String getMessage();
/**
*
* Detail message
*
*
* optional string message = 3;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
*
* The canonical error code (see codes.proto) that most closely
* corresponds to this status. May be missing.
*
*
* optional int32 canonical_code = 6;
* @return Whether the canonicalCode field is set.
*/
boolean hasCanonicalCode();
/**
*
* The canonical error code (see codes.proto) that most closely
* corresponds to this status. May be missing.
*
*
* optional int32 canonical_code = 6;
* @return The canonicalCode.
*/
int getCanonicalCode();
}
/**
*
* Wire-format for a Status object
*
*
* Protobuf type {@code util.StatusProto}
*/
public static final class StatusProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:util.StatusProto)
StatusProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use StatusProto.newBuilder() to construct.
private StatusProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StatusProto() {
space_ = "";
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StatusProto();
}
@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.Status.internal_static_util_StatusProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.Status.internal_static_util_StatusProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.Status.StatusProto.class, com.google.apphosting.base.protos.Status.StatusProto.Builder.class);
}
private int bitField0_;
public static final int CODE_FIELD_NUMBER = 1;
private int code_ = 0;
/**
*
* Numeric code drawn from the space specified below. Often, this is the
* canonical error space, and code is drawn from codes.proto
*
*
* optional int32 code = 1;
* @return Whether the code field is set.
*/
@java.lang.Override
public boolean hasCode() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Numeric code drawn from the space specified below. Often, this is the
* canonical error space, and code is drawn from codes.proto
*
*
* optional int32 code = 1;
* @return The code.
*/
@java.lang.Override
public int getCode() {
return code_;
}
public static final int SPACE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object space_ = "";
/**
*
* The following are usually only present when code != 0
*
*
* optional string space = 2;
* @return Whether the space field is set.
*/
@java.lang.Override
public boolean hasSpace() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The following are usually only present when code != 0
*
*
* optional string space = 2;
* @return The space.
*/
@java.lang.Override
public java.lang.String getSpace() {
java.lang.Object ref = space_;
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()) {
space_ = s;
}
return s;
}
}
/**
*
* The following are usually only present when code != 0
*
*
* optional string space = 2;
* @return The bytes for space.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSpaceBytes() {
java.lang.Object ref = space_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
space_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MESSAGE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object message_ = "";
/**
*
* Detail message
*
*
* optional string message = 3;
* @return Whether the message field is set.
*/
@java.lang.Override
public boolean hasMessage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Detail message
*
*
* optional string message = 3;
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
message_ = s;
}
return s;
}
}
/**
*
* Detail message
*
*
* optional string message = 3;
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CANONICAL_CODE_FIELD_NUMBER = 6;
private int canonicalCode_ = 0;
/**
*
* The canonical error code (see codes.proto) that most closely
* corresponds to this status. May be missing.
*
*
* optional int32 canonical_code = 6;
* @return Whether the canonicalCode field is set.
*/
@java.lang.Override
public boolean hasCanonicalCode() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The canonical error code (see codes.proto) that most closely
* corresponds to this status. May be missing.
*
*
* optional int32 canonical_code = 6;
* @return The canonicalCode.
*/
@java.lang.Override
public int getCanonicalCode() {
return canonicalCode_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 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, space_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt32(6, canonicalCode_);
}
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, space_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, canonicalCode_);
}
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.Status.StatusProto)) {
return super.equals(obj);
}
com.google.apphosting.base.protos.Status.StatusProto other = (com.google.apphosting.base.protos.Status.StatusProto) obj;
if (hasCode() != other.hasCode()) return false;
if (hasCode()) {
if (getCode()
!= other.getCode()) return false;
}
if (hasSpace() != other.hasSpace()) return false;
if (hasSpace()) {
if (!getSpace()
.equals(other.getSpace())) return false;
}
if (hasMessage() != other.hasMessage()) return false;
if (hasMessage()) {
if (!getMessage()
.equals(other.getMessage())) return false;
}
if (hasCanonicalCode() != other.hasCanonicalCode()) return false;
if (hasCanonicalCode()) {
if (getCanonicalCode()
!= other.getCanonicalCode()) 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 (hasSpace()) {
hash = (37 * hash) + SPACE_FIELD_NUMBER;
hash = (53 * hash) + getSpace().hashCode();
}
if (hasMessage()) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
}
if (hasCanonicalCode()) {
hash = (37 * hash) + CANONICAL_CODE_FIELD_NUMBER;
hash = (53 * hash) + getCanonicalCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.base.protos.Status.StatusProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.Status.StatusProto 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.Status.StatusProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.Status.StatusProto 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.Status.StatusProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.Status.StatusProto 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.Status.StatusProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.Status.StatusProto 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.Status.StatusProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.Status.StatusProto 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.Status.StatusProto 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.Status.StatusProto 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.Status.StatusProto 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;
}
/**
*
* Wire-format for a Status object
*
*
* Protobuf type {@code util.StatusProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:util.StatusProto)
com.google.apphosting.base.protos.Status.StatusProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.Status.internal_static_util_StatusProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.Status.internal_static_util_StatusProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.Status.StatusProto.class, com.google.apphosting.base.protos.Status.StatusProto.Builder.class);
}
// Construct using com.google.apphosting.base.protos.Status.StatusProto.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;
space_ = "";
message_ = "";
canonicalCode_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.base.protos.Status.internal_static_util_StatusProto_descriptor;
}
@java.lang.Override
public com.google.apphosting.base.protos.Status.StatusProto getDefaultInstanceForType() {
return com.google.apphosting.base.protos.Status.StatusProto.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.base.protos.Status.StatusProto build() {
com.google.apphosting.base.protos.Status.StatusProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.base.protos.Status.StatusProto buildPartial() {
com.google.apphosting.base.protos.Status.StatusProto result = new com.google.apphosting.base.protos.Status.StatusProto(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.base.protos.Status.StatusProto 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.space_ = space_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.message_ = message_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.canonicalCode_ = canonicalCode_;
to_bitField0_ |= 0x00000008;
}
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.Status.StatusProto) {
return mergeFrom((com.google.apphosting.base.protos.Status.StatusProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.base.protos.Status.StatusProto other) {
if (other == com.google.apphosting.base.protos.Status.StatusProto.getDefaultInstance()) return this;
if (other.hasCode()) {
setCode(other.getCode());
}
if (other.hasSpace()) {
space_ = other.space_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasMessage()) {
message_ = other.message_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasCanonicalCode()) {
setCanonicalCode(other.getCanonicalCode());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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: {
space_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
message_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 48: {
canonicalCode_ = input.readInt32();
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 int code_ ;
/**
*
* Numeric code drawn from the space specified below. Often, this is the
* canonical error space, and code is drawn from codes.proto
*
*
* optional int32 code = 1;
* @return Whether the code field is set.
*/
@java.lang.Override
public boolean hasCode() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Numeric code drawn from the space specified below. Often, this is the
* canonical error space, and code is drawn from codes.proto
*
*
* optional int32 code = 1;
* @return The code.
*/
@java.lang.Override
public int getCode() {
return code_;
}
/**
*
* Numeric code drawn from the space specified below. Often, this is the
* canonical error space, and code is drawn from codes.proto
*
*
* optional 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;
}
/**
*
* Numeric code drawn from the space specified below. Often, this is the
* canonical error space, and code is drawn from codes.proto
*
*
* optional int32 code = 1;
* @return This builder for chaining.
*/
public Builder clearCode() {
bitField0_ = (bitField0_ & ~0x00000001);
code_ = 0;
onChanged();
return this;
}
private java.lang.Object space_ = "";
/**
*
* The following are usually only present when code != 0
*
*
* optional string space = 2;
* @return Whether the space field is set.
*/
public boolean hasSpace() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The following are usually only present when code != 0
*
*
* optional string space = 2;
* @return The space.
*/
public java.lang.String getSpace() {
java.lang.Object ref = space_;
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()) {
space_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The following are usually only present when code != 0
*
*
* optional string space = 2;
* @return The bytes for space.
*/
public com.google.protobuf.ByteString
getSpaceBytes() {
java.lang.Object ref = space_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
space_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The following are usually only present when code != 0
*
*
* optional string space = 2;
* @param value The space to set.
* @return This builder for chaining.
*/
public Builder setSpace(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
space_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The following are usually only present when code != 0
*
*
* optional string space = 2;
* @return This builder for chaining.
*/
public Builder clearSpace() {
space_ = getDefaultInstance().getSpace();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The following are usually only present when code != 0
*
*
* optional string space = 2;
* @param value The bytes for space to set.
* @return This builder for chaining.
*/
public Builder setSpaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
space_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
*
* Detail message
*
*
* optional string message = 3;
* @return Whether the message field is set.
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Detail message
*
*
* optional string message = 3;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
message_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Detail message
*
*
* optional string message = 3;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Detail message
*
*
* optional string message = 3;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
message_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Detail message
*
*
* optional string message = 3;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Detail message
*
*
* optional string message = 3;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
message_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private int canonicalCode_ ;
/**
*
* The canonical error code (see codes.proto) that most closely
* corresponds to this status. May be missing.
*
*
* optional int32 canonical_code = 6;
* @return Whether the canonicalCode field is set.
*/
@java.lang.Override
public boolean hasCanonicalCode() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The canonical error code (see codes.proto) that most closely
* corresponds to this status. May be missing.
*
*
* optional int32 canonical_code = 6;
* @return The canonicalCode.
*/
@java.lang.Override
public int getCanonicalCode() {
return canonicalCode_;
}
/**
*
* The canonical error code (see codes.proto) that most closely
* corresponds to this status. May be missing.
*
*
* optional int32 canonical_code = 6;
* @param value The canonicalCode to set.
* @return This builder for chaining.
*/
public Builder setCanonicalCode(int value) {
canonicalCode_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The canonical error code (see codes.proto) that most closely
* corresponds to this status. May be missing.
*
*
* optional int32 canonical_code = 6;
* @return This builder for chaining.
*/
public Builder clearCanonicalCode() {
bitField0_ = (bitField0_ & ~0x00000008);
canonicalCode_ = 0;
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:util.StatusProto)
}
// @@protoc_insertion_point(class_scope:util.StatusProto)
private static final com.google.apphosting.base.protos.Status.StatusProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.base.protos.Status.StatusProto();
}
public static com.google.apphosting.base.protos.Status.StatusProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StatusProto 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.Status.StatusProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_util_StatusProto_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_util_StatusProto_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\014status.proto\022\004util\"_\n\013StatusProto\022\014\n\004c" +
"ode\030\001 \001(\005\022\r\n\005space\030\002 \001(\t\022\017\n\007message\030\003 \001(" +
"\t\022\026\n\016canonical_code\030\006 \001(\005J\004\010\004\020\005J\004\010\005\020\006B&\n" +
"!com.google.apphosting.base.protos\370\001\001"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_util_StatusProto_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_util_StatusProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_util_StatusProto_descriptor,
new java.lang.String[] { "Code", "Space", "Message", "CanonicalCode", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy