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.PServerMetaData Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: v1/Stat.proto
package com.navercorp.pinpoint.grpc.trace;
/**
* Protobuf type {@code v1.PServerMetaData}
*/
public final class PServerMetaData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.PServerMetaData)
PServerMetaDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use PServerMetaData.newBuilder() to construct.
private PServerMetaData(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PServerMetaData() {
serverInfo_ = "";
vmArg_ = com.google.protobuf.LazyStringArrayList.EMPTY;
serviceInfo_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PServerMetaData();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PServerMetaData(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
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: {
java.lang.String s = input.readStringRequireUtf8();
serverInfo_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
vmArg_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
vmArg_.add(s);
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
serviceInfo_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
serviceInfo_.add(
input.readMessage(com.navercorp.pinpoint.grpc.trace.PServiceInfo.parser(), extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
vmArg_ = vmArg_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
serviceInfo_ = java.util.Collections.unmodifiableList(serviceInfo_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PServerMetaData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PServerMetaData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PServerMetaData.class, com.navercorp.pinpoint.grpc.trace.PServerMetaData.Builder.class);
}
public static final int SERVERINFO_FIELD_NUMBER = 1;
private volatile java.lang.Object serverInfo_;
/**
* string serverInfo = 1;
* @return The serverInfo.
*/
@java.lang.Override
public java.lang.String getServerInfo() {
java.lang.Object ref = serverInfo_;
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();
serverInfo_ = s;
return s;
}
}
/**
* string serverInfo = 1;
* @return The bytes for serverInfo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServerInfoBytes() {
java.lang.Object ref = serverInfo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serverInfo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VMARG_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList vmArg_;
/**
* repeated string vmArg = 2;
* @return A list containing the vmArg.
*/
public com.google.protobuf.ProtocolStringList
getVmArgList() {
return vmArg_;
}
/**
* repeated string vmArg = 2;
* @return The count of vmArg.
*/
public int getVmArgCount() {
return vmArg_.size();
}
/**
* repeated string vmArg = 2;
* @param index The index of the element to return.
* @return The vmArg at the given index.
*/
public java.lang.String getVmArg(int index) {
return vmArg_.get(index);
}
/**
* repeated string vmArg = 2;
* @param index The index of the value to return.
* @return The bytes of the vmArg at the given index.
*/
public com.google.protobuf.ByteString
getVmArgBytes(int index) {
return vmArg_.getByteString(index);
}
public static final int SERVICEINFO_FIELD_NUMBER = 3;
private java.util.List serviceInfo_;
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
@java.lang.Override
public java.util.List getServiceInfoList() {
return serviceInfo_;
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
@java.lang.Override
public java.util.List
getServiceInfoOrBuilderList() {
return serviceInfo_;
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
@java.lang.Override
public int getServiceInfoCount() {
return serviceInfo_.size();
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PServiceInfo getServiceInfo(int index) {
return serviceInfo_.get(index);
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PServiceInfoOrBuilder getServiceInfoOrBuilder(
int index) {
return serviceInfo_.get(index);
}
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 (!getServerInfoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serverInfo_);
}
for (int i = 0; i < vmArg_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vmArg_.getRaw(i));
}
for (int i = 0; i < serviceInfo_.size(); i++) {
output.writeMessage(3, serviceInfo_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getServerInfoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serverInfo_);
}
{
int dataSize = 0;
for (int i = 0; i < vmArg_.size(); i++) {
dataSize += computeStringSizeNoTag(vmArg_.getRaw(i));
}
size += dataSize;
size += 1 * getVmArgList().size();
}
for (int i = 0; i < serviceInfo_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, serviceInfo_.get(i));
}
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.PServerMetaData)) {
return super.equals(obj);
}
com.navercorp.pinpoint.grpc.trace.PServerMetaData other = (com.navercorp.pinpoint.grpc.trace.PServerMetaData) obj;
if (!getServerInfo()
.equals(other.getServerInfo())) return false;
if (!getVmArgList()
.equals(other.getVmArgList())) return false;
if (!getServiceInfoList()
.equals(other.getServiceInfoList())) 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) + SERVERINFO_FIELD_NUMBER;
hash = (53 * hash) + getServerInfo().hashCode();
if (getVmArgCount() > 0) {
hash = (37 * hash) + VMARG_FIELD_NUMBER;
hash = (53 * hash) + getVmArgList().hashCode();
}
if (getServiceInfoCount() > 0) {
hash = (37 * hash) + SERVICEINFO_FIELD_NUMBER;
hash = (53 * hash) + getServiceInfoList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.navercorp.pinpoint.grpc.trace.PServerMetaData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PServerMetaData 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.PServerMetaData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PServerMetaData 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.PServerMetaData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PServerMetaData 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.PServerMetaData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PServerMetaData 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.PServerMetaData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PServerMetaData 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.PServerMetaData 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.PServerMetaData 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.PServerMetaData 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.PServerMetaData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.PServerMetaData)
com.navercorp.pinpoint.grpc.trace.PServerMetaDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PServerMetaData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PServerMetaData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PServerMetaData.class, com.navercorp.pinpoint.grpc.trace.PServerMetaData.Builder.class);
}
// Construct using com.navercorp.pinpoint.grpc.trace.PServerMetaData.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getServiceInfoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
serverInfo_ = "";
vmArg_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
if (serviceInfoBuilder_ == null) {
serviceInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
serviceInfoBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PServerMetaData_descriptor;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PServerMetaData getDefaultInstanceForType() {
return com.navercorp.pinpoint.grpc.trace.PServerMetaData.getDefaultInstance();
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PServerMetaData build() {
com.navercorp.pinpoint.grpc.trace.PServerMetaData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PServerMetaData buildPartial() {
com.navercorp.pinpoint.grpc.trace.PServerMetaData result = new com.navercorp.pinpoint.grpc.trace.PServerMetaData(this);
int from_bitField0_ = bitField0_;
result.serverInfo_ = serverInfo_;
if (((bitField0_ & 0x00000001) != 0)) {
vmArg_ = vmArg_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.vmArg_ = vmArg_;
if (serviceInfoBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
serviceInfo_ = java.util.Collections.unmodifiableList(serviceInfo_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.serviceInfo_ = serviceInfo_;
} else {
result.serviceInfo_ = serviceInfoBuilder_.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.PServerMetaData) {
return mergeFrom((com.navercorp.pinpoint.grpc.trace.PServerMetaData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.navercorp.pinpoint.grpc.trace.PServerMetaData other) {
if (other == com.navercorp.pinpoint.grpc.trace.PServerMetaData.getDefaultInstance()) return this;
if (!other.getServerInfo().isEmpty()) {
serverInfo_ = other.serverInfo_;
onChanged();
}
if (!other.vmArg_.isEmpty()) {
if (vmArg_.isEmpty()) {
vmArg_ = other.vmArg_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureVmArgIsMutable();
vmArg_.addAll(other.vmArg_);
}
onChanged();
}
if (serviceInfoBuilder_ == null) {
if (!other.serviceInfo_.isEmpty()) {
if (serviceInfo_.isEmpty()) {
serviceInfo_ = other.serviceInfo_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureServiceInfoIsMutable();
serviceInfo_.addAll(other.serviceInfo_);
}
onChanged();
}
} else {
if (!other.serviceInfo_.isEmpty()) {
if (serviceInfoBuilder_.isEmpty()) {
serviceInfoBuilder_.dispose();
serviceInfoBuilder_ = null;
serviceInfo_ = other.serviceInfo_;
bitField0_ = (bitField0_ & ~0x00000002);
serviceInfoBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getServiceInfoFieldBuilder() : null;
} else {
serviceInfoBuilder_.addAllMessages(other.serviceInfo_);
}
}
}
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.PServerMetaData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.navercorp.pinpoint.grpc.trace.PServerMetaData) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object serverInfo_ = "";
/**
* string serverInfo = 1;
* @return The serverInfo.
*/
public java.lang.String getServerInfo() {
java.lang.Object ref = serverInfo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serverInfo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string serverInfo = 1;
* @return The bytes for serverInfo.
*/
public com.google.protobuf.ByteString
getServerInfoBytes() {
java.lang.Object ref = serverInfo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serverInfo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string serverInfo = 1;
* @param value The serverInfo to set.
* @return This builder for chaining.
*/
public Builder setServerInfo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serverInfo_ = value;
onChanged();
return this;
}
/**
* string serverInfo = 1;
* @return This builder for chaining.
*/
public Builder clearServerInfo() {
serverInfo_ = getDefaultInstance().getServerInfo();
onChanged();
return this;
}
/**
* string serverInfo = 1;
* @param value The bytes for serverInfo to set.
* @return This builder for chaining.
*/
public Builder setServerInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serverInfo_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList vmArg_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureVmArgIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
vmArg_ = new com.google.protobuf.LazyStringArrayList(vmArg_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string vmArg = 2;
* @return A list containing the vmArg.
*/
public com.google.protobuf.ProtocolStringList
getVmArgList() {
return vmArg_.getUnmodifiableView();
}
/**
* repeated string vmArg = 2;
* @return The count of vmArg.
*/
public int getVmArgCount() {
return vmArg_.size();
}
/**
* repeated string vmArg = 2;
* @param index The index of the element to return.
* @return The vmArg at the given index.
*/
public java.lang.String getVmArg(int index) {
return vmArg_.get(index);
}
/**
* repeated string vmArg = 2;
* @param index The index of the value to return.
* @return The bytes of the vmArg at the given index.
*/
public com.google.protobuf.ByteString
getVmArgBytes(int index) {
return vmArg_.getByteString(index);
}
/**
* repeated string vmArg = 2;
* @param index The index to set the value at.
* @param value The vmArg to set.
* @return This builder for chaining.
*/
public Builder setVmArg(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureVmArgIsMutable();
vmArg_.set(index, value);
onChanged();
return this;
}
/**
* repeated string vmArg = 2;
* @param value The vmArg to add.
* @return This builder for chaining.
*/
public Builder addVmArg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureVmArgIsMutable();
vmArg_.add(value);
onChanged();
return this;
}
/**
* repeated string vmArg = 2;
* @param values The vmArg to add.
* @return This builder for chaining.
*/
public Builder addAllVmArg(
java.lang.Iterable values) {
ensureVmArgIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, vmArg_);
onChanged();
return this;
}
/**
* repeated string vmArg = 2;
* @return This builder for chaining.
*/
public Builder clearVmArg() {
vmArg_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string vmArg = 2;
* @param value The bytes of the vmArg to add.
* @return This builder for chaining.
*/
public Builder addVmArgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureVmArgIsMutable();
vmArg_.add(value);
onChanged();
return this;
}
private java.util.List serviceInfo_ =
java.util.Collections.emptyList();
private void ensureServiceInfoIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
serviceInfo_ = new java.util.ArrayList(serviceInfo_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PServiceInfo, com.navercorp.pinpoint.grpc.trace.PServiceInfo.Builder, com.navercorp.pinpoint.grpc.trace.PServiceInfoOrBuilder> serviceInfoBuilder_;
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
public java.util.List getServiceInfoList() {
if (serviceInfoBuilder_ == null) {
return java.util.Collections.unmodifiableList(serviceInfo_);
} else {
return serviceInfoBuilder_.getMessageList();
}
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
public int getServiceInfoCount() {
if (serviceInfoBuilder_ == null) {
return serviceInfo_.size();
} else {
return serviceInfoBuilder_.getCount();
}
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
public com.navercorp.pinpoint.grpc.trace.PServiceInfo getServiceInfo(int index) {
if (serviceInfoBuilder_ == null) {
return serviceInfo_.get(index);
} else {
return serviceInfoBuilder_.getMessage(index);
}
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
public Builder setServiceInfo(
int index, com.navercorp.pinpoint.grpc.trace.PServiceInfo value) {
if (serviceInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServiceInfoIsMutable();
serviceInfo_.set(index, value);
onChanged();
} else {
serviceInfoBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
public Builder setServiceInfo(
int index, com.navercorp.pinpoint.grpc.trace.PServiceInfo.Builder builderForValue) {
if (serviceInfoBuilder_ == null) {
ensureServiceInfoIsMutable();
serviceInfo_.set(index, builderForValue.build());
onChanged();
} else {
serviceInfoBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
public Builder addServiceInfo(com.navercorp.pinpoint.grpc.trace.PServiceInfo value) {
if (serviceInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServiceInfoIsMutable();
serviceInfo_.add(value);
onChanged();
} else {
serviceInfoBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
public Builder addServiceInfo(
int index, com.navercorp.pinpoint.grpc.trace.PServiceInfo value) {
if (serviceInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServiceInfoIsMutable();
serviceInfo_.add(index, value);
onChanged();
} else {
serviceInfoBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
public Builder addServiceInfo(
com.navercorp.pinpoint.grpc.trace.PServiceInfo.Builder builderForValue) {
if (serviceInfoBuilder_ == null) {
ensureServiceInfoIsMutable();
serviceInfo_.add(builderForValue.build());
onChanged();
} else {
serviceInfoBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
public Builder addServiceInfo(
int index, com.navercorp.pinpoint.grpc.trace.PServiceInfo.Builder builderForValue) {
if (serviceInfoBuilder_ == null) {
ensureServiceInfoIsMutable();
serviceInfo_.add(index, builderForValue.build());
onChanged();
} else {
serviceInfoBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
public Builder addAllServiceInfo(
java.lang.Iterable values) {
if (serviceInfoBuilder_ == null) {
ensureServiceInfoIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, serviceInfo_);
onChanged();
} else {
serviceInfoBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
public Builder clearServiceInfo() {
if (serviceInfoBuilder_ == null) {
serviceInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
serviceInfoBuilder_.clear();
}
return this;
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
public Builder removeServiceInfo(int index) {
if (serviceInfoBuilder_ == null) {
ensureServiceInfoIsMutable();
serviceInfo_.remove(index);
onChanged();
} else {
serviceInfoBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
public com.navercorp.pinpoint.grpc.trace.PServiceInfo.Builder getServiceInfoBuilder(
int index) {
return getServiceInfoFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
public com.navercorp.pinpoint.grpc.trace.PServiceInfoOrBuilder getServiceInfoOrBuilder(
int index) {
if (serviceInfoBuilder_ == null) {
return serviceInfo_.get(index); } else {
return serviceInfoBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
public java.util.List
getServiceInfoOrBuilderList() {
if (serviceInfoBuilder_ != null) {
return serviceInfoBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(serviceInfo_);
}
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
public com.navercorp.pinpoint.grpc.trace.PServiceInfo.Builder addServiceInfoBuilder() {
return getServiceInfoFieldBuilder().addBuilder(
com.navercorp.pinpoint.grpc.trace.PServiceInfo.getDefaultInstance());
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
public com.navercorp.pinpoint.grpc.trace.PServiceInfo.Builder addServiceInfoBuilder(
int index) {
return getServiceInfoFieldBuilder().addBuilder(
index, com.navercorp.pinpoint.grpc.trace.PServiceInfo.getDefaultInstance());
}
/**
* repeated .v1.PServiceInfo serviceInfo = 3;
*/
public java.util.List
getServiceInfoBuilderList() {
return getServiceInfoFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PServiceInfo, com.navercorp.pinpoint.grpc.trace.PServiceInfo.Builder, com.navercorp.pinpoint.grpc.trace.PServiceInfoOrBuilder>
getServiceInfoFieldBuilder() {
if (serviceInfoBuilder_ == null) {
serviceInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PServiceInfo, com.navercorp.pinpoint.grpc.trace.PServiceInfo.Builder, com.navercorp.pinpoint.grpc.trace.PServiceInfoOrBuilder>(
serviceInfo_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
serviceInfo_ = null;
}
return serviceInfoBuilder_;
}
@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.PServerMetaData)
}
// @@protoc_insertion_point(class_scope:v1.PServerMetaData)
private static final com.navercorp.pinpoint.grpc.trace.PServerMetaData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.navercorp.pinpoint.grpc.trace.PServerMetaData();
}
public static com.navercorp.pinpoint.grpc.trace.PServerMetaData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PServerMetaData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PServerMetaData(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.PServerMetaData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}