Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/worker.proto
package org.tensorflow.distruntime;
/**
*
* Supplies data about one collective op belonging to the instance identified
* by instance_key. Service will respond when all group_size ops have
* become known. Most of the data being sent is for correctness checking,
* to ensure that all ops in the instance share common attributes.
*
*
* Protobuf type {@code tensorflow.CompleteInstanceRequest}
*/
public final class CompleteInstanceRequest extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.CompleteInstanceRequest)
CompleteInstanceRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CompleteInstanceRequest.newBuilder() to construct.
private CompleteInstanceRequest(com.github.os72.protobuf351.GeneratedMessageV3.Builder builder) {
super(builder);
}
private CompleteInstanceRequest() {
name_ = "";
type_ = 0;
dataType_ = 0;
groupKey_ = 0;
groupSize_ = 0;
instanceKey_ = 0;
deviceType_ = "";
subdivOffset_ = java.util.Collections.emptyList();
device_ = "";
isSource_ = false;
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CompleteInstanceRequest(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
type_ = input.readInt32();
break;
}
case 24: {
int rawValue = input.readEnum();
dataType_ = rawValue;
break;
}
case 34: {
org.tensorflow.framework.TensorShapeProto.Builder subBuilder = null;
if (shape_ != null) {
subBuilder = shape_.toBuilder();
}
shape_ = input.readMessage(org.tensorflow.framework.TensorShapeProto.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(shape_);
shape_ = subBuilder.buildPartial();
}
break;
}
case 40: {
groupKey_ = input.readInt32();
break;
}
case 48: {
groupSize_ = input.readInt32();
break;
}
case 56: {
instanceKey_ = input.readInt32();
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
deviceType_ = s;
break;
}
case 72: {
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
subdivOffset_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
subdivOffset_.add(input.readInt32());
break;
}
case 74: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) {
subdivOffset_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
while (input.getBytesUntilLimit() > 0) {
subdivOffset_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
device_ = s;
break;
}
case 88: {
isSource_ = input.readBool();
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
subdivOffset_ = java.util.Collections.unmodifiableList(subdivOffset_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_CompleteInstanceRequest_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.distruntime.WorkerProtos.internal_static_tensorflow_CompleteInstanceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.distruntime.CompleteInstanceRequest.class, org.tensorflow.distruntime.CompleteInstanceRequest.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 1;
*/
public com.github.os72.protobuf351.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 2;
private int type_;
/**
* int32 type = 2;
*/
public int getType() {
return type_;
}
public static final int DATA_TYPE_FIELD_NUMBER = 3;
private int dataType_;
/**
* .tensorflow.DataType data_type = 3;
*/
public int getDataTypeValue() {
return dataType_;
}
/**
* .tensorflow.DataType data_type = 3;
*/
public org.tensorflow.framework.DataType getDataType() {
org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dataType_);
return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result;
}
public static final int SHAPE_FIELD_NUMBER = 4;
private org.tensorflow.framework.TensorShapeProto shape_;
/**
* .tensorflow.TensorShapeProto shape = 4;
*/
public boolean hasShape() {
return shape_ != null;
}
/**
* .tensorflow.TensorShapeProto shape = 4;
*/
public org.tensorflow.framework.TensorShapeProto getShape() {
return shape_ == null ? org.tensorflow.framework.TensorShapeProto.getDefaultInstance() : shape_;
}
/**
* .tensorflow.TensorShapeProto shape = 4;
*/
public org.tensorflow.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() {
return getShape();
}
public static final int GROUP_KEY_FIELD_NUMBER = 5;
private int groupKey_;
/**
* int32 group_key = 5;
*/
public int getGroupKey() {
return groupKey_;
}
public static final int GROUP_SIZE_FIELD_NUMBER = 6;
private int groupSize_;
/**
* int32 group_size = 6;
*/
public int getGroupSize() {
return groupSize_;
}
public static final int INSTANCE_KEY_FIELD_NUMBER = 7;
private int instanceKey_;
/**
* int32 instance_key = 7;
*/
public int getInstanceKey() {
return instanceKey_;
}
public static final int DEVICE_TYPE_FIELD_NUMBER = 8;
private volatile java.lang.Object deviceType_;
/**
* string device_type = 8;
*/
public java.lang.String getDeviceType() {
java.lang.Object ref = deviceType_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deviceType_ = s;
return s;
}
}
/**
* string device_type = 8;
*/
public com.github.os72.protobuf351.ByteString
getDeviceTypeBytes() {
java.lang.Object ref = deviceType_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceType_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int SUBDIV_OFFSET_FIELD_NUMBER = 9;
private java.util.List subdivOffset_;
/**
* repeated int32 subdiv_offset = 9;
*/
public java.util.List
getSubdivOffsetList() {
return subdivOffset_;
}
/**
* repeated int32 subdiv_offset = 9;
*/
public int getSubdivOffsetCount() {
return subdivOffset_.size();
}
/**
* repeated int32 subdiv_offset = 9;
*/
public int getSubdivOffset(int index) {
return subdivOffset_.get(index);
}
private int subdivOffsetMemoizedSerializedSize = -1;
public static final int DEVICE_FIELD_NUMBER = 10;
private volatile java.lang.Object device_;
/**
* string device = 10;
*/
public java.lang.String getDevice() {
java.lang.Object ref = device_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
device_ = s;
return s;
}
}
/**
* string device = 10;
*/
public com.github.os72.protobuf351.ByteString
getDeviceBytes() {
java.lang.Object ref = device_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
device_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int IS_SOURCE_FIELD_NUMBER = 11;
private boolean isSource_;
/**
* bool is_source = 11;
*/
public boolean getIsSource() {
return isSource_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (!getNameBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, name_);
}
if (type_ != 0) {
output.writeInt32(2, type_);
}
if (dataType_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
output.writeEnum(3, dataType_);
}
if (shape_ != null) {
output.writeMessage(4, getShape());
}
if (groupKey_ != 0) {
output.writeInt32(5, groupKey_);
}
if (groupSize_ != 0) {
output.writeInt32(6, groupSize_);
}
if (instanceKey_ != 0) {
output.writeInt32(7, instanceKey_);
}
if (!getDeviceTypeBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 8, deviceType_);
}
if (getSubdivOffsetList().size() > 0) {
output.writeUInt32NoTag(74);
output.writeUInt32NoTag(subdivOffsetMemoizedSerializedSize);
}
for (int i = 0; i < subdivOffset_.size(); i++) {
output.writeInt32NoTag(subdivOffset_.get(i));
}
if (!getDeviceBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 10, device_);
}
if (isSource_ != false) {
output.writeBool(11, isSource_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, name_);
}
if (type_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32Size(2, type_);
}
if (dataType_ != org.tensorflow.framework.DataType.DT_INVALID.getNumber()) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeEnumSize(3, dataType_);
}
if (shape_ != null) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(4, getShape());
}
if (groupKey_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32Size(5, groupKey_);
}
if (groupSize_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32Size(6, groupSize_);
}
if (instanceKey_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32Size(7, instanceKey_);
}
if (!getDeviceTypeBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(8, deviceType_);
}
{
int dataSize = 0;
for (int i = 0; i < subdivOffset_.size(); i++) {
dataSize += com.github.os72.protobuf351.CodedOutputStream
.computeInt32SizeNoTag(subdivOffset_.get(i));
}
size += dataSize;
if (!getSubdivOffsetList().isEmpty()) {
size += 1;
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
subdivOffsetMemoizedSerializedSize = dataSize;
}
if (!getDeviceBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(10, device_);
}
if (isSource_ != false) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeBoolSize(11, isSource_);
}
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 org.tensorflow.distruntime.CompleteInstanceRequest)) {
return super.equals(obj);
}
org.tensorflow.distruntime.CompleteInstanceRequest other = (org.tensorflow.distruntime.CompleteInstanceRequest) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && (getType()
== other.getType());
result = result && dataType_ == other.dataType_;
result = result && (hasShape() == other.hasShape());
if (hasShape()) {
result = result && getShape()
.equals(other.getShape());
}
result = result && (getGroupKey()
== other.getGroupKey());
result = result && (getGroupSize()
== other.getGroupSize());
result = result && (getInstanceKey()
== other.getInstanceKey());
result = result && getDeviceType()
.equals(other.getDeviceType());
result = result && getSubdivOffsetList()
.equals(other.getSubdivOffsetList());
result = result && getDevice()
.equals(other.getDevice());
result = result && (getIsSource()
== other.getIsSource());
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();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType();
hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER;
hash = (53 * hash) + dataType_;
if (hasShape()) {
hash = (37 * hash) + SHAPE_FIELD_NUMBER;
hash = (53 * hash) + getShape().hashCode();
}
hash = (37 * hash) + GROUP_KEY_FIELD_NUMBER;
hash = (53 * hash) + getGroupKey();
hash = (37 * hash) + GROUP_SIZE_FIELD_NUMBER;
hash = (53 * hash) + getGroupSize();
hash = (37 * hash) + INSTANCE_KEY_FIELD_NUMBER;
hash = (53 * hash) + getInstanceKey();
hash = (37 * hash) + DEVICE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getDeviceType().hashCode();
if (getSubdivOffsetCount() > 0) {
hash = (37 * hash) + SUBDIV_OFFSET_FIELD_NUMBER;
hash = (53 * hash) + getSubdivOffsetList().hashCode();
}
hash = (37 * hash) + DEVICE_FIELD_NUMBER;
hash = (53 * hash) + getDevice().hashCode();
hash = (37 * hash) + IS_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashBoolean(
getIsSource());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.distruntime.CompleteInstanceRequest parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.distruntime.CompleteInstanceRequest parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.distruntime.CompleteInstanceRequest parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.distruntime.CompleteInstanceRequest parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.distruntime.CompleteInstanceRequest parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.distruntime.CompleteInstanceRequest parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.distruntime.CompleteInstanceRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.distruntime.CompleteInstanceRequest parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.distruntime.CompleteInstanceRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.distruntime.CompleteInstanceRequest parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.distruntime.CompleteInstanceRequest parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.distruntime.CompleteInstanceRequest parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.distruntime.CompleteInstanceRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Supplies data about one collective op belonging to the instance identified
* by instance_key. Service will respond when all group_size ops have
* become known. Most of the data being sent is for correctness checking,
* to ensure that all ops in the instance share common attributes.
*