All Downloads are FREE. Search and download functionalities are using the official Maven repository.
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.PIntStringValue Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: v1/Annotation.proto
package com.navercorp.pinpoint.grpc.trace;
/**
* Protobuf type {@code v1.PIntStringValue}
*/
public final class PIntStringValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.PIntStringValue)
PIntStringValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use PIntStringValue.newBuilder() to construct.
private PIntStringValue(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PIntStringValue() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PIntStringValue();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PIntStringValue(
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: {
intValue_ = input.readInt32();
break;
}
case 18: {
com.google.protobuf.StringValue.Builder subBuilder = null;
if (stringValue_ != null) {
subBuilder = stringValue_.toBuilder();
}
stringValue_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(stringValue_);
stringValue_ = subBuilder.buildPartial();
}
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.AnnotationProto.internal_static_v1_PIntStringValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.AnnotationProto.internal_static_v1_PIntStringValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PIntStringValue.class, com.navercorp.pinpoint.grpc.trace.PIntStringValue.Builder.class);
}
public static final int INTVALUE_FIELD_NUMBER = 1;
private int intValue_;
/**
* int32 intValue = 1;
* @return The intValue.
*/
@java.lang.Override
public int getIntValue() {
return intValue_;
}
public static final int STRINGVALUE_FIELD_NUMBER = 2;
private com.google.protobuf.StringValue stringValue_;
/**
* .google.protobuf.StringValue stringValue = 2;
* @return Whether the stringValue field is set.
*/
@java.lang.Override
public boolean hasStringValue() {
return stringValue_ != null;
}
/**
* .google.protobuf.StringValue stringValue = 2;
* @return The stringValue.
*/
@java.lang.Override
public com.google.protobuf.StringValue getStringValue() {
return stringValue_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : stringValue_;
}
/**
* .google.protobuf.StringValue stringValue = 2;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getStringValueOrBuilder() {
return getStringValue();
}
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 (intValue_ != 0) {
output.writeInt32(1, intValue_);
}
if (stringValue_ != null) {
output.writeMessage(2, getStringValue());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (intValue_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, intValue_);
}
if (stringValue_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getStringValue());
}
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.PIntStringValue)) {
return super.equals(obj);
}
com.navercorp.pinpoint.grpc.trace.PIntStringValue other = (com.navercorp.pinpoint.grpc.trace.PIntStringValue) obj;
if (getIntValue()
!= other.getIntValue()) return false;
if (hasStringValue() != other.hasStringValue()) return false;
if (hasStringValue()) {
if (!getStringValue()
.equals(other.getStringValue())) 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) + INTVALUE_FIELD_NUMBER;
hash = (53 * hash) + getIntValue();
if (hasStringValue()) {
hash = (37 * hash) + STRINGVALUE_FIELD_NUMBER;
hash = (53 * hash) + getStringValue().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.navercorp.pinpoint.grpc.trace.PIntStringValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PIntStringValue 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.PIntStringValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PIntStringValue 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.PIntStringValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PIntStringValue 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.PIntStringValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PIntStringValue 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.PIntStringValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PIntStringValue 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.PIntStringValue 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.PIntStringValue 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.PIntStringValue 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.PIntStringValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.PIntStringValue)
com.navercorp.pinpoint.grpc.trace.PIntStringValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.navercorp.pinpoint.grpc.trace.AnnotationProto.internal_static_v1_PIntStringValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.AnnotationProto.internal_static_v1_PIntStringValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PIntStringValue.class, com.navercorp.pinpoint.grpc.trace.PIntStringValue.Builder.class);
}
// Construct using com.navercorp.pinpoint.grpc.trace.PIntStringValue.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();
intValue_ = 0;
if (stringValueBuilder_ == null) {
stringValue_ = null;
} else {
stringValue_ = null;
stringValueBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.navercorp.pinpoint.grpc.trace.AnnotationProto.internal_static_v1_PIntStringValue_descriptor;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PIntStringValue getDefaultInstanceForType() {
return com.navercorp.pinpoint.grpc.trace.PIntStringValue.getDefaultInstance();
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PIntStringValue build() {
com.navercorp.pinpoint.grpc.trace.PIntStringValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PIntStringValue buildPartial() {
com.navercorp.pinpoint.grpc.trace.PIntStringValue result = new com.navercorp.pinpoint.grpc.trace.PIntStringValue(this);
result.intValue_ = intValue_;
if (stringValueBuilder_ == null) {
result.stringValue_ = stringValue_;
} else {
result.stringValue_ = stringValueBuilder_.build();
}
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.PIntStringValue) {
return mergeFrom((com.navercorp.pinpoint.grpc.trace.PIntStringValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.navercorp.pinpoint.grpc.trace.PIntStringValue other) {
if (other == com.navercorp.pinpoint.grpc.trace.PIntStringValue.getDefaultInstance()) return this;
if (other.getIntValue() != 0) {
setIntValue(other.getIntValue());
}
if (other.hasStringValue()) {
mergeStringValue(other.getStringValue());
}
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.PIntStringValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.navercorp.pinpoint.grpc.trace.PIntStringValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int intValue_ ;
/**
* int32 intValue = 1;
* @return The intValue.
*/
@java.lang.Override
public int getIntValue() {
return intValue_;
}
/**
* int32 intValue = 1;
* @param value The intValue to set.
* @return This builder for chaining.
*/
public Builder setIntValue(int value) {
intValue_ = value;
onChanged();
return this;
}
/**
* int32 intValue = 1;
* @return This builder for chaining.
*/
public Builder clearIntValue() {
intValue_ = 0;
onChanged();
return this;
}
private com.google.protobuf.StringValue stringValue_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> stringValueBuilder_;
/**
* .google.protobuf.StringValue stringValue = 2;
* @return Whether the stringValue field is set.
*/
public boolean hasStringValue() {
return stringValueBuilder_ != null || stringValue_ != null;
}
/**
* .google.protobuf.StringValue stringValue = 2;
* @return The stringValue.
*/
public com.google.protobuf.StringValue getStringValue() {
if (stringValueBuilder_ == null) {
return stringValue_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : stringValue_;
} else {
return stringValueBuilder_.getMessage();
}
}
/**
* .google.protobuf.StringValue stringValue = 2;
*/
public Builder setStringValue(com.google.protobuf.StringValue value) {
if (stringValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stringValue_ = value;
onChanged();
} else {
stringValueBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.StringValue stringValue = 2;
*/
public Builder setStringValue(
com.google.protobuf.StringValue.Builder builderForValue) {
if (stringValueBuilder_ == null) {
stringValue_ = builderForValue.build();
onChanged();
} else {
stringValueBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.StringValue stringValue = 2;
*/
public Builder mergeStringValue(com.google.protobuf.StringValue value) {
if (stringValueBuilder_ == null) {
if (stringValue_ != null) {
stringValue_ =
com.google.protobuf.StringValue.newBuilder(stringValue_).mergeFrom(value).buildPartial();
} else {
stringValue_ = value;
}
onChanged();
} else {
stringValueBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.StringValue stringValue = 2;
*/
public Builder clearStringValue() {
if (stringValueBuilder_ == null) {
stringValue_ = null;
onChanged();
} else {
stringValue_ = null;
stringValueBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.StringValue stringValue = 2;
*/
public com.google.protobuf.StringValue.Builder getStringValueBuilder() {
onChanged();
return getStringValueFieldBuilder().getBuilder();
}
/**
* .google.protobuf.StringValue stringValue = 2;
*/
public com.google.protobuf.StringValueOrBuilder getStringValueOrBuilder() {
if (stringValueBuilder_ != null) {
return stringValueBuilder_.getMessageOrBuilder();
} else {
return stringValue_ == null ?
com.google.protobuf.StringValue.getDefaultInstance() : stringValue_;
}
}
/**
* .google.protobuf.StringValue stringValue = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
getStringValueFieldBuilder() {
if (stringValueBuilder_ == null) {
stringValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
getStringValue(),
getParentForChildren(),
isClean());
stringValue_ = null;
}
return stringValueBuilder_;
}
@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.PIntStringValue)
}
// @@protoc_insertion_point(class_scope:v1.PIntStringValue)
private static final com.navercorp.pinpoint.grpc.trace.PIntStringValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.navercorp.pinpoint.grpc.trace.PIntStringValue();
}
public static com.navercorp.pinpoint.grpc.trace.PIntStringValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PIntStringValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PIntStringValue(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.PIntStringValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}