
arthas.grpc.unittest.ArthasUnittest Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: arthasUnittest.proto
package arthas.grpc.unittest;
public final class ArthasUnittest {
private ArthasUnittest() {}
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 ArthasUnittestRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:arthas.grpc.unittest.ArthasUnittestRequest)
com.google.protobuf.MessageOrBuilder {
/**
* int32 id = 1;
* @return The id.
*/
int getId();
/**
* string message = 2;
* @return The message.
*/
java.lang.String getMessage();
/**
* string message = 2;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
* int32 num = 3;
* @return The num.
*/
int getNum();
}
/**
* Protobuf type {@code arthas.grpc.unittest.ArthasUnittestRequest}
*/
public static final class ArthasUnittestRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:arthas.grpc.unittest.ArthasUnittestRequest)
ArthasUnittestRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ArthasUnittestRequest.newBuilder() to construct.
private ArthasUnittestRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ArthasUnittestRequest() {
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ArthasUnittestRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ArthasUnittestRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
id_ = input.readInt32();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
message_ = s;
break;
}
case 24: {
num_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return arthas.grpc.unittest.ArthasUnittest.internal_static_arthas_grpc_unittest_ArthasUnittestRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return arthas.grpc.unittest.ArthasUnittest.internal_static_arthas_grpc_unittest_ArthasUnittestRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest.class, arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private int id_;
/**
* int32 id = 1;
* @return The id.
*/
public int getId() {
return id_;
}
public static final int MESSAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object message_;
/**
* string message = 2;
* @return The message.
*/
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();
message_ = s;
return s;
}
}
/**
* string message = 2;
* @return The bytes for message.
*/
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 NUM_FIELD_NUMBER = 3;
private int num_;
/**
* int32 num = 3;
* @return The num.
*/
public int getNum() {
return num_;
}
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 (id_ != 0) {
output.writeInt32(1, id_);
}
if (!getMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
}
if (num_ != 0) {
output.writeInt32(3, num_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, id_);
}
if (!getMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
}
if (num_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, num_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest)) {
return super.equals(obj);
}
arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest other = (arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest) obj;
if (getId()
!= other.getId()) return false;
if (!getMessage()
.equals(other.getMessage())) return false;
if (getNum()
!= other.getNum()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId();
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (37 * hash) + NUM_FIELD_NUMBER;
hash = (53 * hash) + getNum();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest 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 arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest 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 arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest 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(arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest 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 arthas.grpc.unittest.ArthasUnittestRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:arthas.grpc.unittest.ArthasUnittestRequest)
arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return arthas.grpc.unittest.ArthasUnittest.internal_static_arthas_grpc_unittest_ArthasUnittestRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return arthas.grpc.unittest.ArthasUnittest.internal_static_arthas_grpc_unittest_ArthasUnittestRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest.class, arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest.Builder.class);
}
// Construct using arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = 0;
message_ = "";
num_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return arthas.grpc.unittest.ArthasUnittest.internal_static_arthas_grpc_unittest_ArthasUnittestRequest_descriptor;
}
@java.lang.Override
public arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest getDefaultInstanceForType() {
return arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest.getDefaultInstance();
}
@java.lang.Override
public arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest build() {
arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest buildPartial() {
arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest result = new arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest(this);
result.id_ = id_;
result.message_ = message_;
result.num_ = num_;
onBuilt();
return result;
}
@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 arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest) {
return mergeFrom((arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest other) {
if (other == arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest.getDefaultInstance()) return this;
if (other.getId() != 0) {
setId(other.getId());
}
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
onChanged();
}
if (other.getNum() != 0) {
setNum(other.getNum());
}
this.mergeUnknownFields(other.unknownFields);
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 {
arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int id_ ;
/**
* int32 id = 1;
* @return The id.
*/
public int getId() {
return id_;
}
/**
* int32 id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(int value) {
id_ = value;
onChanged();
return this;
}
/**
* int32 id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = 0;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
* string message = 2;
* @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();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string message = 2;
* @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;
}
}
/**
* string message = 2;
* @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;
onChanged();
return this;
}
/**
* string message = 2;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* string message = 2;
* @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();
}
checkByteStringIsUtf8(value);
message_ = value;
onChanged();
return this;
}
private int num_ ;
/**
* int32 num = 3;
* @return The num.
*/
public int getNum() {
return num_;
}
/**
* int32 num = 3;
* @param value The num to set.
* @return This builder for chaining.
*/
public Builder setNum(int value) {
num_ = value;
onChanged();
return this;
}
/**
* int32 num = 3;
* @return This builder for chaining.
*/
public Builder clearNum() {
num_ = 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:arthas.grpc.unittest.ArthasUnittestRequest)
}
// @@protoc_insertion_point(class_scope:arthas.grpc.unittest.ArthasUnittestRequest)
private static final arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest();
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ArthasUnittestRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ArthasUnittestRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public arthas.grpc.unittest.ArthasUnittest.ArthasUnittestRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ArthasUnittestResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:arthas.grpc.unittest.ArthasUnittestResponse)
com.google.protobuf.MessageOrBuilder {
/**
* int32 id = 1;
* @return The id.
*/
int getId();
/**
* string message = 2;
* @return The message.
*/
java.lang.String getMessage();
/**
* string message = 2;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
* int32 num = 3;
* @return The num.
*/
int getNum();
}
/**
* Protobuf type {@code arthas.grpc.unittest.ArthasUnittestResponse}
*/
public static final class ArthasUnittestResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:arthas.grpc.unittest.ArthasUnittestResponse)
ArthasUnittestResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ArthasUnittestResponse.newBuilder() to construct.
private ArthasUnittestResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ArthasUnittestResponse() {
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ArthasUnittestResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ArthasUnittestResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
id_ = input.readInt32();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
message_ = s;
break;
}
case 24: {
num_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return arthas.grpc.unittest.ArthasUnittest.internal_static_arthas_grpc_unittest_ArthasUnittestResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return arthas.grpc.unittest.ArthasUnittest.internal_static_arthas_grpc_unittest_ArthasUnittestResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse.class, arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private int id_;
/**
* int32 id = 1;
* @return The id.
*/
public int getId() {
return id_;
}
public static final int MESSAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object message_;
/**
* string message = 2;
* @return The message.
*/
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();
message_ = s;
return s;
}
}
/**
* string message = 2;
* @return The bytes for message.
*/
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 NUM_FIELD_NUMBER = 3;
private int num_;
/**
* int32 num = 3;
* @return The num.
*/
public int getNum() {
return num_;
}
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 (id_ != 0) {
output.writeInt32(1, id_);
}
if (!getMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
}
if (num_ != 0) {
output.writeInt32(3, num_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, id_);
}
if (!getMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
}
if (num_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, num_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse)) {
return super.equals(obj);
}
arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse other = (arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse) obj;
if (getId()
!= other.getId()) return false;
if (!getMessage()
.equals(other.getMessage())) return false;
if (getNum()
!= other.getNum()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId();
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (37 * hash) + NUM_FIELD_NUMBER;
hash = (53 * hash) + getNum();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse 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 arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse 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 arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse 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(arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse 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 arthas.grpc.unittest.ArthasUnittestResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:arthas.grpc.unittest.ArthasUnittestResponse)
arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return arthas.grpc.unittest.ArthasUnittest.internal_static_arthas_grpc_unittest_ArthasUnittestResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return arthas.grpc.unittest.ArthasUnittest.internal_static_arthas_grpc_unittest_ArthasUnittestResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse.class, arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse.Builder.class);
}
// Construct using arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = 0;
message_ = "";
num_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return arthas.grpc.unittest.ArthasUnittest.internal_static_arthas_grpc_unittest_ArthasUnittestResponse_descriptor;
}
@java.lang.Override
public arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse getDefaultInstanceForType() {
return arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse.getDefaultInstance();
}
@java.lang.Override
public arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse build() {
arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse buildPartial() {
arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse result = new arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse(this);
result.id_ = id_;
result.message_ = message_;
result.num_ = num_;
onBuilt();
return result;
}
@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 arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse) {
return mergeFrom((arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse other) {
if (other == arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse.getDefaultInstance()) return this;
if (other.getId() != 0) {
setId(other.getId());
}
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
onChanged();
}
if (other.getNum() != 0) {
setNum(other.getNum());
}
this.mergeUnknownFields(other.unknownFields);
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 {
arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int id_ ;
/**
* int32 id = 1;
* @return The id.
*/
public int getId() {
return id_;
}
/**
* int32 id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(int value) {
id_ = value;
onChanged();
return this;
}
/**
* int32 id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = 0;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
* string message = 2;
* @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();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string message = 2;
* @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;
}
}
/**
* string message = 2;
* @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;
onChanged();
return this;
}
/**
* string message = 2;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* string message = 2;
* @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();
}
checkByteStringIsUtf8(value);
message_ = value;
onChanged();
return this;
}
private int num_ ;
/**
* int32 num = 3;
* @return The num.
*/
public int getNum() {
return num_;
}
/**
* int32 num = 3;
* @param value The num to set.
* @return This builder for chaining.
*/
public Builder setNum(int value) {
num_ = value;
onChanged();
return this;
}
/**
* int32 num = 3;
* @return This builder for chaining.
*/
public Builder clearNum() {
num_ = 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:arthas.grpc.unittest.ArthasUnittestResponse)
}
// @@protoc_insertion_point(class_scope:arthas.grpc.unittest.ArthasUnittestResponse)
private static final arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse();
}
public static arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ArthasUnittestResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ArthasUnittestResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public arthas.grpc.unittest.ArthasUnittest.ArthasUnittestResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_arthas_grpc_unittest_ArthasUnittestRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_arthas_grpc_unittest_ArthasUnittestRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_arthas_grpc_unittest_ArthasUnittestResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_arthas_grpc_unittest_ArthasUnittestResponse_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\024arthasUnittest.proto\022\024arthas.grpc.unit" +
"test\"A\n\025ArthasUnittestRequest\022\n\n\002id\030\001 \001(" +
"\005\022\017\n\007message\030\002 \001(\t\022\013\n\003num\030\003 \001(\005\"B\n\026Artha" +
"sUnittestResponse\022\n\n\002id\030\001 \001(\005\022\017\n\007message" +
"\030\002 \001(\t\022\013\n\003num\030\003 \001(\0052\227\005\n\025ArthasUnittestSe" +
"rvice\022b\n\005unary\022+.arthas.grpc.unittest.Ar" +
"thasUnittestRequest\032,.arthas.grpc.unitte" +
"st.ArthasUnittestResponse\022h\n\013unaryAddSum" +
"\022+.arthas.grpc.unittest.ArthasUnittestRe" +
"quest\032,.arthas.grpc.unittest.ArthasUnitt" +
"estResponse\022h\n\013unaryGetSum\022+.arthas.grpc" +
".unittest.ArthasUnittestRequest\032,.arthas" +
".grpc.unittest.ArthasUnittestResponse\022n\n" +
"\017clientStreamSum\022+.arthas.grpc.unittest." +
"ArthasUnittestRequest\032,.arthas.grpc.unit" +
"test.ArthasUnittestResponse(\001\022k\n\014serverS" +
"tream\022+.arthas.grpc.unittest.ArthasUnitt" +
"estRequest\032,.arthas.grpc.unittest.Arthas" +
"UnittestResponse0\001\022i\n\010biStream\022+.arthas." +
"grpc.unittest.ArthasUnittestRequest\032,.ar" +
"thas.grpc.unittest.ArthasUnittestRespons" +
"e(\0010\001b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_arthas_grpc_unittest_ArthasUnittestRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_arthas_grpc_unittest_ArthasUnittestRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_arthas_grpc_unittest_ArthasUnittestRequest_descriptor,
new java.lang.String[] { "Id", "Message", "Num", });
internal_static_arthas_grpc_unittest_ArthasUnittestResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_arthas_grpc_unittest_ArthasUnittestResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_arthas_grpc_unittest_ArthasUnittestResponse_descriptor,
new java.lang.String[] { "Id", "Message", "Num", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy