com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eas-sdk Show documentation
Show all versions of eas-sdk Show documentation
SDK for PAI-EAS online inference services
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: torchrec_predict.proto
package com.aliyun.openservices.eas.predict.proto;
public final class TorchRecPredictProtos {
private TorchRecPredictProtos() {}
public static void registerAllExtensions(
shade.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
shade.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(shade.protobuf.ExtensionRegistryLite) registry);
}
public interface LongStringMapOrBuilder extends
// @@protoc_insertion_point(interface_extends:LongStringMap)
shade.protobuf.MessageOrBuilder {
/**
* map<int64, string> map_field = 1;
*/
int getMapFieldCount();
/**
* map<int64, string> map_field = 1;
*/
boolean containsMapField(
long key);
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMapField();
/**
* map<int64, string> map_field = 1;
*/
java.util.Map
getMapFieldMap();
/**
* map<int64, string> map_field = 1;
*/
java.lang.String getMapFieldOrDefault(
long key,
java.lang.String defaultValue);
/**
* map<int64, string> map_field = 1;
*/
java.lang.String getMapFieldOrThrow(
long key);
}
/**
*
*long->others
*
*
* Protobuf type {@code LongStringMap}
*/
public static final class LongStringMap extends
shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:LongStringMap)
LongStringMapOrBuilder {
private static final long serialVersionUID = 0L;
// Use LongStringMap.newBuilder() to construct.
private LongStringMap(shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LongStringMap() {
}
@java.lang.Override
public final shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LongStringMap(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
shade.protobuf.UnknownFieldSet.Builder unknownFields =
shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
shade.protobuf.MapEntry
mapField__ = input.readMessage(
MapFieldDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
mapField_.getMutableMap().put(
mapField__.getKey(), mapField__.getValue());
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongStringMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongStringMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap.Builder.class);
}
public static final int MAP_FIELD_FIELD_NUMBER = 1;
private static final class MapFieldDefaultEntryHolder {
static final shade.protobuf.MapEntry<
java.lang.Long, java.lang.String> defaultEntry =
shade.protobuf.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongStringMap_MapFieldEntry_descriptor,
shade.protobuf.WireFormat.FieldType.INT64,
0L,
shade.protobuf.WireFormat.FieldType.STRING,
"");
}
private shade.protobuf.MapField<
java.lang.Long, java.lang.String> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<int64, string> map_field = 1;
*/
public boolean containsMapField(
long key) {
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<int64, string> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<int64, string> map_field = 1;
*/
public java.lang.String getMapFieldOrDefault(
long key,
java.lang.String defaultValue) {
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<int64, string> map_field = 1;
*/
public java.lang.String getMapFieldOrThrow(
long key) {
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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(shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
shade.protobuf.GeneratedMessageV3
.serializeLongMapTo(
output,
internalGetMapField(),
MapFieldDefaultEntryHolder.defaultEntry,
1);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetMapField().getMap().entrySet()) {
shade.protobuf.MapEntry
mapField__ = MapFieldDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf.CodedOutputStream
.computeMessageSize(1, mapField__);
}
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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap other = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap) obj;
boolean result = true;
result = result && internalGetMapField().equals(
other.internalGetMapField());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetMapField().getMap().isEmpty()) {
hash = (37 * hash) + MAP_FIELD_FIELD_NUMBER;
hash = (53 * hash) + internalGetMapField().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap parseFrom(
java.nio.ByteBuffer data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap parseFrom(
shade.protobuf.ByteString data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap parseFrom(
shade.protobuf.ByteString data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap parseFrom(byte[] data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap parseFrom(
byte[] data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap parseFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap parseFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap parseDelimitedFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap parseFrom(
shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap parseFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap 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(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*long->others
*
*
* Protobuf type {@code LongStringMap}
*/
public static final class Builder extends
shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:LongStringMap)
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMapOrBuilder {
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongStringMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongStringMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
internalGetMutableMapField().clear();
return this;
}
@java.lang.Override
public shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongStringMap_descriptor;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap.getDefaultInstance();
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap build() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap buildPartial() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap result = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap(this);
int from_bitField0_ = bitField0_;
result.mapField_ = internalGetMapField();
result.mapField_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
shade.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
shade.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(shade.protobuf.Message other) {
if (other instanceof com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap other) {
if (other == com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap.getDefaultInstance()) return this;
internalGetMutableMapField().mergeFrom(
other.internalGetMapField());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private shade.protobuf.MapField<
java.lang.Long, java.lang.String> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
private shade.protobuf.MapField
internalGetMutableMapField() {
onChanged();;
if (mapField_ == null) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
if (!mapField_.isMutable()) {
mapField_ = mapField_.copy();
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<int64, string> map_field = 1;
*/
public boolean containsMapField(
long key) {
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<int64, string> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<int64, string> map_field = 1;
*/
public java.lang.String getMapFieldOrDefault(
long key,
java.lang.String defaultValue) {
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<int64, string> map_field = 1;
*/
public java.lang.String getMapFieldOrThrow(
long key) {
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMapField() {
internalGetMutableMapField().getMutableMap()
.clear();
return this;
}
/**
* map<int64, string> map_field = 1;
*/
public Builder removeMapField(
long key) {
internalGetMutableMapField().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMapField() {
return internalGetMutableMapField().getMutableMap();
}
/**
* map<int64, string> map_field = 1;
*/
public Builder putMapField(
long key,
java.lang.String value) {
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMapField().getMutableMap()
.put(key, value);
return this;
}
/**
* map<int64, string> map_field = 1;
*/
public Builder putAllMapField(
java.util.Map values) {
internalGetMutableMapField().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:LongStringMap)
}
// @@protoc_insertion_point(class_scope:LongStringMap)
private static final com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap();
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final shade.protobuf.Parser
PARSER = new shade.protobuf.AbstractParser() {
@java.lang.Override
public LongStringMap parsePartialFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return new LongStringMap(input, extensionRegistry);
}
};
public static shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongStringMap getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LongIntMapOrBuilder extends
// @@protoc_insertion_point(interface_extends:LongIntMap)
shade.protobuf.MessageOrBuilder {
/**
* map<int64, int32> map_field = 1;
*/
int getMapFieldCount();
/**
* map<int64, int32> map_field = 1;
*/
boolean containsMapField(
long key);
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMapField();
/**
* map<int64, int32> map_field = 1;
*/
java.util.Map
getMapFieldMap();
/**
* map<int64, int32> map_field = 1;
*/
int getMapFieldOrDefault(
long key,
int defaultValue);
/**
* map<int64, int32> map_field = 1;
*/
int getMapFieldOrThrow(
long key);
}
/**
* Protobuf type {@code LongIntMap}
*/
public static final class LongIntMap extends
shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:LongIntMap)
LongIntMapOrBuilder {
private static final long serialVersionUID = 0L;
// Use LongIntMap.newBuilder() to construct.
private LongIntMap(shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LongIntMap() {
}
@java.lang.Override
public final shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LongIntMap(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
shade.protobuf.UnknownFieldSet.Builder unknownFields =
shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
shade.protobuf.MapEntry
mapField__ = input.readMessage(
MapFieldDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
mapField_.getMutableMap().put(
mapField__.getKey(), mapField__.getValue());
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongIntMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongIntMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap.Builder.class);
}
public static final int MAP_FIELD_FIELD_NUMBER = 1;
private static final class MapFieldDefaultEntryHolder {
static final shade.protobuf.MapEntry<
java.lang.Long, java.lang.Integer> defaultEntry =
shade.protobuf.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongIntMap_MapFieldEntry_descriptor,
shade.protobuf.WireFormat.FieldType.INT64,
0L,
shade.protobuf.WireFormat.FieldType.INT32,
0);
}
private shade.protobuf.MapField<
java.lang.Long, java.lang.Integer> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<int64, int32> map_field = 1;
*/
public boolean containsMapField(
long key) {
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<int64, int32> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<int64, int32> map_field = 1;
*/
public int getMapFieldOrDefault(
long key,
int defaultValue) {
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<int64, int32> map_field = 1;
*/
public int getMapFieldOrThrow(
long key) {
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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(shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
shade.protobuf.GeneratedMessageV3
.serializeLongMapTo(
output,
internalGetMapField(),
MapFieldDefaultEntryHolder.defaultEntry,
1);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetMapField().getMap().entrySet()) {
shade.protobuf.MapEntry
mapField__ = MapFieldDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf.CodedOutputStream
.computeMessageSize(1, mapField__);
}
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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap other = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap) obj;
boolean result = true;
result = result && internalGetMapField().equals(
other.internalGetMapField());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetMapField().getMap().isEmpty()) {
hash = (37 * hash) + MAP_FIELD_FIELD_NUMBER;
hash = (53 * hash) + internalGetMapField().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap parseFrom(
java.nio.ByteBuffer data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap parseFrom(
shade.protobuf.ByteString data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap parseFrom(
shade.protobuf.ByteString data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap parseFrom(byte[] data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap parseFrom(
byte[] data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap parseFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap parseFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap parseDelimitedFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap parseFrom(
shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap parseFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap 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(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code LongIntMap}
*/
public static final class Builder extends
shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:LongIntMap)
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMapOrBuilder {
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongIntMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongIntMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
internalGetMutableMapField().clear();
return this;
}
@java.lang.Override
public shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongIntMap_descriptor;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap.getDefaultInstance();
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap build() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap buildPartial() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap result = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap(this);
int from_bitField0_ = bitField0_;
result.mapField_ = internalGetMapField();
result.mapField_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
shade.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
shade.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(shade.protobuf.Message other) {
if (other instanceof com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap other) {
if (other == com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap.getDefaultInstance()) return this;
internalGetMutableMapField().mergeFrom(
other.internalGetMapField());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private shade.protobuf.MapField<
java.lang.Long, java.lang.Integer> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
private shade.protobuf.MapField
internalGetMutableMapField() {
onChanged();;
if (mapField_ == null) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
if (!mapField_.isMutable()) {
mapField_ = mapField_.copy();
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<int64, int32> map_field = 1;
*/
public boolean containsMapField(
long key) {
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<int64, int32> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<int64, int32> map_field = 1;
*/
public int getMapFieldOrDefault(
long key,
int defaultValue) {
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<int64, int32> map_field = 1;
*/
public int getMapFieldOrThrow(
long key) {
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMapField() {
internalGetMutableMapField().getMutableMap()
.clear();
return this;
}
/**
* map<int64, int32> map_field = 1;
*/
public Builder removeMapField(
long key) {
internalGetMutableMapField().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMapField() {
return internalGetMutableMapField().getMutableMap();
}
/**
* map<int64, int32> map_field = 1;
*/
public Builder putMapField(
long key,
int value) {
internalGetMutableMapField().getMutableMap()
.put(key, value);
return this;
}
/**
* map<int64, int32> map_field = 1;
*/
public Builder putAllMapField(
java.util.Map values) {
internalGetMutableMapField().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:LongIntMap)
}
// @@protoc_insertion_point(class_scope:LongIntMap)
private static final com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap();
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final shade.protobuf.Parser
PARSER = new shade.protobuf.AbstractParser() {
@java.lang.Override
public LongIntMap parsePartialFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return new LongIntMap(input, extensionRegistry);
}
};
public static shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongIntMap getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LongLongMapOrBuilder extends
// @@protoc_insertion_point(interface_extends:LongLongMap)
shade.protobuf.MessageOrBuilder {
/**
* map<int64, int64> map_field = 1;
*/
int getMapFieldCount();
/**
* map<int64, int64> map_field = 1;
*/
boolean containsMapField(
long key);
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMapField();
/**
* map<int64, int64> map_field = 1;
*/
java.util.Map
getMapFieldMap();
/**
* map<int64, int64> map_field = 1;
*/
long getMapFieldOrDefault(
long key,
long defaultValue);
/**
* map<int64, int64> map_field = 1;
*/
long getMapFieldOrThrow(
long key);
}
/**
* Protobuf type {@code LongLongMap}
*/
public static final class LongLongMap extends
shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:LongLongMap)
LongLongMapOrBuilder {
private static final long serialVersionUID = 0L;
// Use LongLongMap.newBuilder() to construct.
private LongLongMap(shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LongLongMap() {
}
@java.lang.Override
public final shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LongLongMap(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
shade.protobuf.UnknownFieldSet.Builder unknownFields =
shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
shade.protobuf.MapEntry
mapField__ = input.readMessage(
MapFieldDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
mapField_.getMutableMap().put(
mapField__.getKey(), mapField__.getValue());
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongLongMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongLongMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap.Builder.class);
}
public static final int MAP_FIELD_FIELD_NUMBER = 1;
private static final class MapFieldDefaultEntryHolder {
static final shade.protobuf.MapEntry<
java.lang.Long, java.lang.Long> defaultEntry =
shade.protobuf.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongLongMap_MapFieldEntry_descriptor,
shade.protobuf.WireFormat.FieldType.INT64,
0L,
shade.protobuf.WireFormat.FieldType.INT64,
0L);
}
private shade.protobuf.MapField<
java.lang.Long, java.lang.Long> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<int64, int64> map_field = 1;
*/
public boolean containsMapField(
long key) {
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<int64, int64> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<int64, int64> map_field = 1;
*/
public long getMapFieldOrDefault(
long key,
long defaultValue) {
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<int64, int64> map_field = 1;
*/
public long getMapFieldOrThrow(
long key) {
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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(shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
shade.protobuf.GeneratedMessageV3
.serializeLongMapTo(
output,
internalGetMapField(),
MapFieldDefaultEntryHolder.defaultEntry,
1);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetMapField().getMap().entrySet()) {
shade.protobuf.MapEntry
mapField__ = MapFieldDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf.CodedOutputStream
.computeMessageSize(1, mapField__);
}
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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap other = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap) obj;
boolean result = true;
result = result && internalGetMapField().equals(
other.internalGetMapField());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetMapField().getMap().isEmpty()) {
hash = (37 * hash) + MAP_FIELD_FIELD_NUMBER;
hash = (53 * hash) + internalGetMapField().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap parseFrom(
java.nio.ByteBuffer data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap parseFrom(
shade.protobuf.ByteString data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap parseFrom(
shade.protobuf.ByteString data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap parseFrom(byte[] data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap parseFrom(
byte[] data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap parseFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap parseFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap parseDelimitedFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap parseFrom(
shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap parseFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap 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(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code LongLongMap}
*/
public static final class Builder extends
shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:LongLongMap)
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMapOrBuilder {
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongLongMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongLongMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
internalGetMutableMapField().clear();
return this;
}
@java.lang.Override
public shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongLongMap_descriptor;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap.getDefaultInstance();
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap build() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap buildPartial() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap result = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap(this);
int from_bitField0_ = bitField0_;
result.mapField_ = internalGetMapField();
result.mapField_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
shade.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
shade.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(shade.protobuf.Message other) {
if (other instanceof com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap other) {
if (other == com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap.getDefaultInstance()) return this;
internalGetMutableMapField().mergeFrom(
other.internalGetMapField());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private shade.protobuf.MapField<
java.lang.Long, java.lang.Long> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
private shade.protobuf.MapField
internalGetMutableMapField() {
onChanged();;
if (mapField_ == null) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
if (!mapField_.isMutable()) {
mapField_ = mapField_.copy();
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<int64, int64> map_field = 1;
*/
public boolean containsMapField(
long key) {
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<int64, int64> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<int64, int64> map_field = 1;
*/
public long getMapFieldOrDefault(
long key,
long defaultValue) {
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<int64, int64> map_field = 1;
*/
public long getMapFieldOrThrow(
long key) {
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMapField() {
internalGetMutableMapField().getMutableMap()
.clear();
return this;
}
/**
* map<int64, int64> map_field = 1;
*/
public Builder removeMapField(
long key) {
internalGetMutableMapField().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMapField() {
return internalGetMutableMapField().getMutableMap();
}
/**
* map<int64, int64> map_field = 1;
*/
public Builder putMapField(
long key,
long value) {
internalGetMutableMapField().getMutableMap()
.put(key, value);
return this;
}
/**
* map<int64, int64> map_field = 1;
*/
public Builder putAllMapField(
java.util.Map values) {
internalGetMutableMapField().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:LongLongMap)
}
// @@protoc_insertion_point(class_scope:LongLongMap)
private static final com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap();
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final shade.protobuf.Parser
PARSER = new shade.protobuf.AbstractParser() {
@java.lang.Override
public LongLongMap parsePartialFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return new LongLongMap(input, extensionRegistry);
}
};
public static shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongLongMap getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LongFloatMapOrBuilder extends
// @@protoc_insertion_point(interface_extends:LongFloatMap)
shade.protobuf.MessageOrBuilder {
/**
* map<int64, float> map_field = 1;
*/
int getMapFieldCount();
/**
* map<int64, float> map_field = 1;
*/
boolean containsMapField(
long key);
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMapField();
/**
* map<int64, float> map_field = 1;
*/
java.util.Map
getMapFieldMap();
/**
* map<int64, float> map_field = 1;
*/
float getMapFieldOrDefault(
long key,
float defaultValue);
/**
* map<int64, float> map_field = 1;
*/
float getMapFieldOrThrow(
long key);
}
/**
* Protobuf type {@code LongFloatMap}
*/
public static final class LongFloatMap extends
shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:LongFloatMap)
LongFloatMapOrBuilder {
private static final long serialVersionUID = 0L;
// Use LongFloatMap.newBuilder() to construct.
private LongFloatMap(shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LongFloatMap() {
}
@java.lang.Override
public final shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LongFloatMap(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
shade.protobuf.UnknownFieldSet.Builder unknownFields =
shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
shade.protobuf.MapEntry
mapField__ = input.readMessage(
MapFieldDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
mapField_.getMutableMap().put(
mapField__.getKey(), mapField__.getValue());
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongFloatMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongFloatMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap.Builder.class);
}
public static final int MAP_FIELD_FIELD_NUMBER = 1;
private static final class MapFieldDefaultEntryHolder {
static final shade.protobuf.MapEntry<
java.lang.Long, java.lang.Float> defaultEntry =
shade.protobuf.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongFloatMap_MapFieldEntry_descriptor,
shade.protobuf.WireFormat.FieldType.INT64,
0L,
shade.protobuf.WireFormat.FieldType.FLOAT,
0F);
}
private shade.protobuf.MapField<
java.lang.Long, java.lang.Float> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<int64, float> map_field = 1;
*/
public boolean containsMapField(
long key) {
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<int64, float> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<int64, float> map_field = 1;
*/
public float getMapFieldOrDefault(
long key,
float defaultValue) {
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<int64, float> map_field = 1;
*/
public float getMapFieldOrThrow(
long key) {
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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(shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
shade.protobuf.GeneratedMessageV3
.serializeLongMapTo(
output,
internalGetMapField(),
MapFieldDefaultEntryHolder.defaultEntry,
1);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetMapField().getMap().entrySet()) {
shade.protobuf.MapEntry
mapField__ = MapFieldDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf.CodedOutputStream
.computeMessageSize(1, mapField__);
}
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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap other = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap) obj;
boolean result = true;
result = result && internalGetMapField().equals(
other.internalGetMapField());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetMapField().getMap().isEmpty()) {
hash = (37 * hash) + MAP_FIELD_FIELD_NUMBER;
hash = (53 * hash) + internalGetMapField().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap parseFrom(
java.nio.ByteBuffer data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap parseFrom(
shade.protobuf.ByteString data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap parseFrom(
shade.protobuf.ByteString data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap parseFrom(byte[] data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap parseFrom(
byte[] data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap parseFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap parseFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap parseDelimitedFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap parseFrom(
shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap parseFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap 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(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code LongFloatMap}
*/
public static final class Builder extends
shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:LongFloatMap)
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMapOrBuilder {
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongFloatMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongFloatMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
internalGetMutableMapField().clear();
return this;
}
@java.lang.Override
public shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongFloatMap_descriptor;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap.getDefaultInstance();
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap build() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap buildPartial() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap result = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap(this);
int from_bitField0_ = bitField0_;
result.mapField_ = internalGetMapField();
result.mapField_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
shade.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
shade.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(shade.protobuf.Message other) {
if (other instanceof com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap other) {
if (other == com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap.getDefaultInstance()) return this;
internalGetMutableMapField().mergeFrom(
other.internalGetMapField());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private shade.protobuf.MapField<
java.lang.Long, java.lang.Float> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
private shade.protobuf.MapField
internalGetMutableMapField() {
onChanged();;
if (mapField_ == null) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
if (!mapField_.isMutable()) {
mapField_ = mapField_.copy();
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<int64, float> map_field = 1;
*/
public boolean containsMapField(
long key) {
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<int64, float> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<int64, float> map_field = 1;
*/
public float getMapFieldOrDefault(
long key,
float defaultValue) {
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<int64, float> map_field = 1;
*/
public float getMapFieldOrThrow(
long key) {
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMapField() {
internalGetMutableMapField().getMutableMap()
.clear();
return this;
}
/**
* map<int64, float> map_field = 1;
*/
public Builder removeMapField(
long key) {
internalGetMutableMapField().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMapField() {
return internalGetMutableMapField().getMutableMap();
}
/**
* map<int64, float> map_field = 1;
*/
public Builder putMapField(
long key,
float value) {
internalGetMutableMapField().getMutableMap()
.put(key, value);
return this;
}
/**
* map<int64, float> map_field = 1;
*/
public Builder putAllMapField(
java.util.Map values) {
internalGetMutableMapField().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:LongFloatMap)
}
// @@protoc_insertion_point(class_scope:LongFloatMap)
private static final com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap();
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final shade.protobuf.Parser
PARSER = new shade.protobuf.AbstractParser() {
@java.lang.Override
public LongFloatMap parsePartialFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return new LongFloatMap(input, extensionRegistry);
}
};
public static shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongFloatMap getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LongDoubleMapOrBuilder extends
// @@protoc_insertion_point(interface_extends:LongDoubleMap)
shade.protobuf.MessageOrBuilder {
/**
* map<int64, double> map_field = 1;
*/
int getMapFieldCount();
/**
* map<int64, double> map_field = 1;
*/
boolean containsMapField(
long key);
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMapField();
/**
* map<int64, double> map_field = 1;
*/
java.util.Map
getMapFieldMap();
/**
* map<int64, double> map_field = 1;
*/
double getMapFieldOrDefault(
long key,
double defaultValue);
/**
* map<int64, double> map_field = 1;
*/
double getMapFieldOrThrow(
long key);
}
/**
* Protobuf type {@code LongDoubleMap}
*/
public static final class LongDoubleMap extends
shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:LongDoubleMap)
LongDoubleMapOrBuilder {
private static final long serialVersionUID = 0L;
// Use LongDoubleMap.newBuilder() to construct.
private LongDoubleMap(shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LongDoubleMap() {
}
@java.lang.Override
public final shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LongDoubleMap(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
shade.protobuf.UnknownFieldSet.Builder unknownFields =
shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
shade.protobuf.MapEntry
mapField__ = input.readMessage(
MapFieldDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
mapField_.getMutableMap().put(
mapField__.getKey(), mapField__.getValue());
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongDoubleMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongDoubleMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap.Builder.class);
}
public static final int MAP_FIELD_FIELD_NUMBER = 1;
private static final class MapFieldDefaultEntryHolder {
static final shade.protobuf.MapEntry<
java.lang.Long, java.lang.Double> defaultEntry =
shade.protobuf.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongDoubleMap_MapFieldEntry_descriptor,
shade.protobuf.WireFormat.FieldType.INT64,
0L,
shade.protobuf.WireFormat.FieldType.DOUBLE,
0D);
}
private shade.protobuf.MapField<
java.lang.Long, java.lang.Double> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<int64, double> map_field = 1;
*/
public boolean containsMapField(
long key) {
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<int64, double> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<int64, double> map_field = 1;
*/
public double getMapFieldOrDefault(
long key,
double defaultValue) {
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<int64, double> map_field = 1;
*/
public double getMapFieldOrThrow(
long key) {
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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(shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
shade.protobuf.GeneratedMessageV3
.serializeLongMapTo(
output,
internalGetMapField(),
MapFieldDefaultEntryHolder.defaultEntry,
1);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetMapField().getMap().entrySet()) {
shade.protobuf.MapEntry
mapField__ = MapFieldDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf.CodedOutputStream
.computeMessageSize(1, mapField__);
}
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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap other = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap) obj;
boolean result = true;
result = result && internalGetMapField().equals(
other.internalGetMapField());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetMapField().getMap().isEmpty()) {
hash = (37 * hash) + MAP_FIELD_FIELD_NUMBER;
hash = (53 * hash) + internalGetMapField().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap parseFrom(
java.nio.ByteBuffer data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap parseFrom(
shade.protobuf.ByteString data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap parseFrom(
shade.protobuf.ByteString data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap parseFrom(byte[] data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap parseFrom(
byte[] data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap parseFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap parseFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap parseDelimitedFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap parseFrom(
shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap parseFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap 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(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code LongDoubleMap}
*/
public static final class Builder extends
shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:LongDoubleMap)
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMapOrBuilder {
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongDoubleMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongDoubleMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
internalGetMutableMapField().clear();
return this;
}
@java.lang.Override
public shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_LongDoubleMap_descriptor;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap.getDefaultInstance();
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap build() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap buildPartial() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap result = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap(this);
int from_bitField0_ = bitField0_;
result.mapField_ = internalGetMapField();
result.mapField_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
shade.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
shade.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(shade.protobuf.Message other) {
if (other instanceof com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap other) {
if (other == com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap.getDefaultInstance()) return this;
internalGetMutableMapField().mergeFrom(
other.internalGetMapField());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private shade.protobuf.MapField<
java.lang.Long, java.lang.Double> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
private shade.protobuf.MapField
internalGetMutableMapField() {
onChanged();;
if (mapField_ == null) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
if (!mapField_.isMutable()) {
mapField_ = mapField_.copy();
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<int64, double> map_field = 1;
*/
public boolean containsMapField(
long key) {
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<int64, double> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<int64, double> map_field = 1;
*/
public double getMapFieldOrDefault(
long key,
double defaultValue) {
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<int64, double> map_field = 1;
*/
public double getMapFieldOrThrow(
long key) {
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMapField() {
internalGetMutableMapField().getMutableMap()
.clear();
return this;
}
/**
* map<int64, double> map_field = 1;
*/
public Builder removeMapField(
long key) {
internalGetMutableMapField().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMapField() {
return internalGetMutableMapField().getMutableMap();
}
/**
* map<int64, double> map_field = 1;
*/
public Builder putMapField(
long key,
double value) {
internalGetMutableMapField().getMutableMap()
.put(key, value);
return this;
}
/**
* map<int64, double> map_field = 1;
*/
public Builder putAllMapField(
java.util.Map values) {
internalGetMutableMapField().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:LongDoubleMap)
}
// @@protoc_insertion_point(class_scope:LongDoubleMap)
private static final com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap();
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final shade.protobuf.Parser
PARSER = new shade.protobuf.AbstractParser() {
@java.lang.Override
public LongDoubleMap parsePartialFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return new LongDoubleMap(input, extensionRegistry);
}
};
public static shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.LongDoubleMap getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StringStringMapOrBuilder extends
// @@protoc_insertion_point(interface_extends:StringStringMap)
shade.protobuf.MessageOrBuilder {
/**
* map<string, string> map_field = 1;
*/
int getMapFieldCount();
/**
* map<string, string> map_field = 1;
*/
boolean containsMapField(
java.lang.String key);
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMapField();
/**
* map<string, string> map_field = 1;
*/
java.util.Map
getMapFieldMap();
/**
* map<string, string> map_field = 1;
*/
java.lang.String getMapFieldOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* map<string, string> map_field = 1;
*/
java.lang.String getMapFieldOrThrow(
java.lang.String key);
}
/**
*
*string->others
*
*
* Protobuf type {@code StringStringMap}
*/
public static final class StringStringMap extends
shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:StringStringMap)
StringStringMapOrBuilder {
private static final long serialVersionUID = 0L;
// Use StringStringMap.newBuilder() to construct.
private StringStringMap(shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StringStringMap() {
}
@java.lang.Override
public final shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StringStringMap(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
shade.protobuf.UnknownFieldSet.Builder unknownFields =
shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
shade.protobuf.MapEntry
mapField__ = input.readMessage(
MapFieldDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
mapField_.getMutableMap().put(
mapField__.getKey(), mapField__.getValue());
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringStringMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringStringMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap.Builder.class);
}
public static final int MAP_FIELD_FIELD_NUMBER = 1;
private static final class MapFieldDefaultEntryHolder {
static final shade.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
shade.protobuf.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringStringMap_MapFieldEntry_descriptor,
shade.protobuf.WireFormat.FieldType.STRING,
"",
shade.protobuf.WireFormat.FieldType.STRING,
"");
}
private shade.protobuf.MapField<
java.lang.String, java.lang.String> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<string, string> map_field = 1;
*/
public boolean containsMapField(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<string, string> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<string, string> map_field = 1;
*/
public java.lang.String getMapFieldOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> map_field = 1;
*/
public java.lang.String getMapFieldOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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(shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
shade.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMapField(),
MapFieldDefaultEntryHolder.defaultEntry,
1);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetMapField().getMap().entrySet()) {
shade.protobuf.MapEntry
mapField__ = MapFieldDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf.CodedOutputStream
.computeMessageSize(1, mapField__);
}
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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap other = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap) obj;
boolean result = true;
result = result && internalGetMapField().equals(
other.internalGetMapField());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetMapField().getMap().isEmpty()) {
hash = (37 * hash) + MAP_FIELD_FIELD_NUMBER;
hash = (53 * hash) + internalGetMapField().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap parseFrom(
java.nio.ByteBuffer data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap parseFrom(
shade.protobuf.ByteString data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap parseFrom(
shade.protobuf.ByteString data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap parseFrom(byte[] data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap parseFrom(
byte[] data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap parseFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap parseFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap parseDelimitedFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap parseFrom(
shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap parseFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap 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(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*string->others
*
*
* Protobuf type {@code StringStringMap}
*/
public static final class Builder extends
shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:StringStringMap)
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMapOrBuilder {
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringStringMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringStringMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
internalGetMutableMapField().clear();
return this;
}
@java.lang.Override
public shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringStringMap_descriptor;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap.getDefaultInstance();
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap build() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap buildPartial() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap result = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap(this);
int from_bitField0_ = bitField0_;
result.mapField_ = internalGetMapField();
result.mapField_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
shade.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
shade.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(shade.protobuf.Message other) {
if (other instanceof com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap other) {
if (other == com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap.getDefaultInstance()) return this;
internalGetMutableMapField().mergeFrom(
other.internalGetMapField());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private shade.protobuf.MapField<
java.lang.String, java.lang.String> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
private shade.protobuf.MapField
internalGetMutableMapField() {
onChanged();;
if (mapField_ == null) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
if (!mapField_.isMutable()) {
mapField_ = mapField_.copy();
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<string, string> map_field = 1;
*/
public boolean containsMapField(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<string, string> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<string, string> map_field = 1;
*/
public java.lang.String getMapFieldOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> map_field = 1;
*/
public java.lang.String getMapFieldOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMapField() {
internalGetMutableMapField().getMutableMap()
.clear();
return this;
}
/**
* map<string, string> map_field = 1;
*/
public Builder removeMapField(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMapField().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMapField() {
return internalGetMutableMapField().getMutableMap();
}
/**
* map<string, string> map_field = 1;
*/
public Builder putMapField(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMapField().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, string> map_field = 1;
*/
public Builder putAllMapField(
java.util.Map values) {
internalGetMutableMapField().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:StringStringMap)
}
// @@protoc_insertion_point(class_scope:StringStringMap)
private static final com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap();
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final shade.protobuf.Parser
PARSER = new shade.protobuf.AbstractParser() {
@java.lang.Override
public StringStringMap parsePartialFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return new StringStringMap(input, extensionRegistry);
}
};
public static shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringStringMap getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StringIntMapOrBuilder extends
// @@protoc_insertion_point(interface_extends:StringIntMap)
shade.protobuf.MessageOrBuilder {
/**
* map<string, int32> map_field = 1;
*/
int getMapFieldCount();
/**
* map<string, int32> map_field = 1;
*/
boolean containsMapField(
java.lang.String key);
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMapField();
/**
* map<string, int32> map_field = 1;
*/
java.util.Map
getMapFieldMap();
/**
* map<string, int32> map_field = 1;
*/
int getMapFieldOrDefault(
java.lang.String key,
int defaultValue);
/**
* map<string, int32> map_field = 1;
*/
int getMapFieldOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code StringIntMap}
*/
public static final class StringIntMap extends
shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:StringIntMap)
StringIntMapOrBuilder {
private static final long serialVersionUID = 0L;
// Use StringIntMap.newBuilder() to construct.
private StringIntMap(shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StringIntMap() {
}
@java.lang.Override
public final shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StringIntMap(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
shade.protobuf.UnknownFieldSet.Builder unknownFields =
shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
shade.protobuf.MapEntry
mapField__ = input.readMessage(
MapFieldDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
mapField_.getMutableMap().put(
mapField__.getKey(), mapField__.getValue());
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringIntMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringIntMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap.Builder.class);
}
public static final int MAP_FIELD_FIELD_NUMBER = 1;
private static final class MapFieldDefaultEntryHolder {
static final shade.protobuf.MapEntry<
java.lang.String, java.lang.Integer> defaultEntry =
shade.protobuf.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringIntMap_MapFieldEntry_descriptor,
shade.protobuf.WireFormat.FieldType.STRING,
"",
shade.protobuf.WireFormat.FieldType.INT32,
0);
}
private shade.protobuf.MapField<
java.lang.String, java.lang.Integer> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<string, int32> map_field = 1;
*/
public boolean containsMapField(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<string, int32> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<string, int32> map_field = 1;
*/
public int getMapFieldOrDefault(
java.lang.String key,
int defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, int32> map_field = 1;
*/
public int getMapFieldOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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(shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
shade.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMapField(),
MapFieldDefaultEntryHolder.defaultEntry,
1);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetMapField().getMap().entrySet()) {
shade.protobuf.MapEntry
mapField__ = MapFieldDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf.CodedOutputStream
.computeMessageSize(1, mapField__);
}
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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap other = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap) obj;
boolean result = true;
result = result && internalGetMapField().equals(
other.internalGetMapField());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetMapField().getMap().isEmpty()) {
hash = (37 * hash) + MAP_FIELD_FIELD_NUMBER;
hash = (53 * hash) + internalGetMapField().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap parseFrom(
java.nio.ByteBuffer data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap parseFrom(
shade.protobuf.ByteString data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap parseFrom(
shade.protobuf.ByteString data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap parseFrom(byte[] data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap parseFrom(
byte[] data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap parseFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap parseFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap parseDelimitedFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap parseFrom(
shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap parseFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap 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(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code StringIntMap}
*/
public static final class Builder extends
shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:StringIntMap)
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMapOrBuilder {
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringIntMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringIntMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
internalGetMutableMapField().clear();
return this;
}
@java.lang.Override
public shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringIntMap_descriptor;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap.getDefaultInstance();
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap build() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap buildPartial() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap result = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap(this);
int from_bitField0_ = bitField0_;
result.mapField_ = internalGetMapField();
result.mapField_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
shade.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
shade.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(shade.protobuf.Message other) {
if (other instanceof com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap other) {
if (other == com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap.getDefaultInstance()) return this;
internalGetMutableMapField().mergeFrom(
other.internalGetMapField());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private shade.protobuf.MapField<
java.lang.String, java.lang.Integer> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
private shade.protobuf.MapField
internalGetMutableMapField() {
onChanged();;
if (mapField_ == null) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
if (!mapField_.isMutable()) {
mapField_ = mapField_.copy();
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<string, int32> map_field = 1;
*/
public boolean containsMapField(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<string, int32> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<string, int32> map_field = 1;
*/
public int getMapFieldOrDefault(
java.lang.String key,
int defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, int32> map_field = 1;
*/
public int getMapFieldOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMapField() {
internalGetMutableMapField().getMutableMap()
.clear();
return this;
}
/**
* map<string, int32> map_field = 1;
*/
public Builder removeMapField(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMapField().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMapField() {
return internalGetMutableMapField().getMutableMap();
}
/**
* map<string, int32> map_field = 1;
*/
public Builder putMapField(
java.lang.String key,
int value) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMapField().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, int32> map_field = 1;
*/
public Builder putAllMapField(
java.util.Map values) {
internalGetMutableMapField().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:StringIntMap)
}
// @@protoc_insertion_point(class_scope:StringIntMap)
private static final com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap();
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final shade.protobuf.Parser
PARSER = new shade.protobuf.AbstractParser() {
@java.lang.Override
public StringIntMap parsePartialFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return new StringIntMap(input, extensionRegistry);
}
};
public static shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringIntMap getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StringLongMapOrBuilder extends
// @@protoc_insertion_point(interface_extends:StringLongMap)
shade.protobuf.MessageOrBuilder {
/**
* map<string, int64> map_field = 1;
*/
int getMapFieldCount();
/**
* map<string, int64> map_field = 1;
*/
boolean containsMapField(
java.lang.String key);
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMapField();
/**
* map<string, int64> map_field = 1;
*/
java.util.Map
getMapFieldMap();
/**
* map<string, int64> map_field = 1;
*/
long getMapFieldOrDefault(
java.lang.String key,
long defaultValue);
/**
* map<string, int64> map_field = 1;
*/
long getMapFieldOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code StringLongMap}
*/
public static final class StringLongMap extends
shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:StringLongMap)
StringLongMapOrBuilder {
private static final long serialVersionUID = 0L;
// Use StringLongMap.newBuilder() to construct.
private StringLongMap(shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StringLongMap() {
}
@java.lang.Override
public final shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StringLongMap(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
shade.protobuf.UnknownFieldSet.Builder unknownFields =
shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
shade.protobuf.MapEntry
mapField__ = input.readMessage(
MapFieldDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
mapField_.getMutableMap().put(
mapField__.getKey(), mapField__.getValue());
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringLongMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringLongMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap.Builder.class);
}
public static final int MAP_FIELD_FIELD_NUMBER = 1;
private static final class MapFieldDefaultEntryHolder {
static final shade.protobuf.MapEntry<
java.lang.String, java.lang.Long> defaultEntry =
shade.protobuf.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringLongMap_MapFieldEntry_descriptor,
shade.protobuf.WireFormat.FieldType.STRING,
"",
shade.protobuf.WireFormat.FieldType.INT64,
0L);
}
private shade.protobuf.MapField<
java.lang.String, java.lang.Long> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<string, int64> map_field = 1;
*/
public boolean containsMapField(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<string, int64> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<string, int64> map_field = 1;
*/
public long getMapFieldOrDefault(
java.lang.String key,
long defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, int64> map_field = 1;
*/
public long getMapFieldOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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(shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
shade.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMapField(),
MapFieldDefaultEntryHolder.defaultEntry,
1);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetMapField().getMap().entrySet()) {
shade.protobuf.MapEntry
mapField__ = MapFieldDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf.CodedOutputStream
.computeMessageSize(1, mapField__);
}
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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap other = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap) obj;
boolean result = true;
result = result && internalGetMapField().equals(
other.internalGetMapField());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetMapField().getMap().isEmpty()) {
hash = (37 * hash) + MAP_FIELD_FIELD_NUMBER;
hash = (53 * hash) + internalGetMapField().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap parseFrom(
java.nio.ByteBuffer data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap parseFrom(
shade.protobuf.ByteString data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap parseFrom(
shade.protobuf.ByteString data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap parseFrom(byte[] data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap parseFrom(
byte[] data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap parseFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap parseFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap parseDelimitedFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap parseFrom(
shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap parseFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap 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(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code StringLongMap}
*/
public static final class Builder extends
shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:StringLongMap)
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMapOrBuilder {
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringLongMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringLongMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
internalGetMutableMapField().clear();
return this;
}
@java.lang.Override
public shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringLongMap_descriptor;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap.getDefaultInstance();
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap build() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap buildPartial() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap result = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap(this);
int from_bitField0_ = bitField0_;
result.mapField_ = internalGetMapField();
result.mapField_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
shade.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
shade.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(shade.protobuf.Message other) {
if (other instanceof com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap other) {
if (other == com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap.getDefaultInstance()) return this;
internalGetMutableMapField().mergeFrom(
other.internalGetMapField());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private shade.protobuf.MapField<
java.lang.String, java.lang.Long> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
private shade.protobuf.MapField
internalGetMutableMapField() {
onChanged();;
if (mapField_ == null) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
if (!mapField_.isMutable()) {
mapField_ = mapField_.copy();
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<string, int64> map_field = 1;
*/
public boolean containsMapField(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<string, int64> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<string, int64> map_field = 1;
*/
public long getMapFieldOrDefault(
java.lang.String key,
long defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, int64> map_field = 1;
*/
public long getMapFieldOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMapField() {
internalGetMutableMapField().getMutableMap()
.clear();
return this;
}
/**
* map<string, int64> map_field = 1;
*/
public Builder removeMapField(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMapField().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMapField() {
return internalGetMutableMapField().getMutableMap();
}
/**
* map<string, int64> map_field = 1;
*/
public Builder putMapField(
java.lang.String key,
long value) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMapField().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, int64> map_field = 1;
*/
public Builder putAllMapField(
java.util.Map values) {
internalGetMutableMapField().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:StringLongMap)
}
// @@protoc_insertion_point(class_scope:StringLongMap)
private static final com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap();
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final shade.protobuf.Parser
PARSER = new shade.protobuf.AbstractParser() {
@java.lang.Override
public StringLongMap parsePartialFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return new StringLongMap(input, extensionRegistry);
}
};
public static shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringLongMap getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StringFloatMapOrBuilder extends
// @@protoc_insertion_point(interface_extends:StringFloatMap)
shade.protobuf.MessageOrBuilder {
/**
* map<string, float> map_field = 1;
*/
int getMapFieldCount();
/**
* map<string, float> map_field = 1;
*/
boolean containsMapField(
java.lang.String key);
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMapField();
/**
* map<string, float> map_field = 1;
*/
java.util.Map
getMapFieldMap();
/**
* map<string, float> map_field = 1;
*/
float getMapFieldOrDefault(
java.lang.String key,
float defaultValue);
/**
* map<string, float> map_field = 1;
*/
float getMapFieldOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code StringFloatMap}
*/
public static final class StringFloatMap extends
shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:StringFloatMap)
StringFloatMapOrBuilder {
private static final long serialVersionUID = 0L;
// Use StringFloatMap.newBuilder() to construct.
private StringFloatMap(shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StringFloatMap() {
}
@java.lang.Override
public final shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StringFloatMap(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
shade.protobuf.UnknownFieldSet.Builder unknownFields =
shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
shade.protobuf.MapEntry
mapField__ = input.readMessage(
MapFieldDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
mapField_.getMutableMap().put(
mapField__.getKey(), mapField__.getValue());
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringFloatMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringFloatMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap.Builder.class);
}
public static final int MAP_FIELD_FIELD_NUMBER = 1;
private static final class MapFieldDefaultEntryHolder {
static final shade.protobuf.MapEntry<
java.lang.String, java.lang.Float> defaultEntry =
shade.protobuf.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringFloatMap_MapFieldEntry_descriptor,
shade.protobuf.WireFormat.FieldType.STRING,
"",
shade.protobuf.WireFormat.FieldType.FLOAT,
0F);
}
private shade.protobuf.MapField<
java.lang.String, java.lang.Float> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<string, float> map_field = 1;
*/
public boolean containsMapField(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<string, float> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<string, float> map_field = 1;
*/
public float getMapFieldOrDefault(
java.lang.String key,
float defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, float> map_field = 1;
*/
public float getMapFieldOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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(shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
shade.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMapField(),
MapFieldDefaultEntryHolder.defaultEntry,
1);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetMapField().getMap().entrySet()) {
shade.protobuf.MapEntry
mapField__ = MapFieldDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf.CodedOutputStream
.computeMessageSize(1, mapField__);
}
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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap other = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap) obj;
boolean result = true;
result = result && internalGetMapField().equals(
other.internalGetMapField());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetMapField().getMap().isEmpty()) {
hash = (37 * hash) + MAP_FIELD_FIELD_NUMBER;
hash = (53 * hash) + internalGetMapField().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap parseFrom(
java.nio.ByteBuffer data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap parseFrom(
shade.protobuf.ByteString data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap parseFrom(
shade.protobuf.ByteString data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap parseFrom(byte[] data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap parseFrom(
byte[] data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap parseFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap parseFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap parseDelimitedFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap parseFrom(
shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap parseFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap 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(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code StringFloatMap}
*/
public static final class Builder extends
shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:StringFloatMap)
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMapOrBuilder {
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringFloatMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringFloatMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
internalGetMutableMapField().clear();
return this;
}
@java.lang.Override
public shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringFloatMap_descriptor;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap.getDefaultInstance();
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap build() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap buildPartial() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap result = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap(this);
int from_bitField0_ = bitField0_;
result.mapField_ = internalGetMapField();
result.mapField_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
shade.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
shade.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(shade.protobuf.Message other) {
if (other instanceof com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap other) {
if (other == com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap.getDefaultInstance()) return this;
internalGetMutableMapField().mergeFrom(
other.internalGetMapField());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private shade.protobuf.MapField<
java.lang.String, java.lang.Float> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
private shade.protobuf.MapField
internalGetMutableMapField() {
onChanged();;
if (mapField_ == null) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
if (!mapField_.isMutable()) {
mapField_ = mapField_.copy();
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<string, float> map_field = 1;
*/
public boolean containsMapField(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<string, float> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<string, float> map_field = 1;
*/
public float getMapFieldOrDefault(
java.lang.String key,
float defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, float> map_field = 1;
*/
public float getMapFieldOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMapField() {
internalGetMutableMapField().getMutableMap()
.clear();
return this;
}
/**
* map<string, float> map_field = 1;
*/
public Builder removeMapField(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMapField().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMapField() {
return internalGetMutableMapField().getMutableMap();
}
/**
* map<string, float> map_field = 1;
*/
public Builder putMapField(
java.lang.String key,
float value) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMapField().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, float> map_field = 1;
*/
public Builder putAllMapField(
java.util.Map values) {
internalGetMutableMapField().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:StringFloatMap)
}
// @@protoc_insertion_point(class_scope:StringFloatMap)
private static final com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap();
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final shade.protobuf.Parser
PARSER = new shade.protobuf.AbstractParser() {
@java.lang.Override
public StringFloatMap parsePartialFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return new StringFloatMap(input, extensionRegistry);
}
};
public static shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringFloatMap getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StringDoubleMapOrBuilder extends
// @@protoc_insertion_point(interface_extends:StringDoubleMap)
shade.protobuf.MessageOrBuilder {
/**
* map<string, double> map_field = 1;
*/
int getMapFieldCount();
/**
* map<string, double> map_field = 1;
*/
boolean containsMapField(
java.lang.String key);
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMapField();
/**
* map<string, double> map_field = 1;
*/
java.util.Map
getMapFieldMap();
/**
* map<string, double> map_field = 1;
*/
double getMapFieldOrDefault(
java.lang.String key,
double defaultValue);
/**
* map<string, double> map_field = 1;
*/
double getMapFieldOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code StringDoubleMap}
*/
public static final class StringDoubleMap extends
shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:StringDoubleMap)
StringDoubleMapOrBuilder {
private static final long serialVersionUID = 0L;
// Use StringDoubleMap.newBuilder() to construct.
private StringDoubleMap(shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StringDoubleMap() {
}
@java.lang.Override
public final shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StringDoubleMap(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
shade.protobuf.UnknownFieldSet.Builder unknownFields =
shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
shade.protobuf.MapEntry
mapField__ = input.readMessage(
MapFieldDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
mapField_.getMutableMap().put(
mapField__.getKey(), mapField__.getValue());
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringDoubleMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringDoubleMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap.Builder.class);
}
public static final int MAP_FIELD_FIELD_NUMBER = 1;
private static final class MapFieldDefaultEntryHolder {
static final shade.protobuf.MapEntry<
java.lang.String, java.lang.Double> defaultEntry =
shade.protobuf.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringDoubleMap_MapFieldEntry_descriptor,
shade.protobuf.WireFormat.FieldType.STRING,
"",
shade.protobuf.WireFormat.FieldType.DOUBLE,
0D);
}
private shade.protobuf.MapField<
java.lang.String, java.lang.Double> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<string, double> map_field = 1;
*/
public boolean containsMapField(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<string, double> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<string, double> map_field = 1;
*/
public double getMapFieldOrDefault(
java.lang.String key,
double defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, double> map_field = 1;
*/
public double getMapFieldOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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(shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
shade.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMapField(),
MapFieldDefaultEntryHolder.defaultEntry,
1);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetMapField().getMap().entrySet()) {
shade.protobuf.MapEntry
mapField__ = MapFieldDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf.CodedOutputStream
.computeMessageSize(1, mapField__);
}
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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap other = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap) obj;
boolean result = true;
result = result && internalGetMapField().equals(
other.internalGetMapField());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetMapField().getMap().isEmpty()) {
hash = (37 * hash) + MAP_FIELD_FIELD_NUMBER;
hash = (53 * hash) + internalGetMapField().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap parseFrom(
java.nio.ByteBuffer data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap parseFrom(
shade.protobuf.ByteString data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap parseFrom(
shade.protobuf.ByteString data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap parseFrom(byte[] data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap parseFrom(
byte[] data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap parseFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap parseFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap parseDelimitedFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap parseFrom(
shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap parseFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap 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(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code StringDoubleMap}
*/
public static final class Builder extends
shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:StringDoubleMap)
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMapOrBuilder {
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringDoubleMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected shade.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringDoubleMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap.Builder.class);
}
// Construct using com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
internalGetMutableMapField().clear();
return this;
}
@java.lang.Override
public shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_StringDoubleMap_descriptor;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap getDefaultInstanceForType() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap.getDefaultInstance();
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap build() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap buildPartial() {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap result = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap(this);
int from_bitField0_ = bitField0_;
result.mapField_ = internalGetMapField();
result.mapField_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
shade.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
shade.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(shade.protobuf.Message other) {
if (other instanceof com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap) {
return mergeFrom((com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap other) {
if (other == com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap.getDefaultInstance()) return this;
internalGetMutableMapField().mergeFrom(
other.internalGetMapField());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private shade.protobuf.MapField<
java.lang.String, java.lang.Double> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
private shade.protobuf.MapField
internalGetMutableMapField() {
onChanged();;
if (mapField_ == null) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
if (!mapField_.isMutable()) {
mapField_ = mapField_.copy();
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<string, double> map_field = 1;
*/
public boolean containsMapField(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<string, double> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<string, double> map_field = 1;
*/
public double getMapFieldOrDefault(
java.lang.String key,
double defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, double> map_field = 1;
*/
public double getMapFieldOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMapField() {
internalGetMutableMapField().getMutableMap()
.clear();
return this;
}
/**
* map<string, double> map_field = 1;
*/
public Builder removeMapField(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMapField().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMapField() {
return internalGetMutableMapField().getMutableMap();
}
/**
* map<string, double> map_field = 1;
*/
public Builder putMapField(
java.lang.String key,
double value) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMapField().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, double> map_field = 1;
*/
public Builder putAllMapField(
java.util.Map values) {
internalGetMutableMapField().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:StringDoubleMap)
}
// @@protoc_insertion_point(class_scope:StringDoubleMap)
private static final com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap();
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final shade.protobuf.Parser
PARSER = new shade.protobuf.AbstractParser() {
@java.lang.Override
public StringDoubleMap parsePartialFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return new StringDoubleMap(input, extensionRegistry);
}
};
public static shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.StringDoubleMap getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IntStringMapOrBuilder extends
// @@protoc_insertion_point(interface_extends:IntStringMap)
shade.protobuf.MessageOrBuilder {
/**
* map<int32, string> map_field = 1;
*/
int getMapFieldCount();
/**
* map<int32, string> map_field = 1;
*/
boolean containsMapField(
int key);
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMapField();
/**
* map<int32, string> map_field = 1;
*/
java.util.Map
getMapFieldMap();
/**
* map<int32, string> map_field = 1;
*/
java.lang.String getMapFieldOrDefault(
int key,
java.lang.String defaultValue);
/**
* map<int32, string> map_field = 1;
*/
java.lang.String getMapFieldOrThrow(
int key);
}
/**
*
*int32->others
*
*
* Protobuf type {@code IntStringMap}
*/
public static final class IntStringMap extends
shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:IntStringMap)
IntStringMapOrBuilder {
private static final long serialVersionUID = 0L;
// Use IntStringMap.newBuilder() to construct.
private IntStringMap(shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IntStringMap() {
}
@java.lang.Override
public final shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IntStringMap(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
shade.protobuf.UnknownFieldSet.Builder unknownFields =
shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
mapField_ = shade.protobuf.MapField.newMapField(
MapFieldDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
shade.protobuf.MapEntry
mapField__ = input.readMessage(
MapFieldDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
mapField_.getMutableMap().put(
mapField__.getKey(), mapField__.getValue());
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_IntStringMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected shade.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMapField();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_IntStringMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.IntStringMap.class, com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.IntStringMap.Builder.class);
}
public static final int MAP_FIELD_FIELD_NUMBER = 1;
private static final class MapFieldDefaultEntryHolder {
static final shade.protobuf.MapEntry<
java.lang.Integer, java.lang.String> defaultEntry =
shade.protobuf.MapEntry
.newDefaultInstance(
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.internal_static_IntStringMap_MapFieldEntry_descriptor,
shade.protobuf.WireFormat.FieldType.INT32,
0,
shade.protobuf.WireFormat.FieldType.STRING,
"");
}
private shade.protobuf.MapField<
java.lang.Integer, java.lang.String> mapField_;
private shade.protobuf.MapField
internalGetMapField() {
if (mapField_ == null) {
return shade.protobuf.MapField.emptyMapField(
MapFieldDefaultEntryHolder.defaultEntry);
}
return mapField_;
}
public int getMapFieldCount() {
return internalGetMapField().getMap().size();
}
/**
* map<int32, string> map_field = 1;
*/
public boolean containsMapField(
int key) {
return internalGetMapField().getMap().containsKey(key);
}
/**
* Use {@link #getMapFieldMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMapField() {
return getMapFieldMap();
}
/**
* map<int32, string> map_field = 1;
*/
public java.util.Map getMapFieldMap() {
return internalGetMapField().getMap();
}
/**
* map<int32, string> map_field = 1;
*/
public java.lang.String getMapFieldOrDefault(
int key,
java.lang.String defaultValue) {
java.util.Map map =
internalGetMapField().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<int32, string> map_field = 1;
*/
public java.lang.String getMapFieldOrThrow(
int key) {
java.util.Map map =
internalGetMapField().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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(shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
shade.protobuf.GeneratedMessageV3
.serializeIntegerMapTo(
output,
internalGetMapField(),
MapFieldDefaultEntryHolder.defaultEntry,
1);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetMapField().getMap().entrySet()) {
shade.protobuf.MapEntry
mapField__ = MapFieldDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += shade.protobuf.CodedOutputStream
.computeMessageSize(1, mapField__);
}
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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.IntStringMap)) {
return super.equals(obj);
}
com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.IntStringMap other = (com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.IntStringMap) obj;
boolean result = true;
result = result && internalGetMapField().equals(
other.internalGetMapField());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetMapField().getMap().isEmpty()) {
hash = (37 * hash) + MAP_FIELD_FIELD_NUMBER;
hash = (53 * hash) + internalGetMapField().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.IntStringMap parseFrom(
java.nio.ByteBuffer data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.IntStringMap parseFrom(
java.nio.ByteBuffer data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.IntStringMap parseFrom(
shade.protobuf.ByteString data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.IntStringMap parseFrom(
shade.protobuf.ByteString data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.IntStringMap parseFrom(byte[] data)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.IntStringMap parseFrom(
byte[] data,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.IntStringMap parseFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.IntStringMap parseFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.IntStringMap parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.IntStringMap parseDelimitedFrom(
java.io.InputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.IntStringMap parseFrom(
shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.IntStringMap parseFrom(
shade.protobuf.CodedInputStream input,
shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return shade.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.aliyun.openservices.eas.predict.proto.TorchRecPredictProtos.IntStringMap 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(
shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*