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.PDataSource 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.PDataSource}
*/
public final class PDataSource extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.PDataSource)
PDataSourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use PDataSource.newBuilder() to construct.
private PDataSource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PDataSource() {
databaseName_ = "";
url_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PDataSource();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PDataSource(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
id_ = input.readInt32();
break;
}
case 16: {
serviceTypeCode_ = input.readInt32();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
databaseName_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
url_ = s;
break;
}
case 40: {
activeConnectionSize_ = input.readInt32();
break;
}
case 48: {
maxConnectionSize_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PDataSource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PDataSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PDataSource.class, com.navercorp.pinpoint.grpc.trace.PDataSource.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private int id_;
/**
* int32 id = 1;
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
public static final int SERVICETYPECODE_FIELD_NUMBER = 2;
private int serviceTypeCode_;
/**
* int32 serviceTypeCode = 2;
* @return The serviceTypeCode.
*/
@java.lang.Override
public int getServiceTypeCode() {
return serviceTypeCode_;
}
public static final int DATABASENAME_FIELD_NUMBER = 3;
private volatile java.lang.Object databaseName_;
/**
* string databaseName = 3;
* @return The databaseName.
*/
@java.lang.Override
public java.lang.String getDatabaseName() {
java.lang.Object ref = databaseName_;
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();
databaseName_ = s;
return s;
}
}
/**
* string databaseName = 3;
* @return The bytes for databaseName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDatabaseNameBytes() {
java.lang.Object ref = databaseName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
databaseName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int URL_FIELD_NUMBER = 4;
private volatile java.lang.Object url_;
/**
* string url = 4;
* @return The url.
*/
@java.lang.Override
public java.lang.String getUrl() {
java.lang.Object ref = url_;
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();
url_ = s;
return s;
}
}
/**
* string url = 4;
* @return The bytes for url.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUrlBytes() {
java.lang.Object ref = url_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACTIVECONNECTIONSIZE_FIELD_NUMBER = 5;
private int activeConnectionSize_;
/**
* int32 activeConnectionSize = 5;
* @return The activeConnectionSize.
*/
@java.lang.Override
public int getActiveConnectionSize() {
return activeConnectionSize_;
}
public static final int MAXCONNECTIONSIZE_FIELD_NUMBER = 6;
private int maxConnectionSize_;
/**
* int32 maxConnectionSize = 6;
* @return The maxConnectionSize.
*/
@java.lang.Override
public int getMaxConnectionSize() {
return maxConnectionSize_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (id_ != 0) {
output.writeInt32(1, id_);
}
if (serviceTypeCode_ != 0) {
output.writeInt32(2, serviceTypeCode_);
}
if (!getDatabaseNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, databaseName_);
}
if (!getUrlBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, url_);
}
if (activeConnectionSize_ != 0) {
output.writeInt32(5, activeConnectionSize_);
}
if (maxConnectionSize_ != 0) {
output.writeInt32(6, maxConnectionSize_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, id_);
}
if (serviceTypeCode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, serviceTypeCode_);
}
if (!getDatabaseNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, databaseName_);
}
if (!getUrlBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, url_);
}
if (activeConnectionSize_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, activeConnectionSize_);
}
if (maxConnectionSize_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, maxConnectionSize_);
}
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.PDataSource)) {
return super.equals(obj);
}
com.navercorp.pinpoint.grpc.trace.PDataSource other = (com.navercorp.pinpoint.grpc.trace.PDataSource) obj;
if (getId()
!= other.getId()) return false;
if (getServiceTypeCode()
!= other.getServiceTypeCode()) return false;
if (!getDatabaseName()
.equals(other.getDatabaseName())) return false;
if (!getUrl()
.equals(other.getUrl())) return false;
if (getActiveConnectionSize()
!= other.getActiveConnectionSize()) return false;
if (getMaxConnectionSize()
!= other.getMaxConnectionSize()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId();
hash = (37 * hash) + SERVICETYPECODE_FIELD_NUMBER;
hash = (53 * hash) + getServiceTypeCode();
hash = (37 * hash) + DATABASENAME_FIELD_NUMBER;
hash = (53 * hash) + getDatabaseName().hashCode();
hash = (37 * hash) + URL_FIELD_NUMBER;
hash = (53 * hash) + getUrl().hashCode();
hash = (37 * hash) + ACTIVECONNECTIONSIZE_FIELD_NUMBER;
hash = (53 * hash) + getActiveConnectionSize();
hash = (37 * hash) + MAXCONNECTIONSIZE_FIELD_NUMBER;
hash = (53 * hash) + getMaxConnectionSize();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.navercorp.pinpoint.grpc.trace.PDataSource parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PDataSource 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.PDataSource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PDataSource 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.PDataSource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PDataSource 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.PDataSource parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PDataSource 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.PDataSource parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PDataSource 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.PDataSource 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.PDataSource 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.PDataSource 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.PDataSource}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.PDataSource)
com.navercorp.pinpoint.grpc.trace.PDataSourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PDataSource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PDataSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PDataSource.class, com.navercorp.pinpoint.grpc.trace.PDataSource.Builder.class);
}
// Construct using com.navercorp.pinpoint.grpc.trace.PDataSource.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = 0;
serviceTypeCode_ = 0;
databaseName_ = "";
url_ = "";
activeConnectionSize_ = 0;
maxConnectionSize_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PDataSource_descriptor;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PDataSource getDefaultInstanceForType() {
return com.navercorp.pinpoint.grpc.trace.PDataSource.getDefaultInstance();
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PDataSource build() {
com.navercorp.pinpoint.grpc.trace.PDataSource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PDataSource buildPartial() {
com.navercorp.pinpoint.grpc.trace.PDataSource result = new com.navercorp.pinpoint.grpc.trace.PDataSource(this);
result.id_ = id_;
result.serviceTypeCode_ = serviceTypeCode_;
result.databaseName_ = databaseName_;
result.url_ = url_;
result.activeConnectionSize_ = activeConnectionSize_;
result.maxConnectionSize_ = maxConnectionSize_;
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.PDataSource) {
return mergeFrom((com.navercorp.pinpoint.grpc.trace.PDataSource)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.navercorp.pinpoint.grpc.trace.PDataSource other) {
if (other == com.navercorp.pinpoint.grpc.trace.PDataSource.getDefaultInstance()) return this;
if (other.getId() != 0) {
setId(other.getId());
}
if (other.getServiceTypeCode() != 0) {
setServiceTypeCode(other.getServiceTypeCode());
}
if (!other.getDatabaseName().isEmpty()) {
databaseName_ = other.databaseName_;
onChanged();
}
if (!other.getUrl().isEmpty()) {
url_ = other.url_;
onChanged();
}
if (other.getActiveConnectionSize() != 0) {
setActiveConnectionSize(other.getActiveConnectionSize());
}
if (other.getMaxConnectionSize() != 0) {
setMaxConnectionSize(other.getMaxConnectionSize());
}
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.PDataSource parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.navercorp.pinpoint.grpc.trace.PDataSource) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int id_ ;
/**
* int32 id = 1;
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
/**
* int32 id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(int value) {
id_ = value;
onChanged();
return this;
}
/**
* int32 id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = 0;
onChanged();
return this;
}
private int serviceTypeCode_ ;
/**
* int32 serviceTypeCode = 2;
* @return The serviceTypeCode.
*/
@java.lang.Override
public int getServiceTypeCode() {
return serviceTypeCode_;
}
/**
* int32 serviceTypeCode = 2;
* @param value The serviceTypeCode to set.
* @return This builder for chaining.
*/
public Builder setServiceTypeCode(int value) {
serviceTypeCode_ = value;
onChanged();
return this;
}
/**
* int32 serviceTypeCode = 2;
* @return This builder for chaining.
*/
public Builder clearServiceTypeCode() {
serviceTypeCode_ = 0;
onChanged();
return this;
}
private java.lang.Object databaseName_ = "";
/**
* string databaseName = 3;
* @return The databaseName.
*/
public java.lang.String getDatabaseName() {
java.lang.Object ref = databaseName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
databaseName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string databaseName = 3;
* @return The bytes for databaseName.
*/
public com.google.protobuf.ByteString
getDatabaseNameBytes() {
java.lang.Object ref = databaseName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
databaseName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string databaseName = 3;
* @param value The databaseName to set.
* @return This builder for chaining.
*/
public Builder setDatabaseName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
databaseName_ = value;
onChanged();
return this;
}
/**
* string databaseName = 3;
* @return This builder for chaining.
*/
public Builder clearDatabaseName() {
databaseName_ = getDefaultInstance().getDatabaseName();
onChanged();
return this;
}
/**
* string databaseName = 3;
* @param value The bytes for databaseName to set.
* @return This builder for chaining.
*/
public Builder setDatabaseNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
databaseName_ = value;
onChanged();
return this;
}
private java.lang.Object url_ = "";
/**
* string url = 4;
* @return The url.
*/
public java.lang.String getUrl() {
java.lang.Object ref = url_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
url_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string url = 4;
* @return The bytes for url.
*/
public com.google.protobuf.ByteString
getUrlBytes() {
java.lang.Object ref = url_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string url = 4;
* @param value The url to set.
* @return This builder for chaining.
*/
public Builder setUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
url_ = value;
onChanged();
return this;
}
/**
* string url = 4;
* @return This builder for chaining.
*/
public Builder clearUrl() {
url_ = getDefaultInstance().getUrl();
onChanged();
return this;
}
/**
* string url = 4;
* @param value The bytes for url to set.
* @return This builder for chaining.
*/
public Builder setUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
url_ = value;
onChanged();
return this;
}
private int activeConnectionSize_ ;
/**
* int32 activeConnectionSize = 5;
* @return The activeConnectionSize.
*/
@java.lang.Override
public int getActiveConnectionSize() {
return activeConnectionSize_;
}
/**
* int32 activeConnectionSize = 5;
* @param value The activeConnectionSize to set.
* @return This builder for chaining.
*/
public Builder setActiveConnectionSize(int value) {
activeConnectionSize_ = value;
onChanged();
return this;
}
/**
* int32 activeConnectionSize = 5;
* @return This builder for chaining.
*/
public Builder clearActiveConnectionSize() {
activeConnectionSize_ = 0;
onChanged();
return this;
}
private int maxConnectionSize_ ;
/**
* int32 maxConnectionSize = 6;
* @return The maxConnectionSize.
*/
@java.lang.Override
public int getMaxConnectionSize() {
return maxConnectionSize_;
}
/**
* int32 maxConnectionSize = 6;
* @param value The maxConnectionSize to set.
* @return This builder for chaining.
*/
public Builder setMaxConnectionSize(int value) {
maxConnectionSize_ = value;
onChanged();
return this;
}
/**
* int32 maxConnectionSize = 6;
* @return This builder for chaining.
*/
public Builder clearMaxConnectionSize() {
maxConnectionSize_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:v1.PDataSource)
}
// @@protoc_insertion_point(class_scope:v1.PDataSource)
private static final com.navercorp.pinpoint.grpc.trace.PDataSource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.navercorp.pinpoint.grpc.trace.PDataSource();
}
public static com.navercorp.pinpoint.grpc.trace.PDataSource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PDataSource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PDataSource(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.PDataSource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}