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.
io.growing.collector.tunnel.protocol.UserMappingDto Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: v1/dto/user_mapping.proto
package io.growing.collector.tunnel.protocol;
/**
* Protobuf type {@code io.growing.tunnel.protocol.UserMappingDto}
*/
public final class UserMappingDto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.growing.tunnel.protocol.UserMappingDto)
UserMappingDtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use UserMappingDto.newBuilder() to construct.
private UserMappingDto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UserMappingDto() {
projectKey_ = "";
dataSourceId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UserMappingDto(
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();
projectKey_ = s;
break;
}
case 16: {
sendTime_ = input.readInt64();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
identifies_ = com.google.protobuf.MapField.newMapField(
IdentifiesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000004;
}
com.google.protobuf.MapEntry
identifies__ = input.readMessage(
IdentifiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
identifies_.getMutableMap().put(
identifies__.getKey(), identifies__.getValue());
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
dataSourceId_ = s;
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 io.growing.collector.tunnel.protocol.UserMappingProtocol.internal_static_io_growing_tunnel_protocol_UserMappingDto_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetIdentifies();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.growing.collector.tunnel.protocol.UserMappingProtocol.internal_static_io_growing_tunnel_protocol_UserMappingDto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.growing.collector.tunnel.protocol.UserMappingDto.class, io.growing.collector.tunnel.protocol.UserMappingDto.Builder.class);
}
private int bitField0_;
public static final int PROJECT_KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object projectKey_;
/**
* string project_key = 1;
*/
public java.lang.String getProjectKey() {
java.lang.Object ref = projectKey_;
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();
projectKey_ = s;
return s;
}
}
/**
* string project_key = 1;
*/
public com.google.protobuf.ByteString
getProjectKeyBytes() {
java.lang.Object ref = projectKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
projectKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SEND_TIME_FIELD_NUMBER = 2;
private long sendTime_;
/**
* int64 send_time = 2;
*/
public long getSendTime() {
return sendTime_;
}
public static final int IDENTIFIES_FIELD_NUMBER = 3;
private static final class IdentifiesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
io.growing.collector.tunnel.protocol.UserMappingProtocol.internal_static_io_growing_tunnel_protocol_UserMappingDto_IdentifiesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> identifies_;
private com.google.protobuf.MapField
internalGetIdentifies() {
if (identifies_ == null) {
return com.google.protobuf.MapField.emptyMapField(
IdentifiesDefaultEntryHolder.defaultEntry);
}
return identifies_;
}
public int getIdentifiesCount() {
return internalGetIdentifies().getMap().size();
}
/**
* map<string, string> identifies = 3;
*/
public boolean containsIdentifies(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetIdentifies().getMap().containsKey(key);
}
/**
* Use {@link #getIdentifiesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getIdentifies() {
return getIdentifiesMap();
}
/**
* map<string, string> identifies = 3;
*/
public java.util.Map getIdentifiesMap() {
return internalGetIdentifies().getMap();
}
/**
* map<string, string> identifies = 3;
*/
public java.lang.String getIdentifiesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetIdentifies().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> identifies = 3;
*/
public java.lang.String getIdentifiesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetIdentifies().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int DATA_SOURCE_ID_FIELD_NUMBER = 4;
private volatile java.lang.Object dataSourceId_;
/**
* string data_source_id = 4;
*/
public java.lang.String getDataSourceId() {
java.lang.Object ref = dataSourceId_;
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();
dataSourceId_ = s;
return s;
}
}
/**
* string data_source_id = 4;
*/
public com.google.protobuf.ByteString
getDataSourceIdBytes() {
java.lang.Object ref = dataSourceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataSourceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!getProjectKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectKey_);
}
if (sendTime_ != 0L) {
output.writeInt64(2, sendTime_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetIdentifies(),
IdentifiesDefaultEntryHolder.defaultEntry,
3);
if (!getDataSourceIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dataSourceId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getProjectKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectKey_);
}
if (sendTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, sendTime_);
}
for (java.util.Map.Entry entry
: internalGetIdentifies().getMap().entrySet()) {
com.google.protobuf.MapEntry
identifies__ = IdentifiesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, identifies__);
}
if (!getDataSourceIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dataSourceId_);
}
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 io.growing.collector.tunnel.protocol.UserMappingDto)) {
return super.equals(obj);
}
io.growing.collector.tunnel.protocol.UserMappingDto other = (io.growing.collector.tunnel.protocol.UserMappingDto) obj;
if (!getProjectKey()
.equals(other.getProjectKey())) return false;
if (getSendTime()
!= other.getSendTime()) return false;
if (!internalGetIdentifies().equals(
other.internalGetIdentifies())) return false;
if (!getDataSourceId()
.equals(other.getDataSourceId())) 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) + PROJECT_KEY_FIELD_NUMBER;
hash = (53 * hash) + getProjectKey().hashCode();
hash = (37 * hash) + SEND_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSendTime());
if (!internalGetIdentifies().getMap().isEmpty()) {
hash = (37 * hash) + IDENTIFIES_FIELD_NUMBER;
hash = (53 * hash) + internalGetIdentifies().hashCode();
}
hash = (37 * hash) + DATA_SOURCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDataSourceId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.growing.collector.tunnel.protocol.UserMappingDto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.growing.collector.tunnel.protocol.UserMappingDto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.growing.collector.tunnel.protocol.UserMappingDto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.growing.collector.tunnel.protocol.UserMappingDto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.growing.collector.tunnel.protocol.UserMappingDto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.growing.collector.tunnel.protocol.UserMappingDto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.growing.collector.tunnel.protocol.UserMappingDto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.growing.collector.tunnel.protocol.UserMappingDto 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 io.growing.collector.tunnel.protocol.UserMappingDto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.growing.collector.tunnel.protocol.UserMappingDto 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 io.growing.collector.tunnel.protocol.UserMappingDto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.growing.collector.tunnel.protocol.UserMappingDto 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(io.growing.collector.tunnel.protocol.UserMappingDto 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 io.growing.tunnel.protocol.UserMappingDto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.growing.tunnel.protocol.UserMappingDto)
io.growing.collector.tunnel.protocol.UserMappingDtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.growing.collector.tunnel.protocol.UserMappingProtocol.internal_static_io_growing_tunnel_protocol_UserMappingDto_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetIdentifies();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 3:
return internalGetMutableIdentifies();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.growing.collector.tunnel.protocol.UserMappingProtocol.internal_static_io_growing_tunnel_protocol_UserMappingDto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.growing.collector.tunnel.protocol.UserMappingDto.class, io.growing.collector.tunnel.protocol.UserMappingDto.Builder.class);
}
// Construct using io.growing.collector.tunnel.protocol.UserMappingDto.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();
projectKey_ = "";
sendTime_ = 0L;
internalGetMutableIdentifies().clear();
dataSourceId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.growing.collector.tunnel.protocol.UserMappingProtocol.internal_static_io_growing_tunnel_protocol_UserMappingDto_descriptor;
}
@java.lang.Override
public io.growing.collector.tunnel.protocol.UserMappingDto getDefaultInstanceForType() {
return io.growing.collector.tunnel.protocol.UserMappingDto.getDefaultInstance();
}
@java.lang.Override
public io.growing.collector.tunnel.protocol.UserMappingDto build() {
io.growing.collector.tunnel.protocol.UserMappingDto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.growing.collector.tunnel.protocol.UserMappingDto buildPartial() {
io.growing.collector.tunnel.protocol.UserMappingDto result = new io.growing.collector.tunnel.protocol.UserMappingDto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.projectKey_ = projectKey_;
result.sendTime_ = sendTime_;
result.identifies_ = internalGetIdentifies();
result.identifies_.makeImmutable();
result.dataSourceId_ = dataSourceId_;
result.bitField0_ = to_bitField0_;
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 io.growing.collector.tunnel.protocol.UserMappingDto) {
return mergeFrom((io.growing.collector.tunnel.protocol.UserMappingDto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.growing.collector.tunnel.protocol.UserMappingDto other) {
if (other == io.growing.collector.tunnel.protocol.UserMappingDto.getDefaultInstance()) return this;
if (!other.getProjectKey().isEmpty()) {
projectKey_ = other.projectKey_;
onChanged();
}
if (other.getSendTime() != 0L) {
setSendTime(other.getSendTime());
}
internalGetMutableIdentifies().mergeFrom(
other.internalGetIdentifies());
if (!other.getDataSourceId().isEmpty()) {
dataSourceId_ = other.dataSourceId_;
onChanged();
}
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 {
io.growing.collector.tunnel.protocol.UserMappingDto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.growing.collector.tunnel.protocol.UserMappingDto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object projectKey_ = "";
/**
* string project_key = 1;
*/
public java.lang.String getProjectKey() {
java.lang.Object ref = projectKey_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
projectKey_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string project_key = 1;
*/
public com.google.protobuf.ByteString
getProjectKeyBytes() {
java.lang.Object ref = projectKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
projectKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string project_key = 1;
*/
public Builder setProjectKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
projectKey_ = value;
onChanged();
return this;
}
/**
* string project_key = 1;
*/
public Builder clearProjectKey() {
projectKey_ = getDefaultInstance().getProjectKey();
onChanged();
return this;
}
/**
* string project_key = 1;
*/
public Builder setProjectKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
projectKey_ = value;
onChanged();
return this;
}
private long sendTime_ ;
/**
* int64 send_time = 2;
*/
public long getSendTime() {
return sendTime_;
}
/**
* int64 send_time = 2;
*/
public Builder setSendTime(long value) {
sendTime_ = value;
onChanged();
return this;
}
/**
* int64 send_time = 2;
*/
public Builder clearSendTime() {
sendTime_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> identifies_;
private com.google.protobuf.MapField
internalGetIdentifies() {
if (identifies_ == null) {
return com.google.protobuf.MapField.emptyMapField(
IdentifiesDefaultEntryHolder.defaultEntry);
}
return identifies_;
}
private com.google.protobuf.MapField
internalGetMutableIdentifies() {
onChanged();;
if (identifies_ == null) {
identifies_ = com.google.protobuf.MapField.newMapField(
IdentifiesDefaultEntryHolder.defaultEntry);
}
if (!identifies_.isMutable()) {
identifies_ = identifies_.copy();
}
return identifies_;
}
public int getIdentifiesCount() {
return internalGetIdentifies().getMap().size();
}
/**
* map<string, string> identifies = 3;
*/
public boolean containsIdentifies(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetIdentifies().getMap().containsKey(key);
}
/**
* Use {@link #getIdentifiesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getIdentifies() {
return getIdentifiesMap();
}
/**
* map<string, string> identifies = 3;
*/
public java.util.Map getIdentifiesMap() {
return internalGetIdentifies().getMap();
}
/**
* map<string, string> identifies = 3;
*/
public java.lang.String getIdentifiesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetIdentifies().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> identifies = 3;
*/
public java.lang.String getIdentifiesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetIdentifies().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearIdentifies() {
internalGetMutableIdentifies().getMutableMap()
.clear();
return this;
}
/**
* map<string, string> identifies = 3;
*/
public Builder removeIdentifies(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableIdentifies().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableIdentifies() {
return internalGetMutableIdentifies().getMutableMap();
}
/**
* map<string, string> identifies = 3;
*/
public Builder putIdentifies(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableIdentifies().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, string> identifies = 3;
*/
public Builder putAllIdentifies(
java.util.Map values) {
internalGetMutableIdentifies().getMutableMap()
.putAll(values);
return this;
}
private java.lang.Object dataSourceId_ = "";
/**
* string data_source_id = 4;
*/
public java.lang.String getDataSourceId() {
java.lang.Object ref = dataSourceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dataSourceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string data_source_id = 4;
*/
public com.google.protobuf.ByteString
getDataSourceIdBytes() {
java.lang.Object ref = dataSourceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataSourceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string data_source_id = 4;
*/
public Builder setDataSourceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dataSourceId_ = value;
onChanged();
return this;
}
/**
* string data_source_id = 4;
*/
public Builder clearDataSourceId() {
dataSourceId_ = getDefaultInstance().getDataSourceId();
onChanged();
return this;
}
/**
* string data_source_id = 4;
*/
public Builder setDataSourceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dataSourceId_ = value;
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:io.growing.tunnel.protocol.UserMappingDto)
}
// @@protoc_insertion_point(class_scope:io.growing.tunnel.protocol.UserMappingDto)
private static final io.growing.collector.tunnel.protocol.UserMappingDto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.growing.collector.tunnel.protocol.UserMappingDto();
}
public static io.growing.collector.tunnel.protocol.UserMappingDto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UserMappingDto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UserMappingDto(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 io.growing.collector.tunnel.protocol.UserMappingDto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}