com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: fl_base.proto
package com.intel.analytics.bigdl.ppml.fl.generated;
public final class FlBaseProto {
private FlBaseProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code SIGNAL}
*/
public enum SIGNAL
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SUCCESS = 0;
*/
SUCCESS(0),
/**
* WAIT = 1;
*/
WAIT(1),
/**
* TIMEOUT = 2;
*/
TIMEOUT(2),
/**
* EMPTY_INPUT = 3;
*/
EMPTY_INPUT(3),
/**
* ERROR = 4;
*/
ERROR(4),
UNRECOGNIZED(-1),
;
/**
* SUCCESS = 0;
*/
public static final int SUCCESS_VALUE = 0;
/**
* WAIT = 1;
*/
public static final int WAIT_VALUE = 1;
/**
* TIMEOUT = 2;
*/
public static final int TIMEOUT_VALUE = 2;
/**
* EMPTY_INPUT = 3;
*/
public static final int EMPTY_INPUT_VALUE = 3;
/**
* ERROR = 4;
*/
public static final int ERROR_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SIGNAL valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static SIGNAL forNumber(int value) {
switch (value) {
case 0: return SUCCESS;
case 1: return WAIT;
case 2: return TIMEOUT;
case 3: return EMPTY_INPUT;
case 4: return ERROR;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SIGNAL> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SIGNAL findValueByNumber(int number) {
return SIGNAL.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.getDescriptor().getEnumTypes().get(0);
}
private static final SIGNAL[] VALUES = values();
public static SIGNAL valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private SIGNAL(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:SIGNAL)
}
public interface FloatTensorOrBuilder extends
// @@protoc_insertion_point(interface_extends:FloatTensor)
com.google.protobuf.MessageOrBuilder {
/**
* repeated int32 shape = 1;
* @return A list containing the shape.
*/
java.util.List getShapeList();
/**
* repeated int32 shape = 1;
* @return The count of shape.
*/
int getShapeCount();
/**
* repeated int32 shape = 1;
* @param index The index of the element to return.
* @return The shape at the given index.
*/
int getShape(int index);
/**
* repeated float tensor = 2;
* @return A list containing the tensor.
*/
java.util.List getTensorList();
/**
* repeated float tensor = 2;
* @return The count of tensor.
*/
int getTensorCount();
/**
* repeated float tensor = 2;
* @param index The index of the element to return.
* @return The tensor at the given index.
*/
float getTensor(int index);
/**
* string dtype = 3;
* @return The dtype.
*/
java.lang.String getDtype();
/**
* string dtype = 3;
* @return The bytes for dtype.
*/
com.google.protobuf.ByteString
getDtypeBytes();
}
/**
* Protobuf type {@code FloatTensor}
*/
public static final class FloatTensor extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:FloatTensor)
FloatTensorOrBuilder {
private static final long serialVersionUID = 0L;
// Use FloatTensor.newBuilder() to construct.
private FloatTensor(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FloatTensor() {
shape_ = emptyIntList();
tensor_ = emptyFloatList();
dtype_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FloatTensor();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FloatTensor(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
shape_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
shape_.addInt(input.readInt32());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
shape_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
shape_.addInt(input.readInt32());
}
input.popLimit(limit);
break;
}
case 21: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
tensor_ = newFloatList();
mutable_bitField0_ |= 0x00000002;
}
tensor_.addFloat(input.readFloat());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
tensor_ = newFloatList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
tensor_.addFloat(input.readFloat());
}
input.popLimit(limit);
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
dtype_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
shape_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
tensor_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.internal_static_FloatTensor_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.internal_static_FloatTensor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor.class, com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor.Builder.class);
}
public static final int SHAPE_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.IntList shape_;
/**
* repeated int32 shape = 1;
* @return A list containing the shape.
*/
@java.lang.Override
public java.util.List
getShapeList() {
return shape_;
}
/**
* repeated int32 shape = 1;
* @return The count of shape.
*/
public int getShapeCount() {
return shape_.size();
}
/**
* repeated int32 shape = 1;
* @param index The index of the element to return.
* @return The shape at the given index.
*/
public int getShape(int index) {
return shape_.getInt(index);
}
private int shapeMemoizedSerializedSize = -1;
public static final int TENSOR_FIELD_NUMBER = 2;
private com.google.protobuf.Internal.FloatList tensor_;
/**
* repeated float tensor = 2;
* @return A list containing the tensor.
*/
@java.lang.Override
public java.util.List
getTensorList() {
return tensor_;
}
/**
* repeated float tensor = 2;
* @return The count of tensor.
*/
public int getTensorCount() {
return tensor_.size();
}
/**
* repeated float tensor = 2;
* @param index The index of the element to return.
* @return The tensor at the given index.
*/
public float getTensor(int index) {
return tensor_.getFloat(index);
}
private int tensorMemoizedSerializedSize = -1;
public static final int DTYPE_FIELD_NUMBER = 3;
private volatile java.lang.Object dtype_;
/**
* string dtype = 3;
* @return The dtype.
*/
@java.lang.Override
public java.lang.String getDtype() {
java.lang.Object ref = dtype_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dtype_ = s;
return s;
}
}
/**
* string dtype = 3;
* @return The bytes for dtype.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDtypeBytes() {
java.lang.Object ref = dtype_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dtype_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getShapeList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(shapeMemoizedSerializedSize);
}
for (int i = 0; i < shape_.size(); i++) {
output.writeInt32NoTag(shape_.getInt(i));
}
if (getTensorList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(tensorMemoizedSerializedSize);
}
for (int i = 0; i < tensor_.size(); i++) {
output.writeFloatNoTag(tensor_.getFloat(i));
}
if (!getDtypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dtype_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < shape_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(shape_.getInt(i));
}
size += dataSize;
if (!getShapeList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
shapeMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 4 * getTensorList().size();
size += dataSize;
if (!getTensorList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
tensorMemoizedSerializedSize = dataSize;
}
if (!getDtypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dtype_);
}
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.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor)) {
return super.equals(obj);
}
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor other = (com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor) obj;
if (!getShapeList()
.equals(other.getShapeList())) return false;
if (!getTensorList()
.equals(other.getTensorList())) return false;
if (!getDtype()
.equals(other.getDtype())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getShapeCount() > 0) {
hash = (37 * hash) + SHAPE_FIELD_NUMBER;
hash = (53 * hash) + getShapeList().hashCode();
}
if (getTensorCount() > 0) {
hash = (37 * hash) + TENSOR_FIELD_NUMBER;
hash = (53 * hash) + getTensorList().hashCode();
}
hash = (37 * hash) + DTYPE_FIELD_NUMBER;
hash = (53 * hash) + getDtype().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code FloatTensor}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:FloatTensor)
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.internal_static_FloatTensor_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.internal_static_FloatTensor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor.class, com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor.Builder.class);
}
// Construct using com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
shape_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
tensor_ = emptyFloatList();
bitField0_ = (bitField0_ & ~0x00000002);
dtype_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.internal_static_FloatTensor_descriptor;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor getDefaultInstanceForType() {
return com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor.getDefaultInstance();
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor build() {
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor buildPartial() {
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor result = new com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
shape_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.shape_ = shape_;
if (((bitField0_ & 0x00000002) != 0)) {
tensor_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.tensor_ = tensor_;
result.dtype_ = dtype_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor) {
return mergeFrom((com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor other) {
if (other == com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor.getDefaultInstance()) return this;
if (!other.shape_.isEmpty()) {
if (shape_.isEmpty()) {
shape_ = other.shape_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureShapeIsMutable();
shape_.addAll(other.shape_);
}
onChanged();
}
if (!other.tensor_.isEmpty()) {
if (tensor_.isEmpty()) {
tensor_ = other.tensor_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTensorIsMutable();
tensor_.addAll(other.tensor_);
}
onChanged();
}
if (!other.getDtype().isEmpty()) {
dtype_ = other.dtype_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.IntList shape_ = emptyIntList();
private void ensureShapeIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
shape_ = mutableCopy(shape_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated int32 shape = 1;
* @return A list containing the shape.
*/
public java.util.List
getShapeList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(shape_) : shape_;
}
/**
* repeated int32 shape = 1;
* @return The count of shape.
*/
public int getShapeCount() {
return shape_.size();
}
/**
* repeated int32 shape = 1;
* @param index The index of the element to return.
* @return The shape at the given index.
*/
public int getShape(int index) {
return shape_.getInt(index);
}
/**
* repeated int32 shape = 1;
* @param index The index to set the value at.
* @param value The shape to set.
* @return This builder for chaining.
*/
public Builder setShape(
int index, int value) {
ensureShapeIsMutable();
shape_.setInt(index, value);
onChanged();
return this;
}
/**
* repeated int32 shape = 1;
* @param value The shape to add.
* @return This builder for chaining.
*/
public Builder addShape(int value) {
ensureShapeIsMutable();
shape_.addInt(value);
onChanged();
return this;
}
/**
* repeated int32 shape = 1;
* @param values The shape to add.
* @return This builder for chaining.
*/
public Builder addAllShape(
java.lang.Iterable extends java.lang.Integer> values) {
ensureShapeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, shape_);
onChanged();
return this;
}
/**
* repeated int32 shape = 1;
* @return This builder for chaining.
*/
public Builder clearShape() {
shape_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private com.google.protobuf.Internal.FloatList tensor_ = emptyFloatList();
private void ensureTensorIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
tensor_ = mutableCopy(tensor_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated float tensor = 2;
* @return A list containing the tensor.
*/
public java.util.List
getTensorList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(tensor_) : tensor_;
}
/**
* repeated float tensor = 2;
* @return The count of tensor.
*/
public int getTensorCount() {
return tensor_.size();
}
/**
* repeated float tensor = 2;
* @param index The index of the element to return.
* @return The tensor at the given index.
*/
public float getTensor(int index) {
return tensor_.getFloat(index);
}
/**
* repeated float tensor = 2;
* @param index The index to set the value at.
* @param value The tensor to set.
* @return This builder for chaining.
*/
public Builder setTensor(
int index, float value) {
ensureTensorIsMutable();
tensor_.setFloat(index, value);
onChanged();
return this;
}
/**
* repeated float tensor = 2;
* @param value The tensor to add.
* @return This builder for chaining.
*/
public Builder addTensor(float value) {
ensureTensorIsMutable();
tensor_.addFloat(value);
onChanged();
return this;
}
/**
* repeated float tensor = 2;
* @param values The tensor to add.
* @return This builder for chaining.
*/
public Builder addAllTensor(
java.lang.Iterable extends java.lang.Float> values) {
ensureTensorIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tensor_);
onChanged();
return this;
}
/**
* repeated float tensor = 2;
* @return This builder for chaining.
*/
public Builder clearTensor() {
tensor_ = emptyFloatList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private java.lang.Object dtype_ = "";
/**
* string dtype = 3;
* @return The dtype.
*/
public java.lang.String getDtype() {
java.lang.Object ref = dtype_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dtype_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string dtype = 3;
* @return The bytes for dtype.
*/
public com.google.protobuf.ByteString
getDtypeBytes() {
java.lang.Object ref = dtype_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dtype_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string dtype = 3;
* @param value The dtype to set.
* @return This builder for chaining.
*/
public Builder setDtype(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dtype_ = value;
onChanged();
return this;
}
/**
* string dtype = 3;
* @return This builder for chaining.
*/
public Builder clearDtype() {
dtype_ = getDefaultInstance().getDtype();
onChanged();
return this;
}
/**
* string dtype = 3;
* @param value The bytes for dtype to set.
* @return This builder for chaining.
*/
public Builder setDtypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dtype_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:FloatTensor)
}
// @@protoc_insertion_point(class_scope:FloatTensor)
private static final com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor();
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FloatTensor parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FloatTensor(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TensorMapOrBuilder extends
// @@protoc_insertion_point(interface_extends:TensorMap)
com.google.protobuf.MessageOrBuilder {
/**
* .MetaData metaData = 1;
* @return Whether the metaData field is set.
*/
boolean hasMetaData();
/**
* .MetaData metaData = 1;
* @return The metaData.
*/
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData getMetaData();
/**
* .MetaData metaData = 1;
*/
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaDataOrBuilder getMetaDataOrBuilder();
/**
* map<string, .FloatTensor> tensorMap = 2;
*/
int getTensorMapCount();
/**
* map<string, .FloatTensor> tensorMap = 2;
*/
boolean containsTensorMap(
java.lang.String key);
/**
* Use {@link #getTensorMapMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getTensorMap();
/**
* map<string, .FloatTensor> tensorMap = 2;
*/
java.util.Map
getTensorMapMap();
/**
* map<string, .FloatTensor> tensorMap = 2;
*/
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor getTensorMapOrDefault(
java.lang.String key,
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor defaultValue);
/**
* map<string, .FloatTensor> tensorMap = 2;
*/
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor getTensorMapOrThrow(
java.lang.String key);
}
/**
*
*
*
* Protobuf type {@code TensorMap}
*/
public static final class TensorMap extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:TensorMap)
TensorMapOrBuilder {
private static final long serialVersionUID = 0L;
// Use TensorMap.newBuilder() to construct.
private TensorMap(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TensorMap() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TensorMap();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TensorMap(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData.Builder subBuilder = null;
if (metaData_ != null) {
subBuilder = metaData_.toBuilder();
}
metaData_ = input.readMessage(com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metaData_);
metaData_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
tensorMap_ = com.google.protobuf.MapField.newMapField(
TensorMapDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
tensorMap__ = input.readMessage(
TensorMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
tensorMap_.getMutableMap().put(
tensorMap__.getKey(), tensorMap__.getValue());
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.internal_static_TensorMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetTensorMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.internal_static_TensorMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap.class, com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap.Builder.class);
}
public static final int METADATA_FIELD_NUMBER = 1;
private com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData metaData_;
/**
* .MetaData metaData = 1;
* @return Whether the metaData field is set.
*/
@java.lang.Override
public boolean hasMetaData() {
return metaData_ != null;
}
/**
* .MetaData metaData = 1;
* @return The metaData.
*/
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData getMetaData() {
return metaData_ == null ? com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData.getDefaultInstance() : metaData_;
}
/**
* .MetaData metaData = 1;
*/
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaDataOrBuilder getMetaDataOrBuilder() {
return getMetaData();
}
public static final int TENSORMAP_FIELD_NUMBER = 2;
private static final class TensorMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.internal_static_TensorMap_TensorMapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor> tensorMap_;
private com.google.protobuf.MapField
internalGetTensorMap() {
if (tensorMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
TensorMapDefaultEntryHolder.defaultEntry);
}
return tensorMap_;
}
public int getTensorMapCount() {
return internalGetTensorMap().getMap().size();
}
/**
* map<string, .FloatTensor> tensorMap = 2;
*/
@java.lang.Override
public boolean containsTensorMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetTensorMap().getMap().containsKey(key);
}
/**
* Use {@link #getTensorMapMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getTensorMap() {
return getTensorMapMap();
}
/**
* map<string, .FloatTensor> tensorMap = 2;
*/
@java.lang.Override
public java.util.Map getTensorMapMap() {
return internalGetTensorMap().getMap();
}
/**
* map<string, .FloatTensor> tensorMap = 2;
*/
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor getTensorMapOrDefault(
java.lang.String key,
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetTensorMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .FloatTensor> tensorMap = 2;
*/
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor getTensorMapOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetTensorMap().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(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (metaData_ != null) {
output.writeMessage(1, getMetaData());
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetTensorMap(),
TensorMapDefaultEntryHolder.defaultEntry,
2);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (metaData_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMetaData());
}
for (java.util.Map.Entry entry
: internalGetTensorMap().getMap().entrySet()) {
com.google.protobuf.MapEntry
tensorMap__ = TensorMapDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, tensorMap__);
}
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.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap)) {
return super.equals(obj);
}
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap other = (com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap) obj;
if (hasMetaData() != other.hasMetaData()) return false;
if (hasMetaData()) {
if (!getMetaData()
.equals(other.getMetaData())) return false;
}
if (!internalGetTensorMap().equals(
other.internalGetTensorMap())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMetaData()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetaData().hashCode();
}
if (!internalGetTensorMap().getMap().isEmpty()) {
hash = (37 * hash) + TENSORMAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetTensorMap().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Protobuf type {@code TensorMap}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:TensorMap)
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMapOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.internal_static_TensorMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetTensorMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 2:
return internalGetMutableTensorMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.internal_static_TensorMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap.class, com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap.Builder.class);
}
// Construct using com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (metaDataBuilder_ == null) {
metaData_ = null;
} else {
metaData_ = null;
metaDataBuilder_ = null;
}
internalGetMutableTensorMap().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.internal_static_TensorMap_descriptor;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap getDefaultInstanceForType() {
return com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap.getDefaultInstance();
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap build() {
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap buildPartial() {
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap result = new com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap(this);
int from_bitField0_ = bitField0_;
if (metaDataBuilder_ == null) {
result.metaData_ = metaData_;
} else {
result.metaData_ = metaDataBuilder_.build();
}
result.tensorMap_ = internalGetTensorMap();
result.tensorMap_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap) {
return mergeFrom((com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap other) {
if (other == com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap.getDefaultInstance()) return this;
if (other.hasMetaData()) {
mergeMetaData(other.getMetaData());
}
internalGetMutableTensorMap().mergeFrom(
other.internalGetTensorMap());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData metaData_;
private com.google.protobuf.SingleFieldBuilderV3<
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData, com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData.Builder, com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaDataOrBuilder> metaDataBuilder_;
/**
* .MetaData metaData = 1;
* @return Whether the metaData field is set.
*/
public boolean hasMetaData() {
return metaDataBuilder_ != null || metaData_ != null;
}
/**
* .MetaData metaData = 1;
* @return The metaData.
*/
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData getMetaData() {
if (metaDataBuilder_ == null) {
return metaData_ == null ? com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData.getDefaultInstance() : metaData_;
} else {
return metaDataBuilder_.getMessage();
}
}
/**
* .MetaData metaData = 1;
*/
public Builder setMetaData(com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData value) {
if (metaDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metaData_ = value;
onChanged();
} else {
metaDataBuilder_.setMessage(value);
}
return this;
}
/**
* .MetaData metaData = 1;
*/
public Builder setMetaData(
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData.Builder builderForValue) {
if (metaDataBuilder_ == null) {
metaData_ = builderForValue.build();
onChanged();
} else {
metaDataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .MetaData metaData = 1;
*/
public Builder mergeMetaData(com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData value) {
if (metaDataBuilder_ == null) {
if (metaData_ != null) {
metaData_ =
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData.newBuilder(metaData_).mergeFrom(value).buildPartial();
} else {
metaData_ = value;
}
onChanged();
} else {
metaDataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .MetaData metaData = 1;
*/
public Builder clearMetaData() {
if (metaDataBuilder_ == null) {
metaData_ = null;
onChanged();
} else {
metaData_ = null;
metaDataBuilder_ = null;
}
return this;
}
/**
* .MetaData metaData = 1;
*/
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData.Builder getMetaDataBuilder() {
onChanged();
return getMetaDataFieldBuilder().getBuilder();
}
/**
* .MetaData metaData = 1;
*/
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaDataOrBuilder getMetaDataOrBuilder() {
if (metaDataBuilder_ != null) {
return metaDataBuilder_.getMessageOrBuilder();
} else {
return metaData_ == null ?
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData.getDefaultInstance() : metaData_;
}
}
/**
* .MetaData metaData = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData, com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData.Builder, com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaDataOrBuilder>
getMetaDataFieldBuilder() {
if (metaDataBuilder_ == null) {
metaDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData, com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData.Builder, com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaDataOrBuilder>(
getMetaData(),
getParentForChildren(),
isClean());
metaData_ = null;
}
return metaDataBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor> tensorMap_;
private com.google.protobuf.MapField
internalGetTensorMap() {
if (tensorMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
TensorMapDefaultEntryHolder.defaultEntry);
}
return tensorMap_;
}
private com.google.protobuf.MapField
internalGetMutableTensorMap() {
onChanged();;
if (tensorMap_ == null) {
tensorMap_ = com.google.protobuf.MapField.newMapField(
TensorMapDefaultEntryHolder.defaultEntry);
}
if (!tensorMap_.isMutable()) {
tensorMap_ = tensorMap_.copy();
}
return tensorMap_;
}
public int getTensorMapCount() {
return internalGetTensorMap().getMap().size();
}
/**
* map<string, .FloatTensor> tensorMap = 2;
*/
@java.lang.Override
public boolean containsTensorMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetTensorMap().getMap().containsKey(key);
}
/**
* Use {@link #getTensorMapMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getTensorMap() {
return getTensorMapMap();
}
/**
* map<string, .FloatTensor> tensorMap = 2;
*/
@java.lang.Override
public java.util.Map getTensorMapMap() {
return internalGetTensorMap().getMap();
}
/**
* map<string, .FloatTensor> tensorMap = 2;
*/
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor getTensorMapOrDefault(
java.lang.String key,
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetTensorMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .FloatTensor> tensorMap = 2;
*/
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor getTensorMapOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetTensorMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearTensorMap() {
internalGetMutableTensorMap().getMutableMap()
.clear();
return this;
}
/**
* map<string, .FloatTensor> tensorMap = 2;
*/
public Builder removeTensorMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableTensorMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableTensorMap() {
return internalGetMutableTensorMap().getMutableMap();
}
/**
* map<string, .FloatTensor> tensorMap = 2;
*/
public Builder putTensorMap(
java.lang.String key,
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.FloatTensor value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableTensorMap().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .FloatTensor> tensorMap = 2;
*/
public Builder putAllTensorMap(
java.util.Map values) {
internalGetMutableTensorMap().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:TensorMap)
}
// @@protoc_insertion_point(class_scope:TensorMap)
private static final com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap();
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TensorMap parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TensorMap(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.TensorMap getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MetaDataOrBuilder extends
// @@protoc_insertion_point(interface_extends:MetaData)
com.google.protobuf.MessageOrBuilder {
/**
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* int32 version = 2;
* @return The version.
*/
int getVersion();
}
/**
*
*
*
* Protobuf type {@code MetaData}
*/
public static final class MetaData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:MetaData)
MetaDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use MetaData.newBuilder() to construct.
private MetaData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MetaData() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MetaData();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MetaData(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
version_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.internal_static_MetaData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.internal_static_MetaData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData.class, com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_FIELD_NUMBER = 2;
private int version_;
/**
* int32 version = 2;
* @return The version.
*/
@java.lang.Override
public int getVersion() {
return version_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (version_ != 0) {
output.writeInt32(2, version_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (version_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, version_);
}
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.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData)) {
return super.equals(obj);
}
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData other = (com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData) obj;
if (!getName()
.equals(other.getName())) return false;
if (getVersion()
!= other.getVersion()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Protobuf type {@code MetaData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:MetaData)
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.internal_static_MetaData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.internal_static_MetaData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData.class, com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData.Builder.class);
}
// Construct using com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
version_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.internal_static_MetaData_descriptor;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData getDefaultInstanceForType() {
return com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData.getDefaultInstance();
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData build() {
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData buildPartial() {
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData result = new com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData(this);
result.name_ = name_;
result.version_ = version_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData) {
return mergeFrom((com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData other) {
if (other == com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getVersion() != 0) {
setVersion(other.getVersion());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private int version_ ;
/**
* int32 version = 2;
* @return The version.
*/
@java.lang.Override
public int getVersion() {
return version_;
}
/**
* int32 version = 2;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(int value) {
version_ = value;
onChanged();
return this;
}
/**
* int32 version = 2;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:MetaData)
}
// @@protoc_insertion_point(class_scope:MetaData)
private static final com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData();
}
public static com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MetaData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MetaData(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.MetaData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_FloatTensor_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_FloatTensor_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_TensorMap_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_TensorMap_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_TensorMap_TensorMapEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_TensorMap_TensorMapEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_MetaData_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_MetaData_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\rfl_base.proto\";\n\013FloatTensor\022\r\n\005shape\030" +
"\001 \003(\005\022\016\n\006tensor\030\002 \003(\002\022\r\n\005dtype\030\003 \001(\t\"\226\001\n" +
"\tTensorMap\022\033\n\010metaData\030\001 \001(\0132\t.MetaData\022" +
",\n\ttensorMap\030\002 \003(\0132\031.TensorMap.TensorMap" +
"Entry\032>\n\016TensorMapEntry\022\013\n\003key\030\001 \001(\t\022\033\n\005" +
"value\030\002 \001(\0132\014.FloatTensor:\0028\001\")\n\010MetaDat" +
"a\022\014\n\004name\030\001 \001(\t\022\017\n\007version\030\002 \001(\005*H\n\006SIGN" +
"AL\022\013\n\007SUCCESS\020\000\022\010\n\004WAIT\020\001\022\013\n\007TIMEOUT\020\002\022\017" +
"\n\013EMPTY_INPUT\020\003\022\t\n\005ERROR\020\004B:\n+com.intel." +
"analytics.bigdl.ppml.fl.generatedB\013FlBas" +
"eProtob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_FloatTensor_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_FloatTensor_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_FloatTensor_descriptor,
new java.lang.String[] { "Shape", "Tensor", "Dtype", });
internal_static_TensorMap_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_TensorMap_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_TensorMap_descriptor,
new java.lang.String[] { "MetaData", "TensorMap", });
internal_static_TensorMap_TensorMapEntry_descriptor =
internal_static_TensorMap_descriptor.getNestedTypes().get(0);
internal_static_TensorMap_TensorMapEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_TensorMap_TensorMapEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_MetaData_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_MetaData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_MetaData_descriptor,
new java.lang.String[] { "Name", "Version", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy