Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.navercorp.pinpoint.grpc.trace.PCmdMessage Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: v1/Cmd.proto
package com.navercorp.pinpoint.grpc.trace;
/**
* Protobuf type {@code v1.PCmdMessage}
*/
public final class PCmdMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.PCmdMessage)
PCmdMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use PCmdMessage.newBuilder() to construct.
private PCmdMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PCmdMessage() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PCmdMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PCmdMessage(
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 10: {
com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake.Builder subBuilder = null;
if (messageCase_ == 1) {
subBuilder = ((com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake) message_).toBuilder();
}
message_ =
input.readMessage(com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake) message_);
message_ = subBuilder.buildPartial();
}
messageCase_ = 1;
break;
}
case 18: {
com.navercorp.pinpoint.grpc.trace.PCmdResponse.Builder subBuilder = null;
if (messageCase_ == 2) {
subBuilder = ((com.navercorp.pinpoint.grpc.trace.PCmdResponse) message_).toBuilder();
}
message_ =
input.readMessage(com.navercorp.pinpoint.grpc.trace.PCmdResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.navercorp.pinpoint.grpc.trace.PCmdResponse) message_);
message_ = subBuilder.buildPartial();
}
messageCase_ = 2;
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 com.navercorp.pinpoint.grpc.trace.CmdProto.internal_static_v1_PCmdMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.CmdProto.internal_static_v1_PCmdMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PCmdMessage.class, com.navercorp.pinpoint.grpc.trace.PCmdMessage.Builder.class);
}
private int messageCase_ = 0;
private java.lang.Object message_;
public enum MessageCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
HANDSHAKEMESSAGE(1),
FAILMESSAGE(2),
MESSAGE_NOT_SET(0);
private final int value;
private MessageCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static MessageCase valueOf(int value) {
return forNumber(value);
}
public static MessageCase forNumber(int value) {
switch (value) {
case 1: return HANDSHAKEMESSAGE;
case 2: return FAILMESSAGE;
case 0: return MESSAGE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public MessageCase
getMessageCase() {
return MessageCase.forNumber(
messageCase_);
}
public static final int HANDSHAKEMESSAGE_FIELD_NUMBER = 1;
/**
* .v1.PCmdServiceHandshake handshakeMessage = 1;
* @return Whether the handshakeMessage field is set.
*/
@java.lang.Override
public boolean hasHandshakeMessage() {
return messageCase_ == 1;
}
/**
* .v1.PCmdServiceHandshake handshakeMessage = 1;
* @return The handshakeMessage.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake getHandshakeMessage() {
if (messageCase_ == 1) {
return (com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake) message_;
}
return com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake.getDefaultInstance();
}
/**
* .v1.PCmdServiceHandshake handshakeMessage = 1;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshakeOrBuilder getHandshakeMessageOrBuilder() {
if (messageCase_ == 1) {
return (com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake) message_;
}
return com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake.getDefaultInstance();
}
public static final int FAILMESSAGE_FIELD_NUMBER = 2;
/**
* .v1.PCmdResponse failMessage = 2;
* @return Whether the failMessage field is set.
*/
@java.lang.Override
public boolean hasFailMessage() {
return messageCase_ == 2;
}
/**
* .v1.PCmdResponse failMessage = 2;
* @return The failMessage.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdResponse getFailMessage() {
if (messageCase_ == 2) {
return (com.navercorp.pinpoint.grpc.trace.PCmdResponse) message_;
}
return com.navercorp.pinpoint.grpc.trace.PCmdResponse.getDefaultInstance();
}
/**
* .v1.PCmdResponse failMessage = 2;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdResponseOrBuilder getFailMessageOrBuilder() {
if (messageCase_ == 2) {
return (com.navercorp.pinpoint.grpc.trace.PCmdResponse) message_;
}
return com.navercorp.pinpoint.grpc.trace.PCmdResponse.getDefaultInstance();
}
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 (messageCase_ == 1) {
output.writeMessage(1, (com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake) message_);
}
if (messageCase_ == 2) {
output.writeMessage(2, (com.navercorp.pinpoint.grpc.trace.PCmdResponse) message_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (messageCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake) message_);
}
if (messageCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.navercorp.pinpoint.grpc.trace.PCmdResponse) message_);
}
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 com.navercorp.pinpoint.grpc.trace.PCmdMessage)) {
return super.equals(obj);
}
com.navercorp.pinpoint.grpc.trace.PCmdMessage other = (com.navercorp.pinpoint.grpc.trace.PCmdMessage) obj;
if (!getMessageCase().equals(other.getMessageCase())) return false;
switch (messageCase_) {
case 1:
if (!getHandshakeMessage()
.equals(other.getHandshakeMessage())) return false;
break;
case 2:
if (!getFailMessage()
.equals(other.getFailMessage())) return false;
break;
case 0:
default:
}
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();
switch (messageCase_) {
case 1:
hash = (37 * hash) + HANDSHAKEMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getHandshakeMessage().hashCode();
break;
case 2:
hash = (37 * hash) + FAILMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getFailMessage().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.navercorp.pinpoint.grpc.trace.PCmdMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PCmdMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.navercorp.pinpoint.grpc.trace.PCmdMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PCmdMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.navercorp.pinpoint.grpc.trace.PCmdMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PCmdMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.navercorp.pinpoint.grpc.trace.PCmdMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PCmdMessage 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.navercorp.pinpoint.grpc.trace.PCmdMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PCmdMessage 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.navercorp.pinpoint.grpc.trace.PCmdMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PCmdMessage 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.navercorp.pinpoint.grpc.trace.PCmdMessage 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 v1.PCmdMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.PCmdMessage)
com.navercorp.pinpoint.grpc.trace.PCmdMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.navercorp.pinpoint.grpc.trace.CmdProto.internal_static_v1_PCmdMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.CmdProto.internal_static_v1_PCmdMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PCmdMessage.class, com.navercorp.pinpoint.grpc.trace.PCmdMessage.Builder.class);
}
// Construct using com.navercorp.pinpoint.grpc.trace.PCmdMessage.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();
messageCase_ = 0;
message_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.navercorp.pinpoint.grpc.trace.CmdProto.internal_static_v1_PCmdMessage_descriptor;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdMessage getDefaultInstanceForType() {
return com.navercorp.pinpoint.grpc.trace.PCmdMessage.getDefaultInstance();
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdMessage build() {
com.navercorp.pinpoint.grpc.trace.PCmdMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdMessage buildPartial() {
com.navercorp.pinpoint.grpc.trace.PCmdMessage result = new com.navercorp.pinpoint.grpc.trace.PCmdMessage(this);
if (messageCase_ == 1) {
if (handshakeMessageBuilder_ == null) {
result.message_ = message_;
} else {
result.message_ = handshakeMessageBuilder_.build();
}
}
if (messageCase_ == 2) {
if (failMessageBuilder_ == null) {
result.message_ = message_;
} else {
result.message_ = failMessageBuilder_.build();
}
}
result.messageCase_ = messageCase_;
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 com.navercorp.pinpoint.grpc.trace.PCmdMessage) {
return mergeFrom((com.navercorp.pinpoint.grpc.trace.PCmdMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.navercorp.pinpoint.grpc.trace.PCmdMessage other) {
if (other == com.navercorp.pinpoint.grpc.trace.PCmdMessage.getDefaultInstance()) return this;
switch (other.getMessageCase()) {
case HANDSHAKEMESSAGE: {
mergeHandshakeMessage(other.getHandshakeMessage());
break;
}
case FAILMESSAGE: {
mergeFailMessage(other.getFailMessage());
break;
}
case MESSAGE_NOT_SET: {
break;
}
}
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 {
com.navercorp.pinpoint.grpc.trace.PCmdMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.navercorp.pinpoint.grpc.trace.PCmdMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int messageCase_ = 0;
private java.lang.Object message_;
public MessageCase
getMessageCase() {
return MessageCase.forNumber(
messageCase_);
}
public Builder clearMessage() {
messageCase_ = 0;
message_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake, com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake.Builder, com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshakeOrBuilder> handshakeMessageBuilder_;
/**
* .v1.PCmdServiceHandshake handshakeMessage = 1;
* @return Whether the handshakeMessage field is set.
*/
@java.lang.Override
public boolean hasHandshakeMessage() {
return messageCase_ == 1;
}
/**
* .v1.PCmdServiceHandshake handshakeMessage = 1;
* @return The handshakeMessage.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake getHandshakeMessage() {
if (handshakeMessageBuilder_ == null) {
if (messageCase_ == 1) {
return (com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake) message_;
}
return com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake.getDefaultInstance();
} else {
if (messageCase_ == 1) {
return handshakeMessageBuilder_.getMessage();
}
return com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake.getDefaultInstance();
}
}
/**
* .v1.PCmdServiceHandshake handshakeMessage = 1;
*/
public Builder setHandshakeMessage(com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake value) {
if (handshakeMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
handshakeMessageBuilder_.setMessage(value);
}
messageCase_ = 1;
return this;
}
/**
* .v1.PCmdServiceHandshake handshakeMessage = 1;
*/
public Builder setHandshakeMessage(
com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake.Builder builderForValue) {
if (handshakeMessageBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
handshakeMessageBuilder_.setMessage(builderForValue.build());
}
messageCase_ = 1;
return this;
}
/**
* .v1.PCmdServiceHandshake handshakeMessage = 1;
*/
public Builder mergeHandshakeMessage(com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake value) {
if (handshakeMessageBuilder_ == null) {
if (messageCase_ == 1 &&
message_ != com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake.getDefaultInstance()) {
message_ = com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake.newBuilder((com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake) message_)
.mergeFrom(value).buildPartial();
} else {
message_ = value;
}
onChanged();
} else {
if (messageCase_ == 1) {
handshakeMessageBuilder_.mergeFrom(value);
}
handshakeMessageBuilder_.setMessage(value);
}
messageCase_ = 1;
return this;
}
/**
* .v1.PCmdServiceHandshake handshakeMessage = 1;
*/
public Builder clearHandshakeMessage() {
if (handshakeMessageBuilder_ == null) {
if (messageCase_ == 1) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
if (messageCase_ == 1) {
messageCase_ = 0;
message_ = null;
}
handshakeMessageBuilder_.clear();
}
return this;
}
/**
* .v1.PCmdServiceHandshake handshakeMessage = 1;
*/
public com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake.Builder getHandshakeMessageBuilder() {
return getHandshakeMessageFieldBuilder().getBuilder();
}
/**
* .v1.PCmdServiceHandshake handshakeMessage = 1;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshakeOrBuilder getHandshakeMessageOrBuilder() {
if ((messageCase_ == 1) && (handshakeMessageBuilder_ != null)) {
return handshakeMessageBuilder_.getMessageOrBuilder();
} else {
if (messageCase_ == 1) {
return (com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake) message_;
}
return com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake.getDefaultInstance();
}
}
/**
* .v1.PCmdServiceHandshake handshakeMessage = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake, com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake.Builder, com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshakeOrBuilder>
getHandshakeMessageFieldBuilder() {
if (handshakeMessageBuilder_ == null) {
if (!(messageCase_ == 1)) {
message_ = com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake.getDefaultInstance();
}
handshakeMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake, com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake.Builder, com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshakeOrBuilder>(
(com.navercorp.pinpoint.grpc.trace.PCmdServiceHandshake) message_,
getParentForChildren(),
isClean());
message_ = null;
}
messageCase_ = 1;
onChanged();;
return handshakeMessageBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PCmdResponse, com.navercorp.pinpoint.grpc.trace.PCmdResponse.Builder, com.navercorp.pinpoint.grpc.trace.PCmdResponseOrBuilder> failMessageBuilder_;
/**
* .v1.PCmdResponse failMessage = 2;
* @return Whether the failMessage field is set.
*/
@java.lang.Override
public boolean hasFailMessage() {
return messageCase_ == 2;
}
/**
* .v1.PCmdResponse failMessage = 2;
* @return The failMessage.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdResponse getFailMessage() {
if (failMessageBuilder_ == null) {
if (messageCase_ == 2) {
return (com.navercorp.pinpoint.grpc.trace.PCmdResponse) message_;
}
return com.navercorp.pinpoint.grpc.trace.PCmdResponse.getDefaultInstance();
} else {
if (messageCase_ == 2) {
return failMessageBuilder_.getMessage();
}
return com.navercorp.pinpoint.grpc.trace.PCmdResponse.getDefaultInstance();
}
}
/**
* .v1.PCmdResponse failMessage = 2;
*/
public Builder setFailMessage(com.navercorp.pinpoint.grpc.trace.PCmdResponse value) {
if (failMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
failMessageBuilder_.setMessage(value);
}
messageCase_ = 2;
return this;
}
/**
* .v1.PCmdResponse failMessage = 2;
*/
public Builder setFailMessage(
com.navercorp.pinpoint.grpc.trace.PCmdResponse.Builder builderForValue) {
if (failMessageBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
failMessageBuilder_.setMessage(builderForValue.build());
}
messageCase_ = 2;
return this;
}
/**
* .v1.PCmdResponse failMessage = 2;
*/
public Builder mergeFailMessage(com.navercorp.pinpoint.grpc.trace.PCmdResponse value) {
if (failMessageBuilder_ == null) {
if (messageCase_ == 2 &&
message_ != com.navercorp.pinpoint.grpc.trace.PCmdResponse.getDefaultInstance()) {
message_ = com.navercorp.pinpoint.grpc.trace.PCmdResponse.newBuilder((com.navercorp.pinpoint.grpc.trace.PCmdResponse) message_)
.mergeFrom(value).buildPartial();
} else {
message_ = value;
}
onChanged();
} else {
if (messageCase_ == 2) {
failMessageBuilder_.mergeFrom(value);
}
failMessageBuilder_.setMessage(value);
}
messageCase_ = 2;
return this;
}
/**
* .v1.PCmdResponse failMessage = 2;
*/
public Builder clearFailMessage() {
if (failMessageBuilder_ == null) {
if (messageCase_ == 2) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
if (messageCase_ == 2) {
messageCase_ = 0;
message_ = null;
}
failMessageBuilder_.clear();
}
return this;
}
/**
* .v1.PCmdResponse failMessage = 2;
*/
public com.navercorp.pinpoint.grpc.trace.PCmdResponse.Builder getFailMessageBuilder() {
return getFailMessageFieldBuilder().getBuilder();
}
/**
* .v1.PCmdResponse failMessage = 2;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdResponseOrBuilder getFailMessageOrBuilder() {
if ((messageCase_ == 2) && (failMessageBuilder_ != null)) {
return failMessageBuilder_.getMessageOrBuilder();
} else {
if (messageCase_ == 2) {
return (com.navercorp.pinpoint.grpc.trace.PCmdResponse) message_;
}
return com.navercorp.pinpoint.grpc.trace.PCmdResponse.getDefaultInstance();
}
}
/**
* .v1.PCmdResponse failMessage = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PCmdResponse, com.navercorp.pinpoint.grpc.trace.PCmdResponse.Builder, com.navercorp.pinpoint.grpc.trace.PCmdResponseOrBuilder>
getFailMessageFieldBuilder() {
if (failMessageBuilder_ == null) {
if (!(messageCase_ == 2)) {
message_ = com.navercorp.pinpoint.grpc.trace.PCmdResponse.getDefaultInstance();
}
failMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PCmdResponse, com.navercorp.pinpoint.grpc.trace.PCmdResponse.Builder, com.navercorp.pinpoint.grpc.trace.PCmdResponseOrBuilder>(
(com.navercorp.pinpoint.grpc.trace.PCmdResponse) message_,
getParentForChildren(),
isClean());
message_ = null;
}
messageCase_ = 2;
onChanged();;
return failMessageBuilder_;
}
@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:v1.PCmdMessage)
}
// @@protoc_insertion_point(class_scope:v1.PCmdMessage)
private static final com.navercorp.pinpoint.grpc.trace.PCmdMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.navercorp.pinpoint.grpc.trace.PCmdMessage();
}
public static com.navercorp.pinpoint.grpc.trace.PCmdMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PCmdMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PCmdMessage(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 com.navercorp.pinpoint.grpc.trace.PCmdMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}