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.PCustomMetricMessage Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: v1/CustomMetric.proto
package com.navercorp.pinpoint.grpc.trace;
/**
* Protobuf type {@code v1.PCustomMetricMessage}
*/
public final class PCustomMetricMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.PCustomMetricMessage)
PCustomMetricMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use PCustomMetricMessage.newBuilder() to construct.
private PCustomMetricMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PCustomMetricMessage() {
timestamp_ = emptyLongList();
collectInterval_ = emptyLongList();
customMetrics_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PCustomMetricMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PCustomMetricMessage(
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 8: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
timestamp_ = newLongList();
mutable_bitField0_ |= 0x00000001;
}
timestamp_.addLong(input.readInt64());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
timestamp_ = newLongList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
timestamp_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
}
case 16: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
collectInterval_ = newLongList();
mutable_bitField0_ |= 0x00000002;
}
collectInterval_.addLong(input.readInt64());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
collectInterval_ = newLongList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
collectInterval_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
customMetrics_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
customMetrics_.add(
input.readMessage(com.navercorp.pinpoint.grpc.trace.PCustomMetric.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)) {
timestamp_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
collectInterval_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
customMetrics_ = java.util.Collections.unmodifiableList(customMetrics_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.navercorp.pinpoint.grpc.trace.CustomMetricProto.internal_static_v1_PCustomMetricMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.CustomMetricProto.internal_static_v1_PCustomMetricMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage.class, com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage.Builder.class);
}
public static final int TIMESTAMP_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.LongList timestamp_;
/**
* repeated int64 timestamp = 1;
* @return A list containing the timestamp.
*/
@java.lang.Override
public java.util.List
getTimestampList() {
return timestamp_;
}
/**
* repeated int64 timestamp = 1;
* @return The count of timestamp.
*/
public int getTimestampCount() {
return timestamp_.size();
}
/**
* repeated int64 timestamp = 1;
* @param index The index of the element to return.
* @return The timestamp at the given index.
*/
public long getTimestamp(int index) {
return timestamp_.getLong(index);
}
private int timestampMemoizedSerializedSize = -1;
public static final int COLLECTINTERVAL_FIELD_NUMBER = 2;
private com.google.protobuf.Internal.LongList collectInterval_;
/**
* repeated int64 collectInterval = 2;
* @return A list containing the collectInterval.
*/
@java.lang.Override
public java.util.List
getCollectIntervalList() {
return collectInterval_;
}
/**
* repeated int64 collectInterval = 2;
* @return The count of collectInterval.
*/
public int getCollectIntervalCount() {
return collectInterval_.size();
}
/**
* repeated int64 collectInterval = 2;
* @param index The index of the element to return.
* @return The collectInterval at the given index.
*/
public long getCollectInterval(int index) {
return collectInterval_.getLong(index);
}
private int collectIntervalMemoizedSerializedSize = -1;
public static final int CUSTOMMETRICS_FIELD_NUMBER = 3;
private java.util.List customMetrics_;
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
@java.lang.Override
public java.util.List getCustomMetricsList() {
return customMetrics_;
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
@java.lang.Override
public java.util.List
getCustomMetricsOrBuilderList() {
return customMetrics_;
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
@java.lang.Override
public int getCustomMetricsCount() {
return customMetrics_.size();
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCustomMetric getCustomMetrics(int index) {
return customMetrics_.get(index);
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCustomMetricOrBuilder getCustomMetricsOrBuilder(
int index) {
return customMetrics_.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 {
getSerializedSize();
if (getTimestampList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(timestampMemoizedSerializedSize);
}
for (int i = 0; i < timestamp_.size(); i++) {
output.writeInt64NoTag(timestamp_.getLong(i));
}
if (getCollectIntervalList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(collectIntervalMemoizedSerializedSize);
}
for (int i = 0; i < collectInterval_.size(); i++) {
output.writeInt64NoTag(collectInterval_.getLong(i));
}
for (int i = 0; i < customMetrics_.size(); i++) {
output.writeMessage(3, customMetrics_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < timestamp_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(timestamp_.getLong(i));
}
size += dataSize;
if (!getTimestampList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
timestampMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < collectInterval_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(collectInterval_.getLong(i));
}
size += dataSize;
if (!getCollectIntervalList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
collectIntervalMemoizedSerializedSize = dataSize;
}
for (int i = 0; i < customMetrics_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, customMetrics_.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.PCustomMetricMessage)) {
return super.equals(obj);
}
com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage other = (com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage) obj;
if (!getTimestampList()
.equals(other.getTimestampList())) return false;
if (!getCollectIntervalList()
.equals(other.getCollectIntervalList())) return false;
if (!getCustomMetricsList()
.equals(other.getCustomMetricsList())) 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();
if (getTimestampCount() > 0) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestampList().hashCode();
}
if (getCollectIntervalCount() > 0) {
hash = (37 * hash) + COLLECTINTERVAL_FIELD_NUMBER;
hash = (53 * hash) + getCollectIntervalList().hashCode();
}
if (getCustomMetricsCount() > 0) {
hash = (37 * hash) + CUSTOMMETRICS_FIELD_NUMBER;
hash = (53 * hash) + getCustomMetricsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage 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.PCustomMetricMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage 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.PCustomMetricMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage 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.PCustomMetricMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage 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.PCustomMetricMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage 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.PCustomMetricMessage 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.PCustomMetricMessage 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.PCustomMetricMessage 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.PCustomMetricMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.PCustomMetricMessage)
com.navercorp.pinpoint.grpc.trace.PCustomMetricMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.navercorp.pinpoint.grpc.trace.CustomMetricProto.internal_static_v1_PCustomMetricMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.CustomMetricProto.internal_static_v1_PCustomMetricMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage.class, com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage.Builder.class);
}
// Construct using com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCustomMetricsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
timestamp_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000001);
collectInterval_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000002);
if (customMetricsBuilder_ == null) {
customMetrics_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
customMetricsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.navercorp.pinpoint.grpc.trace.CustomMetricProto.internal_static_v1_PCustomMetricMessage_descriptor;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage getDefaultInstanceForType() {
return com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage.getDefaultInstance();
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage build() {
com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage buildPartial() {
com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage result = new com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
timestamp_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.timestamp_ = timestamp_;
if (((bitField0_ & 0x00000002) != 0)) {
collectInterval_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.collectInterval_ = collectInterval_;
if (customMetricsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
customMetrics_ = java.util.Collections.unmodifiableList(customMetrics_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.customMetrics_ = customMetrics_;
} else {
result.customMetrics_ = customMetricsBuilder_.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.PCustomMetricMessage) {
return mergeFrom((com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage other) {
if (other == com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage.getDefaultInstance()) return this;
if (!other.timestamp_.isEmpty()) {
if (timestamp_.isEmpty()) {
timestamp_ = other.timestamp_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTimestampIsMutable();
timestamp_.addAll(other.timestamp_);
}
onChanged();
}
if (!other.collectInterval_.isEmpty()) {
if (collectInterval_.isEmpty()) {
collectInterval_ = other.collectInterval_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureCollectIntervalIsMutable();
collectInterval_.addAll(other.collectInterval_);
}
onChanged();
}
if (customMetricsBuilder_ == null) {
if (!other.customMetrics_.isEmpty()) {
if (customMetrics_.isEmpty()) {
customMetrics_ = other.customMetrics_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureCustomMetricsIsMutable();
customMetrics_.addAll(other.customMetrics_);
}
onChanged();
}
} else {
if (!other.customMetrics_.isEmpty()) {
if (customMetricsBuilder_.isEmpty()) {
customMetricsBuilder_.dispose();
customMetricsBuilder_ = null;
customMetrics_ = other.customMetrics_;
bitField0_ = (bitField0_ & ~0x00000004);
customMetricsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCustomMetricsFieldBuilder() : null;
} else {
customMetricsBuilder_.addAllMessages(other.customMetrics_);
}
}
}
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.PCustomMetricMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.LongList timestamp_ = emptyLongList();
private void ensureTimestampIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
timestamp_ = mutableCopy(timestamp_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated int64 timestamp = 1;
* @return A list containing the timestamp.
*/
public java.util.List
getTimestampList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(timestamp_) : timestamp_;
}
/**
* repeated int64 timestamp = 1;
* @return The count of timestamp.
*/
public int getTimestampCount() {
return timestamp_.size();
}
/**
* repeated int64 timestamp = 1;
* @param index The index of the element to return.
* @return The timestamp at the given index.
*/
public long getTimestamp(int index) {
return timestamp_.getLong(index);
}
/**
* repeated int64 timestamp = 1;
* @param index The index to set the value at.
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(
int index, long value) {
ensureTimestampIsMutable();
timestamp_.setLong(index, value);
onChanged();
return this;
}
/**
* repeated int64 timestamp = 1;
* @param value The timestamp to add.
* @return This builder for chaining.
*/
public Builder addTimestamp(long value) {
ensureTimestampIsMutable();
timestamp_.addLong(value);
onChanged();
return this;
}
/**
* repeated int64 timestamp = 1;
* @param values The timestamp to add.
* @return This builder for chaining.
*/
public Builder addAllTimestamp(
java.lang.Iterable values) {
ensureTimestampIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, timestamp_);
onChanged();
return this;
}
/**
* repeated int64 timestamp = 1;
* @return This builder for chaining.
*/
public Builder clearTimestamp() {
timestamp_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList collectInterval_ = emptyLongList();
private void ensureCollectIntervalIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
collectInterval_ = mutableCopy(collectInterval_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated int64 collectInterval = 2;
* @return A list containing the collectInterval.
*/
public java.util.List
getCollectIntervalList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(collectInterval_) : collectInterval_;
}
/**
* repeated int64 collectInterval = 2;
* @return The count of collectInterval.
*/
public int getCollectIntervalCount() {
return collectInterval_.size();
}
/**
* repeated int64 collectInterval = 2;
* @param index The index of the element to return.
* @return The collectInterval at the given index.
*/
public long getCollectInterval(int index) {
return collectInterval_.getLong(index);
}
/**
* repeated int64 collectInterval = 2;
* @param index The index to set the value at.
* @param value The collectInterval to set.
* @return This builder for chaining.
*/
public Builder setCollectInterval(
int index, long value) {
ensureCollectIntervalIsMutable();
collectInterval_.setLong(index, value);
onChanged();
return this;
}
/**
* repeated int64 collectInterval = 2;
* @param value The collectInterval to add.
* @return This builder for chaining.
*/
public Builder addCollectInterval(long value) {
ensureCollectIntervalIsMutable();
collectInterval_.addLong(value);
onChanged();
return this;
}
/**
* repeated int64 collectInterval = 2;
* @param values The collectInterval to add.
* @return This builder for chaining.
*/
public Builder addAllCollectInterval(
java.lang.Iterable values) {
ensureCollectIntervalIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, collectInterval_);
onChanged();
return this;
}
/**
* repeated int64 collectInterval = 2;
* @return This builder for chaining.
*/
public Builder clearCollectInterval() {
collectInterval_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private java.util.List customMetrics_ =
java.util.Collections.emptyList();
private void ensureCustomMetricsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
customMetrics_ = new java.util.ArrayList(customMetrics_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PCustomMetric, com.navercorp.pinpoint.grpc.trace.PCustomMetric.Builder, com.navercorp.pinpoint.grpc.trace.PCustomMetricOrBuilder> customMetricsBuilder_;
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
public java.util.List getCustomMetricsList() {
if (customMetricsBuilder_ == null) {
return java.util.Collections.unmodifiableList(customMetrics_);
} else {
return customMetricsBuilder_.getMessageList();
}
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
public int getCustomMetricsCount() {
if (customMetricsBuilder_ == null) {
return customMetrics_.size();
} else {
return customMetricsBuilder_.getCount();
}
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
public com.navercorp.pinpoint.grpc.trace.PCustomMetric getCustomMetrics(int index) {
if (customMetricsBuilder_ == null) {
return customMetrics_.get(index);
} else {
return customMetricsBuilder_.getMessage(index);
}
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
public Builder setCustomMetrics(
int index, com.navercorp.pinpoint.grpc.trace.PCustomMetric value) {
if (customMetricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomMetricsIsMutable();
customMetrics_.set(index, value);
onChanged();
} else {
customMetricsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
public Builder setCustomMetrics(
int index, com.navercorp.pinpoint.grpc.trace.PCustomMetric.Builder builderForValue) {
if (customMetricsBuilder_ == null) {
ensureCustomMetricsIsMutable();
customMetrics_.set(index, builderForValue.build());
onChanged();
} else {
customMetricsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
public Builder addCustomMetrics(com.navercorp.pinpoint.grpc.trace.PCustomMetric value) {
if (customMetricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomMetricsIsMutable();
customMetrics_.add(value);
onChanged();
} else {
customMetricsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
public Builder addCustomMetrics(
int index, com.navercorp.pinpoint.grpc.trace.PCustomMetric value) {
if (customMetricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomMetricsIsMutable();
customMetrics_.add(index, value);
onChanged();
} else {
customMetricsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
public Builder addCustomMetrics(
com.navercorp.pinpoint.grpc.trace.PCustomMetric.Builder builderForValue) {
if (customMetricsBuilder_ == null) {
ensureCustomMetricsIsMutable();
customMetrics_.add(builderForValue.build());
onChanged();
} else {
customMetricsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
public Builder addCustomMetrics(
int index, com.navercorp.pinpoint.grpc.trace.PCustomMetric.Builder builderForValue) {
if (customMetricsBuilder_ == null) {
ensureCustomMetricsIsMutable();
customMetrics_.add(index, builderForValue.build());
onChanged();
} else {
customMetricsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
public Builder addAllCustomMetrics(
java.lang.Iterable values) {
if (customMetricsBuilder_ == null) {
ensureCustomMetricsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, customMetrics_);
onChanged();
} else {
customMetricsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
public Builder clearCustomMetrics() {
if (customMetricsBuilder_ == null) {
customMetrics_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
customMetricsBuilder_.clear();
}
return this;
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
public Builder removeCustomMetrics(int index) {
if (customMetricsBuilder_ == null) {
ensureCustomMetricsIsMutable();
customMetrics_.remove(index);
onChanged();
} else {
customMetricsBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
public com.navercorp.pinpoint.grpc.trace.PCustomMetric.Builder getCustomMetricsBuilder(
int index) {
return getCustomMetricsFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
public com.navercorp.pinpoint.grpc.trace.PCustomMetricOrBuilder getCustomMetricsOrBuilder(
int index) {
if (customMetricsBuilder_ == null) {
return customMetrics_.get(index); } else {
return customMetricsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
public java.util.List
getCustomMetricsOrBuilderList() {
if (customMetricsBuilder_ != null) {
return customMetricsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(customMetrics_);
}
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
public com.navercorp.pinpoint.grpc.trace.PCustomMetric.Builder addCustomMetricsBuilder() {
return getCustomMetricsFieldBuilder().addBuilder(
com.navercorp.pinpoint.grpc.trace.PCustomMetric.getDefaultInstance());
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
public com.navercorp.pinpoint.grpc.trace.PCustomMetric.Builder addCustomMetricsBuilder(
int index) {
return getCustomMetricsFieldBuilder().addBuilder(
index, com.navercorp.pinpoint.grpc.trace.PCustomMetric.getDefaultInstance());
}
/**
* repeated .v1.PCustomMetric customMetrics = 3;
*/
public java.util.List
getCustomMetricsBuilderList() {
return getCustomMetricsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PCustomMetric, com.navercorp.pinpoint.grpc.trace.PCustomMetric.Builder, com.navercorp.pinpoint.grpc.trace.PCustomMetricOrBuilder>
getCustomMetricsFieldBuilder() {
if (customMetricsBuilder_ == null) {
customMetricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PCustomMetric, com.navercorp.pinpoint.grpc.trace.PCustomMetric.Builder, com.navercorp.pinpoint.grpc.trace.PCustomMetricOrBuilder>(
customMetrics_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
customMetrics_ = null;
}
return customMetricsBuilder_;
}
@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.PCustomMetricMessage)
}
// @@protoc_insertion_point(class_scope:v1.PCustomMetricMessage)
private static final com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage();
}
public static com.navercorp.pinpoint.grpc.trace.PCustomMetricMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PCustomMetricMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PCustomMetricMessage(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.PCustomMetricMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}